/* IdeaTaste project page. Colors follow the paper's palette. */
:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --ink: #1b2630;
  --ink-2: #3f4d58;
  --muted: #6b7882;
  --line: #e4dfd4;
  --grid: #ece8df;
  --accent: #2f6f8f;

  --human: #b98319;          /* the community, as in the paper's overview figure */
  --human-soft: #fbf1db;
  --ai: #2c7a80;             /* AI scientists */
  --ai-soft: #e1f0ef;

  --m-free: #466f87;         /* paper palette: series1..4 */
  --m-topic: #7bb6c8;
  --m-landscape: #d8b24a;
  --m-frontier: #e48578;
  --good: #7d9418;
  --bad: #c9604f;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 38, 48, .05), 0 8px 24px rgba(27, 38, 48, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12171c; --surface: #192027; --surface-2: #1f2830; --ink: #e8ecef; --ink-2: #c3ccd3;
    --muted: #8f9ba4; --line: #2c3740; --grid: #26313a; --accent: #7bb6c8;
    --human: #e2b04a; --human-soft: #2e2716; --ai: #5fb3b8; --ai-soft: #17292b;
    --m-free: #6f9bb4; --m-topic: #8cc6d6; --m-landscape: #e0bd5c; --m-frontier: #ec9a8e;
    --good: #a9c13f; --bad: #e07f6f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #12171c; --surface: #192027; --surface-2: #1f2830; --ink: #e8ecef; --ink-2: #c3ccd3;
  --muted: #8f9ba4; --line: #2c3740; --grid: #26313a; --accent: #7bb6c8;
  --human: #e2b04a; --human-soft: #2e2716; --ai: #5fb3b8; --ai-soft: #17292b;
  --m-free: #6f9bb4; --m-topic: #8cc6d6; --m-landscape: #e0bd5c; --m-frontier: #ec9a8e;
  --good: #a9c13f; --bad: #e07f6f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { font: .88em var(--mono); background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
/* Inline tool list: evenly spaced chips, no commas, so no stray gap before punctuation. */
.tools code { white-space: nowrap; margin-right: .3em; }
.tools code:last-child { margin-right: 0; }
sup { font-size: .68em; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - var(--content)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--serif); color: var(--ink); text-decoration: none; }
.brand-logo { height: 18px; width: auto; display: block; }
.brand-sep { width: 1px; height: 18px; background: var(--line); }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.theme-toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ------------------------------------------------------------------ layout */
:root { --content: 1120px; }
main > section, .view > section { max-width: var(--content); margin: 0 auto; padding: 56px 16px 8px; }
/* Running text shares the width of the blocks below it, so every left and right edge
   on the page lines up. (Section widths come from the rule above; only inner text is reset.) */
.narrow, section.prose p, .lead, .note, .view-head h2, .view-head p { max-width: none; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
.lead { color: var(--ink-2); font-size: 18px; margin: 0 0 32px; }
.note { color: var(--muted); font-size: 14px; }
.subhead { margin-top: 56px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .method, .case, .finding, .steps, .bibtex {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 24px 26px; }
/* Inside cards and panels the column itself is the measure. */
.card p, .card .note, .finding p, .method p, .takeaway p, .watch-card p, .steps li, .hero p { max-width: none; }
.card p { color: var(--ink-2); }

/* ------------------------------------------------------------------ hero */
.hero { text-align: center; padding-top: 64px !important; }
.hero .subtitle, .hero .authors, .hero .affiliations, .hero .links { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.hero h1 { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wordmark {
  font-size: clamp(54px, 9vw, 92px); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--human) 0%, var(--human) 38%, var(--ai) 62%, var(--ai) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { font-size: clamp(20px, 2.6vw, 28px); font-weight: 400; color: var(--ink); max-width: 760px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 17px; margin: 22px 0 6px; }
.authors a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.authors a:hover { color: var(--accent); border-bottom-color: currentColor; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.affiliations span { display: inline-flex; align-items: center; gap: 9px; }
.affiliations .logo { height: 22px; width: auto; display: block; }
.affiliations .logo.mbz { height: 26px; }
[data-theme="dark"] .affiliations .logo, [data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); opacity: .85; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .affiliations .logo,
  :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(1); opacity: .85; }
}
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 40px; }
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; transition: transform .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); border-color: var(--ink-2); }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.overview { margin: 0 auto; max-width: 1000px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 14px; box-shadow: var(--shadow); }
.overview svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.overview figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.ov-col { font: 600 13px var(--sans); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ov-cutoff { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 6; }
.ov-cutoff-label { font-size: 11.5px; fill: var(--muted); }
.ov-corpus rect:first-child { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.ov-paper, .ov-paper-back { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
.ov-lines { stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.ov-label { font: 600 14px var(--sans); fill: var(--ink); }
.ov-sub { font-size: 12.5px; fill: var(--muted); }
.ov-flow { fill: none; stroke-width: 2; }
.ov-flow.human { stroke: var(--human); }
.ov-flow.ai { stroke: var(--ai); }
.ov-arrowhead { fill: var(--ink-2); }
.ov-actor rect { stroke-width: 1.8; }
.ov-actor.human rect { fill: var(--human-soft); stroke: var(--human); }
.ov-actor.ai rect { fill: var(--ai-soft); stroke: var(--ai); }
.ov-actor circle, .ov-actor path, .ov-actor rect + rect { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.ov-actor.human circle, .ov-actor.human path { stroke: var(--human); }
.ov-actor.ai path, .ov-actor.ai rect + rect { stroke: var(--ai); }
.ov-actor text { font: 600 13.5px var(--sans); fill: var(--ink); }
.ov-node { stroke-width: 2; }
.ov-node.human { fill: var(--human-soft); stroke: var(--human); }
.ov-node.ai { fill: var(--ai-soft); stroke: var(--ai); }
.ov-node-text { font: 600 15px var(--sans); fill: var(--ink); }
.ov-edge { font-size: 12.5px; fill: var(--muted); font-style: italic; }
.ov-match, .ov-loop { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.ov-pill { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
.ov-pill-text { font: 600 13px var(--sans); fill: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 36px auto 0; padding: 0; }
.stats div { text-align: left; border-top: 2px solid var(--ink); padding-top: 12px; }
.stats dt { font: 600 38px/1 var(--serif); letter-spacing: -.02em; }
.stats dd { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

.prose p { color: var(--ink-2); font-size: 17px; }

/* ------------------------------------------------------------------ benchmark */
table.mini { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
table.mini th, table.mini td { padding: 7px 4px; border-bottom: 1px solid var(--grid); text-align: right; font-variant-numeric: tabular-nums; }
table.mini th:first-child, table.mini td:first-child { text-align: left; }
table.mini th { color: var(--muted); font-weight: 500; font-size: 13px; }
.area-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.metrics { padding-left: 18px; color: var(--ink-2); }
.metrics li { margin-bottom: 8px; }
.method { padding: 20px 20px 18px; position: relative; overflow: hidden; }
.method .swatch { position: absolute; inset: 0 0 auto 0; height: 4px; }
.method p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.method[data-method="free"] .swatch { background: var(--m-free); }
.method[data-method="topic"] .swatch { background: var(--m-topic); }
.method[data-method="landscape"] .swatch { background: var(--m-landscape); }
.method[data-method="frontier"] .swatch { background: var(--m-frontier); }

/* ------------------------------------------------------------------ leaderboard */
.controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; color: var(--ink-2); font: 500 13.5px var(--sans);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.segmented button[aria-checked="true"], .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented button[aria-pressed="false"] { opacity: .55; }
.method-key { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.board { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.board th, .board td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.board th { position: sticky; top: 0; background: var(--surface); font: 600 13px var(--sans); color: var(--ink-2); cursor: pointer; user-select: none; white-space: nowrap; }
.board th span { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.board th.left, .board td.left { text-align: left; }
.board th[aria-sort="descending"]::after { content: " ↓"; }
.board th[aria-sort="ascending"]::after { content: " ↑"; }
.board tr.human-row td { background: var(--human-soft); font-weight: 600; }
.board tr.group-start td { border-top: 1px solid var(--line); }
.board tbody tr:hover td { background: var(--surface-2); }
.board tr.human-row:hover td { background: var(--human-soft); }
.model-name { font-weight: 600; }
.model-meta { display: block; color: var(--muted); font-size: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 6px; background: var(--ai-soft); color: var(--ink-2); border: 1px solid var(--line); vertical-align: 1px; }
.cell { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cell .bar { width: 64px; height: 6px; background: var(--grid); border-radius: 3px; position: relative; flex: none; }
.cell .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ai); }
.cell .bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--human); border-radius: 1px; }
.cell .value { min-width: 46px; }
.best .value { font-weight: 700; }
.method-cell { display: inline-flex; align-items: center; gap: 8px; text-transform: capitalize; }

/* ------------------------------------------------------------------ findings */
.finding { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding: 30px 32px; margin-bottom: 22px; align-items: center; }
.finding p { color: var(--ink-2); margin: 0; }
.kicker { font: 600 13px var(--mono); color: var(--muted); display: block; margin-bottom: 8px; }
.chart { margin: 0; min-height: 200px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); }
.chart.image img { width: 100%; border-radius: 8px; background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.line { width: 14px; height: 2px; border-radius: 1px; }
.axis text { font-size: 12px; fill: var(--muted); }
.axis line, .gridline { stroke: var(--grid); stroke-width: 1; }
.label { font-size: 12.5px; fill: var(--ink-2); }
.label.strong { fill: var(--ink); font-weight: 600; }
.value-label { font-size: 12px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.ref-line { stroke: var(--human); stroke-width: 2; }
.hit { fill: transparent; cursor: default; }

/* ------------------------------------------------------------------ cases */
.case { padding: 24px; }
.case-problem { font: 600 16.5px/1.45 var(--serif); margin: 0 0 16px; }
.doc { border-left: 3px solid var(--line); padding: 8px 0 8px 14px; margin-bottom: 10px; font-size: 14.5px; color: var(--ink-2); }
.doc b { color: var(--ink); margin-right: 4px; }
.doc .tag { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; text-transform: none; }
.doc.human { border-color: var(--human); }
.doc.differ { border-color: var(--bad); }
.doc.match { border-color: var(--good); }

/* ------------------------------------------------------------------ cite */
.steps { padding: 22px 26px; }
.steps ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin-bottom: 10px; }
.steps b { color: var(--ink); }
pre.code, .bibtex pre {
  margin: 0; background: #142029; color: #dbe6ec; border-radius: var(--radius); padding: 20px 22px;
  font: 13.5px/1.6 var(--mono); overflow-x: auto;
}
pre.code .c { color: #8aa3b2; }
pre code { background: none; padding: 0; font: inherit; color: inherit; }
.bibtex { position: relative; padding: 0; border: 0; }
.copy { position: absolute; top: 12px; right: 12px; border: 1px solid #3a4b57; background: #1d2b35; color: #dbe6ec; border-radius: 8px; padding: 4px 12px; cursor: pointer; font: 500 12.5px var(--sans); }

footer { max-width: 1120px; margin: 80px auto 0; padding: 28px 16px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
footer p { margin: 4px 0; }
.muted { color: var(--muted); }

.tooltip {
  position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg);
  font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 8px; max-width: 260px; box-shadow: var(--shadow);
}
.tooltip b { font-weight: 600; }

/* ------------------------------------------------------------------ tabs */
.hero { padding-bottom: 8px !important; }
.topbar nav a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.live-link { display: inline-flex; align-items: center; gap: 6px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: 1px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tabs {
  position: sticky; top: 59px; z-index: 9; max-width: 1120px; margin: 48px auto 0; padding: 10px 16px;
  display: grid; grid-template-columns: 3fr 1.15fr; gap: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
}
.tab-group-label { display: block; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 4px; }
.tab-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.view > section:first-child { padding-top: 40px; }

/* single sticky navigation in the top bar */
.topbar nav.tabnav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tabnav-group { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.tabnav a[role="tab"] {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font: 500 14px var(--sans);
}
.tabnav a[role="tab"]:hover { color: var(--ink); }
.tabnav a[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.tn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 11.5px var(--mono); background: var(--line); color: var(--ink-2); }
.tabnav a[aria-selected="true"] .tn { background: var(--ink); color: var(--bg); }
.tn-arrow { color: var(--muted); font-size: 15px; }

/* live button: a pulsing dot and four bars that keep re-ranking */
.live-button { border-color: var(--ink-2); }
.live-button .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.live-button .bars i { width: 3px; border-radius: 1.5px; background: var(--ai); animation: board 2.4s ease-in-out infinite; }
.live-button .bars i:nth-child(1) { height: 60%; animation-delay: 0s; }
.live-button .bars i:nth-child(2) { height: 100%; animation-delay: .3s; background: var(--human); }
.live-button .bars i:nth-child(3) { height: 40%; animation-delay: .6s; }
.live-button .bars i:nth-child(4) { height: 75%; animation-delay: .9s; }
@keyframes board { 0%, 100% { transform: scaleY(1); } 35% { transform: scaleY(.45); } 70% { transform: scaleY(1.25); } }
.live-button .bars i { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) {
  .live-button .bars i, .pulse { animation: none; }
}
.tabnav a.tab-live { border: 1px dashed var(--ink-2); background: linear-gradient(90deg, var(--human-soft), var(--ai-soft)); }
.tabnav a.tab-live[aria-selected="true"] { border-style: solid; border-color: var(--ink); }

/* landing guide */
.guide { max-width: 1000px; margin: 40px auto 0; text-align: left; }
.guide-title { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; text-align: center; }
.guide-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.guide-card:hover { transform: translateY(-2px); border-color: var(--ink-2); }
.guide-card b { font: 600 18px var(--serif); }
.guide-card span:last-child { font-size: 13.5px; color: var(--ink-2); }
.guide-card.live { border-style: dashed; background: linear-gradient(135deg, var(--human-soft), var(--ai-soft)); }
.guide-card .tn .pulse { margin: 0; }

/* takeaways + next */
.tldr { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; }
.tldr li { flex: 1 1 240px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ai); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); }
.tldr b { color: var(--ink); }
.tldr.steps3 { counter-reset: s; }
.tldr.steps3 li { counter-increment: s; border-left-color: var(--human); }
.tldr.steps3 li::before { content: counter(s) " · "; font: 600 13px var(--mono); color: var(--muted); }
.next-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.takeaway { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; position: relative; }
.takeaway::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(var(--human), var(--ai)); }
.take-n { font: 600 12px var(--mono); color: var(--muted); display: block; margin-bottom: 6px; }
.takeaway h4 { margin-bottom: .4em; }
.takeaway p { margin: 0; color: var(--ink-2); font-size: 15px; }
.next-row .button { cursor: pointer; }
.next-row .next { margin-left: auto; }
.view-head .eyebrow { margin-bottom: 10px; }
.view-head .overview { margin-top: 8px; }
.findings { max-width: 1120px; margin: 0 auto; padding: 40px 16px 8px; }
#findings { padding-top: 40px; }
.edition-tag { font: 500 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; vertical-align: 4px; margin-left: 8px; }
.bridge {
  display: flex; gap: 18px; align-items: center; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
  border: 1px dashed var(--ink-2); color: var(--ink-2); text-decoration: none; background: linear-gradient(90deg, var(--human-soft), var(--ai-soft));
}
.bridge:hover { border-style: solid; color: var(--ink); }
.bridge-k { font: 600 14px var(--sans); color: var(--ink); white-space: nowrap; }

.cta-survey {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); text-decoration: none;
  border: 2px solid var(--accent); color: var(--ink-2);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--human) 10%, var(--surface)));
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-survey::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 65%);
  transform: translateX(-120%); animation: cta-sweep 5s ease-in-out infinite;
}
@keyframes cta-sweep { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.cta-survey:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 24%, transparent); }
.cta-main { display: grid; gap: 6px; }
.cta-eyebrow { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cta-h { font: 700 19px/1.3 var(--sans); color: var(--ink); }
.cta-b { font-size: 14.5px; }
.cta-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cta-chip { font: 600 11.5px var(--sans); color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; }
.cta-go {
  font: 700 14px var(--sans); color: var(--surface); white-space: nowrap;
  background: var(--accent); border-radius: 999px; padding: 12px 20px;
}
.cta-go b { display: inline-block; transition: transform .18s ease; }
.cta-survey:hover .cta-go b { transform: translateX(4px); }
.cta-i { width: 34px; height: 34px; flex: none; color: var(--accent); align-self: start; margin-top: 4px; }
.cta-i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-i .c-t1, .cta-i .c-t2 { animation: cta-write 2.6s ease-in-out infinite; }
.cta-i .c-t2 { animation-delay: .35s; }
.cta-i .c-pen { transform-origin: 70% 70%; animation: cta-pen 2.6s ease-in-out infinite; }
@keyframes cta-write { 0%, 10% { opacity: 0; } 35%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cta-pen { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-1.5px, 1.5px); } 70% { transform: translate(.5px, -.5px); } }
@media (prefers-reduced-motion: reduce) { .cta-i * , .cta-survey::before { animation: none; opacity: 1; } }
@media (max-width: 760px) { .cta-survey { grid-template-columns: auto 1fr; gap: 14px; } .cta-go { grid-column: 1 / -1; text-align: center; } }

/* ----------------------------------------------------------------- video */
#video { padding-top: 10px; }
.video-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.video-head .subhead { margin: 0; }
.video-wrap { margin: 14px 0 0; }
.video-wrap video {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow);
}
.video-wrap figcaption { margin-top: 10px; }

/* ------------------------------------------------------------------ live */
.strip-label { font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
.coming-soon {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 18px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px;
}
.cs-mark { display: inline-flex; flex: none; align-items: flex-end; gap: 1px; }
.cs-mark > svg { width: 20px; height: 20px; transform-origin: 50% 85%; animation: cs-flicker 1.5s ease-in-out infinite; }
.cs-mark > svg:nth-of-type(1) { width: 15px; height: 15px; animation-delay: -.5s; animation-duration: 1.7s; }
.cs-mark > svg:nth-of-type(3) { width: 16px; height: 16px; animation-delay: -1s; animation-duration: 1.3s; }
.cs-mark .f-out { fill: #f08a24; animation: cs-glow 1.5s ease-in-out infinite; }
.cs-mark .f-in { fill: #ffd34d; animation: cs-glow 1.1s ease-in-out infinite reverse; }
@keyframes cs-flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  25%      { transform: scale(.94, 1.07) rotate(-3deg); }
  50%      { transform: scale(1.05, .95) rotate(2deg); }
  75%      { transform: scale(.97, 1.04) rotate(-1deg); }
}
@keyframes cs-glow { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .cs-mark svg, .cs-mark path { animation: none; } }
.edition-strip { display: flex; align-items: center; gap: 0; margin: 0 0 26px; overflow-x: auto; }
.edition { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 200px; }
.edition.planned { border-style: dashed; opacity: .75; }
.edition-dot { grid-row: span 3; width: 10px; height: 10px; border-radius: 50%; background: var(--good); margin-top: 6px; }
.edition.planned .edition-dot { background: transparent; border: 2px solid var(--muted); }
.edition-id { font: 600 15px var(--mono); display: flex; align-items: center; gap: 8px; }
.edition-badge { font: 600 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.edition-badge.now { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.edition-badge.next { border-style: dashed; }
.edition-label { font-size: 13px; color: var(--ink-2); }
.edition-ref { font-size: 12px; color: var(--muted); }
.edition-line { flex: 0 0 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 9px); }
.live-sub { margin-bottom: 0; }
.live-sub button { font-size: 14.5px; padding: 8px 16px; }
.live-panel { padding-top: 24px !important; }
.grid.two-one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
#trend-metric { margin: 4px 0 12px; }
.cutoff-line { stroke: var(--muted); stroke-dasharray: 4 5; }
.future-zone { fill: var(--surface-2); opacity: .7; }
.future-label { fill: var(--muted); font-style: italic; }
.trend-path { fill: none; stroke: var(--ai); stroke-width: 1.5; stroke-dasharray: 3 4; }
.pt { fill: var(--ai); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.pt.pre { fill: var(--surface); stroke: var(--ai); stroke-width: 2.5; }
.changelog ol { list-style: none; padding: 0; margin: 0; }
.changelog li { border-left: 2px solid var(--good); padding: 2px 0 10px 14px; margin-bottom: 8px; }
.changelog li.planned { border-left-style: dashed; border-color: var(--muted); }
.changelog li p { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips span { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.watch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.watch-head .note { margin: 0; max-width: 620px; }
.count { font: 500 11.5px var(--mono); color: var(--muted); }
.watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.watch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.watch-card.verified { border-top: 4px solid var(--good); }
.watch-card.watching { border-top: 4px dashed var(--muted); }
.watch-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.watch-card .status { font-weight: 600; }
.watch-card.verified .status { color: var(--good); }
.watch-problem { font: 600 15.5px/1.45 var(--serif); margin: 0 0 12px; }
.doc.ai { border-color: var(--ai); }
.doc.pending { border-color: var(--line); border-left-style: dashed; font-style: italic; }
.vote-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--grid); }
.vote-q { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.vote { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: 500 13px var(--sans); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.vote:hover { border-color: var(--ink-2); color: var(--ink); }
.vote[aria-pressed="true"].up { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--ink); }
.vote[aria-pressed="true"].down { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--ink); }
.vote .n { font: 500 12px var(--mono); }
.vote-split { flex-basis: 100%; height: 5px; border-radius: 3px; background: var(--grid); overflow: hidden; display: flex; }
.vote-split i { background: var(--good); }
.vote-split b { background: var(--bad); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; position: static; }
  .tab-sub { display: none; }
  .grid.two-one, .watch-grid { grid-template-columns: 1fr; }
  .guide-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar nav.tabnav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .tn-arrow { display: none; }
}
@media (max-width: 640px) {
  .topbar nav.tabnav { display: flex; }
  .tabnav a[role="tab"] { padding: 5px 10px; font-size: 13px; }
  .guide-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finding { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .finding, .card, .case { padding: 20px; }
  main > section { padding-top: 56px; }
  .overview { padding: 14px 10px 10px; overflow-x: auto; }
  .overview svg { min-width: 680px; }
  .cell .bar { display: none; }
  table.board { min-width: 0; font-size: 13.5px; }
  .board th, .board td { padding: 8px 8px; }
  .board .model-meta { display: none; }
}
@media (forced-colors: active) {
  .wordmark { color: CanvasText; background: none; }
}
