/* ============================================================
   Fable 5 Incident Archive — 다크테크 / 터미널 미학
   design-system.md 토큰 충실 구현. 외부 폰트 CDN 없음(시스템 폴백).
   ============================================================ */

:root {
  /* 배경 */
  --bg-0: #0a0e12;
  --bg-1: #11161c;
  --bg-2: #1a212a;
  --border: #232c36;
  --border-bright: #2f3a47;

  /* 텍스트 */
  --fg-0: #e6edf3;
  --fg-1: #9aa7b4;
  --fg-2: #5c6b7a;

  /* 액센트 */
  --accent: #3ad07a;
  --accent-dim: #1f8a4c;
  --cyan: #38bdf8;
  --amber: #f0b429;

  /* 신뢰도 등급 색 */
  --grade-high: #3ad07a;
  --grade-medium: #f0b429;
  --grade-low: #e8833a;
  --grade-false: #ef4444;
  --grade-unverified: #6b7785;
  --grade-caution: #d4546a;

  /* 감성 색 */
  --sent-strongpos: #2fa968;
  --sent-pos: #6bd49a;
  --sent-neutral: #6b7785;
  --sent-neg: #e8833a;
  --sent-strongneg: #ef4444;
  --sent-mixed: #b07ae8;

  /* 타이포 스택 */
  --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', ui-monospace, 'Menlo', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1080px;
  --radius: 4px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; }

em { color: var(--amber); font-style: normal; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg-0);
  padding: 8px 14px;
  z-index: 100;
  font-family: var(--mono);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 배경 그리드 / 스캔라인 ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-0);
  background-image:
    linear-gradient(rgba(58, 208, 122, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 208, 122, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-scan {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.06), transparent 70%);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem clamp(16px, 4vw, 32px);
  background: rgba(10, 14, 18, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.nav-brand {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.site-nav nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-right: auto;
}
.site-nav nav a {
  color: var(--fg-1);
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
}
.site-nav nav a:hover { color: var(--fg-0); background: var(--bg-2); text-decoration: none; }
.site-nav nav a.active { color: var(--accent); }
.nav-status {
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---------- layout ---------- */
main { display: block; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(16px, 4vw, 32px) 1rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: var(--fg-0);
  letter-spacing: -0.01em;
}
.section-title .prompt { color: var(--accent); margin-right: 0.5rem; }
.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.05em;
  margin-left: 0.35ch;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.subhead {
  font-size: 1rem;
  color: var(--fg-1);
  margin: 2.4rem 0 1rem;
  letter-spacing: 0.01em;
}
.subhead .prompt { color: var(--accent); margin-right: 0.5rem; }

.section-lead {
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 0.98rem;
  max-width: 70ch;
  margin: 0.2rem 0 1.6rem;
}
.section-foot {
  color: var(--fg-2);
  font-size: 0.8rem;
  margin: 1.4rem 0 0;
  border-left: 2px solid var(--accent-dim);
  padding-left: 0.8rem;
}
.chart-caption {
  color: var(--fg-2);
  font-size: 0.78rem;
  margin: 0.9rem 0 0;
  font-style: normal;
}

/* ---------- card ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.16s ease-out, background 0.16s ease-out, transform 0.16s ease-out;
}
.card:hover {
  background: var(--bg-2);
  border-left-color: var(--accent);
}

/* ---------- 등급 점 뱃지 ---------- */
.grade-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--fg-1);
  white-space: nowrap;
}
.grade-dot::before {
  content: "●";
  font-size: 0.7em;
  color: var(--dot, var(--fg-2));
}
.g-high { --dot: var(--grade-high); }
.g-medium { --dot: var(--grade-medium); }
.g-low { --dot: var(--grade-low); }
.g-false { --dot: var(--grade-false); }
.g-unverified { --dot: var(--grade-unverified); }
.g-caution { --dot: var(--grade-caution); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(16px, 4vw, 32px) 3rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.hero-inner { width: 100%; }
.boot-log {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0 0 1.8rem;
  white-space: pre-wrap;
  min-height: 7.5em;
  line-height: 1.55;
  text-shadow: 0 0 8px rgba(58, 208, 122, 0.25);
}
.boot-log .boot-caret {
  display: inline-block;
  width: 0.55ch;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
}
.boot-log .boot-status { color: var(--amber); }

.hero-reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hero-reveal.show { opacity: 1; transform: none; }

.hero-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.32em;
  color: var(--fg-2);
  margin: 0 0 0.6rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.hero-title .blink-block { color: var(--accent); }
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-1);
  max-width: 60ch;
  margin: 0 0 2.2rem;
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.8rem;
  padding: 0;
}
.hero-stat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-dim);
}
.hero-stat dt {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.25rem;
  word-break: break-word;
}
.hero-stat dd { margin: 0; }
.hero-stat .stat-label { font-size: 0.82rem; color: var(--fg-0); display: block; }
.hero-stat .stat-sub { font-size: 0.7rem; color: var(--fg-2); display: block; margin-top: 0.15rem; }

.hero-handoff {
  color: var(--fg-2);
  font-size: 0.84rem;
  margin: 0;
}

/* ============================================================
   2. FACTS
   ============================================================ */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.fact-card { display: flex; flex-direction: column; gap: 0.7rem; }
.fact-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.fact-num {
  font-size: 0.78rem;
  color: var(--bg-0);
  background: var(--accent);
  border-radius: var(--radius);
  padding: 0.1rem 0.55rem;
  font-weight: 700;
}
.fact-text {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--fg-0);
  margin: 0;
  line-height: 1.55;
}
.fact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: auto;
}
.cross-ref { font-size: 0.7rem; color: var(--cyan); }

/* ============================================================
   3. TIMELINE
   ============================================================ */
.timeline-filters, .source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.76rem;
  background: var(--bg-1);
  color: var(--fg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.14s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.45ch;
}
.filter-btn:hover { background: var(--bg-2); color: var(--fg-0); border-color: var(--border-bright); }
.filter-btn[aria-pressed="true"] {
  color: var(--bg-0);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.filter-btn .fdot { font-size: 0.7em; color: var(--fdot, var(--fg-2)); }
.filter-btn[aria-pressed="true"] .fdot { color: var(--bg-0); }
.cat-A { --fdot: var(--cyan); }
.cat-B { --fdot: var(--amber); }
.cat-C { --fdot: var(--sent-mixed); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--border);
}
.tl-event {
  position: relative;
  padding: 0 0 1.6rem 1.2rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tl-event::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tdot, var(--fg-2));
  box-shadow: 0 0 0 3px var(--bg-0);
}
.tl-event.tcat-A { --tdot: var(--cyan); }
.tl-event.tcat-B { --tdot: var(--amber); }
.tl-event.tcat-C { --tdot: var(--sent-mixed); }
.tl-event.is-peak::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--bg-0), 0 0 10px var(--amber);
}
.tl-event.hidden { display: none; }

.tl-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--fg-2);
  margin-bottom: 0.3rem;
}
.tl-date { color: var(--fg-1); font-weight: 600; }
.tl-cat {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tdot, var(--fg-2));
}
.tl-peak-badge {
  color: var(--bg-0);
  background: var(--amber);
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.68rem;
}
.tl-title {
  font-size: 0.96rem;
  color: var(--fg-0);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.tl-event.is-peak .tl-title { color: var(--amber); }
.tl-detail {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--fg-1);
  margin: 0 0 0.45rem;
  line-height: 1.5;
}
.tl-source { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--fg-2); }

.reaction-speed-wrap {
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.reaction-speed-wrap summary {
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  font-size: 0.84rem;
  color: var(--fg-1);
  list-style: none;
}
.reaction-speed-wrap summary::-webkit-details-marker { display: none; }
.reaction-speed-wrap summary::before { content: "▸ "; color: var(--accent); }
.reaction-speed-wrap[open] summary::before { content: "▾ "; }
.reaction-speed { padding: 0 1.1rem 1rem; display: grid; gap: 0.6rem; }
.rs-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.rs-path { font-size: 0.84rem; color: var(--fg-0); }
.rs-arrow { color: var(--accent); margin: 0 0.4ch; }
.rs-dur { color: var(--amber); font-size: 0.8rem; white-space: nowrap; text-align: right; }
.rs-note { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.8rem; color: var(--fg-2); line-height: 1.45; }

/* ============================================================
   4. SENTIMENT
   ============================================================ */
.sentiment-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.3fr;
  gap: 1rem;
  align-items: stretch;
}
.sentiment-donut { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.sentiment-donut svg { max-width: 100%; height: auto; }
.donut-legend { display: grid; gap: 0.3rem; width: 100%; font-size: 0.78rem; }
.donut-legend .lg-row { display: flex; align-items: center; gap: 0.55ch; color: var(--fg-1); }
.donut-legend .lg-sw { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.donut-legend .lg-pct { margin-left: auto; color: var(--fg-0); font-weight: 600; }

.sentiment-groups { display: flex; flex-direction: column; gap: 1rem; }
.grp { }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.grp-name { font-size: 0.82rem; color: var(--fg-0); font-weight: 600; }
.grp-na { font-size: 0.74rem; color: var(--grade-unverified); }
.grp-bar {
  display: flex;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.grp-seg { height: 100%; transition: width 0.6s ease-out; }
.seg-neg { background: var(--sent-neg); }
.seg-neu { background: var(--sent-neutral); }
.seg-pos { background: var(--sent-pos); }
.grp-nums { font-size: 0.72rem; color: var(--fg-2); margin-top: 0.3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.grp-nums .n-neg { color: var(--sent-neg); }
.grp-nums .n-neu { color: var(--fg-1); }
.grp-nums .n-pos { color: var(--sent-pos); }
.grp-note { font-family: var(--sans); font-size: 0.76rem; color: var(--fg-2); margin: 0.35rem 0 0; line-height: 1.45; }

.domestic-global {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dvg-col-head {
  padding: 0.9rem 1.1rem;
  background: var(--bg-2);
  font-size: 0.82rem;
  font-weight: 600;
}
.dvg-col-head.global { color: var(--sent-neg); }
.dvg-col-head.domestic { color: var(--cyan); }
.dvg-axis {
  grid-column: 1 / -1;
  background: var(--bg-0);
  padding: 0.6rem 1.1rem 0.2rem;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.dvg-cell {
  background: var(--bg-1);
  padding: 0.5rem 1.1rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--fg-1);
  line-height: 1.45;
}
.dvg-cell.global { border-left: 2px solid var(--sent-neg); }
.dvg-cell.domestic { border-left: 2px solid var(--cyan); }

.trend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.trend-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.trend-idx {
  font-size: 0.8rem;
  color: var(--bg-0);
  background: var(--accent-dim);
  border-radius: 50%;
  width: 1.8rem; height: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.trend-phase { font-size: 0.84rem; color: var(--accent); font-weight: 600; margin: 0.15rem 0 0.25rem; }
.trend-desc { font-family: var(--sans); font-size: 0.86rem; color: var(--fg-1); margin: 0; line-height: 1.5; }

/* ============================================================
   5. NARRATIVES
   ============================================================ */
.narratives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.narr-card { display: flex; flex-direction: column; gap: 0.7rem; }
.narr-card.secondary { border-style: dashed; opacity: 0.92; }
.narr-head { display: flex; align-items: center; gap: 0.7rem; }
.narr-rank {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 0.1rem 0.55rem;
}
.narr-card.secondary .narr-rank { color: var(--fg-1); border-color: var(--border-bright); }
.narr-title { font-size: 1rem; color: var(--fg-0); margin: 0; font-weight: 600; }
.narr-desc { font-family: var(--sans); font-size: 0.88rem; color: var(--fg-1); margin: 0; line-height: 1.55; }
.narr-scope { font-size: 0.72rem; color: var(--cyan); border-top: 1px solid var(--border); padding-top: 0.55rem; margin-top: auto; }
.narr-scope::before { content: "scope: "; color: var(--fg-2); }
.secondary-tag { font-size: 0.68rem; color: var(--amber); letter-spacing: 0.05em; }

/* ============================================================
   6. QUOTES
   ============================================================ */
.quote-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.quote-wall { columns: 2; column-gap: 1rem; }
.quote-card {
  break-inside: avoid;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.quote-card.hidden { display: none; }
.q-chan {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-transform: uppercase;
}
.q-text { font-family: var(--sans); font-size: 0.94rem; color: var(--fg-0); margin: 0; line-height: 1.55; }
.q-text::before { content: "“"; color: var(--accent); margin-right: 1px; }
.q-text::after { content: "”"; color: var(--accent); margin-left: 1px; }
.q-text-ko { font-family: var(--sans); font-size: 0.84rem; color: var(--fg-1); margin: 0; line-height: 1.5; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 0.55rem; }
.q-author { font-size: 0.78rem; color: var(--accent); }
.q-context { font-family: var(--sans); font-size: 0.76rem; color: var(--fg-2); margin: 0; line-height: 1.45; }
.sent-dot {
  display: inline-flex; align-items: center; gap: 0.4ch;
  font-size: 0.72rem; color: var(--fg-1);
}
.sent-dot::before { content: "●"; font-size: 0.7em; color: var(--sdot, var(--fg-2)); }
.s-negative { --sdot: var(--sent-neg); }
.s-positive { --sdot: var(--sent-pos); }
.s-neutral { --sdot: var(--sent-neutral); }
.s-mixed { --sdot: var(--sent-mixed); }

/* ============================================================
   7. FACTCHECK
   ============================================================ */
.grade-summary { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 1rem; }
.grade-bar { display: flex; height: 22px; border-radius: 2px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.grade-seg { height: 100%; transition: width 0.6s ease-out; min-width: 2px; }
.grade-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; }
.grade-row {
  display: flex; flex-direction: column; gap: 0.2rem;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--dot, var(--fg-2));
}
.grade-row .gr-count { font-size: 1.5rem; font-weight: 700; color: var(--dot, var(--fg-0)); }
.grade-row .gr-label { font-size: 0.78rem; color: var(--fg-0); }
.grade-row .gr-mean { font-family: var(--sans); font-size: 0.74rem; color: var(--fg-2); line-height: 1.4; }

.warnings { display: grid; gap: 0.7rem; }
.warn-card { border-left: 3px solid var(--grade-caution); }
.warn-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.warn-id { font-size: 0.74rem; color: var(--bg-0); background: var(--grade-caution); border-radius: var(--radius); padding: 0.1rem 0.5rem; font-weight: 700; }
.warn-title { font-size: 0.92rem; color: var(--fg-0); margin: 0; font-weight: 600; }
.warn-note { font-family: var(--sans); font-size: 0.84rem; color: var(--fg-1); margin: 0; line-height: 1.5; }

/* ============================================================
   8. SOURCES
   ============================================================ */
.source-list { display: grid; gap: 1.2rem; }
.src-cat-name {
  font-size: 0.9rem; color: var(--accent); margin: 0 0 0.7rem;
  font-weight: 600; letter-spacing: 0.01em;
}
.src-cat-name::before { content: "▸ "; color: var(--fg-2); }
.src-cat-count { color: var(--fg-2); font-size: 0.74rem; font-weight: 400; margin-left: 0.5ch; }
.src-items { display: grid; gap: 0.6rem; }
.src-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--dot, var(--fg-2));
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: var(--bg-1);
  transition: background 0.14s ease-out;
}
.src-item:hover { background: var(--bg-2); }
.src-item.hidden { display: none; }
.src-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.src-title { font-size: 0.86rem; color: var(--fg-0); line-height: 1.4; }
.src-link { font-size: 0.74rem; word-break: break-all; }
.src-link.no-url { color: var(--fg-2); }
.src-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; font-size: 0.72rem; color: var(--fg-2); }
.src-note { font-family: var(--sans); font-size: 0.78rem; color: var(--fg-2); margin: 0.35rem 0 0; line-height: 1.45; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding: 2rem clamp(16px, 4vw, 32px) 3rem;
  border-top: 1px solid var(--border);
}
.footer-meta { font-size: 0.78rem; color: var(--fg-1); margin: 0 0 0.6rem; }
.footer-note { font-family: var(--sans); font-size: 0.78rem; color: var(--fg-2); margin: 0; line-height: 1.5; max-width: 80ch; }

/* ---------- placeholder ---------- */
.placeholder {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--fg-2);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- 진입 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.16s ease-out, transform 0.16s ease-out; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 760px) {
  .sentiment-grid { grid-template-columns: 1fr; }
  .domestic-global { grid-template-columns: 1fr; }
  .dvg-col-head.global, .dvg-col-head.domestic { border-bottom: 1px solid var(--border); }
  .quote-wall { columns: 1; }
}

/* ============================================================
   prefers-reduced-motion 존중
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .cursor, .boot-log .boot-caret { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .hero-reveal { opacity: 1; transform: none; }
}
