/* ==========================================================================
   FISCORA — Design System
   Money · Risk · Growth Intelligence
   Dark-first premium editorial UI. Single source of truth for all 42 pages.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --ink-900: #05070f;
  --ink-850: #080b16;
  --ink-800: #0b101f;
  --ink-750: #101728;
  --ink-700: #16203a;
  --ink-600: #1e2b4a;
  --line: rgba(148, 176, 226, 0.14);
  --line-strong: rgba(148, 176, 226, 0.28);

  --text: #e9eefb;
  --text-soft: #b3c0dc;
  --text-mute: #8592b4;

  --brand: #5b7cfa;
  --brand-2: #23d5c0;
  --brand-3: #8b5cf6;
  --gold: #f5c453;
  --danger: #ff6b81;
  --success: #34d399;

  --grad-brand: linear-gradient(115deg, #5b7cfa 0%, #8b5cf6 45%, #23d5c0 100%);
  --grad-warm: linear-gradient(120deg, #f5c453 0%, #f78d6b 55%, #ef5da8 100%);
  --grad-cool: linear-gradient(140deg, rgba(91,124,250,.22), rgba(35,213,192,.14));

  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --glass-blur: saturate(160%) blur(14px);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 18px rgba(2, 6, 23, .35);
  --shadow: 0 18px 50px -18px rgba(2, 6, 23, .75);
  --shadow-lg: 0 40px 90px -32px rgba(3, 7, 25, .9);

  --wrap: 1240px;
  --wrap-narrow: 780px;
  --header-h: 68px;

  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Light theme */
html[data-theme="light"] {
  --ink-900: #f6f8fd;
  --ink-850: #ffffff;
  --ink-800: #f2f5fb;
  --ink-750: #ecf0f9;
  --ink-700: #e2e8f5;
  --line: rgba(23, 42, 84, 0.12);
  --line-strong: rgba(23, 42, 84, 0.2);
  --text: #10182c;
  --text-soft: #3c4b6b;
  --text-mute: #64748b;
  --brand: #3352e3;
  --brand-2: #0d9488;
  --surface: rgba(16, 32, 70, 0.035);
  --surface-2: rgba(16, 32, 70, 0.06);
  --shadow-sm: 0 4px 16px rgba(18, 34, 74, .08);
  --shadow: 0 18px 44px -20px rgba(18, 34, 74, .28);
  --shadow-lg: 0 36px 80px -34px rgba(18, 34, 74, .35);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink-850);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
ul, ol { padding-left: 1.15rem; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(91,124,250,.35); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h4 { font-size: 1.08rem; }

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -6%, rgba(91,124,250,.20), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(139,92,246,.16), transparent 62%),
    radial-gradient(900px 700px at 55% 108%, rgba(35,213,192,.12), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  opacity: .5;
  pointer-events: none;
}

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(52px, 7vw, 96px) 0; position: relative; }
.section--tight { padding: clamp(34px, 4vw, 56px) 0; }
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--text-soft); line-height: 1.65; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { margin: 12px 0 12px; }

/* ---------- 5. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600; font-size: .93rem;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn i { font-size: .9em; }
.btn--primary {
  background: var(--grad-brand); color: #05070f;
  box-shadow: 0 14px 34px -14px rgba(91,124,250,.85);
  font-weight: 700;
}
.btn--primary:hover { transform: translateY(-2px); color: #05070f; box-shadow: 0 20px 44px -14px rgba(91,124,250,.95); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); backdrop-filter: var(--glass-blur); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.btn--gold { background: var(--grad-warm); color: #241503; font-weight: 700; }
.btn--gold:hover { transform: translateY(-2px); color: #241503; }
.btn--sm { padding: 9px 16px; font-size: .82rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600;
  color: var(--text-soft);
  font-family: var(--font-display);
  letter-spacing: .01em;
  transition: all .2s var(--ease);
}
a.chip:hover, .chip.is-active { color: var(--text); border-color: var(--brand-2); background: rgba(35,213,192,.12); }
.chip--brand { color: var(--brand-2); border-color: rgba(35,213,192,.35); background: rgba(35,213,192,.1); }
.chip--gold { color: var(--gold); border-color: rgba(245,196,83,.35); background: rgba(245,196,83,.1); }
.chip--violet { color: #c4b5fd; border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.12); }

.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }

/* ---------- 6. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: var(--glass-blur);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(600px 200px at 50% -30%, rgba(91,124,250,.18), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .95rem; }
.card--flat:hover { transform: none; }
.card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-cool);
  border: 1px solid var(--line-strong);
  color: var(--brand-2); font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Article cards */
.post {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  height: 100%;
}
.post:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post__art {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--grad-brand);
  display: grid; place-items: center;
  overflow: hidden;
}
.post__art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .25;
}
.post__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,15,.05), rgba(5,7,15,.62));
}
.post__art i { position: relative; z-index: 2; font-size: 2.3rem; color: rgba(255,255,255,.94); text-shadow: 0 6px 22px rgba(0,0,0,.4); }
.post__art .post__cat {
  position: absolute; z-index: 3; left: 14px; top: 14px;
  background: rgba(5,7,15,.62); backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255,255,255,.2);
}
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__body h3 { font-size: 1.1rem; line-height: 1.3; }
.post__body h3 a { color: var(--text); }
.post__body h3 a:hover { color: var(--brand-2); }
.post__dek { color: var(--text-mute); font-size: .9rem; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: .76rem; color: var(--text-mute); border-top: 1px solid var(--line); padding-top: 12px; }
.post--wide { flex-direction: row; }
.post--wide .post__art { aspect-ratio: auto; width: 210px; flex: none; }
.post--row { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: all .25s var(--ease); }
.post--row:hover { border-color: var(--line); background: var(--surface); }
.post--row .rank { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--line-strong); line-height: 1; }
.post--row h4 { font-size: .97rem; line-height: 1.35; }
.post--row h4 a { color: var(--text); }
.post--row h4 a:hover { color: var(--brand-2); }

/* Gradient art variants */
.art-1 { background: linear-gradient(135deg,#4f46e5,#0ea5e9); }
.art-2 { background: linear-gradient(135deg,#0f766e,#22d3ee); }
.art-3 { background: linear-gradient(135deg,#7c3aed,#ec4899); }
.art-4 { background: linear-gradient(135deg,#b45309,#f59e0b); }
.art-5 { background: linear-gradient(135deg,#1d4ed8,#7c3aed); }
.art-6 { background: linear-gradient(135deg,#065f46,#84cc16); }
.art-7 { background: linear-gradient(135deg,#be123c,#f97316); }
.art-8 { background: linear-gradient(135deg,#0f172a,#3b82f6); }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: var(--glass-blur);
  background: color-mix(in srgb, var(--ink-850) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--text); letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #05070f; font-size: .95rem; font-weight: 800;
  box-shadow: 0 8px 22px -8px rgba(91,124,250,.9);
}
.brand__mark i { font-size: .9rem; }
.brand small { display: block; font-size: .58rem; letter-spacing: .22em; color: var(--text-mute); font-weight: 600; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 13px; border-radius: 10px;
  font-size: .89rem; font-weight: 500; color: var(--text-soft);
  font-family: var(--font-display);
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.nav__group { position: relative; }
/* The panel lists every desk, so it grows as desks are added. Three columns
   and a height cap keep it on screen: at 19 items a two-column panel would be
   ten rows tall and run past the bottom of a laptop viewport. */
.nav__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  width: min(940px, 92vw);
  background: color-mix(in srgb, var(--ink-800) 96%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s var(--ease), transform .25s var(--ease);
}
@media (max-width: 1080px) {
  .nav__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(660px, 92vw); }
}
.nav__group:hover .nav__panel, .nav__group:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; }
.nav__panel i { color: var(--brand-2); margin-top: 3px; }
.nav__panel span { display: block; font-size: .9rem; color: var(--text); font-weight: 600; }
.nav__panel em { font-style: normal; font-size: .76rem; color: var(--text-mute); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-soft); transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.burger { display: none; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 0 20px; border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; color: var(--text-soft); font-family: var(--font-display); font-size: .95rem; }
.mobile-nav a:hover { background: var(--surface-2); color: var(--text); }
.mobile-nav .mn-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); padding: 12px 14px 4px; font-weight: 700; }

/* Reading progress */
.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 950; background: transparent; pointer-events: none; }
.progress-rail__fill { height: 100%; width: 0%; background: var(--grad-brand); box-shadow: 0 0 12px rgba(91,124,250,.8); transition: width .1s linear; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 108px) 0 clamp(40px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 16px 0 18px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; }
.stat span { font-size: .74rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }

.hero-panel {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--line-strong);
  padding: 24px; box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
}
.hero-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 108px; margin: 6px 0 14px; }
.spark span {
  flex: 1; border-radius: 6px 6px 3px 3px;
  background: var(--grad-brand); opacity: .85;
  animation: rise .9s var(--ease) both;
}
@keyframes rise { from { height: 4px; opacity: 0; } }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.kv span { color: var(--text-mute); }
.kv b { font-family: var(--font-mono); font-size: .9rem; }
.up { color: var(--success); } .down { color: var(--danger); }

/* Marquee ticker */
.ticker { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker__track { display: flex; gap: 44px; padding: 11px 0; white-space: nowrap; animation: slide 38s linear infinite; }
.ticker__track span { font-size: .8rem; color: var(--text-mute); font-family: var(--font-mono); }
.ticker__track b { color: var(--text-soft); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 9. Article layout ---------- */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 54px);
  max-width: var(--wrap); margin-inline: auto; padding: 30px 22px 60px;
  align-items: start;
}
.article-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.article-head h1 { margin: 14px 0 16px; font-size: clamp(1.9rem, 4vw, 3rem); }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; font-size: .84rem; color: var(--text-mute); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-brand); color: #05070f;
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: .85rem;
}
.byline b { color: var(--text-soft); font-weight: 600; }
.byline .dot::before { content: "•"; margin-right: 10px; color: var(--line-strong); }

.article-body { font-size: 1.055rem; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 {
  margin-top: 2.5em; padding-top: .2em; scroll-margin-top: 92px;
  display: flex; gap: 12px; align-items: baseline;
}
.article-body h2::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad-brand); transform: translateY(-4px);
}
.article-body h3 { margin-top: 1.9em; scroll-margin-top: 92px; color: var(--text); }
.article-body p { color: var(--text-soft); }
.article-body strong { color: var(--text); font-weight: 650; }
.article-body ul, .article-body ol { color: var(--text-soft); padding-left: 1.3rem; }
.article-body li + li { margin-top: .5em; }
.article-body li::marker { color: var(--brand-2); }
.article-body blockquote {
  border-left: 3px solid transparent;
  border-image: var(--grad-brand) 1;
  padding: 6px 0 6px 22px;
  font-family: var(--font-display); font-size: 1.16rem; line-height: 1.5;
  color: var(--text); font-weight: 500;
}
.article-body blockquote cite { display: block; margin-top: 10px; font-size: .82rem; color: var(--text-mute); font-style: normal; font-family: var(--font-body); }
.article-body a { border-bottom: 1px solid rgba(35,213,192,.35); }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: .8rem; color: var(--text-mute); margin-top: 10px; text-align: center; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Rail */
.article-rail { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 20px; }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rail-box h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.toc { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--text-mute); font-size: .85rem; line-height: 1.4; }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }
.toc a.is-active { color: var(--brand-2); border-color: var(--brand-2); background: rgba(35,213,192,.07); font-weight: 600; }
.toc--sub a { padding-left: 26px; font-size: .8rem; }

/* Content components */
.takeaways {
  background: linear-gradient(150deg, rgba(91,124,250,.14), rgba(35,213,192,.07));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.takeaways h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; margin-bottom: 12px; color: var(--text); }
.takeaways h4 i { color: var(--gold); }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { color: var(--text-soft); font-size: .96rem; }

.callout {
  display: flex; gap: 16px;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.callout i { color: var(--brand); font-size: 1.05rem; margin-top: 4px; }
.callout p { font-size: .95rem; margin: 0; }
.callout b { display: block; color: var(--text); font-family: var(--font-display); margin-bottom: 4px; font-size: .93rem; }
.callout--tip { border-left-color: var(--success); } .callout--tip i { color: var(--success); }
.callout--warn { border-left-color: var(--gold); } .callout--warn i { color: var(--gold); }
.callout--risk { border-left-color: var(--danger); } .callout--risk i { color: var(--danger); }
.callout--insight { border-left-color: var(--brand-3); } .callout--insight i { color: var(--brand-3); }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-strip div { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-strip span { font-size: .76rem; color: var(--text-mute); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
table.data th, table.data td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); color: var(--text); font-family: var(--font-display); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
table.data tbody tr:hover { background: var(--surface); }
table.data td { color: var(--text-soft); }
table.data td:first-child { color: var(--text); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .94rem; color: var(--text-soft); }
.checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--success); font-size: .8rem; margin-top: 3px; }
.checklist--x li::before { content: "\f00d"; color: var(--danger); }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 62px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-size: .95rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 17px;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--grad-brand); color: #05070f;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem;
}
.steps b { display: block; color: var(--text); font-family: var(--font-display); margin-bottom: 4px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; transition: border-color .25s; }
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: .98rem; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--brand-2); font-size: .8rem; flex: none; }
.faq details[open] summary::after { content: "\f068"; }
.faq p { padding: 0 0 18px; margin: 0; font-size: .94rem; color: var(--text-soft); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.pros-cons h4 { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; font-size: .95rem; }
.pros-cons ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.pc-good h4 { color: var(--success); } .pc-bad h4 { color: var(--danger); }

/* Interactive widget shell */
.widget {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(91,124,250,.1), rgba(255,255,255,.02));
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.widget__head h3, .widget__head h4 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.widget__head i { color: var(--brand-2); }
.field { display: block; margin-bottom: 14px; }
.field > label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-mute); margin-bottom: 7px; font-weight: 600; }
.field output { color: var(--brand-2); font-family: var(--font-mono); }
input[type="range"] { width: 100%; height: 6px; border-radius: 4px; -webkit-appearance: none; appearance: none; background: var(--surface-2); border: 1px solid var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-brand); border: 2px solid var(--ink-850); cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--ink-850); border-radius: 50%; background: #5b7cfa; cursor: pointer; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink-800); color: var(--text);
  border: 1px solid var(--line-strong);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(35,213,192,.16); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 6px; }
.result {
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--ink-800); border: 1px solid var(--line);
  text-align: center;
}
.result b { display: block; font-family: var(--font-display); font-size: 1.42rem; letter-spacing: -.03em; color: var(--text); }
.result b.hl { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.result span { font-size: .72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.bar-track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; background: var(--grad-brand); width: 0; transition: width .6s var(--ease); }

/* Quiz */
.quiz__q { margin-bottom: 18px; }
.quiz__q > p { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: .98rem; margin-bottom: 10px; }
.opt { display: flex; gap: 11px; align-items: center; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .92rem; color: var(--text-soft); margin-bottom: 8px; transition: all .2s var(--ease); }
.opt:hover { border-color: var(--line-strong); color: var(--text); }
.opt input { accent-color: var(--brand-2); width: 16px; height: 16px; }
.opt.is-picked { border-color: var(--brand-2); background: rgba(35,213,192,.1); color: var(--text); }

/* Series / next up */
.series-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.series-box ol { margin: 12px 0 0; padding-left: 1.2rem; font-size: .92rem; }
.series-box li { color: var(--text-mute); }
.series-box li.is-current { color: var(--text); font-weight: 600; }
.series-box li.is-done::marker { color: var(--success); }

.next-up {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(91,124,250,.18), rgba(139,92,246,.12), rgba(35,213,192,.14));
  border: 1px solid var(--line-strong);
}
.next-up__txt { flex: 1 1 300px; }
.next-up h3 { margin: 6px 0 8px; font-size: 1.35rem; }

/* Newsletter */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 220px; }
.form-note { font-size: .76rem; color: var(--text-mute); margin-top: 10px; }
.form-msg { font-size: .86rem; margin-top: 12px; padding: 10px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: rgba(52,211,153,.12); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.form-msg.err { display: block; background: rgba(255,107,129,.12); color: var(--danger); border: 1px solid rgba(255,107,129,.3); }

/* Reactions */
.reactions { display: flex; gap: 10px; flex-wrap: wrap; }
.react-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-size: .86rem; font-weight: 600; transition: all .2s var(--ease); }
.react-btn:hover { border-color: var(--brand-2); color: var(--text); transform: translateY(-2px); }
.react-btn.is-on { background: rgba(35,213,192,.14); border-color: var(--brand-2); color: var(--text); }

/* ---------- 10. Ads ---------- */
.ad-slot { display: block; width: 100%; margin: 34px 0; text-align: center; }
.ad-slot--rail { margin: 0; }
.ad-label {
  display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute); opacity: .75; margin-bottom: 7px; font-weight: 600;
}
.ad-frame {
  position: relative; width: 100%;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(135deg, rgba(91,124,250,.07), rgba(35,213,192,.05)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(148,176,226,.05) 12px, rgba(148,176,226,.05) 24px);
  display: grid; place-items: center;
  color: var(--text-mute); overflow: hidden;
}
.ad-frame__inner { text-align: center; padding: 12px; }
.ad-frame__inner i { font-size: 1.15rem; color: var(--brand-2); opacity: .8; }
.ad-frame__inner b { display: block; font-family: var(--font-display); font-size: .8rem; color: var(--text-soft); margin-top: 6px; }
.ad-frame__inner span { font-size: .68rem; }
.ad-h-leaderboard { min-height: 100px; } /* 320x100 mobile → 970x90/250 desktop */
.ad-h-inarticle { min-height: 250px; }
.ad-h-rail { min-height: 600px; }
.ad-h-multiplex { min-height: 320px; }
.adsbygoogle { display: block; }

.ad-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
  background: color-mix(in srgb, var(--ink-900) 94%, transparent);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  padding: 6px 10px 8px;
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.ad-anchor.is-up { transform: translateY(0); }
.ad-anchor__close {
  position: absolute; top: -13px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-750); border: 1px solid var(--line-strong);
  color: var(--text-soft); font-size: .7rem; display: grid; place-items: center;
}
.ad-anchor .ad-frame { min-height: 56px; }

/* ---------- 11. Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3, 6, 18, .74);
  backdrop-filter: blur(8px);
  display: none; padding: 12vh 20px 20px;
}
.search-overlay.is-open { display: block; }
.search-panel {
  max-width: 660px; margin-inline: auto;
  background: color-mix(in srgb, var(--ink-800) 97%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-panel__top { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-panel__top i { color: var(--text-mute); }
.search-panel input { border: 0; background: transparent; font-size: 1.05rem; padding: 4px 0; }
.search-panel input:focus { box-shadow: none; }
.search-results { max-height: 56vh; overflow-y: auto; padding: 10px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; color: var(--text); }
.search-results a:hover, .search-results a.is-cursor { background: var(--surface-2); }
.search-results b { display: block; font-size: .94rem; font-family: var(--font-display); }
.search-results em { font-style: normal; font-size: .78rem; color: var(--text-mute); }
.search-hint { padding: 12px 20px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--text-mute); display: flex; gap: 16px; }
kbd { font-family: var(--font-mono); font-size: .7rem; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-strong); }

/* ---------- 12. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(91,124,250,.06)); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; padding: 56px 0 34px; }
.footer-col h5 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-soft); font-size: .89rem; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-mute); }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); }
.social a:hover { color: var(--text); border-color: var(--brand-2); }

/* Consent bar */
.consent {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 960;
  max-width: 520px;
  background: color-mix(in srgb, var(--ink-800) 97%, transparent);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none;
}
.consent.is-open { display: block; }
.consent p { font-size: .84rem; color: var(--text-soft); margin-bottom: 14px; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 88px; z-index: 930;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink-750); border: 1px solid var(--line-strong);
  color: var(--text-soft); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--text); transform: translateY(-3px); }

/* ---------- 13. Utility sections ---------- */
.page-hero { padding: clamp(44px, 6vw, 82px) 0 clamp(24px, 3vw, 40px); position: relative; }
.page-hero h1 { margin: 14px 0 16px; }
.crumbs { display: flex; gap: 9px; align-items: center; font-size: .78rem; color: var(--text-mute); flex-wrap: wrap; }
.crumbs a { color: var(--text-mute); } .crumbs a:hover { color: var(--brand-2); }
.crumbs i { font-size: .6rem; opacity: .6; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 0 26px; }
.tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.timeline { list-style: none; padding: 0 0 0 26px; border-left: 1px solid var(--line-strong); display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-850); border: 2px solid var(--brand-2); }
.timeline h4 { margin-bottom: 6px; }
.timeline p { font-size: .92rem; color: var(--text-soft); }

.glossary-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.glossary-item p { font-size: .93rem; color: var(--text-soft); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-mute); }
.empty-state i { font-size: 2rem; color: var(--brand-2); opacity: .7; margin-bottom: 14px; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.author-box .avatar { width: 54px; height: 54px; font-size: 1.05rem; flex: none; }
.author-box p { font-size: .9rem; color: var(--text-soft); margin-top: 6px; }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; opacity: .8; }
.trust-row span { font-family: var(--font-display); font-size: .82rem; letter-spacing: .06em; color: var(--text-mute); text-transform: uppercase; }

.path-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.path-card__steps { display: grid; gap: 8px; }
.path-step { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.path-step__n { width: 24px; height: 24px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; color: var(--text-mute); }
.path-step.is-done .path-step__n { background: var(--success); color: #05130d; border-color: transparent; }
.path-step a { color: var(--text-soft); } .path-step a:hover { color: var(--brand-2); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); }
  .article-rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .rail-box--toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ---- Tablet header (≤1180px) ----
   The header is a flex row of three items. Without an explicit no-shrink rule
   the brand gets squeezed and its uppercase, letter-spaced tagline is the first
   thing to wrap onto a second and third line. Keep the brand intact, let the
   nav tighten instead, and never allow any header item to wrap. */
@media (max-width: 1180px) {
  .site-header__bar { gap: 12px; }
  .brand { flex: 0 0 auto; }
  .brand small { white-space: nowrap; }
  .nav { gap: 0; min-width: 0; }
  .nav a { padding: 9px 9px; font-size: .84rem; white-space: nowrap; }
  .header-actions { gap: 6px; flex: 0 0 auto; }
}

/* Reclaim tablet space: below this the brand wordmark keeps its name but drops
   the tagline, which buys ~150px and keeps the full nav usable much longer. */
@media (max-width: 1040px) {
  .brand small { display: none; }
  .brand { font-size: 1.08rem; }
  .nav a { padding: 9px 7px; font-size: .82rem; }
  /* The newsletter CTA is the least valuable header item on a tablet. */
  .header-actions .desktop-only { display: none; }
  /* "More" is the last nav item, so a 660px panel centred on it runs off the
     right edge. Anchor it to the trigger's right instead of its centre. */
  .nav__panel { left: auto; right: 0; transform: translate(0, 8px); }
  .nav__group:hover .nav__panel,
  .nav__group:focus-within .nav__panel { transform: translate(0, 0); }
}

/* Burger takeover. Moved 940 → 860 so portrait tablets keep the real nav. */
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .brand small { display: block; }
  .brand { font-size: 1.16rem; }
}
@media (max-width: 940px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .hero__stats { grid-template-columns: 1fr; }
  .post--wide { flex-direction: column; }
  .post--wide .post__art { width: 100%; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ad-h-rail { min-height: 280px; }
  .article-body h2::before { display: none; }
  .to-top { bottom: 96px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
/* ==========================================================================
   PRINT / WORKSHEET  (growth trick #10)
   Turns any article's checklists and step lists into a clean one-page
   worksheet. A printed or PDF-saved worksheet is a physical bookmark that
   sends the reader back to the page it came from, and it travels between
   people offline — untrackable, but real distribution.

   Approach: force a light, ink-cheap document, drop all site furniture and
   interactive chrome, then let checklists and ordered steps print with a
   tick box beside each item so the sheet is actually usable on paper.
   ========================================================================== */
@media print {
  /* --- page setup ------------------------------------------------------- */
  @page { margin: 14mm 13mm; }

  /* Force the light palette regardless of the reader's chosen theme: a dark
     theme would flood the page with ink and render pale text invisible. */
  :root, html, html[data-theme="light"], html:not([data-theme]) {
    --bg: #fff; --bg-2: #fff;
    --surface: #fff; --surface-2: #f6f7fa;
    --text: #14181f; --text-soft: #333a45; --text-mute: #5b6472;
    --line: #c8ccd4; --line-strong: #9aa2ae;
    --brand: #1e40af; --brand-2: #0f766e; --gold: #92600a; --danger: #9f1239;
  }
  html, body {
    background: #fff !important;
    color: #14181f !important;
  }
  body { font-size: 10.5pt; }

  /* --- strip everything that is not content ---------------------------- */
  .site-header, .site-footer, footer, .article-rail, .ad-slot, .ad-anchor,
  .to-top, .consent, .search-overlay, .mobile-nav, .nav, .nav__panel,
  [data-ad], [data-recirc], .recirc, .myth-bar, .calc-share, .calc-restored,
  #save-btn, #share-btn, #theme-toggle, #burger, .reading-progress,
  .page-hero__img, .resume, #resume-section, .reveal-init,
  #print-btn, .router-teaser, .router__controls, .router__meter,
  [data-router-share], [data-router-back], [data-router-restart] {
    display: none !important;
  }

  /* The hero is a dark island on screen; on paper it must be plain. */
  .page-hero, .page-hero::after {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #14181f !important;
  }
  .page-hero { padding: 0 !important; }
  .page-hero__body { padding: 0 !important; }
  .page-hero h1, .page-hero .lede { color: #14181f !important; }

  /* --- layout ---------------------------------------------------------- */
  .article-shell, .wrap, .split, .grid {
    display: block !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .article { max-width: none !important; }
  .section { padding: 0 !important; }

  h1 { font-size: 19pt; margin: 0 0 6pt; }
  h2 { font-size: 13pt; margin: 14pt 0 5pt; break-after: avoid; page-break-after: avoid; }
  h3 { font-size: 11.5pt; margin: 10pt 0 4pt; break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a { color: #14181f !important; text-decoration: none !important; }

  /* Reveal destinations of content links, so a paper copy is still usable.
     Restricted to article prose: printing the href of every nav chip would
     bury the page in noise. */
  .article-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt; color: #5b6472; word-break: break-all;
  }

  /* --- the worksheet itself -------------------------------------------- */
  /* Checklists and step lists become tickable rows. */
  .checklist li, .steps li {
    position: relative;
    list-style: none !important;
    padding-left: 22pt !important;
    margin-bottom: 7pt !important;
    break-inside: avoid; page-break-inside: avoid;
  }
  .checklist li::before, .steps li::before {
    content: "" !important;
    position: absolute; left: 0; top: 1.5pt;
    width: 11pt; height: 11pt;
    border: 1pt solid #5b6472 !important;
    border-radius: 2pt;
    background: #fff !important;
    color: transparent !important;
  }
  .checklist li i, .steps li i { display: none !important; }

  /* Cards, callouts and widgets: keep them, flatten them. */
  .card, .callout, .widget, .takeaways, .review, .review__item, .freshness {
    border: 1pt solid #c8ccd4 !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid; page-break-inside: avoid;
    padding: 8pt 10pt !important;
    margin: 0 0 8pt !important;
  }

  /* A collapsed <details> would print as a bare heading, losing the content.
     Force every critical-review item open so the reasoning survives on paper. */
  details { display: block !important; }
  details > summary { list-style: none; font-weight: 700; }
  details:not([open]) > *:not(summary) { display: revert !important; }
  .review__item > .review__body,
  .review__body { display: block !important; }

  /* Range sliders cannot be used on paper: print the chosen value instead. */
  input[type="range"] { display: none !important; }
  output { font-weight: 700; }

  /* Charts are canvas elements — keep them, they print acceptably. */
  canvas { max-width: 100% !important; height: auto !important; }

  /* Tables */
  table { width: 100% !important; border-collapse: collapse !important; break-inside: auto; }
  th, td { border: .5pt solid #c8ccd4 !important; padding: 3pt 5pt !important; font-size: 9pt !important; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }

  /* Confidence labels must survive to paper — a printed claim without its
     epistemic status is exactly the ambiguity the labels exist to remove.
     Rendered as bracketed text since the colour coding is lost in mono. */
  .conf__badge {
    border: .5pt solid #5b6472 !important;
    background: #fff !important;
    color: #14181f !important;
    font-size: 7.5pt !important;
  }
  .conf__badge i { display: none !important; }
  .conf-block { border-left: 2pt solid #9aa2ae !important; padding-left: 7pt !important; }
  .conf-legend { border: 1pt solid #c8ccd4 !important; break-inside: avoid; }

  /* The steelman is core reasoning, not decoration. */
  .steelman {
    border: 1pt solid #c8ccd4 !important;
    background: #fff !important;
    break-inside: avoid; page-break-inside: avoid;
    padding: 8pt 10pt !important;
  }
  .steelman__verdict { border-top: .5pt dashed #9aa2ae !important; }

  /* A router outcome printed as a worksheet keeps the answer trail. */
  .router__caution { border: 1pt solid #9aa2ae !important; background: #fff !important; }
  .router__trail { border-top: .5pt solid #c8ccd4 !important; }

  /* Attribution footer on every printed sheet, so an offline copy still
     names its source. Uses the print-only class added in the markup. */
  .print-source { display: block !important; }
}

/* Visible only on paper — carries the URL back to the site. */
.print-source { display: none; }

/* ==========================================================================
   15. INDEXED IMAGERY — page heroes and card art

   Every image is addressed by index through a CSS custom property:
       style="--img:url('img/hero-07.jpg')"
   The gradient `art-N` class stays underneath as the base layer, so a
   missing or not-yet-generated file degrades to the existing design instead
   of a broken box. Images are decorative, hence background rather than <img>
   — the semantic copy lives in the h1 and lede beside them.
   ========================================================================== */

/* ---------- Page hero (category hubs + articles) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--grad-brand);
  isolation: isolate;

  /* The hero is a permanently DARK island: its scrim (::after) is hard-coded
     near-black so that any hero image stays legible behind the copy. In light
     theme the global tokens flip to dark ink, which previously rendered a dark
     h1 and lede on top of that dark scrim — unreadable.

     Re-declaring the tokens here scopes dark-theme values to the hero subtree,
     so every descendant (h1, lede, crumbs, byline, chips, stat-strip) inherits
     the right colour in BOTH themes from one place, instead of needing a
     per-element `html[data-theme="light"] .page-hero X` override for each. */
  --text: #e9eefb;
  --text-soft: #b3c0dc;
  --text-mute: #94a3c4;
  --line: rgba(148, 176, 226, 0.20);
  --line-strong: rgba(148, 176, 226, 0.34);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);
  --brand: #7f9bff;
  --brand-2: #3ce0cb;
  color: var(--text);
}
/* Layer 1 — the indexed image, scaled and de-saturated at rest. */
.page-hero__img {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: .5;
  filter: saturate(.75);
  /* The hover animation: slow, single-property-per-axis, GPU friendly. */
  transition:
    transform 1.1s var(--ease),
    opacity .8s var(--ease),
    filter .8s var(--ease);
  will-change: transform;
}
/* Layer 2 — readability scrim. Copy must stay legible on any image. */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(5,7,15,.92) 8%, rgba(5,7,15,.72) 46%, rgba(5,7,15,.44) 100%),
    radial-gradient(90% 120% at 8% 50%, rgba(5,7,15,.55), transparent 70%);
  pointer-events: none;
}
.page-hero__body { position: relative; z-index: 2; padding: clamp(30px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.page-hero__body > .crumbs { margin-bottom: 18px; }
.page-hero h1 { margin: 14px 0 16px; max-width: 30ch; }
.page-hero .lede { max-width: 62ch; }
.page-hero .stat-strip { margin-top: 30px; }
.page-hero .byline { margin-top: 26px; }

/* Hover / focus — the "smooth animated background". A slow zoom plus a
   brightening of the image, nothing that shifts layout or text position. */
.page-hero:hover .page-hero__img,
.page-hero:focus-within .page-hero__img {
  transform: scale(1.13) translate3d(0, -1.2%, 0);
  opacity: .72;
  filter: saturate(1.05);
}

/* A faint sheen drifts across on hover — pure decoration, no reflow. */
.page-hero__sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.10) 48%, transparent 62%);
  transform: translateX(-60%);
  opacity: 0;
  transition: transform 1.5s var(--ease), opacity .6s var(--ease);
}
.page-hero:hover .page-hero__sheen { transform: translateX(60%); opacity: 1; }

/* Hub heroes read a little taller and wider than article heroes. */
.page-hero--hub .page-hero__body { padding-block: clamp(40px, 6vw, 88px); }
.page-hero--article .page-hero__body { padding-block: clamp(28px, 4vw, 54px); }

/* ---------- Card art (post cards + hub feature) ---------- */
/* The image sits above the gradient but below the icon and category chip,
   so the existing icon language survives and un-generated art still works. */
.post__art {
  --img-op: .62;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: background-size .8s var(--ease);
}
.post__art::before {
  /* Was a dot screen over a flat gradient. With an image behind it, dial the
     pattern back so photography is not visibly stippled. */
  opacity: .12;
  transition: opacity .5s var(--ease);
}
/* Slow zoom of the card image on card hover. */
.post:hover .post__art { background-size: 118% auto; }
.post:hover .post__art::before { opacity: .06; }
.post:hover .post__art i { transform: scale(1.06); }
.post__art i { transition: transform .5s var(--ease); }

/* Author portrait */
.author-portrait {
  width: 132px; height: 132px; flex: none;
  border-radius: 20px;
  background-image: var(--img);
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
@media (max-width: 680px) {
  .page-hero h1 { max-width: none; }
  .author-portrait { width: 96px; height: 96px; }
}
/* Honour reduced-motion: keep the image, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .page-hero:hover .page-hero__img,
  .page-hero:focus-within .page-hero__img { transform: scale(1.04); }
  .page-hero__sheen { display: none; }
  .post:hover .post__art { background-size: cover; }
}

/* ==========================================================================
   16. CRITICAL REVIEW — "limits, errors and borders"

   The house differentiator. Every article carries a section that states, with
   reasoning, where the prevailing advice on its topic breaks down: what the
   standard rule gets wrong, the conditions under which it inverts, and the
   boundary outside which it should not be applied at all.

   Deliberately styled as a distinct editorial object rather than another
   `.callout`, because it is a structural part of every article and needs to
   read as a section, not an aside. Amber/danger accents signal "this is a
   correction", separating it visually from the blue explanatory voice.
   ========================================================================== */
.review {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(245,196,83,.07), rgba(255,107,129,.05)),
    var(--surface);
  padding: clamp(22px, 3vw, 30px);
  margin: 34px 0;
}
.review__head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.review__head h2,
.review__head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}
.review__head i { color: var(--gold); }
.review__badge {
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(245,196,83,.14);
  border: 1px solid rgba(245,196,83,.35);
  color: var(--gold);
  white-space: nowrap;
}
.review > p.review__intro {
  color: var(--text-soft);
  font-size: .95rem;
  margin: 0 0 18px;
}

/* Each claim being challenged. <details> so a long review stays scannable. */
.review__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.review__item:last-of-type { margin-bottom: 0; }
.review__item > summary {
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: .96rem;
  color: var(--text);
  display: flex; align-items: flex-start; gap: 11px;
  list-style: none;
  transition: background .25s var(--ease);
}
.review__item > summary::-webkit-details-marker { display: none; }
.review__item > summary::before {
  content: '\f071'; /* triangle-exclamation */
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--gold);
  font-size: .82rem;
  margin-top: 2px;
  flex: none;
}
.review__item > summary:hover { background: var(--surface-2); }
.review__item[open] > summary { background: var(--surface-2); }
.review__body { padding: 4px 18px 18px 41px; }
.review__body > * { margin-top: 0; }
.review__body p { font-size: .93rem; color: var(--text-soft); margin-bottom: 10px; }
.review__body p:last-child { margin-bottom: 0; }

/* The three labelled parts of a critique. */
.review__body b.claim,
.review__body b.limit,
.review__body b.border {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-right: 7px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  vertical-align: 1px;
}
.review__body b.claim  { background: rgba(148,176,226,.14); color: var(--text-mute); }
.review__body b.limit  { background: rgba(245,196,83,.14); color: var(--gold); }
.review__body b.border { background: rgba(255,107,129,.13); color: var(--danger); }

/* Where our own position is weakest — self-critique keeps the section honest. */
.review__self {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: transparent;
}
.review__self p { margin: 0; font-size: .9rem; color: var(--text-mute); }
.review__self b {
  display: block;
  font-family: var(--font-display);
  color: var(--text-soft);
  font-size: .88rem;
  margin-bottom: 5px;
}
@media (max-width: 560px) {
  .review__body { padding-left: 18px; }
}

/* ==========================================================================
   MYTH AUDIT  (growth trick #2)
   Aggregated index of every critical-review claim on the site. Reuses the
   review colour language (gold = where it breaks, teal = still true) so the
   index and the in-article reviews read as one system.
   ========================================================================== */
.myth-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.myth-bar__search { position: relative; flex: 1 1 260px; min-width: 0; }
.myth-bar__search i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); font-size: .85rem; pointer-events: none;
}
.myth-bar__search input { padding-left: 36px; }
.myth-bar input[type="search"],
.myth-bar select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font: inherit; font-size: .92rem;
}
.myth-bar select { width: auto; flex: 0 1 auto; cursor: pointer; }
.myth-bar input[type="search"]:focus,
.myth-bar select:focus { outline: none; border-color: var(--brand); }

.myth-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.myth {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.myth:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.myth__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.myth__verdict {
  font-family: var(--font-mono);
  font-size: .64rem; text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 9px; border-radius: var(--radius-pill);
  border: 1px solid; white-space: nowrap; cursor: help;
}
/* One colour per failure mode, so the modes are recognisable at a glance. */
.myth__verdict--vendor       { color: #ff8fa3; border-color: rgba(255,107,129,.4); background: rgba(255,107,129,.12); }
.myth__verdict--scope        { color: #7f9bff; border-color: rgba(127,155,255,.4); background: rgba(127,155,255,.12); }
.myth__verdict--outdated     { color: var(--gold); border-color: rgba(245,196,83,.4); background: rgba(245,196,83,.12); }
.myth__verdict--survivorship { color: #c4b5fd; border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.14); }
.myth__verdict--overstated   { color: var(--brand-2); border-color: rgba(35,213,192,.38); background: rgba(35,213,192,.1); }

.myth__claim {
  font-size: 1.04rem; line-height: 1.4;
  margin: 0 0 12px; color: var(--text);
}
.myth__limit, .myth__border {
  font-size: .88rem; color: var(--text-soft);
  margin: 0 0 10px;
}
.myth__limit b, .myth__border b {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62rem; text-transform: uppercase; letter-spacing: .07em;
  margin-right: 7px; padding: 2px 7px;
  border-radius: var(--radius-xs); vertical-align: 1px;
}
.myth__limit b  { background: rgba(245,196,83,.14); color: var(--gold); }
.myth__border b { background: rgba(35,213,192,.12); color: var(--brand-2); }
.myth__src {
  margin-top: auto; padding-top: 12px;
  font-size: .82rem; color: var(--text-mute);
  border-top: 1px solid var(--line);
  text-decoration: none; display: block;
}
.myth__src em { color: var(--text-soft); font-style: normal; }
.myth__src:hover { color: var(--brand-2); }
.myth__src:hover em { color: var(--brand-2); }

@media (max-width: 560px) {
  .myth-grid { grid-template-columns: 1fr; }
  .myth-bar select { flex: 1 1 100%; width: 100%; }
}

/* ==========================================================================
   SHAREABLE CALCULATOR SCENARIOS  (growth trick #3)
   ========================================================================== */
.calc-share {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-soft);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.calc-share:hover { color: var(--brand-2); border-color: rgba(35,213,192,.4); }
.calc-share i { color: inherit; }
.calc-share.is-done { color: var(--success); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.1); }

/* ==========================================================================
   FRESHNESS LEDGER  (growth trick #4)
   Sits at the foot of every article and calculator. Visually quieter than the
   critical review — it is a maintenance note, not an argument.
   ========================================================================== */
.freshness {
  margin: 34px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.freshness__head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 10px; }
.freshness__head i { color: var(--brand); }
.freshness__head h2 { margin: 0; font-size: 1.05rem; }
.freshness__body { font-size: .93rem; color: var(--text-soft); margin: 0 0 16px; }
.freshness__grid {
  display: grid; gap: 12px; margin: 0 0 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.freshness__grid div {
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.freshness__grid dt {
  font-family: var(--font-mono);
  font-size: .62rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-mute); margin-bottom: 5px;
}
.freshness__grid dd { margin: 0; font-size: .9rem; color: var(--text); font-weight: 600; }
.freshness__note { font-size: .88rem; color: var(--text-mute); margin: 0; }
.freshness__note em { color: var(--text-soft); font-style: italic; }

/* ==========================================================================
   RESUME CARDS  (growth trick #5)
   Homepage "continue where you left off" shelf. Only rendered for a device
   with existing progress, so this is the one card type a first-time visitor
   never sees.
   ========================================================================== */
.resume {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(139,92,246,.10), rgba(91,124,250,.04));
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.resume:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.resume__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.resume__title { font-size: 1.08rem; line-height: 1.35; margin: 2px 0 0; }
.resume__meta { margin: 0; }
.resume .btn { margin-top: auto; align-self: flex-start; }
.resume .bar-track { margin: 2px 0; }

/* Banner shown when the page opened from a shared scenario link. */
.calc-restored {
  display: flex; align-items: center; gap: 9px;
  margin: -6px 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(35,213,192,.3);
  background: rgba(35,213,192,.08);
  color: var(--text-soft);
  font-size: .86rem;
}
.calc-restored i { color: var(--brand-2); }

/* ==========================================================================
   STEELMAN PAIRING  (growth trick #7)
   The strongest case AGAINST our own position, stated properly. Visually the
   mirror of .review: where the review is gold/amber ("here is where the
   standard advice breaks"), the steelman is cool violet/blue ("here is where
   WE might be wrong"). The two blocks read as a matched pair.
   ========================================================================== */
.steelman {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(139,92,246,.09), rgba(91,124,250,.05)),
    var(--surface);
  padding: clamp(22px, 3vw, 30px);
  margin: 34px 0;
}
.steelman__head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.steelman__head h2,
.steelman__head h3 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.steelman__head i { color: var(--brand-3); }
.steelman__badge {
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(139,92,246,.16);
  border: 1px solid rgba(139,92,246,.38);
  color: var(--brand-3);
  white-space: nowrap;
}
.steelman__intro {
  color: var(--text-soft);
  font-size: .95rem;
  margin: 0 0 18px;
}

/* The opposing argument itself — deliberately given full prose weight
   rather than a collapsed summary, because a hidden counter-argument is
   not a steelman. */
.steelman__case {
  border-left: 3px solid var(--brand-3);
  padding: 2px 0 2px 16px;
  margin: 0 0 18px;
}
.steelman__case p { font-size: .95rem; color: var(--text); margin-bottom: 11px; }
.steelman__case p:last-child { margin-bottom: 0; }
.steelman__case b.who {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-right: 7px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(139,92,246,.14);
  color: var(--brand-3);
  vertical-align: 1px;
}

/* Our answer to it — and the honest concession of what the case gets right. */
.steelman__verdict {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: transparent;
}
.steelman__verdict p { margin: 0 0 9px; font-size: .9rem; color: var(--text-mute); }
.steelman__verdict p:last-child { margin-bottom: 0; }
.steelman__verdict b {
  display: block;
  font-family: var(--font-display);
  color: var(--text-soft);
  font-size: .88rem;
  margin-bottom: 5px;
}
.steelman__concede {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(52,211,153,.13);
  border: 1px solid rgba(52,211,153,.32);
  color: var(--success);
  margin-bottom: 8px;
}

/* ==========================================================================
   CONFIDENCE LABELS  (growth trick #8)
   Four epistemic statuses, each with its own hue so the status is readable
   at a glance without reading the label text.
   ========================================================================== */
.conf__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: 2px;
  cursor: help;
}
.conf__badge i { font-size: .68em; }
.conf__badge--established {
  background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.34); color: var(--success);
}
.conf__badge--contested {
  background: rgba(245,196,83,.14); border-color: rgba(245,196,83,.36); color: var(--gold);
}
.conf__badge--judgement {
  background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.36); color: var(--brand-3);
}
.conf__badge--local {
  background: rgba(35,213,192,.12); border-color: rgba(35,213,192,.34); color: var(--brand-2);
}

/* Inline usage: badge trails the sentence it qualifies. */
.conf { position: relative; }
.conf__inline-tag { margin-left: 7px; }

/* Paragraph usage: a coloured spine plus the badge on its own line. */
.conf-block {
  border-left: 3px solid var(--line-strong);
  padding-left: 15px;
}
.conf-block__tag { display: block; margin-bottom: 6px; }
.conf-block--established { border-left-color: rgba(52,211,153,.5); }
.conf-block--contested   { border-left-color: rgba(245,196,83,.55); }
.conf-block--judgement   { border-left-color: rgba(139,92,246,.55); }
.conf-block--local       { border-left-color: rgba(35,213,192,.5); }

/* Per-article legend, collapsed by default so it never interrupts a read. */
.conf-legend {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin: 28px 0;
  padding: 0 16px;
}
.conf-legend > summary {
  cursor: pointer;
  padding: 13px 0;
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--text-soft);
  display: flex; align-items: center; gap: 9px;
  list-style: none;
}
.conf-legend > summary::-webkit-details-marker { display: none; }
.conf-legend > summary i { color: var(--brand); }
.conf-legend[open] { background: var(--surface-2); }
.conf-legend__body { padding: 0 0 14px; }
.conf-legend__body > p { font-size: .88rem; color: var(--text-mute); margin: 0 0 12px; }
.conf-legend dl { margin: 0; }
.conf-legend dt { margin-bottom: 4px; }
.conf-legend dd {
  margin: 0 0 12px;
  font-size: .86rem;
  color: var(--text-mute);
  padding-left: 2px;
}

/* ==========================================================================
   DIAGNOSTIC ROUTERS  (growth trick #9)
   Stepped question flow ending in a recommendation. Shares the card language
   of the rest of the site, but the active stage is deliberately quiet so the
   question is the only thing competing for attention.
   ========================================================================== */
.router {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 3vw, 28px);
}
.router__head {
  display: flex; align-items: flex-start; gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.router__head > i {
  font-size: 1.15rem; color: var(--brand);
  margin-top: 3px; flex: none;
}
.router__head > div { flex: 1 1 220px; min-width: 0; }
.router__head h2 { margin: 0 0 3px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.router__head p { margin: 0; }

/* Position indicator. Reports the question number rather than a fake
   completion percentage, because tree depth varies by branch. */
.router__meter {
  height: 4px; border-radius: var(--radius-pill);
  background: var(--line); overflow: hidden; margin-bottom: 9px;
}
.router__meter-fill {
  height: 100%; border-radius: inherit;
  background: var(--grad-brand);
  transition: width .35s var(--ease);
}
.router__step-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .64rem;
}

.router__stage { animation: routerIn .3s var(--ease) both; }
.router__stage.is-entering { opacity: 0; transform: translateY(6px); }
@keyframes routerIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .router__stage { animation: none; }
  .router__meter-fill { transition: none; }
}

.router__q {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.3;
}
.router__q:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.router__help {
  margin: 0 0 18px;
  font-size: .88rem;
  color: var(--text-mute);
}

.router__answers { display: grid; gap: 10px; }
.router__a {
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.router__a:hover {
  border-color: var(--brand);
  transform: translateX(3px);
  background: var(--surface);
}
.router__a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.router__a-key {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: var(--radius-xs);
  background: rgba(91,124,250,.14);
  border: 1px solid rgba(91,124,250,.3);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .7rem;
}
.router__a-text { flex: 1 1 auto; min-width: 0; }
.router__a-note {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--text-mute);
  margin-top: 3px;
}
.router__a > i:last-child { color: var(--text-mute); font-size: .75rem; flex: none; }

.router__controls {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- outcome ---------- */
.router__verdict { margin-bottom: 14px; }
.router__verdict-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(35,213,192,.13);
  border: 1px solid rgba(35,213,192,.34);
  color: var(--brand-2);
  margin-bottom: 9px;
}
.router__verdict h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.28;
}
.router__verdict h3:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.router__body { font-size: .95rem; color: var(--text-soft); }
.router__sub {
  font-size: .78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  margin: 22px 0 11px;
}
.router__steps { margin: 0; }

/* Never collapsible, never optional. */
.router__caution {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,196,83,.32);
  background: rgba(245,196,83,.07);
}
.router__caution b {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .87rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.router__caution p { margin: 0; font-size: .89rem; color: var(--text-soft); }

.router__reads { display: grid; gap: 9px; }
.router__read {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.router__read:hover { border-color: var(--brand); transform: translateX(3px); }
.router__read i { color: var(--brand); flex: none; }
.router__read span { display: block; min-width: 0; }
.router__read b {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.router__read em {
  font-style: normal;
  font-size: .74rem;
  color: var(--text-mute);
}

/* The answers that produced this outcome, so a shared link is self-explaining. */
.router__trail {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 9px;
  counter-reset: trail;
}
.router__trail li { display: grid; gap: 2px; }
.router__trail span { font-size: .78rem; color: var(--text-mute); }
.router__trail b { font-size: .88rem; color: var(--text-soft); font-weight: 600; }

/* ---------- index cards ---------- */
.router-card { display: flex; flex-direction: column; gap: 9px; }
.router-card h3 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.router-card p { flex: 1 1 auto; }
.router-card .chip { align-self: flex-start; margin-top: 4px; }

/* ---------- in-article teaser ---------- */
.router-teaser {
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(91,124,250,.10), rgba(35,213,192,.05)), var(--surface);
  padding: 20px;
  margin: 30px 0;
}
.router-teaser__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(91,124,250,.14);
  border: 1px solid rgba(91,124,250,.3);
  color: var(--brand);
}
.router-teaser__body { flex: 1 1 auto; min-width: 0; }
.router-teaser__body b {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 5px;
}
.router-teaser__body p {
  margin: 0 0 12px;
  font-size: .88rem;
  color: var(--text-mute);
}

@media (max-width: 560px) {
  .router-teaser { flex-direction: column; gap: 12px; }
  .router__a { padding: 13px 14px; font-size: .9rem; }
  .router__head > button { width: 100%; justify-content: center; }
}
