/* =========================================================================
   보숲 components.css (design_v2.md v2.1 §4)
   모든 값은 tokens.css의 변수만 참조. 하드코딩 금지.
   요소 선택자 최소화 — 컴포넌트는 클래스 기반.
   ========================================================================= */

/* =========================================================================
   1) 사이트 헤더 & 네비게이션
   ========================================================================= */
/* v2.1 site-header — design_preview_v2/index.html 스펙 반영
   sticky + backdrop blur + editorial nav (밑줄 active) */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}

.site-header-inner {
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--r-8);
}

.site-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--navy);
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
}

/* 헤더 우측 액션 묶음 (테마 토글 + 모바일 메뉴) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* v2.1 nav-link — 밑줄 기반 active (배경 버블 제거) */
.site-nav .nav-link,
.nav-link {
  padding: 12px 4px;
  color: var(--ink-700);
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 150ms var(--ease);
}

.site-nav .nav-link:hover,
.nav-link:hover {
  background: transparent;
  color: var(--ink-900);
}

.site-nav .nav-link.active,
.nav-link.active {
  background: transparent;
  color: var(--link-accent);
}

/* 에디토리얼 밑줄 — bottom: -9px로 헤더 하단 border와 살짝 겹치게 */
.site-nav .nav-link.active::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -9px;
  height: 2px;
  background: var(--link-accent);
}

.site-nav .nav-link.active:hover,
.nav-link.active:hover {
  background: transparent;
  color: var(--link-accent);
}

/* =========================================================================
   2) 사이트 메인 & 푸터
   ========================================================================= */
.site-main {
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 60vh;
}

/* v2.1 footer — design_preview_v2/index.html 스펙 반영
   paper-warm 단일 배경 + 에디토리얼 키커 h4 */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--hairline);
  margin-top: 56px;
}

.site-footer-inner {
  max-width: var(--w-site);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--r-8);
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.footer-desc {
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-group h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-link-group a {
  color: var(--ink-500);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  width: fit-content;
  transition:
    color 150ms var(--ease),
    transform 150ms var(--ease);
}

.footer-link-group a:hover {
  color: var(--ink-900);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.site-footer-text {
  color: var(--ink-300);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 60px;
  }
  .site-footer-inner {
    padding: 32px 16px 24px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-bottom {
    padding-top: 20px;
  }
}

/* =========================================================================
   3) 모바일 드로어 (기존 구조 호환)
   ========================================================================= */
.mobile-menu-btn {
  display: none;
  padding: 8px;
  margin-right: -8px;
  z-index: var(--z-sticky);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
}

.mobile-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink-900);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition:
    top 200ms var(--ease),
    opacity 200ms var(--ease),
    transform 200ms var(--ease);
}

.mobile-menu-icon span:nth-child(1) { top: 5px; }
.mobile-menu-icon span:nth-child(2) { top: 11px; }
.mobile-menu-icon span:nth-child(3) { top: 17px; }

.mobile-menu-btn.active .mobile-menu-icon span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.mobile-menu-btn.active .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .mobile-menu-icon span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  transition:
    opacity 300ms var(--ease),
    visibility 300ms var(--ease);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--paper);
  z-index: var(--z-modal);
  box-shadow: -4px 0 20px rgba(17, 17, 17, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right 300ms var(--ease-out);
}

.mobile-menu-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-gradient-end) 100%);
  color: #fff;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  padding: 2px;
}

.drawer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer-accent {
  color: #C5E5D2;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-8);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  color: #fff;
  transition: background-color 200ms var(--ease);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.drawer-search-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  padding: 14px 16px;
  background: var(--navy-tint);
  border: 1px solid var(--navy);
  border-radius: var(--r-12);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}

.drawer-search-btn:hover {
  background: var(--navy);
  color: #fff;
}

.drawer-search-btn svg {
  color: var(--navy);
  transition: color 200ms var(--ease);
}

.drawer-search-btn:hover svg {
  color: #fff;
}

.drawer-nav {
  padding: 16px 20px;
  flex: 1;
}

.drawer-nav-link {
  display: block;
  padding: 14px 0;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 150ms var(--ease);
}

.drawer-nav-link:last-child {
  border-bottom: none;
}

.drawer-nav-link:hover .drawer-nav-text,
.drawer-nav-link.active:hover .drawer-nav-text {
  color: var(--link-accent);
}

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

.drawer-nav-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-900);
}

.drawer-footer {
  margin-top: auto;
  padding: 20px;
  background: var(--paper-warm);
  border-top: 1px solid var(--hairline);
}

.drawer-footer-info {
  text-align: center;
}

.drawer-footer-info p {
  font-size: 0.8125rem;
  color: var(--ink-700);
  font-weight: 600;
}

.drawer-footer-sub {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-header-inner {
    height: 56px;
    padding: 0 16px;
  }
  .site-logo-img {
    border-radius: var(--r-6);
    width: 32px;
    height: 32px;
  }
  .site-logo-text {
    font-size: 1.0625rem;
  }
  .site-nav {
    display: none;
  }
  .site-main {
    padding: 20px 16px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* =========================================================================
   4) 버튼 (§4.1)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-8);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease),
    transform 150ms var(--ease),
    box-shadow 150ms var(--ease);
}

.btn:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: var(--sh-soft);
}

.btn:active {
  transform: scale(0.98);
}

.btn-large {
  padding: 12px 24px;
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--paper-hover);
  color: var(--ink-900);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-500);
  padding: 0 14px;
  height: 44px;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--ink-900);
  transform: none;
  box-shadow: none;
}

.btn-ghost.active {
  color: var(--link-accent);
  background: transparent;
  position: relative;
}

.btn-ghost.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -10px;
  height: 2px;
  background: var(--link-accent);
}

.btn-ghost.active:hover {
  color: var(--link-accent);
  background: transparent;
}

/* v2.1 — navy 배경 위의 흰 버튼 (promo CTA용) */
.btn-on-navy {
  background: #fff;
  color: var(--navy);
}

.btn-on-navy:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--sh-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-8);
  color: var(--ink-700);
  background: transparent;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease),
    border-color 150ms var(--ease);
}

.icon-btn:hover {
  background: var(--paper-hover);
  color: var(--ink-900);
  border: 1px solid var(--border-strong);
}

/* =========================================================================
   5) 뱃지 · 칩 (§4.6, §4.1 Pill)
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-6);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-industry {
  background: var(--paper-warm);
  color: var(--ink-700);
}

.badge-dart,
.badge-notice {
  background: var(--navy-tint);
  color: var(--navy);
}

.badge-new {
  background: var(--forest-tint);
  color: var(--forest-deep);
}

.badge-warn {
  background: var(--bg-warn);
  color: var(--warning);
}

.badge-risk {
  background: var(--bg-risk);
  color: var(--negative);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--paper-warm);
  color: var(--ink-700);
  text-decoration: none;
  min-height: 28px;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease);
}

.chip:hover {
  background: var(--paper-hover);
  color: var(--ink-900);
}

.chip.active {
  background: var(--link-accent-soft);
  color: var(--link-accent);
}

.chip.active:hover {
  background: var(--link-accent-soft);
  color: var(--link-accent);
}

@media (max-width: 640px) {
  .chip {
    min-height: 36px;
    padding: 8px 12px;
  }
}

/* =========================================================================
   6) 검색 입력 (§4.7)
   ========================================================================= */
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-10);
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--ink-900);
  font-size: 14px;
  transition:
    border-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}

.search-input::placeholder {
  color: var(--ink-300);
}

.search-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(61, 138, 107, 0.12);
}

/* =========================================================================
   7) 카드 & Hairline 리스트 아이템 (§4.2)
   ========================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-12);
  padding: 24px;
}

.card-hairline {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
  transition: background-color 150ms var(--ease);
}

.card-hairline:hover {
  background: var(--paper-hover);
}

.hairline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hairline-list > li {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.hairline-list > li:last-child {
  border-bottom: none;
}

/* =========================================================================
   8) 콜아웃 4종 (§4.9, v2.1 — 좌측 룰 없음)
   ========================================================================= */
.callout {
  border-radius: var(--r-12);
  padding: 22px 26px;
  margin: 24px 0;
}

.callout-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-700);
}

.callout-body strong {
  font-weight: 600;
  color: var(--ink-900);
}

.callout-note    { background: var(--bg-note); }
.callout-insight { background: var(--bg-insight); }
.callout-warn    { background: var(--bg-warn); }
.callout-risk    { background: var(--bg-risk); }

@media (max-width: 640px) {
  .callout {
    padding: 18px 20px;
    margin: 18px 0;
  }
}

/* 인라인 수치 강조 pill (§4.8) */
.inline-num-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--r-4);
  background: var(--forest-tint);
  color: var(--ink-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   9) Numeric Card (§4.10)
   ========================================================================= */
.numeric-card {
  background: var(--paper-warm);
  border-radius: var(--r-12);
  padding: 24px;
  display: flex;
  gap: 0;
}

.numeric-card > * + * {
  border-left: 1px solid var(--hairline-soft);
  padding-left: 24px;
  margin-left: 24px;
}

.numeric-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.numeric-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.numeric-cell .value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}

.numeric-cell .delta {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.numeric-cell .delta.positive { color: var(--positive); }
.numeric-cell .delta.negative { color: var(--negative); }

@media (max-width: 640px) {
  .numeric-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .numeric-card > * + * {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .numeric-cell .value {
    font-size: 28px;
  }
}

/* =========================================================================
   10) Pull Quote (§4.8)
   ========================================================================= */
.pull-quote {
  border-left: 3px solid var(--forest);
  background: var(--paper-warm);
  border-radius: 0 var(--r-8) var(--r-8) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

@media (max-width: 640px) {
  .pull-quote {
    font-size: 20px;
    padding: 18px 20px;
    margin: 24px 0;
  }
}

/* =========================================================================
   11) Promo Card (§4.5)
   ========================================================================= */
.promo-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-gradient-end) 100%);
  color: #fff;
  border-radius: var(--r-12);
  padding: 24px;
}

.promo-card h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.promo-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.promo-card .btn {
  background: var(--paper);
  color: var(--navy);
}

.promo-card .btn:hover {
  background: var(--paper-hover);
  color: var(--navy-hover);
}

/* =========================================================================
   12) Sticky TOC (§4.11)
   ========================================================================= */
.toc {
  position: sticky;
  top: 96px;
  width: var(--w-toc);
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    color 150ms var(--ease),
    border-color 180ms var(--ease);
}

.toc li a:hover {
  color: var(--ink-900);
  text-decoration: underline;
}

.toc li a[aria-current="true"],
.toc li.active a {
  color: var(--forest);
  border-left-color: var(--forest);
}

@media (max-width: 1024px) {
  .toc {
    position: static;
    width: 100%;
  }
}

/* =========================================================================
   13) FAQ 아코디언 (§4.12)
   ========================================================================= */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  padding: 4px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-q {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ink-500);
  transition: transform 260ms ease-in-out;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 12px 0 24px 36px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-700);
}

/* =========================================================================
   14) Related Reports (§4.13)
   ========================================================================= */
.related-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}

.related-card {
  display: block;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-10);
  text-decoration: none;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease);
}

.related-card:hover {
  background: var(--paper-hover);
}

.related-card .company {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  margin-bottom: 4px;
}

.related-card .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}

/* v2.1.2: hover 시 제목 색 유지 — 배경(paper-hover)만으로 피드백 (색온도 충돌 해소).
   v2.1.3: read-more 어포던스로 옅은 navy underline 추가 (link 신호 보강). */
.related-card:hover .title {
  color: var(--ink-900);
  text-decoration-color: var(--navy-underline);
}

.related-card .date {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   15) Disclaimer Box (§4.14)
   ========================================================================= */
.disclaimer-box {
  background: var(--paper-warm);
  border-radius: var(--r-8);
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-500);
}

.disclaimer-box strong {
  font-weight: 600;
  color: var(--ink-700);
}

/* =========================================================================
   16) Theme Toggle (§9.1)
   ========================================================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-8);
  color: var(--ink-700);
  background: transparent;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}

.theme-toggle:hover {
  background: var(--paper-hover);
  color: var(--ink-900);
}

.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

html[data-theme="light"] .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* =========================================================================
   17) 리포트 리스트 아이템 (§4.2)
   블로그 포스트 카드 감성 — 구분선 리스트
   ========================================================================= */
.report-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 150ms var(--ease);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}

.report-item:hover {
  background: var(--paper-hover);
}

.report-item .rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 2px;
}

.report-item .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.report-item .title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 8px;
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}

/* v2.1.3: hover 시 옅은 navy underline로 link 어포던스 보강 (read-more 패턴) */
.report-item:hover .title {
  color: var(--ink-900);
  text-decoration-color: var(--navy-underline);
}

.report-item .lead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.report-item .tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .report-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .report-item .rank {
    display: none;
  }
  .report-item .title {
    font-size: 17px;
  }
}

/* =========================================================================
   18) 매거진 헤더 블록 (§4.8)
   ========================================================================= */
.report-header {
  max-width: var(--w-read);
  margin: 0 auto;
  padding: 48px 24px 32px;
  text-align: center;
}

.report-header .kicker {
  margin-bottom: 20px;
}

.report-header .h-page {
  margin-bottom: 16px;
}

.report-header .subtitle {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-500);
  margin-bottom: 28px;
}

.author-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

/* =========================================================================
   19-a) 브레드크럼 (§7.1 — 각 nav에 aria-label, 현재 항목 aria-current="page")
   ========================================================================= */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 32px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--ink-300);
  user-select: none;
}

.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--navy-underline);
  text-underline-offset: 3px;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-900);
  font-weight: 500;
}

/* =========================================================================
   19) 뒤로가기 링크 (상세 페이지)
   ========================================================================= */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  border-radius: var(--r-8);
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease);
}

.back:hover {
  background: var(--paper-hover);
  color: var(--ink-900);
}

/* =========================================================================
   20) v2.1 Magazine Hero (리스트 상단 에디토리얼 헤드)
   참조: design_preview_v2/index.html §hero
   ========================================================================= */
.v2-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.v2-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.v2-hero-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.3;
}

.v2-hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 18px;
  max-width: 760px;
}

.v2-hero-title .accent {
  color: var(--navy);
}

.v2-hero-lead {
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

@media (max-width: 1024px) {
  .v2-hero {
    padding: 48px 0 32px;
  }
  .v2-hero-title {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .v2-hero {
    padding: 36px 0 24px;
  }
  .v2-hero-title {
    font-size: 28px;
    letter-spacing: -0.018em;
  }
  .v2-hero-lead {
    font-size: 15px;
  }
}
