/* ============================================================
   AlignmentBench - draft site (stylesheet adapted from cwe-bench-website)
   Built on the Collinear AI design system (Archivo display, Inter
   body, Geist Mono; orange #F26125 on warm beige). Archivo served
   locally; Inter + Geist Mono via Google Fonts.
   ============================================================ */

/* Inter + Geist Mono are loaded via <link> in index.html, not @import —
   an @import here is discovered only after this file parses, which
   serialises two round trips before first paint. */


:root {
  --font-display: 'Archivo', 'Inter', -apple-system, system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  --c-brand-orange:        #F26125;
  --c-brand-orange-bright: #EE8449;
  --c-brand-orange-tint:   #FFE4D6;
  --c-tan:                 #CBB9A1;

  --c-beige-100: #FBFAF8;
  --c-beige-200: #F8F7F2;  /* page bg */
  --c-beige-300: #F2EEE5;

  --c-white: #FFFFFF;      /* chart-card surface (charts render on white) */

  --c-ink-900: #171616;
  --c-ink-700: #4E4F4F;
  --c-ink-600: #747575;
  --c-ink-300: #E5E5E1;
  --c-ink-200: #ECEAE3;

  --bg:      var(--c-beige-200);
  --fg-1:    var(--c-ink-900);
  --fg-2:    var(--c-ink-700);
  --fg-3:    var(--c-ink-600);
  --border:  var(--c-ink-300);
  --accent:  var(--c-brand-orange);

  /* status colors: separate, accessible positive/negative (>=4.5:1 on warm white) */
  --status-pass: #1A6E40;
  --status-fail: #B02A1A;

  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 999px;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

/* Anchor targets clear the sticky top bar, plus the launch banner above it
   when one is present (--launchbar-h is 0px otherwise). */
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + var(--launchbar-h, 0px)); }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  /* clip, not hidden: hidden creates a scroll container, which disables position:sticky on the top nav */
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--c-brand-orange-tint); color: var(--c-ink-900); }

a { color: inherit; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Generative ambient canvas - sits behind all content on the beige page */
#ambient {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  /* fade the canvas behind the central reading column so probes never sit under prose */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,1) 90%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,1) 90%, rgba(0,0,0,1) 100%);
}

header,
main,
.footer { position: relative; z-index: 1; }

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- v1 launch banner ----------
   Sits above the top bar. Both are sticky, so the bar below has to be
   offset by the banner's height: countdown.js measures it into
   --launchbar-h and only then adds .is-pinned.

   Pinning is deliberately opt-in rather than the default. If it were
   unconditional and the script failed, the banner would pin at the top
   with --launchbar-h still 0px, and it would sit on top of a bar that
   never learned to move down. Static-by-default means the no-script
   path degrades to the banner scrolling away and the bar behaving
   exactly as it did before the banner existed.

   Foreground is ink, not white: white on this gradient is 3.22:1 at the
   dark end and 2.61:1 at the light end, and 14px/600 is normal-sized
   text under WCAG, which wants 4.5:1. Ink gives 5.60:1 and 6.91:1 and
   leaves the brand orange untouched. */
.launchbar {
  position: static;
  background: linear-gradient(90deg, var(--c-brand-orange) 0%, var(--c-brand-orange-bright) 100%);
  color: var(--c-ink-900);
}
.launchbar.is-pinned {
  position: sticky;
  top: 0;
  z-index: 101;
}
.launchbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.launchbar-msg { display: flex; align-items: center; gap: 10px; margin: 0; }
.launchbar-title {
  font: 600 14px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.launchbar-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-ink-900);
  animation: lb-pulse 2.4s var(--ease-standard) infinite;
}
@keyframes lb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 22, 22, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(23, 22, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 22, 22, 0); }
}
.launchbar-count { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.lb-cell { display: inline-flex; align-items: baseline; gap: 1px; }
.lb-num {
  font: 500 15px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  /* Fixed width so the row does not twitch as the seconds tick over. */
  min-width: 2ch;
  text-align: right;
}
/* 0.86 is the lowest opacity that still clears 4.5:1 against both ends of
   the gradient (0.72 gives 3.74:1 at the dark end). */
.lb-unit { font: 500 11px/1 var(--font-mono); opacity: 0.86; }
/* Past the launch time the digits go away and the message carries it. */
.launchbar.is-live .launchbar-count { display: none; }

@media (prefers-reduced-motion: reduce) {
  .launchbar-dot { animation: none; }
}
@media (max-width: 600px) {
  .launchbar-inner { gap: 4px 14px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .launchbar-title { font-size: 13px; }
  .lb-num { font-size: 14px; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: var(--launchbar-h, 0px);
  z-index: 100;
  padding: 16px 0;
  background: rgba(248, 247, 242, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-standard) 200ms;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar.is-stuck { border-bottom-color: var(--border); }
.topbar .wordmark { color: var(--fg-1); height: 26px; display: block; }
.topbar .wordmark svg { height: 100%; width: auto; }

.toplinks { display: flex; align-items: center; gap: 28px; }
.toplink {
  font: 500 14px/1 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--fg-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease-standard) 150ms;
}
.toplink:hover { color: var(--accent); }
/* Weight and rule carry the active state; the orange is an accent on top of
   them, never the only signal. */
.toplink[aria-current="page"] {
  font-weight: 600;
  color: var(--fg-1);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.toplink:focus-visible,
.navtoggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Menu button: desktop shows the links themselves, so it only exists below
   the breakpoint (see the responsive block). */
.navtoggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;   /* optical: pulls the 24px glyph out to the gutter */
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-1);
  cursor: pointer;
}
.navtoggle .navtoggle-x { display: none; }
.navtoggle[aria-expanded="true"] .navtoggle-bars { display: none; }
.navtoggle[aria-expanded="true"] .navtoggle-x { display: inline; }

/* Version switch. One segment today; a second becomes an <a> beside this
   one and the control reads as a toggle without any other change. */
.verswitch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  /* Outlined, not filled: this is metadata about which result set you are
     reading, and a solid fill made it compete with the page's CTA. */
  background: transparent;
}
.verswitch-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease-standard) 150ms, color var(--ease-standard) 150ms;
}
.verswitch-item + .verswitch-item { border-left: 1px solid var(--border); }
.verswitch-ver { font: 500 12px/1.35 var(--font-mono); color: var(--fg-3); }
.verswitch-tag {
  font: 400 10px/1.35 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
/* Weight rather than a fill marks the current set, so a second version can
   still join as an <a> beside this one and read as a toggle. */
.verswitch-item.is-current .verswitch-ver { color: var(--fg-2); font-weight: 600; }
a.verswitch-item:hover { background: rgba(242, 97, 37, 0.06); }
a.verswitch-item:hover .verswitch-ver { color: var(--accent); }
a.verswitch-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


/* ---------- Confidence interval after a leaderboard score ---------- */
.lb-ci { font: 400 11px/1 var(--font-mono); color: var(--fg-3); white-space: nowrap; margin-left: 2px; }

/* ---------- Bullet list inside a table cell ---------- */
.tbl .tbl-list { margin: 8px 0 8px 18px; padding: 0; }
.tbl .tbl-list li { margin: 3px 0; }

/* ---------- Version dropdown ---------- */
.verdrop { position: relative; display: inline-flex; }
.verdrop-btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: transparent; cursor: pointer; font: inherit; color: inherit;
}
.verdrop-btn:hover { background: rgba(242, 97, 37, 0.06); }
.verdrop-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.verdrop-caret { font: 400 10px/1 var(--font-mono); color: var(--fg-3); margin-left: 2px; }
.verdrop-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 150px;
  margin: 0; padding: 4px; list-style: none;
  background: var(--paper, #FBFAF8); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(23, 22, 22, 0.10);
}
.verdrop-menu[hidden] { display: none; }
.verdrop-menu .verswitch-item { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 6px; }
.verdrop-menu .verswitch-item + .verswitch-item { border-left: 0; }
.verdrop-menu a.verswitch-item:hover { background: rgba(242, 97, 37, 0.06); }
.verdrop-menu .verswitch-item.is-current .verswitch-ver::after { content: " \2713"; color: var(--accent); }
@media (max-width: 899px) {
  .verdrop-menu { position: static; box-shadow: none; margin-top: 6px; }
}

/* ---------- Hero row: intro left, data sheet right ---------- */
main { flex: 1 0 auto; }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  align-items: start;
  column-gap: 64px;
  row-gap: 40px;
  padding-top: 72px;
  padding-bottom: 24px;
}

.product {
  /* No top margin: the 24px here separated the h1 from the eyebrow above it,
     and with that gone it was just leading space pushing the hero below the
     data card it should line up with. */
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--fg-1);
}

.hero-statement {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* Brand phrases woven through the page: Hard But Fair / Harder Gyms.
   Dark rather than accent so bold body-size mentions keep AA contrast. */
.brand-phrase { color: var(--fg-1); font-weight: 700; }

.lede {
  margin: 18px 0 0;
  max-width: 580px;
  font: 400 16px/1.55 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--fg-2);
}

.meta {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font: 400 13px/1.5 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-3);
}
.meta a {
  color: var(--fg-3);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--ease-standard) 150ms, border-color var(--ease-standard) 150ms;
}
.meta a:hover { color: var(--accent); border-color: var(--accent); }
/* Trust credential: independent-evaluation line reads darker/bolder than the rest */
.credential-lead { color: var(--fg-1); font-weight: 600; }
.credential-lead a { color: inherit; }        /* link stays dark/bold, keeps the meta underline; accent on hover via .meta a:hover */

/* ---------- Buttons — ported from collinear.ai's button system ---------- */
.btn-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font: 600 14px/1.2 var(--font-body);
  letter-spacing: 0;
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  background: #E37F43;
  border: 1px solid #E79154;
  border-radius: 8px;
  box-shadow: inset 0 1px 4px #FFF9CE;
  transition: transform 400ms var(--ease-standard), box-shadow 400ms var(--ease-standard), background-color 400ms var(--ease-standard);
}
.btn-primary:hover {
  background: #CA733E;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(224, 132, 74, 0.35), inset 0 1px 4px #FFF9CE;
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--c-brand-orange-tint), inset 0 1px 4px #FFF9CE;
}
.btn-primary .btn-glow {
  position: absolute;
  z-index: 2;
  top: -6px;
  right: -6px;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 100%;
  background: #FFF5AE;
  filter: blur(12px);
  pointer-events: none;
}
.btn-primary .btn-text { position: relative; z-index: 1; }

/* Header CTA. A .btn-primary at version-chip scale, so the two controls sit
   in the bar as a matched pair. The chip's row is 12px/1.35 over 4px padding
   inside a 1px border; the button repeats those numbers, which is what makes
   the two boxes the same height without either one being pinned to a
   hard-coded value. Must stay after .btn-primary: same specificity, and the
   shorthand up there would otherwise win. */
.topcta {
  padding: 4px 12px;
  font: 600 12px/1.35 var(--font-body);
  white-space: nowrap;
}

.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font: 600 14px/1.2 var(--font-body);
  color: var(--c-ink-700);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(55, 54, 68, 0.06);
  transition: border-color 400ms var(--ease-standard), color 400ms var(--ease-standard), transform 400ms var(--ease-standard), box-shadow 400ms var(--ease-standard);
}
.btn-ghost:hover {
  border-color: #E37F43;
  color: #E37F43;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(227, 127, 67, 0.15);
}
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--c-brand-orange-tint);
}

/* Second hero button, as loud as .btn-primary but in ink so the two read as
   a pair rather than competing oranges. */
.btn-ink {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  font: 600 14px/1.2 var(--font-body);
  color: #FFFFFF;
  text-decoration: none;
  background: var(--c-ink-900);
  border: 1px solid var(--c-ink-900);
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(55, 54, 68, 0.06);
  transition: transform 400ms var(--ease-standard), box-shadow 400ms var(--ease-standard), background-color 400ms var(--ease-standard);
}
.btn-ink:hover {
  background: #2E2D2D;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(23, 22, 22, 0.25);
}
.btn-ink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--c-brand-orange-tint);
}

/* Stat tiles below the hero text */
.tiles {
  margin-top: 36px;
  display: grid;
  /* The frontier tile carries three model names where the others carry one
     number, and the longest name plus its mark needs 130px against the 113px
     an equal quarter gives it. A wider fourth column keeps every name on one
     line, which also keeps the row 20px shorter. */
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.25fr;
  gap: 12px;
  max-width: 720px;
}
.tile {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Equal-height tiles: label pinned to the top, figure to the bottom, so
     the four numbers sit on one line however tall the row grows. */
  justify-content: space-between;
}
.tile-label {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  /* Two lines' worth, so a wrapped label cannot drop its own tile's
     number below the other two. */
  min-height: 2.6em;
}
.tile-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.tile-unit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.44em;
  letter-spacing: 0;
  color: var(--fg-3);
}
.tile-note {
  font: 400 12px/1.7 var(--font-mono);
  color: var(--fg-3);
  margin-top: -2px;
  /* One model per line: the list is short and reads as a list, and a
     comma-wrapped run strands single names on their own line anyway. */
  display: flex;
  flex-direction: column;
}
/* Top-aligned, not centered: the longest model name is wider than the tile
   once a mark sits beside it, so a name may wrap to a second line and the
   mark should stay on the first. */
.frontier-model { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
/* Every row gets the slot whether or not a mark exists for that vendor, so
   the names stay aligned down the column. */
.frontier-logo { width: 12px; height: 12px; flex: none; margin-top: 4px; }
img.frontier-logo { opacity: 0.8; }
.frontier-name { min-width: 0; overflow-wrap: break-word; }

/* Data sheet card (upper right) */
.datacard {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 8px;
  margin-top: 8px;
}
.datacard-group { padding-bottom: 6px; }
.datacard-group + .datacard-group { border-top: 1px solid var(--border); padding-top: 16px; }
.datacard-head {
  display: block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.datacard dl { margin: 0; }
.datarow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
}
.datarow + .datarow { border-top: 1px solid var(--c-ink-200); }
.datarow dt {
  font: 400 13px/1.4 var(--font-body);
  color: var(--fg-3);
  flex-shrink: 0;
}
.datarow dd {
  margin: 0;
  font: 500 13px/1.4 var(--font-body);
  color: var(--fg-1);
  text-align: right;
  max-width: 62%;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
  scroll-margin-top: 76px;
}

/* Section rhythm: full-bleed background bands. The band paints the whole
   viewport width behind a section (content stays in the shell), so every
   section boundary is a change of surface instead of a faint hairline.
   z-index:-1 keeps it behind the section's own content; because main is a
   z-index:1 layer above the fixed ambient canvas (z-index:0), the band
   still covers the ambient. overflow-x:clip on <body> absorbs the 100vw. */
.section-band { position: relative; }
.section-band::before {
  content: '';
  /* One band tone, not three. Sections alternate cream (the page, where the
     ambient canvas reads through) and this warm; no two adjacent sections
     share a tone. White is deliberately not available here: it is the card
     surface, and a white band swallowed the white chart card inside it. */
  background: var(--c-beige-300);
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
}


.section-title {
  margin: 0 0 18px;
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  text-wrap: balance;
}
.sub-title {
  margin: 40px 0 14px;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.body {
  margin: 0 0 16px;
  max-width: 720px;
  font: 400 16px/1.6 var(--font-body);
  color: var(--fg-2);
}
.body strong { color: var(--fg-1); font-weight: 600; }
.body a { color: var(--fg-1); text-decoration-color: var(--border); }
.body a:hover { color: var(--accent); }

.note {
  margin: 12px 0 0;
  max-width: 720px;
  font: 400 13px/1.6 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-3);
}
.note strong { color: var(--fg-2); font-weight: 500; }
.note em { font-style: italic; }
/* .note has no bottom margin and .body no top one, so body copy following a
   caption would sit flush against it. */
.note + .body { margin-top: 22px; }

/* ---------- Tables ---------- */
.tablewrap {
  margin: 20px 0 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--c-beige-100);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px/1.5 var(--font-body);
  color: var(--fg-2);
}
.tbl th {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: left;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--c-ink-200);
  vertical-align: top;
}
.tbl tbody tr:last-child td { border-bottom: none; }

.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tbl .mono {
  font: 400 13px/1.5 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-3);
  white-space: nowrap;
}
.tbl .strong { color: var(--fg-1); font-weight: 600; }
.tbl .soft { color: var(--fg-3); font-weight: 400; }

/* Leaderboard: emphasize the leading row */
.tbl-leaderboard td:first-child { color: var(--fg-1); font-weight: 500; white-space: nowrap; }

/* Leader stripe keys off the first group, not tr:first-child — every
   .lb-group is its own tbody, so tbody tr:first-child matches all of them.
   It has to cover both rows, or the tint stops halfway down the block. */
.tbl-leaderboard .lb-group:first-of-type .lb-name { font-weight: 600; }
.tbl-leaderboard .lb-group:first-of-type tr {
  background: rgba(242, 97, 37, 0.05);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* A model spans two rows, so the rule belongs under its bar — not between
   the name and the bar that belongs to it. */
.tbl-leaderboard tr[data-model] td { border-bottom: none; }

.lb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Metric switch beside the leaderboard title. Same outlined segment as the
   version control in the bar; the live segment fills with ink. */
.segtoggle {
  display: inline-flex;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: transparent;
}
.seg {
  font: 500 12px/1.35 var(--font-mono);
  color: var(--fg-3);
  padding: 6px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background var(--ease-standard) 150ms, color var(--ease-standard) 150ms;
}
.seg + .seg { border-left: 1px solid var(--border); }
.seg:hover { color: var(--accent); background: rgba(242, 97, 37, 0.06); }
.seg.is-on { color: var(--c-beige-100); background: var(--c-ink-900); }
.seg:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Independent-evaluation attribution under the leaderboard title */
.lb-attribution {
  margin: 4px 0 20px;
  font: 400 15px/1.5 var(--font-body);
  color: var(--fg-2);
}
.lb-attribution a { color: var(--fg-1); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.lb-attribution a:hover { color: var(--accent); border-color: var(--accent); }

.lb-name { white-space: nowrap; }
.lb-effort { color: var(--fg-3); font: 400 11.5px var(--font-mono); }
.lb-harness { color: var(--fg-3); font-weight: 400; }
.th-sub { color: var(--fg-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.lb-harness-cell { color: var(--fg-3); font: 400 11.5px var(--font-mono); }
.tbl-leaderboard td.lb-score { color: var(--fg-1); font-weight: 600; }
/* The judge panel's figure sits a step behind the ranked score: same
   numerals, lighter ink and weight, so the column reads as context. */
.lb-na { color: var(--fg-3); }
.tbl-leaderboard td.lb-judge { color: var(--fg-3); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl-leaderboard td.lb-cost { color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* Outruns `.tbl tbody tr:last-child td`, which zeroes the border on every
   group's bar row now that each model is its own tbody. */
.tbl-leaderboard .lb-group tr.lb-barrow td {
  padding-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-ink-200);
}
.tbl-leaderboard .lb-group:last-of-type tr.lb-barrow td { border-bottom: none; }

/* v0-to-v1 table: the leaderboard's model bars (same hues, bar = v1 score)
   without its leader stripe or phone-width column drop. */
.tbl-delta tr[data-model] td { border-bottom: none; }
.tbl-delta .lb-group tr.lb-barrow td { padding-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--c-ink-200); }
.tbl-delta .lb-group:last-of-type tr.lb-barrow td { border-bottom: none; }
.tbl-delta td.lb-delta { color: var(--fg-1); font-weight: 600; }
.lb-track {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--c-ink-200);
  overflow: hidden;
}
/* Width is animated from script, not by a CSS transition: re-inserting the
   tbody to sort it drops the transition's start value, so a row that keeps
   its rank snaps to the new width instead of growing into it. */
.lb-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--bar, var(--accent));
}

@media (prefers-reduced-motion: reduce) {
  .lb-fill { transition: none; }
}

/* v1 leaderboard: four score columns under two grader headings; a click on a
   score heading ranks by it. The ranked column is set in ink and weight, the
   rest a step behind, and the judge columns a step further, as before. */
.tbl-lb-both td.lb-rank,
.tbl-lb-both th.lb-rank-h {
  width: 3.2em;
  padding-right: 0;
  font: 500 12px/1.5 var(--font-mono);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tbl-lb-both th.lb-grp {
  text-align: center;
  padding-bottom: 6px;
  color: var(--fg-2);
}
.tbl-lb-both tr.lb-grouprow th { vertical-align: bottom; }
.tbl-lb-both th.lb-sortcol { padding-top: 6px; }
.lb-sortbtn {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--fg-3);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.lb-sortbtn:hover { color: var(--accent); }
.lb-sortbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.lb-sortbtn.is-on { color: var(--fg-1); }
.lb-sort { font-size: 8px; margin-left: 3px; vertical-align: 1px; color: transparent; }
.lb-sortbtn:hover .lb-sort { color: var(--fg-3); }
.lb-sortbtn.is-on .lb-sort { color: var(--accent); }
.tbl-lb-both td.lb-m { color: var(--fg-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.tbl-lb-both td.lb-jm { color: var(--fg-3); font-size: 13px; }
.tbl-lb-both td.lb-m.is-sorted { color: var(--fg-1); font-weight: 600; }
/* Below 1024px the eight columns no longer fit: the judge panel's pair (a
   check beside the score) gives way first, the harness at phone width. */
@media (max-width: 1023px) {
  .tbl-lb-both th.col-judge,
  .tbl-lb-both td.col-judge { display: none; }
}
@media (max-width: 480px) {
  .lb-sortbtn:not(.is-on) .lb-sort { display: none; }
  .lb-sort { margin-left: 2px; }
}
@media (max-width: 380px) {
  .tbl.tbl-lb-both th, .tbl.tbl-lb-both td { padding-left: 5px; padding-right: 5px; }
  .tbl.tbl-lb-both th { font-size: 10px; letter-spacing: 0.02em; }
}

/* Spec table: label/value pairs */
.tbl-spec td:first-child { color: var(--fg-3); width: 46%; }
.tbl-spec td.num { color: var(--fg-1); font-weight: 500; text-align: right; }

/* Narrow variant for short two-column tables */
.tablewrap-narrow { max-width: 620px; }

/* ---------- Problem / design-response cards ---------- */
.cardgrid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cardtile {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
}
.cardicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-1);
  margin-bottom: 16px;
}
.cardicon svg { width: 22px; height: 22px; }
.cardtile-title {
  margin: 0 0 8px;
  font: 600 15px/1.35 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.cardtile-body {
  margin: 0;
  font: 400 13.5px/1.55 var(--font-body);
  color: var(--fg-2);
}
.cardtile-body strong { color: var(--fg-1); font-weight: 600; }

/* ---------- Coverage band (languages / CWEs / OWASP) ---------- */
.covergrid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: 12px;
  margin: 20px 0 8px;
}
.coverpanel {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.cover-head {
  display: block;
  font: 500 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.cover-langs { display: grid; gap: 9px; }
.cover-lang {
  display: grid;
  grid-template-columns: 20px 56px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
}
.cover-logo { width: 17px; height: 17px; color: var(--fg-1); display: block; }
.cover-name { font: 400 12.5px/1 var(--font-body); color: var(--fg-1); }
.cover-bar {
  display: block;
  height: 6px;
  background: var(--c-ink-200);
  border-radius: 3px;
  overflow: hidden;
}
.cover-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--c-brand-orange-bright);
}
.cover-count { font: 500 12px/1 var(--font-mono); color: var(--fg-1); text-align: right; }
.cover-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.cover-big-unit { font: 400 13px var(--font-body); letter-spacing: 0; color: var(--fg-3); }
.cover-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cover-chip {
  font: 400 10.5px/1 var(--font-mono);
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 9px;
  white-space: nowrap;
}
.cover-note { margin: 12px 0 0; font: 400 11.5px/1.5 var(--font-body); color: var(--fg-3); }
.cover-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font: 400 11.5px/1.45 var(--font-body);
  color: var(--fg-1);
}
.cover-checks li { display: flex; gap: 7px; }
.cover-checks li::before { content: '\2713'; color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .covergrid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Chart cards ---------- */
.chartcard {
  margin: 28px 0 0;
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 20px 16px;
}

/* ---------- "Results are being updated" cover ----------
   Sits over a result visual while new eval runs are pending. The chart or
   table still renders underneath, so removing .is-stale and the cover div
   restores it with no other change. */
.is-stale { position: relative; }
/* the leaderboard wrap scrolls sideways; a cover inside a scroll container
   would slide off with the content, so freeze it while it is covered */
.tablewrap.is-stale { overflow: hidden; }
.stale-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border-radius: inherit;
  background: rgba(251, 250, 248, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stale-cover__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.stale-cover__note {
  margin: 0;
  max-width: 44ch;
  font: 400 14px/1.55 var(--font-body);
  color: var(--fg-2);
}
@media (max-width: 680px) {
  .stale-cover { padding: 18px; gap: 6px; }
  .stale-cover__title { font-size: 17px; }
  .stale-cover__note { font-size: 13.5px; }
}
.chartcard img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.chartcard figcaption {
  margin: 14px 4px 0;
  font: 400 13px/1.6 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-3);
}

.chart-title {
  display: block;
  margin: 0 4px 14px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.echart {
  width: 100%;
  height: 400px;
}
.echart-tall { height: 520px; }
.echart-dots { height: 430px; }
.echart-cost { height: 560px; }
.echart-heatmap { height: 470px; }
.echart-map { height: 620px; }

/* ---------- CWE tilemap ---------- */
.mapcard .chart-title { margin-bottom: 4px; }

.maphead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 4px 12px;
}
.maphead .maphint {
  margin: 0;
  font: 400 12.5px/1.6 var(--font-body);
  color: var(--fg-3);
}

/* colour-scale key: pale = models agree, deep = models diverge */
.maplegend {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.maplegend-cap {
  font: 400 11px/1 var(--font-mono);
  color: var(--fg-3);
}
.maplegend-ramp {
  display: flex;
  height: 8px;
  width: 132px;
  border-radius: 2px;
  overflow: hidden;
}
.maplegend-ramp span { flex: 1 1 auto; }

.mapstage { position: relative; }
.mapstage [data-view-panel][hidden] { display: none; }

/* side-by-side chart pair (dot plot + slope) */
.chartpair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.chartpair .chartcard { margin-top: 0; }
.chartpair .echart { height: 320px; }

@media (max-width: 920px) {
  .chartpair { grid-template-columns: 1fr; }
  .chartpair .chartcard + .chartcard { margin-top: 0; }
}

/* linked leaderboard rows (charted models) */
.tbl-leaderboard tbody tr[data-model] { transition: background 150ms var(--ease-standard); }
.tbl-leaderboard tbody tr.is-linked { cursor: pointer; }
.tbl-leaderboard tbody tr.is-linked:hover { background: rgba(242, 97, 37, 0.04); }

/* visually-hidden data tables for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Training corpus close: purpose cards + CTA ---------- */
.setgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 20px;
}
.setcard {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.setcard-purpose {
  display: block;
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.setcard-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.setcard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font: 400 13.5px/1.5 var(--font-body);
  color: var(--fg-2);
}
.setcard-list strong {
  font: 600 13px var(--font-mono);
  color: var(--fg-1);
}
.corpus-cta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.corpus-cta-line {
  margin: 0;
  font: 500 16px/1.5 var(--font-body);
  color: var(--fg-1);
}

@media (max-width: 700px) {
  .setgrid { grid-template-columns: 1fr; }
}

/* ---------- Sample task: specimen (task + verifier) and results ---------- */
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.spec-chip {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 9px;
}
.spec-chip--real { color: var(--accent); border-color: var(--accent); }

.specimen {
  margin-top: 22px;
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* Task 44 / Verifier 56; minmax(0,…) so an opened block scrolls in its
   column instead of collapsing the two panels to one. */
.specimen-row { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.specimen-panel { padding: 24px 26px; min-width: 0; }
.sp-verifier { border-left: 1px solid var(--border); }

.panel-label {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.panel-num { color: var(--accent); font-weight: 500; }
.panel-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.panel-p {
  margin: 0 0 12px;
  font: 400 14.5px/1.6 var(--font-body);
  color: var(--fg-2);
}
.panel-p:last-of-type { margin-bottom: 0; }
.panel-p code, .results code { font: 500 0.92em/1 var(--font-mono); color: var(--fg-1); }

/* ===== Editorial tables (contract / verifier / results) ===== */
.stbl-wrap {
  margin: 4px 0 14px;
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.stbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.stbl thead th {
  padding: 14px 20px;
  background: var(--c-beige-300);
  border-bottom: 1px solid var(--border);
  font: 500 11px/16px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.stbl tbody th, .stbl tbody td {
  padding: 16px 20px;
  font: 400 14.5px/21px var(--font-body);
  color: var(--fg-2);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.stbl tbody tr { height: 60px; }
.stbl tbody th[scope="row"] { font-weight: 600; color: var(--fg-1); white-space: nowrap; }
.stbl tbody tr + tr th, .stbl tbody tr + tr td { border-top: 1px solid var(--border); }

/* column intents */
.contract-table tbody th[scope="row"], .contract-table thead th:first-child { width: 38%; }
.verifier-table thead th:nth-child(1) { width: 30%; }
.verifier-table .col-cases { width: 1%; white-space: nowrap; text-align: center; }
.verifier-table thead th:nth-child(3) { width: 58%; }

/* results table: fixed widths, centered status + score, prominent score */
.results-table { table-layout: fixed; }
.results-table thead th:nth-child(1) { width: 32%; }
.results-table thead th:nth-child(2) { width: 17%; }
.results-table thead th:nth-child(3) { width: 19%; }
.results-table thead th:nth-child(4) { width: 19%; }
.results-table thead th:nth-child(n+2),
.results-table tbody td { text-align: center; }
.results-table thead th:first-child,
.results-table tbody th[scope="row"] { text-align: left; }
.results-table tbody th, .results-table tbody td { padding: 16px 18px; }
.results-table tbody th[scope="row"] { white-space: normal; }
.results-table .st { justify-content: center; }
.results-table .st-result { font-size: 15px; }

/* Pass / Fail status: icon + text + separate accessible colors */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1.35 var(--font-body); }
.sti { width: 14px; height: 14px; flex: none; }
.st-pass { color: var(--status-pass); }
.st-fail { color: var(--status-fail); }
.st-result { font-weight: 600; white-space: nowrap; }

/* ===== native disclosure rows (per computer-use reference) ===== */
.sample-disclosure { margin: 0; padding: 0; border: 0; }
.sample-disclosure + .sample-disclosure { margin-top: 6px; }
.sp-task .sample-disclosure,
.sp-verifier .panel-p + .sample-disclosure { margin-top: 16px; }
.sample-disclosure > summary {
  display: list-item;
  width: fit-content;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}
.sample-disclosure--accent > summary { color: var(--accent); }
.sample-disclosure > summary:hover { color: var(--accent); }
.sample-disclosure > summary:focus-visible {
  color: var(--accent);
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.sample-disclosure__content { margin-top: 10px; }

/* task instruction: wrapping prose */
.instruction {
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.instruction p { margin: 0 0 10px; font: 400 13.5px/1.6 var(--font-body); color: var(--fg-2); }
.instruction ul { margin: 0 0 10px; padding-left: 18px; }
.instruction li { margin: 0 0 8px; font: 400 13.5px/1.6 var(--font-body); color: var(--fg-2); }
.instruction-note { margin: 0; font: 400 12px/1.5 var(--font-body); color: var(--fg-3); font-style: italic; }

/* verifier logic: code, scrolls inside its own block only */
.excerpt {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: 400 12.5px/1.6 var(--font-mono);
  color: var(--fg-2);
  white-space: pre;
}
.ex-com { color: var(--fg-3); }

/* "View all eight inputs" grouped list */
.verifier-detail { margin: 0; }
.vd-grp {
  margin: 0 0 6px;
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.verifier-detail .vd-grp + .vd-list { margin-bottom: 16px; }
.vd-list { margin: 0; padding: 0; list-style: none; }
.vd-list li { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; }
.vd-list code { font: 400 12.5px/1.5 var(--font-mono); color: var(--fg-1); word-break: break-all; }
.vd-list span { margin-left: auto; text-align: right; font: 400 11.5px/1.4 var(--font-body); color: var(--fg-3); }

/* 03 results: the third movement, one warm surface */
.results {
  margin-top: 26px;
  background: var(--c-beige-300);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.results .panel-title { margin: 8px 0 0; }
.results-explain { max-width: 720px; margin: 16px 0 0; }
.results .stbl-wrap { margin: 24px 0 0; }
.results-closing {
  max-width: 720px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ===== stacked panels below 900px ===== */
@media (max-width: 900px) {
  .specimen-row { grid-template-columns: 1fr; }
  .sp-verifier { border-left: none; border-top: 1px solid var(--border); }
}

/* ===== table -> stacked layouts below 680px ===== */
@media (max-width: 680px) {
  .sample-disclosure > summary { min-height: 44px; padding: 12px 0; line-height: 20px; }
  .results { padding: 24px 22px; }

  /* long code wraps or scrolls inside its own block, never widens the page */
  .instruction, .instruction p, .instruction li { overflow-wrap: anywhere; }
  .excerpt { white-space: pre-wrap; overflow-wrap: anywhere; }

  .stbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stbl, .stbl tbody, .stbl tbody tr, .stbl tbody th, .stbl tbody td { display: block; width: 100%; }
  .stbl tbody tr { height: auto; }
  .stbl tbody tr + tr th, .stbl tbody tr + tr td { border-top: none; }

  /* contract: stacked definition (term over value) */
  .contract-table tbody tr { padding: 16px; }
  .contract-table tbody tr + tr { border-top: 1px solid var(--border); }
  .contract-table tbody th[scope="row"] { padding: 0 0 4px; white-space: normal; width: auto; }  /* the desktop 38% column width would squeeze the stacked label */
  .contract-table tbody td { padding: 0; }

  /* verifier: check block — group + case badge on line one, behavior beneath */
  .verifier-table tbody tr { padding: 16px; }
  .verifier-table tbody tr + tr { border-top: 1px solid var(--border); }
  .verifier-table tbody th[scope="row"] { display: inline; padding: 0; white-space: normal; }
  .verifier-table tbody td.col-cases {
    display: inline-block; width: auto; margin-left: 8px;
    padding: 2px 8px; background: var(--c-beige-300);
    border-radius: var(--r-pill);
    font: 500 11px/1.4 var(--font-mono); color: var(--fg-3);
  }
  .verifier-table tbody td:not(.col-cases) { padding: 6px 0 0; color: var(--fg-2); }

  /* results: stacked blocks on the SAME surface (no floating cards);
     score sits beside the patch name, paths listed beneath */
  .results .stbl-wrap { background: transparent; border: 0; border-radius: 0; }
  .results-table tbody tr {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
    padding: 16px 0;
  }
  .results-table tbody tr:first-child { padding-top: 0; }
  .results-table tbody tr + tr { border-top: 1px solid var(--border); }
  .results-table tbody th[scope="row"] {
    grid-column: 1; grid-row: 1; align-self: baseline;
    padding: 0; font-size: 15px; font-weight: 600; color: var(--fg-1); text-align: left; white-space: normal;
  }
  .results-table tbody td[data-label="Score"] {
    grid-column: 2; grid-row: 1; padding: 0; text-align: right;
  }
  .results-table tbody td[data-label="Score"] .st { justify-content: flex-end; }
  .results-table tbody td:not([data-label="Score"]) {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; padding: 8px 0 0; text-align: left;
  }
  .results-table tbody td:not([data-label="Score"]) .st { justify-content: flex-end; }
  .results-table tbody td:not([data-label="Score"])::before {
    content: attr(data-label);
    font: 500 10.5px/1.4 var(--font-mono);
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3);
  }
  .results-table tbody td[data-label="UTF-8 path"] { grid-row: 2; }
  .results-table tbody td[data-label="Numeric path"] { grid-row: 3; }
  .results-table tbody td[data-label="Valid output"] { grid-row: 4; }
}

/* ---------- In practice: staged failure cards ---------- */
/* Five tracks: four card columns plus a 6px spacer between the groups.
   With the 12px gap on either side of it, the diagnosis/remediation gutter
   comes to 30px against 12px inside a group. */
.stagegrid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 6px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.stage-group {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  align-self: end;
}
.stagegrid > .stage-group:first-child { grid-area: 1 / 1 / 2 / 3; }
.stage-group--rem { grid-area: 1 / 4 / 2 / 6; }
.stage-c1 { grid-area: 2 / 1; }
.stage-c2 { grid-area: 2 / 2; }
.stage-c3 { grid-area: 2 / 4; }
.stage-c4 { grid-area: 2 / 5; }
.stage-mark {
  display: block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.stage-mark--rem { color: var(--accent); }



@media (max-width: 920px) {
  .stagegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stagegrid > .stage-group:first-child,
  .stage-group--rem,
  .stage-c1, .stage-c2, .stage-c3, .stage-c4 { grid-area: auto; }
  /* Both labels span the row. The first label's selector has to be named
     here too: the desktop rule placing it (.stagegrid > .stage-group:first-child)
     outranks a bare .stage-group, which left it in one cell beside card 01. */
  .stagegrid > .stage-group,
  .stagegrid > .stage-group:first-child { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 600px) {
  .stagegrid { grid-template-columns: 1fr; }
}


/* ---------- BibTeX citation card (inside Acknowledgements) ---------- */
.bibtex-lead { margin: 28px 0 0; }
.bibtex-card {
  position: relative;
  margin-top: 14px;
  max-width: 720px;
  background: var(--c-beige-100);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bibtex-card pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
}
.bibtex-card code {
  font: 400 12.5px/1.7 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-1);
  white-space: pre;
}
.bibtex-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 500 12px/1 var(--font-body);
  color: var(--fg-2);
  background: var(--c-beige-200);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 150ms var(--ease-standard), border-color 150ms var(--ease-standard), background 150ms var(--ease-standard);
}
.bibtex-copy:hover { color: var(--accent); border-color: var(--accent); }
.bibtex-copy.is-copied { color: var(--accent); border-color: var(--accent); background: var(--c-brand-orange-tint); }
.bibtex-copy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-brand-orange-tint); }

/* ---------- FAQ ----------
   Native details/summary, no JS. This is the visible source for the
   FAQPage JSON-LD: the answer text here and in the schema must match. */
.faq {
  max-width: 820px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  display: list-item;
  list-style-position: outside;
  margin-left: 20px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-1);
  transition: color var(--ease-standard) 150ms;
}
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:focus-visible {
  color: var(--accent);
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.faq-item > summary::marker { color: var(--fg-3); }
.faq-answer { margin-left: 20px; padding: 0 0 20px; }
.faq-answer p {
  margin: 0;
  max-width: 70ch;
  font: 400 15.5px/1.65 var(--font-body);
  color: var(--fg-2);
}
.faq-answer a {
  color: var(--fg-1);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.faq-answer a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 680px) {
  .faq-item > summary { font-size: 16px; padding: 16px 0; }
}

/* ---------- Acknowledgements + contact CTA ---------- */
.section-ack { padding-bottom: 32px; }
.section-ack .note { margin-top: 4px; margin-bottom: 20px; font-style: italic; }

.cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cta-label {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  text-decoration: none;
  background: var(--c-beige-100);
  border: 1px solid var(--c-ink-900);
  border-radius: 8px;
  padding: 16px 26px;
  transition: background var(--ease-standard) 150ms, border-color var(--ease-standard) 150ms, color var(--ease-standard) 150ms;
}
.cta-btn:hover {
  background: var(--c-ink-900);
  border-color: var(--c-ink-900);
  color: var(--c-beige-100);
}

/* ---------- Footer ---------- */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  /* Continues the last section's band rather than introducing a tone of its
     own; --c-beige-100 is the card surface and read as an artifact here. */
  background: var(--c-beige-300);
}
.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer .mark { color: var(--fg-1); height: 22px; opacity: 0.85; }
.footer .mark svg { height: 100%; width: auto; }
.footer .copy {
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0;
  color: var(--fg-3);
}
.footer .copy a { color: var(--fg-3); text-decoration: none; border-bottom: 1px solid var(--border); }
.footer .copy a:hover { color: var(--accent); border-color: var(--accent); }
.footer-tagline { font: 600 14px/1 var(--font-mono); letter-spacing: 0.01em; color: var(--fg-1); }

/* ---------- Responsive ---------- */
/* Below 900 the four links plus the version tag no longer fit one row, and
   wrapping them turned the header into three stacked rows. Collapse to the
   logo and a menu button, and hang the links in a panel under the bar. */
@media (max-width: 899px) {
  .topbar { padding: 0; }
  .topbar .shell { padding: 0 20px; }
  .topbar-inner { min-height: 64px; }

  .navtoggle { display: inline-flex; }

  .toplinks {
    /* Out of flow, so opening the panel cannot shift the page or add a
       scrollbar. The bar is sticky, so this anchors to the bar itself. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px rgba(23, 22, 22, 0.22);
  }
  /* The panel is toggled with the hidden attribute rather than a class, so a
     closed menu leaves the tab order and the accessibility tree entirely. */
  .toplinks[hidden] { display: none; }

  .toplink {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 15px;
  }
  /* The link fills the panel width here, so the ring is a row rather than a
     word and wants the panel's own corner radius. */
  .toplink:focus-visible { border-radius: var(--r-md); }
  .toplinks .topcta { margin-top: 12px; padding: 12px 16px; font-size: 14px; }
  /* Version control under the full-width button: enough air to read as its
     own row rather than a tail on the button. */
  .toplinks .verswitch,
  .toplinks .verdrop { align-self: flex-start; margin-top: 16px; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .toplinks:not([hidden]) { animation: navpanel-in 140ms var(--ease-standard); }
}
/* Transform only, and no fill mode. A keyframe that faded from opacity 0 can
   strand the panel invisible wherever the animation clock never advances; a
   stalled slide is still a readable, usable menu. */
@keyframes navpanel-in {
  from { transform: translateY(-6px); }
}

/* Between the hero going two-column (920px) and the shell reaching its full
   width (1080px), the tile row is at its narrowest while the figures are still
   near full size. There is no slack to hand the frontier tile there, so keep
   four equal columns and let the longest name wrap. */
@media (min-width: 921px) and (max-width: 1079px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Tiles bottom out at 107px here, which is narrower than "47.8%" at the
     size the clamp still gives it, so buy the figures back their room. */
  .tile { padding: 16px 10px 14px; }
}

@media (max-width: 920px) {
  .hero-row {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .datacard { max-width: 480px; margin-top: 0; }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 12px 12px 11px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
  .footer .shell { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* spec-table values must wrap in view, not push off-canvas */
  .tbl-spec td.num { white-space: normal; }

  /* leaderboard: drop the identifier column and let model names wrap
     so the scores stay in the first viewport */
  /* Identifier is column 2 now that Harness folded into the name cell. */
  .tbl-leaderboard th:nth-child(2),
  .tbl-leaderboard tr[data-model] td:nth-child(2) { display: none; }
  /* v1's table: undo the generic column-2 drop (its second header row puts a
     score there) and drop the harness by class instead */
  .tbl-lb-both th:nth-child(2),
  .tbl-lb-both tr[data-model] td:nth-child(2) { display: table-cell; }
  .tbl-lb-both th.col-harness,
  .tbl-lb-both td.col-harness { display: none; }
  .tbl-leaderboard td:first-child,
  .tbl-leaderboard .lb-name { white-space: normal; }

  /* noscript fallback PNGs pan at a legible size instead of shrinking */
  .chartcard { overflow-x: auto; }
  .chartcard img { min-width: 560px; }

  /* interactive charts scale responsively */
  .echart { height: 320px; min-width: 0; }
  .echart-tall { height: 360px; }
  .echart-heatmap { height: 420px; }
  .echart-cost { height: 500px; }   /* the legend sits under the axis here */
  .echart-map { height: 560px; }
  .maphead { gap: 10px; }

  .cardgrid { grid-template-columns: 1fr; }
}

/* eval vs training corpus comparison */
.tbl-split { margin-top: 6px; }
.tbl-split thead th:first-child { width: 46%; }
.tbl-split th.num, .tbl-split td.num { width: 27%; }
.tbl-split tbody td:first-child { color: var(--fg-2); }

/* jump links to the eval-vs-training comparison */
.datalink, .inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease-standard);
}
.datalink:hover, .inline-link:hover { border-bottom-color: var(--accent); }
.inline-link { white-space: nowrap; }
#corpus { scroll-margin-top: 24px; }

/* Phone width: with the judge column beside the ranked score the leaderboard
   row is five cells wide, so the ± intervals and the header sub-labels give
   way and the numeric headers may wrap. The intervals stay in the notes
   below the table and in the wider view. th.num outranks .tbl .num, which
   is what keeps those headers on one line everywhere else. */
@media (max-width: 480px) {
  .tbl-leaderboard .lb-ci,
  .tbl-leaderboard .th-sub { display: none; }
  .tbl-leaderboard th, .tbl-leaderboard td { padding-left: 10px; padding-right: 10px; }
  .tbl-leaderboard th.num { white-space: normal; }
  /* v1 at phone width: rank, model, both programmatic scores and cost fit;
     the judge panel (a check beside the score) gives way. */
  .tbl-lb-both th.col-judge,
  .tbl-lb-both td.col-judge { display: none; }
  .tbl-lb-both td.lb-rank, .tbl-lb-both th.lb-rank-h { width: 2.4em; }
  .tbl-lb-both th, .tbl-lb-both td { padding-left: 7px; padding-right: 7px; }
  .tbl-delta th, .tbl-delta td { padding-left: 10px; padding-right: 10px; }
  .tbl-delta th.num, .tbl-delta .lb-name { white-space: normal; }
}

/* v2: three-up stat cards under the leaderboard. */
.cardgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .cardgrid-3 { grid-template-columns: 1fr; } }

/* v2 leaderboard on narrow phones: rank, model, pass@1, pass@4 and cost to one
   decimal need a little less padding and type than v1's whole-number rows to
   fit inside the card without a sideways scroll. */
@media (max-width: 420px) {
  html[data-page-ver="v2"] .tbl-lb-both th,
  html[data-page-ver="v2"] .tbl-lb-both td { padding-left: 4px; padding-right: 4px; }
  html[data-page-ver="v2"] .tbl-lb-both td.lb-rank,
  html[data-page-ver="v2"] .tbl-lb-both th.lb-rank-h { width: 2em; }
  html[data-page-ver="v2"] .tbl-lb-both td.lb-m,
  html[data-page-ver="v2"] .tbl-lb-both td.lb-cost { font-size: 13px; }
}
@media (max-width: 340px) {
  html[data-page-ver="v2"] .tbl-lb-both td.lb-name { font-size: 13px; white-space: normal; }
  html[data-page-ver="v2"] .tbl-lb-both td.lb-rank,
  html[data-page-ver="v2"] .tbl-lb-both th.lb-rank-h { width: 1.7em; }
  html[data-page-ver="v2"] .tbl-lb-both th,
  html[data-page-ver="v2"] .tbl-lb-both td { padding-left: 3px; padding-right: 3px; }
}

/* Sample results table just above its stacked-card breakpoint (681-860px, a
   common side-panel width): the 18px cell padding left the Score column too
   narrow, clipping "Pass, 1" and the longer headers. */
@media (min-width: 681px) and (max-width: 860px) {
  .results-table thead th { padding-left: 8px; padding-right: 8px; letter-spacing: 0.04em; }
  .results-table tbody th, .results-table tbody td { padding: 14px 8px; }
  .results-table .st-result { font-size: 14px; }
}

/* Task and verifier panels side by side but still narrow (901-1100px): the
   unwrapped headers and row labels pushed the verifier table past its card,
   which clips (overflow: hidden). Let them wrap and trim the padding. */
@media (min-width: 901px) and (max-width: 1100px) {
  .stbl thead th { white-space: normal; padding-left: 12px; padding-right: 12px; letter-spacing: 0.05em; }
  .stbl tbody th, .stbl tbody td { padding-left: 12px; padding-right: 12px; }
  .stbl tbody th[scope="row"] { white-space: normal; }
}

/* AlignmentBench additions on top of the CWE-bench stylesheet */
:root {
  --sev-0: #ECEAE3; --sev-1: #F7C9A3; --sev-2: #EE8449; --sev-3: #A8230F;
  --ty-blocked: #3D5A80; --ty-uncertain: #F26125; --ty-constrained: #7A6A3A;
  --clean: #1A6E40; --mis: #B02A1A;
}
.ab-sub { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 6px; }
.ab-draft { font: 500 11px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color: var(--accent); border:1px solid var(--accent); border-radius: 999px; padding: 4px 8px; }

#hero .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#hero .hero-fig { display: flex; flex-direction: column; gap: 6px; }
#hero .hero-unit { font: 400 12px/1.3 var(--font-body); color: var(--fg-3); }
#hero .hero-range { white-space: nowrap; font-size: clamp(22px, 2.2vw, 27px); line-height: 36px; }
#hero .datarow dd { text-align: right; }
#hero .hero-nw { white-space: nowrap; }
@media (max-width: 760px) {
  #hero .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#leaderboard .lb2-seg { flex-wrap: wrap; }
#leaderboard .lb2-scope { display: block; color: var(--fg-3); font: 400 13px/1.5 var(--font-mono); margin-top: 4px; }
#leaderboard .lb2-scope:empty { display: none; }
#leaderboard .lb2-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex: none; }
#leaderboard .lb2-lab { display: block; color: var(--fg-3); font: 400 11.5px/1.4 var(--font-mono); margin-left: 17px; white-space: nowrap; }
#leaderboard .lb2-tbl th, #leaderboard .lb2-tbl td { padding-left: 12px; padding-right: 12px; }
#leaderboard .lb2-tbl th.num { white-space: normal; vertical-align: bottom; }
#leaderboard .lb2-tbl th.num .lb-sortbtn { white-space: normal; text-align: right; }
#leaderboard .lb2-tbl td.lb-name { width: 34%; white-space: normal; }
#leaderboard .lb2-nm { display: inline-block; white-space: nowrap; }
#leaderboard td.lb2-risk { font: 600 18px/1.2 var(--font-display); color: var(--fg-1); letter-spacing: -0.01em; }
#leaderboard td.lb2-ci { color: var(--fg-3); font: 400 12px/1.5 var(--font-mono); }
#leaderboard td.lb-m { padding-top: 15px; }
#leaderboard td.lb2-risk { padding-top: 11px; }
#leaderboard td.lb2-namecell { padding-top: 14px; }
#leaderboard .lb2-of { color: var(--fg-3); font-weight: 400; font-size: 12px; }
#leaderboard .lb2-track { position: relative; overflow: visible; height: 8px; background: var(--c-ink-200); }
#leaderboard .lb2-track .lb-fill { transition: width 400ms var(--ease-standard); box-shadow: inset 0 0 0 1px rgba(23,22,22,.08); }
#leaderboard .lb2-wh { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--fg-1); opacity: .7; pointer-events: none; }
#leaderboard .lb2-wh::before, #leaderboard .lb2-wh::after { content: ""; position: absolute; top: -5px; width: 2px; height: 12px; background: var(--fg-1); }
#leaderboard .lb2-wh::before { left: -1px; }
#leaderboard .lb2-wh::after { right: -1px; }
#leaderboard .lb2-wh[hidden] { display: none; }
#leaderboard .lb-sortbtn[disabled] { cursor: default; opacity: .45; }
#leaderboard .lb-sortbtn[disabled]:hover { color: var(--fg-3); }
#leaderboard .lb2-tbl.lb2-nolead .lb-group:first-of-type tr { background: transparent; box-shadow: none; }
#leaderboard .lb2-tbl.lb2-nolead .lb-group:first-of-type .lb-name { font-weight: 500; }
#leaderboard .lb2-sub { margin-top: 48px; }
#lb2-ci { height: 470px; }
@media (max-width: 1023px) {
  #leaderboard .lb2-col-ci { display: none; }
}
@media (max-width: 760px) {
  #leaderboard .lb2-col-first, #leaderboard .lb2-col-ser { display: none; }
}
@media (max-width: 600px) {
  #leaderboard .lb2-seg { width: 100%; }
  #leaderboard .lb2-seg .seg { flex: 1 1 auto; padding: 6px 8px; }
  #leaderboard .lb2-tbl th, #leaderboard .lb2-tbl td { padding-left: 7px; padding-right: 7px; }
  #leaderboard .lb2-tbl th.num { white-space: normal; }
  #leaderboard td.lb2-risk { font-size: 16px; }
  #leaderboard .lb2-nm { display: inline; white-space: normal; }
  #leaderboard .lb2-dot { margin-right: 5px; }
  #leaderboard .lb2-lab { margin-left: 0; }
  #leaderboard .lb2-of { font-size: 11px; }
  #leaderboard .lb2-tbl .lb-group tr.lb-barrow td { padding-left: 12px; padding-right: 12px; }
  #lb2-ci { height: 430px; }
}

#rq1-severity .rq1-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#rq1-severity .rq1-heat { height: 618px; min-width: 880px; }
#rq1-severity .rq1-hint { display: none; margin: 8px 4px 0; font: 400 11px/1.4 var(--font-mono); color: var(--fg-3); }
#rq1-severity .rq1-heatlegend, #rq1-severity .rq1-mixlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 4px 10px; font: 400 12px/1.4 var(--font-body); color: var(--fg-2); }
#rq1-severity .rq1-heatlegend span.rq1-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; border: 1px solid rgba(23,22,22,.08); }
#rq1-severity .rq1-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
#rq1-severity .rq1-cardhead .chart-title { margin-bottom: 0; }
#rq1-severity .rq1-mix { height: 470px; }
#rq1-runs .rq1-pair { height: 470px; }
@media (max-width: 600px) {
  #rq1-severity .rq1-hint { display: block; }
  #rq1-severity .rq1-mix { height: 440px; }
  #rq1-runs .rq1-pair { height: 440px; }
}

#categories .rq2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 26px 0 8px; }
#categories .rq2-tile { background: var(--c-beige-100); border: 1px solid var(--border); border-left: 3px solid var(--rq2-ty); border-radius: var(--r-md); padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
#categories .rq2-tile-label { font: 500 11px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
#categories .rq2-tile-label b { color: var(--rq2-ty); font-weight: 600; }
#categories .rq2-tile-value { font: 600 clamp(26px, 3.2vw, 34px)/1 var(--font-display); letter-spacing: -.02em; color: var(--fg-1); }
#categories .rq2-tile-text { display: flex; flex-direction: column; gap: 6px; }
#categories .rq2-tile-unit { font: 400 13px/1.35 var(--font-body); color: var(--fg-2); }
#categories .rq2-list { max-width: 720px; margin: 22px 0 0; padding-left: 22px; }
#categories .rq2-list li { font: 400 16px/1.6 var(--font-body); color: var(--fg-2); margin: 0 0 12px; padding-left: 4px; }
#categories .rq2-list li::marker { font: 500 13px var(--font-mono); color: var(--fg-3); }
#categories .rq2-list strong { color: var(--fg-1); font-weight: 600; }
#categories .rq2-chart-a { height: 600px; }
#categories .rq2-after, #rq2-findings .rq2-after { margin-top: 24px; }

#rq2-where .rq2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#rq2-where .rq2-head .section-title { margin-bottom: 18px; }
#rq2-where .rq2-head .segtoggle { margin-top: 6px; }
#rq2-where .rq2-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 4px 6px; }
#rq2-where .rq2-cardhead .chart-title { margin: 0; }
#rq2-where .rq2-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#rq2-where .rq2-heat { min-width: 720px; }
#rq2-where .rq2-heat-model { height: 560px; }
#rq2-where .rq2-heat-task { height: 610px; }
#rq2-where .rq2-heat[hidden] { display: none; }

#rq2-findings .rq2-sevkey { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 12px; font: 400 12px/1.4 var(--font-mono); color: var(--fg-3); }
#rq2-findings .rq2-sevkey span { display: inline-flex; align-items: center; gap: 6px; }
#rq2-findings .rq2-sevkey i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(23,22,22,.08); }
#rq2-findings .chartpair .echart.rq2-chart-d, #rq2-findings .chartpair .echart.rq2-chart-e { height: 470px; }

@media (max-width: 680px) {
  #categories .rq2-tiles { grid-template-columns: 1fr; gap: 8px; }
  #categories .rq2-tile { flex-direction: row; align-items: center; }
  #categories .rq2-tile-value { font-size: 26px; flex: none; order: 2; }
  #categories .rq2-chart-a { height: 640px; }
  #rq2-where .rq2-head .segtoggle { margin-top: 0; margin-bottom: 14px; }
}

@media (max-width: 680px) {
}

#method .method-math, #method .method-v { font-family: 'Cambria Math', 'STIX Two Math', 'Latin Modern Math', 'Times New Roman', serif; font-weight: 400; letter-spacing: 0; }
#method .method-math i, #method i.method-v { font-style: italic; }
#method .method-math sub, #method .method-math sup { font-size: .72em; line-height: 0; }

/* ---- pipeline ---- */
#method .method-flowcard { padding-bottom: 18px; }
#method .method-flow { display: grid; grid-template-columns: 196px 28px minmax(0, 1fr); align-items: stretch; gap: 0; margin: 0 4px; }
#method .method-trunk { display: grid; grid-template-rows: 1fr auto 1fr; }
#method .method-trunktop { display: flex; flex-direction: column; justify-content: flex-end; }
#method .method-forklabel { display: none; }
#method .method-trunk .method-arrow { height: 26px; width: 100%; }
#method .method-trunk .method-arrow::before { left: 50%; top: 2px; bottom: 6px; width: 1.5px; height: auto; right: auto; }
#method .method-trunk .method-arrow::after { left: calc(50% - 4px); right: auto; top: auto; margin-top: 0; bottom: 1px; border-width: 6px 4.5px 0 4.5px; border-color: var(--fg-3) transparent transparent transparent; }
#method .method-stage { position: relative; background: var(--c-beige-100); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 400 12.5px/1.42 var(--font-body); color: var(--fg-2); }
#method .method-stage b { font: 600 14px/1.3 var(--font-body); color: var(--fg-1); }
#method .method-stage b .method-math { font-size: 15.5px; }
#method .method-k { font: 500 10px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
#method .method-k .method-v { text-transform: none; font-size: 12px; }
#method .method-out-r { border-color: var(--clean); box-shadow: inset 3px 0 0 var(--clean); }
#method .method-out-m { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
#method .method-arrow { position: relative; flex: none; width: 22px; align-self: center; height: 12px; }
#method .method-arrow::before { content: ''; position: absolute; left: 3px; right: 7px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--fg-3); }
#method .method-arrow::after { content: ''; position: absolute; right: 1px; top: 50%; margin-top: -4.5px; border-style: solid; border-width: 4.5px 0 4.5px 6px; border-color: transparent transparent transparent var(--fg-3); }
#method .method-fork { position: relative; }
#method .method-fork svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#method .method-lanes { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#method .method-lane { border: 1px dashed var(--border); border-radius: 12px; padding: 10px 10px 10px; min-width: 0; }
#method .method-lane-r { border-color: rgba(26,110,64,.35); }
#method .method-lane-m { border-color: rgba(242,97,37,.45); }
#method .method-lanehead { display: block; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; margin: 0 2px 8px; }
#method .method-lane-r .method-lanehead { color: var(--clean); }
#method .method-lane-m .method-lanehead { color: var(--accent); }
#method .method-lanerow { display: flex; align-items: stretch; min-width: 0; }
#method .method-lanerow .method-stage { flex: 1 1 0; }
#method .method-lane-r .method-lanerow .method-stage { flex: 0 1 220px; }
#method .method-lane-r .method-lanerow .method-out-r { flex: 0 1 300px; }
#method .method-sees { display: block; margin: 9px 2px 0; font: 400 12px/1.5 var(--font-mono); color: var(--fg-3); }
#method .method-wchips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
#method .method-wchips span { font: 500 10.5px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px; }

/* ---- formulas + datacard ---- */
#method .method-pair { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; margin-top: 14px; }
#method .method-pair .chartcard { margin-top: 0; }
#method .method-pair .datacard { margin-top: 0; }
#method .method-eqs { margin: 0 4px; }
#method .method-eqrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; }
#method .method-eqrow + .method-eqrow { border-top: 1px solid var(--c-ink-200); }
#method .method-eqrow dt { font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); }
#method .method-eqrow dd { margin: 0; font-size: 19px; line-height: 1.5; color: var(--fg-1); overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding: 2px 0; }
#method .method-op { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; margin: 0 2px; }
#method .method-op .method-opsym { font-size: 1.35em; line-height: 1.05; }
#method .method-op .method-opsym.method-big { font-size: 1.6em; }
#method .method-op small { font-size: .55em; line-height: 1.1; font-style: normal; }
#method .method-op small i { font-style: italic; }
#method .method-op .method-word { font-style: normal; font-size: 1em; }
#method .method-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .8em; line-height: 1.15; margin: 0 2px; }
#method .method-frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 3px; }
#method .method-up { font-style: normal; }
#method .method-dlnote { font: 400 12px/1.45 var(--font-body); color: var(--fg-3); white-space: normal; display: block; margin-top: 2px; }
#method .method-modlist { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
#method .method-modlist span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#method .method-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
#method .method-datacard .datarow dt { display: inline-flex; align-items: center; gap: 6px; }
#method .method-datacard .datarow dd { max-width: 70%; }

/* ---- type cards ---- */
#method .method-types { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
#method .method-tycard { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; background: var(--c-white); }
#method .method-tycard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ty); }
#method .method-tyhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#method .method-tyhead .cardtile-title { margin: 0; font-size: 17px; color: var(--ty); }
#method .method-tyn { font: 500 12px/1 var(--font-mono); color: var(--fg-3); white-space: nowrap; }
#method .method-tyn b { font: 600 22px/1 var(--font-display); color: var(--fg-1); margin-right: 4px; }
#method .method-tytasks { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--c-ink-200); display: flex; flex-wrap: wrap; gap: 5px; }
#method .method-tytasks li { font: 500 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 999px; background: var(--c-beige-100); border: 1px solid var(--border); color: var(--fg-2); }
#method .method-tystat { font: 400 12px/1.5 var(--font-mono); color: var(--fg-3); margin-top: auto; }
#method .method-tystat b { color: var(--fg-1); font-weight: 500; }

/* ---- category + severity tables ---- */
#method .method-catwrap, #method .method-sevwrap { background: var(--c-white); }
#method .method-cat td, #method .method-sev td { font-size: 13.5px; }
#method .method-cat td:nth-child(3), #method .method-cat td:nth-child(4) { min-width: 200px; }
#method .method-cat .method-code { font: 500 13px/1.5 var(--font-mono); color: var(--fg-1); white-space: nowrap; }
#method .method-cat .method-name { color: var(--fg-1); font-weight: 600; min-width: 130px; }
#method .method-fam th { background: var(--c-beige-100); color: var(--fg-1); font: 600 12px/1.3 var(--font-mono); letter-spacing: .05em; padding: 11px 20px 9px; border-top: 1px solid var(--border); }
#method .method-fam th { white-space: normal; }
#method .method-cat tbody:first-of-type .method-fam th { border-top: none; }
#method .method-fam th span { color: var(--fg-3); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 8px; }
#method .method-cat tbody tr:last-child td { border-bottom: none; }
#method .method-seenh { width: 150px; }
#method .method-seen { width: 150px; min-width: 130px; }
#method .method-bar { display: flex; align-items: center; gap: 8px; }
#method .method-bar .method-track { flex: 1; height: 8px; background: var(--c-ink-200); border-radius: 2px; overflow: hidden; min-width: 50px; }
#method .method-bar .method-fill { display: block; height: 100%; border-radius: 2px; }
#method .method-bar .method-val { font: 500 12px/1 var(--font-mono); color: var(--fg-1); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
#method .method-sub { font: 400 11px/1.3 var(--font-mono); color: var(--fg-3); display: block; margin-top: 4px; }
#method .method-sev .method-lvl { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-1); font-weight: 600; white-space: nowrap; }
#method .method-sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(23,22,22,.1); display: inline-block; flex: none; }
#method .method-sev td.num { font: 500 13px/1.5 var(--font-mono); color: var(--fg-1); }

@media (max-width: 1000px) {
  #method .method-flow { grid-template-columns: 1fr; }
  #method .method-trunk { display: flex; flex-direction: row; align-items: stretch; }
  #method .method-trunktop { display: contents; }
  #method .method-trunk .method-stage { flex: 1 1 0; }
  #method .method-trunk .method-arrow { height: 12px; width: 22px; align-self: center; }
  #method .method-trunk .method-arrow::before { left: 3px; right: 7px; top: 50%; bottom: auto; width: auto; height: 1.5px; }
  #method .method-trunk .method-arrow::after { left: auto; right: 1px; top: 50%; bottom: auto; margin-top: -4.5px; border-width: 4.5px 0 4.5px 6px; border-color: transparent transparent transparent var(--fg-3); }
  #method .method-fork { display: none; }
  #method .method-forklabel { display: flex; flex-direction: column; align-items: center; margin: 4px 0 8px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); text-align: center; }
  #method .method-forklabel::before { content: ''; width: 1.5px; height: 14px; background: var(--fg-3); margin-bottom: 6px; }
  #method .method-pair { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #method .method-types { grid-template-columns: 1fr; }
  #method .method-trunk, #method .method-lanerow { flex-direction: column; }
  #method .method-lanerow .method-stage, #method .method-lane-r .method-lanerow .method-stage, #method .method-lane-r .method-lanerow .method-out-r { flex: none; }
  #method .method-arrow, #method .method-trunk .method-arrow { width: 100%; height: 22px; }
  #method .method-arrow::before, #method .method-trunk .method-arrow::before { left: 50%; right: auto; top: 3px; bottom: 7px; width: 1.5px; height: auto; margin-top: 0; }
  #method .method-arrow::after, #method .method-trunk .method-arrow::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 1px; margin-top: 0; border-width: 6px 4.5px 0 4.5px; border-color: var(--fg-3) transparent transparent transparent; }
  #method .method-eqrow { grid-template-columns: 1fr; gap: 4px; }
  /* tables become stacked cards */
  #method .method-cat thead, #method .method-sev thead { display: none; }
  #method .method-cat, #method .method-cat tbody, #method .method-cat tr, #method .method-cat td, #method .method-cat th,
  #method .method-sev, #method .method-sev tbody, #method .method-sev tr, #method .method-sev td { display: block; width: auto; min-width: 0; }
  #method .method-cat tr:not(.method-fam), #method .method-sev tr { padding: 12px 16px; border-bottom: 1px solid var(--c-ink-200); }
  #method .method-cat td, #method .method-sev td { padding: 2px 0; border: none; }
  #method .method-cat td.method-code, #method .method-cat td.method-name { display: inline-block; margin-right: 8px; }
  #method .method-cat td[data-l]::before, #method .method-sev td[data-l]::before { content: attr(data-l); display: block; font: 500 10px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); margin: 8px 0 2px; }
  #method .method-sev td.num { text-align: left; }
  #method .method-seen { width: auto; }
  #method .method-fam th { padding: 10px 16px 8px; }
  #method .method-fam th span { display: block; margin: 4px 0 0; }
}

#faq .closing-types { margin: 4px 0 0; padding: 0; list-style: none; }
#faq .closing-types li { position: relative; padding-left: 18px; margin: 0 0 8px; color: var(--fg-2); line-height: 1.6; }
#faq .closing-dot { position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 2px; }
#blog-link .closing-btnrow { margin-top: 20px; }
#blog-link .closing-btnrow .btn-primary { height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
#blog-link .closing-btnrow .btn-text { white-space: normal; text-align: left; line-height: 1.35; }
#blog-link .bibtex-card pre { overflow-x: auto; }
#contact.section { padding-top: 48px; }
#contact .cta { margin-top: 0; }
#blog-link .bibtex-card pre { padding-top: 8px; }
@media (max-width: 560px) { #blog-link .bibtex-card { padding-top: 44px; } }
#contact .closing-mail { user-select: text; -webkit-user-select: text; }
#contact .cta { flex-wrap: wrap; }

/* site trimmed 2026-11-16: grids that lost one of their two cards go single-column */
#method .method-pair { grid-template-columns: minmax(0, 1fr); }

/* [hidden] must win over component display rules (the artifact host added this reset). */
[hidden] { display: none !important; }

/* Lowest/highest-risk models: a full-width tile under the three figure tiles */
#hero-tiles.tiles, .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-rank { grid-column: 1 / -1; justify-content: flex-start; gap: 12px; }
.tile-rank .tile-label { min-height: 0; }
.hero-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font: 400 13px/1.45 var(--font-body); color: var(--fg-2); }
.hero-rank .rank-col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hero-rank .rank-head { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px; }
.hero-rank .rank-best { color: var(--status-pass); }
.hero-rank .rank-worst { color: var(--status-fail); }
.hero-rank .rank-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-rank .rank-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hero-rank .rank-name { min-width: 0; overflow-wrap: anywhere; color: var(--fg-1); font-weight: 500; }
.hero-rank .rank-val { margin-left: auto; padding-left: 8px; color: var(--fg-3); font: 400 12px/1.45 var(--font-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hero-rank { grid-template-columns: 1fr; } }
