:root {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface-1: #1a1a19;
  --surface-2: #232321;
  --surface-3: #2c2c2a;
  --text-primary: #f0efec;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --theist: #3987e5;
  --atheist: #d95926;
  --theist-wash: rgba(57, 135, 229, 0.12);
  --atheist-wash: rgba(217, 89, 38, 0.12);
  --neutral-mark: #77766f;
  --mid: #383835;
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --mark-bg: rgba(250, 178, 25, 0.22);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f9f9f7;
  --surface-1: #fcfcfb;
  --surface-2: #f3f2ef;
  --surface-3: #e9e8e3;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --theist: #2a78d6;
  --atheist: #eb6834;
  --theist-wash: rgba(42, 120, 214, 0.10);
  --atheist-wash: rgba(235, 104, 52, 0.10);
  --neutral-mark: #a3a29b;
  --mid: #f0efec;
  --mark-bg: rgba(250, 178, 25, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text-primary); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.brand small { display: block; color: var(--text-muted); font-size: 12px; }
.brand-mark { display: flex; gap: 3px; }
.brand-mark i { width: 10px; height: 28px; border-radius: 3px; display: block; }
.brand-mark .t { background: var(--theist); }
.brand-mark .a { background: var(--atheist); margin-top: 6px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.search input { width: min(380px, 40vw); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); font: inherit; }
.ghost { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.ghost:hover { background: var(--surface-2); }

main { max-width: 1320px; margin: 0 auto; padding: 24px 28px 48px; }
.foot { max-width: 1320px; margin: 0 auto; padding: 0 28px 32px; color: var(--text-muted); font-size: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; }
.hero-record { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.eyebrow { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.record { display: flex; align-items: baseline; gap: 18px; margin: 6px 0 14px; flex-wrap: wrap; }
.record .big { font-size: 56px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.record .vs { color: var(--text-muted); font-size: 18px; }
.record .who { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.theist { background: var(--theist); }
.dot.atheist { background: var(--atheist); }
.dot.draw { background: var(--neutral-mark); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.tile .label { color: var(--text-secondary); font-size: 13px; }
.tile .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; display: flex; gap: 10px; align-items: baseline; }
.tile .value .split { font-size: 13px; color: var(--text-muted); font-weight: 400; display: flex; gap: 10px; }
.tile .split span { display: inline-flex; align-items: center; gap: 5px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.chip { border: 1px solid var(--border); background: var(--surface-1); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--text-primary); color: var(--page); border-color: transparent; }
.filters .sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.filters .count { color: var(--text-muted); font-size: 13px; margin-left: auto; }

/* cards & grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 16px; min-width: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.card h2 { font-size: 15px; margin: 0; font-weight: 620; }
.card .sub { color: var(--text-muted); font-size: 13px; margin: 2px 0 12px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { width: 100%; position: relative; }
.chart svg { display: block; overflow: visible; }
svg text { font-family: var(--font); }
.ax { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lbl { fill: var(--text-secondary); font-size: 12px; }
.val { fill: var(--text-primary); font-size: 11px; font-variant-numeric: tabular-nums; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.baseline { stroke: var(--axis); stroke-width: 1; }
.clickable { cursor: pointer; }
.row-hit:hover { fill: var(--surface-2); }
.f-theist { fill: var(--theist); } .f-atheist { fill: var(--atheist); } .f-neutral { fill: var(--neutral-mark); }
.s-theist { stroke: var(--theist); } .s-atheist { stroke: var(--atheist); }
.ring { stroke: var(--surface-1); stroke-width: 2; }

/* insights */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.insight { border-left: 3px solid var(--axis); padding: 4px 0 4px 12px; }
.insight .k { color: var(--text-muted); font-size: 12px; }
.insight .v { font-size: 14px; }
.insight a { text-decoration: none; border-bottom: 1px solid var(--axis); }

/* highlights */
.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hl { background: var(--surface-2); border-radius: 10px; padding: 14px; border-top: 3px solid var(--axis); display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; }
.hl.theist { border-top-color: var(--theist); }
.hl.atheist { border-top-color: var(--atheist); }
.hl:hover { background: var(--surface-3); }
.hl q { font-size: 14px; line-height: 1.45; }
.hl .why { color: var(--text-secondary); font-size: 12.5px; }
.hl .meta { color: var(--text-muted); font-size: 12px; display: flex; gap: 8px; align-items: center; }

/* table */
table.lb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lb th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; white-space: nowrap; }
.lb td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.lb tbody tr { cursor: pointer; }
.lb tbody tr:hover { background: var(--surface-2); }
.lb .num { text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--surface-3); color: var(--text-secondary); white-space: nowrap; }
.pill.theist { background: var(--theist-wash); color: var(--text-primary); }
.pill.atheist { background: var(--atheist-wash); color: var(--text-primary); }

/* topic view */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.back:hover { color: var(--text-primary); }
.topic-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 20px; }
.topic-head h1 { font-size: 32px; letter-spacing: -0.02em; margin: 4px 0 6px; line-height: 1.15; }
.topic-head .res { font-size: 17px; color: var(--text-secondary); margin: 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.score-duel { display: flex; gap: 12px; }
.duel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 150px; position: relative; overflow: hidden; }
.duel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.duel.theist::before { background: var(--theist); }
.duel.atheist::before { background: var(--atheist); }
.duel .side { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.duel .score { font-size: 48px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.duel .score small { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.duel .crown { position: absolute; right: 12px; top: 10px; font-size: 12px; color: var(--text-secondary); }

.scorecard { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.scorecard th, .scorecard td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.scorecard th:first-child, .scorecard td:first-child { text-align: left; }
.scorecard thead th { color: var(--text-muted); font-weight: 600; font-size: 12px; }
.scorecard .t { color: var(--text-primary); }
.scorecard .better { font-weight: 700; }

.tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { border: 1px solid var(--border); background: transparent; border-radius: 8px; padding: 5px 12px; font-size: 13px; color: var(--text-secondary); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text-primary); }
.verdict { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.verdict p { margin: 0 0 10px; }
.winline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }

.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list li { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; border-left: 3px solid var(--axis); }
.list li.theist { border-left-color: var(--theist); }
.list li.atheist { border-left-color: var(--atheist); }
.list .meta { color: var(--text-muted); font-size: 12px; margin-bottom: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list .meta b { color: var(--text-secondary); font-weight: 600; }
.list q { color: var(--text-secondary); font-style: italic; }
.sev { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-secondary); }
.sev.major { background: rgba(208, 59, 59, 0.22); color: var(--text-primary); }
.sev.moderate { background: rgba(250, 178, 25, 0.18); color: var(--text-primary); }
.empty { color: var(--text-muted); font-size: 13px; font-style: italic; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col h3 { font-size: 13px; margin: 0 0 8px; display: flex; gap: 6px; align-items: center; color: var(--text-secondary); font-weight: 600; }

/* transcript */
.transcript-wrap { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.round-nav { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 100px); overflow-y: auto; }
.round-nav a { font-size: 12px; text-decoration: none; color: var(--text-muted); padding: 3px 8px; border-radius: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.round-nav a:hover { background: var(--surface-2); color: var(--text-primary); }
.round-nav a.has-c { color: var(--text-primary); box-shadow: inset 2px 0 0 var(--warning); }
.round { margin-bottom: 26px; scroll-margin-top: 80px; }
.round-title { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 10px; }
.round-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.turns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.turn { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; position: relative; min-width: 0; }
.turn.theist { border-top: 3px solid var(--theist); }
.turn.atheist { border-top: 3px solid var(--atheist); }
.turn.solo { grid-column: span 2; }
.turn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.turn-head .who { font-weight: 620; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.turn-head .type { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.speech { font-size: 14px; line-height: 1.62; color: var(--text-primary); overflow-wrap: anywhere; }
.speech p { margin: 0 0 10px; }
.speech ul, .speech ol { margin: 0 0 10px; padding-left: 20px; }
.speech blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--axis); color: var(--text-secondary); }
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 2px; }
mark.hlq { background: transparent; box-shadow: inset 0 -2px 0 var(--warning); }
.turn-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
.concede { background: rgba(250, 178, 25, 0.10); border-radius: 8px; padding: 7px 10px; }
.concede b { color: var(--warning); font-weight: 600; }
.qs { color: var(--text-secondary); }
.qs b { color: var(--text-primary); font-weight: 600; }
.signal { font-size: 12px; color: var(--text-secondary); }
.signal .pill { margin-right: 6px; }
details.src summary { color: var(--text-muted); cursor: pointer; font-size: 12px; }
details.src ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-secondary); }
.claims { display: flex; flex-direction: column; gap: 4px; }
.claim { display: grid; grid-template-columns: 1fr 70px; gap: 8px; align-items: center; color: var(--text-secondary); }
.conf { height: 6px; background: var(--surface-3); border-radius: 999px; position: relative; }
.conf i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.turn.theist .conf i { background: var(--theist); }
.turn.atheist .conf i { background: var(--atheist); }

#tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface-3); color: var(--text-primary); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); line-height: 1.45; }
#tooltip .tt-title { font-weight: 600; margin-bottom: 3px; }
#tooltip .tt-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
#tooltip .tt-row span:first-child { display: inline-flex; gap: 6px; align-items: center; color: var(--text-secondary); }
#tooltip .tt-muted { color: var(--text-muted); font-size: 12px; }

@media (max-width: 1000px) {
  .hero, .topic-head { grid-template-columns: 1fr; }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .turns, .two-col { grid-template-columns: 1fr; }
  .turn.solo { grid-column: auto; }
  .transcript-wrap { grid-template-columns: 1fr; }
  .round-nav { display: none; }
}

.card-head .legend { flex-wrap: nowrap; white-space: nowrap; flex: none; }
.card-head > div:first-child { min-width: 0; }

/* ---------- top nav ---------- */
.topnav { display: flex; gap: 4px; margin-left: 18px; }
.topnav a { color: var(--text-secondary); text-decoration: none; font-size: 13.5px; padding: 6px 12px; border-radius: 8px; }
.topnav a:hover { background: var(--surface-2); color: var(--text-primary); }
.topnav a[aria-current="page"] { background: var(--surface-3); color: var(--text-primary); }

/* ---------- evidence reviews ---------- */
.mmark { fill: var(--text-primary); stroke: var(--page); stroke-width: 1.2; }
.tick { fill: var(--text-muted); font-size: 11.5px; }
.tick.strong { fill: var(--text-primary); font-weight: 600; }
.rv-h1 { font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.rv-intro { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; max-width: 70ch; }
#tooltip .tt-q { color: var(--text-muted); font-size: 12px; margin-bottom: 6px; max-width: 320px; }
.verdicts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vcard { text-align: left; background: var(--surface-2); border: 0; border-top: 4px solid var(--axis); border-radius: 10px; padding: 14px; color: var(--text-primary); cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; }
.vcard:hover { background: var(--surface-3); }
.vcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.vcard .meta b { color: var(--text-primary); font-weight: 600; }
.vcard .vnum span { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.vcard .vnum small { color: var(--text-secondary); font-size: 12.5px; margin-left: 8px; }
.vcard p { margin: 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; }
.bigcred { text-align: right; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--border); border-right: 6px solid var(--c); min-width: 200px; }
.bigcred .n { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.bigcred .b { font-size: 15px; font-weight: 600; }
.bigcred .rng { color: var(--text-muted); font-size: 12.5px; }
.linkpill { text-decoration: none; color: var(--text-primary); }
.linkpill:hover { background: var(--surface-2); }
.synth .lead { font-size: 15.5px; }
.prose { line-height: 1.6; font-size: 14.5px; color: var(--text-primary); }
.prose p { margin: 0 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two.gap { gap: 22px; margin-top: 8px; }
.settled, .open { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.settled { border-left: 3px solid var(--text-secondary); }
.open { border-left: 3px dashed var(--text-muted); }
.settled p, .open p { margin: 0; font-size: 14px; line-height: 1.55; }
.card h4 { font-size: 13.5px; margin: 20px 0 8px; font-weight: 620; display: flex; align-items: center; gap: 6px; }
.card h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 4px; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
ul.plain.for li::marker { color: var(--theist); }
ul.plain.against li::marker { color: var(--atheist); }
.muted { color: var(--text-secondary); }
.note { color: var(--text-muted); font-size: 12px; font-style: italic; margin-top: 10px; }
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 6px 0 10px; }
.an-head h3 { font-size: 21px; margin: 4px 0 0; letter-spacing: -0.01em; }
.an-cred { display: flex; align-items: center; gap: 8px; }
.cbar { display: inline-block; width: 80px; height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; vertical-align: middle; flex: none; }
.cbar.wide { width: 160px; height: 12px; border-radius: 6px; }
.cbar i { display: block; height: 100%; }
.cnum { font-size: 13px; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.an-cred .cnum { font-size: 20px; }
.subclaims { display: flex; flex-direction: column; gap: 8px; }
.sc { background: var(--surface-2); border-radius: 10px; }
.sc summary { cursor: pointer; padding: 10px 12px; display: flex; align-items: center; gap: 10px; list-style: none; font-size: 14px; }
.sc summary::-webkit-details-marker { display: none; }
.sc summary::before { content: '▸'; color: var(--text-muted); transition: transform .15s; }
.sc[open] summary::before { transform: rotate(90deg); }
.sc-claim { flex: 1; }
.sc-kind { color: var(--text-muted); font-size: 12px; }
.sc-body { padding: 0 14px 14px 30px; font-size: 14px; line-height: 1.55; }
.sc-body p { margin: 6px 0; }
.sc-body .for { border-left: 3px solid var(--theist); padding-left: 10px; }
.sc-body .against { border-left: 3px solid var(--atheist); padding-left: 10px; }
.cruxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.crux { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.crux p { margin: 4px 0; }
.crux-q { font-weight: 600; font-size: 14px; }
.crux-view { color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 6px; margin-top: 8px !important; }
ul.src { font-size: 13px; }
.pn { display: flex; justify-content: space-between; margin: 20px 0; }
.pn a { color: var(--text-secondary); text-decoration: none; font-size: 13.5px; }
.pn a:hover { color: var(--text-primary); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .topnav { margin-left: 6px; } }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .topbar { position: static; flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .brand { flex: 1; min-width: 0; }
  .brand small { font-size: 11px; }
  .topnav { order: 3; margin: 0; width: 100%; }
  .topnav a { flex: 1; text-align: center; background: var(--surface-1); }
  .topbar-actions { order: 4; width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  main { padding: 14px 12px 32px; }
  .foot { padding: 0 14px 24px; }
  .card { padding: 14px 12px; }
  .card-head { flex-direction: column; gap: 4px; }
  .card-head .legend { flex-wrap: wrap; white-space: normal; margin-bottom: 8px; }
  .hero-record { padding: 16px; }
  .rv-h1 { font-size: 22px; }
  .rv-intro { font-size: 14px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile .value { font-size: 22px; flex-wrap: wrap; }
  .topic-head h1 { font-size: 23px; }
  .topic-head .res { font-size: 15px; }
  .bigcred { text-align: left; border-right: 1px solid var(--border); border-left: 6px solid var(--c); }
  .bigcred .n { font-size: 38px; }
  .cruxes, .verdicts { grid-template-columns: 1fr; }
  .an-head { flex-direction: column; align-items: flex-start; }
  .cbar.wide { width: 120px; }
  .sc summary { flex-wrap: wrap; }
  .sc-claim { flex-basis: calc(100% - 24px); }
  .sc-body { padding: 0 12px 12px 14px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filters .chip { flex: none; }
  .filters .count { display: none; }
}

/* ---------- crux-type palette (validated: dark + light) ---------- */
:root { --c-evidence: #199e70; --c-prior: #c98500; --c-value: #d55181; --c-definition: #9085e9; }
:root[data-theme="light"] { --c-evidence: #1baf7a; --c-prior: #eda100; --c-value: #e87ba4; --c-definition: #6250d6; }

.cellv { font-size: 11.5px; fill: var(--text-primary); font-variant-numeric: tabular-nums; pointer-events: none; }
.cellv.on { fill: #fff; font-weight: 600; }
:root[data-theme="light"] .cellv.on { fill: #0b0b0b; }
.lbl-s { font-size: 11px; fill: var(--text-secondary); pointer-events: none; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.seg .chip { font-size: 12px; padding: 3px 10px; }

.glances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.glance { text-align: left; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--text-primary); }
button.glance:hover { background: var(--surface-2); }
.glance b { font-size: 17px; }
.glance span:last-child { color: var(--text-secondary); font-size: 13px; }

.method { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 1.65; }
.method h1 { font-size: 32px; letter-spacing: -0.02em; line-height: 1.2; margin: 6px 0 10px; }
.method h2 { font-size: 19px; margin: 32px 0 8px; }
.method .lede { font-size: 18px; color: var(--text-secondary); }
.method a { color: var(--theist); }
.steps { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.scale { display: flex; border-radius: 8px; overflow: hidden; margin: 12px 0; }
.scale span { flex: 1; text-align: center; font-size: 12px; padding: 8px 2px; color: var(--text-primary); }
.scale span.on { color: #fff; font-weight: 600; }
.method ul.plain { font-size: 15px; }

.why { margin-bottom: 20px; }
.why .rv-intro { max-width: 80ch; }
.vs-case { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 6px 0 16px; }
.vs-case > div:not(.arrow) { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.vs-case .big-n { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.vs-case span:last-child { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.vs-case .arrow { align-self: center; font-size: 30px; color: var(--text-muted); }

@media (max-width: 1000px) { .glances { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .vs-case { grid-template-columns: 1fr; }
  .vs-case .arrow { display: none; }
  .scale span { font-size: 10px; }
  .method h1 { font-size: 25px; }
  .topnav a { font-size: 13px; padding: 6px 4px; }
}
