/* Artificial Critique — two-column debate aesthetic.
   Sans-serif body, mono chrome, model-badged sides, dense and scannable. */

:root {
  --bg: #faf8f3;
  --bg-alt: #f3f1ea;
  --bg-deep: #e9e6dc;
  --paper: #fffdf8;

  --ink: #1a1d24;
  --ink-strong: #0e1116;
  --ink-mid: #4a4f5a;
  --ink-soft: #6b7080;
  --ink-mute: #9296a0;
  --line: #dcd9cf;
  --line-soft: #e6e3d8;

  --accent: #3e547a;
  --accent-hover: #ebeef4;

  /* Muted, mature side palette — distinguished by hue, not saturation */
  --aff: #3e547a;          /* muted steel blue */
  --aff-bg: #f1f3f7;
  --aff-edge: #c7cfdc;
  --aff-chip: #3e547a;

  --neg: #7a5340;          /* muted terracotta / warm taupe */
  --neg-bg: #f6f1ec;
  --neg-edge: #d9c9bb;
  --neg-chip: #7a5340;

  --arb: #4e6058;          /* muted sage */
  --arb-bg: #f1f3f1;
  --arb-edge: #c9d2cd;
  --arb-chip: #4e6058;

  /* Status pill colors — keep meaningful but desaturate */
  --st-strong: #4e6058;
  --st-settled: #4e6058;
  --st-moderate: #6f7755;
  --st-mixed: #6b7080;
  --st-weak: #8d7340;
  --st-rejected: #7a5340;
  --st-open: #4a4f5a;

  --mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", "Charter", "Iowan Old Style", "Iowan Old Style Roman", Georgia, serif;

  --content-max: 880px;
  --wide-max: 1180px;

  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-mute);
  padding-bottom: 1px;
  transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease;
}
a:hover { background: var(--accent-hover); border-bottom-color: var(--ink); }

p { margin: 0 0 14px; }

/* -------- Site chrome -------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 245, 0.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
header.site .wrap {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
header.site .brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  border-bottom: none;
}
header.site .brand a { border-bottom: none; color: inherit; }
header.site .brand .dot { color: var(--accent); }
header.site nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  margin-left: auto;
}
header.site nav a {
  color: var(--ink-soft);
  border-bottom: none;
  padding: 2px 0;
  letter-spacing: 0.02em;
}
header.site nav a:hover { background: transparent; color: var(--ink-strong); }
header.site nav a.active {
  color: var(--ink-strong);
  border-bottom: 1px solid var(--ink);
}

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 28px 120px;
}
main.wide { max-width: var(--wide-max); }

/* -------- Typography -------- */

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink-strong);
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.028em;
}
h2 {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  margin: 56px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-strong);
  display: flex; align-items: baseline; gap: 14px;
}
h2 .h2-num {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  font-weight: 500;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 10.5px;
  font-family: var(--mono);
  font-weight: 700;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
}

.lede {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.eyebrow .dot { color: var(--ink-mute); }

ul, ol { padding-left: 18px; margin: 0 0 16px; }
ul li, ol li { margin: 4px 0; }

ul.tight, ol.tight { padding-left: 16px; }
ul.tight li, ol.tight li { margin: 2px 0; font-size: 13px; line-height: 1.5; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 2px;
  color: var(--ink-strong);
}

hr.soft { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* -------- Model chip -------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--bg-alt);
  color: var(--ink-mid);
  border: 1px solid var(--line);
  text-transform: none;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.chip.aff { background: var(--aff-bg); color: var(--aff-chip); border-color: var(--aff-edge); }
.chip.aff::before { background: var(--aff-chip); }
.chip.neg { background: var(--neg-bg); color: var(--neg-chip); border-color: var(--neg-edge); }
.chip.neg::before { background: var(--neg-chip); }
.chip.arb { background: var(--arb-bg); color: var(--arb-chip); border-color: var(--arb-edge); }
.chip.arb::before { background: var(--arb-chip); }

/* Model-specific chips (used when both sides are the same model).
   The ::before becomes a logo glyph via SVG mask — color follows the chip. */
.chip.gpt { background: #eaf6f0; color: #0c6e54; border-color: #b6dcca; }
.chip.gpt::before {
  width: 11px; height: 11px;
  border-radius: 0;
  background: #0c8c66;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.28 10.04a5.99 5.99 0 0 0-.51-4.91 6.06 6.06 0 0 0-6.54-2.91A6.07 6.07 0 0 0 10.62 0a6.07 6.07 0 0 0-5.79 4.2 6.04 6.04 0 0 0-4.04 2.93 6.05 6.05 0 0 0 .76 7.13 6 6 0 0 0 .51 4.91 6.06 6.06 0 0 0 6.54 2.9A6.06 6.06 0 0 0 13.13 24a6.07 6.07 0 0 0 5.78-4.2 6.04 6.04 0 0 0 4.04-2.94 6.05 6.05 0 0 0-.76-7.12zm-9.16 12.84a4.5 4.5 0 0 1-2.89-1.04l.14-.08 4.79-2.77a.78.78 0 0 0 .39-.68v-6.76l2.02 1.17a.07.07 0 0 1 .04.06v5.6a4.5 4.5 0 0 1-4.49 4.5zM3.46 18.94a4.5 4.5 0 0 1-.54-3.01l.14.09 4.79 2.77a.78.78 0 0 0 .79 0l5.85-3.38v2.34a.07.07 0 0 1-.03.06l-4.85 2.8a4.5 4.5 0 0 1-6.15-1.67zm-1.26-10.4a4.5 4.5 0 0 1 2.35-1.97V12a.78.78 0 0 0 .38.68l5.83 3.36-2.02 1.17a.07.07 0 0 1-.06 0l-4.84-2.81a4.5 4.5 0 0 1-1.64-6.13zm16.65 3.86l-5.85-3.36 2.02-1.17a.07.07 0 0 1 .06 0l4.84 2.81a4.5 4.5 0 0 1-.68 8.13v-5.74a.78.78 0 0 0-.39-.67zm2.01-3.02l-.13-.08-4.79-2.79a.78.78 0 0 0-.79 0L9.3 9.89V7.55a.07.07 0 0 1 .03-.06l4.85-2.8a4.5 4.5 0 0 1 6.68 4.66zm-12.66 4.16l-2.02-1.17a.07.07 0 0 1-.04-.06V6.71a4.5 4.5 0 0 1 7.38-3.45l-.14.08-4.79 2.77a.78.78 0 0 0-.39.68v6.76zm1.1-2.37l2.6-1.5 2.6 1.5v3l-2.6 1.5-2.6-1.5z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.28 10.04a5.99 5.99 0 0 0-.51-4.91 6.06 6.06 0 0 0-6.54-2.91A6.07 6.07 0 0 0 10.62 0a6.07 6.07 0 0 0-5.79 4.2 6.04 6.04 0 0 0-4.04 2.93 6.05 6.05 0 0 0 .76 7.13 6 6 0 0 0 .51 4.91 6.06 6.06 0 0 0 6.54 2.9A6.06 6.06 0 0 0 13.13 24a6.07 6.07 0 0 0 5.78-4.2 6.04 6.04 0 0 0 4.04-2.94 6.05 6.05 0 0 0-.76-7.12zm-9.16 12.84a4.5 4.5 0 0 1-2.89-1.04l.14-.08 4.79-2.77a.78.78 0 0 0 .39-.68v-6.76l2.02 1.17a.07.07 0 0 1 .04.06v5.6a4.5 4.5 0 0 1-4.49 4.5zM3.46 18.94a4.5 4.5 0 0 1-.54-3.01l.14.09 4.79 2.77a.78.78 0 0 0 .79 0l5.85-3.38v2.34a.07.07 0 0 1-.03.06l-4.85 2.8a4.5 4.5 0 0 1-6.15-1.67zm-1.26-10.4a4.5 4.5 0 0 1 2.35-1.97V12a.78.78 0 0 0 .38.68l5.83 3.36-2.02 1.17a.07.07 0 0 1-.06 0l-4.84-2.81a4.5 4.5 0 0 1-1.64-6.13zm16.65 3.86l-5.85-3.36 2.02-1.17a.07.07 0 0 1 .06 0l4.84 2.81a4.5 4.5 0 0 1-.68 8.13v-5.74a.78.78 0 0 0-.39-.67zm2.01-3.02l-.13-.08-4.79-2.79a.78.78 0 0 0-.79 0L9.3 9.89V7.55a.07.07 0 0 1 .03-.06l4.85-2.8a4.5 4.5 0 0 1 6.68 4.66zm-12.66 4.16l-2.02-1.17a.07.07 0 0 1-.04-.06V6.71a4.5 4.5 0 0 1 7.38-3.45l-.14.08-4.79 2.77a.78.78 0 0 0-.39.68v6.76zm1.1-2.37l2.6-1.5 2.6 1.5v3l-2.6 1.5-2.6-1.5z' fill='black'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.chip.claude { background: #fbeee5; color: #a35a3f; border-color: #eccfba; }
.chip.claude::before {
  width: 11px; height: 11px;
  border-radius: 0;
  background: #cc785c;
  /* Anthropic mark — stylized "burst" with 4 radiating arms */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 1 L18.2 13.8 L31 16 L18.2 18.2 L16 31 L13.8 18.2 L1 16 L13.8 13.8 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 1 L18.2 13.8 L31 16 L18.2 18.2 L16 31 L13.8 18.2 L1 16 L13.8 13.8 Z' fill='black'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* Thinking-time meta — shows "thought for X min" next to speaker */
.thinking-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.thinking-meta::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-mute);
  border-top-color: transparent;
  opacity: 0.6;
}

/* Inline meta row (chip + thinking) */
.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Toggle button kept in markup for future use, but hidden — the prose
   is the main text of each card now. */
.expand-btn { display: none; }

.expanded-prose {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.expanded-prose.collapsed { display: none; }
.expanded-prose p { margin: 0 0 10px; }
.expanded-prose p:last-child { margin-bottom: 0; }
.expanded-prose .trace-marker {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.expanded-prose .trace-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.expanded-prose b { color: var(--ink-strong); font-weight: 600; }
.expanded-prose i { color: var(--ink-mid); }

/* Sub-marker for distinct turns inside an expanded section (e.g. rebuttal). */
.expanded-prose .trace-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.expanded-prose .trace-sub .turn-time {
  color: var(--ink-mute);
  font-weight: 500;
}

/* Detailed-snapshot sub-sections */
.snap-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}
.snap-section:first-of-type {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.snap-section .snap-key {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.snap-section .snap-key .status {
  color: var(--ink-mid);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.snap-section .snap-detail {
  font-size: 12.5px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0;
}
.snap-section .snap-detail b { color: var(--ink-strong); font-weight: 600; }
.snap-section .snap-detail .round-ref {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* -------- Hero (debate header) -------- */

.debate-hero {
  margin: 0 0 36px;
}
.debate-hero .matchup {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.debate-hero .vs { color: var(--ink-mute); font-family: var(--mono); font-size: 11px; }
.debate-hero .arbiter-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 8px;
}

.debate-hero .question {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 28ch;
  color: var(--ink-strong);
}
.debate-hero .reframe-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.5;
}
.debate-hero .reframe-note b { color: var(--ink-mid); }

/* -------- Snapshot card -------- */

.snapshot-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  border: 1px solid var(--ink);
  margin: 24px 0 36px;
  background: var(--paper);
}
@media (max-width: 760px) {
  .snapshot-card { grid-template-columns: 1fr; }
}
.snapshot-card .snap-main {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}
/* Latest-round metrics — horizontal bars per side, scored 0–7. */
.snap-bars {
  display: grid;
  grid-template-columns: 96px 1fr 1fr;
  column-gap: 14px;
  row-gap: 9px;
  align-items: center;
}
.snap-bars .col-head {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 4px;
}
.snap-bars .col-head.aff { color: var(--aff-chip); }
.snap-bars .col-head.neg { color: var(--neg-chip); }
.snap-bars .m-name {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.snap-bars .m-dot {
  width: 8px; height: 8px; border-radius: 2px;
  flex-shrink: 0;
}
.snap-bars .bar-cell {
  position: relative;
  height: 18px;
  background: rgba(0,0,0,0.045);
  border-radius: 2px;
  overflow: hidden;
}
.snap-bars .bar-cell .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 0%);
  border-radius: 2px;
  min-width: 0;
}
.snap-bars .bar-cell.aff .bar { background: var(--aff-chip); }
.snap-bars .bar-cell.neg .bar { background: var(--neg-chip); }
.snap-bars .bar-cell .val {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.snap-bars .bar-cell.empty .val { color: var(--ink-mute); font-weight: 500; }

/* (legacy small-multiples block kept below for compat — unused now) */
/* Trajectory viz — small multiples. One mini chart per metric, two lines
   per chart (aff = solid in side color, neg = solid + dashed). 3×2 grid. */
.snap-traj {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--arb-bg);
}
.snap-traj-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.snap-traj-head .title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arb-chip);
}
.snap-traj-head .global-legend {
  display: flex; gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.snap-traj-head .global-legend .gl-item { display: flex; align-items: center; gap: 5px; }
.snap-traj-head .global-legend .gl-line {
  display: inline-block;
  width: 16px; height: 0;
  border-top: 2px solid currentColor;
}
.snap-traj-head .global-legend .gl-line.dashed { border-top-style: dashed; }
.snap-traj-head .global-legend .gl-item.aff { color: var(--aff-chip); }
.snap-traj-head .global-legend .gl-item.neg { color: var(--neg-chip); }
.snap-traj-head .meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snap-traj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .snap-traj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .snap-traj-grid { grid-template-columns: 1fr; } }

.metric-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px 8px;
}
.metric-card .mc-title {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 4px;
}
.metric-card .mc-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.metric-card .mc-chart svg {
  width: 100%; height: 62px;
  display: block; overflow: visible;
}
.metric-card .mc-chart .grid-line { stroke: rgba(0,0,0,0.06); stroke-width: 1; }
.metric-card .mc-chart .axis-label {
  font-family: var(--mono);
  font-size: 8px;
  fill: var(--ink-mute);
  letter-spacing: 0.04em;
}
.metric-card .mc-vals {
  display: flex; gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-soft);
}
.metric-card .mc-vals .side {
  display: flex; align-items: baseline; gap: 5px;
  flex: 1;
  font-family: var(--mono);
}
.metric-card .mc-vals .side .lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metric-card .mc-vals .side.aff .lbl { color: var(--aff-chip); }
.metric-card .mc-vals .side.neg .lbl { color: var(--neg-chip); }
.metric-card .mc-vals .side .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.metric-card .mc-vals .side .d {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.metric-card .mc-vals .side .d.up { color: var(--st-strong); }
.metric-card .mc-vals .side .d.down { color: var(--st-rejected); }
.metric-card .mc-vals .side .d.flat { color: var(--ink-mute); font-weight: 500; }
.snapshot-card .label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
  font-weight: 700;
  margin-bottom: 10px;
}
.snapshot-card .verdict-line {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.snapshot-card .snap-detail {
  font-size: 12.5px;
  color: var(--ink-mid);
  line-height: 1.55;
}
.snapshot-card .snap-detail b { color: var(--ink-strong); font-weight: 600; }
.snapshot-card .meta-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
}
.snapshot-card .meta-row span b { color: var(--ink); }

.snapshot-card .scoreline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.snapshot-card .scoreline .row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.snapshot-card .scoreline .row .who { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.snapshot-card .scoreline .row .v { font-weight: 700; font-size: 13px; color: var(--ink-strong); }
.snapshot-card .scoreline .row.aff .who { color: var(--aff-chip); }
.snapshot-card .scoreline .row.neg .who { color: var(--neg-chip); }
.snapshot-card .scoreline .row.both .who { color: var(--ink-mid); }

/* -------- Subnav -------- */

.subnav {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 0;
  margin: 24px 0 40px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r);
  overflow: hidden;
}
.subnav a {
  color: var(--ink-soft);
  border-bottom: none;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--line);
  flex: 1;
  text-align: center;
}
.subnav a:last-child { border-right: none; }
.subnav a:hover { color: var(--ink-strong); background: var(--bg-alt); }

/* -------- Two-column sides (opening positions) -------- */

.positions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 14px 0 36px;
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 760px) { .positions { grid-template-columns: 1fr; } }
.positions .pos {
  padding: 20px 22px;
}
.positions .pos.aff {
  background: var(--aff-bg);
  border-right: 1px solid var(--line);
}
.positions .pos.neg {
  background: var(--neg-bg);
}
.positions .pos .role-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.positions .pos .role {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.positions .pos.aff .role { color: var(--aff-chip); }
.positions .pos.neg .role { color: var(--neg-chip); }

/* OpenAI logo before role / speaker labels on aff & neg cards.
   Background uses currentColor so it tints with the side's hue. */
.positions .pos .role,
.arg-card .speaker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.positions .pos .role::before,
.arg-card .speaker::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.28 10.04a5.99 5.99 0 0 0-.51-4.91 6.06 6.06 0 0 0-6.54-2.91A6.07 6.07 0 0 0 10.62 0a6.07 6.07 0 0 0-5.79 4.2 6.04 6.04 0 0 0-4.04 2.93 6.05 6.05 0 0 0 .76 7.13 6 6 0 0 0 .51 4.91 6.06 6.06 0 0 0 6.54 2.9A6.06 6.06 0 0 0 13.13 24a6.07 6.07 0 0 0 5.78-4.2 6.04 6.04 0 0 0 4.04-2.94 6.05 6.05 0 0 0-.76-7.12zm-9.16 12.84a4.5 4.5 0 0 1-2.89-1.04l.14-.08 4.79-2.77a.78.78 0 0 0 .39-.68v-6.76l2.02 1.17a.07.07 0 0 1 .04.06v5.6a4.5 4.5 0 0 1-4.49 4.5zM3.46 18.94a4.5 4.5 0 0 1-.54-3.01l.14.09 4.79 2.77a.78.78 0 0 0 .79 0l5.85-3.38v2.34a.07.07 0 0 1-.03.06l-4.85 2.8a4.5 4.5 0 0 1-6.15-1.67zm-1.26-10.4a4.5 4.5 0 0 1 2.35-1.97V12a.78.78 0 0 0 .38.68l5.83 3.36-2.02 1.17a.07.07 0 0 1-.06 0l-4.84-2.81a4.5 4.5 0 0 1-1.64-6.13zm16.65 3.86l-5.85-3.36 2.02-1.17a.07.07 0 0 1 .06 0l4.84 2.81a4.5 4.5 0 0 1-.68 8.13v-5.74a.78.78 0 0 0-.39-.67zm2.01-3.02l-.13-.08-4.79-2.79a.78.78 0 0 0-.79 0L9.3 9.89V7.55a.07.07 0 0 1 .03-.06l4.85-2.8a4.5 4.5 0 0 1 6.68 4.66zm-12.66 4.16l-2.02-1.17a.07.07 0 0 1-.04-.06V6.71a4.5 4.5 0 0 1 7.38-3.45l-.14.08-4.79 2.77a.78.78 0 0 0-.39.68v6.76zm1.1-2.37l2.6-1.5 2.6 1.5v3l-2.6 1.5-2.6-1.5z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22.28 10.04a5.99 5.99 0 0 0-.51-4.91 6.06 6.06 0 0 0-6.54-2.91A6.07 6.07 0 0 0 10.62 0a6.07 6.07 0 0 0-5.79 4.2 6.04 6.04 0 0 0-4.04 2.93 6.05 6.05 0 0 0 .76 7.13 6 6 0 0 0 .51 4.91 6.06 6.06 0 0 0 6.54 2.9A6.06 6.06 0 0 0 13.13 24a6.07 6.07 0 0 0 5.78-4.2 6.04 6.04 0 0 0 4.04-2.94 6.05 6.05 0 0 0-.76-7.12zm-9.16 12.84a4.5 4.5 0 0 1-2.89-1.04l.14-.08 4.79-2.77a.78.78 0 0 0 .39-.68v-6.76l2.02 1.17a.07.07 0 0 1 .04.06v5.6a4.5 4.5 0 0 1-4.49 4.5zM3.46 18.94a4.5 4.5 0 0 1-.54-3.01l.14.09 4.79 2.77a.78.78 0 0 0 .79 0l5.85-3.38v2.34a.07.07 0 0 1-.03.06l-4.85 2.8a4.5 4.5 0 0 1-6.15-1.67zm-1.26-10.4a4.5 4.5 0 0 1 2.35-1.97V12a.78.78 0 0 0 .38.68l5.83 3.36-2.02 1.17a.07.07 0 0 1-.06 0l-4.84-2.81a4.5 4.5 0 0 1-1.64-6.13zm16.65 3.86l-5.85-3.36 2.02-1.17a.07.07 0 0 1 .06 0l4.84 2.81a4.5 4.5 0 0 1-.68 8.13v-5.74a.78.78 0 0 0-.39-.67zm2.01-3.02l-.13-.08-4.79-2.79a.78.78 0 0 0-.79 0L9.3 9.89V7.55a.07.07 0 0 1 .03-.06l4.85-2.8a4.5 4.5 0 0 1 6.68 4.66zm-12.66 4.16l-2.02-1.17a.07.07 0 0 1-.04-.06V6.71a4.5 4.5 0 0 1 7.38-3.45l-.14.08-4.79 2.77a.78.78 0 0 0-.39.68v6.76zm1.1-2.37l2.6-1.5 2.6 1.5v3l-2.6 1.5-2.6-1.5z' fill='black'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  flex-shrink: 0;
}
.positions .pos .position {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-strong);
  margin-bottom: 10px;
  letter-spacing: -0.012em;
}
.positions .pos .pos-body { font-family: var(--sans); font-size: 14px; color: var(--ink); line-height: 1.6; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.positions .pos .pos-body p { margin: 0 0 12px; }
.positions .pos .pos-body b { font-weight: 600; color: var(--ink-strong); }
.positions .pos .pos-body i { color: var(--ink-mid); font-style: italic; }
.positions .pos .school {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  letter-spacing: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* -------- Rounds -------- */

.round {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.round-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  flex-wrap: wrap;
}
.round-head .r-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.round-head .r-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}
.round-head .r-verdict {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.round-head .r-verdict.aff { color: var(--aff-chip); background: var(--aff-bg); border: 1px solid var(--aff-edge); }
.round-head .r-verdict.neg { color: var(--neg-chip); background: var(--neg-bg); border: 1px solid var(--neg-edge); }
.round-head .r-verdict.both { color: var(--arb-chip); background: var(--arb-bg); border: 1px solid var(--arb-edge); }
.round-head .snapshot-flag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--arb-chip);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1px dashed var(--arb-edge);
  border-radius: 2px;
  margin-left: 10px;
}

.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .exchange-grid { grid-template-columns: 1fr; } }

.arg-card {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.arg-card:last-child { border-right: none; }
.arg-card.aff { background: var(--aff-bg); }
.arg-card.neg { background: var(--neg-bg); }
@media (max-width: 760px) {
  .arg-card { border-right: none; border-bottom: 1px solid var(--line); }
  .arg-card:last-child { border-bottom: none; }
}

.arg-card .speaker-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.arg-card .speaker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.arg-card.aff .speaker { color: var(--aff-chip); }
.arg-card.neg .speaker { color: var(--neg-chip); }

/* AI output is just prose — no headers, no bullets, just paragraphs.
   Serif for the long-form argument text: better reading rhythm. */
.arg-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.arg-card p:last-child { margin-bottom: 0; }
.arg-card p b { font-weight: 600; color: var(--ink-strong); }
.arg-card p i { color: var(--ink-mid); font-style: italic; }

.arg-card .turn-divider {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 16px 0 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.arg-card .turn-divider .turn-time { color: var(--ink-mute); font-weight: 500; }

.ref-inline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  border-bottom: none;
  padding: 0 1px;
  vertical-align: super;
}
.ref-inline:hover { color: var(--ink-strong); background: var(--accent-hover); }

/* Arbiter verdict block (full-width below exchange) */

.verdict {
  padding: 20px 24px;
  background: var(--arb-bg);
  border-top: 2px solid var(--arb-edge);
}
.verdict .verdict-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.verdict .verdict-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
}
.verdict .v-line {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.012em;
  margin-bottom: 8px;
  line-height: 1.35;
}
.verdict .v-detail {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0 0 14px;
}
.verdict .v-detail b { color: var(--ink-strong); font-weight: 600; }

.verdict p {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.verdict p:last-child { margin-bottom: 0; }
.verdict p b { font-weight: 600; color: var(--ink-strong); }
.verdict p i { color: var(--ink-mid); font-style: italic; }

.edge-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 14px 0;
  border: 1px solid var(--arb-edge);
  background: var(--paper);
}
@media (max-width: 600px) { .edge-row { grid-template-columns: 1fr; } }
.edge-row .cell {
  padding: 10px 14px;
  border-right: 1px solid var(--arb-edge);
}
.edge-row .cell:last-child { border-right: none; }
@media (max-width: 600px) { .edge-row .cell { border-right: none; border-bottom: 1px solid var(--arb-edge); } }
.edge-row .cell .key {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.edge-row .cell .val {
  font-size: 12.5px;
  color: var(--ink-strong);
  line-height: 1.4;
  font-weight: 500;
}

.lock-in {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 12px 0 4px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--arb-edge);
  font-size: 12.5px;
}
.lock-in .key {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
  white-space: nowrap;
  padding-top: 2px;
}
.lock-in .val { color: var(--ink-mid); line-height: 1.5; }
.lock-in .val b { color: var(--ink-strong); font-weight: 600; }

.would-flip {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--arb-edge);
  font-size: 12.5px;
  color: var(--ink-mid);
  line-height: 1.5;
  background: rgba(255,255,255,0.5);
}
.would-flip .key {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
  margin-bottom: 4px;
}

/* -------- Trajectory (per-side metrics across rounds) -------- */

.trajectory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 14px 0 36px;
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 760px) { .trajectory { grid-template-columns: 1fr; } }

.traj-side {
  padding: 16px 20px 18px;
  border-right: 1px solid var(--line);
}
.traj-side:last-child { border-right: none; }
@media (max-width: 760px) {
  .traj-side { border-right: none; border-bottom: 1px solid var(--line); }
  .traj-side:last-child { border-bottom: none; }
}
.traj-side.aff { background: var(--aff-bg); }
.traj-side.neg { background: var(--neg-bg); }

.traj-side-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.traj-side-head .speaker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.traj-side.aff .traj-side-head .speaker { color: var(--aff-chip); }
.traj-side.neg .traj-side-head .speaker { color: var(--neg-chip); }

.traj-col-head {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 56px;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.traj-col-head .traj-h-label { }
.traj-col-head .traj-h-open { text-align: right; padding-right: 36px; }
.traj-col-head .traj-h-r1 { text-align: right; padding-right: 36px; }
.traj-col-head .traj-h-delta { text-align: right; }

.traj-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 56px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.traj-row:last-child { border-bottom: none; }
.traj-row .traj-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}
.traj-cell {
  position: relative;
  height: 16px;
  display: flex; align-items: center;
}
.traj-cell .traj-bar {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 11px;
  width: var(--w, 0%);
  border-radius: 1px;
  min-width: 1px;
}
.traj-side.aff .traj-cell .traj-bar { background: var(--aff-chip); }
.traj-side.neg .traj-cell .traj-bar { background: var(--neg-chip); }
.traj-cell.r1 .traj-bar { opacity: 1; }
.traj-cell.opening .traj-bar { opacity: 0.55; }
.traj-cell .traj-val {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-strong);
  background: rgba(255,255,255,0.85);
  padding: 0 4px;
}
.traj-cell.empty .traj-val { color: var(--ink-mute); font-weight: 500; }
.traj-cell.empty .traj-bar {
  background: transparent;
  border: 1px dashed var(--line);
  height: 11px;
}

.traj-delta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  letter-spacing: 0.01em;
}
.traj-delta.up { color: var(--st-strong); }
.traj-delta.down { color: var(--st-rejected); }
.traj-delta.flat { color: var(--ink-mute); font-weight: 500; }

.traj-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* -------- Status pills -------- */

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--bg-alt);
  color: var(--ink-mid);
  white-space: nowrap;
}
.pill.strong, .pill.settled { background: var(--arb-bg); color: var(--st-strong); border: 1px solid var(--arb-edge); }
.pill.moderate { background: #f4f6e1; color: var(--st-moderate); border: 1px solid #dadf9a; }
.pill.mixed { background: var(--bg-deep); color: var(--st-mixed); border: 1px solid var(--line); }
.pill.weak { background: #fef3c7; color: var(--st-weak); border: 1px solid #f5d785; }
.pill.rejected { background: var(--neg-bg); color: var(--st-rejected); border: 1px solid var(--neg-edge); }
.pill.open { background: var(--bg-alt); color: var(--st-open); border: 1px solid var(--line); }

/* -------- Claims table -------- */

.claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 14px 0 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.claims-table th, .claims-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
.claims-table th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-mid);
  background: var(--bg-alt);
}
.claims-table td.claim { font-weight: 600; color: var(--ink-strong); line-height: 1.4; }
.claims-table td.who { color: var(--ink-mid); white-space: nowrap; }
.claims-table td.who .who-chip {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.claims-table td.who .who-chip.aff { color: var(--aff-chip); }
.claims-table td.who .who-chip.neg { color: var(--neg-chip); }
.claims-table td.who .who-chip.both { color: var(--arb-chip); }
.claims-table td.who .who-chip.split { color: var(--ink-mid); }
.claims-table td.round-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* -------- References -------- */

.refs {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-mid);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 22px;
}
.refs ol { padding-left: 22px; }
.refs li {
  margin: 6px 0;
  padding-left: 4px;
}
.refs li[id]:target { background: var(--accent-hover); padding: 2px 4px; }
.refs .authors { color: var(--ink-strong); font-weight: 500; }
.refs .journal { font-style: italic; color: var(--ink-soft); }

/* -------- Topic list (index) -------- */

.topic-list {
  margin: 22px 0 56px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.topic-row {
  display: grid;
  grid-template-columns: 48px 1fr auto 30px;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  border-left: none; border-right: none; border-top: none;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.08s ease;
}
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: var(--bg-alt); }
.topic-row .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.topic-row .title-block .title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-strong);
  letter-spacing: -0.012em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.topic-row .title-block .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 14px;
}
.topic-row .stage {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 2px;
}
.topic-row .stage.live { color: var(--arb-chip); background: var(--arb-bg); border: 1px solid var(--arb-edge); }
.topic-row .stage.soon { color: var(--ink-mute); background: var(--bg-alt); border: 1px solid var(--line); }
.topic-row .arrow {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-mute);
}
.topic-row.disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* -------- Hero painting (index) -------- */

.hero-painting {
  position: relative;
  /* Break out of main's max-width and 28px side padding to span the full viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Sit flush against the sticky header — main has padding:56px 28px 120px,
     so a -56px top margin pulls the hero up to touch the header bottom. */
  margin-top: -56px;
  margin-bottom: 40px;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 1890 / 720;
  max-height: 560px;
}
.hero-painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.85) contrast(1.02);
  display: block;
}
.hero-painting .hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg,
    rgba(250,248,243,0) 0%,
    rgba(250,248,243,0.55) 35%,
    rgba(250,248,243,0.92) 80%,
    rgba(250,248,243,1) 100%);
}
/* Inner wrapper aligns title with the rest of main's content (max width + 28px gutters) */
.hero-painting .hero-overlay-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 38px 28px 26px;
}
.hero-painting h1 {
  margin: 0;
  max-width: 28ch;
  font-size: 48px;
  letter-spacing: -0.032em;
  line-height: 1.04;
  color: var(--ink-strong);
}
.hero-painting h1 .secondary { color: var(--ink-mid); display: block; }
.hero-painting .hero-credit {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .hero-painting { max-height: 360px; }
  .hero-painting h1 { font-size: 32px; }
  .hero-painting .hero-overlay-inner { padding: 28px 20px 18px; }
}

/* -------- Hero (index) — lede + matchup card row -------- */

.index-hero {
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}
@media (max-width: 860px) { .index-hero { grid-template-columns: 1fr; } }
.index-hero h1 {
  font-size: 48px;
  letter-spacing: -0.032em;
  line-height: 1.06;
  margin-bottom: 18px;
}
@media (max-width: 760px) { .index-hero h1 { font-size: 36px; } }
.index-hero h1 .secondary { color: var(--ink-mid); display: block; }
.index-hero .matchup-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 20px;
  align-self: start;
}
.index-hero .matchup-card .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 700;
  margin-bottom: 10px;
}
.index-hero .matchup-card .matchup-row {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0;
}
.index-hero .matchup-card .matchup-row .role {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 60px;
}

/* -------- Methodology steps -------- */

.methodology {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 22px 0 40px;
}
@media (max-width: 760px) { .methodology { grid-template-columns: 1fr; } }
.method-step {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-step:nth-child(2n) { border-right: none; }
.method-step:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 760px) {
  .method-step { border-right: none; border-bottom: 1px solid var(--line); }
  .method-step:last-child { border-bottom: none; }
}
.method-step .step-num {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.method-step h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  letter-spacing: -0.012em;
}
.method-step p { font-size: 12.5px; color: var(--ink-mid); margin: 0; line-height: 1.5; }

/* -------- Manifesto sections -------- */

.manifesto-section {
  margin: 22px 0 32px;
}
.manifesto-section h3 {
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-strong);
  margin: 0 0 8px;
}
.manifesto-section p {
  font-size: 14.5px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 64ch;
}
.manifesto-section .lead {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}

.callout {
  border-left: 3px solid var(--arb-chip);
  background: var(--arb-bg);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.5;
}
.callout .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--arb-chip);
  font-weight: 700;
  margin-bottom: 6px;
}
.callout ul { margin: 4px 0 0; padding-left: 18px; }
.callout li { font-size: 12.5px; color: var(--ink-mid); margin: 3px 0; line-height: 1.5; }
.callout li b { color: var(--ink-strong); font-weight: 600; }

/* -------- Form -------- */

.contribute-form {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 24px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.contribute-form .row { display: flex; flex-direction: column; }
.contribute-form .row.full { grid-column: 1 / -1; }
.contribute-form label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-mid);
  margin-bottom: 6px;
}
.contribute-form input,
.contribute-form select,
.contribute-form textarea {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  line-height: 1.5;
}
.contribute-form input:focus,
.contribute-form select:focus,
.contribute-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.contribute-form textarea { min-height: 120px; resize: vertical; }
.contribute-form button {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.08s ease;
}
.contribute-form button:hover { background: var(--accent); border-color: var(--accent); }
.form-status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--arb-chip);
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .contribute-form { grid-template-columns: 1fr; }
}

/* -------- Footer -------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 28px 0 56px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}
footer.site .wrap {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
footer.site a { color: var(--ink-mid); border-bottom-color: var(--ink-mute); }

/* -------- Misc -------- */

.muted { color: var(--ink-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }

/* -------- TTS narration -------- */

#narration-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 8px 10px 8px 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}
#narration-controls .tts-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-right: 4px;
}
#narration-controls button {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
#narration-controls button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 5px 8px;
  min-width: 36px;
}
#narration-controls button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
#narration-controls button.secondary:hover { background: var(--bg-alt); color: var(--ink-strong); }
#narration-status {
  color: var(--ink-mid);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  min-width: 110px;
  text-align: right;
}

/* Per-section narrate buttons — pill-shaped, side-tinted, no border. */
.tts-play-here {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  border: none;
  color: var(--ink-mid);
  padding: 3px 9px 3px 7px;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.08s ease, color 0.08s ease;
  vertical-align: middle;
}
.tts-play-here::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 0;
}
.tts-play-here:hover { background: var(--bg-alt); color: var(--ink-strong); }

/* Side-tinted variants — colour follows the speaker */
.pos.aff .tts-play-here, .arg-card.aff .tts-play-here { color: var(--aff-chip); background: var(--aff-bg); }
.pos.aff .tts-play-here:hover, .arg-card.aff .tts-play-here:hover { background: #e3e9f3; }
.pos.neg .tts-play-here, .arg-card.neg .tts-play-here { color: var(--neg-chip); background: var(--neg-bg); }
.pos.neg .tts-play-here:hover, .arg-card.neg .tts-play-here:hover { background: #ede2d6; }
.verdict .tts-play-here, .snapshot-card .tts-play-here { color: var(--arb-chip); background: var(--arb-bg); }
.verdict .tts-play-here:hover, .snapshot-card .tts-play-here:hover { background: #e2eae5; }

.tts-play-here.round {
  margin-left: 10px;
}

/* Remove the dashed line under research-meta — gap-only separator reads cleaner */
.research-meta {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin: -2px 0 14px !important;
}

/* Word wrapper — no styling normally */
.tts-word { transition: background-color 0.06s ease, color 0.06s ease; }

/* Active word highlight, color-coded by speaker */
.arg-card.aff .tts-word.tts-speaking,
.pos.aff .tts-word.tts-speaking {
  background: var(--aff-chip);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}
.arg-card.neg .tts-word.tts-speaking,
.pos.neg .tts-word.tts-speaking {
  background: var(--neg-chip);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}
.verdict .tts-word.tts-speaking,
.snapshot-card .tts-word.tts-speaking {
  background: var(--arb-chip);
  color: #fff;
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}
