﻿/* Apple-like visual layer: neutral palette, system type, thin nav, fewer labels. */

:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --mono: var(--sans);

  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-strong: #d2d2d7;
  --gold: #0071e3;
  --gold-soft: #0071e3;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --paper-3: #f5f5f7;
  --cream: #f5f5f7;

  --band-1: #ffffff;
  --band-2: #f5f5f7;
  --band-3: #ffffff;
  --band-dark: #000000;
  --band-surface: #ffffff;
  --band-line: #d2d2d7;
  --band-muted: #6e6e73;
}

html[data-theme="dark"] {
  --ink: #f5f5f7;
  --ink-soft: #d2d2d7;
  --muted: #86868b;
  --line: #424245;
  --line-strong: #424245;
  --gold: #2997ff;
  --gold-soft: #2997ff;
  --paper: #000000;
  --paper-2: #1d1d1f;
  --paper-3: #1d1d1f;
  --cream: #f5f5f7;

  --band-1: #000000;
  --band-2: #1d1d1f;
  --band-3: #000000;
  --band-dark: #000000;
  --band-surface: #1d1d1f;
  --band-line: #424245;
  --band-muted: #86868b;
}

body,
html[data-theme="dark"] body {
  background: var(--band-1);
  background-image: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Apple-like thin navigation, not a floating pill. */
.topbar {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid var(--band-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
}
html[data-theme="dark"] .topbar {
  background: rgba(0, 0, 0, 0.72);
}
.topbar.scrolled {
  top: 0;
  height: 48px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--band-line);
}
html[data-theme="dark"] .topbar.scrolled {
  background: rgba(0, 0, 0, 0.82);
}
.brand { gap: 9px; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.brand-text { font-size: 14px; line-height: 1.15; }
.brand-text em { font-size: 10px; letter-spacing: 0.02em; color: var(--muted); }

.nav {
  margin-left: auto;
  margin-right: auto;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.nav a {
  padding: 15px 0;
  border-radius: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.nav a:hover { background: transparent; color: var(--ink); }
.topbar .nav a.active {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  box-shadow: inset 0 -2px 0 var(--accent, #0071e3);
}
.top-actions { gap: 9px; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border-color: transparent; background: transparent; }
.icon-btn:hover { background: var(--paper-2); }
.text-size { border: 0; background: transparent; padding: 0; gap: 1px; }
.text-size button { min-width: 24px; padding: 4px 5px; border-radius: 6px; color: var(--muted); }
.text-size button.active { background: var(--ink); color: var(--paper); }
.top-progress .tp-ring { border-color: var(--band-line); }

/* Remove editorial labels and decorative strips. */
.eyebrow,
.sec-no,
.mini-label,
.hero-marquee { display: none !important; }

/* Hero: Apple product-page scale and whitespace. */
.hero {
  background: var(--band-1);
  padding-top: 132px;
  padding-bottom: 20px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 6.8vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.hero h1 .accent { color: #0071e3; }
.hero-lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.hero-actions { margin-top: 26px; gap: 12px; }
.btn {
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
}
.btn-primary { background: #0071e3; color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-ghost { border-color: #0071e3; color: #0071e3; background: transparent; }
.hero-stats {
  margin-top: 36px;
  gap: 0;
  border-top: 1px solid var(--band-line);
  padding-top: 18px;
  max-width: 620px;
}
.hero-stats div {
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--band-line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { font-family: var(--sans); font-size: 26px; font-weight: 600; }
.hero-stats span { font-size: 12px; color: var(--muted); }

.hero-visual {
  border-radius: 28px;
  border: 0;
  background: var(--band-2);
}
.hero-visual-head {
  padding: 18px 22px 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-visual-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--band-line);
  font-size: 11px;
  color: var(--muted);
}

/* Section headers: no label column, bigger body, calm rhythm. */
.section[data-band] {
  padding-top: 120px;
  padding-bottom: 120px;
}
.section-head,
.section-head.light {
  max-width: 900px;
}
.sec-title,
.section-head.light .sec-title {
  max-width: 900px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.sec-aside,
.section-head.light .sec-aside {
  max-width: 760px;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.section[data-band="dark"] .sec-title,
.section[data-band="dark"] .case-title { color: #f5f5f7 !important; }
.section[data-band="dark"] .sec-aside { color: #a1a1a6 !important; }

/* Cards: product tiles, no borders. */
.concept-card,
.foundation-card,
.evidence-card,
.perspective-card,
.global-card,
.gba-card,
.adv-card,
.briefing-card,
.toolbox-card {
  border: 0;
  border-radius: 24px;
  background: var(--band-2);
  box-shadow: none;
}
.section[data-band="2"] .concept-card,
.section[data-band="2"] .foundation-card,
.section[data-band="2"] .evidence-card,
.section[data-band="2"] .perspective-card,
.section[data-band="2"] .global-card,
.section[data-band="2"] .gba-card,
.section[data-band="2"] .adv-card,
.section[data-band="2"] .briefing-card,
.section[data-band="2"] .toolbox-card {
  background: var(--band-1);
}

/* Thin, neutral footer. */
.footer {
  background: var(--band-2);
  color: var(--ink-soft);
  border-top: 1px solid var(--band-line);
}
.footer-brand strong { color: var(--ink); font-family: var(--sans); }
.footer-brand span,
.footer-note,
.footer-disclaimer,
.footer-bottom { color: var(--muted); }
.footer-links a { color: var(--ink-soft); }
.footer-links { border-top-color: var(--band-line); }
.footer-bottom { border-top-color: var(--band-line); }
html[data-theme="dark"] .footer { background: #1d1d1f; }

@media (min-width: 901px) and (max-width: 1199px) {
  .nav { gap: 14px; }
  .nav a { font-size: 11px; }
}

@media (max-width: 900px) {
  .topbar {
    top: 0;
    height: 48px;
    width: 100%;
    padding: 0 16px;
    border-radius: 0;
  }
  .hero { padding-top: 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); }
  .hero-lead { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 12px 0; }
  .hero-stats div { padding-right: 16px; margin-right: 16px; }
  .section[data-band] { padding-top: 76px; padding-bottom: 76px; }
  .sec-title,
  .section-head.light .sec-title { font-size: clamp(2rem, 8vw, 2.9rem); }
  .sec-aside,
  .section-head.light .sec-aside { font-size: 16px; }
  .nav {
    margin-left: 0;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--band-line);
  }
  html[data-theme="dark"] .nav { background: rgba(0, 0, 0, 0.98); }
}




/* Fluid scale for large displays: fill the canvas without shrinking type. */
:root { --max: min(2400px, 94vw); }

body,
html[data-theme="dark"] body {
  font-size: clamp(17px, 1.05vw, 21px);
}
.hero { padding-top: clamp(132px, 7vw, 190px); }
.hero-grid { gap: clamp(30px, 4.5vw, 90px); }
.hero h1 { font-size: clamp(3.4rem, 7vw, 8.5rem); }
.hero-lead { max-width: 780px; font-size: clamp(18px, 1.3vw, 24px); }
.btn { font-size: clamp(14px, 0.85vw, 17px); }
.hero-stats strong { font-size: clamp(26px, 1.6vw, 34px); }
.hero-stats span { font-size: clamp(12px, 0.72vw, 15px); }

.section[data-band] { padding-top: clamp(110px, 8vw, 180px); padding-bottom: clamp(110px, 8vw, 180px); }
.section-head, .section-head.light { max-width: 1100px; }
.sec-title, .section-head.light .sec-title { font-size: clamp(2.5rem, 4.2vw, 6rem); }
.sec-aside, .section-head.light .sec-aside { max-width: 900px; font-size: clamp(18px, 1.2vw, 23px); }

.nav a { font-size: clamp(12px, 0.55vw, 15px); }
.brand-text { font-size: clamp(14px, 0.8vw, 17px); }
.brand-text em { font-size: clamp(10px, 0.58vw, 12px); }

/* Floor for metadata and card copy: no 8–10px text. */
.adv-no,
.adv-block b,
.adv-block p,
.adv-reading,
.toolbox-card strong,
.toolbox-card span,
.gc-en,
.gc-stance,
.gc-block b,
.gc-block p,
.gc-block li,
.gc-caution,
.global-channel b,
.global-channel strong,
.global-channel span,
.gba-snap small,
.gba-step p,
.gba-tag,
.gba-status,
.gba-logic,
.gba-personal-impact,
.gba-action span,
.gba-indicator span,
.module-coordinates b,
.module-coordinates p,
.deep-grid p,
.deep-links span,
.deep-chips span,
.briefing-tag,
.bc-watch span,
.metric-keywords,
.thesis-grid > div > span,
.term-short,
.term-long,
.hero-visual-head,
.hero-visual-foot,
.footer-disclaimer,
.footer-bottom {
  font-size: clamp(12px, 0.75vw, 15px);
  line-height: 1.6;
}

@media (max-width: 900px) {
  body,
  html[data-theme="dark"] body { font-size: 17px; }
  .hero { padding-top: 84px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); }
  .hero-lead { font-size: 17px; }
  .section[data-band] { padding-top: 76px; padding-bottom: 76px; }
  .sec-title,
  .section-head.light .sec-title { font-size: clamp(2rem, 8vw, 2.9rem); }
  .sec-aside,
  .section-head.light .sec-aside { font-size: 17px; }
  .nav a { font-size: 12px; }
}

/* Old component metadata: raise the floor so it reads like Apple footnotes, not microprint. */
.sc-no,
.sc-meta,
.fc-no,
.module-tab .mt-no,
.mi-kicker,
.mi-meta,
.cc-no,
.cc-en,
.cc-open,
.cp-date,
.cp-nature span,
.case-row.head,
.case-row,
.case-a,
.case-b,
.case-read,
.cs-desc,
.ind-note,
.data-note,
.map-toolbar,
.map-hint,
.map-legend,
.map-panel,
.hero-visual-head,
.hero-visual-foot {
  font-size: clamp(12px, 0.75vw, 15px) !important;
  line-height: 1.6;
}

.footer-note { font-size: clamp(13px, 0.8vw, 16px); line-height: 1.7; }
.footer-links { font-size: clamp(12px, 0.75vw, 15px); }

/* Brand mark: abstract two-line glyph, no redundant character. */
.brand-mark {
  display: grid;
  place-items: center;
}
.brand-mark::before {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}
.brand-mark::after { display: none !important; }


/* Auto-decorated terms must stay inline inside thesis headings. */
.thesis-grid .term,
.thesis-grid strong .term {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border-bottom: 1px dashed currentColor;
}

/* Central reading column: full-width bands, one centered field. */
.section-head,
.section-head.light {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-aside,
.section-head.light .sec-aside {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }

.thesis-index {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.thesis-index-head { text-align: center; }
.thesis-index-head p:not(.mini-label) { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .section-head,
  .section-head.light,
  .sec-aside,
  .section-head.light .sec-aside { text-align: left; }
}

/* Light bands: headings must be ink, not the dark-theme cream token. */
html:not([data-theme="dark"]) .section:not([data-band="dark"]) h2,
html:not([data-theme="dark"]) .section:not([data-band="dark"]) h3,
html:not([data-theme="dark"]) .section:not([data-band="dark"]) h4 {
  color: var(--ink);
}

/* Five-layer funnel: centered intro, list below. */
.funnel-block {
  display: block;
  max-width: 980px;
  margin: 72px auto 0;
  text-align: center;
}
.funnel-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.funnel-copy h3 {
  color: var(--ink);
  margin-bottom: 14px;
}
.funnel-copy p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.funnel-hint {
  justify-content: center;
  margin-top: 20px;
}
.funnel {
  max-width: 920px;
  margin: 32px auto 0;
  text-align: left;
}

/* Knowledge map: smaller, centered canvas. */
.map-body {
  display: block;
  max-width: 740px;
  margin: 18px auto 0;
}
.map-canvas svg {
  min-height: 0;
}
.map-panel { min-height: 0; margin-top: 14px; }


.map-toolbar {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* Module intro: centered header, summary below. */
.module-intro {
  display: block;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: 30px;
}
.mi-kicker {
  text-align: center;
  margin-bottom: 10px;
}
.mi-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.mi-question {
  display: block;
  max-width: 620px;
  margin: 8px auto 0;
  border-left: 0;
  padding-left: 0;
  text-align: center;
  font-size: clamp(13px, 0.85vw, 16px);
}
.mi-meta {
  justify-content: center;
  text-align: center;
}
.mi-summary {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: left;
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: 1.75;
}
@media (min-width: 901px) {
  .module-tabs { justify-content: center; }
}

/* Case section: neutral light band instead of a black block. */
.section-dark[data-band="2"] {
  background: var(--band-2);
  color: var(--ink);
}
html[data-theme="dark"] .section-dark[data-band="2"] { color: #f5f5f7; }

.case-panel { text-align: center; }
.cp-date,
.cp-name { text-align: center; }
.cp-nature { justify-content: center; }

.chain-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.chain-head h3 { text-align: center; }
.chain-head p { text-align: center; }

/* Timeline: centered spine, dates left, event cards right. */
.timeline {
  max-width: 960px;
  margin: 26px auto 0;
}
#timelineFilters {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.tl-item { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); }
.tl-date { text-align: right; padding-right: 10px; }
.tl-card { text-align: left; }

@media (max-width: 900px) {
  .timeline { max-width: none; }
  #timelineFilters { justify-content: flex-start; }
  .tl-item { grid-template-columns: 62px 18px minmax(0, 1fr); }
  .tl-date { text-align: left; padding-right: 0; }
}

/* Evidence: one centered reading column. */
.evidence-legend {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.evidence-legend em {
  margin-left: 0;
  width: 100%;
  text-align: center;
}
#evidenceFilters {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.evidence-grid {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.evidence-note {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* One question, three answers: centered heading and comparison. */
.synthesis-head {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.synthesis-head h3 { text-align: center; }
.synthesis-head p:not(.mini-label) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.synthesis-scroll {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Apple-like tinted tiles instead of a wall of white cards. */
:root {
  --band-3: #edf3fa;
  --band-4: #eef4ee;
}
html[data-theme="dark"] {
  --band-3: #111a22;
  --band-4: #121a16;
}

.section[data-band] .foundation-card { background: color-mix(in srgb, var(--fc) 12%, var(--band-surface)); }
.section[data-band] .concept-card { background: color-mix(in srgb, var(--mc) 11%, var(--band-surface)); }
.section[data-band] .evidence-card { background: color-mix(in srgb, var(--eg) 11%, var(--band-surface)); }
.section[data-band] .perspective-card { background: color-mix(in srgb, var(--pc, #0071e3) 11%, var(--band-surface)); }
.section[data-band] .path-card { background: color-mix(in srgb, #0071e3 10%, var(--band-surface)); }
.section[data-band] .adv-card { background: color-mix(in srgb, var(--ac) 12%, var(--band-surface)); }
.section[data-band] .global-card,
.section[data-band] .gba-card { background: color-mix(in srgb, var(--gc) 10%, var(--band-surface)); }

html[data-theme="dark"] .section[data-band] .foundation-card { background: color-mix(in srgb, var(--fc) 17%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .concept-card { background: color-mix(in srgb, var(--mc) 16%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .evidence-card { background: color-mix(in srgb, var(--eg) 16%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .perspective-card { background: color-mix(in srgb, var(--pc, #2997ff) 16%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .path-card { background: color-mix(in srgb, #2997ff 14%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .adv-card { background: color-mix(in srgb, var(--ac) 17%, var(--band-surface)); }
html[data-theme="dark"] .section[data-band] .global-card,
html[data-theme="dark"] .section[data-band] .gba-card { background: color-mix(in srgb, var(--gc) 15%, var(--band-surface)); }

/* Learning path: centered progress and grid. */
.path-progress {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr;
  text-align: center;
}
.pp-copy { align-items: center; text-align: center; }
.path-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Closing: light sage color block, not black. */
.closing {
  background: var(--band-4);
  color: var(--ink);
}
.closing h2,
.closing .p-title { color: var(--ink); }
.closing .p-text { color: var(--muted); }
.closing .p-no { color: var(--gold); }
.closing .principles { border-top-color: var(--band-line); }
.closing .principle { border-bottom-color: var(--band-line); }
html[data-theme="dark"] .closing { background: #121a16; color: #f5f5f7; }
html[data-theme="dark"] .closing h2,
html[data-theme="dark"] .closing .p-title { color: #f5f5f7; }
html[data-theme="dark"] .closing .p-text { color: #a1a1a6; }
html[data-theme="dark"] .closing .principles { border-top-color: #3a4640; }
html[data-theme="dark"] .closing .principle { border-bottom-color: #2b3530; }


.closing h2 { text-align: center; }
.closing-actions { justify-content: center; }

/* Glossary: smaller, denser tiles for short definitions. */
.glossary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}
.glossary-card {
  padding: 12px 13px 11px;
  border-radius: 14px;
}
.gc-term { font-size: clamp(15px, 1vw, 18px); }
.gc-def {
  margin-top: 4px;
  font-size: clamp(12px, 0.72vw, 13.5px);
  line-height: 1.55;
}
.gc-tag { margin-top: 7px; }
.gc-en { font-size: clamp(10px, 0.62vw, 12px); }

@media (max-width: 1150px) {
  .glossary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .glossary-grid { grid-template-columns: 1fr; }
}

/* Footer: one divider at the very bottom. */
.footer-links {
  border-top: 0;
  padding-top: 0;
  margin-top: 18px;
}

/* Footer: one compact source/disclaimer line; nav row unchanged. */
.footer-main { grid-template-columns: 1fr; }
.footer-bottom {
  align-items: flex-start;
  gap: 24px;
}
.footer-bottom > span:first-child { max-width: 1040px; }

/* Reading copy: Apple body scale. Keep only labels/legal text small. */
.fc-plain,
.fc-core,
.cc-lead,
.q-text,
.f-desc,
.ev-facts li,
.ev-read,
.tl-desc,
.case-a,
.case-b,
.adv-block p,
.adv-reading,
.gc-block p,
.gc-block li,
.gc-snapshot,
.gba-status,
.gba-logic,
.gba-personal-impact,
.gba-step p,
.gba-snap p,
.pc-core,
.pc-block,
.path-goal,
.path-tasks li,
.synthesis-row > span,
.thesis p,
.strands-head > p,
.global-channel span {
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.65 !important;
}

.case-a,
.case-b { line-height: 1.7 !important; }
.case-read { font-size: clamp(13px, 0.82vw, 15px) !important; line-height: 1.65 !important; }
.gc-def { font-size: clamp(14px, 0.88vw, 16px) !important; line-height: 1.6 !important; }
.path-output { font-size: clamp(14px, 0.85vw, 16px) !important; }
.path-check { font-size: clamp(13px, 0.8vw, 15px) !important; }

/* Large displays: keep the reading column compact, do not scale content to 4K. */
:root { --max: min(1180px, 92vw); }

@media (min-width: 1800px) {
  body,
  html[data-theme="dark"] body { font-size: 19px; }
  .hero h1 { font-size: 6rem; }
  .hero-grid { max-width: 1080px; }
  .hero-lead { font-size: 19px; }
  .section[data-band] {
    padding-top: 128px;
    padding-bottom: 128px;
  }
  .sec-title,
  .section-head.light .sec-title { font-size: 3.8rem; }
  .sec-aside,
  .section-head.light .sec-aside { font-size: 20px; }
  .card,
  .concept-card,
  .foundation-card,
  .evidence-card,
  .perspective-card,
  .global-card,
  .gba-card,
  .adv-card,
  .briefing-card,
  .toolbox-card { max-width: none; }
}

/* Hero should size to its content, not force a full 4K viewport. */
.hero {
  min-height: 0;
  padding-bottom: 76px;
}

/* Module tabs: wrap and center; never show a draggable scrollbar. */
.module-tabs {
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: none;
}
.module-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Active module tab: module color instead of black. */
.module-tabs .module-tab.active {
  background: color-mix(in srgb, var(--mc) 18%, var(--band-surface));
  border-color: var(--mc);
  color: var(--ink);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--mc) 16%, transparent);
}
.module-tabs .module-tab.active .mt-glyph {
  background: var(--mc);
  border-color: var(--mc);
  color: #fff;
}
.module-tabs .module-tab.active .mt-no {
  color: var(--mc);
}
html[data-theme="dark"] .module-tabs .module-tab.active {
  background: color-mix(in srgb, var(--mc) 26%, var(--band-surface));
  color: #f5f5f7;
}

/* Abstract atlas background: faint contour lines + color wash, no photography. */
:root {
  --atlas-contour: url("bg-contour.svg");
}
html[data-theme="dark"] {
  --atlas-contour: url("bg-contour-dark.svg");
}
.hero,
.section[data-band],
.closing {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(0, 113, 227, 0.045), transparent 65%);
  background-size: 1100px 825px, auto;
  background-position: center top, center;
  background-repeat: repeat, no-repeat;
}
.section[data-band="2"] {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(52, 120, 90, 0.055), transparent 65%);
}
.section[data-band="3"] {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(0, 113, 227, 0.07), transparent 68%);
}
.closing {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 65% 60% at 80% 20%, rgba(52, 120, 90, 0.08), transparent 65%);
}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .section[data-band],
html[data-theme="dark"] .closing {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(41, 151, 255, 0.08), transparent 65%);
}
html[data-theme="dark"] .section[data-band="2"] {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(78, 170, 130, 0.08), transparent 65%);
}
html[data-theme="dark"] .section[data-band="3"] {
  background-image:
    var(--atlas-contour),
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(41, 151, 255, 0.10), transparent 68%);
}


/* Chain numbers: plain colored numerals, no black box. */
.chain-step .cs-no {
  width: auto;
  height: auto;
  display: inline-block;
  border: 0 !important;
  background: transparent !important;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Give each band a different crop/scale of the atlas texture. */
#overview { background-position: 10% 0, center; background-size: 1050px 790px, auto; }
#basics { background-position: 82% 18%, center; background-size: 1240px 930px, auto; }
#map { background-position: 50% 78%, center; background-size: 900px 675px, auto; }
#knowledge { background-position: 14% 42%, center; background-size: 1140px 855px, auto; }
#advanced { background-position: 88% 8%, center; background-size: 990px 740px, auto; }
#case { background-position: 28% 72%, center; background-size: 1200px 900px, auto; }
#data { background-position: 76% 22%, center; background-size: 950px 710px, auto; }
#timeline { background-position: 18% 80%, center; background-size: 1100px 825px, auto; }
#evidence { background-position: 84% 56%, center; background-size: 1260px 945px, auto; }
#perspectives { background-position: 38% 8%, center; background-size: 1000px 750px, auto; }
#global { background-position: 6% 62%, center; background-size: 1160px 870px, auto; }
#gba { background-position: 92% 82%, center; background-size: 1080px 810px, auto; }
#path { background-position: 52% 0, center; background-size: 940px 705px, auto; }
#glossary { background-position: 12% 30%, center; background-size: 1220px 915px, auto; }


/* Formula block: tinted card surface, not a black box in dark mode. */
.fc-core {
  background: transparent;
  color: var(--ink);
  border-left-color: var(--fc);
  padding-left: 12px;
}
html[data-theme="dark"] .fc-core {
  background: transparent;
  color: #f5f5f7;
}
.fc-core b { color: var(--fc); font-size: 12px; }


/* Toolbox cards: tinted surfaces, not black tiles. */
.section[data-band] .toolbox-card {
  background: color-mix(in srgb, #0071e3 8%, var(--band-surface)) !important;
}
html[data-theme="dark"] .section[data-band] .toolbox-card {
  background: color-mix(in srgb, #2997ff 14%, var(--band-surface)) !important;
}

.toolbox-head {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Three-answers comparison: one tinted panel behind the table. */
.synthesis-scroll {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 10px 22px 14px;
  background: color-mix(in srgb, #0071e3 7%, var(--band-surface));
  border: 1px solid var(--band-line);
  border-radius: 24px;
}
html[data-theme="dark"] .synthesis-scroll {
  background: color-mix(in srgb, #2997ff 10%, var(--band-surface));
}
@media (max-width: 640px) {
  .synthesis-scroll { padding: 8px 12px 12px; border-radius: 18px; }
}

/* Theory timeline: its own sage block, matching the answer panel above. */
.theory-line {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 24px 24px 20px;
  background: color-mix(in srgb, #34785a 7%, var(--band-surface));
  border: 1px solid var(--band-line);
  border-radius: 24px;
}
html[data-theme="dark"] .theory-line {
  background: color-mix(in srgb, #4eaa82 10%, var(--band-surface));
}
.theory-head {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.theory-head h3 { text-align: center; }
.theory-head p:not(.mini-label) { text-align: center; }
@media (max-width: 640px) {
  .theory-line { padding: 18px 14px 16px; border-radius: 18px; }
}

/* Case transmission chain: its own warm sand block. */
.chain-block {
  max-width: 1120px;
  margin: 44px auto 0;
  padding: 24px 24px 20px;
  background: color-mix(in srgb, #b58a4a 8%, var(--band-surface));
  border: 1px solid var(--band-line);
  border-radius: 24px;
}
html[data-theme="dark"] .chain-block {
  background: color-mix(in srgb, #d8ab62 12%, var(--band-surface));
}
@media (max-width: 640px) {
  .chain-block { padding: 18px 14px 16px; border-radius: 18px; }
}

/* Glossary cards: opaque tinted tiles. */
.glossary-card {
  background: color-mix(in srgb, #0071e3 7%, var(--band-surface)) !important;
  border-color: var(--band-line);
  backdrop-filter: none;
}
html[data-theme="dark"] .glossary-card {
  background: color-mix(in srgb, #2997ff 11%, var(--band-surface)) !important;
}
.glossary-card:hover {
  background: color-mix(in srgb, #0071e3 10%, var(--band-surface)) !important;
}
html[data-theme="dark"] .glossary-card:hover {
  background: color-mix(in srgb, #2997ff 15%, var(--band-surface)) !important;
}

/* Mobile: contain the map scroll area; no page-level horizontal overflow. */
html { overflow-x: hidden; }
@media (max-width: 900px) {
  .map-canvas { max-width: 100%; overflow-x: auto; }
  .map-canvas svg { max-width: none; }
}

/* Remaining body copy that was still 11–12px. */
.cs-desc,
.bc-china,
.fc-confusion,
.gc-caution,
.gba-actions li,
.briefing-card p,
.briefing-side-card p {
  font-size: clamp(14px, 0.88vw, 16px) !important;
  line-height: 1.65 !important;
}

/* Apple-blue accents replace the warm gold in primary UI. */
.hero h1 .accent::after {
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.55), rgba(41, 151, 255, 0.18));
}
.term {
  border-bottom-color: rgba(0, 113, 227, 0.55);
}
.term:hover,
.term:focus {
  background: rgba(0, 113, 227, 0.08);
  border-bottom-color: #0071e3;
}
html[data-theme="dark"] .term {
  border-bottom-color: rgba(41, 151, 255, 0.65);
}
html[data-theme="dark"] .term:hover,
html[data-theme="dark"] .term:focus {
  background: rgba(41, 151, 255, 0.12);
  border-bottom-color: #2997ff;
}
.chain-block {
  background: color-mix(in srgb, #0071e3 7%, var(--band-surface));
}
html[data-theme="dark"] .chain-block {
  background: color-mix(in srgb, #2997ff 11%, var(--band-surface));
}

/* Foundation group tabs: use group color, not ink-on-ink in dark mode. */
.basics-tabs .basics-tab.active {
  background: color-mix(in srgb, var(--fc) 18%, var(--band-surface));
  border-color: var(--fc);
  color: var(--ink);
}
.basics-tabs .basics-tab.active b {
  color: var(--fc);
}
html[data-theme="dark"] .basics-tabs .basics-tab.active {
  background: color-mix(in srgb, var(--fc) 28%, var(--band-surface));
  color: #f5f5f7;
}

/* Liquid-glass navigation bar. */
.topbar,
.topbar.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46));
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 36px rgba(8, 12, 15, 0.08);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar.scrolled {
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.70), rgba(20, 20, 22, 0.46));
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 36px rgba(0, 0, 0, 0.34);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  pointer-events: none;
}
html[data-theme="dark"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
@media (max-width: 900px) {
  .topbar,
  .topbar.scrolled {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
  }
  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .topbar.scrolled {
    background: rgba(20, 20, 22, 0.76);
  }
}

/* One hairline only for the glass bar. */
.topbar,
.topbar.scrolled { border-bottom: 0; }

/* Apple-style rounded rectangles for controls; circles remain circular. */
.btn { border-radius: 14px; }
.module-tab,
.basics-tab,
.map-filter,
.map-reset,
.gba-tab,
.chip { border-radius: 12px; }
.search-field { border-radius: 14px; }
.tag { border-radius: 6px; }

/* Apple curvature: capsule controls + large continuous card corners. */
.btn {
  border-radius: 980px;
}
.module-tab,
.basics-tab,
.map-filter,
.map-reset,
.gba-tab,
.chip {
  border-radius: 999px;
}
.search-field {
  border-radius: 999px;
}
.concept-card,
.foundation-card,
.evidence-card,
.perspective-card,
.global-card,
.gba-card,
.adv-card,
.briefing-card,
.toolbox-card {
  border-radius: 28px;
}
.case-panel,
.synthesis-scroll,
.theory-line,
.chain-block {
  border-radius: 28px;
}

/* Progressive enhancement for Apple-like continuous corners. */
@supports (corner-shape: squircle) {
  .concept-card,
  .foundation-card,
  .evidence-card,
  .perspective-card,
  .global-card,
  .gba-card,
  .adv-card,
  .briefing-card,
  .toolbox-card,
  .case-panel,
  .synthesis-scroll,
  .theory-line,
  .chain-block {
    corner-shape: squircle;
  }
}

/* Soft accent glow on hover only. */
.foundation-card { --glow: var(--fc); }
.concept-card { --glow: var(--mc); }
.evidence-card { --glow: var(--eg); }
.perspective-card { --glow: var(--pc, #0071e3); }
.path-card,
.glossary-card,
.toolbox-card { --glow: #0071e3; }
.adv-card { --glow: var(--ac); }
.global-card,
.gba-card { --glow: var(--gc); }
.case-panel { --glow: var(--cc, #0071e3); }
.synthesis-scroll { --glow: #0071e3; }
.theory-line { --glow: #34785a; }
.chain-block { --glow: #0071e3; }

.foundation-card,
.concept-card,
.evidence-card,
.perspective-card,
.path-card,
.glossary-card,
.toolbox-card,
.adv-card,
.global-card,
.gba-card,
.case-panel,
.synthesis-scroll,
.theory-line,
.chain-block {
  transition: box-shadow 0.32s ease, transform 0.32s ease;
}
.foundation-card:hover,
.concept-card:hover,
.evidence-card:hover,
.perspective-card:hover,
.path-card:hover,
.glossary-card:hover,
.toolbox-card:hover,
.adv-card:hover,
.global-card:hover,
.gba-card:hover,
.case-panel:hover,
.synthesis-scroll:hover,
.theory-line:hover,
.chain-block:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow) 22%, transparent),
    0 18px 42px color-mix(in srgb, var(--glow) 18%, transparent);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .foundation-card:hover,
  .concept-card:hover,
  .evidence-card:hover,
  .perspective-card:hover,
  .path-card:hover,
  .glossary-card:hover,
  .toolbox-card:hover,
  .adv-card:hover,
  .global-card:hover,
  .gba-card:hover,
  .case-panel:hover,
  .synthesis-scroll:hover,
  .theory-line:hover,
  .chain-block:hover { transform: none; }
}

/* Section headlines: one balanced phrase, not stacked slabs. */
.sec-title,
.section-head.light .sec-title {
  max-width: 980px;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
@media (min-width: 1800px) {
  .sec-title,
  .section-head.light .sec-title { font-size: 3.4rem; }
}
@media (max-width: 900px) {
  .sec-title,
  .section-head.light .sec-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
}

/* Focus sub-section: centered like the rest of the section heads. */
.focus-head {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.focus-head h3 {
  text-align: center;
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.focus-head p { text-align: center; }

/* Center the constrained title block itself, not just its text. */
.sec-title,
.section-head.light .sec-title,
.case-title {
  margin-left: auto;
  margin-right: auto;
}

/* Focus title: one line on desktop, natural wrap only on narrow screens. */
.focus-head h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .focus-head h3 { white-space: normal; }
}

/* Evidence column: narrower so the card does not leave a blank right half. */
.evidence-legend,
#evidenceFilters,
.evidence-grid,
.evidence-note {
  max-width: 760px;
}

/* Chain arrows: no black backing plate. */
.chain-step::after {
  background: transparent;
  color: var(--gold);
}

/* The six steps are already ordered; remove boundary arrows entirely. */
.chain-step::after { display: none; }

/* Keep auto-decorated terms inline inside toolbox cards. */
.toolbox-card .term {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Knowledge map root: Apple-blue center, not black. */
.map-root-circle {
  fill: #0071e3;
  stroke: #0071e3;
  filter: drop-shadow(0 0 24px rgba(0, 113, 227, 0.28));
}
.map-root-title { fill: #ffffff; }
.map-root-sub { fill: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .map-root-circle {
  fill: #0a84ff;
  stroke: #0a84ff;
  filter: drop-shadow(0 0 28px rgba(10, 132, 255, 0.38));
}
html[data-theme="dark"] .map-root-title { fill: #ffffff; }
html[data-theme="dark"] .map-root-sub { fill: rgba(255, 255, 255, 0.72); }

/* ---------- soft reading mode: warm graphite, not full dark ---------- */
html[data-theme="soft"] {
  --ink: #2b2924;
  --ink-soft: #514d45;
  --muted: #777167;
  --line: rgba(42, 39, 33, 0.16);
  --line-strong: rgba(42, 39, 33, 0.22);
  --gold: #0071e3;
  --gold-soft: #0071e3;
  --paper: #d8d1c5;
  --paper-2: #d2cabd;
  --paper-3: #e0d9cd;
  --cream: #fbf8f1;
  --band-1: #ddd6ca;
  --band-2: #d4ccbf;
  --band-3: #d6dfe5;
  --band-4: #d8e1d7;
  --band-dark: #2b3530;
  --band-surface: #e9e2d6;
  --band-line: rgba(42, 39, 33, 0.15);
  --band-muted: #6c675e;
}
html[data-theme="soft"] body {
  background: var(--band-1);
  color: var(--ink);
}
html[data-theme="soft"] .topbar,
html[data-theme="soft"] .topbar.scrolled {
  background: linear-gradient(180deg, rgba(232, 226, 216, 0.82), rgba(224, 217, 206, 0.62));
  border-bottom: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 36px rgba(63, 54, 42, 0.12);
}
html[data-theme="soft"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}
html[data-theme="soft"] .icon-btn {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(42, 39, 33, 0.12);
  color: var(--ink);
}
html[data-theme="soft"] .search-field {
  background: rgba(250, 247, 240, 0.40);
  border-color: rgba(42, 39, 33, 0.14);
}
html[data-theme="soft"] .case-panel {
  background: var(--band-surface);
  border-color: var(--band-line);
}
html[data-theme="soft"] .footer {
  background: var(--band-2);
  color: var(--ink-soft);
}

/* ---------- theme menu ---------- */
.top-actions { position: relative; }
.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  min-width: 132px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 16px 42px rgba(8, 12, 15, 0.16);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}
.theme-menu button:hover { background: rgba(0, 113, 227, 0.08); }
.theme-menu button.active {
  background: rgba(0, 113, 227, 0.12);
  color: #0071e3;
}
html[data-theme="dark"] .theme-menu {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 30, 0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}
html[data-theme="soft"] .theme-menu {
  background: rgba(233, 226, 214, 0.92);
  border-color: rgba(255, 255, 255, 0.36);
}

/* Soft mode: navigation text stays dark on the warm glass bar. */
html[data-theme="soft"] .nav a {
  color: var(--ink-soft) !important;
}
html[data-theme="soft"] .nav a:hover,
html[data-theme="soft"] .topbar .nav a.active {
  color: var(--ink) !important;
}
html[data-theme="soft"] .brand-text { color: var(--ink); }
html[data-theme="soft"] .brand-text em { color: var(--muted); }

html[data-theme="soft"] .nav a { color: #4f4a42 !important; }
html[data-theme="soft"] .topbar .nav a.active { color: #2b2924 !important; }

/* ---------- dusk mode: warm charcoal between soft and dark ---------- */
html[data-theme="dusk"] {
  --ink: #ece7df;
  --ink-soft: #c9c2b7;
  --muted: #a39b8f;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.20);
  --gold: #2997ff;
  --gold-soft: #2997ff;
  --paper: #383531;
  --paper-2: #403c37;
  --paper-3: #48433d;
  --cream: #f5f1e8;
  --band-1: #383531;
  --band-2: #403c37;
  --band-3: #36434b;
  --band-4: #37463e;
  --band-dark: #202924;
  --band-surface: #48433d;
  --band-line: rgba(255, 255, 255, 0.13);
  --band-muted: #a39b8f;
}
html[data-theme="dusk"] body {
  background: var(--band-1);
  color: var(--ink);
}
html[data-theme="dusk"] .topbar,
html[data-theme="dusk"] .topbar.scrolled {
  background: linear-gradient(180deg, rgba(54, 51, 47, 0.84), rgba(45, 43, 39, 0.62));
  border-bottom: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 10px 36px rgba(0, 0, 0, 0.24);
}
html[data-theme="dusk"] .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
html[data-theme="dusk"] .nav a { color: var(--ink-soft) !important; }
html[data-theme="dusk"] .topbar .nav a.active { color: #f5f1e8 !important; }
html[data-theme="dusk"] .theme-menu {
  background: rgba(58, 54, 49, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}
html[data-theme="dusk"] .theme-menu button { color: var(--ink); }
html[data-theme="dusk"] .theme-menu button:hover { background: rgba(41, 151, 255, 0.12); }
html[data-theme="dusk"] .theme-menu button.active {
  background: rgba(41, 151, 255, 0.16);
  color: #8ecbff;
}
html[data-theme="dusk"] .footer { background: var(--band-2); }

/* Dusk briefing cards: keep the three-card layout. */
html[data-theme="dusk"] .briefing {
  margin-top: 46px;
  padding: 26px;
  border: 1px solid var(--band-line);
  border-radius: 28px;
  background: color-mix(in srgb, #2997ff 5%, var(--band-surface));
}
html[data-theme="dusk"] .briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
html[data-theme="dusk"] .briefing-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
html[data-theme="dusk"] .briefing-card,
html[data-theme="dusk"] .briefing-side-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--band-line);
  border-top: 2px solid var(--bc, #2997ff);
  border-radius: 16px;
  background: var(--band-surface);
}
html[data-theme="dusk"] .briefing-card h4,
html[data-theme="dusk"] .briefing-side-card h4 {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
html[data-theme="dusk"] .briefing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 9px;
}
html[data-theme="dusk"] .briefing-card li { color: var(--muted); }
html[data-theme="dusk"] .briefing-card .bc-china {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--band-line);
}
html[data-theme="dusk"] .bc-watch {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 8px;
}
html[data-theme="dusk"] .bc-watch span {
  border: 1px solid var(--band-line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
}
html[data-theme="dusk"] .pmi-details {
  margin-top: 10px;
  border: 1px solid var(--band-line);
  border-radius: 12px;
}
html[data-theme="dusk"] .pmi-details summary { padding: 10px 13px; cursor: pointer; }
html[data-theme="dusk"] .pmi-table-wrap { overflow-x: auto; padding: 0 10px 10px; }

/* Dusk: restore the comparison table and theory timeline grids. */
html[data-theme="dusk"] .synthesis-row {
  display: grid;
  grid-template-columns: 170px 1fr 1.15fr 1.25fr;
  gap: 18px;
  min-width: 900px;
  padding: 13px 0;
  border-top: 1px solid var(--band-line);
  align-items: start;
}
html[data-theme="dusk"] .synthesis-row:last-child { border-bottom: 1px solid var(--band-line); }
html[data-theme="dusk"] .synthesis-head-row {
  padding: 6px 0 8px;
  border-top: 0;
}
html[data-theme="dusk"] .synthesis-row > strong {
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
html[data-theme="dusk"] .synthesis-row > span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
html[data-theme="dusk"] .synthesis-row > span:nth-child(3) {
  color: var(--ink);
  border-left: 2px solid color-mix(in srgb, #2997ff 45%, transparent);
  padding-left: 10px;
}
html[data-theme="dusk"] .theory-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(110px, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}
html[data-theme="dusk"] .theory-node {
  padding: 0 10px;
  border-left: 1px solid var(--band-line);
}
html[data-theme="dusk"] .theory-node:first-child {
  padding-left: 0;
  border-left: 0;
}
