@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #515d65;
  --line: #e0e6e8;
  --paper: #ffffff;
  --gray: #f3f6f7;
  --wine: #8a4567;
  --accent: #185d60;
  --eegjev: #1c9a9a;
  --eegjev-tint: #dff3f2;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 "Inter", Arial, sans-serif;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 98px; }
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 8px 14px;
  background: #fff;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.wrap { width: min(1250px, calc(100% - 84px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(1600px, calc(100% - 76px));
  margin-inline: auto;
  min-height: 68px;
}
.brand {
  width: max-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}
.nav, .header-links { display: flex; align-items: center; }
.nav { gap: clamp(17px, 2vw, 30px); }
.header-links { gap: clamp(11px, 1.8vw, 24px); }
.nav a {
  color: #3c4b51;
  font: 500 13px/1.3 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.header-links a { font-size: 15px; font-weight: 570; white-space: nowrap; }
.nav a, .header-links a { padding-block: 6px; text-decoration: none; }
.nav a:hover, .header-links a:hover, .footer-inner > a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  background: var(--paper);
}
.hero-inner {
  width: min(1520px, calc(100% - 84px));
  padding: 42px 0 58px;
}
.hero-brand {
  margin: 0 0 38px;
  color: #202020;
  text-align: center;
  font: 700 clamp(78px, 9.2vw, 148px)/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 5.2vw, 82px);
}
.hero-heading {
  margin: 0;
  color: #202020;
  font: 400 clamp(46px, 4.5vw, 72px)/.99 var(--serif);
  letter-spacing: -.02em;
}
.hero-heading > span { display: block; }
.hero-heading em { color: inherit; }
.hero-description, .section-intro {
  max-width: 63ch;
  margin: 19px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-description strong { color: var(--ink); font-weight: 650; }
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}
.capabilities li { display: flex; align-items: center; gap: 7px; }
.capabilities li::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
}
.capabilities li:nth-child(even)::before { border-color: var(--accent); }
.capabilities a {
  font-size: 14px;
  font-weight: 550;
  text-decoration: underline dotted #86939a;
  text-underline-offset: .24em;
}
.capabilities a:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid #d2dddd;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { border-color: var(--accent); background: #eaf5f4; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: #124e52; border-color: #124e52; }
.bench-card {
  min-width: 0;
  border: 1px solid #e0e6e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 8px #20202008, 0 11px 24px #2020200e;
}
.card-head, .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 13px 19px;
}
.card-head {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  margin: 0;
  color: var(--muted);
  font: 600 13px/1.3 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.card-foot {
  min-height: 47px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 15px 15px;
  background: #f5f7f8;
}
.card-note { margin: 0; color: var(--muted); font-size: 13px; }
.card-foot a { color: var(--ink); font-size: 13px; font-weight: 650; text-underline-offset: .16em; }

.benchmark-facts { background: var(--gray); border-block: 1px solid var(--line); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 0;
  padding: 0;
}
.facts-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 20px 22px;
  border-inline-start: 1px solid var(--line);
}
.facts-grid > div:last-child { border-inline-end: 1px solid var(--line); }
.facts-grid dd {
  margin: 0;
  font: 400 clamp(37px, 4.2vw, 53px)/.9 var(--serif);
  letter-spacing: -.035em;
}
.facts-grid dt { color: var(--muted); font-size: 14px; line-height: 1.3; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .085em;
  font: 600 12px/1.4 var(--mono);
}
.section h2 { margin: 0; font: 400 clamp(36px, 4vw, 52px)/1.05 var(--serif); letter-spacing: -.015em; }
.section-intro { margin-top: 10px; }
.paper-figure {
  margin: 21px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.paper-figure > a { display: block; padding: 14px; }
.paper-figure img { width: 100%; height: auto; margin-inline: auto; }
.paper-figure-tall img { max-width: 820px; }
.paper-figure figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.paper-figure figcaption strong { color: var(--ink); }
.paper-figure figcaption a { color: var(--accent); text-underline-offset: 2px; }
.features h3, .details h3 { margin: 0 0 5px; font-size: 17px; font-weight: 670; }
.features, .details, .resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 21px;
}
.features article, .details > div, .resource {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.features p, .details p { margin: 0; color: var(--muted); }
.resource { display: block; text-decoration: none; }
.resource strong { display: block; margin-bottom: 4px; }
.resource:hover { border-color: var(--accent); }
.resource span { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: var(--gray); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 70px;
  padding-block: 12px;
}
.footer-credit, .back-to-top { font-size: 13px; color: var(--muted); text-underline-offset: 2px; }

@media (max-width: 1150px) {
  .header-inner, .hero-inner { width: calc(100% - 56px); }
  .hero-heading { font-size: clamp(38px, 4.55vw, 55px); }
  .hero-heading > span { display: inline; }
  .hero-grid { gap: 32px; grid-template-columns: minmax(0, 1.1fr) minmax(370px, 1fr); }
}
@media (max-width: 920px) {
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 0; padding-top: 8px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 1px 17px; padding-block: 4px 7px; }
  .nav a { font-size: 11px; }
  .wrap { width: calc(100% - 48px); }
  .hero-inner { padding-top: 38px; }
}
@media (max-width: 740px) {
  [id] { scroll-margin-top: 115px; }
  .header-inner, .wrap { width: calc(100% - 34px); }
  .hero-inner { padding: 29px 0 36px; }
  .hero-brand { margin-bottom: 25px; font-size: clamp(66px, 13vw, 88px); }
  .hero-grid, .features, .details, .resources { grid-template-columns: 1fr; }
  .hero-heading { font-size: clamp(37px, 7.3vw, 51px); }
  .capabilities { margin-top: 19px; gap: 6px 13px; }
  .hero-description { margin-top: 15px; }
  .actions { margin-top: 20px; gap: 7px; }
  .button { min-height: 42px; padding-inline: 11px; font-size: 14px; }
  .facts-grid > div { padding: 16px 9px; }
  .facts-grid dt { font-size: 12px; }
  .section { padding: 37px 0; }
  .paper-figure > a { padding: 6px; }
}
@media (max-width: 435px) {
  .header-inner { width: calc(100% - 26px); column-gap: 5px; }
  .header-links { gap: 9px; }
  .header-links a { font-size: 12px; }
  .nav { column-gap: 12px; }
  .nav a { letter-spacing: .025em; }
  .card-head, .card-foot { padding-inline: 12px; }
  .card-head h2 { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Interactive examples share the typography and panel palette of the benchmark card. */
.evaluation-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-shell {
  margin-top: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 12px 30px #20202008;
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px clamp(12px, 2.8vw, 26px);
  border-bottom: 1px solid var(--line);
  border-radius: 15px 15px 0 0;
  background: #f3f6f7;
}
.demo-tabs button {
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #38474a;
  cursor: pointer;
  font-weight: 580;
  line-height: 1.35;
}
.demo-tabs button:hover { background: #ebf0f0; }
.demo-tabs button[aria-selected="true"] {
  border-color: #a6cecb;
  background: #eaf5f4;
  color: var(--accent);
  box-shadow: 0 1px 3px #2020200c;
}
.demo-panel { padding: clamp(14px, 2.8vw, 29px); }
.demo-panel[hidden] { display: none; }
.demo-panel-top {
  display: flex;
  gap: 7px 15px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.demo-panel h3, .demo-summary h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.demo-panel h4 { margin: 0; font-size: 16px; line-height: 1.5; }
.demo-panel p { margin: 8px 0; }
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font: 600 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.demo-columns, .demo-results {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.demo-columns > *, .demo-results > * { min-width: 0; }
.demo-surface, .demo-stat {
  min-width: 0;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f8f8;
}
fieldset.demo-surface legend {
  max-width: calc(100% - 7px);
  padding: 0 4px;
  color: var(--ink);
  font-weight: 650;
}
.demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0;
  padding: 0;
  list-style: none;
}
.demo-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid #d6e5e3;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.3;
}
button.demo-option, label.demo-option { cursor: pointer; }
.demo-option[aria-pressed="true"], .demo-option:has(:checked), .demo-option.demo-selected {
  border-color: #7cc6c3;
  background: #e7f4f3;
}
.demo-option input { flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.demo-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 0; }
.demo-actions button { cursor: pointer; }
.demo-actions button:disabled { opacity: .58; cursor: default; }
.demo-feedback, .demo-note { color: var(--muted); }
.demo-feedback { min-height: 1.65em; margin: 12px 0; }
.demo-stat { color: var(--muted); }
.demo-stat strong, .demo-stat output { display: block; color: var(--ink); }
.demo-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  background: #e7f4f3;
  color: #2d3a3d;
  font-weight: 570;
}
.demo-fraction { display: grid; grid-template-rows: auto auto; text-align: center; line-height: 1.35; }
.demo-fraction > span { padding-inline: 4px; }
.demo-fraction > span:first-child { border-bottom: 1px solid currentColor; }
.demo-summary {
  margin-top: 15px;
  padding: 18px clamp(14px, 2.8vw, 29px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfc;
}
.demo-summary p { margin: 8px 0 0; }

@media (min-width: 921px) and (max-width: 1110px) {
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 0; padding-top: 8px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 1px 17px; padding-block: 4px 7px; }
  .nav a { font-size: 11px; }
}
@media (max-width: 740px) {
  .evaluation-details, .demo-columns { grid-template-columns: minmax(0, 1fr); }
  .demo-tabs button { padding-inline: 9px; font-size: 14px; }
  .demo-surface, .demo-stat { padding-inline: 10px; }
}
@media (max-width: 435px) {
  .demo-results { grid-template-columns: minmax(0, 1fr); }
}

.demo-results[hidden] { display: none; }
.demo-results { margin-bottom: 0; }
.demo-stat dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.demo-stat dt { font-size: 14px; line-height: 1.4; }
.demo-question { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.demo-question legend { padding: 0; color: var(--ink); font-weight: 650; }
.demo-feedback[data-state="correct"] { color: #276448; font-weight: 600; }
.demo-feedback[data-state="incorrect"] { color: #674735; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Score browser. Colors identify EEGJev and the matched comparison model. */
#leaderboard[hidden], #protocol-filter[hidden] { display: none; }
.actions .primary { gap: 10px; }
.actions .primary span { transition: transform 180ms ease; }
.actions .primary:hover span, .actions .primary:focus-visible span { transform: translateX(3px); }
.hero-results { padding: 13px 19px 10px; }
.hero-result-types, .results-types { display: flex; flex-wrap: wrap; gap: 5px; }
.hero-result-types button, .results-types button {
  min-width: 44px;
  min-height: 39px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: 640 13px/1.3 var(--mono);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.hero-result-types button:hover, .results-types button:hover {
  color: var(--accent);
  background: #eaf5f4;
}
.hero-result-types button[aria-pressed="true"], .results-types button[aria-pressed="true"] {
  color: var(--accent);
  background: #e7f4f3;
  border-color: #bce1e1;
}
.hero-result-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
  margin: 13px 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.hero-result-label strong { color: var(--ink); font-size: 15px; font-weight: 680; }
.hero-score-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hero-score-table th, .hero-score-table td { border-bottom: 1px solid var(--line); padding: 10px 0; }
.hero-score-table thead th {
  color: var(--muted);
  padding-block: 6px;
  font: 630 11px/1.3 var(--mono);
}
.hero-score-table th:first-child { text-align: left; }
.hero-score-table td, .hero-score-table thead th:not(:first-child) { text-align: right; }
.hero-score-table th:last-child, .hero-score-table td:last-child { width: 96px; white-space: nowrap; }
.hero-score-table tbody tr:last-child > * { border-bottom: 0; }
.hero-score-table tbody th { font-weight: 620; }
.hero-model { display: inline-flex; align-items: baseline; gap: 9px; }
.hero-position { color: var(--muted); font: 600 11px/1 var(--mono); }
.hero-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  margin-inline-start: 18px;
}
.hero-score-table td { font-variant-numeric: tabular-nums; }
.hero-score-table tr:has(.result-bar.jev) .hero-model { color: var(--accent); }
.hero-score-table tr:has(.result-bar.jev) > * { background: var(--eegjev-tint); }
.hero-score-table tr:has(.result-bar.jev) th:first-child { box-shadow: inset 2px 0 var(--eegjev); }
.hero-score-table tbody th:first-child, .hero-score-table thead th:first-child { padding-left: 10px; }
.hero-score-table td:last-child, .hero-score-table thead th:last-child { padding-right: 10px; }
.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rank-list li { border-top: 1px solid var(--line); }
.rank-list li > * {
  display: grid;
  grid-template-columns: 24px minmax(82px, 1fr) minmax(55px, 1.15fr) 66px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 5px;
  text-decoration: none;
  font-size: 14px;
}
.rank-list .rank-num { color: var(--muted); font: 600 12px/1 var(--mono); }
.rank-list a { transition: background 150ms ease; }
.rank-list a:hover, .rank-list a:focus-visible { background: #eaf5f4; }
.rank-list strong { text-align: right; font-variant-numeric: tabular-nums; }
.result-bar { display: block; min-width: 0; height: 6px; overflow: hidden; border-radius: 6px; background: #e9eef0; }
.result-bar > span {
  display: block;
  width: var(--result-width);
  height: 100%;
  transform-origin: left;
  border-radius: inherit;
  animation: describe-score 320ms ease-out;
}
.result-bar.jev > span { background: var(--eegjev); }
.result-bar.comparison > span { background: #72818e; }
@keyframes describe-score {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.results-shell {
  margin-top: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 12px 30px #20202008;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 16px;
  padding: 12px clamp(12px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  border-radius: 15px 15px 0 0;
  background: #f3f6f7;
}
.results-search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: min(100%, 234px);
  margin: 1px 0;
  padding: 2px 0 2px 12px;
  border: 1px solid #d2dddd;
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper);
}
.results-search > span[aria-hidden] { font-size: 23px; line-height: 1; }
.results-search input {
  min-height: 38px;
  min-width: 0;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.results-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.results-search input:focus { outline: none; }
.results-content { padding: 18px clamp(12px, 3vw, 30px) 24px; }
.results-about {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 18px;
}
.results-about h3, .pair-head h4, .results-ranking h4 { margin: 0; font-size: 18px; }
.results-about p, .results-ranking p { margin: 0; color: var(--muted); font-size: 14px; }
.results-about a { margin-left: auto; color: var(--accent); font-size: 14px; text-underline-offset: 3px; }
.results-ranking {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr);
  gap: 6px 24px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 9px;
  background: #f1f7f6;
}
.results-ranking .rank-list li:first-child { border-top: 0; }
.results-ranking .rank-list li > * { min-height: 38px; }
.pair-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.pair-key { display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: 13px; }
.pair-key > span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 3px;
  background: var(--eegjev);
  content: "";
}
.pair-key > span + span::before { background: #72818e; }
.results-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 11px 0;
}
.results-filters label { display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.results-filters select {
  max-width: 100%;
  min-height: 39px;
  padding: 5px 26px 5px 8px;
  border: 1px solid #d2dddd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 550 14px/1.3 "Inter", sans-serif;
}
.results-filters p { margin: 0 0 6px auto; color: var(--muted); font: 550 12px/1.4 var(--mono); }
.result-pair { border-top: 1px solid var(--line); }
.result-pair:last-child { border-bottom: 1px solid var(--line); }
.result-pair summary {
  display: grid;
  grid-template-columns: minmax(105px, .7fr) minmax(115px, 1fr) minmax(65px, .24fr) 13px;
  align-items: center;
  gap: clamp(6px, 2vw, 18px);
  min-height: 70px;
  padding: 8px 10px;
  border-radius: 5px;
  list-style: none;
  cursor: pointer;
  transition: background 150ms ease;
}
.result-pair summary::-webkit-details-marker { display: none; }
.result-pair summary:hover, .result-pair summary:focus-visible, .result-pair[open] summary { background: #f1f6f6; }
.pair-model { font-size: 14px; font-weight: 650; line-height: 1.35; }
.pair-model small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.pair-scores { display: grid; gap: 3px; line-height: 1.35; }
.pair-scores > span { display: grid; grid-template-columns: minmax(0, 1fr) 60px; align-items: center; gap: 9px; }
.pair-scores strong, .pair-delta { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.pair-chevron {
  width: 7px;
  height: 7px;
  border: solid #465858;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}
.result-pair[open] .pair-chevron { transform: rotate(45deg); }
.result-pair > p { margin: 0; padding: 10px 10px 13px; color: var(--muted); font-size: 14px; }
.hero-match .result-pair summary { padding-inline: 4px; }
.results-note, .results-empty { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
@media (min-width: 921px) and (max-width: 1250px) {
  .nav { column-gap: 13px; }
  .nav a { font-size: 11px; }
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .results-ranking { grid-template-columns: minmax(0, 1fr); }
  .results-about a { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero-results { padding-inline: 12px; }
  .hero-score-table th:last-child, .hero-score-table td:last-child { width: 86px; }
  .hero-score { gap: 6px; margin-inline-start: 10px; }
  .hero-result-types button, .results-types button { min-width: 39px; }
  .results-search { width: 100%; }
  .results-about { display: grid; gap: 3px; }
  .result-pair summary {
    grid-template-columns: minmax(86px, .8fr) minmax(78px, 1.2fr) minmax(48px, .6fr) 7px;
    gap: 6px;
    padding-inline: 3px;
  }
  .pair-scores > span { grid-template-columns: minmax(0, 1fr) 43px; gap: 4px; }
  .pair-scores strong, .pair-delta { font-size: 11px; }
  .rank-list li > * { grid-template-columns: 21px minmax(65px, 1fr) minmax(33px, 1fr) 56px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .actions .primary span, .hero-result-types button, .results-types button, .rank-list a,
  .result-pair summary, .pair-chevron { transition: none; }
  .actions .primary:hover span, .actions .primary:focus-visible span { transform: none; }
  .result-bar > span { animation: none; }
}


/* Question-type colors from the benchmark overview figure. */
:is([data-results-type="D1"], #score-tab-d1) {
  --question-stroke: #3a8ad0;
  --question-fill: #e2eef9;
}
:is([data-results-type="D2"], #score-tab-d2) {
  --question-stroke: #8b5cb8;
  --question-fill: #efe6f7;
}
:is([data-results-type="D3"], #score-tab-d3) {
  --question-stroke: #1c9a9a;
  --question-fill: #dff3f2;
}
:is([data-results-type="D4"], #score-tab-d4) {
  --question-stroke: #e0605a;
  --question-fill: #fde7e5;
}
:is([data-results-type="T1"], #score-tab-t1) {
  --question-stroke: #ee9b2f;
  --question-fill: #fff8e4;
}
:is([data-results-type="T2"], #score-tab-t2) {
  --question-stroke: #48a048;
  --question-fill: #e3f1da;
}

:is(.hero-result-types, .results-types) button[data-results-type],
#scoring .demo-tabs button[role="tab"] {
  border-bottom: 2px solid var(--question-stroke);
  color: var(--ink);
}
:is(.hero-result-types, .results-types) button[data-results-type][aria-pressed="true"],
#scoring .demo-tabs button[aria-selected="true"] {
  background: var(--question-fill);
  border-color: var(--question-stroke);
  font-weight: 700;
}
