/* ========================================================
   DRIMINFO Corporate Editorial Design System
   순수 화이트 배경과 정갈한 에디토리얼 타이포그래피 기반 스타일
======================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-surface-subtle: #FAFBFD;
  --color-text-main: #1A1D20;
  --color-text-sub: #555E68;
  --color-text-muted: #8A96A3;
  --color-accent: #5B7892;        /* Muted Slate Blue */
  --color-accent-subtle: #EBF2F7;
  --color-border: #EAEFF4;
  --color-border-subtle: #F4F7F9;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--color-bg);
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 폰트 패밀리 클래스 */
.font-editorial {
  font-family: 'Nanum Myeongjo', serif;
}

.font-body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
}

/* 1. 상단 미니멀 네비게이션 헤더 */
.editorial-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color 0.15s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link.active {
  color: var(--color-text-main);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
}

/* 2. 독립 페이지(View) 전환 컨테이너 */
.editorial-page {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: calc(100vh - 280px);
}

.editorial-page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 3. 에디토리얼 레이블 & 넘버링 */
.editorial-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.editorial-num {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

/* 4. 소개글 대형 헤드라인 및 시원한 줄간격 (Leading) */
.hero-headline {
  line-height: 1.85;
  letter-spacing: -0.015em;
  margin-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-description {
  line-height: 2.2;
  word-break: keep-all;
}

/* 5. 에디토리얼 아키텍처 노드 리스트 (그림자/카드 배제, 라인 기반) */
.arch-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 1.6rem 0;
  cursor: pointer;
  transition: background-color 0.15s ease, padding-left 0.2s ease;
}

.arch-item:hover {
  background-color: var(--color-surface-subtle);
  padding-left: 0.5rem;
}

.arch-item.active {
  border-bottom-color: var(--color-accent);
  background-color: var(--color-surface-subtle);
  padding-left: 0.5rem;
}

.arch-tab-btn {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  cursor: pointer;
  transition: all 0.15s ease;
}

.arch-tab-btn:hover {
  color: var(--color-text-main);
  border-color: var(--color-text-muted);
}

.arch-tab-btn.active {
  background-color: var(--color-text-main);
  color: #FFFFFF;
  border-color: var(--color-text-main);
}

/* 6. 부드러운 텍스트 셀렉션 */
::selection {
  background-color: #E2EAF1;
  color: var(--color-text-main);
}

/* 7. 스크롤바 정갈하게 정리 */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
  background: #D9E1E8;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
