/* ═══════════════════════════════════════════════════════════
   Retic — Global Stylesheet
   "Always Wrong, Always Interesting"
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --primary:       #1a1a2e;
  --primary-light: #16213e;
  --accent:        #e94560;
  --accent-hover:  #d63651;
  --up:            #16a34a;
  --down:          #dc2626;
  --neutral:       #6b7280;
  --gold:          #f59e0b;

  --bg:            #f4f5f7;
  --bg-card:       #ffffff;
  --bg-subtle:     #f8f9fa;
  --text:          #1f2937;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --border-strong: #d1d5db;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', Consolas, monospace;

  --transition: 0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── R2 Alert ───────────────────────────────────────────── */
.r2-alert-banner {
  background: #fff8e1;
  border-bottom: 2px solid var(--gold);
  color: #78520a;
  padding: 0.55rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* ── Header & Nav ───────────────────────────────────────── */
header {
  position: relative;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.site-title {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-name span {
  color: var(--accent);
}

.site-fullname {
  font-size: 0.65rem;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}

.nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── About Dropdown ──────────────────────────────────────── */
.nav-dropdown-wrap { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-arrow {
  transition: transform 0.2s;
}

.nav-dropdown-wrap:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--primary, #1a1a2e);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 0;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 1000;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ── About Subpage Cards ─────────────────────────────────── */
.about-subpages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.about-card {
  display: block;
  padding: 20px 22px;
  background: var(--ed-paper-warm, #faf9f6);
  border: 1px solid var(--ed-border, #e5e5e5);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  border-color: var(--ed-gold, #b8860b);
  box-shadow: 0 2px 12px rgba(184,134,11,.12);
}

.about-card-num {
  font-family: var(--ed-sans, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--ed-gold, #b8860b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.about-card-title {
  font-family: var(--ed-serif, 'Playfair Display', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ed-ink, #1a1a2e);
  margin-bottom: 6px;
  line-height: 1.3;
}

.about-card-desc {
  font-size: 0.82rem;
  color: var(--ed-ink-muted, #6b7280);
  line-height: 1.5;
}

.lang-switcher {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.lang-switcher a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
}

/* ── Main Layout ────────────────────────────────────────── */
main {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

main.wide {
  max-width: 1000px;
}

/* ── Homepage Hero ──────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-fullname {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-style: italic;
}

.hero-divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

/* ── Section Headings ───────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Post List (Card Style) ─────────────────────────────── */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.post-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.post-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.post-list-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.post-list time {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.post-list a.post-title {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color var(--transition);
}

.post-list a.post-title:hover { color: var(--accent); }

.post-list .post-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag.tag--narrative {
  background: rgba(233,69,96,.08);
  color: var(--accent);
  border-color: rgba(233,69,96,.2);
}

.tag.tag--up    { background: rgba(22,163,74,.1);  color: var(--up);   border-color: rgba(22,163,74,.25); }
.tag.tag--down  { background: rgba(220,38,38,.1);  color: var(--down); border-color: rgba(220,38,38,.25); }

/* ── Article Layout ─────────────────────────────────────── */
article {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.post-header {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-header-meta time {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  font-variant-numeric: tabular-nums;
}

.post-header-meta .tag {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.2);
}

.post-header-meta .tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.post-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-header .post-description {
  font-size: 0.975rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 680px;
}

.post-header .post-narrative-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.narrative-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(233,69,96,.2);
  color: #fca5a5;
  border: 1px solid rgba(233,69,96,.35);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Post Content Area ──────────────────────────────────── */
.post-body {
  padding: 2rem 2.5rem 2.5rem;
}

.content {
  font-size: 1.05rem;
  color: var(--text);
}

.content h1 { display: none; } /* title is in header */

.content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.content p { margin-top: 1rem; line-height: 1.8; }
.content p:first-child { margin-top: 0; }

.content strong { color: var(--primary); font-weight: 700; }

.content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover { color: var(--accent-hover); }

.content ul, .content ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.content li { margin-top: 0.4rem; }

.content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}

.content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Tables in Content ──────────────────────────────────── */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.content thead th {
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content tbody tr { transition: background var(--transition); }
.content tbody tr:hover { background: var(--bg-subtle); }

.content tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.content tbody tr:last-child td { border-bottom: none; }

/* ── Post Charts ─────────────────────────────────────────── */
.post-charts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.chart-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.chart-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}

.chart-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.85rem;
}

/* ── NI Score Bars ───────────────────────────────────────── */
.ni-scores {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ni-score-row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
}

.ni-score-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ni-score-bar-track {
  background: var(--border);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.ni-score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.ni-score-bar-fill--high    { background: linear-gradient(90deg, #dc2626, #ef4444); }
.ni-score-bar-fill--medium  { background: linear-gradient(90deg, #d97706, #f59e0b); }
.ni-score-bar-fill--low     { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }

.ni-score-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Prediction Cards ─────────────────────────────────────── */
.prediction-section {
  margin: 0 0 2rem;
  padding: 1.75rem;
  background: var(--primary);
  border-radius: var(--radius-xl);
  color: #fff;
}

.prediction-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 0.25rem;
}

.prediction-section-subtitle {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prediction-section-subtitle .accent { color: var(--accent); }

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

/* Individual Prediction Card */
.pred-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}

.pred-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.pred-card--up::before    { background: var(--up); }
.pred-card--down::before  { background: var(--down); }
.pred-card--neutral::before { background: var(--neutral); }

.pred-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

.pred-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pred-asset-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pred-direction {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.pred-direction--up    { color: #4ade80; }
.pred-direction--down  { color: #f87171; }
.pred-direction--neutral { color: #9ca3af; }

.pred-direction-arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.pred-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.65rem;
}

/* Confidence bar */
.pred-confidence {
  margin-bottom: 0.85rem;
}

.pred-confidence-track {
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.pred-confidence-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.7));
}

.pred-confidence-fill--up {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.pred-confidence-fill--down {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.pred-confidence-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,.4);
  margin-top: 0.3rem;
  text-align: right;
}

/* Prediction result windows */
.pred-results {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.pred-window {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 40px;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
}

.pred-window--hit     { background: rgba(22,163,74,.2);  border: 1px solid rgba(74,222,128,.25); }
.pred-window--miss    { background: rgba(220,38,38,.2);  border: 1px solid rgba(248,113,113,.25); }
.pred-window--pending { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }

.pred-window-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 0.2rem;
}

.pred-window-icon { font-size: 0.85rem; line-height: 1; }

.pred-window-pct {
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}

.pred-window--hit  .pred-window-pct { color: #4ade80; }
.pred-window--miss .pred-window-pct { color: #f87171; }
.pred-window--pending .pred-window-pct { color: rgba(255,255,255,.3); }

/* Prediction accuracy summary banner */
.pred-accuracy-banner {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}

.pred-accuracy-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.pred-accuracy-score.good  { color: #4ade80; }
.pred-accuracy-score.mid   { color: #fbbf24; }
.pred-accuracy-score.poor  { color: #f87171; }

/* ── Market Snapshot Grid (legacy) ──────────────────────── */
.market-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.market-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  transition: box-shadow var(--transition);
}

.market-tile:hover { box-shadow: var(--shadow-sm); }

/* ── Visual Block (post-charts) ──────────────────────────── */
.vis-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.vis-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.vis-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.vis-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vis-section-date {
  font-size: 0.72rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.vis-section-hint {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
}

/* Market snapshot tiles */
.mkt-snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.mkt-snap-tile {
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.mkt-snap-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.mkt-snap-tile--up {
  background: rgba(22,163,74,0.06);
  border-color: rgba(22,163,74,0.2);
}
.mkt-snap-tile--up::before   { background: var(--up); }

.mkt-snap-tile--down {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.2);
}
.mkt-snap-tile--down::before { background: var(--down); }

.mkt-snap-tile--flat {
  background: var(--bg-subtle);
  border-color: var(--border);
}

.mkt-snap-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mkt-snap-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-snap-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mkt-snap-chg {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.mkt-snap-tile--up   .mkt-snap-chg { color: var(--up); }
.mkt-snap-tile--down .mkt-snap-chg { color: var(--down); }
.mkt-snap-tile--flat .mkt-snap-chg { color: var(--neutral); }

/* Chart canvas wrappers */
.vis-chart-wrap {
  position: relative;
  width: 100%;
}

.vis-chart-wrap--price {
  height: 220px;
}

.vis-chart-wrap--ni {
  height: 280px;
}

.market-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.market-tile-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.market-tile-change {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}

.market-tile-change.up    { color: var(--up); }
.market-tile-change.down  { color: var(--down); }
.market-tile-change.flat  { color: var(--neutral); }

/* ── Stats Page ──────────────────────────────────────────── */
.stats-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.stats-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.stats-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.stats-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.stats-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  min-width: 140px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card--accent {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.stat-card--accent .stat-label {
  color: rgba(255,255,255,.55);
}

.stat-card--brier {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #f1f5f9;
}
.stat-card--brier .stat-label {
  color: rgba(241,245,249,.55);
}

.stats-humor {
  font-size: 0.9rem;
  color: #78520a;
  font-style: italic;
  background: #fff8e1;
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0.5rem auto 0;
  max-width: 540px;
  text-align: left;
}
.stats-brier-explain {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

.stats-section {
  margin-top: 2.5rem;
}

.stats-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.window-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.window-card:hover { box-shadow: var(--shadow-sm); }

.window-card--good  { background: #f0fdf4; border-color: #86efac; }
.window-card--mid   { background: #fefce8; border-color: #fde047; }
.window-card--poor  { background: #fff1f2; border-color: #fca5a5; }

.window-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.window-pct {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.window-detail {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg-card);
}

.stats-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 0.875rem;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-table th:first-child { text-align: left; }

.stats-table td {
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.stats-table td.asset-name {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: var(--bg-subtle); }

.cell-good { color: var(--up);   font-weight: 700; }
.cell-mid  { color: #ca8a04;     font-weight: 700; }
.cell-poor { color: var(--down); font-weight: 700; }

.stats-no-data {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
}

.stats-no-data-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--bg-card);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand .accent { color: var(--accent); }

.footer-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.footer-links {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Disclaimer ─────────────────────────────────────────── */
.disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  header nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; }

  main { margin: 1.5rem auto; padding: 0 1rem; }

  .post-header { padding: 1.5rem 1.25rem 1.25rem; }
  .post-header h1 { font-size: 1.4rem; }
  .post-body { padding: 1.25rem 1.25rem 1.5rem; }

  .prediction-section { padding: 1.25rem; }
  .prediction-grid { grid-template-columns: 1fr 1fr; }

  .market-snapshot { grid-template-columns: repeat(2, 1fr); }

  .stats-cards { gap: 0.75rem; }
  .stat-card { padding: 1rem 1.25rem; min-width: 110px; }
  .stat-number { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .prediction-grid { grid-template-columns: 1fr; }
  .window-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   EDITORIAL POST DESIGN SYSTEM
   Newspaper-style layout for all post pages.
   Scoped to .editorial-post — does not affect list/home pages.
   ═══════════════════════════════════════════════════════════ */

/* ── Editorial Design Tokens ────────────────────────────── */
.editorial-post {
  --ed-ink:          #1a1a2e;
  --ed-ink-light:    #3d3d5c;
  --ed-ink-muted:    #7a7a99;
  --ed-paper:        #faf9f6;
  --ed-paper-warm:   #f5f0e8;
  --ed-accent:       #c0392b;
  --ed-gold:         #b8860b;
  --ed-blue:         #1a5276;
  --ed-border:       #d5d0c4;
  --ed-border-light: #e8e4da;
  --ed-serif:        'Noto Serif KR', 'Playfair Display', Georgia, serif;
  --ed-sans:         'Noto Sans KR', 'Inter', -apple-system, sans-serif;
  --ed-radius:       4px;
  background: var(--ed-paper);
  border-radius: 0;
  box-shadow: none;
  max-width: 860px;
  margin: 0 auto;
  overflow: visible;
}

/* ── Masthead Strip ─────────────────────────────────────── */
.ed-masthead {
  background: var(--ed-ink);
  border-bottom: 3px solid var(--ed-accent);
  padding: 12px 24px;
}
.ed-masthead-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ed-masthead-brand {
  font-family: var(--ed-serif);
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ed-masthead-divider { color: var(--ed-accent); font-weight: 900; }
.ed-masthead-tagline { color: rgba(255,255,255,0.5); }
.ed-masthead-date    { color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.ed-masthead-published { color: rgba(255,255,255,0.45); font-size: 0.85em; margin-left: 0.3em; }
.ed-published-time   { color: rgba(255,255,255,0.5); font-size: 0.9em; margin-left: 0.5em; font-variant-numeric: tabular-nums; }

/* ── Hero ───────────────────────────────────────────────── */
.ed-hero {
  background: var(--ed-ink);
  padding: 0;
  border-bottom: 2px solid var(--ed-ink);
}
.ed-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 36px;
}
.ed-hero-category {
  display: inline-block;
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--ed-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1.5px solid var(--ed-accent);
}
.ed-hero-title {
  font-family: var(--ed-serif);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.ed-hero-subtitle {
  font-family: var(--ed-sans);
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 16px;
}
.ed-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  font-family: var(--ed-sans);
  letter-spacing: 0.04em;
}
.ed-narrative-tag {
  background: rgba(192,57,43,0.25);
  color: #fca5a5;
  border: 1px solid rgba(192,57,43,0.4);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Body Container ─────────────────────────────────────── */
.ed-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Section Base ───────────────────────────────────────── */
.ed-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--ed-border-light);
}
.ed-section:last-of-type { border-bottom: none; }
.ed-section-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ed-section-label {
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: var(--ed-accent);
  text-transform: uppercase;
}
.ed-section-hint {
  font-family: var(--ed-sans);
  font-size: 10px;
  color: var(--ed-ink-muted);
  font-style: italic;
}
.ed-section-date {
  font-family: var(--ed-sans);
  font-size: 11px;
  color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
}
.ed-section-title {
  font-family: var(--ed-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ed-ink);
  margin-bottom: 20px;
  line-height: 1.3;
}

/* ── Market Ticker ──────────────────────────────────────── */
.ed-ticker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--ed-border);
  border: 1px solid var(--ed-border);
  margin-top: 8px;
}
.ed-ticker-item {
  background: var(--ed-paper);
  padding: 14px 12px;
  text-align: center;
  position: relative;
  transition: background 0.15s;
}
.ed-ticker-item:hover { background: var(--ed-paper-warm); }
.ed-ticker-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.ed-ticker-item--up::before   { background: var(--ed-accent); }
.ed-ticker-item--down::before { background: var(--ed-blue); }
.ed-ticker-item--flat::before { background: var(--ed-border); }
.ed-ticker-name {
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--ed-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-ticker-price {
  font-family: var(--ed-sans);
  font-size: 17px;
  font-weight: 900;
  color: var(--ed-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ed-ticker-change {
  font-family: var(--ed-sans);
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.ed-ticker-item--up   .ed-ticker-change { color: var(--ed-accent); }
.ed-ticker-item--down .ed-ticker-change { color: var(--ed-blue); }
.ed-ticker-item--flat .ed-ticker-change { color: var(--ed-ink-muted); }

/* ── NI Gauge Bars ──────────────────────────────────────── */
.ed-section--gauges { background: transparent; }
.ed-gauges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-gauge-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  align-items: center;
  gap: 12px;
}
.ed-gauge-label {
  font-family: var(--ed-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ed-ink-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-gauge-track {
  height: 9px;
  background: var(--ed-border-light);
  border-radius: 4px;
  overflow: visible;
  position: relative;
}
.ed-gauge-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}
.ed-gauge-fill--red    { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.ed-gauge-fill--orange { background: linear-gradient(90deg, #f39c12, #d68910); }
.ed-gauge-fill--blue   { background: linear-gradient(90deg, #3498db, #2471a3); }
.ed-gauge-avg-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  transform: translateX(-50%);
  cursor: help;
  z-index: 2;
}
.ed-gauge-avg-marker::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26,26,46,0.95);
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.ed-gauge-avg-marker:hover::after {
  opacity: 1;
}
.ed-gauge-val {
  font-family: var(--ed-sans);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ed-ink-muted);
}
.ed-gauge-val--red    { color: var(--ed-accent); }
.ed-gauge-val--orange { color: var(--ed-gold); }
.ed-gauge-val--blue   { color: var(--ed-blue); }

/* ── Editorial Content (markdown body) ─────────────────── */
.ed-section--content { border-bottom: 2px solid var(--ed-ink); }
.editorial-content {
  font-family: var(--ed-sans);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ed-ink-light);
}
.editorial-content > *:first-child { margin-top: 0; }
.editorial-content h1 { display: none; } /* title in hero */
.editorial-content h2 {
  font-family: var(--ed-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ed-ink);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ed-border);
}
.editorial-content h3 {
  font-family: var(--ed-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ed-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.editorial-content p {
  margin-top: 1rem;
  color: var(--ed-ink-light);
}
.editorial-content strong { color: var(--ed-ink); font-weight: 700; }
.editorial-content em { font-style: italic; color: var(--ed-ink-muted); }
.editorial-content a { color: var(--ed-accent); text-decoration: underline; text-underline-offset: 2px; }
.editorial-content a:hover { color: var(--ed-accent-dark, #922b21); }
.editorial-content ul,
.editorial-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.editorial-content li { margin-bottom: 0.4rem; }
.editorial-content blockquote {
  border-left: 4px solid var(--ed-accent);
  background: var(--ed-paper-warm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ed-ink-muted);
}
.editorial-content hr {
  border: none;
  border-top: 1px solid var(--ed-border);
  margin: 2rem 0;
}
/* Tables inside editorial content */
.editorial-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 13px;
  border: 1px solid var(--ed-border);
}
.editorial-content thead th {
  background: var(--ed-ink);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.editorial-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ed-border-light);
  vertical-align: middle;
}
.editorial-content tbody tr:hover { background: var(--ed-paper-warm); }
/* Highlight text */
.editorial-content .highlight {
  background: linear-gradient(transparent 60%, rgba(192,57,43,0.12) 60%);
  padding: 0 2px;
}

/* ── Prediction Impact Table ────────────────────────────── */
.ed-pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--ed-border);
}
.ed-pred-table thead th {
  background: var(--ed-ink);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ed-pred-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ed-border-light);
  vertical-align: middle;
  font-family: var(--ed-sans);
}
.ed-pred-table tbody tr:hover { background: var(--ed-paper-warm); }
.ed-pred-asset {
  font-weight: 700;
  color: var(--ed-ink);
}
.ed-pred-dir {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.ed-pred-dir--up      { color: var(--ed-accent); }
.ed-pred-dir--down    { color: var(--ed-blue); }
.ed-pred-dir--neutral { color: var(--ed-ink-muted); }
.ed-pred-label { color: var(--ed-ink-muted); font-size: 12px; }
.ed-conf-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-conf-bar {
  width: 64px;
  height: 6px;
  background: var(--ed-border-light);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.ed-conf-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.ed-conf-fill--up      { background: var(--ed-accent); }
.ed-conf-fill--down    { background: var(--ed-blue); }
.ed-conf-fill--neutral { background: var(--ed-ink-muted); }
.ed-conf-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Result tracking windows */
.ed-result-windows {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ed-rw {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.ed-rw--hit     { background: rgba(22,163,74,0.15);   color: #15803d; border: 1px solid rgba(22,163,74,0.3); }
.ed-rw--miss    { background: rgba(220,38,38,0.12);   color: #dc2626; border: 1px solid rgba(220,38,38,0.25); }
.ed-rw--pending { background: rgba(120,120,150,0.08); color: var(--ed-ink-muted); border: 1px solid var(--ed-border); }
.ed-rw-pending-all { font-size: 12px; color: var(--ed-ink-muted); }

/* ── Key Numbers Scorecard ──────────────────────────────── */
.ed-scorecard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ed-border);
  border: 1px solid var(--ed-border);
}
.ed-sc-item {
  background: var(--ed-paper);
  padding: 20px 22px;
  transition: background 0.15s;
}
.ed-sc-item:hover { background: var(--ed-paper-warm); }
.ed-sc-label {
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-ink-muted);
  margin-bottom: 6px;
}
.ed-sc-value {
  font-family: var(--ed-sans);
  font-size: 26px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--ed-ink);
}
.ed-sc-value--accent  { color: var(--ed-accent); }
.ed-sc-value--gold    { color: var(--ed-gold); }
.ed-sc-value--blue    { color: var(--ed-blue); }
.ed-sc-value--neutral { color: var(--ed-ink-muted); }
.ed-sc-note {
  font-family: var(--ed-sans);
  font-size: 11px;
  color: var(--ed-ink-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Insight Box ─────────────────────────────────────────── */
.ed-insight {
  background: var(--ed-ink);
  color: #fff;
  padding: 32px 36px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.ed-insight::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 22px;
  font-family: var(--ed-serif);
  font-size: 80px;
  color: var(--ed-accent);
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
}
.ed-insight-label {
  font-family: var(--ed-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--ed-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ed-insight-title {
  font-family: var(--ed-serif);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
}
.ed-insight-body {
  font-family: var(--ed-sans);
  font-size: 14.5px;
  line-height: 1.9;
  color: #c8c4bc;
}
.ed-insight-body p { margin-bottom: 12px; }
.ed-insight-body p:last-child { margin-bottom: 0; }
.ed-insight-body strong { color: #fff; }

/* ── Tomorrow Signals ───────────────────────────────────── */
.ed-tomorrow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ed-tomorrow-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ed-border-light);
  align-items: start;
}
.ed-tomorrow-item:last-child { border-bottom: none; }
.ed-tomorrow-num {
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ed-accent);
  line-height: 1.2;
  padding-top: 2px;
}
.ed-tomorrow-title {
  font-family: var(--ed-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ed-ink);
  margin-bottom: 4px;
}
.ed-tomorrow-body {
  font-family: var(--ed-sans);
  font-size: 13.5px;
  color: var(--ed-ink-light);
  line-height: 1.7;
}

/* ── Tags ────────────────────────────────────────────────── */
.ed-tags {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 22px;
  background: var(--ed-paper-warm);
  border: 1px solid var(--ed-border);
  border-radius: 4px;
  flex-wrap: wrap;
}
.ed-tags-label {
  font-family: var(--ed-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ed-ink-muted);
  padding-top: 3px;
  white-space: nowrap;
}
.ed-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ed-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ed-paper);
  border: 1px solid var(--ed-border);
  border-radius: 20px;
  font-family: var(--ed-sans);
  font-size: 11.5px;
  color: var(--ed-ink-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ed-tag:hover {
  background: var(--ed-gold);
  color: #fff;
  border-color: var(--ed-gold);
}

/* ── Disclaimer ─────────────────────────────────────────── */
.ed-disclaimer {
  background: var(--ed-paper-warm);
  border: 1px solid var(--ed-border);
  padding: 18px 22px;
  margin-top: 32px;
  font-family: var(--ed-sans);
  font-size: 11.5px;
  color: var(--ed-ink-muted);
  line-height: 1.7;
}
.ed-disclaimer strong { color: var(--ed-ink-light); }

/* ── Social Share Buttons ───────────────────────────────── */
.ed-share {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--ed-border);
  text-align: center;
}
.ed-share-label {
  font-family: var(--ed-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ed-ink-muted);
  margin-bottom: 14px;
}
.ed-share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ed-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ed-border);
  background: var(--ed-paper);
  color: var(--ed-ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--ed-sans);
  font-size: 12px;
}
.ed-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ed-share-btn--x:hover { background: #000; color: #fff; border-color: #000; }
.ed-share-btn--facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.ed-share-btn--linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.ed-share-btn--kakao:hover { background: #fee500; color: #3c1e1e; border-color: #fee500; }
.ed-share-btn--line:hover { background: #06c755; color: #fff; border-color: #06c755; }
.ed-share-btn--telegram:hover { background: #26a5e4; color: #fff; border-color: #26a5e4; }
.ed-share-btn--threads:hover { background: #000; color: #fff; border-color: #000; }
.ed-share-btn--copy {
  width: auto;
  border-radius: 21px;
  padding: 0 16px;
}
.ed-share-btn--copy:hover { background: var(--ed-gold); color: #fff; border-color: var(--ed-gold); }
.ed-share-btn--copied { background: #22c55e !important; color: #fff !important; border-color: #22c55e !important; }
.ed-share-copy-text { font-size: 12px; font-weight: 500; }

/* ── Auth UI (Header) ──────────────────────────────────── */
.retic-auth { display: flex; align-items: center; margin-left: 12px; }
.retic-login-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #e0e0e0; padding: 5px 12px; border-radius: 20px;
  cursor: pointer; font-size: 12px; font-family: var(--ed-sans);
  transition: all 0.2s;
}
.retic-login-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.retic-user-menu {
  display: flex; align-items: center; gap: 8px;
}
.retic-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--ed-gold);
}
.retic-user-name {
  font-size: 12px; color: #e0e0e0; font-family: var(--ed-sans);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.retic-logout-btn {
  background: none; border: none; color: #999; cursor: pointer;
  padding: 4px; display: flex; align-items: center;
  transition: color 0.2s;
}
.retic-logout-btn:hover { color: #ef4444; }

/* ── User Notes Section ────────────────────────────────── */
.ed-note-section {
  margin-top: 24px;
  padding: 18px;
  background: var(--ed-paper-warm);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
}
.ed-note-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ed-sans); font-size: 13px; font-weight: 600;
  color: var(--ed-ink-light); margin-bottom: 10px;
}
.ed-note-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid var(--ed-border);
  border-radius: 4px; font-family: var(--ed-sans); font-size: 13px;
  background: var(--ed-paper); color: var(--ed-ink);
  resize: vertical; min-height: 60px;
}
.ed-note-input:focus { outline: none; border-color: var(--ed-gold); }
.ed-note-save {
  margin-top: 8px; padding: 6px 20px;
  background: var(--ed-gold); color: #fff; border: none;
  border-radius: 4px; font-family: var(--ed-sans); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.ed-note-save:hover { opacity: 0.85; }

/* ── My Page ───────────────────────────────────────────── */
.mypage-guest {
  text-align: center; padding: 32px 16px; color: var(--ed-ink-muted);
  font-family: var(--ed-sans); font-size: 14px;
}
.mypage-guest-icon { margin-bottom: 12px; color: var(--ed-ink-muted); }
.mypage-list { display: flex; flex-direction: column; gap: 10px; }
.mypage-card {
  padding: 14px 18px; background: var(--ed-paper-warm);
  border: 1px solid var(--ed-border); border-radius: 6px;
  transition: border-color 0.2s;
}
.mypage-card:hover { border-color: var(--ed-gold); }
.mypage-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.mypage-card-title {
  font-family: var(--ed-sans); font-size: 14px; font-weight: 600;
  color: var(--ed-blue); text-decoration: none;
}
.mypage-card-title:hover { text-decoration: underline; }
.mypage-card-date {
  font-family: var(--ed-sans); font-size: 11px; color: var(--ed-ink-muted);
  white-space: nowrap;
}
.mypage-card-note {
  font-family: var(--ed-sans); font-size: 13px; color: var(--ed-ink-light);
  line-height: 1.6; white-space: pre-wrap;
}
.mypage-card--history {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
}
.mypage-empty {
  text-align: center; padding: 24px; color: var(--ed-ink-muted);
  font-family: var(--ed-sans); font-size: 13px;
}

/* ── Editorial Responsive ───────────────────────────────── */
@media (max-width: 720px) {
  .ed-body { padding: 0 16px 36px; }
  .ed-hero-inner { padding: 28px 16px 24px; }
  .ed-masthead-inner { gap: 0.5rem; font-size: 10px; }
  .ed-masthead-tagline { display: none; }
  .ed-gauge-row { grid-template-columns: 110px 1fr 36px; gap: 8px; }
  .ed-gauge-label { font-size: 11px; }
  .ed-scorecard { grid-template-columns: 1fr; }
  .ed-ticker { grid-template-columns: repeat(3, 1fr); }
  .ed-insight { padding: 24px 20px; }
  .ed-section-title { font-size: 18px; }
  .ed-hero-title { font-size: clamp(20px, 5vw, 28px); }
  .ed-pred-table { font-size: 12px; }
  .ed-pred-table thead th, .ed-pred-table tbody td { padding: 8px 10px; }
  .ed-conf-bar { width: 44px; }
}
@media (max-width: 480px) {
  .ed-ticker { grid-template-columns: repeat(2, 1fr); }
  .ed-tomorrow-item { grid-template-columns: 30px 1fr; gap: 10px; }
  .ed-tomorrow-num { font-size: 18px; }
  .ed-stocks-grid { grid-template-columns: 1fr !important; }
}

/* ── Stocks to Watch ─────────────────────────────────── */
.ed-section--stocks {
  padding: 28px 0;
}
.ed-stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ed-stock-card {
  background: var(--ed-bg-card, #fafaf8);
  border: 1px solid var(--ed-border, #e5e5e0);
  border-radius: 10px;
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ed-stock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ed-stock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ed-stock-emoji {
  font-size: 1.3em;
  line-height: 1;
}
.ed-stock-name {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ed-ink, #1a1a1a);
}
.ed-stock-ticker {
  font-family: 'Inter', monospace;
  font-size: 12px;
  color: var(--ed-ink-muted, #888);
  font-weight: 400;
}
.ed-stock-change {
  margin-left: auto;
  font-family: 'Inter', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.ed-stock-up {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.ed-stock-down {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}
.ed-stock-flat {
  color: var(--ed-ink-muted, #888);
  background: rgba(0, 0, 0, 0.04);
}
.ed-stock-reason {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ed-ink-secondary, #444);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   About Hub Page
   ═══════════════════════════════════════════════════════════ */

.about-hub-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Hero */
.about-hub-hero {
  background: #1a1a2e;
  margin: 0 -20px 36px;
  padding: 48px 20px 40px;
  border-radius: 0 0 16px 16px;
}
.about-hub-hero-inner { max-width: 640px; }
.about-hub-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e94560;
  margin-bottom: 12px;
}
.about-hub-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 14px;
}
.about-hub-subtitle {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
  margin: 0 0 20px;
}
.about-hub-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.about-hub-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* Intro paragraph */
.about-hub-intro {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 40px;
}
.about-hub-intro p { margin: 0 0 14px; }
.about-hub-intro p:last-child { margin: 0; }

/* Chapter cards */
.about-hub-chapters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 48px;
}
.about-hub-chapter {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  margin-bottom: 10px;
}
.about-hub-chapter:hover {
  border-color: #e94560;
  box-shadow: 0 4px 20px rgba(233,69,96,.10);
  transform: translateY(-1px);
}
.about-hub-chapter-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #e94560;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.about-hub-chapter-body { flex: 1; min-width: 0; }
.about-hub-chapter-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.about-hub-chapter-summary {
  font-size: 13.5px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 10px;
}
.about-hub-chapter-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #e94560;
}

/* Promise section */
.about-hub-promise {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 28px 28px;
  margin-bottom: 24px;
}
.about-hub-promise-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-hub-promise-icon { flex-shrink: 0; }
.about-hub-promise-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.about-hub-promise-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  margin: 0;
}

/* Disclaimer */
.about-hub-disclaimer {
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════
   About Subpage Layout
   ═══════════════════════════════════════════════════════════ */

.about-subpage-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Breadcrumb */
.about-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  padding: 20px 0 0;
  margin-bottom: 28px;
}
.about-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.about-breadcrumb a:hover { color: #e94560; }
.about-breadcrumb span { color: #333; font-weight: 500; }

/* Subpage hero */
.about-subpage-hero {
  background: #1a1a2e;
  margin: 0 -20px 28px;
  padding: 36px 20px 32px;
}
.about-subpage-hero-inner { max-width: 640px; }
.about-chapter-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #e94560;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.about-subpage-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 12px;
}
.about-subpage-desc {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0 0 16px;
}
.about-subpage-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.about-read-time {
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.about-subpage-series {
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}

/* Chapter progress bar */
.about-chapter-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.about-progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.about-progress-step:hover {
  border-color: #e94560;
  background: rgba(233,69,96,.06);
}
.about-progress-step.active {
  border-color: #e94560;
  background: #e94560;
}
.about-progress-num {
  font-size: 12px;
  font-weight: 700;
  color: #888;
}
.about-progress-step.active .about-progress-num { color: #fff; }

/* Content body */
.about-subpage-body {
  margin-bottom: 48px;
}
.about-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: #2c2c2c;
}
.about-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.about-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 28px 0 10px;
}
.about-content p { margin: 0 0 18px; }
.about-content ul, .about-content ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.about-content li { margin-bottom: 6px; }
.about-content strong { color: #1a1a2e; font-weight: 700; }
.about-content em { font-style: italic; }

/* All chapters navigation (bottom of subpage) */
.about-all-chapters {
  background: #1a1a2e;
  border-radius: 14px;
  padding: 32px 28px;
  margin-bottom: 40px;
}
.about-all-chapters-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e94560;
  margin-bottom: 18px;
  text-align: center;
}
.about-all-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-all-chapters-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
}
.about-all-chapters-item:hover {
  background: rgba(255,255,255,.06);
}
.about-all-chapters-item.is-current {
  background: rgba(233,69,96,.12);
  pointer-events: none;
}
.about-all-chapters-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.about-all-chapters-item.is-current .about-all-chapters-num {
  background: #e94560;
  color: #fff;
}
.about-all-chapters-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.about-all-chapters-item.is-current .about-all-chapters-name {
  color: #fff;
  font-weight: 600;
}
.about-all-chapters-item:hover .about-all-chapters-name {
  color: #fff;
}
.about-all-chapters-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.about-all-chapters-back:hover {
  color: #e94560;
}

/* ═══════════════════════════════════════════════════════════
   Infographic Base Styles
   ═══════════════════════════════════════════════════════════ */

.ni-infographic {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.ni-ig-header {
  background: #1a1a2e;
  padding: 18px 24px;
}
.ni-ig-chapter-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e94560;
  margin-bottom: 5px;
}
.ni-ig-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── Chapter 1: Compare + Flow ──────────────────────────── */
.ni-ig-compare {
  display: flex;
  align-items: stretch;
  padding: 28px 24px 24px;
  gap: 0;
}
.ni-ig-compare-col {
  flex: 1;
  padding: 0 16px;
}
.ni-ig-compare-col--left { border-right: 1px solid #eee; }
.ni-ig-compare-vs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.ni-ig-vs-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f5f7;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #888;
}
.ni-ig-compare-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #888;
  margin-bottom: 14px;
}
.ni-ig-compare-col--right .ni-ig-compare-label { color: #e94560; }
.ni-ig-compare-items { display: flex; flex-direction: column; gap: 14px; }
.ni-ig-compare-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ni-ig-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 26px;
}
.ni-ig-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.ni-ig-item-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.45;
}

.ni-ig-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 18px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
.ni-ig-flow-step {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  white-space: nowrap;
}
.ni-ig-flow-step--accent {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}
.ni-ig-flow-step--muted {
  background: #f4f5f7;
  color: #999;
}
.ni-ig-flow-arrow {
  font-size: 16px;
  color: #ccc;
  padding: 0 8px;
  flex-shrink: 0;
}
.ni-ig-flow-note {
  width: 100%;
  margin-top: 10px;
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}

/* ── Chapter 2: SIR Model ───────────────────────────────── */
.ni-sir-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 20px;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.ni-sir-node {
  flex: 1 0 100px;
  min-width: 100px;
  max-width: 180px;
  text-align: center;
  padding: 16px 6px;
}
.ni-sir-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.ni-sir-node--s .ni-sir-badge { background: rgba(91,155,213,.15); color: #5B9BD5; }
.ni-sir-node--i .ni-sir-badge { background: rgba(233,69,96,.15); color: #e94560; }
.ni-sir-node--r .ni-sir-badge { background: rgba(46,170,130,.15); color: #2EAA82; }
.ni-sir-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.3;
}
.ni-sir-name span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #aaa;
  font-style: italic;
}
.ni-sir-desc { font-size: 12px; color: #777; line-height: 1.5; }
.ni-sir-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  flex-shrink: 0;
}
.ni-sir-arrow-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #e94560, #ddd);
  position: relative;
}
.ni-sir-arrow-line::after {
  content: '▶';
  position: absolute;
  right: -8px;
  top: -8px;
  font-size: 10px;
  color: #ddd;
}
.ni-sir-rate { font-size: 10.5px; color: #aaa; }

.ni-r0-section {
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
.ni-r0-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
}
.ni-r0-grid { display: flex; flex-direction: column; gap: 10px; }
.ni-r0-item {
  display: grid;
  grid-template-columns: 30px 120px 1fr auto;
  align-items: center;
  gap: 10px;
}
.ni-r0-rank { font-size: 11px; font-weight: 700; color: #e94560; }
.ni-r0-label { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.ni-r0-bar-wrap {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.ni-r0-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e94560, #f87091);
  border-radius: 3px;
  transition: width .4s ease;
}
.ni-r0-example { font-size: 11.5px; color: #999; font-style: italic; }

.ni-lifecycle {
  padding: 20px 24px;
  border-top: 1px solid #eee;
}
.ni-lc-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
}
.ni-lc-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.ni-lc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ni-lc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5e7eb;
}
.ni-lc-dot--1 { background: #5B9BD5; }
.ni-lc-dot--2 { background: #7B74D1; }
.ni-lc-dot--3 { width: 20px; height: 20px; background: #e94560; }
.ni-lc-dot--4 { background: #DAA520; }
.ni-lc-dot--5 { background: #ccc; }
.ni-lc-step-label { font-size: 11.5px; color: #666; font-weight: 600; }
.ni-lc-step--peak .ni-lc-step-label { color: #e94560; font-weight: 700; }
.ni-lc-line {
  flex: 1;
  min-width: 20px;
  height: 2px;
  background: #e5e7eb;
  margin-bottom: 18px;
}
.ni-lc-line--peak { background: linear-gradient(90deg, #7B74D1, #e94560); }
.ni-lc-line--fade { background: linear-gradient(90deg, #e94560, #eee); }
.ni-lc-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}

/* ── Chapter 3: Historical Timeline ────────────────────── */
.ni-timeline {
  padding: 24px 24px 12px;
}
.ni-tl-era {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 3px solid #e5e7eb;
  margin-bottom: 4px;
}
.ni-tl-era:hover { border-left-color: #e94560; }
.ni-tl-era--current {
  background: rgba(233,69,96,.04);
  border-left-color: #e94560;
}
.ni-tl-year {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #e94560;
  min-width: 52px;
  padding-top: 2px;
}
.ni-tl-content { flex: 1; }
.ni-tl-narrative {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}
.ni-tl-logic {
  font-size: 12.5px;
  color: #777;
  margin-bottom: 5px;
  font-style: italic;
}
.ni-tl-crash {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
}
.ni-tl-crash--unknown { color: #888; font-style: italic; }
.ni-tl-connector {
  width: 2px;
  height: 6px;
  background: #e5e7eb;
  margin: 0 0 0 49px;
}

.ni-pattern-box {
  margin: 4px 24px 24px;
  background: #1a1a2e;
  border-radius: 10px;
  padding: 20px 20px;
}
.ni-pattern-title {
  font-size: 12px;
  font-weight: 700;
  color: #e94560;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.ni-pattern-steps { display: flex; flex-direction: column; gap: 2px; }
.ni-ps-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}
.ni-ps-step--warn {
  background: rgba(233,69,96,.12);
  border: 1px solid rgba(233,69,96,.25);
}
.ni-ps-num {
  font-size: 14px;
  flex-shrink: 0;
  width: 22px;
  color: rgba(255,255,255,.4);
}
.ni-ps-text { font-size: 13.5px; color: rgba(255,255,255,.82); line-height: 1.45; }
.ni-ps-text strong { color: #fff; }
.ni-ps-arrow { font-size: 13px; color: rgba(255,255,255,.25); padding: 1px 0 1px 32px; }

/* ── Chapter 4: NI Categories ───────────────────────────── */
.ni-categories {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ni-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ni-cat-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.ni-cat-body { flex: 1; min-width: 0; }
.ni-cat-name { font-size: 13px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.ni-cat-bar-wrap {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}
.ni-cat-bar { height: 100%; border-radius: 3px; }
.ni-cat-effect { font-size: 11px; color: #999; }
.ni-cat-score {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ni-ni-scale {
  padding: 18px 24px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
.ni-scale-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 12px;
}
.ni-scale-bar-wrap { margin-bottom: 8px; }
.ni-scale-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
}
.ni-scale-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  padding: 0 8px;
}
.ni-scale-zone--low { flex: 3; background: #dbeafe; color: #1d4ed8; }
.ni-scale-zone--mid { flex: 4; background: #f0fdf4; color: #166534; }
.ni-scale-zone--high { flex: 3; background: rgba(233,69,96,.12); color: #e94560; }
.ni-scale-notes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.ni-scale-note { font-size: 11px; color: #aaa; }
.ni-scale-note--high { color: #e94560; }

/* ── Chapter 5: Feedback Loop ───────────────────────────── */
.ni-feedback-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 16px;
  gap: 0;
  flex-wrap: wrap;
}
.ni-fl-node {
  flex-shrink: 0;
  text-align: center;
  padding: 18px 20px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-width: 140px;
}
.ni-fl-node--narrative { border-color: #e94560; background: rgba(233,69,96,.04); }
.ni-fl-node--data { border-color: #5B9BD5; background: rgba(91,155,213,.04); }
.ni-fl-icon { font-size: 28px; margin-bottom: 6px; }
.ni-fl-label { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 3px; }
.ni-fl-sublabel { font-size: 11.5px; color: #999; }
.ni-fl-arrows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
  min-width: 130px;
  align-items: center;
}
.ni-fl-arrow {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ni-fl-arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e94560, #5B9BD5);
  position: relative;
}
.ni-fl-arrow--bottom .ni-fl-arrow-line {
  background: linear-gradient(90deg, #5B9BD5, #e94560);
}
.ni-fl-arrow-label { font-size: 11px; color: #aaa; white-space: nowrap; }

.ni-framing-box {
  margin: 0 24px 0;
  padding: 18px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-top: 1px solid #eee;
}
.ni-framing-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 10px;
}
.ni-framing-data {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
}
.ni-framing-split {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.ni-framing-side {
  flex: 1;
  min-width: 140px;
  padding: 14px;
  border-radius: 8px;
}
.ni-framing-side--bear { background: rgba(220,38,38,.05); border: 1px solid rgba(220,38,38,.15); }
.ni-framing-side--bull { background: rgba(22,163,74,.05); border: 1px solid rgba(22,163,74,.15); }
.ni-framing-frame {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  margin-bottom: 6px;
  line-height: 1.4;
}
.ni-framing-frame small { font-weight: 400; display: block; }
.ni-framing-interp { font-size: 12.5px; color: #555; margin-bottom: 8px; line-height: 1.5; }
.ni-framing-result {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}
.ni-framing-result--down { background: rgba(220,38,38,.1); color: #dc2626; }
.ni-framing-result--up { background: rgba(22,163,74,.1); color: #16a34a; }
.ni-framing-vs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
}
.ni-framing-note {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.ni-sfp-box {
  margin: 0 24px 24px;
  padding: 18px 20px;
  background: #1a1a2e;
  border-radius: 10px;
}
.ni-sfp-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 12px;
}
.ni-sfp-chain {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.ni-sfp-step {
  flex: 1;
  min-width: 90px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 10px 8px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  margin: 3px;
}
.ni-sfp-step--result {
  background: rgba(233,69,96,.18);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(233,69,96,.35);
}
.ni-sfp-arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255,255,255,.25);
  padding: 0 2px;
}

/* ── Chapter 6: Signal Zones ─────────────────────────────── */
.ni-signal-zones {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 20px;
  flex-wrap: wrap;
}
.ni-sz-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  flex-shrink: 0;
}
.ni-sz-track {
  flex: 1;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  min-height: 80px;
  min-width: 200px;
}
.ni-sz-zone {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ni-sz-zone--low { background: #dbeafe; }
.ni-sz-zone--mid { background: #f0fdf4; }
.ni-sz-zone--high { background: rgba(233,69,96,.1); }
.ni-sz-range {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.ni-sz-zone--low .ni-sz-range { color: #1d4ed8; }
.ni-sz-zone--mid .ni-sz-range { color: #166534; }
.ni-sz-zone--high .ni-sz-range { color: #e94560; }
.ni-sz-name {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a2e;
}
.ni-sz-desc {
  font-size: 11.5px;
  color: #666;
  line-height: 1.45;
}

.ni-signals-grid {
  padding: 0 24px 20px;
}
.ni-sig-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 12px;
}
.ni-sig-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ni-sig-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 14px;
}
.ni-sig-num {
  font-size: 10px;
  font-weight: 800;
  color: #e94560;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.ni-sig-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.ni-sig-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
}
.ni-sig-desc span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}

.ni-retic-tools {
  padding: 0 24px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.ni-rt-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 12px;
}
.ni-rt-items { display: flex; flex-direction: column; gap: 10px; }
.ni-rt-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ni-rt-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
}
.ni-rt-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}
.ni-rt-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
}

.ni-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 24px 24px;
  background: rgba(233,69,96,.06);
  border: 1px solid rgba(233,69,96,.2);
  border-radius: 8px;
  padding: 14px 16px;
}
.ni-warn-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ni-warn-text {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}
.ni-warn-text strong { color: #e94560; }

/* ── Responsive adjustments ─────────────────────────────── */
@media (max-width: 640px) {
  .about-all-chapters { padding: 24px 18px; }
  .about-all-chapters-item { padding: 10px 12px; gap: 10px; }
  .about-all-chapters-name { font-size: 13px; }
  .ni-ig-compare { flex-direction: column; }
  .ni-ig-compare-col--left { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 16px; }
  .ni-sir-flow { justify-content: center; }
  .ni-framing-split { flex-direction: column; }
  .ni-sig-cards { grid-template-columns: 1fr; }
  .ni-r0-item { grid-template-columns: 30px 110px 1fr; }
  .ni-r0-example { display: none; }
  .about-hub-promise-inner { flex-direction: column; }
  .ni-signal-zones { flex-direction: column; }
  .ni-sz-track { flex-direction: column; min-height: auto; }
}
