/* FLAIR website - simple high-contrast clinical/scientific theme.
   Palette: pure white, black, blue, red, and grey. */

:root {
  --bg: #ffffff;
  --panel: #f6f6f6;
  --panel-2: #fafafa;
  --ink: #111111;
  --muted: #666666;
  --ink-on-rule: #555555;
  --rule: #dddddd;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.09);
  --ease: 160ms cubic-bezier(.2,.6,.2,1);

  --c-blue: #1f77b4;
  --c-purple: #777777;
  --c-sage: #111111;
  --c-terracotta: #d62728;

  --c-blue-soft: #e8f1f8;
  --c-purple-soft: #eeeeee;
  --c-sage-soft: #eeeeee;
  --c-terracotta-soft: #fbeaea;
  /* AA-safe text tints: the brand hue darkened to >= 4.5:1 on its soft tint or
     the panel grey (the plain hues fall just short there) */
  --c-blue-ink-on-soft: #17608f;
  --c-red-ink-on-soft: #b51f20;
  --c-link-on-panel: #1a6aa1;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", ui-serif, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---- type scale -------------------------------------------------
     Ten steps, every one of them role-named. Display steps are fluid
     (clamp) so they shrink on a phone without a media query; text steps
     are fixed, because body copy that resizes as you drag the window is
     disorienting to read. Nothing on a page should use a size that is
     not one of these. */
  --fs-hero:    clamp(48px, 7vw, 76px);  /* the FLAIR wordmark, hero only */
  --fs-h1:      clamp(38px, 5.2vw, 60px);
  --fs-h2:      clamp(28px, 3.4vw, 38px);   /* section headings */
  --fs-h3:      clamp(21px, 1.7vw, 24px);   /* card + panel titles */
  --fs-h4:      20px;                       /* nested / compact titles */
  --fs-tagline: clamp(21px, 2.6vw, 29px);   /* hero tagline only */
  --fs-lead:    clamp(19px, 1.5vw, 22px);   /* standfirst paragraph */
  --fs-base:    18px;                       /* every paragraph, everywhere */
  --fs-ui:      16px;                       /* interface chrome: nav, subnav, tabs */
  --fs-sm:      15px;                       /* captions, notes, meta, chips */
  --fs-xs:      13px;                       /* pills, badges, table heads */
  --fs-eyebrow: 12px;                       /* tracked uppercase labels */

  /* ---- measure ----------------------------------------------------
     One content column shared by nav, main and footer. --edge keeps the
     bars full-bleed while their contents align to the same left/right
     edge as the page body at every viewport width. */
  --measure: 1240px;
  --measure-narrow: 960px;                  /* single-column reading sections */
  --measure-prose: 72ch;                    /* line-length cap for prose */
  --gutter: clamp(20px, 4vw, 56px);
  --edge: max(var(--gutter), calc((100% - var(--measure)) / 2));

  /* Shared foregrounds, highlights, and vocabulary count buckets. */
  --ink-secondary: #333;
  --ink-quiet: #444444;
  --brand-ink: #202830;
  --brand-blue: #245f83;
  --blue-text: #14567f;
  --red-text: #8f1b1c;
  --neutral-text: #40474e;
  --chart-diagonal: #c9c9c4;
  --note-link: #0d5a8c;
  --blue-highlight: #dcebf6;
  --red-highlight: #f7dede;
  --bucket-low: #a9cbe4;
  --bucket-mid: #6fa6d0;
  --bucket-high: #0d4a75;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

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

*:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; border-radius: 3px; }

main { width: 100%; max-width: none; margin: 0; padding: 52px var(--edge) 104px; }

a { color: var(--c-blue); text-decoration: none; transition: color var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* links inside running text need a cue besides colour (WCAG link-in-text-block) */
main p a, .lead a, .notice a, .callout a { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 750; letter-spacing: -0.025em; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h1 .accent { font-style: normal; color: var(--c-blue); }
h2 { font-size: var(--fs-h2); font-weight: 750; line-height: 1.14; margin: 56px 0 10px; }
h2 .accent { font-style: normal; color: var(--c-blue); }
h3, h2.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; margin: 28px 0 10px; }
p { margin: 0 0 14px; max-width: var(--measure-prose); }
p.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); font-style: normal; margin: 12px 0 28px; }

.count { font-family: var(--sans); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0; }
.muted { color: var(--muted); }
hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

/* dot markers */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 9px; }
.dot.blue { background: var(--c-blue); }
.dot.purple { background: var(--c-purple); }
.dot.sage { background: var(--c-sage); }
.dot.terracotta { background: var(--c-terracotta); }

/* top nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
nav.top {
  display: flex; align-items: center; gap: 28px; font-size: var(--fs-ui);
  width: 100%; max-width: none; margin: 0; padding: 17px var(--edge);
}
nav.top .brand { font-family: var(--sans); font-weight: 850; letter-spacing: 0.01em; font-size: 23px; color: var(--ink); display: flex; align-items: center; }
nav.top .brand:hover { text-decoration: none; }

/* Comparison mark and wordmark share geometry across the navigation, hero and footer.
   Identity colors are separate from the scientific data-series palette. */
.wordmark { display: inline-flex; align-items: center; font-family: var(--sans);
  font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; color: var(--brand-ink); }
.brand-mark { width: 1.1em; height: 1.1em; margin-right: .32em; flex: none; color: var(--brand-blue); }
nav.top .links { display: flex; gap: 24px; }
nav.top .links a { color: var(--ink); font-weight: 650; position: relative; padding: 2px 0; }
nav.top .links a:hover { color: var(--c-blue); text-decoration: none; }
nav.top .links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 2px; background: var(--c-blue); transition: right var(--ease); }
nav.top .links a:hover::after { right: 0; }
nav.top .spacer { flex: 1; }
nav.top .signin { padding: 9px 18px; border: 1px solid var(--ink); border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; transition: border-color var(--ease), background var(--ease); }
nav.top .signin:hover { border-color: var(--ink); background: var(--panel); text-decoration: none; }

/* hero */
.hero { padding: 28px 0 8px; }
.hero .bars { display: inline-flex; gap: 6px; margin: 16px 0 0; }
.hero .bars span { width: 28px; height: 6px; border-radius: 3px; display: inline-block; }
.hero .stats { margin-top: 18px; }
.cta { display: inline-flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.cta a { padding: 12px 20px; border-radius: 9px; font-size: var(--fs-base); font-weight: 700; }
.cta a.primary { background: var(--ink); color: var(--bg); }
.cta a.primary:hover { text-decoration: none; opacity: 0.9; }
.cta a.ghost { border: 1px solid var(--rule); color: var(--ink); }
.cta a.ghost:hover { border-color: var(--ink); text-decoration: none; }

/* feature row */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0; }
.feature { padding: 18px 20px; border-radius: 10px; background: var(--panel); border-left: 1px solid var(--c-blue); }
.feature.b { border-left-color: var(--c-blue); }
.feature.p { border-left-color: var(--c-purple); }
.feature.s { border-left-color: var(--c-sage); }
.feature.t { border-left-color: var(--c-terracotta); }
.feature .big { font-family: var(--sans); font-weight: 750; font-size: 30px; }
.feature .desc { font-size: 16px; color: var(--ink-secondary); margin-top: 4px; }

/* task / domain grid (paperswithcode style) */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 8px; }
.grid .item { padding: 22px 16px; border-bottom: 1px solid var(--rule); border-radius: var(--radius-sm);
  transition: background var(--ease); }
.grid .item:hover { background: var(--panel); }
.grid .item .name { font-family: var(--sans); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; }
.grid .item .name a { color: var(--ink); }
.grid .item:hover .name a { color: var(--c-blue); }
.grid .item .meta { margin-top: 6px; }

/* pills */
.pill { display: inline-block; padding: 4px 10px; margin: 3px 5px 3px 0; border-radius: 999px; font-size: var(--fs-xs); background: var(--c-blue-soft); color: var(--blue-text); }
.pill.purple { background: var(--c-purple-soft); color: var(--neutral-text); }
.pill.sage { background: var(--c-sage-soft); color: var(--ink-secondary); }
.pill.terracotta { background: var(--c-terracotta-soft); color: var(--red-text); }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 16px; }
th, td { padding: 14px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--sans); font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 15px; }
.ci { color: var(--muted); font-size: 13px; }

/* leaderboard */
.lb-task { cursor: pointer; }
.lb-task:hover, .lb-model:hover { background: var(--panel); }
/* The single-task page renders table.lb straight into #task-board: it scrolls on
   phones where the ranking columns exceed the screen. relative: clips the
   absolutely positioned .sr-only th label too. */
#task-board { overflow-x: auto; position: relative; }
.lb a { color: var(--c-link-on-panel); }  /* rows sit on the panel grey when hovered/open */
.lb-task .chev { color: var(--muted); font-size: 12px; margin-left: 6px; }
/* the row toggle is a real button (keyboard + screen reader) styled as text */
.lb-model .chev { background: none; border: none; padding: 6px 0; font: inherit;
  color: var(--ink); cursor: pointer; white-space: nowrap; }
.lb-model .chev:hover { color: var(--c-link-on-panel); }
.lb-detail { display: none; }
.lb-detail.open { display: table-row; }
.lb-detail td { background: var(--panel); padding: 0; }
.lb-detail .inner { padding: 14px 18px; }
/* An open model row holds the 12-site report, whose wide tables would otherwise
   size the whole table (and the page) past the viewport. width:0 + min-width:100%
   keeps the detail out of the table's intrinsic width so its own scroll regions
   take the overflow. */
.lb-detail .inner { width: 0; min-width: 100%; box-sizing: border-box; }
@media (max-width: 620px) {
  .lb-model .chev { min-height: 44px; }
  /* size the open report to the screen (board width = 100vw minus both gutters)
     so it reads without sideways scrolling; its wide tables still scroll in place */
  .lb-detail .inner { min-width: 0; width: calc(100vw - 2 * var(--gutter)); }
}
.site-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.site-toggle { font-size: 15px; padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; background: var(--bg); color: var(--muted); user-select: none; }
.site-toggle.on { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.best { font-weight: 600; color: var(--c-sage); }

/* cards / panels */
.panel { background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px 32px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 12px 20px; font-size: 17px; }
.kv .k { color: var(--muted); }

/* status badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; }
.badge.done { background: var(--c-sage-soft); color: var(--ink-secondary); }
.badge.pending { background: var(--c-terracotta-soft); color: var(--red-text); }
.badge.notrun { background: var(--rule); color: var(--ink-on-rule); }

/* forms */
form.stack label { display: block; margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
form.stack input[type=text], form.stack input[type=email], form.stack input[type=password],
form.stack input[type=url], form.stack textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: var(--fs-ui); font-family: var(--sans);
}
form.stack textarea { resize: vertical; line-height: 1.5; }
form.stack input[type=file] { max-width: 100%; min-width: 0; }
.kv a, .req-links a { overflow-wrap: anywhere; }
form.stack input:focus, form.stack textarea:focus { border-color: var(--c-blue); }
form.stack fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
main a[href^="mailto:"] { overflow-wrap: anywhere; }
.report-load { margin-top: 18px; font-size: var(--fs-sm); }
.report-load .btn { margin: 8px 0; }
/* request-a-run (mailto) page */
.rr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.rr-copybuf { position: fixed; top: 0; left: -9999px; opacity: 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; border: none; background: var(--ink); color: var(--bg); font-size: 16px; cursor: pointer; font-weight: 700; }
.btn:hover { opacity: 0.9; }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--rule); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.toggle-row .label { flex: 1; }
.toggle-row label.label { margin: 0; color: var(--ink); font-size: var(--fs-ui); }
.toggle-row input { flex: none; width: 24px; height: 24px; }
.table-scroll { max-width: 100%; overflow-x: auto; position: relative; }
.table-scroll table { min-width: 560px; }
.pref-head, .req-head { flex-wrap: wrap; }
.pref-head .badge { max-width: 100%; overflow-wrap: anywhere; }
.subnav a, .subnav button { min-height: 44px; display: inline-flex; align-items: center; }
.chart-data { margin-top: 12px; font-size: var(--fs-sm); }
.chart-data summary { min-height: 44px; padding: 8px 0; cursor: pointer; color: var(--c-link-on-panel); }
.chart-data .la-scroll { max-height: 360px; }
.chart-data table { font-size: var(--fs-sm); }
.chart-data td:first-child { white-space: nowrap; }
.site-swatch { width: 30px; height: 12px; flex: none; margin-right: 7px; vertical-align: middle; }
.site-picker .site-toggle { min-height: 44px; }
.site-toggle[aria-pressed="false"] { border-style: dashed; }
.rep-selection { margin-top: 12px; }
.vx-results { font-size: var(--fs-sm); }
.vx-results summary { min-height: 44px; cursor: pointer; padding-block: 8px; }
.vx-results-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.vx-result { display: block; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); text-align: left; font: inherit; cursor: pointer; margin-bottom: 8px; overflow-wrap: anywhere; }
.vx-result[aria-pressed="true"] { border-color: var(--ink); background: var(--panel); font-weight: 700; }
.vx-result small { display: block; color: var(--muted); }
.vx-more { min-height: 44px; }
@media (max-width: 1100px) {
  /* Committee links need their own row before the public navigation does. */
  nav.top-internal { flex-wrap: wrap; row-gap: 4px; }
  nav.top-internal .links { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  nav.top-internal .links a { flex-shrink: 0; padding: 10px 0; white-space: nowrap; }
}

@media (max-width: 760px) {
  nav.top .brand, .vx-chip, .vx-leg, .thr-reset { min-height: 44px; }
  .vx-search input { min-height: 44px; }
  .vx-close { min-width: 44px; min-height: 44px; }
  .vx-pinned .vx-dom, .vx-pinned .vx-code { padding-right: 36px; }
  .toggle-row label.label { min-height: 44px; display: flex; align-items: center; }
}
.toggle-row .label .sub { color: var(--muted); font-size: 13px; }
.error { background: var(--c-terracotta-soft); color: var(--red-text); padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 16px; }
.notice { background: var(--panel); color: var(--ink-secondary); padding: 14px 16px; border-radius: 8px; margin: 16px 0; font-size: 16px; border: 1px solid var(--rule); }
.notice a, .callout a { color: var(--c-link-on-panel); }
.demo-note { font-size: 16px; color: var(--ink); border-left: 1px solid var(--c-blue); padding: 16px 18px; margin: 24px 0; background: var(--panel); border-radius: 0 8px 8px 0; line-height: 1.55; }

/* portal subnav */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 24px; font-size: var(--fs-ui); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.subnav a { color: var(--muted); }
.subnav a.active { color: var(--ink); font-weight: 600; }

/* leaderboard task tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.tabs .tab { font-family: var(--sans); font-size: var(--fs-ui); padding: 11px 16px; border: 1px solid var(--rule);
  background: var(--bg); border-radius: 999px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; }
.tabs .tab:hover { border-color: var(--ink); color: var(--ink); }
.tabs .tab.active { border-color: var(--ink); color: var(--ink); background: var(--panel); font-weight: 600; }

/* checkbox grid (submit form) */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
label.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14.5px; color: var(--ink); }
label.check input { width: auto; }

/* run-request cards */
.req-card { padding: 16px 20px; }
.req-head { display: flex; align-items: center; gap: 10px; }
.req-model { font-family: var(--sans); font-weight: 600; font-size: 18px; }
.req-tasks { margin: 8px 0; }
.req-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; margin-top: 4px; }
.req-links .lk { color: var(--muted); }

/* submission status badges */
.badge.status-submitted { background: var(--c-blue-soft); color: var(--blue-text); }
.badge.status-reviewing { background: var(--c-purple-soft); color: var(--neutral-text); }
.badge.status-processing { background: var(--c-purple-soft); color: var(--neutral-text); }
.badge.status-approved  { background: var(--c-sage-soft); color: var(--ink-secondary); }
.badge.status-rejected  { background: var(--c-terracotta-soft); color: var(--red-text); }
.badge.status-pushed    { background: var(--c-sage-soft); color: var(--ink-secondary); }
.badge.status-posted    { background: var(--c-sage-soft); color: var(--ink-secondary); }
.badge.status-open      { background: var(--c-blue-soft); color: var(--blue-text); }

/* run-response (site lifecycle) badges */
.badge.rs-pending        { background: var(--rule); color: var(--ink-on-rule); }
.badge.rs-rejected       { background: var(--c-terracotta-soft); color: var(--red-text); }
.badge.rs-accepted       { background: var(--c-blue-soft); color: var(--blue-text); }
.badge.rs-running        { background: var(--c-purple-soft); color: var(--neutral-text); }
.badge.rs-results-shared { background: var(--c-sage-soft); color: var(--ink-secondary); }
.anon { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px dashed var(--muted);
  color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

/* site run-request actions (portal dashboard) */
.req-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-form .anon-cb { margin: 0; font-size: 13px; color: var(--muted); }
.btn.sm { padding: 6px 14px; font-size: 13.5px; border-radius: 7px; }

/* committee orchestration matrix */
.matrix-wrap { overflow-x: auto; }
.orch-matrix { min-width: 480px; }
.orch-matrix th.site-col { text-align: center; font-size: 12.5px; white-space: nowrap; }
.orch-matrix td.cell { text-align: center; white-space: nowrap; }
.orch-matrix .run-col { min-width: 220px; }
.orch-matrix .run-model { font-family: var(--sans); font-weight: 600; }
.orch-matrix td.cell .anon { margin-left: 6px; }

/* site-preference cards (charted) */
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.pref-card { padding: 16px 18px; margin: 0; }
.pref-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pref-name { font-family: var(--sans); font-weight: 700; font-size: 16px; }
.pref-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pref-flags .flag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--rule);
  color: var(--ink-on-rule); }
.pref-flags .flag.on { background: var(--c-blue-soft); color: var(--blue-text); }
.pref-accept .bar { height: 8px; border-radius: 999px; background: var(--rule); overflow: hidden; margin: 5px 0; }
.pref-accept .bar span { display: block; height: 100%; background: var(--c-sage); border-radius: 999px; }

/* task page: models evaluated */
.model-list { margin: 12px 0 8px; }
.model-row { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.model-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.model-name { font-family: var(--sans); font-weight: 750; font-size: 22px; }
.site-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.site-rep { font-size: 15px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--bg); color: var(--ink); cursor: pointer; font-family: var(--sans); font-weight: 700; }
.site-rep:hover { border-color: var(--ink); }
.site-rep.active { border-color: var(--c-blue); background: var(--c-blue-soft); color: var(--blue-text); font-weight: 800; }
.site-rep.pending { color: var(--muted); cursor: default; border-style: dashed; }
.site-rep.pending:hover { border-color: var(--rule); }

/* report panel */
.report-panel { border: 1px solid var(--rule); border-radius: 14px; padding: 26px 28px; margin: 26px 0; background: var(--bg); box-shadow: var(--shadow-sm); }
.report-head { display: flex; align-items: center; justify-content: space-between; }
.report-head h3 { margin: 0; }
.rep-close { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; font-size: 15px; cursor: pointer; color: var(--muted); padding: 8px 14px; font-weight: 700; }
.rep-close:hover { color: var(--ink); }
.rep-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.rep-tab { font-size: 15px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg); cursor: pointer; color: var(--muted); font-family: var(--sans); font-weight: 700; }
.rep-tab:hover { color: var(--ink); border-color: var(--ink); }
.rep-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rep-body h4 { font-family: var(--sans); font-weight: 700; font-size: 19px; margin: 22px 0 10px; }
.rep-body ul { margin: 6px 0 14px; }
.rep-prov { margin: 2px 0 14px; }
.rep-landmark { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px;
  padding: 14px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.lm-all { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lm-all input { width: 15px; height: 15px; accent-color: var(--c-blue); }
.lm-scrub { display: flex; align-items: center; gap: 12px; max-width: 560px; }
.lm-scrub .lm-cap { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.lm-slider { flex: 1; accent-color: var(--c-blue); height: 4px; cursor: pointer; }
.lm-slider:disabled { opacity: 0.4; cursor: default; }
.lm-now { font-style: italic; }
.lm-legend { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--mono);
  font-size: 11px; color: var(--muted); }
.lm-legend i { flex: 0 0 120px; height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, hsl(204,68%,26%), hsl(204,68%,72%)); }

/* threshold scrubber on the operating-point views (reuses .lm-slider) */
.thr-scrub { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 640px;
  margin: 0 0 16px; padding: 12px 16px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.thr-scrub .lm-cap { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.thr-scrub .thr-now { color: var(--ink); font-weight: 600; }
.thr-slider { flex: 1 1 160px; min-width: 120px; }
.thr-reset { font: inherit; font-size: 12px; padding: 3px 11px; border: 1px solid var(--rule);
  border-radius: 999px; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.thr-reset:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 440px)); gap: 20px; align-items: start; }
.chart-box { background: var(--panel-2); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 12px 8px; }
svg.chart { width: 100%; height: auto; display: block; }
.c-title { font-family: var(--sans); font-weight: 700; font-size: 14px; fill: var(--ink); }
.c-tick { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.c-axis { font-size: 11px; fill: var(--muted); }
.c-grid { stroke: var(--rule); stroke-width: 1; }
.c-frame { fill: none; stroke: var(--rule); stroke-width: 1; }
.c-diag { stroke: var(--chart-diagonal); stroke-width: 1; stroke-dasharray: 4 3; }
.c-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: 11.5px; color: var(--muted); padding: 4px 0 8px; }
.c-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

table.rep-tbl { width: auto; min-width: 340px; margin: 16px 0 22px; font-size: 15px; }
table.rep-tbl td, table.rep-tbl th { padding: 9px 13px; }

footer { width: 100%; max-width: none; margin: 40px 0 0; padding: 34px var(--edge) 52px; color: var(--muted); font-size: var(--fs-sm); border-top: 1px solid var(--rule); line-height: 1.7; }
footer .foot-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 8px; }
footer .foot-brand { font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
footer a { color: var(--muted); }
footer .foot-credit { margin: 6px 0 0; }
footer .foot-credit a { text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }
footer .sep { color: var(--rule); }

/* ============================================================
   EHRSHOT-style landing components (white + Montserrat)
   ============================================================ */

/* big centered hero */
.hero-xl { text-align: center; padding: 42px 0 10px; }
.hero-xl h1 { font-size: var(--fs-hero); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.hero-xl .tagline { font-size: var(--fs-tagline); line-height: 1.3; color: var(--ink); max-width: 30ch;
  margin: 24px auto 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.descriptors { display: inline-block; margin: 22px 0 0; font-family: var(--sans); font-size: var(--fs-sm);
  color: var(--muted); line-height: 1.55; max-width: 60ch; }

/* CTA button row */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; }
.cta-row a { padding: 14px 24px; border-radius: var(--radius-sm); font-size: var(--fs-base); font-weight: 750;
  display: inline-flex; align-items: center; gap: 8px; transition: all var(--ease); }
.cta-row a.primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.cta-row a.primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-row a.ghost { border: 1px solid var(--rule); color: var(--ink); }
.cta-row a.ghost:hover { border-color: var(--ink); background: var(--panel); text-decoration: none; }
.cta-row a.soon { border: 1px dashed var(--rule); color: var(--muted); cursor: default; }
.cta-row a.soon:hover { text-decoration: none; }
.cta-row a.soon::after { content: "soon"; font-family: var(--mono); font-size: 10px;
  padding: 1px 6px; border-radius: 999px; background: var(--c-terracotta-soft);
  color: var(--red-text); vertical-align: middle; }

/* pip install callout - one contained card */
.install { display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 34px auto 0; padding: 22px 28px; background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.install .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.install code { font-family: var(--mono); font-size: var(--fs-base); background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 16px; color: var(--ink); }
.soon-badge { font-family: var(--mono); font-size: var(--fs-eyebrow); padding: 4px 11px; border-radius: 999px;
  background: var(--c-terracotta-soft); color: var(--red-text); font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; }
.install .sub { color: var(--muted); font-size: var(--fs-sm); font-style: normal; text-align: center; margin: 0; }
.install-wrap { text-align: center; }

/* stat cards */
.statcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 56px 0 12px; }
.statcards-note { max-width: var(--measure-prose); margin: 0 0 40px; line-height: 1.5; }
.statcard { background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: transform var(--ease), box-shadow var(--ease); }
.statcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.statcard .num { font-family: var(--sans); font-weight: 850; font-size: var(--fs-h2); letter-spacing: -0.04em;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.statcard.b .num { color: var(--c-blue); } .statcard.p .num { color: var(--c-purple); }
.statcard.s .num { color: var(--c-sage); } .statcard.t .num { color: var(--c-terracotta); }
.statcard .lbl { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* three-column "what is FLAIR" */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 8px;
  align-items: stretch; }
.three-col .col { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--rule);
  border-top: 3px solid var(--c-blue); border-radius: var(--radius); padding: 24px 22px 20px;
  box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease); }
.three-col .col:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.three-col .col.p { border-top-color: var(--c-purple); }
.three-col .col.s { border-top-color: var(--c-sage); }
.three-col .col h3 { margin: 0 0 10px; }
.three-col .col p { font-size: var(--fs-base); color: var(--ink-secondary); flex: 1; }
.three-col .col .more { font-size: var(--fs-base); font-weight: 700; align-self: flex-start; }
.three-col .col .more:hover { text-decoration: none; }

/* section header helper */
.section-head { text-align: center; margin: 56px 0 8px; }
.section-head h2 { max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.section-head .count { display: block; max-width: 62ch; margin: 6px auto 0; }

/* citation / bibtex */
.citation { margin: 48px 0 0; }
.citation pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: var(--fs-xs);
  line-height: 1.55; color: var(--ink); }

/* ============================================================
   Docs (FLAIR 101) layout
   ============================================================ */
.docs-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-sidebar { position: sticky; top: 24px; font-size: 14.5px; }
.docs-sidebar .grp { font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.docs-sidebar a { display: block; color: var(--muted); padding: 7px 12px; border-radius: 8px;
  border-left: 2px solid transparent; }
.docs-sidebar a:hover { color: var(--ink); text-decoration: none; background: var(--panel); }
.docs-sidebar a.active { color: var(--ink); font-weight: 600; border-left-color: var(--c-blue);
  background: var(--panel); }
.docs-body { min-width: 0; }
.docs-body .lede { font-size: 17px; color: var(--muted); font-style: italic; margin: 6px 0 22px; }
.docs-body h2 { margin-top: 34px; }
.docs-body ul, .docs-body ol { margin: 6px 0 16px; padding-left: 22px; }
.docs-body li { margin: 4px 0; }
.docs-body code { font-family: var(--mono); font-size: 13px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; }
.docs-body table { box-shadow: var(--shadow-sm); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  overflow: hidden; }
.docs-body table tr:nth-child(even) td { background: var(--panel-2); }
.docs-body th { background: var(--panel); }
.docs-body td, .docs-body th { border-bottom: 1px solid var(--rule); }
/* docs tables scroll in place rather than pushing the page sideways
   (iPad portrait included: the docs column is narrowest beside the sidebar) */
@media (max-width: 1024px) { .docs-body table { display: block; overflow-x: auto; } }
.codeblock { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px;
  padding: 14px 18px; overflow-x: auto; margin: 14px 0 20px; }
.codeblock pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--ink); }
.codeblock code { background: none; border: none; padding: 0; font-size: 13px; }
.callout { border-left: 1px solid var(--c-blue); background: var(--c-blue-soft); color: var(--blue-text);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; font-size: 14.5px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px;
  padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.prevnext a { font-weight: 600; }
.prevnext .spacer { flex: 1; }

/* ============================================================
   Landing motion: "how it works" federation diagram + reveals
   (all namespaced under .howit / [data-reveal] / .reveal-hero)
   ============================================================ */

/* --- scroll reveals + hero entrance --- */
html.js [data-reveal] > * { opacity: 0; }
[data-reveal].is-revealed > * {
  animation: reveal-up .6s cubic-bezier(.2,.6,.2,1) var(--rev-delay, 0ms) both;
}
.reveal-hero > * { animation: hero-in .7s cubic-bezier(.2,.6,.2,1) both; }
.reveal-hero > *:nth-child(1) { animation-delay: .04s; }
.reveal-hero > *:nth-child(2) { animation-delay: .12s; }
.reveal-hero > *:nth-child(3) { animation-delay: .20s; }
.reveal-hero > *:nth-child(4) { animation-delay: .28s; }
.reveal-hero > *:nth-child(5) { animation-delay: .36s; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-in   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* --- flowing federation pipeline --- */
.howit { margin: 70px 0 12px; }
.howit > .section-head { margin-top: 0; }

/* the federated workflow diagram (inline SVG, lights up step by step via .on) */
.ff-wrap { max-width: var(--measure); margin: 30px auto 0; }
.fedflow { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.ff-col { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; fill: var(--ink); text-anchor: middle; }
.ff-box { fill: var(--bg); stroke: var(--ink-on-rule); stroke-width: 1.4; }
.ff-node.hub .ff-box { fill: var(--c-blue-soft); stroke: var(--c-blue); stroke-width: 1.6; }
.ff-title { font-size: 17px; font-weight: 800; fill: var(--ink); text-anchor: middle; }
.ff-sub { font-size: 13.5px; fill: var(--ink-on-rule); text-anchor: middle; }
.ff-sub.ff-who { font-size: 13px; font-weight: 700; fill: var(--c-blue); }
.ff-line { fill: none; stroke: var(--ink-on-rule); stroke-width: 1.6; }
.ff-head { fill: var(--ink-on-rule); }
.ff-edge.cross .ff-line { stroke: var(--c-blue); }
.ff-edge.cross .ff-head { fill: var(--c-blue); }
.ff-edge.back .ff-line { stroke: var(--c-blue); stroke-dasharray: 6 5; }
.ff-edge.back .ff-head { fill: var(--c-blue); }
.ff-badge circle { fill: var(--bg); stroke: var(--ink-on-rule); stroke-width: 1.3; }
.ff-badge text { font-size: 13px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.ff-label { font-size: 13px; fill: var(--ink); }
.ff-edge.cross .ff-label, .ff-edge.back .ff-label { fill: var(--c-blue); }
.ff-boundary line { stroke: var(--c-terracotta); stroke-width: 1.5; stroke-dasharray: 5 5; }
.ff-boundary text { font-size: 13.5px; font-weight: 800; fill: var(--c-terracotta); text-anchor: middle; }
.ff-tok { fill: var(--c-blue); opacity: 0; offset-distance: 0%; offset-rotate: 0deg; }

.ff-caption { text-align: center; margin: 14px auto 0; max-width: var(--measure-prose);
  font-size: var(--fs-base); line-height: 1.5; color: var(--ink-secondary); }
.ff-caption + .ff-caption { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }

/* numbered step list: text version of the diagram, primary view on phones */
.ff-steps { list-style: none; counter-reset: ff; margin: 26px auto 0; padding: 0; max-width: var(--measure-narrow);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.ff-steps li { counter-increment: ff; position: relative; padding: 12px 14px 12px 50px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--bg); font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-quiet);
  transition: border-color .3s ease, background .3s ease; }
.ff-steps li::before { content: counter(ff); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px;
  border-radius: 50%; border: 1.3px solid var(--ink-on-rule); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; color: var(--ink); background: var(--bg); transition: background .3s, color .3s, border-color .3s; }
.ff-steps strong { display: block; color: var(--ink); margin-bottom: 2px; }
.ff-steps li.active { border-color: var(--c-blue); background: var(--c-blue-soft); }
.ff-steps li.active::before { background: var(--c-blue); border-color: var(--c-blue); color: var(--bg); }

/* --- guided pass: with JS, everything after step 0 starts hidden --- */
html.js .ff-node:not([data-step="0"]), html.js .ff-label, html.js .ff-head, html.js .ff-badge {
  opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.6,.2,1); }
html.js .ff-node:not([data-step="0"]) { transform: translateY(8px); transform-box: fill-box; }
html.js .ff-badge { transform: scale(.4); transform-box: fill-box; transform-origin: center; }
html.js .ff-edge:not(.back) .ff-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease; }
html.js .ff-edge.back .ff-line { opacity: 0; transition: opacity .6s ease; }
html.js .ff-boundary line { stroke-dashoffset: 0; opacity: 0; transition: opacity .6s ease; }
html.js .ff-boundary text { opacity: 0; transition: opacity .6s ease .2s; }

html.js .fedflow.on .ff-boundary line, html.js .fedflow.on .ff-boundary text { opacity: 1; }
html.js .ff-node.on { opacity: 1; transform: none; transition-delay: .45s; }
html.js .ff-edge.on .ff-line { stroke-dashoffset: 0; opacity: 1; }
html.js .ff-edge.on .ff-head { opacity: 1; transition-delay: .5s; }
html.js .ff-edge.on .ff-badge { opacity: 1; transform: scale(1); transition-delay: .2s; }
html.js .ff-edge.on .ff-label { opacity: 1; transition-delay: .3s; }
.ff-edge.active .ff-badge circle { fill: var(--c-blue); stroke: var(--c-blue); }
.ff-edge.active .ff-badge text { fill: var(--bg); }
html.js .ff-edge.on .ff-tok { animation: ff-run 3.2s linear var(--d, 0s) infinite; }
@keyframes ff-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: .9; } 85% { opacity: .9; } 100% { offset-distance: 100%; opacity: 0; } }
.ff-wrap.paused .ff-tok { animation-play-state: paused; }

/* replay */
.howit-legend { display: flex; justify-content: center; margin-top: 18px; }
.howit-replay { font-family: var(--sans); font-size: var(--fs-sm); padding: 9px 17px; border: 1px solid var(--rule);
  background: var(--bg); border-radius: 999px; color: var(--muted); cursor: pointer;
  transition: border-color var(--ease), color var(--ease); }
.howit-replay:hover { border-color: var(--ink); color: var(--ink); }

/* phones: the SVG's text would shrink below legible, so the step list carries the story */
@media (max-width: 860px) { .ff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .fedflow { display: none; }
  .ff-steps { grid-template-columns: 1fr; margin-top: 18px; }
  .ff-caption { text-align: left; }
}

/* reduced motion: full static state, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] > *, .reveal-hero > * { opacity: 1 !important; }
  [data-reveal] > *, .reveal-hero > *, .ff-tok { animation: none !important; }
  html.js .fedflow *, .ff-steps li, .ff-steps li::before { opacity: 1 !important; transform: none !important;
    transition: none !important; stroke-dashoffset: 0 !important; }
  html.js .ff-edge:not(.back) .ff-line { stroke-dasharray: none !important; }
  html.js .fedflow .ff-tok, .fedflow .ff-tok { opacity: 0 !important; }
}

/* ============================================================
   Task Leaderboard - task accordion + inline reports
   ============================================================ */
.acc-list { margin: 22px 0 8px; border-top: 1px solid var(--rule); }
.task-acc { border-bottom: 1px solid var(--rule); }
.task-acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 22px 14px;
  background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 19px;
  color: var(--ink); text-align: left; transition: background var(--ease); }
.task-acc-head:hover { background: var(--panel); }
.task-acc-head .dot { margin-right: 0; }
.task-acc-head .ta-title { font-weight: 750; }
.task-acc-head .pill { margin: 0; }
.task-acc-head .ta-count { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.task-acc-head .ta-chev { margin-left: auto; color: var(--muted); transition: transform var(--ease); }
.task-acc-head.open .ta-chev { transform: rotate(180deg); }
.task-acc-body { display: none; padding: 0 14px 24px; overflow-x: auto; }
.task-acc-body.open { display: block; }

/* inline report controls inside an expanded model row */
.rep-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.rep-permalink { font-size: 16px; font-weight: 700; white-space: nowrap; }
.rep-permalink:hover { text-decoration: none; }
.lb-detail .report-panel { margin: 14px 0 2px; }

@media (max-width: 980px) {
  .statcards { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .features, .grid, .statcards, .three-col { grid-template-columns: 1fr; }
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-sidebar .grp { width: 100%; }
  /* type sizes are handled by the clamps in :root - do not re-declare them
     here, or the fluid scale stops working at exactly the widths it exists for */
  main { padding: 34px var(--edge) 76px; }
  .hero-xl { padding: 34px 0 8px; }
  nav.top { gap: 14px; padding: 13px var(--edge); }
  /* links drop to their own row instead of disappearing: phones have no
     other header route to Leaderboard / Docs / Vocabulary */
  nav.top { flex-wrap: wrap; row-gap: 4px; }
  nav.top .links { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  nav.top .links a { padding: 10px 0; white-space: nowrap; }
  nav.top .links a::after { bottom: 6px; }
  .howit { margin-top: 40px; }
  table { font-size: 15px; }
  th, td { padding: 12px 10px; }
  .task-acc-head { align-items: flex-start; flex-wrap: wrap; }
  .task-acc-head .ta-chev { width: 100%; margin-left: 44px; }
}

@media (max-width: 319px) {
  .hero-xl h1 { font-size: 40px; }
  /* Narrow phone and foldable previews still expose every navigation link. */
  nav.top { position: static; }
  nav.top .links { flex-wrap: wrap; column-gap: 20px; row-gap: 0; overflow-x: visible; }
  .docs-body { overflow-wrap: anywhere; }
}

@media (max-height: 480px) {
  /* Let short phone and landscape viewports scroll past the header. */
  nav.top { position: static; }
}

/* ============================================================
   Frontend design-audit remediation (2026-07-16)
   ============================================================ */

/* U2 - AA contrast (4.5:1): the default link blue (#1f77b4) is only ~3.6:1
   on light backgrounds; use a darker link blue inside the demo note, and
   underline it so it stays distinguishable from surrounding body text by
   more than color alone (WCAG link-in-text-block / 1.4.1 Use of Color). */
.demo-note a { color: var(--note-link); text-decoration: underline; }

/* U3 - no horizontal page overflow on the standalone task/report page.
   The report panel and its body must be able to shrink inside their
   grid/flex parents; wide metric tables scroll inside their own wrapper
   instead of pushing the page. */
#report, .report-panel, .rep-body { min-width: 0; }
/* let the task-metadata value cells shrink so long <code> identifiers
   (icu_daily_mortality, label_mortality) wrap instead of blowing out
   the grid column (grid children default to min-width:auto). */
.kv > div { min-width: 0; }

@media (max-width: 620px) {
  /* stack charts one-up so the 340px grid minimum can't force overflow */
  .chart-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  /* wide metric/CI tables become their own horizontal scroll region
     (display:block + overflow-x) so they never push the page wider than
     the viewport - the standard responsive-table pattern */
  table.rep-tbl { display: block; overflow-x: auto; min-width: 0; }
  /* inside the focusable .la-scroll region the wrapper must own the scroll,
     or keyboard users focus a box that cannot move */
  .la-scroll > table.rep-tbl { display: table; overflow-x: visible; }
  /* the fixed 220px label column is too wide for a phone - stack the
     task-metadata pairs one per row */
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 10px; }
  .kv .k:first-child { margin-top: 0; }
  /* the lead-time scrubber row (12 d · slider · "1 d · prediction window")
     wraps instead of pushing the report wider than the phone */
  .lm-scrub { flex-wrap: wrap; }
  .lm-scrub .lm-slider { flex: 1 1 120px; min-width: 0; }
}

/* U4 - long inline code (identifiers like icu_daily_mortality in the
   task metadata table, docs, install snippet) wraps instead of pushing the
   page wider than the viewport. Block code keeps scrolling, not wrapping,
   via .codeblock / .citation pre. */
code { overflow-wrap: anywhere; }
.codeblock code, .codeblock pre, .citation pre, pre code { overflow-wrap: normal; }

/* U6 - genuine controls meet the AA target-size floor on touch/mobile widths
   (the global *:focus-visible already covers keyboard focus everywhere).
   Scoped to ≤620px so the thin desktop slider and compact buttons are
   unchanged; target size is a touch concern, and inline text links are
   intentionally left alone (WCAG 2.5.8 exempts them). */
@media (max-width: 620px) {
  .rep-tab, .rep-close, .howit-replay { min-height: 44px; }
  .lm-slider { min-height: 24px; }
}

/* Four-stage evaluation framework, matching the manuscript's Figure 2. */
.benchmark-pipeline { max-width: var(--measure-narrow); margin: 50px auto 6px; }
.benchmark-pipeline > h2 { text-align: center; font-size: var(--fs-h3); text-wrap: balance; }
.pipeline-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none; padding: 0; margin: 24px 0 0; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; }
.pipeline-stages li { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px;
  border-right: 1px solid var(--rule); }
.pipeline-stages li:last-child { border-right: none; }
.pipeline-stages .flair-stage { background: var(--c-blue-soft); }
.pipeline-stages h3 { margin: 0; font-size: var(--fs-h4); line-height: 1.25; }
.pipeline-stages p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-quiet); }
.pipeline-stages span { margin-top: auto; padding-top: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
.pipeline-stages .flair-stage span { color: var(--c-blue-ink-on-soft); }
.pipeline-caption { max-width: 65ch; margin: 20px auto 0; text-align: center;
  font-size: var(--fs-base); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .benchmark-pipeline { margin-top: 34px; }
  .pipeline-stages { grid-template-columns: 1fr; }
  .pipeline-stages li { border-right: none; border-bottom: 1px solid var(--rule); }
  .pipeline-stages li:last-child { border-bottom: none; }
}

/* --- leaderboard task cards (grid of tasks; each links to its task page) --- */
.task-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin: 24px 0 8px; }

.task-card { --acc: var(--c-blue); display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--rule); border-top: 3px solid var(--acc); border-radius: var(--radius);
  padding: 22px 22px 18px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.task-card.blue       { --acc: var(--c-blue); }
.task-card.purple     { --acc: var(--c-purple); }
.task-card.sage       { --acc: var(--c-sage); }
.task-card.terracotta { --acc: var(--c-terracotta); }

.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans);
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tc-top .pill { margin: 0; }

.tc-title { margin: 12px 0 0; font-size: var(--fs-h4); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); }
.task-card:hover .tc-title { color: var(--acc); }
.tc-summary { margin: 8px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-quiet); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* leader row: rank badge · model name + score bar · pooled AUROC */
.tc-leader { display: flex; align-items: center; gap: 12px; margin: 16px 0 0;
  padding: 12px 0 0; border-top: 1px solid var(--rule); }
.tc-leader.empty { color: var(--muted); font-size: 14px; font-style: italic; }
.tc-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: var(--acc); color: var(--bg);
  font-family: var(--sans); font-weight: 850; font-size: 13px; }
.tc-leader-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tc-leader-name { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-bar { display: block; height: 6px; border-radius: 999px; background: var(--panel);
  overflow: hidden; }
.tc-bar > i { display: block; height: 100%; background: var(--acc); border-radius: 999px; }
.tc-auroc { flex: none; font-family: var(--sans); font-weight: 800; font-size: 16px;
  color: var(--ink); font-variant-numeric: tabular-nums; }

.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; }
.tc-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.tc-cta { font-family: var(--sans); font-size: 14px; font-weight: 750; color: var(--acc); }
.task-card.purple .tc-cta { color: var(--muted); }

@media (max-width: 560px) { .task-cards { grid-template-columns: minmax(0, 1fr); } }

/* --- Landmark Analysis: all of a model's sites overlaid on one plot --- */
.landmark-analysis { margin-top: 4px; }
/* shared site→color key sits above the chart grid (bigger swatch than per-chart) */
.site-legend { justify-content: flex-start; gap: 18px; margin: 4px 0 14px; font-size: 13px; }
.site-legend i { width: 16px; height: 4px; }
.la-sub { margin: 22px 0 6px; font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.la-sub span { font-weight: 500; margin-left: 6px; }
/* global site selector above the tabs - colored pill per site (also the legend) */
.site-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.site-picker .site-toggle { display: inline-flex; align-items: center; font-weight: 700; }
.site-picker .site-toggle:not(.on) { color: var(--muted); background: var(--bg); }
/* wide op-point / peak tables scroll horizontally instead of overflowing the panel */
.la-scroll { overflow-x: auto; }
.la-dca { margin-top: 18px; }
.la-site { font-family: var(--sans); font-weight: 700; font-size: 15px; margin: 16px 0 2px; }
/* expandable threshold-selection rule label: full name + citation drawer */
.rule-info > summary { cursor: pointer; font-weight: 600; list-style: revert; }
.rule-info[open] > summary { margin-bottom: 5px; }
.rule-meta { font-size: 13px; color: var(--muted); line-height: 1.55; }
.rule-meta .k { color: var(--ink); font-weight: 600; }
/* important methodological caveat under the rules table */
.op-note { font-size: 13px; color: var(--muted); background: var(--panel); border-left: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; margin: 12px 0 6px; line-height: 1.55; }
.op-note strong { color: var(--ink); }

/* ---- vocabulary coverage (/vocab, beta) ---------------------------------
   One dot per ELF code on a white canvas: colour = domain (validated adjacent
   wedge order, see static/js/vocab.js), size + brightness = quality stars.
   Per-site buckets are a single-hue blue ramp. */
.beta-pill { vertical-align: middle; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.vocab-notice { line-height: 1.6; }
.vocab-stats { margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vx { --vx-bg: var(--bg); --vx-panel: var(--bg); --vx-ink: var(--ink); --vx-muted: var(--muted); --vx-rule: var(--rule);
  display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; margin: 28px 0 22px; box-shadow: var(--shadow-sm); min-height: 640px; }
.vx-side { background: var(--panel-2); border-right: 1px solid var(--rule); padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vx-search input { width: 100%; font-size: var(--fs-sm); padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
.vx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-chip { font: inherit; font-size: var(--fs-xs); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--muted); cursor: pointer; }
.vx-chip.active { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.vx-counts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.vx-counts > div { display: flex; justify-content: space-between; padding: 9px 0; font-size: var(--fs-sm); }
.vx-counts > div + div { border-top: 1px solid var(--rule); }
.vx-counts span { color: var(--muted); }
.vx-empty { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.vx-empty ul { padding-left: 18px; margin: 8px 0 0; }
.vx-pinned { position: relative; font-size: var(--fs-sm); }
.vx-pinned h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 6px; }
.vx-close { position: absolute; top: -6px; right: -4px; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.vx-sitelist { list-style: none; padding: 0; margin: 0; }
.vx-sitelist li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.vx-site { color: var(--ink); }
.vx-bk { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.vx-rule { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0 8px; }
.vx-unit { margin-top: 8px; font-size: 13px; }
.vx-card .vx-unit.muted { color: var(--vx-muted); }
.vx-variants { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.vx-variants code { font-family: var(--mono); font-size: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; }

.vx-dom { display: flex; align-items: center; gap: 7px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.vx-dom i, .vx-leg i { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.vx-code { display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.5; word-break: break-all; margin: 6px 0 3px; }
.vx-desc { color: var(--muted); font-size: 13px; line-height: 1.45; }
.vx-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; }
.vx-stars { font-weight: 700; letter-spacing: 1px; }
.vx-stars.s0 { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.vx-sites { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

/* bucket dots: light surface (sidebar) */
.vx-b { width: 11px; height: 11px; border-radius: 50%; display: inline-block; justify-self: center; }
.vx-b0 { border: 1px dashed var(--muted); }
.vx-b1 { background: var(--bucket-low); } .vx-b2 { background: var(--bucket-mid); }
.vx-b3 { background: var(--c-blue); } .vx-b4 { background: var(--bucket-high); }

.vx-canvas { position: relative; background: var(--vx-bg); border-left: 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
#vx-svg { width: 100%; max-width: 760px; height: auto; display: block; overflow: visible; }
.vx-dot { cursor: pointer; stroke: rgba(0,0,0,0.18); stroke-width: 0.6; transition: opacity var(--ease), r var(--ease); outline: none; }
.vx-dot:hover, .vx-dot:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.vx-dot.sel { stroke: var(--ink); stroke-width: 2.5; }
.vx-dot.dim { opacity: 0.1; }
.vx-halo { opacity: 0.14; pointer-events: none; transition: opacity var(--ease); }
.vx-halo.dim { opacity: 0; }

.vx-legend { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.92); border: 1px solid var(--vx-rule);
  border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 2px; min-width: 200px; }
.vx-legend-h { font-size: 12px; color: var(--vx-muted); margin-bottom: 4px; }
.vx-leg { font: inherit; font-size: 13px; color: var(--vx-ink); background: none; border: 1px solid transparent; border-radius: 6px;
  display: flex; align-items: center; gap: 8px; padding: 3px 6px; cursor: pointer; text-align: left; }
.vx-leg span { margin-left: auto; color: var(--vx-muted); font-family: var(--mono); font-size: 12px; }
.vx-leg:hover { border-color: var(--vx-rule); }
.vx-leg.active { border-color: var(--ink); background: var(--panel); }

.vx-card { position: absolute; z-index: 5; width: 290px; pointer-events: none; background: var(--vx-panel); color: var(--vx-ink);
  border: 1px solid var(--vx-rule); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-md); }
.vx-card .vx-dom, .vx-card .vx-desc, .vx-card .vx-stars.s0 { color: var(--vx-muted); }
.vx-card-hint { margin-top: 10px; font-size: 12px; color: var(--vx-muted); }

.vx-soon h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vx-soon p { max-width: var(--measure-prose); }
.vx-soon .btn[disabled] { opacity: 0.55; cursor: default; }

@media (max-width: 860px) {
  .vx { grid-template-columns: 1fr; min-height: 0; }
  .vx-side { border-right: none; border-bottom: 1px solid var(--rule); }
  .vx-canvas { padding: 12px; flex-direction: column; }
  .vx-legend { position: static; margin-top: 10px; width: 100%; }
  .vx-card { width: min(290px, calc(100% - 16px)); }
}
@media (prefers-reduced-motion: reduce) {
  .vx-dot, .vx-halo { transition: none; }
}

@media (forced-colors: active) {
  .site-toggle[aria-pressed="true"], .rep-tab[aria-pressed="true"], .vx-result[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  .chart-data summary, .table-scroll:focus-visible { color: LinkText; }
}

/* Comparison-first task pages. Full reports keep their existing renderer. */
.task-context { margin: 12px 0 24px; color: var(--ink-quiet); font-size: var(--fs-base); }
.task-models-heading { font-size: var(--fs-h3); margin-top: 26px; }
.task-methods { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 18px; }
.task-methods > summary, .comparison-model-info > summary, .summary-population > summary {
  color: var(--c-link-on-panel); cursor: pointer; font-weight: 650; padding: 8px 0;
}
.task-definition { margin: 22px 0; }
.task-request { margin-top: 24px; }
.lb-compact { table-layout: fixed; }
.lb-compact > thead > tr > th:first-child { width: 60%; }
.lb-compact .lb-model td { vertical-align: middle; overflow-wrap: anywhere; }
.lb-compact .lb-model .row-pooled { color: var(--ink); font-size: var(--fs-h3); font-weight: 750; }
.lb-compact .lb-model .chev { display: block; color: var(--c-link-on-panel); font-size: var(--fs-sm); }
.lb-compact > tbody > .lb-detail > td { background: var(--bg); }
.lb-compact .lb-detail .inner { padding: 20px 0 8px; width: 100%; min-width: 0; max-width: 100%; }
.lb-dataset-count { display: block; white-space: normal; }
.report-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.report-mode { border: 1px solid var(--rule); background: var(--bg); color: var(--ink);
  font: 650 var(--fs-ui) var(--sans); border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer; }
.report-mode:hover { border-color: var(--ink); }
.report-mode[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.comparison-summary h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.summary-table-scroll { overflow-x: auto; max-width: 100%; position: relative; }
.summary-table { margin: 16px 0; }
.comparison-summary .summary-table th, .comparison-summary .summary-table td {
  padding: 9px 12px; background: var(--bg); vertical-align: middle;
  border-bottom: 1px solid var(--rule);
}
.summary-table thead th { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); }
.summary-table tbody th { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm);
  color: var(--ink); font-weight: 500; width: 22%; }
.summary-table tbody th .count { display: block; }
.summary-reference th, .summary-reference td { border-top: 1px solid var(--muted); }
.summary-estimate { display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.summary-estimate svg { width: 240px; height: 20px; flex: none; }
.summary-axis { display: flex; justify-content: space-between; width: 240px;
  font-size: var(--fs-xs); font-weight: 500; }
.summary-population { display: none; overflow-x: auto; max-width: 100%; }
.comparison-model-info { margin-top: 18px; font-size: var(--fs-sm); }
@media (max-width: 980px) {
  .summary-estimate { display: block; }
  .summary-estimate svg { display: block; }
}
@media (max-width: 620px) {
  .lb-compact > thead > tr > th:first-child { width: 62%; }
  .lb-compact .lb-model td.num { white-space: nowrap; overflow-wrap: normal; }
  .lb-compact .lb-model .row-pooled { font-size: var(--fs-base); }
  .lb-compact > thead th, .lb-compact .lb-model > td { padding: 10px 6px; }
  .lb-compact .lb-detail .inner { width: 100%; }
  .report-mode, .task-methods > summary, .comparison-model-info > summary,
  .summary-population > summary { min-height: 44px; }
  .summary-table .summary-population-col { display: none; }
  .summary-table tbody th { width: 28%; overflow-wrap: anywhere; }
  .comparison-summary .summary-table th, .comparison-summary .summary-table td { padding: 8px 4px; }
  .summary-estimate svg, .summary-axis { width: 176px; }
  .summary-population { display: block; }
}

/* Detailed reports: one health system first, interpretation before supporting output. */
.comparison-full .report-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.report-intro { margin: 24px 0; }
.report-intro h3 { margin-bottom: 8px; }
.report-intro p, .report-explainer p { max-width: 74ch; line-height: 1.65; }
.report-focus { margin: 20px 0 8px; }
.report-focus label { display: block; max-width: 560px; font-weight: 600; }
.report-site-focus { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 36px 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.report-comparison { margin: 8px 0; }
.report-comparison > summary, .report-support > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.report-comparison .site-picker { margin: 12px 0; }
.report-explainer { margin: 24px 0 20px; }
.report-explainer h4 { font-size: var(--fs-h4); margin: 0 0 8px; }
.report-explainer p { margin: 0; }
.report-support { margin: 20px 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.report-support[open] > summary { margin-bottom: 12px; }
.chart-caption { font-size: var(--fs-sm); line-height: 1.6; margin: 12px 0; max-width: 65ch; }
.thr-values .rep-tbl { width: 100%; }
.thr-values th[scope="row"] { font-weight: 500; text-align: left; }
.task-clinical-focus { max-width: var(--measure-prose); margin: 20px 0 28px; }
.task-clinical-focus p { margin: 8px 0; }
.thr-primary { max-width: var(--measure-narrow); }
.thr-primary th[scope="row"] { text-transform: none; color: var(--ink); font-size: var(--fs-ui); }
.thr-primary td { font-size: var(--fs-ui); }
.thr-primary caption { text-align: left; }
.rep-tab, .rep-close, .thr-reset, .report-mode, .lm-slider,
.lb-compact .chev, .task-methods > summary, .comparison-model-info > summary,
.summary-population > summary { min-height: 44px; }
#reading-results { scroll-margin-top: 140px; }
@media (max-height: 480px), (max-width: 319px) {
  #reading-results { scroll-margin-top: 20px; }
}
@media (max-width: 600px) {
  .report-intro { margin: 20px 0; }
  .report-site-focus { font-size: 16px; }
  .report-explainer { margin-top: 20px; }
  .thr-values .rep-tbl th, .thr-values .rep-tbl td { padding: 10px 8px; }
}

/* Pair a scientific figure with its exact estimates. Wide comparisons keep
   a full-width table with local scrolling. */
.report-evidence { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; margin: 20px 0; }
.report-evidence > div { min-width: 0; }
.report-evidence .la-sub { margin-top: 0; }
.report-evidence .rep-tbl { width: 100%; }
.report-evidence-wide { grid-template-columns: minmax(0, 1fr); }
.report-evidence-wide > div:first-child { max-width: 440px; }
@media (max-width: 960px) {
  .report-evidence { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .report-evidence > div:first-child { max-width: 440px; }
}
