/* Page shell and shared components, University of Basel corporate design.
   Colours are tokens; [data-theme="dark"] redefines them. The HumBen widgets still read
   --text-color, --link-color, --button-color and --container-bg-color. */

/* Fonts are served from static/fonts/ (Fontsource builds, SIL Open Font Licence), not from a font CDN. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #FFFFFF;
  --panel: #F2F5F5;
  --ink: #2D373C;
  --ink-2: #3E4D51;
  --muted: #5B6469;
  --rule: #BEC3C8;
  --control: #8C9196;
  --accent: #006E6E;
  --accent-ink: #FFFFFF;
  --accent-line: #1EA5A5;
  --header: #A5D7D2;
  --hero: #2D373C;
  --hero-ink: #FFFFFF;
  --hero-muted: #C3CBCF;
  --hero-accent: #6FD3CE;
  --note-bg: #E2F0EE;
  --note-ink: #00565A;
  --current: rgba(45, 55, 60, 0.12);
  --shadow: 0 1px 3px rgba(45, 55, 60, 0.12);
  --logo-filter: none;
  /* Score scale, 0–100: background / text */
  --s0: #EEF6F5; --s0-ink: #2D373C;
  --s1: #C3E4E0; --s1-ink: #2D373C;
  --s2: #8FCBC4; --s2-ink: #12191C;
  --s3: #5DB5AD; --s3-ink: #12191C;
  --s4: #2E9C95; --s4-ink: #12191C;
  --s5: #006E6E; --s5-ink: #FFFFFF;
  --s6: #004F4F; --s6-ink: #FFFFFF;
  --dot-ring: transparent;
  /* Read by the HumBen widgets */
  --background-color: var(--ground);
  --container-bg-color: var(--ground);
  --text-color: var(--ink);
  --link-color: var(--accent);
  --button-color: var(--accent);
  color-scheme: light;
}

[data-theme="dark"] {
  --ground: #161D20;
  --panel: #1F282C;
  --ink: #E6EDEF;
  --ink-2: #C3CBCF;
  --muted: #A9B4B8;
  --rule: #3A474D;
  --control: #5B6A70;
  --accent: #6FD3CE;
  --accent-ink: #12191C;
  --header: #0F3B3B;
  --hero: #0E1416;
  --note-bg: #15363A;
  --note-ink: #BFEDEA;
  --current: rgba(230, 237, 239, 0.14);
  --shadow: none;
  --logo-filter: invert(1) hue-rotate(180deg);
  --s0: #1A3533; --s0-ink: #E6EDEF;
  --s1: #21504B; --s1-ink: #E6EDEF;
  --s2: #286C66; --s2-ink: #FFFFFF;
  --s3: #379A92; --s3-ink: #12191C;
  --s4: #45AFA7; --s4-ink: #12191C;
  --s5: #6FD3CE; --s5-ink: #12191C;
  --s6: #9BE8E1; --s6-ink: #12191C;
  --dot-ring: #5B6A70;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 5px; font-weight: 600; }
.skip:focus { top: 12px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 Inter, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
h1, h2, h3, p { text-wrap: pretty; }
.serif { font-family: "PT Serif", Georgia, serif; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--header); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; display: block; filter: var(--logo-filter); }
.brand .divider { width: 1px; height: 40px; background: var(--ink); }
.brand .names { display: flex; flex-direction: column; line-height: 1.2; }
.brand .unit { font-size: 13px; color: var(--ink-2); }
.brand .name { font-size: 18px; font-weight: 700; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav a, .main-nav summary { white-space: nowrap; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 5px; cursor: pointer; }
.main-nav [aria-current="page"], .main-nav .is-current > summary { font-weight: 600; background: var(--current); }
.main-nav details { position: relative; }
.main-nav summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav details ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 200px;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.main-nav details ul a { display: block; }
.theme-toggle { width: 44px; height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 6px; gap: 4px; }
  .brand { gap: 12px; }
  .brand img { height: 34px; }
  .brand .divider { height: 30px; }
  .brand .unit { display: none; }
  .brand .name { font-size: 16px; }
  /* One menu row from 360px: the logo is the way home, and the colour switch sits beside it.
     Narrower screens wrap; More stays at the right so its menu opens on screen. */
  .site-header .wrap { position: relative; }
  .brand { max-width: calc(100% - 48px); }
  .main-nav { width: 100%; flex-wrap: wrap; gap: 0; margin: 0 -5px; width: calc(100% + 10px); }
  .main-nav .nav-home { display: none; }
  .main-nav details { margin-left: auto; }
  .main-nav a, .main-nav summary { padding: 8px 5px; font-size: 14px; }
  .theme-toggle { width: 38px; height: 38px; position: absolute; top: 8px; right: 10px; }
}

/* Page band */
.band { background: var(--panel); border-bottom: 1px solid var(--rule); }
.band .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.band h1 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 44px; line-height: 1.1; }
.band-view .wrap { padding-top: 32px; }
.band-view h1 { font-size: clamp(28px, 6vw, 36px); }
.band-view .kicker { margin: 0 0 -8px; }
.band .intro { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 46em; }
.band-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dt .aside { display: block; font-size: 12px; }
.facts dd { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 30px; font-weight: 700; }
.views { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: -40px; padding-top: 10px; }
.views a { padding: 12px 0; font-size: 15.5px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.views a[aria-current="page"] { font-weight: 600; color: var(--ink); border-bottom-color: var(--accent-line); }

/* Phones: after the rules above, so that it overrides them. */
@media (max-width: 640px) {
  .band .wrap { padding-top: 28px; padding-bottom: 28px; }
  .band h1 { font-size: 34px; }
  .band .intro { font-size: 16px; }
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .facts dd { font-size: 22px; }
  .facts dt .aside { display: none; }
  /* The leaderboard views in one row that scrolls sideways, instead of two. */
  .views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; margin-bottom: -28px; }
  .views::-webkit-scrollbar { display: none; }
  .views a { white-space: nowrap; }
  .filters-box > summary.btn { display: inline-flex; margin-bottom: 4px; }
  .filters-box[open] > summary { margin-bottom: 16px; }
  .rec-empty .rec-empty-start { display: none; }
}

.page { padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.note { padding: 12px 16px; background: var(--note-bg); color: var(--note-ink); font-size: 14px; line-height: 1.5; }
.small { font-size: 13.5px; color: var(--muted); }
.downloads { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.downloads span { font-weight: 600; }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 5px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn[hidden] { display: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.1); }
.btn-secondary { background: var(--ground); color: var(--ink); border: 1px solid var(--control); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 641px) { .filters-box > summary { display: none; } }
.filters-box > summary { list-style: none; }
.filters-box > summary::-webkit-details-marker { display: none; }
.back-to-list { display: none; align-self: flex-start; }
@media (max-width: 999px) { .back-to-list { display: inline; } }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.head-actions .small { color: var(--muted); max-width: 22em; }
.head-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--control);
  background: var(--ground); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.filters { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.filter-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.filter-row input[type="search"], .filter-row select { font: inherit; font-size: 14px; min-height: 40px; padding: 0 10px; border: 1px solid var(--control);
  border-radius: 5px; background: var(--ground); color: var(--ink); }
.filter-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.label { font-size: 14px; font-weight: 600; }

/* Provider dot */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; box-shadow: 0 0 0 1px var(--dot-ring); }
.who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }

/* Score cells */
.s0 { background: var(--s0); color: var(--s0-ink); } .s1 { background: var(--s1); color: var(--s1-ink); }
.s2 { background: var(--s2); color: var(--s2-ink); } .s3 { background: var(--s3); color: var(--s3-ink); }
.s4 { background: var(--s4); color: var(--s4-ink); } .s5 { background: var(--s5); color: var(--s5-ink); }
.s6 { background: var(--s6); color: var(--s6-ink); } .sn { background: transparent; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.legend span[class^="s"] { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 26px; border-radius: 4px; font-weight: 600; }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { background: var(--panel); font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
table.data td { padding: 6px 10px; border-bottom: 1px solid var(--rule); }
table.data tr:last-child td { border-bottom: 0; }
.sort { white-space: nowrap; font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px 4px; border-radius: 4px; text-align: inherit; }
.sort[data-sorted] { background: var(--current); }
.sort[data-sorted]::after { content: " ↓"; }

/* Matrix */
.matrix { min-width: 1100px; }
.matrix th.bench { font-size: 11px; font-weight: 500; line-height: 1.2; color: var(--ink-2); padding: 6px 1px; }
.matrix th.bench .sort { font-weight: 500; font-size: 11px; width: 100%; color: var(--ink-2); padding: 4px 2px; text-align: center; }
.matrix .model-cell { position: sticky; left: 0; background: var(--ground); min-width: 210px; }
.matrix .model-cell .name { overflow-wrap: anywhere; }
.matrix tr.is-target td { background: var(--current); }
.matrix tr.is-target .model-cell { box-shadow: inset 4px 0 0 var(--accent); }
.matrix th.model-head { position: sticky; left: 0; z-index: 1; }

/* Headers that stay visible: below the site header where the table fits the page width, else at
   the top of the table's own box (.sticky-head); in a fixed-height list (.scroll-box) at its top. */
.table-box.sticky-head thead th, .table-box.scroll-box thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--rule); }
.table-box.sticky-head thead th.model-head { z-index: 4; }
.table-box.scroll-box { max-height: 26rem; overflow: auto; }
@media (min-width: 1240px) {
  .table-box.sticky-head { overflow-x: clip; }
  .table-box.sticky-head thead th { top: var(--header-h, 0px); }
}
@media (max-width: 1239.98px) {
  .table-box.sticky-head { max-height: calc(100vh - var(--header-h, 0px) - 24px); overflow: auto; }
}
.model { display: flex; gap: 10px; align-items: flex-start; }
.model .rank { width: 34px; flex: none; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.model .name { font-weight: 600; display: block; }
.score { display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; border-radius: 4px; font: inherit; font-weight: 600; font-size: 13px;
  font-variant-numeric: tabular-nums; border: 2px solid transparent; }
button.score { cursor: pointer; }
.matrix td[data-s] .score { width: 50px; margin: 0 auto; }
button.score[aria-pressed="true"] { border-color: var(--ink); }
.avg { font-weight: 700; font-size: 15px; }
.cov { text-align: center; white-space: nowrap; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cov.partial { color: var(--ink); font-weight: 700; }
.detail { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); }
.detail[hidden] { display: none; }
.detail h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 22px; }

/* Cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--ground); }
.card .thumb { aspect-ratio: 4 / 3; background: #3A4246; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--rule); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb.contain img { object-fit: contain; }
.card .thumb .tile { color: #E6EDEF; font: 600 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 22px; text-align: center; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card h2, .card h3 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 21px; line-height: 1.25; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--note-bg); color: var(--note-ink); }
.card dl { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.card dl div { display: flex; flex-direction: column-reverse; gap: 2px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-weight: 600; }
.best { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.best .model-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best strong { font-size: 17px; color: var(--accent); }

/* Landing */
.hero { background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: clamp(40px, 5vw, 62px); line-height: 1.05; }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; color: #E6EDEF; max-width: 34em; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--hero-muted); }
.hero .meta span:not(.version):not(:last-child)::after { content: "·"; margin-left: 10px; }
.hero .version { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hero-muted); color: var(--hero-ink); }
.hero .text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero .btn-primary { background: var(--hero-accent); color: #12191C; }
.hero .btn-secondary { background: transparent; color: var(--hero-ink); border-color: var(--hero-muted); }
.hero .facts { border-top: 1px solid #5B6469; padding-top: 24px; max-width: 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hero .facts dt { color: var(--hero-muted); font-size: 14px; }
.hero .facts dd { font-size: 36px; color: var(--hero-ink); }
/* Landing picture: what each task asks of a model, from the benchmarks' own examples. */
.hero-art { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; min-width: 0; justify-self: center; }
.hero-art .piece { position: absolute; margin: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.hero-art .piece img { display: block; width: 100%; border-radius: 2px; }
.hero-art .handwritten { left: 0; top: 5%; width: 32%; transform: rotate(-6deg); }
.hero-art .printed { left: 4%; top: 53%; width: 28%; transform: rotate(4deg); }
.hero-art .printed img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.hero-art .handwritten .task-chip, .hero-art .printed .task-chip { max-width: 74%; white-space: normal; line-height: 1.25; }
.hero-art .extraction { left: 60%; top: 3%; width: 40%; transform: rotate(3deg); }
.hero-art .layout { left: 26%; top: 6%; width: 42%; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55); }
.hero-art .box { position: absolute; border: 2px solid var(--accent-line); background: rgba(30, 165, 165, 0.12); }
.task-chip { position: absolute; left: 8px; top: 8px; color: #FFFFFF; font: 600 11.5px/1 Inter, Arial, sans-serif; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.task-chip.bottom { top: auto; bottom: 8px; left: auto; right: 8px; }
.task-chip.above { left: 0; top: 0; transform: translateY(calc(-100% - 4px)); }
.t-transcription { background: #2973A8; } .t-extraction { background: #457B1E; }
.t-understanding { background: #5E4F8C; } .t-correction { background: #906123; }
.hero-art .panel { position: absolute; margin: 0; background: #12191C; border: 1px solid #41505A; border-radius: 8px; padding: 12px 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); font: 400 11.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #E6EDEF; overflow: hidden; }
.hero-art .record { left: 60%; top: 31%; width: 40%; white-space: pre; }
.hero-art .record .k { color: #6FD3CE; }
.hero-art .correction { left: 36%; top: 72%; width: 62%; display: flex; flex-direction: column; gap: 8px; }
.hero-art .correction .task-chip { position: static; align-self: flex-start; }
.hero-art .correction pre { margin: 0; font: inherit; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.hero-art .minus { color: #E46987; } .hero-art .plus { color: #6FD3CE; }
@media (max-width: 560px) { .hero-art .panel, .task-chip { font-size: 9.5px; } .hero-art .panel { padding: 8px 10px; } }
.hero .pills { gap: 12px; }
.task-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--hero-muted); }
.task-start a { color: var(--hero-ink); border: 1px solid var(--hero-muted); border-radius: 999px; padding: 5px 12px; text-decoration: none; font-weight: 500; }
.task-start a:hover { border-color: var(--hero-accent); color: var(--hero-accent); }
.home-section { padding-top: 56px; padding-bottom: 56px; gap: 20px; }
.home-section h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 30px; }
.section-head { display: flex; flex-direction: column; gap: 6px; }
.home-band { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.task-grid, .how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.task-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 8px; background: var(--ground); }
.task-card h3 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 21px; }
.task-card p { margin: 0; }
.task-card ol { margin: 0; padding: 0; list-style: none; }
.task-card ol li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.task-card .rank { color: var(--muted); font-size: 13.5px; }
.who-line { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-line .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-score { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 17px; line-height: 1.2; }
.task-score .small { font-weight: 400; font-size: 12px; }
.task-card .go { margin-top: auto; text-decoration: none; }
.new-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.new-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); min-width: 0; }
.new-card .kicker { margin: 0; }
.new-card h3 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 21px; line-height: 1.3; }
.new-card h3 a { color: var(--ink); text-decoration: none; }
.new-card h3 a:hover { text-decoration: underline; }
.new-card .chips { margin: 0; font-size: 13px; }
.new-card .go { margin-top: auto; text-decoration: none; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; color: var(--muted); }
.new-models { margin: 0; padding: 0; list-style: none; }
.new-models li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.new-models li:first-child { border-top: 0; }
.how-grid li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 8px; }
.how-grid h3 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 21px; }
.how-grid h3 a { color: var(--ink); text-decoration: none; }
.how-grid h3 a::after { content: ""; position: absolute; inset: 0; }
.how-grid p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.how-grid p a { position: relative; z-index: 1; }
.how-grid .go { margin-top: auto; }
.go { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--accent); }
.go .nowrap { white-space: nowrap; }

/* Benchmark page */
.bench-head .wrap { padding-top: 28px; gap: 24px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.head-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: start; }
.head-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.head-text .intro p { margin: 0; }
.example { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.example a { display: block; background: #3A4246; padding: 18px; border-radius: 4px; }
.example img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.example figcaption { font-size: 13px; color: var(--muted); }
/* Flex rather than grid, so the cells of a row stretch to fill it and leave no empty ones. */
.fact-grid { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.fact-grid div { flex: 1 1 170px; box-shadow: 0 0 0 1px var(--rule); padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.fact-grid .wide { flex-basis: 340px; }
.fact-grid dt { font-size: 13px; color: var(--muted); }
.fact-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.tag-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 14px; align-items: center; }
.tag-list dt { color: var(--muted); }
.tag-list dd { margin: 0; }
.tag-list .tag { font-weight: 500; font-size: 13px; }

.doc { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 72px; }
.toc { flex: 0 0 210px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.toc-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px; }
.toc-group { font-weight: 700; padding: 6px 10px; }
.toc a { padding: 6px 10px; border-left: 3px solid transparent; color: var(--ink); font-weight: 700; text-decoration: none; }
.toc a.sub { padding-left: 22px; color: var(--ink-2); font-weight: 500; }
.toc a.is-current { border-left-color: var(--accent-line); background: var(--current); }
@media (max-width: 900px) { .toc { display: none; } }
.doc-body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.doc-section { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 96px; font-size: 16px; line-height: 1.6; }
.doc-section[hidden] { display: none; }
#results, #runs, #cite { border-top: 1px solid var(--rule); padding-top: 32px; }
.doc-section h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 30px; line-height: 1.2; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: -12px; }
.lead { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field h3 { margin: 0; font-size: 17px; font-weight: 700; }
.field-grid .field h3 { font-size: 15px; font-weight: 600; }
.field p, .field ul, .field ol { margin: 0; }
.field p + p, .field p + pre, .field pre + p { margin-top: 10px; }
.field ul { padding-left: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.doc-section pre { margin: 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.doc-section code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.doc-section a { overflow-wrap: anywhere; }
ul.chips, ul.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.chips li { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--rule); }
.chips li.hot { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.counts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.counts div { display: flex; gap: 8px; }
.counts dt { color: var(--muted); }
.counts dd { margin: 0; font-weight: 600; }
.missing { margin: 0; }

.example-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: start; }
.example-pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.example-pair img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #3A4246; border-radius: 4px; }
.example-pair pre { max-height: 520px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 8px; cursor: pointer; }
.tile:not([data-key]) { cursor: default; }
.tile.tile-new { border-top-color: var(--control); }
.tile[data-key]:hover, .tile:focus-visible { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.tile h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tile-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-line .name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.tile-score { font-family: "PT Serif", Georgia, serif; font-size: 30px; font-weight: 700; }
.tile p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.results { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.ranking { min-width: 760px; }
.ranking td { padding: 9px 10px; vertical-align: middle; }
.ranking th .sort { padding: 4px 2px; }
.ranking .rank { color: var(--muted); width: 40px; text-align: right; }
.ranking .right { text-align: right; }
.ranking .nowrap { white-space: nowrap; }
.model-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.model-line .name { font-weight: 600; overflow-wrap: anywhere; }
.flag { font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.flag.legacy { border-color: var(--control); color: var(--muted); }
.legacy-line { margin: 0; max-width: 44em; font-size: 14px; color: var(--muted); }
.legacy-line .flag { margin-right: 6px; }
.model .flag.legacy { margin: 0 6px; }
.score-col { width: 180px; }
.model-title { font-size: clamp(30px, 4vw, 44px) !important; overflow-wrap: anywhere; }
.model-table .flag, .ranking .flag { margin-left: 6px; }
.cmp-table th[scope="row"] { font-weight: 500; }
.cmp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cmp-browser { display: flex; flex-direction: column; gap: 14px; }
.cmp-browser[hidden] { display: none; }
.cmp-list td { vertical-align: middle; }
.cmp-list td:first-child, .cmp-list th:first-child { width: 36px; padding-right: 0; }
.cmp-list input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); display: block; }
.cmp-list label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; cursor: pointer; }
.cmp-list label .name { font-weight: 600; }
.cmp-list label .who { flex-basis: 100%; }
.cmp-list tr.is-chosen td { background: var(--current); }
.filter-row .with-hint { display: inline-flex; align-items: center; }
.cmp-table td .score { width: 58px; height: 30px; text-decoration: none; }
.cmp-table td .score.is-best { border-color: var(--ink); }
.cmp-table tfoot td, .cmp-table tfoot th { border-top: 2px solid var(--rule); }
.task-big { font-family: "PT Serif", Georgia, serif; font-size: 34px; font-weight: 700; margin: 0; }
.model-table { min-width: 620px; }
.model-table td { vertical-align: middle; }
.pm { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sub-cost { display: block; font-size: 11.5px; color: var(--muted); }
.flag.variant { border-color: #906123; color: #906123; }
[data-theme="dark"] .flag.variant { border-color: #D9A45B; color: #D9A45B; }
a.name { color: var(--ink); text-decoration: none; }
a.name:hover { text-decoration: underline; color: var(--accent); }
.score.flagged { position: relative; }
.legend-flag { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.legend .legend-flag .score { width: 26px; }
.score.flagged::after { content: ""; position: absolute; top: 2px; right: 2px; border: 5px solid transparent; border-top-color: #906123; border-right-color: #906123; border-radius: 0 2px 0 0; }
.ranking .model-col { min-width: 240px; color: var(--muted); }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.bar-cell strong { font-size: 16px; width: 38px; }
.bar { flex: 1; height: 6px; background: var(--s0); border-radius: 2px; overflow: hidden; min-width: 50px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.gap { font-size: 12.5px; color: var(--muted); width: 34px; text-align: right; }
.ranking tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--note-bg); } to { background: transparent; } }
.ranking tbody tr:hover td { background: var(--panel); }
.sort[data-sorted="ascending"]::after { content: " ↑"; }
.empty { padding: 16px; margin: 0; }
.more { align-self: center; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; scroll-margin-top: 96px; }
.chart-box { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 12px; border: 1px solid var(--rule); border-radius: 8px; min-width: 0; }
.chart-box figcaption { display: flex; flex-direction: column; gap: 4px; }
.chart-title { font-family: "PT Serif", Georgia, serif; font-size: 20px; font-weight: 700; }
.chart { position: relative; min-height: 320px; user-select: none; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .axes text { font-size: 11.5px; fill: var(--muted); }
.chart-svg .axis-title { font-size: 12px; fill: var(--ink-2); }
.chart-svg .grid { stroke: var(--rule); stroke-width: 1; opacity: 0.6; }
.chart-svg .step { fill: none; stroke: var(--accent-line); stroke-width: 2; opacity: 0.8; }
.chart-svg .step.dashed { stroke-dasharray: 4 4; }
.chart-svg .pt { stroke: var(--ground); stroke-width: 1; opacity: 0.9; cursor: pointer; }
.chart-svg .pt.big { stroke: var(--accent-line); stroke-width: 2; }
.chart-svg .ring { fill: none; stroke: var(--ink); stroke-width: 2.5; pointer-events: none; }
.chart-svg .zoom-band { fill: var(--current); stroke: var(--control); stroke-dasharray: 3 3; }
.chart-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hint { position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; margin: 0 0 0 6px; padding: 0; vertical-align: 1px;
  border: 1.5px solid var(--muted); border-radius: 50%; background: transparent; color: var(--muted); cursor: help;
  font: italic 700 11px/1 "PT Serif", Georgia, serif; text-transform: none; letter-spacing: normal; }
.hint::after { content: ""; position: absolute; inset: -8px; }
.hint:hover, .hint[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.hint-tip { display: none; position: fixed; z-index: 60; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px; background: var(--ground);
  color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font: 400 13.5px/1.45 Inter, system-ui, sans-serif; text-align: left; white-space: normal; letter-spacing: normal; text-transform: none; }
.hint-tip.is-open { display: block; }
.rec-card .hint, .hero .hint { color: inherit; border-color: currentColor; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ground); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); padding: 8px 10px; font-size: 13px; line-height: 1.45; max-width: 260px; }
.run-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.run-list li + li { border-top: 1px solid var(--rule); }
.run-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 64px; gap: 16px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.run-list a:hover { background: var(--panel); }
.test-id { font: 600 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); }
.run-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.run-who .name { font-weight: 600; overflow-wrap: anywhere; }
.run-list .cost { color: var(--muted); text-align: right; }
.cite p { margin: 0 0 6px; }
.cite blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--accent-line); background: var(--panel); }
.cite blockquote p { margin: 0; }
.cite blockquote p + p { margin-top: 8px; }
table.versions th[scope="row"] { background: none; font-weight: 700; vertical-align: top; }
table.versions td { vertical-align: top; }
table.versions tr:last-child th { border-bottom: 0; }
table.versions .v-ver { width: 72px; }
table.versions .v-date { width: 112px; white-space: nowrap; }
table.versions .v-change { width: 84px; }
table.versions .v-runs { width: 150px; white-space: nowrap; }
table.versions .runs-label { display: none; }
/* On phones each version is a block: number, date and change on one line, then what changed. */
@media (max-width: 640px) {
  table.versions, table.versions tbody { display: block; }
  table.versions thead { display: none; }
  table.versions tr { display: grid; grid-template-columns: max-content max-content 1fr; align-items: baseline; gap: 4px 12px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
  table.versions tr:last-child { border-bottom: 0; }
  table.versions th[scope="row"], table.versions td { padding: 0; border: 0; width: auto; }
  table.versions .v-what, table.versions .v-runs { grid-column: 1 / -1; }
  table.versions .v-runs { color: var(--muted); font-size: 13.5px; }
  table.versions .runs-label { display: inline; }
}
.change { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--control); color: var(--muted); white-space: nowrap; }
.change-major { border-color: var(--accent); color: var(--accent); }
.early-versions { margin-top: 12px; }
.early-versions summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.early-versions[open] summary { margin-bottom: 8px; }
.early-versions > p { margin: 0 0 10px; }
.roles dd { margin: 0; }
.roles { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; }
.roles dt { color: var(--muted); }

/* Leaderboard views */
.right { text-align: right; }
.runs-table { min-width: 760px; }
.runs-table td { padding: 8px 12px; vertical-align: middle; }
.runs-table th .sort { padding: 4px 2px; }
.runs-table .nowrap { white-space: nowrap; }
.runs-table tbody tr { cursor: pointer; }
.runs-table tbody tr:hover td { background: var(--panel); }
.runs-table tr.is-selected td { background: var(--note-bg); }
.runs-table .score { height: 30px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.pager button { min-width: 40px; height: 40px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.pager button:hover:not([disabled]) { border-color: var(--control); }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager button[disabled] { opacity: 0.4; cursor: default; }
.history { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.history .score { width: auto; padding: 0 10px; height: 30px; text-decoration: none; font-size: 12.5px; }
.history .score.is-current { border-color: var(--ink); }

.bar-box h2 { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 400; }
.bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 72px; gap: 12px; align-items: center; font-size: 13.5px; }
.bars li[hidden] { display: none; }
.bar-who { display: flex; flex-direction: column; min-width: 0; }
.bar-who .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-who .small { font-size: 12px; }
.bars .bar { height: 14px; }
.bars .bar span { max-width: 100%; }
.bar-v { text-align: right; font-weight: 600; }
.bar-box .more { align-self: flex-start; }

.rec { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.rec-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.rec-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rec-form legend { padding: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.rec-form .q { font-family: "PT Serif", Georgia, serif; font-size: 22px; font-weight: 700; }
.facet { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
.facet .label { padding-top: 8px; }
@media (max-width: 520px) { .facet { grid-template-columns: minmax(0, 1fr); } .facet .label { padding-top: 0; } }
.rec-benches { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--panel); border-radius: 6px; }
.link-btn { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.rec-expert { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.rec-expert[hidden] { display: none; }
.rec-expert label { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.rec-expert input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg-inline .label { margin-right: 6px; }
.seg-btn { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 5px; border: 1px solid var(--control); background: var(--ground); color: var(--ink); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rec-result { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rec-empty { padding: 24px; border: 1px dashed var(--rule); border-radius: 8px; display: flex; flex-direction: column; gap: 14px; }
.rec-empty h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 22px; }
.rec-empty p { margin: 0; }
.rec-empty-start { display: flex; flex-direction: column; gap: 8px; }
.rec-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--hero); color: var(--hero-ink); border-radius: 8px; }
.rec-card .kicker { color: var(--header); margin: 0; }
[data-theme="dark"] .rec-card .kicker { color: var(--hero-accent); }
.rec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.rec-head h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 30px; overflow-wrap: anywhere; }
.rec-head h2 a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rec-card .who { color: var(--hero-muted); font-size: 14px; }
.rec-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid #5B6469; padding-top: 16px; }
.rec-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.rec-facts dt { font-size: 13px; color: var(--hero-muted); }
.rec-facts dd { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 26px; font-weight: 700; }
.rec-card p { margin: 0; font-size: 14px; color: #E6EDEF; }
.rec-card .flag-line { color: #F5D58C; }
.rec-h { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 22px; }
.warn { margin: 0; padding: 12px 16px; background: #FBEFD9; color: #5C3D0A; font-size: 14px; line-height: 1.5; }
[data-theme="dark"] .warn { background: #3D2E12; color: #F5D58C; }
.chart-empty { margin: 0; padding: 40px 0; text-align: center; }

/* Test runs */
.run-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 10px; }
.run-search label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; flex: 1 1 170px; }
.run-search label.grow { flex: 999 1 300px; }
.run-search label.check { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 400; }
.run-search input[type="search"], .run-search select { font: inherit; font-weight: 400; font-size: 15px; min-height: 44px; padding: 0 10px; border: 1px solid var(--control);
  border-radius: 5px; background: var(--ground); color: var(--ink); width: 100%; }
.run-search input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.runs-page { flex-direction: row; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.run-col { flex: 1 1 320px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.run-pick { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.run-pick li + li { border-top: 1px solid var(--rule); }
.run-pick a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 14px; text-decoration: none; color: var(--ink); border-left: 4px solid transparent; }
.run-pick a:hover { background: var(--panel); }
.run-pick a[aria-current="true"] { background: var(--note-bg); border-left-color: var(--accent); }
.run-pick .name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-pick .pick-score { font-family: "PT Serif", Georgia, serif; font-weight: 700; font-size: 16px; text-align: right; }
.run-pick .small { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-pick .empty { padding: 16px; color: var(--muted); }
.run-detail { flex: 999 1 640px; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.run-detail[hidden] { display: none; }
.run-head { padding: 24px 28px 20px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.run-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.run-title h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 28px; }
.run-title h2 a { color: inherit; }
.run-head .chips { margin: 0; font-size: 13px; }
.run-head .chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; background: var(--panel); }
.run-head .chips li.strong { background: var(--ink); color: var(--ground); border-color: var(--ink); font-weight: 600; }
.run-head .chips li.strong a { color: inherit; text-underline-offset: 3px; }
.run-head .tags .tag { font-weight: 500; font-size: 12.5px; }
.run-head p { margin: 0; }
.run-metrics { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.run-metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.run-metrics dt { font-size: 13px; color: var(--muted); }
.run-metrics dd { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 24px; font-weight: 700; }
.run-metrics .main { grid-column: span 2; }
.run-metrics .main dd { color: var(--accent); font-size: 28px; }
.run-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.run-compare { padding: 20px 28px 28px; min-width: 0; }
.run-compare .hbc-head .hbc-title, .run-compare .hbc-head .hbc-meta { display: none; }

/* Text pages: news, about, contribute */
.prose { line-height: 1.65; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li + li { margin-top: 6px; }
.prose h2 { font-family: "PT Serif", Georgia, serif; font-size: 28px; line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; scroll-margin-top: 96px; }
.prose h4 { font-size: 16px; margin: 20px 0 8px; }
.prose pre { margin: 0 0 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.prose a { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; margin: 0 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; }
.prose th { background: var(--panel); }
.band .intro.prose p { margin: 0 0 10px; }
.guide h2:first-child { margin-top: 0; }

.news-page { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.news-feed { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.entry { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.entry[hidden] { display: none; }
.date-tile { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border: 1px solid var(--rule); border-radius: 6px; line-height: 1.15; }
.date-tile .d { font-family: "PT Serif", Georgia, serif; font-size: 24px; font-weight: 700; }
.date-tile .m { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.date-tile .y { font-size: 12px; color: var(--muted); }
.entry.release .date-tile { background: var(--note-bg); border-color: transparent; }
.entry-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.entry-main .kicker { margin: 0; }
.entry-main h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 24px; line-height: 1.25; }
.entry-main h2 a { color: inherit; text-decoration: none; }
.entry-main h2 a:hover { text-decoration: underline; }
.entry .chips { margin: 0; }
.clamp-post { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.notes summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.notes[open] summary { margin-bottom: 10px; }
.entry-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.news-aside { flex: 1 1 260px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--panel); border-radius: 8px; }
.news-aside .kicker { margin: 0; }
.news-aside h2 { margin: 0; font-family: "PT Serif", Georgia, serif; font-size: 32px; }
.news-aside p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.news-aside .btn { align-self: flex-start; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; border: 1px solid var(--rule); border-radius: 8px; align-items: start; }
.person.core { border-top: 4px solid var(--accent); }
.person img, .person .initials { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; background: var(--panel); }
.person .initials { display: flex; align-items: center; justify-content: center; font: 700 28px "PT Serif", Georgia, serif; color: var(--muted); }
.person-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.5; }
.person h3 { margin: 0; font-size: 17px; }
.person .core-line { margin: 0; color: var(--accent); font-weight: 600; }
.roles-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.roles-list strong { font-weight: 600; margin-right: 4px; }
.person-links { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer .org { font-weight: 600; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }


.rec-jump { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.rec-jump[hidden] { display: none; }
@media (min-width: 900px) { .rec-jump { display: none; } }
