/* OpenTumorBoard — responsive leaderboard design system. */
:root {
  color-scheme: light;
  --ink: #20344D;
  --ink-soft: #4C6078;
  --muted: #526278;
  --line: #E3E7ED;
  --line-strong: #B5C3D2;
  --canvas: #FAFBFD;
  --surface: #fff;
  --surface-soft: #F3F5F8;
  --surface-hover: #F7F9FC;
  --accent: #42658A;
  --accent-dark: #20344D;
  --accent-soft: #E9EFF6;
  --accent-line: #CDD9E6;
  --bar-muted: #9AACC2;
  --nav-surface: #FFFFFF;
  --nav-brand: transparent;
  --nav-ink: #20344D;
  --blue-ink: #42658A;
  --blue-soft: #F3F6FA;
  --blue-selected: #E9EFF6;
  --blue-line: #CDD9E6;
  --sand-soft: var(--canvas);
  --sand-line: var(--line);
  --sand-ink: var(--ink);
  --ivory: #E9E5CF;
  --amber: #7E5C21;
  --amber-soft: var(--ivory);
  --warning-line: #D7CFAC;
  --warning-ink: #71612E;
  --chart-height: 270px;
  --content-width: 1320px;
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only, .metric-control-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation and editorial introduction. */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}
.site-nav, .results-main, .site-footer {
  width: min(var(--content-width), calc(100% - 80px));
  margin-inline: auto;
}
.site-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 0;
  border-radius: 6px;
  background: var(--nav-brand);
  color: var(--nav-ink);
  text-decoration: none;
}
.brand-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; padding: 9px; border-radius: 9px; background: var(--ink); }
.brand-mark i { width: 6px; height: 6px; border-radius: 1.5px; background: #fff; }
.site-header a:focus-visible { outline-color: var(--nav-ink); }
.brand strong { font: 650 18px/1.3 var(--display); letter-spacing: -.04em; }
.brand small { display: none; }
.site-links { display: flex; align-items: center; gap: 8px; padding: 0; }
.site-links a { padding: 9px 13px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.site-links a:hover { color: var(--ink); background: var(--surface-soft); }
.site-links a.active { color: var(--ink); background: var(--blue-selected); font-weight: 650; }
.results-main { margin-top: 26px; margin-bottom: 56px; }
.benchmark-hero { min-width: 0; padding: 0 0 20px; }
.hero-copy { min-width: 0; }
.hero-kicker, .section-kicker, .task-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-kicker { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.hero-kicker span { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-copy h1 { margin: 0 0 10px; font: 650 clamp(30px, 3vw, 36px)/1.15 var(--display); letter-spacing: -.045em; }
.hero-copy h1 em { font-style: normal; }
.hero-copy > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-actions { margin-top: 20px; display: flex; gap: 18px; align-items: center; }
.hero-actions button { display: inline-flex; gap: 24px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.hero-actions button:hover { background: var(--accent-dark); }
.hero-actions a { color: var(--muted); font-size: 12px; }

/* Task and configuration controls. */
.clinical-section { min-width: 0; scroll-margin-top: 90px; }
.leaderboard-task-switch { display: flex; gap: 30px; padding: 0; border-bottom: 1px solid var(--line); }
.leaderboard-task-button { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; min-width: 0; margin-bottom: -1px; padding: 14px 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; }
.leaderboard-task-button > span { font: 600 11px/1.4 ui-monospace, SFMono-Regular, monospace; }
.leaderboard-task-button strong { font-size: 14px; font-weight: 600; }
.leaderboard-task-button small { padding: 2px 7px; border-radius: 5px; background: var(--surface-soft); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.leaderboard-task-button:hover { color: var(--ink); }
.leaderboard-task-button.active { border-bottom-color: var(--blue-ink); color: var(--ink); }
/* Native selects keep both filtering axes compact and accessible. */
.reasoning-mode-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 16px 0; }
.compact-filter { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 12px; }
.compact-filter > span { font-weight: 550; }
.compact-filter select { min-width: 175px; min-height: 38px; padding: 7px 30px 7px 11px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: #fff; color: var(--ink); cursor: pointer; }
.compact-filter select:hover { border-color: var(--blue-ink); }
.compact-filter select[data-modality-select] { min-width: 162px; }
.reset-filters { min-height: 38px; padding: 7px 0; border: 0; background: transparent; color: var(--blue-ink); font-size: 12px; }
.reset-filters:hover { text-decoration: underline; text-underline-offset: 3px; }
.reasoning-lightbulb { flex: 0 0 auto; width: 13px; height: 13px; vertical-align: -2px; }
.clinical-hero { padding: 12px 26px 0; }
.clinical-hero-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pending-badge, .chart-card-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; line-height: 1.5; }
.pending-badge i, .chart-card-status i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.reasoning-key { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.methodology-link { color: var(--muted); font-size: 11px; text-decoration-color: var(--line-strong); }
.methodology-link:hover { color: var(--accent); }
.clinical-hero-caveats { margin: 12px 0 0; padding: 10px 13px; border: 1px solid var(--warning-line); border-left-width: 3px; border-radius: 4px; background: var(--amber-soft); color: var(--warning-ink); font-size: 12px; list-style: none; }
.clinical-hero-caveats li + li { margin-top: 6px; }
.clinical-hero-caveats strong { color: var(--amber); font-weight: 600; }
.leaderboard-grid, .leaderboard-chart-card { min-width: 0; max-width: 100%; }
.leaderboard-chart-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgb(24 39 60 / 3%); }
.chart-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.chart-card-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.chart-card-title > span { display: none; }
.chart-card-title strong { display: block; font: 650 22px/1.3 var(--display); letter-spacing: -.035em; }
.chart-card-title small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.chart-display-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.chart-view-buttons { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.chart-view-buttons button { min-height: 31px; padding: 5px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 12px; }
.chart-view-buttons button:hover { color: var(--blue-ink); background: var(--blue-soft); }
.chart-view-buttons button.active, .chart-view-buttons button[aria-pressed='true'] { background: var(--blue-selected); color: var(--blue-ink); }
.leaderboard-metric-controls { position: relative; min-width: 0; flex: 1 1 500px; }
.metric-control-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.clinical-metric-button { display: block; min-height: 37px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); text-align: left; }
.clinical-metric-button > i { display: none; }
.clinical-metric-button > span { font-size: 12px; font-weight: 550; }
.clinical-metric-button > small { display: none; }
.clinical-metric-button:hover { color: var(--ink); background: var(--blue-soft); }
.clinical-metric-button.active { border-color: var(--accent); color: #fff; background: var(--accent); }
.chart-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 0 20px 12px; }
.leaderboard-focus { min-width: 0; color: var(--muted); }
.leaderboard-focus > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.leaderboard-focus span { color: var(--muted); font-size: 11px; }
.leaderboard-focus strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.leaderboard-focus small { color: var(--muted); font-size: 11px; }
.leaderboard-focus small + small::before { content: '·'; margin-right: 10px; }
.vertical-chart-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 11px; }
.vertical-chart-heading > span { display: inline-flex; align-items: center; gap: 6px; }
.vertical-chart-heading > strong { font-size: 11px; font-weight: 400; }
.vertical-chart-heading b { color: var(--ink); font-weight: 600; }
.vertical-chart-heading small { margin-left: 8px; color: var(--muted); font-size: 11px; }

/* A shared rank/model/score layout, with exact score fractions on thin bars. */
.vertical-chart-shell { display: block; min-width: 0; padding: 0; }
.ranking-columns { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(140px, 25%); gap: 16px; padding: 9px 20px; border-block: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 550; }
.ranking-columns > span:first-child { text-align: center; }
.ranking-columns > span:last-child { text-align: right; }
.clinical-chart { position: relative; display: block; width: 100%; min-width: 0; }
.clinical-chart-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 25%); align-items: center; gap: 16px; min-width: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.clinical-chart-row:hover { background: var(--surface-hover); }
.chart-bars { grid-column: 2; grid-row: 1; min-width: 0; }
.chart-bar-line { display: grid; gap: 7px; }
.chart-bar-line > span { display: none; }
.chart-track { width: 100%; height: 4px; border-radius: 2px; background: var(--surface-soft); }
.chart-bar { display: block; width: var(--chart-value, 0%); max-width: 100%; height: 4px; border-radius: 2px; background: var(--bar-muted); }
.clinical-chart-row.is-winner .chart-bar { background: var(--accent); }
.bar-score { color: var(--ink); font-size: 14px; font-style: normal; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.chart-track.is-withheld { background: repeating-linear-gradient(135deg, var(--line) 0 5px, var(--surface-soft) 5px 10px); }
.chart-model { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; text-align: left; }
.chart-model > span { display: block; width: 28px; height: 26px; margin-inline: auto; border-radius: 5px; color: var(--muted); font: 500 12px/26px ui-monospace, SFMono-Regular, monospace; text-align: center; }
.clinical-chart-row.is-winner .chart-model > span { color: var(--accent-dark); background: var(--accent-soft); }
.chart-model > div { min-width: 0; }
.chart-model strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
.chart-model-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.chart-model small { display: block; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.best-model-badge { display: none; }
.reasoning-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.reasoning-badge.mode-reasoning { color: var(--accent); }
.reasoning-badge .reasoning-lightbulb { width: 11px; height: 11px; }
.modality-badge { display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
.modality-badge.modality-vision { color: var(--muted); border-color: var(--line); }
.modality-badge.modality-text { color: var(--muted); }
.chart-model .chart-model-coverage { color: var(--amber); cursor: help; }
.clinical-chart-empty { display: grid; place-content: center; min-height: 150px; background: var(--surface-soft); padding: 20px; text-align: center; }
.clinical-chart-empty strong { font-size: 14px; }
.clinical-chart-empty span { display: block; max-width: 50ch; margin-top: 5px; color: var(--muted); font-size: 12px; }
.leaderboard-chart-card[data-view='chart'] > .clinical-metric-matrix { display: none; }
.leaderboard-chart-card[data-view='table'] > .vertical-chart-shell { display: none; }

/* Precise, sortable companion table. */
.clinical-metric-matrix { min-width: 0; padding-top: 8px; }
.clinical-metric-matrix > header { padding: 9px 26px 14px; }
.clinical-metric-matrix > header strong { display: block; font-size: 13px; font-weight: 600; }
.clinical-metric-matrix > header span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.clinical-metric-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; padding: 0 26px 23px; }
.clinical-metric-table { width: 100%; min-width: 950px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.clinical-metric-table th, .clinical-metric-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.clinical-metric-table th { color: var(--blue-ink); background: var(--blue-soft); font-size: 11px; font-weight: 550; }
.clinical-metric-table th:first-child { width: 60px; }
.clinical-metric-table th:nth-child(n+3) { width: 117px; padding: 0; }
.clinical-metric-table td { color: var(--ink-soft); font-size: 12px; }
.clinical-metric-table td:not(:nth-child(2)) { text-align: center; white-space: nowrap; }
.clinical-metric-table td strong { display: block; color: var(--ink); font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.clinical-metric-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.clinical-metric-table tbody tr:hover { background: var(--surface-hover); }
.clinical-metric-table tr.is-winner { background: var(--accent-soft); }
.matrix-rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.is-winner .matrix-rank { background: var(--accent-soft); color: var(--accent-dark); }
.matrix-metric-button { width: 100%; min-height: 66px; padding: 11px; border: 0; border-top: 2px solid transparent; background: transparent; color: inherit; font-size: 11px; font-weight: 550; text-align: left; }
.matrix-metric-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.matrix-metric-button:hover { background: var(--accent-soft); }
.matrix-metric-button.active { border-top-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.chart-card-footer { display: flex; align-items: baseline; gap: 12px; padding: 17px 26px 20px; border-top: 1px solid var(--line); }
.chart-card-footer > span { flex: 0 0 auto; color: var(--accent); font-size: 11px; font-weight: 600; }
.chart-card-footer p { margin: 0; color: var(--muted); font-size: 12px; }

/* Cost/quality keeps the server-generated coordinates and label metrics. */
.cost-quality-panel, .role-panel { min-width: 0; margin: 16px 26px 26px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.cost-quality-panel > header, .role-panel > header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; margin-bottom: 17px; }
.cost-quality-panel > header > div:first-child, .role-panel > header > div:first-child { min-width: 0; flex: 1 1 400px; }
.cost-quality-panel > header strong, .role-panel > header strong { display: block; font: 650 20px/1.35 var(--display); letter-spacing: -.03em; }
.cost-quality-panel > header span, .role-panel > header span { display: block; max-width: 80ch; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cost-quality-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 560px; font-size: 11px; color: var(--muted); }
.cost-quality-panel .cost-quality-legend > span, .cost-quality-legend button { display: inline-flex; align-items: center; gap: 6px; margin-top: 0; font-size: 11px; }
.legend-key i { display: inline-block; flex: 0 0 auto; }
.legend-frontier i { width: 22px; height: 0; border-top: 2px dashed var(--accent); }
.legend-dominated i { width: 9px; height: 9px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.legend-toggle { padding: 5px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--muted); }
.legend-toggle:hover { border-color: var(--accent); color: var(--accent); }
.legend-toggle.active, .legend-toggle[aria-pressed='true'] { color: var(--blue-ink); border-color: var(--blue-line); background: var(--blue-selected); }
.legend-toggle i { width: 9px; height: 9px; border: 1.5px solid currentColor; }
.legend-toggle i.legend-circle { border-radius: 50%; }
.legend-toggle i.legend-square { border-radius: 2px; color: var(--accent); }
.cost-axis-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; }
.cost-axis-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 12px; }
.cost-axis-button small { margin-left: 4px; font-size: 11px; }
.cost-axis-button.active { background: var(--blue-selected); border-color: var(--blue-line); color: var(--blue-ink); }
.cost-view-switch { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 12px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.cost-view-switch button { min-height: 34px; padding: 6px 13px; border: 0; border-radius: 3px; color: var(--muted); background: #fff; font-size: 12px; }
.cost-view-switch button[aria-pressed='true'], .cost-view-switch button.active { color: var(--blue-ink); background: var(--blue-selected); }
.cost-quality-data { width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.cost-quality-panel[data-cost-view='data'] .cost-quality-plot { display: none; }
.cost-quality-panel:not([data-cost-view='data']) .cost-quality-data { display: none; }
.cost-data-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.cost-data-table th, .cost-data-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-align: right; vertical-align: top; }
.cost-data-table th { font-size: 11px; font-weight: 550; color: var(--blue-ink); background: var(--blue-soft); }
.cost-data-table th:first-child, .cost-data-table td:first-child { width: 62%; text-align: left; overflow-wrap: anywhere; }
.cost-data-table td:not(:first-child) { white-space: nowrap; }
.cost-data-table th:not(:first-child) { overflow-wrap: anywhere; }
.cost-data-table tbody tr:last-child td { border-bottom: 0; }
.cost-data-table tbody th { background: #fff; font-size: 12px; font-weight: 400; }
.cost-data-table tbody tr:last-child th { border-bottom: 0; }
.cost-data-model { display: block; color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.5; }
.cost-data-table strong { font-weight: 550; }
.cost-data-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.cost-data-frontier, .cost-frontier-badge { display: inline-block; margin-top: 4px; padding: 2px 5px; border-radius: 3px; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; white-space: nowrap; }
.cost-quality-plot { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cost-quality-plot svg { display: block; width: 100%; min-width: 0; height: auto; }
.cq-grid line { stroke: var(--line); stroke-width: 1; }
.cq-axis-label { fill: var(--muted); font-size: 15px; text-anchor: middle; }
.cq-axis-y { text-anchor: end; }
.cq-axis-title { fill: var(--ink-soft); font-size: 16px; font-weight: 600; text-anchor: middle; }
.cq-frontier { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 5 4; opacity: .55; }
.cq-point .cq-marker { fill: #fff; stroke: var(--line-strong); stroke-width: 1.6; }
.cq-point.is-frontier .cq-marker { fill: var(--accent); stroke: var(--accent-dark); }
.cq-leader { stroke: var(--line-strong); stroke-width: 1; opacity: .75; }
/* Must match LABEL_FONT_SIZE in cost_quality_plot.py; changing this breaks placement. */
.cq-point-label { fill: var(--ink); font-size: 10px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
.cq-point:hover .cq-marker, .cq-point:focus-visible .cq-marker { stroke-width: 2.6; stroke: var(--accent-dark); }
.cq-point:focus { outline: none; }
.cost-quality-note { max-width: 105ch; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cost-filter-note { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Specialist small multiples share the exact same radar coordinate system. */
.role-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.role-panel .role-key { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 11px; }
.role-key i { display: inline-block; flex: 0 0 auto; width: 16px; height: 10px; border-radius: 2px; }
.role-key-model i { border: 1px solid var(--accent); background: rgb(66 101 138 / 16%); }
.role-key-median i { border: 1px dashed #9EADBE; background: rgb(89 108 130 / 8%); }
.role-axis-key { display: grid; gap: 11px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.role-axis-key p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.role-axis-key em { color: var(--ink-soft); font-style: normal; font-weight: 600; }
.role-axis-list { display: flex; flex-wrap: wrap; gap: 6px 9px; margin: 0; padding: 0; list-style: none; }
.role-axis-list li { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 11px; }
.role-axis-name { color: var(--ink-soft); font-weight: 550; }
.role-axis-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 14px; margin-top: 17px; }
.role-card { display: flex; flex-direction: column; min-width: 0; padding: 17px 17px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.role-card > header { display: flex; align-items: flex-start; gap: 9px; min-height: 58px; }
.role-card > header > div { min-width: 0; }
.role-card > header strong { display: block; color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.role-card > header small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.role-rank { flex: 0 0 auto; min-width: 22px; padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.role-card svg { display: block; width: 100%; height: auto; margin: 5px 0 10px; }
.role-ring { fill: none; stroke: var(--line); stroke-width: .55; }
.role-ring.is-outer { stroke: var(--line-strong); }
.role-spoke { stroke: var(--line); stroke-width: .5; }
/* SVG coordinates are 164 by 130, so these render at the intended diagram scale. */
.role-tick { fill: var(--muted); font-size: 4.4px; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.role-vertex { fill: var(--ink-soft); font-size: 5.2px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.role-median-shape { fill: rgb(89 108 130 / 8%); stroke: #9EADBE; stroke-width: .7; stroke-dasharray: 2 1.6; }
.role-model-shape { fill: rgb(66 101 138 / 15%); stroke: var(--accent); stroke-width: 1.3; stroke-linejoin: round; }
.role-readout { display: flex; flex-wrap: wrap; gap: 5px 6px; margin: auto 0 0; font-size: 11px; }
.role-readout span { padding: 2px 6px; border-radius: 4px; line-height: 1.5; }
.role-strong { color: var(--accent); background: var(--accent-soft); }
.role-strong::before { content: '▲ '; }
.role-weak { color: var(--ink-soft); background: var(--surface-soft); }
.role-weak::before { content: '▼ '; }
.role-note { max-width: 100ch; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Disclosure keeps protocol details available without repeating the hero. */
.methodology-panel { margin-top: 25px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.methodology-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; cursor: pointer; list-style: none; font: 400 22px/1.3 var(--display); letter-spacing: -.015em; background: var(--sand-soft); }
.methodology-panel > summary::-webkit-details-marker { display: none; }
.methodology-panel > summary > span { margin-left: auto; color: var(--muted); font: 400 12px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.methodology-panel > summary::after { content: '+'; color: var(--muted); font: 400 22px/1 sans-serif; }
.methodology-panel[open] > summary::after { content: '−'; }
.methodology-panel > p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 12px; }
.methodology-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: 0 22px 23px; }
.methodology-copy h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.methodology-copy p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.protocol-card { min-width: 0; }
.protocol-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.protocol-card-top strong { color: var(--accent); font-size: 11px; font-weight: 550; }
.protocol-status { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.protocol-status i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.protocol-status strong, .protocol-status span { display: block; }
.protocol-status strong { font-size: 12px; font-weight: 600; }
.protocol-status span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.protocol-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.protocol-card dt { color: var(--muted); font-size: 11px; }
.protocol-card dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 550; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 22px; margin-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer > span { color: var(--ink); font-weight: 600; }
.site-footer p { flex: 1; margin: 0; }
.site-footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 1100px) {
  .site-nav, .results-main, .site-footer { width: calc(100% - 40px); }
  .cost-quality-panel > header, .role-panel > header { flex-direction: column; }
  .cost-quality-panel > header > div:first-child, .role-panel > header > div:first-child { flex-basis: auto; }
  .cost-quality-legend { max-width: none; }
}
@media (max-width: 780px) {
  .results-main { margin-top: 24px; }
  .site-nav { min-height: 64px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy > p { font-size: 14px; }
  .leaderboard-task-switch { gap: 20px; }
  .leaderboard-task-button { flex: 1 1 0; align-content: center; }
  .leaderboard-task-button small { width: auto; }
  .reasoning-mode-toolbar { padding-inline: 0; }
  .clinical-hero { padding-inline: 20px; }
  .chart-card-header { padding-inline: 20px; }
  .chart-summary { padding-inline: 20px; }
  .clinical-metric-matrix > header, .clinical-metric-table-wrap { padding-inline: 20px; }
  .cost-quality-panel, .role-panel { margin-inline: 20px; }
  .chart-card-footer { padding-inline: 20px; align-items: flex-start; }
  .methodology-content { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .site-footer p { flex-basis: 100%; order: 3; }
}
@media (max-width: 600px) {
  .site-nav, .results-main, .site-footer { width: calc(100% - 28px); }
  .site-header { position: relative; }
  .site-nav { flex-wrap: wrap; min-height: 0; gap: 8px; padding-block: 10px; }
  .brand { padding: 3px 0; }
  .brand strong { font-size: 17px; }
  .site-links { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; }
  .site-links a { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; font-size: 12px; }
  .results-main { margin-top: 20px; margin-bottom: 36px; }
  .benchmark-hero { padding-bottom: 14px; }
  .hero-kicker { font-size: 11px; letter-spacing: .04em; }
  .hero-copy h1 { margin: 0 0 10px; font-size: clamp(27px, 7.5vw, 32px); line-height: 1.15; }
  .hero-copy > p { font-size: 13px; line-height: 1.65; }
  .leaderboard-task-switch { gap: 18px; }
  .leaderboard-task-button { padding-top: 10px; padding-bottom: 13px; gap: 6px; }
  .leaderboard-task-button strong { width: 100%; font-size: 13px; }
  .leaderboard-task-button > span, .leaderboard-task-button small { font-size: 11px; }
  .reasoning-mode-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 14px 0; }
  .compact-filter { display: grid; gap: 5px; font-size: 11px; }
  .compact-filter select, .compact-filter select[data-modality-select] { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font-size: 12px; }
  .reset-filters { grid-column: 1 / -1; min-height: 44px; padding-block: 0; text-align: left; }
  .clinical-hero { padding-inline: 15px; }
  .clinical-hero-notes { gap: 8px; }
  .chart-card-header { padding: 14px; align-items: flex-start; }
  .chart-card-title strong { font-size: 21px; }
  .chart-card-title small { font-size: 12px; }
  .chart-summary { padding-inline: 14px; }
  .metric-control-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .clinical-metric-button { flex: 0 0 auto; min-height: 44px; padding: 8px 9px; }
  .clinical-metric-button > span { font-size: 12px; }
  .chart-view-buttons button { min-height: 44px; padding-inline: 13px; }
  .ranking-columns { grid-template-columns: 24px minmax(0, 1fr) 64px; gap: 10px; padding-inline: 14px; }
  .clinical-chart-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; padding: 12px 14px; }
  .chart-model { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .chart-model > span { width: 24px; height: 24px; line-height: 24px; }
  .chart-model strong { font-size: 13px; }
  .chart-model-meta { gap: 4px 8px; }
  .chart-model .chart-provider { display: none; }
  .bar-score { font-size: 13px; }
  .clinical-metric-table { min-width: 740px; }
  .clinical-metric-table th:first-child, .clinical-metric-table td:first-child { display: none; }
  .clinical-metric-table th:nth-child(2), .clinical-metric-table td:nth-child(2) { position: sticky; left: 0; z-index: 2; width: 155px; background: #fff; border-right: 1px solid var(--line); }
  .clinical-metric-table th:nth-child(2) { background: var(--blue-soft); }
  .clinical-metric-table .is-winner td:nth-child(2) { background: var(--accent-soft); }
  .cost-view-switch button, .cost-axis-button, .legend-toggle { min-height: 44px; }
  .cost-data-table th, .cost-data-table td { padding: 10px 6px; }
  .cost-data-table th:first-child, .cost-data-table td:first-child { width: 48%; }
  .cost-data-table th:nth-child(2) { width: 20%; }
  .cost-data-table th:nth-child(3) { width: 32%; }
  .cost-data-table td:first-child { font-size: 12px; }
  .cost-data-table td:not(:first-child) { font-size: 12px; }

  .clinical-metric-matrix > header, .clinical-metric-table-wrap { padding-inline: 15px; }
  .cost-quality-panel, .role-panel { margin-inline: 15px; }
  .cost-quality-panel > header strong, .role-panel > header strong { font-size: 20px; }
  .cost-quality-legend { gap: 8px 10px; }
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .role-card { max-width: 100%; }
  .role-axis-key { padding: 12px; }
  .chart-card-footer { flex-direction: column; gap: 5px; padding-inline: 15px; }
  .methodology-panel > summary { padding-inline: 16px; font-size: 21px; }
  .methodology-panel > summary > span { display: none; }
  .methodology-panel > p, .methodology-content { padding-inline: 16px; }
  .protocol-card dl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (pointer: coarse) {
  .compact-filter select, .reset-filters, .clinical-metric-button, .chart-view-buttons button, .cost-axis-button, .cost-view-switch button, .legend-toggle, .leaderboard-task-button, .site-links a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Boardroom: an editorial shell around the original scientific charts. */
:root { --detail: #8B7188; --detail-soft: #F1ECF3; --detail-ink: #745E72; }
.clinical-section { scroll-margin-top: 8px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.site-header { background: #FFFFFF; border-bottom-color: #DCE3EC; backdrop-filter: none; }
.site-nav { min-height: 60px; }
.brand { gap: 12px; }
.board-brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand strong { font-size: 19px; font-weight: 650; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.nav-current { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.nav-current > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: var(--detail); }
.nav-current > span:last-child { margin-left: 12px; font-size: 16px; color: var(--detail); }
.results-main { margin-top: 0; }
.benchmark-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); align-items: center; gap: 28px; padding: 16px 0; }
.hero-kicker { margin-bottom: 8px; color: var(--detail-ink); font-size: 10px; letter-spacing: .13em; }
.hero-kicker span { width: 22px; height: 1px; border-radius: 0; background: var(--detail); }
.hero-copy h1 { max-width: 650px; margin: 0 0 10px; font: 400 clamp(36px, 3.8vw, 53px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy h1 em { color: var(--detail); font-style: italic; }
.hero-copy > p { max-width: 58ch; font-size: 14px; line-height: 1.6; }
.hero-copy > .hero-tagline { margin-bottom: 6px; color: var(--ink-soft); font-weight: 600; }
.hero-copy > .hero-description { text-wrap: balance; }
/* The clinical atlas is illustrative artwork, not an evaluation data image. */
.board-illustration { max-width: 420px; justify-self: end; width: 100%; }
.board-atlas { display: grid; place-items: center; }
.board-atlas picture { display: block; width: 100%; }
.board-atlas img { display: block; width: 100%; height: 170px; object-fit: contain; }
.leaderboard-task-switch { gap: 0; width: 100%; border: 1px solid #DCE3EC; border-radius: 12px; background: #E9EFF6; padding: 5px; }
.leaderboard-task-button { flex: 1 1 0; gap: 8px 12px; padding: 10px 18px; margin: 0; border: 1px solid transparent; border-radius: 8px; color: var(--ink-soft); transition: background .15s, box-shadow .15s; }
.leaderboard-task-button.active { border-color: #DCE3EC; background: #FFF; color: var(--ink); box-shadow: 0 2px 4px #20344D07; }
.leaderboard-task-button:hover { background: #F3F6FA; }
.leaderboard-task-button.active:hover { background: #FFF; }
.leaderboard-task-button .task-number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #DCE3EC; color: var(--muted); font: 500 10px ui-monospace, monospace; }
.leaderboard-task-button.active .task-number { background: var(--detail-soft); color: var(--detail-ink); }
.leaderboard-task-button strong { font-size: 14px; font-weight: 600; }
.leaderboard-task-button small { margin-left: auto; padding: 0; background: transparent; font-size: 11px; }
.reasoning-mode-toolbar { gap: 10px 20px; margin: 12px 0; }
.filter-toolbar-title { margin-right: 6px; color: var(--ink); font-size: 11px; font-weight: 600; }
.compact-filter > span { color: var(--muted); font-weight: 400; }
.compact-filter select { min-width: 167px; min-height: 40px; border-color: #DCE3EC; border-radius: 7px; background-color: #FFFFFF; font-size: 12px; }
.leaderboard-chart-card { overflow: clip; border-color: #DCE3EC; border-radius: 14px; box-shadow: 0 5px 20px #20344D04; }
.chart-card-header { padding: 14px 20px 10px; }
.clinical-metric-button { min-height: 40px; border-color: transparent; background: #F1F4F8; border-radius: 7px; padding-inline: 14px; }
.clinical-metric-button.active { background: var(--accent); border-color: var(--accent); }
.chart-view-buttons { background: #E9EFF6; border: 0; border-radius: 7px; padding: 4px; }
.chart-view-buttons button { border-radius: 4px; min-height: 32px; }
.chart-view-buttons button[aria-pressed='true'] { color: var(--ink); background: #FFF; box-shadow: 0 1px 4px #20344D12; }
.chart-summary { padding-inline: 20px; padding-bottom: 12px; }
.ranking-columns { padding-inline: 24px; padding-block: 10px; background: #F1F4F8; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.clinical-chart-row { padding: 14px 24px; }
.clinical-chart-row.is-winner { background: #F7F9FC; }
.clinical-chart-row.is-winner .chart-model > span { background: var(--accent); color: #FFF; }
.chart-model strong { font-weight: 600; }
.chart-model-meta { margin-top: 5px; }
.chart-track, .chart-bar { height: 5px; border-radius: 3px; }
.bar-score { font-size: 15px; letter-spacing: .01em; }
.cost-quality-panel, .role-panel { margin: 28px 24px 24px; padding-top: 30px; }
.cost-quality-panel > header strong, .role-panel > header strong { font-size: 22px; font-weight: 550; letter-spacing: -.04em; }
.cost-quality-panel > header .panel-eyebrow, .role-panel > header .panel-eyebrow { margin: 0 0 7px; color: var(--detail-ink); font-size: 9px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.role-grid { gap: 16px; }
.role-card { border-radius: 12px; background: #FFFFFF; padding: 19px; }
.role-axis-key { background: #F1F4F8; border-radius: 10px; }
.cost-quality-plot, .cost-quality-data { border-radius: 10px; }
.role-rank { background: #E9EFF6; }
.site-footer { padding-block: 22px; margin-bottom: 0; }
.site-footer > span { font-size: 13px; letter-spacing: -.02em; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1450px) { .benchmark-hero { padding-block: 20px; } }
@media (max-width: 1100px) {
  .benchmark-hero { gap: 18px; grid-template-columns: minmax(0, 1.45fr) minmax(255px, 1fr); }
  .leaderboard-task-button { padding-inline: 16px; }
}
@media (max-width: 780px) {
  .benchmark-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .board-illustration { display: none; }
  .hero-copy h1 { font-size: 38px; max-width: none; }
  .hero-copy > p { max-width: 65ch; }
  .leaderboard-task-button { gap: 4px 9px; padding: 10px 12px; }
  .leaderboard-task-button small { margin-left: 36px; flex-basis: 100%; }
  .filter-toolbar-title { display: none; }
  .chart-card-header, .chart-summary { padding-inline: 20px; }
  .clinical-chart-row, .ranking-columns { padding-inline: 20px; }
}
@media (max-width: 600px) {
  .site-nav { min-height: 58px; padding-block: 6px; flex-wrap: nowrap; gap: 8px; }
  .board-brand-mark { width: 32px; height: 32px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; letter-spacing: .04em; }
  .nav-current { gap: 0; font-size: 10px; font-weight: 500; }
  .nav-current > span { display: none; }
  .results-main { margin-top: 0; }
  .benchmark-hero { padding: 16px 2px; }
  .hero-kicker { margin-bottom: 8px; font-size: 9px; letter-spacing: .11em; }
  .hero-copy h1 { max-width: 360px; font-size: clamp(32px, 8.5vw, 42px); margin-bottom: 10px; }
  .hero-copy > p { font-size: 13px; line-height: 1.6; }
  .leaderboard-task-switch { gap: 3px; padding: 4px; border-radius: 10px; }
  .leaderboard-task-button { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 10px 9px; border-radius: 7px; }
  .leaderboard-task-button .task-number { display: none; }
  .leaderboard-task-button strong { font-size: 12px; }
  .leaderboard-task-button small { margin: 0; font-size: 11px; }
  .reasoning-mode-toolbar { margin: 10px 2px; gap: 10px; }
  .compact-filter select, .compact-filter select[data-modality-select] { min-width: 0; min-height: 44px; padding-inline: 8px; }
  .leaderboard-chart-card { border-radius: 11px; }
  .chart-card-header { padding: 14px 12px 10px; gap: 10px; }
  .clinical-metric-button { min-height: 44px; padding: 8px 10px; }
  .clinical-metric-button > span { font-size: 11px; }
  .chart-view-buttons button { min-height: 38px; }
  .chart-summary { padding: 0 12px 12px; gap: 7px; }
  .leaderboard-focus small { font-size: 10px; }
  .leaderboard-focus > div { gap: 5px 7px; }
  .leaderboard-focus small + small::before { margin-right: 7px; }
  .clinical-chart-row { padding: 13px 12px; }
  .ranking-columns { padding-inline: 12px; }
  .chart-model strong { font-size: 13px; }
  .chart-model small, .reasoning-badge { font-size: 11px; }
  .modality-badge { font-size: 10px; }
  .bar-score { font-size: 13px; }
  .cost-quality-panel, .role-panel { margin: 22px 12px 18px; padding-top: 24px; }
  .cost-quality-panel > header strong, .role-panel > header strong { font-size: 20px; }
  .role-card { padding: 16px; }
  .site-footer { gap: 4px 12px; padding-block: 18px; }
}
@media (pointer: coarse) { .compact-filter select, .clinical-metric-button, .chart-view-buttons button { min-height: 44px; } }

/* Compact controls keep the first results visible in embedded and narrow views. */
.compact-metric-select { display: none; }
.leaderboard-metric-controls { flex: 1 1 auto; }
.metric-control-buttons { flex-wrap: nowrap; }
.clinical-metric-button { padding-inline: 11px; }
.chart-card-header { align-items: center; }
.chart-model small, .reasoning-badge { font-size: 12px; }
.modality-badge { font-size: 11px; }
.compact-filter, .compact-filter select, .leaderboard-task-button small { font-size: 12px; }
.role-card > header strong { font-size: 13px; }
.role-card > header small, .role-key, .role-axis-list li { font-size: 12px; }
.role-card svg { max-width: 310px; margin-inline: auto; }
.clinical-metric-matrix > header .table-scroll-hint { display: none; }
.clinical-metric-table-wrap { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--surface-soft); }
.clinical-metric-table th:nth-child(2), .clinical-metric-table td:nth-child(2) {
  position: sticky; left: 0; z-index: 2; background: #fff;
  box-shadow: 1px 0 var(--line);
}
.clinical-metric-table th:nth-child(2) { z-index: 3; background: var(--blue-soft); }
.clinical-metric-table .is-winner td:nth-child(2) { background: var(--accent-soft); }
.clinical-metric-table tbody tr:hover td:nth-child(2) { background: var(--surface-hover); }
@media (min-width: 781px) and (max-width: 1100px) {
  .chart-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .metric-control-buttons { display: flex; }
  .clinical-metric-button { flex: 1 1 0; text-align: center; padding-inline: 8px; }
}
@media (max-width: 1050px) {
  .clinical-metric-matrix > header .table-scroll-hint { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--blue-ink); font-size: 12px; }
  .clinical-metric-table th:nth-child(2) { width: 210px; }
}
@media (max-width: 780px) {
  .site-header { position: relative; }
  .leaderboard-metric-controls { display: none; }
  .chart-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
  .compact-metric-select { display: grid; min-width: 0; gap: 5px; color: var(--muted); font-size: 12px; }
  .compact-metric-select select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 28px 8px 10px; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
  .chart-view-buttons { margin: 0; }
  .chart-view-buttons button { min-height: 32px; padding-inline: 10px; }
  .leaderboard-focus small, .vertical-chart-heading { font-size: 11px; }
}
@media (max-width: 600px) {
  .chart-card-header { padding: 12px 12px 10px; gap: 8px; }
  .compact-metric-select select { min-height: 44px; font-size: 12px; padding-left: 8px; }
  .chart-view-buttons { padding: 3px; }
  .chart-view-buttons button { min-height: 38px; padding-inline: 8px; font-size: 11px; }
  .chart-model small, .reasoning-badge { font-size: 11px; }
  .modality-badge { font-size: 10px; }
  .clinical-metric-table th:nth-child(2), .clinical-metric-table td:nth-child(2) { width: 160px; }
}
/* Readable axes and an accessible point readout for compact scatter plots. */
.cost-quality-plot svg.cq-compact .cq-axis-label,
.cost-quality-plot svg.cq-compact .cq-axis-title { font-size: 12px; }
.cq-compact .cq-point { cursor: pointer; }
.cq-compact .cq-point.is-selected .cq-marker { stroke: var(--accent-dark); stroke-width: 2.8; }
.cq-point-detail { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; min-height: 58px; overflow-wrap: anywhere; }

/* Editorial refinement: task first, metric second, results foremost. */
.hero-copy > .hero-tagline { font-weight: 500; }
.leaderboard-task-switch { background: #F2F4F7; border-color: var(--line); }
.leaderboard-task-button.active { border-color: #BBC7D5; box-shadow: none; }
.leaderboard-task-button.active .task-number { background: var(--accent-soft); color: var(--accent); }
.leaderboard-chart-card { border-color: var(--line); box-shadow: none; }
.chart-card-header { gap: 14px 20px; }
.metric-control-buttons { gap: 4px; }
.clinical-metric-button {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding-inline: 12px;
}
.clinical-metric-button:hover { background: #F8FAFC; color: var(--ink); }
.clinical-metric-button.active {
  background: transparent; border-color: var(--accent); color: var(--ink);
}
.clinical-metric-button.active > span { font-weight: 650; }
.chart-view-buttons, .cost-view-switch {
  background: transparent; border: 0; padding: 0; gap: 2px; box-shadow: none;
}
.chart-view-buttons button, .cost-view-switch button { border-radius: 5px; }
.chart-view-buttons button[aria-pressed='true'], .cost-view-switch button[aria-pressed='true'],
.chart-view-buttons button.active, .cost-view-switch button.active {
  background: var(--accent-soft); color: var(--ink); box-shadow: none;
}
.compact-metric-select select { background: #FFF; }
.ranking-columns { background: #FAFBFD; }
.clinical-chart-row.is-winner { background: #F6F8FB; }
.chart-model-meta { gap: 4px 0; }
.chart-model-meta > small { display: inline-flex; align-items: center; }
.chart-model-meta > small:not(:last-child)::after {
  content: '·'; margin-inline: 7px; color: #8995A5;
}
.chart-model-meta .reasoning-lightbulb, .clinical-metric-table .reasoning-lightbulb { display: none; }
.chart-model-meta .reasoning-badge,
.chart-model-meta .modality-badge, .clinical-metric-table .modality-badge {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--muted); font: inherit; line-height: inherit;
}
.chart-model .chart-model-coverage {
  padding: 1px 5px; border-radius: 3px; background: #FBF5E9;
  color: var(--amber); font-size: 11px;
}
.chart-track { background: #EEF1F5; }
.chart-track, .chart-bar { height: 6px; }
.cost-quality-plot { border-color: var(--line); }
.cost-quality-panel > header strong, .role-panel > header strong { letter-spacing: -.02em; }
.cq-grid line { stroke: #EBEEF2; }
.cq-point .cq-marker { fill: #F5F6F8; stroke: #8290A2; stroke-width: 1.7; }
.cq-point.is-frontier .cq-marker { fill: var(--accent); stroke: var(--accent-dark); }
.cq-point:hover .cq-marker, .cq-point:focus-visible .cq-marker {
  stroke: var(--accent-dark); stroke-width: 2.6;
}
.cq-compact .cq-point.is-selected .cq-marker { stroke-width: 2.8; }
.legend-dominated i { background: #F5F6F8; border-color: #8290A2; }
.cost-axis-button { background: transparent; border-color: transparent; }
.cost-axis-button:hover { background: var(--surface-hover); color: var(--ink); }
.cost-axis-button.active { background: var(--accent-soft); border-color: transparent; }
@media (min-width: 781px) {
  .ranking-columns { grid-template-columns: 32px minmax(0, 1fr) minmax(230px, 38%); }
  .clinical-chart-row { grid-template-columns: minmax(0, 1fr) minmax(230px, 38%); }
  .chart-bar-line { grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 18px; }
  .chart-bar-line .chart-track { grid-column: 1; grid-row: 1; }
  .chart-bar-line .bar-score { grid-column: 2; grid-row: 1; }
}
@media (min-width: 601px) and (max-width: 780px) {
  .ranking-columns { grid-template-columns: 32px minmax(0, 1fr) minmax(145px, 30%); }
  .clinical-chart-row { grid-template-columns: minmax(0, 1fr) minmax(145px, 30%); }
}
@media (max-width: 600px) {
  .chart-card-header { gap: 10px; }
  .chart-model-meta { gap: 4px 9px; }
  .chart-model-meta > small:not(:last-child)::after { content: none; }
  .chart-model-meta > .chart-provider { display: none; }
  .chart-model .chart-model-coverage { font-size: 10px; }
  .chart-view-buttons button, .cost-view-switch button { min-height: 44px; }
}

/* Fine component details, with a single line-icon language. */
.leaderboard-task-switch { gap: 10px; padding: 0; border: 0; background: transparent; }
.leaderboard-task-button {
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  align-items: center; gap: 3px 12px; padding: 13px 17px;
  border: 1px solid #E1E6ED; border-radius: 11px; background: #FFF;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.leaderboard-task-button:hover { background: #FCFDFE; border-color: #BFCBD8; }
.leaderboard-task-button.active, .leaderboard-task-button.active:hover {
  background: #FFF; border-color: #A7B9CD;
  box-shadow: 0 1px 2px #20344D08, 0 4px 12px #20344D06;
}
.task-symbol {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid #E1E7EF; border-radius: 10px;
  color: #667A92; background: #F7F9FC;
}
.leaderboard-task-button .task-symbol { grid-column: 1; grid-row: 1 / 3; }
.leaderboard-task-button strong { grid-column: 2; }
.task-symbol svg { width: 22px; height: 22px; }
.leaderboard-task-button.active .task-symbol {
  color: #FFF; border-color: #3E5775; background: #3E5775;
  box-shadow: inset 0 1px #FFFFFF20;
}
.leaderboard-task-button small { grid-column: 2; margin: 0; white-space: nowrap; }
.compact-filter select, .compact-metric-select select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; border: 1px solid #DCE3EC; border-radius: 8px;
  padding-right: 34px; background-color: #FFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m4 5.5 3 3 3-3' fill='none' stroke='%235C6F86' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  box-shadow: 0 1px 2px #20344D04;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.compact-filter select:hover, .compact-metric-select select:hover { border-color: #9DAFC4; }
.compact-filter select:focus-visible, .compact-metric-select select:focus-visible {
  border-color: var(--accent); outline: 2px solid #CFDBE9; outline-offset: 2px;
}
.chart-view-buttons, .cost-view-switch {
  padding: 3px; gap: 2px; border: 1px solid #E8ECF1; border-radius: 9px;
  background: #F8FAFC;
}
.chart-view-buttons button, .cost-view-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 6px; min-height: 32px;
  padding: 5px 10px; background: transparent; color: #69798E;
}
.chart-view-buttons button svg, .cost-view-switch button svg {
  flex: 0 0 auto; width: 14px; height: 14px;
}
.chart-view-buttons button[aria-pressed='true'], .chart-view-buttons button.active,
.cost-view-switch button[aria-pressed='true'], .cost-view-switch button.active {
  border-color: #DEE5ED; background: #FFF; color: var(--ink);
  box-shadow: 0 1px 2px #20344D08;
}
.clinical-metric-button > span { line-height: 1.5; }
.clinical-chart-row { transition: background .15s ease; }
.chart-model > span {
  width: 27px; height: 27px; border: 1px solid #E4E9F0; border-radius: 7px;
  color: #687B93; font-size: 11px; line-height: 25px; background: #FFF;
}
.clinical-chart-row.is-winner .chart-model > span {
  border-color: #3E5775; background: #3E5775; color: #FFF;
  box-shadow: inset 0 1px #FFFFFF20;
}
.chart-track { background: #EDF1F6; border-radius: 4px; }
.chart-bar { background: #A0AFC3; border-radius: 4px; }
.clinical-chart-row.is-winner .chart-bar { background: #526D8E; }
.nav-current > span:last-child {
  display: inline-grid; place-items: center; width: 27px; height: 27px;
  margin-left: 2px; border: 1px solid #E3DCE4; border-radius: 50%;
  color: var(--detail-ink); font-size: 14px;
}
@media (max-width: 1100px) and (min-width: 781px) {
  .chart-view-buttons button { padding-inline: 8px; }
  .chart-view-buttons button svg { display: none; }
}
@media (max-width: 780px) {
  .leaderboard-task-button { grid-template-columns: 34px minmax(0, 1fr); gap: 3px 11px; padding: 13px; }
  .leaderboard-task-button .task-symbol { grid-column: 1; grid-row: 1 / 3; width: 34px; height: 34px; }
  .leaderboard-task-button strong { grid-column: 2; }
  .leaderboard-task-button small { grid-column: 2; margin: 0; }
  .chart-view-buttons button svg { display: none; }
}
@media (max-width: 600px) {
  .leaderboard-task-switch { gap: 8px; }
  .leaderboard-task-button { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 12px 10px; }
  .leaderboard-task-button .task-symbol { width: 28px; height: 32px; border-radius: 8px; }
  .task-symbol svg { width: 19px; height: 19px; }
  .leaderboard-task-button strong { font-size: 12px; }
  .leaderboard-task-button small { font-size: 10px; }
  .compact-filter select, .compact-filter select[data-modality-select], .compact-metric-select select {
    min-height: 44px; padding-right: 30px; background-position: right 10px center;
  }
  .chart-view-buttons button, .cost-view-switch button { min-height: 38px; padding-inline: 7px; }
  .chart-model > span { width: 24px; height: 24px; line-height: 22px; }
  .nav-current > span:last-child { display: none; }
}
@media (pointer: coarse) {
  .chart-view-buttons button, .cost-view-switch button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leaderboard-task-button, .compact-filter select, .compact-metric-select select, .clinical-chart-row { transition: none; }
}

/* Group chart controls and keep detailed reading guidance available on demand. */
.cost-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px;
}
.cost-controls .cost-axis-switch { padding: 0; }
.cost-controls .cost-view-switch { margin: 0; }
.role-panel > header { margin-bottom: 12px; }
.role-axis-key { padding: 0; border: 0; background: transparent; }
.role-axis-list { gap: 6px 8px; }
.chart-reading-guide { margin-top: 12px; border-bottom: 1px solid var(--line); }
.chart-reading-guide > summary {
  display: flex; align-items: center; gap: 9px; width: fit-content;
  min-height: 40px; padding: 5px 0; color: var(--ink-soft);
  font-size: 12px; font-weight: 550; cursor: pointer; list-style: none;
}
.chart-reading-guide > summary::-webkit-details-marker { display: none; }
.chart-reading-guide > summary::before {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
  margin-left: 2px;
}
.chart-reading-guide[open] > summary::before { transform: rotate(45deg); }
.chart-reading-guide > summary:hover { color: var(--accent); }
.chart-reading-content { max-width: 92ch; padding: 0 0 14px 17px; }
.chart-reading-content p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chart-reading-content p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .compact-metric-select > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .compact-metric-select { gap: 0; }
  .chart-card-header { padding-top: 10px; padding-bottom: 8px; }
  .chart-summary { padding-bottom: 9px; }
  .cost-controls { gap: 8px; }
  .cost-controls .cost-axis-switch { gap: 2px; }
  .cost-controls .cost-axis-button { padding-inline: 8px; }
  .chart-reading-guide > summary { min-height: 44px; }
}
