:root {
  --bg: #f5f6f2;
  --panel: #ffffff;
  --ink: #1b1e1a;
  --muted: #626a61;
  --line: #d9ddd6;
  --line-strong: #bcc4ba;
  --blue: #0e8fc7;
  --orange: #e76418;
  --red: #c83434;
  --green: #4d7c5a;
  --green-soft: #e8f0e8;
  --red-soft: #f9eaea;
  --orange-soft: #fff0e5;
  --blue-soft: #e6f3f8;
  --code: #171a17;
  --code-ink: #e8ece5;
  font-size: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button:focus-visible, select:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
h1, h2, h3, h4, p, dl, dd { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: 0; }

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.topbar, .intro, .evidence-strip, main, footer {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.voice-mark {
  width: 27px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}
.voice-mark i { display: block; width: 4px; }
.voice-mark i:nth-child(1) { height: 7px; background: var(--blue); }
.voice-mark i:nth-child(2) { height: 16px; background: var(--orange); }
.voice-mark i:nth-child(3) { height: 10px; background: var(--red); }
.voice-mark i:nth-child(4) { height: 20px; background: var(--green); }
.voice-mark i:nth-child(5) { height: 9px; background: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.intro { padding-top: 38px; padding-bottom: 30px; }
.eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}
.intro h1 { max-width: 760px; margin-bottom: 12px; font-size: 36px; font-weight: 680; }
.lede { max-width: 790px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.update-note {
  max-width: 880px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: #355540;
  font-size: 13px;
  line-height: 1.5;
}
.evidence-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.evidence-strip > div { min-width: 0; padding: 15px 16px 17px 0; }
.evidence-strip > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.evidence-strip dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.evidence-strip dd { margin-bottom: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }

main { padding-top: 26px; padding-bottom: 12px; }
section { margin-bottom: 48px; scroll-margin-top: 16px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 0; font-size: 23px; }
.section-head > p { max-width: 500px; margin-bottom: 1px; color: var(--muted); font-size: 13px; text-align: right; }
.muted { color: var(--muted); }

.current-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.release-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
}
.release-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.release-card-head > div { min-width: 0; }
.release-card h3 { margin: 8px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.release-date { flex: 0 0 auto; color: var(--muted); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.release-cohort { margin: 5px 0 16px; color: var(--muted); font-size: 12px; }
.release-status { display: inline-block; margin: -5px 0 13px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.release-score-grid { display: grid; grid-template-columns: .8fr .8fr 1.2fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-score-grid > div { min-width: 0; padding: 12px 10px 12px 0; }
.release-score-grid > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.release-score-grid span, .release-score-grid small { display: block; }
.release-score-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.release-score-grid strong { display: block; margin: 2px 0; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.release-score-grid small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.release-economics strong { color: var(--green); }
.release-economics.neutral strong { color: var(--ink); font-size: 18px; }
.release-reference.unavailable strong { font-size: 15px; color: var(--muted); }
.release-interpretation { margin: 12px 0 0; font-size: 12px; font-weight: 650; }
.release-cost-status { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.current-note { max-width: 94ch; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.benchmark-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 5px; }
.catfilter { display: flex; flex: 1 1 auto; gap: 6px; overflow-x: auto; padding: 2px; }
.chip {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-transform: capitalize;
  white-space: nowrap;
}
.chip span { margin-left: 4px; color: inherit; opacity: .72; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.sort-control { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 36px; }
.sort-control > span { color: var(--muted); font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.sort-control select {
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.sort-description { margin: 0 0 13px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cards.minimized { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.minimized .card-cohort,
.cards.minimized .delta,
.cards.minimized .comparison-note,
.cards.minimized .paired-outcomes,
.cards.minimized .view-count,
.cards.minimized .acc { display: none; }
.cards.minimized .card { min-height: 0; padding: 11px 12px; }
.card {
  min-width: 0;
  min-height: 220px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 2px 9px rgba(27, 30, 26, .06); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { margin-bottom: 0; font-size: 15px; font-weight: 720; overflow-wrap: anywhere; }
.category {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}
.category-code { background: var(--blue-soft); color: #075d81; }
.category-math { background: #eeeafa; color: #574398; }
.category-science { background: var(--green-soft); color: #2f6540; }
.category-reasoning { background: #f7efcf; color: #745c12; }
.category-multilingual { background: #f6e9f3; color: #7a386c; }
.category-medical { background: var(--red-soft); color: #8d2c3a; }
.category-general { background: #ecefeb; color: #50594f; }
.card-cohort { min-height: 34px; margin: 5px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.card-cohort span { color: var(--line-strong); }
.card-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-scores > div { min-width: 0; }
.card-scores .label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.card-scores .val { display: block; margin-top: 1px; font-size: 16px; font-weight: 720; overflow-wrap: anywhere; }
.card-scores .acc { display: block; color: var(--muted); font-size: 11px; }
.delta, .comparison-note {
  min-height: 28px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
}
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.even { color: var(--muted); }
.comparison-note.partial { color: #955010; }
.comparison-note.echo-only { color: #6d4d97; }
.comparison-note.diagnostic { color: #7a5315; background: #fff7df; }
.selection-note { margin: 6px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.paired-outcomes { margin-top: 7px; }
.paired-summary { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.paired-summary strong { color: var(--ink); font-weight: 700; }
.disagreement-bar { display: flex; width: 100%; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: var(--line); }
.disagreement-bar .echo-share { background: var(--green); }
.disagreement-bar .reference-share { background: var(--red); }
.outcome-breakdown { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; }
.outcome-count { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 650; line-height: 1.35; }
.outcome-count::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; flex: 0 0 auto; }
.outcome-count.same { color: var(--muted); }
.outcome-count.echo-only { color: var(--green); }
.outcome-count.reference-only { color: var(--red); }
.outcome-count strong { color: inherit; }
.view-count { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; }
.load-error { grid-column: 1 / -1; padding: 18px 0; color: var(--red); }

.planned-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.planned-card { min-height: 142px; padding: 15px; border: 1px dashed var(--line-strong); border-radius: 6px; background: rgba(255, 255, 255, .45); color: var(--muted); }
.planned-card h3 { margin: 13px 0 5px; color: #6d746c; font-size: 15px; }
.planned-card p { margin: 0 0 15px; font-size: 11px; }
.planned-card strong { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #e7e9e5; color: #777e76; font-size: 9px; text-transform: uppercase; }

.row-browser { padding-top: 4px; }
.table-head { display: grid; grid-template-columns: minmax(180px, auto) 1fr auto; align-items: end; gap: 20px; margin-bottom: 12px; }
.table-head h2 { margin-bottom: 0; font-size: 22px; }
#bench-meta { min-width: 0; font-size: 12px; }
.cohort-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.cohort-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 43px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}
.cohort-tab small { margin-top: 1px; font-size: 9px; opacity: .8; white-space: nowrap; }
.cohort-tab:hover { color: var(--ink); }
.cohort-tab.on { border-color: var(--green); background: var(--green-soft); color: #244c31; }
.cohort-tab.supporting { border-style: dashed; }
.cohort-tab.supporting:not(.on) { color: #806429; background: #fffaf0; }
.cohort-explain { margin: 6px 0 0; color: var(--muted); font-size: 11px; }

.benchmark-summary { display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); margin: 0 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.benchmark-summary > div { min-width: 0; padding: 11px 12px; }
.benchmark-summary > div + div { border-left: 1px solid var(--line); }
.summary-status { display: flex; flex-direction: column; justify-content: center; gap: 3px; background: #f1f4ef; }
.summary-status span { font-size: 12px; font-weight: 720; }
.summary-status small, .summary-metric small { color: var(--muted); font-size: 9.5px; line-height: 1.35; }
.summary-metric > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.summary-metric strong { display: block; margin: 2px 0; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.summary-metric strong.positive, .echo-text { color: var(--green); }
.summary-metric strong.negative, .fable-text { color: var(--red); }
.summary-metric small b { font-weight: 650; }

.filters { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group > span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.filter-button {
  min-height: 31px;
  padding: 5px 9px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}
.filter-button:last-child { border-right: 0; }
.filter-button:hover { background: #f0f2ed; color: var(--ink); }
.filter-button.on { background: var(--ink); color: #fff; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
#rows-table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
#rows-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: #eef0ec;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}
#rows-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: top; overflow-wrap: anywhere; }
#rows-table tr:last-child td { border-bottom: 0; }
#rows-table tr:hover td { background: #fafbf8; }
.col-n { width: 42px; color: var(--muted); }
.col-gold { width: 120px; }
.col-act { width: 76px; }
.prompt { width: 27%; }
.excerpt { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .94em; }
.mark {
  display: inline-block;
  min-width: 42px;
  margin-right: 4px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  vertical-align: 1px;
}
.mark.pass { color: var(--green); }
.mark.fail { color: var(--red); }
.mark.audit { color: var(--orange); }
.mark.unavailable { color: var(--muted); }
.pager { display: flex; align-items: center; gap: 12px; padding-top: 11px; color: var(--muted); font-size: 12px; }

.ghost, .icon-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.ghost { min-height: 32px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.ghost.small { min-height: 27px; padding: 3px 7px; font-size: 10px; }
.ghost:hover, .icon-button:hover { border-color: var(--line-strong); background: #f1f3ef; }
.ghost:disabled { cursor: default; opacity: .42; }
.icon-button { width: 34px; height: 34px; padding: 0; font-size: 23px; line-height: 30px; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
.method-grid details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.method-grid summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.method-grid details p { max-width: 70ch; margin: 8px 0 2px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.api pre, pre.trace {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--code);
  color: var(--code-ink);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.api pre { white-space: pre; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow: auto;
  background: rgba(22, 25, 21, .55);
}
.modal-box {
  width: min(1040px, 100%);
  max-height: 92vh;
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.modal-head h3 { max-width: 80vw; margin-bottom: 5px; font: 700 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.modal-head p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.modal-box > h4 { margin: 17px 0 6px; font-size: 12px; }
.prompt-full { max-height: 34vh; }
pre.gold-block { margin: 0; padding: 10px 12px; border-left: 3px solid var(--green); background: var(--green-soft); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.score-dimensions { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.audit-note { padding: 8px 10px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #7d3d0d; font-size: 12px; }
.arms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.arm { min-width: 0; margin: 0; }
.arm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.arm-head h4 { margin: 0 0 6px; font-size: 13px; }
.arm-meta { min-height: 31px; margin: 7px 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.arm pre { max-height: 42vh; }
.technical-details { margin-top: 9px; color: var(--muted); font-size: 10.5px; }
.technical-details summary { cursor: pointer; font-weight: 650; }
.technical-details .arm-meta { min-height: 0; margin-bottom: 0; }
.row-technical { padding-top: 12px; border-top: 1px solid var(--line); }

footer { padding: 12px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer span { padding: 0 7px; color: var(--line-strong); }

@media (max-width: 920px) {
  .current-cards { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planned-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.minimized { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-summary > div + div { border-left: 0; }
  .benchmark-summary > div:nth-child(even) { border-left: 1px solid var(--line); }
  .summary-status { grid-column: 1 / -1; }
  .table-head { grid-template-columns: 1fr auto; }
  #bench-meta { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 680px) {
  .topbar, .intro, .evidence-strip, main, footer { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 58px; gap: 14px; }
  .nav-links { gap: 12px; font-size: 11px; }
  .intro { padding-top: 27px; padding-bottom: 23px; }
  .intro h1 { font-size: 29px; }
  .lede { font-size: 14px; }
  .evidence-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-strip > div, .evidence-strip > div + div { padding: 10px 8px 11px 0; border-left: 0; border-top: 1px solid var(--line); }
  .evidence-strip > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .evidence-strip > div:nth-child(-n+2) { border-top: 0; }
  .evidence-strip > div:last-child { grid-column: 1 / -1; }
  main { padding-top: 21px; }
  section { margin-bottom: 39px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 8px; text-align: left; }
  .benchmark-controls { display: block; }
  .sort-control { margin-top: 6px; }
  .cards, .cards.minimized, .planned-cards { grid-template-columns: 1fr; }
  .release-card { padding: 14px; }
  .release-score-grid { grid-template-columns: 1fr 1fr; }
  .release-economics { grid-column: 1 / -1; padding-left: 0 !important; border-top: 1px solid var(--line); border-left: 0 !important; }
  .card { min-height: 0; }
  .table-head { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
  .table-head #bench-meta { grid-column: 1 / -1; }
  .filters { display: block; overflow-x: auto; }
  .filter-group { width: max-content; margin-bottom: 7px; }
  .method-grid { grid-template-columns: 1fr; }
  .arms { grid-template-columns: 1fr; }
  .modal { padding: 8px 5px; }
  .modal-box { max-height: 96vh; padding: 14px; }
  .api pre { font-size: 10.5px; }
}

@media (max-width: 440px) {
  .topbar { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 0; }
  .nav-links { width: 100%; justify-content: space-between; }
  .intro h1 { font-size: 26px; }
  .category { max-width: 90px; overflow-wrap: anywhere; }
  .filter-group > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
