/* ============================================================
   style-core.css — classical-reading-site design system (faithful base)
   Copy into assets/style.css. This is the reusable CORE: tokens, layout,
   3-column reading grid, character-bio cards + impact-tier markers, the
   供參考 callout, and the mobile fixes from the design-review pass.
   Text-specific sections (guang / jingjian / themes / timeline) are omitted
   on purpose — add them per classic.
   ============================================================ */

:root {
  /* ---- 色 ---- */
  --paper:        oklch(0.952 0.018 85);
  --paper-raised: oklch(0.975 0.014 85);
  --paper-sunk:   oklch(0.918 0.020 82);
  --slip:         oklch(0.940 0.034 78);   /* manuscript face — commentary panel */

  --ink:          oklch(0.272 0.020 50);    /* warm lacquer ink */
  --ink-soft:     oklch(0.430 0.022 50);
  --ink-faint:    oklch(0.450 0.020 50);   /* AA-cleared (~4.6:1) on all paper tones; drives --ink-2/--ink-3 */

  --rule:         oklch(0.272 0.020 50 / 0.16);
  --rule-strong:  oklch(0.272 0.020 50 / 0.38);

  --vermilion:    oklch(0.548 0.185 28);    /* 朱砂 — signature commentary + active */
  --vermilion-lo: oklch(0.548 0.185 28 / 0.10);
  --gold:         oklch(0.720 0.095 80);    /* 赭金 — rules, chrome */
  --gold-lo:      oklch(0.720 0.095 80 / 0.30);
  --gold-text:    #8a5e12;          /* dark gold for small text on light bg (AA-cleared) */

  /* ---- per-紀色相（各頁覆寫 --hue，卡片覆寫 --card-hue）---- */
  --hue: 30;
  --accent:      oklch(0.485 0.115 var(--hue));
  --accent-deep: oklch(0.385 0.095 var(--hue));
  --accent-wash: oklch(0.485 0.115 var(--hue) / 0.08);
  --accent-line: oklch(0.485 0.115 var(--hue) / 0.32);

  /* ---- 間距（base 4px）---- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* ---- 字 ---- */
  --song: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --kai:  "KaiTi", "STKaiti", "楷体", "Noto Serif SC", serif;
  --hei:  "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  /* 別名：供人物卡片等次級中繼資料使用（與全站 --ink-soft/--ink-faint/--song 對齊）。
     DEFINING these is P0 — an undefined var silently inherits --ink and flattens hierarchy. */
  --serif: var(--song);
  --ink-1: var(--ink-soft);
  --ink-2: var(--ink-faint);
  --ink-3: var(--ink-faint);

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   1.5rem;
  --t-xl:   1.9rem;
  --t-2xl:  2.4rem;
  --t-3xl:  3rem;
  --t-4xl:  4rem;

  --radius: 2px;
  --radius-lg: 10px;   /* larger card radius (theme-hub, panels) */
  --measure: 35em;     /* ~50 字/行 cap for long-form prose */
  --slip-w: 58px;      /* manuscript column pitch */
  --shadow-1: 0 6px 18px oklch(0.272 0.020 50 / 0.12);
  --shadow-2: 0 12px 32px oklch(0.272 0.020 50 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* breadcrumb affordance: theme-subpage eyebrow links back to its hub */
.masthead__eyebrow a { color: var(--vermilion); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px; }
.masthead__eyebrow a:hover { opacity: .82; }

/* predictable keyboard focus across nav + controls (a11y) */
a:focus-visible, button:focus-visible, .subnav__item:focus-visible,
.nav-people__item a:focus-visible { outline: 2px solid var(--vermilion);
  outline-offset: 2px; border-radius: 2px; }

/* descendants that override --hue must re-declare the accents */
.jcard, .vrow, .gcase {
  --hue: var(--card-hue);
  --accent:      oklch(0.485 0.115 var(--hue));
  --accent-deep: oklch(0.385 0.095 var(--hue));
  --accent-wash: oklch(0.485 0.115 var(--hue) / 0.08);
  --accent-line: oklch(0.485 0.115 var(--hue) / 0.32);
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- 3-column reading layout ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 320px);
  gap: var(--s7);
  align-items: start;
  padding: var(--s8) 0 var(--s9);
  max-width: 1480px; margin: 0 auto;
}
.lhs { position: sticky; top: 100px; max-height: calc(100vh - 128px); overflow-y: auto;
       font-family: var(--hei); }
.rhs { position: sticky; top: 100px; max-height: calc(100vh - 128px); overflow-y: auto;
       display: grid; gap: var(--s5); align-content: start; }
.layout > .main { min-width: 0; max-width: 880px; margin: 0 auto; width: 100%; }

/* RHS collapsible (JS sets body[data-rhs="collapsed"]) */
body[data-rhs="collapsed"] .layout { grid-template-columns: minmax(0,220px) minmax(0,1fr) 48px; }
body[data-rhs="collapsed"] .rhs { width:48px; min-width:48px; padding:0; overflow:visible;
       background:transparent; border:0; box-shadow:none; gap:0; }
body[data-rhs="collapsed"] .rhs > *:not(.rhs__toggle) { display:none; }
.rhs__toggle {
  position: sticky; top:100px; z-index:5; align-self:start; justify-self:end;
  width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--hei); font-size:14px; line-height:1; color:var(--vermilion);
  background:var(--paper-raised); border:1px solid var(--rule); border-radius:16px;
  cursor:pointer; margin-bottom:calc(-1 * var(--s5)); box-shadow:0 1px 2px rgba(0,0,0,.04);
  transition:background .15s,color .15s,border-color .15s;
}
.rhs__toggle:hover { background:var(--vermilion); color:var(--paper); border-color:var(--vermilion); }
body[data-rhs="collapsed"] .rhs__toggle { position:static; margin:var(--s5) auto 0; justify-self:center;
  width:44px; min-width:0; padding:6px 2px; white-space:normal; text-align:center; line-height:1.5; font-size:13px; }
body[data-rhs="collapsed"] .rhs__toggle::before { content:""; margin:0; }
body[data-rhs="collapsed"] .rhs__toggle::after { content:"顯示背景"; }
body:not([data-rhs="collapsed"]) .rhs__toggle::before { content:"›"; margin-right:4px; }
body:not([data-rhs="collapsed"]) .rhs__toggle::after { content:"隱藏背景"; }

@media (max-width:1180px){
  .layout{grid-template-columns:minmax(0,200px) minmax(0,1fr);}
  .rhs{grid-column:1/-1;position:static;max-height:none;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
  .layout>.main{max-width:none;}
}
@media (max-width:920px){
  .layout{grid-template-columns:1fr;gap:var(--s6);}
  .lhs{position:static;max-height:none;border:1px solid var(--rule);border-radius:var(--radius);
       padding:var(--s4) var(--s5);background:var(--paper-raised);}
  .rhs{grid-template-columns:1fr;}
  .rhs__toggle{display:none;}
  /* 人物頁：行動版隱藏卷次清單，讓人物導覽置頂，避免首篇傳記被埋 */
  .lhs.nav-vols .nav-lhs__title,
  .lhs.nav-vols .nav-vols__list{display:none;}
  .lhs.nav-vols .band-head{margin-top:var(--s4)!important;}
}

/* ---- left nav list ---- */
.nav-lhs__title { font-size:var(--t-xs); font-weight:700; letter-spacing:.3em;
  color:var(--ink-faint); margin:0 0 var(--s3); padding-bottom:var(--s2); border-bottom:1px solid var(--rule); }
.nav-lhs ol { list-style:none; margin:0; padding:0; }
.nav-lhs li { margin-bottom:1px; }
.nav-lhs a { display:flex; align-items:baseline; gap:var(--s3); padding:var(--s2) var(--s3);
  text-decoration:none; font-size:var(--t-sm); color:var(--ink-soft);
  border-left:2px solid transparent; transition:all .2s; border-radius:0 var(--radius) var(--radius) 0; }
.nav-lhs a:hover { background:var(--accent-wash); color:var(--ink); border-left-color:var(--accent); }

/* ---- preview cards (紀 landing) ---- */
/* Centered flex keeps the last row of featured cards visually balanced. */
.plgrid { display:flex; flex-wrap:wrap; justify-content:center; gap:var(--s4); margin-top:var(--s5); }
.plcard { flex:1 1 200px; max-width:260px; min-width:160px; display:block; background:var(--paper-raised); border:1px solid var(--rule);
  border-top:3px solid oklch(0.55 0.12 var(--card-hue)); border-radius:var(--radius);
  padding:var(--s4) var(--s5); text-decoration:none!important; color:inherit;
  transition:transform .15s,box-shadow .15s,border-color .15s; }
.plcard:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.06); border-top-color:var(--vermilion); }
.plcard__name { font-family:var(--serif); font-size:var(--t-lg); font-weight:700; color:var(--ink); }
.plcard__title { font-family:var(--hei); font-size:var(--t-xs); color:var(--ink-2); margin-top:4px; }
.plcard__facts { list-style:none; padding:0; margin:var(--s3) 0 0; font-family:var(--hei); font-size:var(--t-sm); color:var(--ink-2); }
.plcard__facts li { padding:3px 0; border-top:1px dotted var(--rule); }
.plcard__facts li::before { content:"·"; margin-right:6px; color:var(--ink-3); }
.plcard__goto { display:inline-block; margin-top:var(--s3); font-family:var(--hei); font-size:var(--t-xs); color:var(--vermilion); opacity:.6; }
.plcard:hover .plcard__goto { opacity:1; }

/* ---- people grid + full bio cards ---- */
.people-grid { display:grid; gap:var(--s6); }
.pcard { background:var(--paper-raised); border:1px solid var(--rule);
  border-left:4px solid oklch(0.55 0.12 var(--card-hue)); border-radius:var(--radius);
  padding:var(--s5) var(--s6); scroll-margin-top:110px; }
.pcard__head { display:flex; flex-direction:column; align-items:flex-start; gap:var(--s2); }
.pcard__name { font-family:var(--serif); font-size:var(--t-xl); font-weight:700; color:var(--ink); }
.pcard__role { font-family:var(--hei); font-size:var(--t-sm); color:var(--ink-2); }
.pcard__summary { font-family:var(--hei); font-size:var(--t-md); line-height:1.8; color:var(--ink-1); margin:var(--s3) 0; }
.pcard__facts { list-style:none; padding:0; margin:var(--s3) 0 0; font-family:var(--hei); font-size:var(--t-sm); line-height:1.7; color:var(--ink-2); }
.pcard__facts li { padding:4px 0 4px 18px; position:relative; border-top:1px dotted var(--rule); }
.pcard__facts li:first-child { border-top:0; }
.pcard__facts li::before { content:"※"; position:absolute; left:0; top:4px; color:oklch(0.55 0.12 var(--card-hue)); font-weight:700; }
.band-head__sub { font-family:var(--hei); font-size:var(--t-sm); color:var(--ink-2); margin:var(--s2) 0 0; max-width:60ch; line-height:1.6; }
@media (max-width:720px){ .plcard{padding:var(--s3) var(--s4);} .pcard{padding:var(--s4) var(--s5);} .pcard__name{font-size:var(--t-lg);} }

/* ---- biography sections ---- */
.pbio { display:grid; gap:var(--s6); margin-top:var(--s6); padding-top:var(--s6); border-top:1px solid var(--rule); }
.pbio__sec { }
.pbio__h { font-family:var(--hei); font-size:14px; font-weight:600; letter-spacing:.12em;
  color:var(--vermilion); margin:0 0 6px; padding-left:11px; border-left:3px solid var(--vermilion); }
.pbio__sec p { margin:0 0 12px; font-size:15px; line-height:1.9; color:var(--ink);
  max-width:var(--measure); text-align:justify; }     /* P1#5: cap line width */
.pbio__sec p:last-child { margin-bottom:0; }
@media (max-width:920px){ .pbio{gap:var(--s5);} }

/* ---- impact tier markers (S=典範/A=重要/B=知名/C=一般) ---- */
.pcard--tier-S { border-left-width:6px; box-shadow:0 2px 22px oklch(0.55 0.12 var(--card-hue) / 0.10); }
.pcard__badge { font-family:var(--hei); font-size:12px; font-weight:700; letter-spacing:.08em;
  color:oklch(0.42 0.11 var(--card-hue)); background:oklch(0.96 0.03 var(--card-hue));
  border:1px solid oklch(0.86 0.05 var(--card-hue)); padding:2px 10px; border-radius:999px; white-space:nowrap; }
.pcard__meta { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3); margin-top:4px; }
.pcard__tier { font-family:var(--hei); font-size:12px; font-weight:600; color:var(--ink-2); letter-spacing:.03em; white-space:nowrap; }
.pcard__tier--minor { color:#6f6a60; font-weight:500; }
.pcard__stars { color:#8a6500; font-size:13px; letter-spacing:1px; }   /* P0#2: was #c8a13a (~2.3:1) */
.star-empty { color:#d6c9a8; }                                        /* P2#9: faint unused stars */
.pcard--tier-A { border-left-width:4px; }
.pcard--tier-B { border-left-width:3px; }
.plcard__meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:2px 0; }
.plcard__tier { font-family:var(--hei); font-size:11px; color:var(--ink-2); white-space:nowrap; }
.plcard__tier--minor { color:#6f6a60; }
.plcard__stars { color:#8a6500; font-size:12px; letter-spacing:1px; }

/* ---- 供參考：考古 / 正史新證 callout ---- */
.pbio__ref { margin-top:var(--s6); padding:var(--s4) var(--s5) var(--s5);
  background:oklch(0.97 0.02 var(--card-hue)); border:1px solid oklch(0.90 0.03 var(--card-hue));
  border-left:4px solid oklch(0.62 0.11 var(--card-hue)); border-radius:var(--radius); }
.pbio__ref-tag { display:inline-block; font-family:var(--hei); font-size:12px; font-weight:700;
  letter-spacing:.12em; color:#fff; background:oklch(0.55 0.11 var(--card-hue));
  padding:2px 11px; border-radius:999px; margin-bottom:10px; }
.pbio__ref p { margin:0 0 10px; font-size:14px; line-height:1.85; color:var(--ink-1); text-align:justify; }
.pbio__ref p:last-child { margin-bottom:0; }

/* ============================================================
   Reading-enrichment modules (hover tags · quotes · highlights)
   Self-contained: defines the gold helper vars + tooltip it needs.
   ============================================================ */
:root {
  --gold-deep: #8a5e12;     /* darker gold for fine text/borders */
  --gold-soft: #f6e8c6;     /* hover wash */
  --gold-line: rgba(192,138,30,.45);
}

/* ---- hover glossary term / famous-quote 'tags' (Module A) ---- */
.term {
  border-bottom: 1px dotted var(--gold-deep);
  cursor: help; color: inherit; transition: background .15s;
}
.term:hover, .term:focus { background: var(--gold-soft); outline: none; }
.q-famous {
  background: linear-gradient(180deg,#fbeec4,#f3dd9c); color: #5a3d00;
  border-radius: 3px; padding: 0 3px; cursor: help;
  box-shadow: inset 0 -1px 0 var(--gold-line); transition: background .15s;
}
.q-famous:hover, .q-famous:focus { background: linear-gradient(180deg,#fff0c2,#eccf7a); outline: none; }

/* tooltip (positioned by site.js) */
#anno-tip {
  position: fixed; z-index: 9999; max-width: 320px;
  background: #241405; color: #f6ecd8;
  border: 1px solid var(--gold); border-radius: 9px;
  padding: 10px 13px;
  font-family: var(--hei); font-size: 13px; line-height: 1.75;
  box-shadow: 0 10px 34px rgba(0,0,0,.42);
  pointer-events: none; opacity: 0; transition: opacity .14s;
}
#anno-tip.show { opacity: 1; }
#anno-tip::after {
  content: ""; position: absolute; left: var(--arrow-x,50%); transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  bottom: var(--arrow-bottom,-7px); top: var(--arrow-top,auto);
  border-top: 7px solid var(--gold);
}
#anno-tip.below::after { border-top: 0; border-bottom: 7px solid var(--gold); }

/* control bar: hosts the 字詞註 toggle (Module A) AND the 繁/簡 toggle
   (Module F, button id="han-toggle"). Both buttons inherit these styles. */
#anno-ctrl { position: fixed; right: 14px; bottom: 14px; z-index: 9998;
  display: flex; gap: 6px; background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 999px; padding: 5px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10); font-family: var(--hei); }
#anno-ctrl button { font: inherit; font-size: 12px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 3px 10px; }
#anno-ctrl button.is-off { opacity: .5; text-decoration: line-through; }
body.no-anno .term { border-bottom: none; cursor: auto; background: none; }
body.no-anno .q-famous { background: none; box-shadow: none; cursor: auto; color: inherit; }
body.no-anno #anno-tip { display: none; }
body.no-baihua .zhang__baihua { display: none; }
/* people page has no .zhang__baihua; 白話 toggle instead controls quote glosses */
body.no-baihua .pbio__quote-anno { display: none; }

/* ---- 人物亮點 callout (Module C) ---- */
.pcard__highlight { display:flex; gap:10px; align-items:flex-start;
  margin: var(--s4) 0 var(--s2); padding: 10px 14px;
  background: oklch(0.97 0.02 var(--card-hue));
  border: 1px solid oklch(0.90 0.03 var(--card-hue));
  border-left: 3px solid oklch(0.55 0.11 var(--card-hue)); border-radius: var(--radius); }
.pcard__highlight-tag { font-family: var(--hei); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: oklch(0.45 0.11 var(--card-hue)); white-space: nowrap; margin-top: 3px; }
.pcard__highlight-txt { font-family: var(--song); font-size: 14px; line-height: 1.7; color: var(--ink-1); }

/* ---- 名句 / 名言 (Module B) ---- */
.pbio__quotes { margin: var(--s5) 0 var(--s3); }
.pbio__quotes-h { font-family: var(--hei); font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--gold-text); margin: 0 0 10px; padding-left: 11px; border-left: 3px solid var(--gold); }
.pbio__quote { margin: 0 0 var(--s4); padding: var(--s4) var(--s5);
  background: linear-gradient(180deg,#fbf3da,#f6e7bd);
  border: 1px solid var(--gold-line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.pbio__quote-text { font-family: var(--kai); font-size: 1.05rem; line-height: 1.95; color: #5a3d00; margin: 0; text-align: justify; }
.pbio__quote-anno { font-family: var(--hei); font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.7; }
.pbio__quote-src { display: block; font-family: var(--hei); font-style: normal; font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

/* ---- RHS 人物亮點 aggregate (Module D) ---- */
.panel--gold { border-top-color: var(--gold); }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.hl-list li a { display: block; text-decoration: none; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.6; }
.hl-list li b { font-family: var(--song); color: var(--ink); font-weight: 700; }
.hl-list li a:hover { color: var(--vermilion); }

/* ---- per-paragraph modern-Chinese translation (Module E: 白話 + 解讀) ---- */
.zhang__baihua{margin:var(--s4) 0 0;max-width:var(--measure);
  padding:var(--s3) var(--s4);
  background:color-mix(in oklch, var(--gold-soft) 28%, var(--paper));
  border-left:3px solid var(--gold-lo);border-radius:var(--radius);
  font-family:var(--hei);line-height:1.95;text-align:justify;}
.zhang__line{margin:0;}
.zhang__line+.zhang__line{margin-top:var(--s2);}
.zhang__baihua-label,.zhang__interp-label{display:inline-block;font-size:11px;
  font-weight:700;letter-spacing:.14em;color:var(--gold-deep);
  margin-right:var(--s2);vertical-align:middle;}
.zhang__baihua-text{font-size:.98rem;color:var(--ink);}
.zhang__interp-text{display:inline;font-size:.9rem;color:var(--ink-soft);}

/* ===== book chrome ===== */
/* ============================================================
   style-site.css — 大學 chrome layer (book-specific).
   Concatenated AFTER style-core.css. Defines every chrome class
   the gate's coverage scan checks (G5). Per-book hue = 28
   (cinnabar-gold). 朱砂 reserved for commentary layer only.
   ============================================================ */
:root {
  /* per-book hue + safe fallback (P0: --card-hue MUST have a :root fallback) */
  --hue: 28;
  --card-hue: 28;
  --accent:      oklch(0.485 0.115 var(--hue));
  --accent-deep: oklch(0.385 0.095 var(--hue));
  --accent-wash: oklch(0.485 0.115 var(--hue) / 0.08);
  --accent-line: oklch(0.485 0.115 var(--hue) / 0.32);
  /* ladder ramp — ONE hue (28) stepped in lightness only (no rainbow) */
  --ladder-ink: oklch(0.30 0.04 28);
  /* star contrast: darkened from #8a6500 to #6f4f00 for AA at small size */
  --star: #6f4f00;
  --star-empty: #d8c9a6;
}

/* darken stars everywhere (P0#2 fix as hardened by design review) */
.pcard__stars, .plcard__stars { color: var(--star) !important; letter-spacing: 1px; }
.star-empty { color: var(--star-empty) !important; }

/* ---- topbar (4 tabs, brand left, nav top-right) ---- */
.topbar { background: oklch(0.24 0.02 50); color: var(--paper);
  position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--rule); }
.topbar__inner { max-width: 1480px; margin: 0 auto; display: flex;
  align-items: center; gap: var(--s5); padding: 0 var(--s5); height: 56px; }
.topbar__brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  color: var(--gold); text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.topbar__brand:hover { color: var(--paper); }
.topbar__nav { margin-left: auto; display: flex; gap: 2px; font-family: var(--hei); }
.topbar__nav a { color: oklch(0.86 0.02 80); text-decoration: none; font-size: .95rem;
  padding: 8px 14px; border-radius: var(--radius); transition: background .15s, color .15s; }
.topbar__nav a:hover { background: oklch(1 0 0 / .08); color: var(--paper); }
.topbar__nav a.is-current { background: var(--accent); color: #fff; font-weight: 600; }

/* ---- masthead = hero (ONE centered pattern, single t-2xl title) ---- */
.masthead { text-align: center; padding: var(--s9) var(--s5) var(--s7); max-width: 980px; margin: 0 auto; }
.masthead__eyebrow { font-family: var(--hei); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .42em; color: var(--accent-deep); margin: 0 0 var(--s4); padding-left: .42em; }
.masthead__title { font-family: var(--serif); font-weight: 900; font-size: var(--t-2xl);
  line-height: 1.1; color: var(--ink); margin: 0; text-wrap: balance; }
.masthead__sub { font-family: var(--hei); font-size: var(--t-md); color: var(--ink-1);
  max-width: 56ch; margin: var(--s4) auto 0; line-height: 1.7; text-wrap: pretty; }
.masthead__rule { width: 72px; height: 3px; margin: var(--s5) auto 0;
  background: linear-gradient(90deg, transparent, var(--vermilion), transparent); border-radius: 2px; }

/* ---- generic section band (left-aligned inside page; NOT a page header) ---- */
.band-head { margin: var(--s8) 0 var(--s5); }
.band-head__eyebrow { font-family: var(--hei); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .3em; color: var(--accent-deep); margin: 0 0 6px; }
.band-head__sub { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2);
  margin: var(--s2) 0 0; max-width: 60ch; line-height: 1.6; }
.band-head__rule { width: 48px; height: 3px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px; }
.band-head__title { font-family: var(--serif); font-size: var(--t-xl); color: var(--ink);
  margin: 0 0 4px; line-height: 1.2; }

/* ---- landing intro + blocks ---- */
.intro { max-width: 760px; margin: var(--s6) auto 0; padding: 0 var(--s5); }
.intro p { font-family: var(--hei); font-size: var(--t-base); line-height: 1.95;
  color: var(--ink-1); text-align: justify; text-wrap: pretty; }
.block { max-width: 1080px; margin: var(--s8) auto 0; padding: 0 var(--s5); }
.block__head { text-align: center; margin-bottom: var(--s5); }
.block__eyebrow { font-family: var(--hei); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .34em; color: var(--accent-deep); }
.block__title { font-family: var(--serif); font-size: var(--t-xl); font-weight: 700;
  color: var(--ink); margin: var(--s2) 0 0; }

/* ---- 八條目 ladder (ascending bars; ONE hue, stepped lightness) ---- */
.ladder { display: flex; align-items: flex-end; gap: 10px; height: 380px;
  max-width: 1000px; margin: var(--s5) auto 0; padding: 0 var(--s3); }
.ladder__step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 8px; }
.ladder__bar { width: 100%; border-radius: 6px 6px 0 0;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / .06); transition: filter .15s; }
.ladder__step:hover .ladder__bar { filter: brightness(1.04); }
.ladder__no { font-family: var(--hei); font-size: 11px; font-weight: 700; color: var(--accent-deep); }
.ladder__name { font-family: var(--serif); font-size: var(--t-sm); font-weight: 700;
  color: var(--ink); letter-spacing: 0; line-height: 1.3; max-width: 100%; }
.ladder__cap { text-align: center; font-family: var(--hei); font-size: var(--t-sm);
  color: var(--ink-2); max-width: 60ch; margin: var(--s4) auto 0; line-height: 1.7; }

/* ---- 三綱領 callout (one bordered box, vermilion top rule — NOT a 3-card grid) ---- */
.sangang { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4);
  max-width: 1000px; margin: var(--s5) auto 0; }
.sangang__item { display: block; text-decoration: none; color: inherit;
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-top: 3px solid var(--vermilion); border-radius: var(--radius); padding: var(--s5);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.sangang__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-1);
  border-color: var(--vermilion); }
.sangang__name { font-family: var(--serif); font-size: var(--t-lg); font-weight: 700; color: var(--ink); }
.sangang__desc { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2);
  margin-top: 8px; line-height: 1.8; }
.sangang__note { font-family: var(--hei); font-size: 12px; color: var(--vermilion);
  margin-top: 10px; letter-spacing: .04em; }

/* ---- stats chips ---- */
.stats { max-width: 1000px; margin: var(--s6) auto 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.stats__cell { background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s5); text-align: center; }
.stats__num { font-family: var(--serif); font-size: var(--t-xl); font-weight: 700; color: var(--accent-deep); }
.stats__label { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); margin-top: 6px; }

/* ---- guide / reading route + CTA ---- */
.guide { max-width: 760px; margin: var(--s6) auto 0; padding: var(--s5);
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.guide__p { font-family: var(--hei); font-size: var(--t-base); line-height: 1.9; color: var(--ink-1); margin: 0 0 var(--s4); }
.guide__p:last-child { margin-bottom: 0; }
.route { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: r; }
.route li { font-family: var(--hei); font-size: var(--t-base); color: var(--ink-1);
  line-height: 1.8; padding: 8px 0 8px 38px; position: relative; border-top: 1px dotted var(--rule); }
.route li::before { counter-increment: r; content: counter(r); position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-deep);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s5);
  background: oklch(0.46 0.12 28); color: #fff; text-decoration: none; font-family: var(--hei);
  font-weight: 600; font-size: var(--t-md); padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px oklch(0.46 0.12 28 / .28); transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px oklch(0.46 0.12 28 / .36); }
.cta--row { text-align: center; }

/* ---- preview grids (people plcard / theme tcard) ---- */
.preview { max-width: 1080px; margin: var(--s7) auto 0; padding: 0 var(--s5); }
.preview__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  margin-bottom: var(--s4); }
.preview__head h2 { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0; }
.preview__head a { font-family: var(--hei); font-size: var(--t-sm); color: var(--accent-deep); text-decoration: none; }
.preview__head a:hover { text-decoration: underline; }

/* ---- worldsnap (landing context strip) ---- */
.worldsnap { max-width: 1000px; margin: var(--s7) auto 0; display: grid; gap: var(--s4);
  grid-template-columns: repeat(3, 1fr); }
.worldsnap__item { background: var(--slip); border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: var(--s4) var(--s5); }
.worldsnap__k { font-family: var(--hei); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold-text); }
.worldsnap__v { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-1); margin-top: 6px; line-height: 1.8; }

/* ---- charlink (gold name links in text) ---- */
.charlink { color: var(--gold-text); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.charlink:hover { background: var(--gold-soft); }

/* ---- reading chapter article (core defines .zhang__baihua*; these complete it) ---- */
.zhang { padding: var(--s5) 0; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.zhang:first-of-type { border-top: 0; }
.zhang__no { font-family: var(--hei); font-size: 12px; color: var(--accent-deep); font-weight: 700;
  letter-spacing: .06em; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.zhang__no span { color: var(--ink-3); font-weight: 500; }
.zhang__t { font-family: var(--serif); font-size: 1.18rem; line-height: 2.0; color: var(--ink);
  margin: 0; text-align: justify; text-wrap: pretty; }
.zhang__speaker { font-family: var(--hei); font-size: 12px; color: var(--vermilion); font-weight: 700; }

/* ---- people page: summary box + LHS category nav ---- */
.summary { background: var(--paper-raised); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s6); }
.summary__tag { display: inline-block; font-family: var(--hei); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; color: #fff; background: var(--accent-deep); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.summary p { font-family: var(--hei); font-size: var(--t-base); line-height: 1.9; color: var(--ink-1); margin: 0; text-align: justify; }

.nav-lhs { font-family: var(--hei); }
.nav-lhs__title { font-size: var(--t-xs); font-weight: 700; letter-spacing: .3em; color: var(--ink-faint);
  margin: 0 0 var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--rule); }
.nav-people { margin-top: var(--s2); }
.nav-people__list { list-style: none; margin: 0; padding: 0; }
.nav-people__item { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: var(--radius); }
.nav-people__item a { color: var(--ink-soft); text-decoration: none; font-size: var(--t-sm); }
.nav-people__item a:hover { color: var(--accent-deep); }
.nav-people__item .t { font-family: var(--hei); font-size: 10px; color: var(--ink-3); margin-left: auto; }

/* ---- RHS panels (context / jingjian / highlights / legend) ---- */
.panel { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s4) var(--s5); }
.panel__head { font-family: var(--hei); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-1); margin: 0 0 10px; padding-left: 11px; border-left: 3px solid var(--accent);
  display: flex; align-items: center; gap: 8px; }
.panel--vermilion .panel__head { border-left-color: var(--vermilion); color: var(--vermilion); }
.panel__body { font-family: var(--hei); font-size: var(--t-sm); line-height: 1.85; color: var(--ink-1); margin: 0; }
.panel__body p { margin: 0 0 8px; } .panel__body p:last-child { margin-bottom: 0; }
.panel--gold .panel__head { border-left-color: var(--gold); color: var(--gold-text); }

/* ---- themes page (curated modern-Chinese essays + cards) ---- */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); max-width: 1080px;
  margin: var(--s5) auto 0; padding: 0 var(--s5); }
.tcard { display: block; background: var(--paper-raised); border: 1px solid var(--rule);
  border-top: 3px solid oklch(0.485 0.115 var(--card-hue)); border-radius: var(--radius);
  padding: var(--s5); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.tcard__kicker { font-family: var(--hei); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: oklch(0.45 0.11 var(--card-hue)); }
.tcard__title { font-family: var(--serif); font-size: var(--t-lg); font-weight: 700; color: var(--ink); margin: 6px 0; }
.tcard__desc { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.8; }
.tsec { max-width: 1080px; margin: var(--s8) auto 0; padding: 0 var(--s5); }
.theme-body { font-family: var(--hei); font-size: var(--t-base); line-height: 1.95; color: var(--ink-1);
  text-align: justify; text-wrap: pretty; max-width: 760px; margin: var(--s4) auto 0; }
.theme-body p { margin: 0 0 var(--s4); }
.theme-body h3 { font-family: var(--hei); font-size: var(--t-md); color: var(--vermilion);
  margin: var(--s5) 0 var(--s2); padding-left: 11px; border-left: 3px solid var(--vermilion); }
.tsec__h { font-family: var(--serif); font-size: var(--t-xl); color: var(--ink); margin: 0 0 var(--s4); text-align: center; }
.prose { font-family: var(--hei); font-size: var(--t-base); line-height: 1.95; color: var(--ink-1);
  text-align: justify; text-wrap: pretty; max-width: 760px; margin: var(--s4) auto 0; }
.prose p { margin: 0 0 var(--s4); }
.tlink { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.tlink:hover { background: var(--accent-wash); }

/* ---- foot ---- */
.foot { border-top: 1px solid var(--rule); margin-top: var(--s9); padding: var(--s6) var(--s5);
  text-align: center; font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-3);
  background: var(--paper-sunk); }
.foot a { color: var(--accent-deep); text-decoration: none; }
.foot__inner { max-width: 980px; margin: 0 auto; line-height: 1.9; }

/* ---- pager ---- */
.pager { display: flex; justify-content: space-between; gap: var(--s4); max-width: 880px; margin: var(--s7) auto 0; padding: 0 var(--s5); }
.pager__prev, .pager__next { font-family: var(--hei); text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; display: flex; flex-direction: column; }
.pager__prev .dir, .pager__next .dir { font-size: 11px; color: var(--ink-3); }
.pager__prev .who, .pager__next .who { font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.pager__next { text-align: right; }
.pager__prev:hover, .pager__next:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---- 404 ---- */
.err { max-width: 640px; margin: var(--s9) auto; text-align: center; padding: 0 var(--s5); }
.err__code { font-family: var(--serif); font-size: var(--t-4xl); font-weight: 900; color: var(--accent); }
.err p { font-family: var(--hei); color: var(--ink-1); line-height: 1.8; }

/* ---- panel title alias (reference render_highlights_panel uses .panel__title) ---- */
.panel__title { font-family: var(--hei); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-text); margin: 0 0 10px; padding-left: 11px; border-left: 3px solid var(--gold); }

/* ---- mulu (正文 chapter index list) ---- */
.mulu { max-width: 880px; margin: var(--s5) auto 0; padding: 0 var(--s5); list-style: none; }
.mulu__item { display: flex; align-items: baseline; gap: var(--s4); padding: var(--s4) var(--s3);
  border-top: 1px solid var(--rule); text-decoration: none; color: inherit; border-radius: var(--radius);
  transition: background .15s, border-color .15s; }
.mulu__item:first-child { border-top: 0; }
.mulu__item:hover { background: var(--accent-wash); }
.mulu__no { font-family: var(--hei); font-size: 12px; font-weight: 700; color: var(--accent-deep);
  min-width: 2.4em; text-align: right; }
.mulu__t { font-family: var(--serif); font-size: var(--t-md); color: var(--ink); font-weight: 600; }
.mulu__title { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); margin-left: auto; }

/* ---- bio paragraph class (G5 requires the class to be styled) ---- */
.pbio__p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; color: var(--ink);
  max-width: var(--measure); text-align: justify; }
.pbio__p:last-child { margin-bottom: 0; }

/* ---- mobile (design review P0#3 + ladder→vertical rail) ---- */
@media (max-width: 920px) {
  .ladder { flex-direction: column; height: auto; align-items: stretch; gap: 0; max-width: 560px; }
  .ladder__step { flex-direction: row; justify-content: flex-start; align-items: stretch; gap: 12px;
    border-left: 3px solid var(--accent); padding: 10px 0; }
  .ladder__bar { width: 8px; height: auto !important; min-height: 46px; border-radius: 0 4px 4px 0; }
  .ladder__name { writing-mode: horizontal-tb; letter-spacing: 0; max-height: none; }
  .ladder__no { order: -1; }
  .sangang { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .worldsnap { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
  .topbar__inner { gap: var(--s3); padding: 0 var(--s4); }
  .topbar__nav a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   theme deep-dive pages (hub + 3 subpages per theme)
   ============================================================ */

/* ---- theme hub fragment ---- */
.theme-hub { margin-top: var(--s7); padding: var(--s6) var(--s5);
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  --hue: var(--card-hue); --accent: oklch(0.485 0.115 var(--hue)); --accent-deep: oklch(0.385 0.095 var(--hue)); }
.theme-hub__h { font-family: var(--serif); font-size: var(--t-xl); color: var(--ink); margin: 0 0 var(--s3); }
.theme-hub__intro { font-family: var(--hei); font-size: var(--t-base); color: var(--ink-1); line-height: 1.9; margin: 0 0 var(--s5); }

/* subpage cards inside hub */
.subcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: var(--s5) 0; }
.subcard { display: block; background: var(--paper); border: 1px solid var(--rule);
  border-top: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s4);
  text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.subcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.subcard__h { font-family: var(--serif); font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.subcard__d { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.8; margin-top: 6px; }

/* mapping table */
.maptable { margin: var(--s5) 0; }
.maptable__title { font-family: var(--hei); font-size: var(--t-md); color: var(--ink); margin: 0 0 var(--s3); }
.maptable__caption { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); margin: 0 0 var(--s2); }
.maptable__table { width: 100%; border-collapse: collapse; font-family: var(--hei); font-size: var(--t-sm); }
.maptable__table th { text-align: left; padding: 10px 12px; background: var(--slip); color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--rule); }
.maptable__table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-1); line-height: 1.7; }

/* ---- flow / org chart ---- */
.flow { margin: var(--s5) 0; }
.flow__title { font-family: var(--hei); font-size: var(--t-md); color: var(--ink); margin: 0 0 var(--s3); }
.flow__track { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.flow__node { flex: 1 1 120px; min-width: 120px; background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s4); position: relative; }
.flow__node--anc { border-top: 3px solid var(--accent); }
.flow__node--mod { border-top: 3px solid var(--vermilion); }
.flow__t { font-family: var(--serif); font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.flow__d { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); line-height: 1.7; margin-top: 6px; }
.flow__arrow { display: block; text-align: center; color: var(--ink-3); margin-top: 6px; }

/* ---- comparison block ---- */
.cmp { margin: var(--s5) 0; }
.cmp__title { font-family: var(--hei); font-size: var(--t-md); color: var(--ink); margin: 0 0 var(--s3); }
.cmp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.cmp__anc, .cmp__mod { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); }
.cmp__anc { border-left: 3px solid var(--accent); }
.cmp__mod { border-left: 3px solid var(--vermilion); }
.cmp__anc h5, .cmp__mod h5 { font-family: var(--hei); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-1); margin: 0 0 var(--s2); }
.cmp__anc p, .cmp__mod p { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-1); line-height: 1.8; margin: 0 0 8px; }
.cmp__after { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s3); line-height: 1.8; }

/* ---- prose block ---- */
.prose-block { margin: var(--s5) 0; }
.prose-block__title { font-family: var(--hei); font-size: var(--t-md); color: var(--ink); margin: 0 0 var(--s3); }
.prose-block p { font-family: var(--hei); font-size: var(--t-base); color: var(--ink-1); line-height: 1.9; margin: 0 0 var(--s3); }

/* ---- subpage skeleton ---- */
.theme-article { max-width: 880px; margin: var(--s6) auto 0; padding: 0 var(--s5); }
.srcq { margin: var(--s5) 0; padding: var(--s5); background: var(--slip); border: 1px solid var(--rule); border-radius: var(--radius); }
.srcq__h { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0 0 var(--s3); }
.srcq__quote { font-family: var(--serif); font-size: var(--t-md); color: var(--ink); line-height: 1.9; margin: 0 0 var(--s2); padding-left: 16px; border-left: 3px solid var(--gold); }
.srcq__cite { display: block; font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-2); margin: 0 0 var(--s3); font-style: normal; }
.srcq__intro { font-family: var(--hei); font-size: var(--t-base); color: var(--ink-1); line-height: 1.9; }
.srcq__intro p { margin: 0 0 var(--s3); }
.blocks { margin: var(--s5) 0; }
.blocks__h { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0 0 var(--s3); }
.modern { margin: var(--s5) 0; }
.modern__h { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0 0 var(--s3); }
.insight { margin: var(--s5) 0; padding: var(--s5); background: var(--paper-raised); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.insight__h { font-family: var(--serif); font-size: var(--t-lg); color: var(--ink); margin: 0 0 var(--s3); }
.insight__body p { font-family: var(--hei); font-size: var(--t-base); color: var(--ink-1); line-height: 1.9; margin: 0 0 var(--s3); }
.insight-list { list-style: none; margin: 0; padding: 0; }
.insight-list li { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-1); line-height: 1.85; padding: 6px 0 6px 18px; position: relative; }
.insight-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-text); }

/* ---- subnav (sibling subpages) ---- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; max-width: 880px; margin: var(--s5) auto 0; padding: 0 var(--s5); }
.subnav__item { font-family: var(--hei); font-size: var(--t-sm); color: var(--ink-soft); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; transition: background .15s, border-color .15s; }
.subnav__item:hover { border-color: var(--accent); color: var(--accent-deep); }
.subnav__item.is-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ---- responsive for theme deep-dive ---- */
@media (max-width: 920px) {
  .subcards { grid-template-columns: 1fr; }
  .cmp__cols { grid-template-columns: 1fr; }
  .flow__track { flex-direction: column; }
}
