/* Backgammon benchmark additions to the shared design system (site.css). */

main > section + section, main > .card + .card, main > section + .card, main > .card + section { margin-top: 1rem; }
.status { display: inline-block; margin: 0 .4rem .15rem 0; padding: .05rem .45rem; border: 1px solid var(--control-edge); border-radius: 999px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--text-2); background: var(--sunk);
  white-space: nowrap; vertical-align: middle; }
.status-published { color: var(--accepted); border-color: var(--accepted); }
.status-provisional { color: var(--grammar-text); border-color: var(--grammar-text); }
.status-earlier-version { color: var(--reading-text); border-color: var(--reading-text); }
.status-running, .status-stopped { color: var(--grammar-text); border-color: var(--grammar-text); }
.status-finished { color: var(--accepted); border-color: var(--accepted); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.section-head h2, .section-head h3 { margin: 0; }
.card h3 { font-size: 1rem; margin: 1.1rem 0 .5rem; }
.block { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--edge); }
.block:first-of-type { border-top: 0; padding-top: 0; }
.pending { margin: .5rem 0; padding: .6rem .8rem; background: var(--sunk); border: 1px solid var(--edge); border-radius: 6px; color: var(--text-2); }
.pending strong { color: var(--text); }
.findings-wait { font-weight: 600; }
.cols-list { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: .85rem; }
.tabpanel[hidden] { display: none; }
.subnav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.verdict { font-weight: 600; }
.diff-row td { font-family: var(--mono); }
tr.oracle td { font-style: italic; color: var(--text-2); }
.chart-status { margin: .25rem 0 0; }
.version-line { margin: .25rem 0 0; color: var(--text-2); font-size: .8rem; }
details.more { margin: .75rem 0 0; }
details.more > summary { cursor: pointer; font-weight: 600; }
.compare-pick { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .5rem 0 1rem; }
.compare-pick select { max-width: 100%; }
.chart-svg { width: 100%; height: auto; max-width: 760px; display: block; }
.chart-svg text { fill: var(--text); font-family: var(--sans); font-size: 11px; }
.chart-svg .axis { stroke: var(--control-edge); }
.chart-svg .grid { stroke: var(--edge); }
.chart-svg .dot { fill: var(--reading); }
.chart-svg .whisker { stroke: var(--reading); }
.chart-svg .muted { fill: var(--text-2); }
/* The Learning page's charts (learning_page.line_chart): each arm's colour is learning_page.ARM_COLOUR, set as --lp on
   every line, dot and legend swatch; control's dashed line is the SVG's own stroke-dasharray. */
.chart-svg .lp-title { font-weight: 700; font-size: 12px; }
.chart-svg .lp-line { fill: none; stroke-width: 2; stroke: var(--lp); }
.chart-svg .lp-dot { stroke: var(--panel); stroke-width: 1; fill: var(--lp); }
.lp-swatch { background: var(--lp); }
.lp-swatch.lp-dashed { width: 1.2rem; height: 0; background: none; border-top: 2px dashed var(--lp); border-radius: 0;
  vertical-align: .2rem; }
.tab-rule { margin-top: .6rem; padding: .5rem .9rem; border-left: 3px solid var(--edge); background: var(--sunk); }
.lp-charts { display: grid; gap: 1.5rem; } .lp-chart { margin: 0; min-width: 0; }
.lp-chart .chart-svg { display: block; width: 100%; max-width: 560px; }
.lp-status { margin: .3rem 0 .6rem; font-size: 1.05rem; }
details.lp-series { margin: .4rem 0; } details.lp-series > summary { cursor: pointer; font-weight: 600; }
.lp-run-line { margin: 0 0 1rem; font-weight: 600; }
/* The exploratory block (learning_page.explore): apart from the verdict, a dashed frame on the sunk background. */
section.card.lp-explore { border: 2px dashed var(--edge); background: var(--sunk); }
.lp-explore-label { margin-top: 0; }
/* "Did they improve?" (improve_page.py): the long cells of the models table get room, so rows stay short. */
.improve-models td[data-cell="answers"] { min-width: 24rem; }
.improve-models td[data-cell="cost"], .improve-models td[data-cell="verdict"] { min-width: 11rem; }
.improve-models th[scope="row"] { min-width: 11rem; }

/* --- Dashboard layout: a centred header, tables first; data colours are unchanged. Colours, keys, lamps and panels are
   site.css's, the sibling site's look in both themes (Ümit, 31 Oct 2026); this page's own colour names map onto
   it: the accent is the link colour, good and bad are the accepted and wrong data colours. ------------------------- */
:root {
  --accent: var(--link); --zebra: #f3f1ec;
  --good: var(--accepted); --good-soft: rgba(21, 128, 61, .14); --bad: var(--wrong); --bad-soft: rgba(185, 28, 28, .12);
}
@media screen {
  :root:not([data-theme="light"]) {
    --zebra: #161615; --good-soft: rgba(74, 222, 128, .16); --bad-soft: rgba(252, 165, 165, .14);
  }
}

/* A page's first card (pages.page_head; the home page's hero_card), as the sibling site's: the eyebrow, the title at its
   size, the intro, the results version. */
.hero { max-width: none; margin: 0 0 1rem; }
main > .card.hero h1 { font-size: 1.6rem; margin: 0 0 .5rem; letter-spacing: 0; }
.hero .intro { margin: 0 0 .6rem; font-size: 1rem; }
.hero .subtitle { margin: 0 0 .5rem; color: var(--text-2); font-size: 1.05rem; }
.hero .readout-row { margin: .5rem 0 0; }
.hero .framing { margin: .85rem 0 .6rem; }
.hero dl.facts { margin: .85rem 0 .75rem; }

.filters-body { margin-top: 0; padding-top: 0; border-top: 0; gap: .6rem 1.5rem; }
.filters-body > .group { flex-direction: row; flex-wrap: wrap; align-items: center; }
/* More filters: the key that names the active folded filters, then the fold on its own full-width row. */
.filters-more { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
.filters-more[hidden] { display: none; }
.fold-toggle { text-align: left; }
.fold-summary { color: var(--text-2); font-weight: 400; }
.board-panel .view-switch { display: inline-flex; }
.js .board-panel:not(.shows-charts) > .charts { display: none; }
.board-panel > .version-line { margin: -.25rem 0 .6rem; }

/* Tables: sticky header and first column, zebra rows, hover, click to sort, click a row to open it. */
.table-wrap { max-height: 72vh; overflow: auto; border: 1px solid var(--edge); border-radius: 6px; }
.table-wrap > table > caption { padding: .5rem .65rem 0; }
.table-wrap thead th { position: sticky; top: 0; z-index: 2; background: var(--sunk); border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--control-edge); cursor: pointer; user-select: none; }
.table-wrap thead th:hover { color: var(--accent); }
.table-wrap thead th[aria-sort="ascending"]::after { content: " \25B2"; font-size: .7rem; color: var(--accent); }
.table-wrap thead th[aria-sort="descending"]::after { content: " \25BC"; font-size: .7rem; color: var(--accent); }
.table-wrap tbody td, table.board tbody tr > td { background: var(--panel); }
.table-wrap tbody tr:nth-child(even) > td, table.board tbody tr:nth-child(even) > td { background: var(--zebra); }
.table-wrap tbody tr:hover > td, table.board tbody tr:hover > td { background: var(--row-hover); }
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; }
.table-wrap thead th:first-child { z-index: 3; }
.table-wrap td:first-child { box-shadow: inset -1px 0 0 var(--edge); }
tbody tr[data-href], tbody tr:has(a[href]) { cursor: pointer; }
.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-note { color: var(--text-2); font-size: .82rem; margin: .45rem 0 0; }

/* Explanations sit under the tables, collapsed. */
details.about { margin: .9rem 0 0; color: var(--text-2); font-size: .9rem; }
details.about > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .85rem; }
details.about[open] > summary { margin-bottom: .4rem; }
main > details.about { max-width: 1100px; margin: 1rem auto 0; padding: 0 .25rem; }

@media (max-width: 720px) {
  .swipe-hint { display: block; }
  .readouts { flex-wrap: wrap; row-gap: .25rem; }
  .hero h1 { font-size: 1.45rem; }
  .table-wrap { max-height: 78vh; }
  td.model { min-width: 9.5rem; }
}
/* The four questions of the findings on one line under the waiting note. */
.hero .summary-lead { margin: 0 0 .15rem; }

/* --- The home page's first card: the heading and the links. -------------------------------------------------- */
.hero-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .6rem; }
.hero-links .key { text-decoration: none; padding: .3rem .8rem; border: 1px solid var(--control-edge); color: var(--text); font-size: .85rem; }
.hero-links .key:hover { border-color: var(--accent); color: var(--accent); }
#findings { margin: 0 0 1rem; }
#findings .summary-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .5rem; }
#findings .summary-list li { padding: .55rem .7rem; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); }
.thread { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-right: .4rem; }
#findings .thread { display: block; margin-bottom: .15rem; }
.section-lead { color: var(--text-2); margin: .25rem 0 .75rem; }
.lead-finding { font-size: 1.02rem; margin: .25rem 0 .75rem; }
.league-pick .keys { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.card > .league-pick { margin: .25rem 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.js [data-league-view][data-off] { display: none; }
tr.reference > td { font-style: italic; }
.risk-limit { font-weight: 600; }

/* --- v12: elements the house style has and the preview did not, in the preview's colours. ------------------- */
.filters-title { font-size: 1rem; margin: 0 0 .5rem; }
.setup-count { font-family: var(--mono); font-size: .85rem; color: var(--text-2); margin-right: .6rem; }
.reset-why { color: var(--text-2); margin-left: .4rem; }
.reset-why[hidden] { display: none; }
.key.reset[aria-disabled="true"] { opacity: .55; cursor: default; }
.chart-head .keys { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.chart-head h2 { margin: 0; }
.js .chart-view[hidden] { display: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; color: var(--text-2); font-size: .78rem; margin: .35rem 0 0; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: -.1rem; }
.chart-svg .row[hidden], .chart-svg .pt[hidden] { display: none; }
.chart-svg .rm-diag { stroke: var(--text-2); stroke-dasharray: 3 4; opacity: .35; }
.chart-svg .rm-diag-label { fill: var(--text-2); font-size: 10px; opacity: .7; }
.chart-svg .rm-dot { stroke: var(--panel); stroke-width: 1; }
.chart-svg .rm-ref { fill: none; stroke: var(--text); stroke-width: 1.5; }
.chart-svg .rm-name { font-size: 10px; }
.rm-cautious { background: var(--reading); }
.rm-wrong { background: var(--wrong); }
/* Ability and caution (reviewed brief 24 Oct 2026, item 4): the cost-derived SDT reference mark, only where valid. */
.chart-svg[data-chart="sdt"] .rm-dot { fill: var(--reading); }
.chart-svg .sdt-ref { stroke: var(--wrong); stroke-width: 2.5; }
.chart-svg .sdt-link { stroke: var(--wrong); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.chart-svg .axis0 { stroke: var(--text-2); opacity: .55; }
.sdt-swatch { background: var(--wrong); height: .2rem; vertical-align: .2rem; }
.mini-rel, .mini-hist { display: block; margin-top: .2rem; }
.mini-rel .rel-diag { stroke: var(--text-2); stroke-dasharray: 2 3; opacity: .5; }
.mini-rel polyline { fill: none; stroke-width: 1.6; }
.mini-rel .rel-before { stroke: var(--reading); }
.mini-rel .rel-after { stroke: var(--wrong); stroke-dasharray: 4 2; }
.mini-hist .hist-bar { fill: var(--reading); }
.sp-needless { fill: var(--bad); background: var(--bad); }
.sp-missed { fill: var(--reading); background: var(--reading); }
.sp-wrong { fill: var(--grammar); background: var(--grammar); }
.sp-right { fill: var(--good); background: var(--good); }
.sp-safety { fill: var(--data-chat); background: var(--data-chat); }
.sp-none { fill: var(--edge); background: var(--edge); }
.sp-pays-safe { fill: var(--reading); background: var(--reading); }
.sp-bar { fill: var(--accent); background: var(--accent); }
td.heat { background-image: linear-gradient(color-mix(in srgb, var(--good-soft) calc(var(--heat) * 100%), transparent),
  color-mix(in srgb, var(--good-soft) calc(var(--heat) * 100%), transparent)); }
.risk-card .cc-big { font-size: 2.6rem; font-weight: 700; margin: .2rem 0 .6rem; }
.risk-card .cc-big .small { font-size: .85rem; font-weight: 400; margin-left: .6rem; color: var(--text-2); }
.cc-row { display: flex; align-items: center; gap: .6rem; margin: .25rem 0; font-size: .85rem; }
.cc-l { width: 8.5rem; text-align: right; color: var(--text-2); }
.cc-bar { display: inline-block; height: .9rem; border-radius: 3px; min-width: 1px; }
.cc-n { font-variant-numeric: tabular-nums; }
.downloads { max-width: 1180px; margin: 1rem auto 0; color: var(--text-2); font-size: .9rem; }
.charts .league-view .block { margin-top: 0; }
ul.league-notes { margin: .25rem 0 .75rem; padding-left: 1.1rem; }
.also-league { color: var(--accent); }
/* Close choices (Method spec 2026-10-24 §9): neutral colours; a share of close choices is neither good nor bad. */
.ccs-small { fill: var(--data-chat); background: var(--data-chat); }
.ccs-medium { fill: var(--reading); background: var(--reading); }
.ccs-big { fill: var(--grammar); background: var(--grammar); }
th .th-note { display: block; font-weight: 400; font-size: .72rem; color: var(--text-2); max-width: 14rem; white-space: normal; }
th[data-nosort] { cursor: default; }
.cc-list { display: grid; gap: .35rem; margin: .4rem 0 .6rem; }
details.cc-details { border: 1px solid var(--edge); border-radius: 6px; padding: .35rem .7rem; background: var(--panel); }
details.cc-details > summary { cursor: pointer; font-size: .9rem; }
details.cc-details:target, details.cc-details[open] { border-color: var(--accent); }
.cc-body h4 { margin: .7rem 0 .25rem; font-size: .9rem; }
.cc-body p { margin: .2rem 0 .4rem; font-size: .88rem; }
a.cc-open { font-weight: 600; }
/* Close choices, stage B (home.close_b_section): exact agreement against each team's own shuffled baseline. */
.chart-svg .ccb-band { fill: color-mix(in srgb, var(--reading) 28%, transparent); }
.chart-svg .ccb-mean { stroke: var(--text-2); stroke-width: 2; }
.chart-svg .ccb-dot { stroke: var(--reading); stroke-width: 2; }
.chart-svg .ccb-above { fill: var(--reading); }
.chart-svg .ccb-within, .chart-svg .ccb-below { fill: var(--panel); }
.swatch.ccb-band { background: color-mix(in srgb, var(--reading) 28%, transparent); }
.swatch.ccb-mean { width: .2rem; background: var(--text-2); }
.swatch.ccb-dot { border-radius: 50%; box-sizing: border-box; border: 2px solid var(--reading); }
.swatch.ccb-above { background: var(--reading); }
.swatch.ccb-within { background: var(--panel); }
#chart-close-b { margin: 1rem 0 .5rem; }
#close-b-table tbody th { background: var(--panel); box-shadow: inset -1px 0 0 var(--edge); text-align: left; }
#close-b-table tbody tr:nth-child(even) > th { background: var(--zebra); }
#close-b-table thead th[data-nosort] { cursor: default; }
/* Nackgammon paired test (nack_section.py): standard PR (x) against Nackgammon PR (y). */
.chart-svg .nack-yard { fill: var(--data-grey); stroke: var(--text-2); stroke-width: 1; }
#nackgammon-paired th .hl-dot { width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
#nackgammon-paired .nack-class { margin: .4rem 0 0; }
#chart-nack { margin: 1rem 0 .5rem; }
#nackgammon-paired thead th[data-nosort] { cursor: default; }
#nackgammon-paired ul.lettered { list-style: none; padding-left: 1rem; }
#nackgammon-paired .section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
#nackgammon-paired .section-head .eyebrow { flex-basis: 100%; margin: 0; }
#nackgammon-paired .section-head .keys { margin-left: auto; }
#nackgammon-paired tr.nack-yardstick, #nackgammon-paired tr.nack-yardstick a { color: var(--text-2); }
.section-label { margin: .15rem 0 .6rem; font-size: .8rem; color: var(--text-2); }

/* Hype Cup and Nackgammon knockout brackets (Leagues page) and the Matches page. Rounds side by side on a wide screen,
   one under the other on a phone; the winner's row in bold with a marked edge; the tie's state as a small label. */
.status-in-progress { color: var(--grammar-text); border-color: var(--grammar-text); }
.cup-sub { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--edge); }
.bracket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .5rem 0 .75rem; }
.bracket-round h4 { margin: 0 0 .4rem; color: var(--text-2); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bracket .ties { display: flex; flex-direction: column; justify-content: space-around; gap: .6rem; height: calc(100% - 1.3rem);
  margin: 0; padding: 0; list-style: none; }
.tie { padding: .45rem .6rem; background: var(--sunk); border: 1px solid var(--edge); border-radius: 6px; }
.tie-head { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .3rem; font-size: .78rem; color: var(--text-2); }
.tie-name { font-weight: 600; }
.tie-state { padding: 0 .4rem; border: 1px solid var(--control-edge); border-radius: 999px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.state-played { color: var(--accepted); border-color: var(--accepted); }
.state-stored { color: var(--reading-text); border-color: var(--reading-text); }
.state-playing { color: var(--grammar-text); border-color: var(--grammar-text); }
.tie-sides { margin: 0; padding: 0; list-style: none; }
.side { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .4rem; align-items: baseline; padding: .12rem 0 .12rem .35rem;
  border-left: 3px solid transparent; font-size: .9rem; }
.side .seed { color: var(--text-2); font-family: var(--mono); font-size: .75rem; text-align: right; }
.side .score { font-family: var(--mono); font-weight: 600; }
.side.win { border-left-color: var(--lamp-on); font-weight: 600; }
.side.tbd .name { color: var(--text-2); font-style: italic; }
.tie-foot { margin: .3rem 0 0; color: var(--text-2); font-size: .78rem; }
.tie-to-play, .tie-waits { background: transparent; border-style: dashed; }
.stage-nav .subnav { margin: 0; }
tr.late-entry td { color: var(--text-2); }
td.date { white-space: nowrap; }
@media (max-width: 720px) {
  .bracket { grid-template-columns: minmax(0, 1fr); }
  .bracket .ties { height: auto; }
}

/* --- Presentation amendment (Ümit, 30 Oct 2026): the quick Decision models view, results first (summary columns; All
   columns adds the advanced measures, nothing removed). --- */
.quick-view .keys { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.board-panel .col-switch { display: inline-flex; }
/* Summary columns, by position (home.py RISK_HEAD, ROBUST_HEAD, the Quality head; the All leagues tables have League
   second). Risk tables, both margins: model, risk judgement, risks found, right safety, missed, needless and wrong risks.
   Quality: model, error rate, band, engine's best play, blunder rate. */
.js .board-panel:not(.cols-all) table[data-margin]:not([data-dataset="all"]) :is(th, td):is(:nth-child(5), :nth-child(n+9)),
.js .board-panel:not(.cols-all) table[data-margin][data-dataset="all"] :is(th, td):is(:nth-child(6), :nth-child(n+10)),
.js .board-panel:not(.cols-all) .phase-slot[data-slot="quality"] table :is(th, td):nth-child(n+6) { display: none; }

/* --- Leagues page, starting groups (Ümit, 31 Oct 2026): two kinds of badge that must not be mistaken for each other. A
   Cup place is a filled key-coloured tag with a square edge; a league move is an outlined pill with its arrow. --------- */
.badge { display: inline-block; margin: 0 .35rem .15rem 0; padding: .05rem .45rem; font-size: .75rem; font-weight: 600;
  line-height: 1.4; white-space: nowrap; }
.badge-cup { color: var(--text); background: var(--sunk); border: 1px solid var(--text); border-radius: 3px; }
.badge-move { color: var(--text-2); background: transparent; border: 1px dashed var(--control-edge); border-radius: 999px; }
.badge-promoted { color: var(--accepted); border-color: var(--accepted); }
.badge-relegated { color: var(--wrong); border-color: var(--wrong); }
td.badges { min-width: 12rem; }
td.badges .small { display: block; white-space: normal; }

/* --- Leagues tabs (Can, 31 Oct 2026), on the Leagues page and under the home page's hero: the leaderboard's tab keys,
   larger; a smaller second level for the starting groups and the leagues after the moves. On a phone the keys wrap,
   so the selected one stays in view. ------------------------------------------------------------------------------ */
.home-leagues { max-width: 1180px; margin: 0 auto 1rem; }
.league-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.1rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--edge); }
.league-tabs .modes { gap: .4rem; }
.league-tabs a.mode { min-height: 2.75rem; padding: .45rem 1.05rem; font-size: 1.02rem; }
.modes.sub-tabs { margin: .6rem 0 1rem; }
.modes.sub-tabs a.mode { min-height: 2.1rem; padding: .25rem .8rem; font-size: .88rem; }
@media (max-width: 640px) {
  .league-tabs a.mode { min-height: 2.75rem; padding: .35rem .5rem; font-size: .86rem; }
  .modes.sub-tabs a.mode { min-height: 2.75rem; font-size: .8rem; }
}

/* The error-rate chart's program-line rows on a phone: their track in the plot area, as the axis's. */
@media (max-width: 640px) {
  .hbar-refrow > span:first-child { display: none; }
}

/* --- The sibling site's face (Ümit, bus #1831; Zeki #1833, #1834, #1836, #1860). -------------------------------- */
/* The theme keys read Dark and Light (their full names in their labels). */
.theme-switch .long { display: none; }
/* The pages that are not tabs (Ümit #2901), on the Leaderboard and About: their group name before the keys. */
.more-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .6rem; }
.more-pages .view-label { margin-right: .2rem; }
/* Highlights and Experiments (Ümit #2901). */
.experiment-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.highlight-slots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.highlight-finding .status { margin-bottom: .3rem; }
.hc-line { color: var(--text-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hc-num { color: var(--text); font-weight: 600; }
.experiment-card .status { margin-bottom: .3rem; }
.experiment-card h2 { margin: 0 0 .3rem; }
.experiment-card p { margin: .3rem 0; overflow-wrap: anywhere; }
.experiment-status { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; }
.experiment-counts { color: var(--text-2); font-size: .9em; font-variant-numeric: tabular-nums; }
.experiment-card .hero-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.experiment-small { font-size: .95em; }
/* Repeat checks, top of Experiments (Ümit via Zeki #4831; Run 2 view, Zeki #4838): a compact table per area, each row's
   details in the model's details box (site.js modelBoxes, Ümit via Zeki #5462: no Details row under it); below 640 px
   rank, model, both risk judgements and status, the rest in the box. */
#repeat-checks { margin-bottom: 1rem; }
#repeat-checks h3 { margin: .2rem 0 .4rem; font-size: 1rem; }
table.repeat-table { width: 100%; }
table.repeat-table td.rc-rank { width: 3.2rem; }
table.repeat-table td.rc-rank .nm { font-size: .78rem; }
table.repeat-table .rc-short { display: none; }
table.repeat-table thead th:nth-child(2) { text-align: left; }
table.repeat-table thead th, table.repeat-table thead th .rc-more { white-space: normal; }
#repeat-checks .rc-view { margin: 0 0 .5rem; }
table.repeat-table tbody tr > td { background: var(--panel); }
table.repeat-table td.model .hl-dot { width: .7rem; height: .7rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
table.repeat-table td.num .small { display: inline; margin-left: .3em; }
table.repeat-table .rc-m { white-space: nowrap; }
.rc-box dl.facts { grid-template-columns: 1fr; gap: 0; margin: 0; overflow-wrap: anywhere; }
.rc-box dl.facts dd { margin-bottom: .45rem; }
.rc-box .small { display: inline; margin-left: .3em; }
@media (max-width: 640px) {
  table.repeat-table thead .rc-more, table.repeat-table td.num .rc-more, table.repeat-table th:nth-child(5),
  table.repeat-table td.rc-pairs { display: none; }
  table.repeat-table th:first-child, table.repeat-table td:first-child { position: static; width: 2.4rem; min-width: 0;
    max-width: none; box-shadow: none; }
  table.repeat-table td.model { width: 40%; min-width: 0; }
  table.repeat-table .rc-short { display: inline; }
  table.repeat-table thead th { min-width: 0; }
  table.repeat-table th, table.repeat-table td { padding: .45rem .3rem; }
  table.repeat-table td.num .small { display: none; }
  table.repeat-table .status { font-size: .72rem; }
}
.status-completed { color: var(--accepted); border-color: var(--accepted); }
.status-paused { color: var(--reading-text); border-color: var(--reading-text); }
/* Three kinds of choice, three looks, in both themes and without hovering (Zeki, bus #1860):
   - the page in view: its tab in the site's bar underlined in the link colour (site.css);
   - a part of a page (in-page tabs: the leaderboard's and the leagues' tabs, the part links): keys
     tinted with the link colour, the one in view filled with it (the sibling's --tab-* colours);
   - a filter (the Filters panel, the cost unit and the other keys that switch a view): rounded keys, the
     chosen one with a thick edge in the link colour on its tint and a check mark; a filter at its default (All) looks
     unpressed, as on the sibling site, its lamp still lit. */
button.mode, a.mode { color: var(--tab-text); background: var(--tab-bg); border: 2px solid var(--tab-edge);
  border-radius: 7px; font-weight: 700; box-shadow: var(--key-shadow); }
button.mode:hover, a.mode:hover { border-color: var(--view-key-hover); }
button.mode[aria-selected="true"], a.mode[aria-selected="true"] {
  color: var(--tab-current-text); background: var(--tab-current-bg); border-color: var(--tab-current-bg); box-shadow: none; }
button.mode[aria-selected="true"]::after, a.mode[aria-selected="true"]::after { background: var(--tab-current-bg); }
#filters button.key, .cost-unit button.key, .view-switch button.key, .col-switch button.key { border-radius: 999px; }
button.key[aria-pressed="true"] { color: var(--tab-text); background: var(--tab-bg);
  border: 2px solid var(--tab-edge); box-shadow: var(--key-inset); font-weight: 700; }
button.key[aria-pressed="true"]::before { content: "\2713"; margin-right: .3rem; }
#filters button.key[aria-pressed="true"]:is([data-league-pick="all"], [data-filter-kind="all"], [data-filter-setting="all"],
  [data-filter-runs="all"], [data-filter-weights="all"]) {
  color: var(--view-text); background: var(--view-key); border: 1.5px solid var(--view-key-edge); box-shadow: var(--key-shadow);
  font-weight: 700; }
#filters button.key[aria-pressed="true"]:is([data-league-pick="all"], [data-filter-kind="all"], [data-filter-setting="all"],
  [data-filter-runs="all"], [data-filter-weights="all"]) { border-width: 1px; font-weight: 400; }
#filters button.key[aria-pressed="true"]:is([data-league-pick="all"], [data-filter-kind="all"], [data-filter-setting="all"],
  [data-filter-runs="all"], [data-filter-weights="all"])::before { content: none; }
/* The theme keys keep the sibling's look: a lit lamp says which theme is on. */
.theme-switch button.key[aria-pressed="true"] { border-radius: 6px; }
.theme-switch button.key[aria-pressed="true"]::before { content: none; }
/* The measures, one chart card each in one column; the leaderboard's own chart panels keep their two columns. */
.charts.measures { grid-template-columns: minmax(0, 1fr); margin: 0 0 1rem; }
.board-panel .chart-head h2 { font-size: 1.15rem; }
/* The bars: in the maker's colour (content/maker_colors.json); a program grey and striped (a reference row, never
   ranked); the 95% interval a line across the bar; the league beside the name under All leagues. */
.hbar-fill.program { background-color: var(--data-grey); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, rgba(0, 0, 0, .12) 3px 6px); }
.hbar-track { position: relative; }
.hbar-interval { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--text); box-shadow: 0 0 0 1px var(--panel); }
.hbar-interval::before, .hbar-interval::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--text); }
.hbar-interval::before { left: 0; }
.hbar-interval::after { right: 0; }
.hbar-where { color: var(--text-2); font-size: .78rem; }
.hbars li[hidden] { display: none; }
.hbar-value .nm { font-size: .76rem; }
i.swatch-program { background-color: var(--data-grey); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 2px, rgba(0, 0, 0, .12) 2px 4px); }
i.swatch-interval { width: 1rem; height: 2px; background: var(--text); border-radius: 0; vertical-align: .2rem; }
.measure .table-note { max-width: none; }
/* The error-rate chart's program lines: dashed across every row, each named on a line of its own above the axis. */
.hbar-refline { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--text-2); }
.hbar-refrow { margin-bottom: .1rem; }
.hbar-refrow .hbar-track { display: block; min-height: 0; padding-bottom: .45rem; background: none; }
.hbar-reftick { position: absolute; bottom: 0; height: .45rem; border-left: 2px dashed var(--text-2); }
.hbar-reflabel { display: block; width: max-content; max-width: 100%; color: var(--text-2); font-size: .72rem; line-height: 1.2;
  white-space: normal; }
i.swatch-refline { width: 0; height: .8rem; border-left: 2px dashed var(--text-2); border-radius: 0; }
.unmeasured { margin-top: .6rem; }
@media (max-width: 640px) {
  /* The bars on a phone in two lines, as the sibling's Math accuracy chart (Ümit via Zeki #2895, #2898): the icon and
     the name (its league after it, small) across the width, then the bar from the left edge with the value and its
     interval right-aligned beside it, in a narrower value column so the bar gets the width. */
  .chart-wide .hbar { grid-template-columns: minmax(0, 1fr) 7.4rem; }
  .chart-wide .hbar-value, .chart-wide .hbar-head { font-size: .7rem; }
  .chart-wide .hbar-value { white-space: nowrap; }
  .hbar-label a { overflow-wrap: anywhere; }
}

/* --- The home page as a story (Ümit, bus #2570; story.py): the finding sections. The leaderboard is the bench kit's
   block (zw-ui.css). ------------------------------------------------------------------------------------------------- */
/* The Class row of the Nackgammon table (Ümit #4217): its label before the keys, a key with no model in the type in
   view hidden; each model's class label after its name, small grey text, which a narrow cell wraps under the name. */
.class-keys { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.class-keys-label { color: var(--text-2); font-size: .82rem; }
.class-keys .key[hidden] { display: none; }
.hl-size { display: inline-block; margin-left: .6rem; color: var(--text-2); font-size: .74rem; white-space: nowrap; }
/* A row's details box outside the bench kit's tables (site.js modelBoxes: the Repeat checks): every value of the
   setup, a line per kind; in its row without script, else over the page beside its row where the window has room, else
   under it (fixed to the window, within its width), opened by hover or the focus; on a touch screen a popover at the
   model's name, opened by a tap. A chart mark's tooltip on a touch screen (.chart-tip) is the same kind of box, as wide
   as its text. */
.hl-box { margin: .35rem 0 0; color: var(--text); font-size: .82rem; line-height: 1.4; white-space: normal; }
.hl-box p { margin: .12rem 0; }
.hl-box p:first-child { margin-top: 0; }
.js .hl-box { display: none; position: fixed; z-index: 30; max-width: calc(100vw - 16px); margin: 0; padding: .6rem .75rem;
  overflow: auto; overscroll-behavior: contain;
  background: var(--panel); border: 1px solid var(--control-edge); border-radius: 8px; box-shadow: var(--shadow); }
.js .hl-box.open { display: block; }
.js .hl-box.chart-tip { width: max-content; max-width: min(20rem, calc(100vw - 16px)); }
@media (hover: none), (pointer: coarse) {
  .js tr[data-box] .model-name, li.hbar[title], svg.chart-svg :not(svg):has(> title) { cursor: pointer; }
}
.hbar-fill.ts-found, i.swatch-ts-found { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, rgba(0, 0, 0, .12) 3px 6px); }
.hbar-fill.ts-grey, i.swatch-ts-grey { background-color: var(--data-grey); }
i.swatch-ts-safety, i.swatch-ts-found { background-color: var(--text-2); }
/* "Did they improve?" results (improve_page.result_cells; /improve/ and the home page's Learning tab, Ümit via Zeki
   #6257, #6371, #6374): the result as a chip in the site's palette with its word and a mark (never colour alone),
   numbers in the text colour; a right safety change past the limit marked in words and colour. */
.zw-table .status[class*="learn-"] { margin: 0; white-space: normal; border-radius: .6rem; font-size: .78rem; }
.status.learn-yes { --learn: color-mix(in srgb, var(--accepted) 78%, var(--text)); }
.status.learn-no { --learn: color-mix(in srgb, var(--wrong) 85%, var(--text)); }
.status.learn-state { --learn: color-mix(in srgb, var(--grammar-text) 80%, var(--text)); }
.status:is(.learn-yes, .learn-no, .learn-state) { color: var(--learn); border-color: var(--learn); }
.status:is(.learn-yes, .learn-no) { font-weight: 700; }
.status.learn-yes::before { content: "\2713\00a0"; }
.status.learn-no::before { content: "\2717\00a0"; }
.status.learn-none { color: var(--text-2); border-style: dashed; }
.zw-val.learn-beyond, .zw-val.learn-beyond .zw-int, .learn-why { color: var(--wrong); font-weight: 700; }
.zw-measure .learn-why { display: block; margin: .15rem 0 0; }
/* The kit's tables with room to read (Ümit #6400, #6402: nothing crammed): line height and cell padding; a cell's
   second line (an interval, a before → after, a reason) a little apart from its first. */
.zw-block .zw-table { line-height: 1.45; }
.zw-block .zw-table th, .zw-block .zw-table td { padding-top: .55rem; padding-bottom: .55rem; }
@media (min-width: 600px) { .zw-block .zw-table th, .zw-block .zw-table td { padding-left: .6rem; padding-right: .6rem; } }
.zw-block .zw-table td .zw-int { margin-top: .12rem; }
.zw-block .zw-panel-head { margin-bottom: .75rem; }
/* On a touch screen a head's explanation follows its key only (a tap opens, a second tap or a tap outside closes), not
   the hover state a tap leaves behind. */
@media (hover: none) {
  .zw-block .zw-tip:hover .zw-tip-key[aria-expanded="false"]:not(:focus-visible) + .zw-tip-body { display: none; }
}
/* The heads' explanations (improve_page.head_tips, the kit's tips): a head on the right opens its tip leftwards; on a
   phone every tip spans the window's width under its head. */
.zw-table th.zw-num .zw-tip-body { left: auto; right: 0; }
@media (max-width: 599.98px) {
  .zw-table th .zw-tip { position: static; }
  .zw-table th .zw-tip-body { position: fixed; left: .75rem; right: .75rem; top: auto; width: auto; max-width: none; }
}
/* The home leaderboard on a phone (Zeki #6752): every measure in the table too, not only in the details box. The list
   scrolls sideways inside its block (the kit's wide-table box, zw-ui v2.6+ .zw-wide; the page does not); rank and model
   stay at the left while it scrolls, the measures (the chosen one, the others, latency) to their right with their short
   heads, units and tips. */
@media (max-width: 599.98px) {
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table { width: max-content; min-width: 100%; }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table :is(th, td).zw-measure { width: auto; min-width: 7.5rem; }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table :is(th, td).zw-help {
    font-size: inherit; white-space: nowrap; overflow-wrap: normal; }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table .zw-help :is(.zw-val, .zw-cost, .zw-cost-num, .zw-int) {
    white-space: nowrap; overflow-wrap: normal; }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table :is(th.zw-rank, td.zw-rank, th:nth-child(2), td.zw-model) {
    position: sticky; z-index: 2; background: var(--panel, var(--zw-panel)); }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table :is(th.zw-rank, td.zw-rank) {
    left: 0; box-sizing: border-box; width: 2.4rem; min-width: 2.4rem; max-width: 2.4rem; }
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table :is(th:nth-child(2), td.zw-model) {
    left: 2.4rem; box-sizing: border-box; width: 9.5rem; min-width: 9.5rem; max-width: 9.5rem;
    box-shadow: 1px 0 0 var(--zw-edge); }
  /* The open row's model cell holds its details box (fixed, over the rows below): above their sticky cells. */
  #leaderboard .zw-panel:not([data-measure="learning"]) .zw-table .zw-open > td.zw-model { z-index: 41; }
}
/* The Learning results (home tab, /improve/) on a phone keep the result and its change in the table, the other values in
   the row's details box (Ümit via Zeki #6371), though the kit (v2.6+) would show every helper of a wide table there. */
@media (max-width: 599.98px) {
  html.zw-js :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table.zw-many .zw-help:not(.zw-keep-phone) {
    display: none; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table.zw-many td.zw-model { min-width: 0; max-width: none; }
}
/* From 600 px the results table keeps to its content (Ümit via Zeki #6371, #6374): the result chip at the right of
   its column and its change at the left of the next, so they read as one group ('✓ Yes +9.4'), risks found
   before → after right after them, right safety change and threshold next; a long head wraps in two lines. */
@media (min-width: 600px) {
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table :is(th, td).zw-measure {
    width: auto; min-width: 0; text-align: right; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table .zw-measure :is(.status, .learn-why) {
    display: inline-block; max-width: 9rem; text-align: left; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table :is(th, td).zw-keep-phone { text-align: left; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table th.zw-keep-phone .zw-tip-key { max-width: 4rem; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table :is(th, td).zw-keep-phone {
    padding-right: .3rem; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table :is(th, td).zw-keep-phone + :is(th, td) {
    padding-left: .3rem; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table td.zw-keep-phone [data-run2] {
    display: block; margin: .12rem 0 0; }
  :is(.zw-panel[data-measure="learning"], #improve-results .zw-panel) .zw-table th.zw-help .zw-tip-key {
    max-width: 7.5rem; white-space: normal; text-align: inherit; }
}
/* From 600 px the column kept on a phone (zw-ui.css lets it wrap anywhere, for 320 px) keeps its words and numbers
   whole, so the table's auto layout does not squeeze it to one letter per line. */
@media (min-width: 600px) {
  .zw-block .zw-table .zw-keep-phone, .zw-block .zw-table .zw-keep-phone .zw-val { white-space: nowrap; overflow-wrap: normal; }
}
.finding h2 { font-size: 1.25rem; }
.finding-text { max-width: 80ch; margin: 0 0 .75rem; }
.finding-chart { margin: 0; }
.section-caveat { margin-top: .6rem; }
.hbar-fill.q1-board, i.swatch-q1-board { background-color: var(--data-grey); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, rgba(0, 0, 0, .12) 3px 6px); }
/* The finding sections' own charts (story.py, Ümit #2938 item 2): one dot per model in its maker's colour, programs grey. */
.finding-svg { max-width: 640px; }
.chart-svg .sk-dot { stroke: var(--panel); stroke-width: 1; }
.chart-svg .sk-ref { fill: var(--data-grey); stroke: var(--panel); }
.chart-svg .sk-label { font-size: 10.5px; }
.chart-svg .sk-head { font-weight: 600; }
.chart-svg .sk-row { font-size: 10.5px; }
.chart-svg .rd-line, .chart-svg .th-line { fill: none; stroke-width: 2; opacity: .8; }
.chart-svg .th-dot { stroke-width: 2; }
.finding #too-safe-values { margin-top: .6rem; }
.finding .lp-chart { margin: 0; }
.footer-links { margin: .25rem 0 .4rem; }
.decisions-links, .about-links { margin: 0 0 1rem; }
/* The compact filter row (home.filters; Ümit, bus #2570 item 1; on the Leagues page since #2938): league, models,
   More filters, the setup count and Reset on one line where they fit, in a compact key size. The row is
   always open: its body's selector outranks site.css's `.filters:not(.is-open) .filters-body { display: none }`
   (the collapsible filter panel, which this row is not), which had hidden the whole row. */
.filter-row { padding: 6px 10px; }
nav.filters.filter-row .filters-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; padding: 0; border: 0; }
.filter-row .group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.filter-row .group-label { color: var(--view-label); font-size: 10px; font-weight: 700; }
.filter-row .key { min-height: 26px; padding: 2px 8px; gap: 5px; font-size: 12.5px; }
.filter-row .face-nav { gap: 4px; }
.filter-row .face-nav a { min-height: 26px; padding: 2px 8px; border-width: 1.5px; border-radius: 6px; font-size: 12.5px; }
.filter-row .filters-more { flex: 1 1 100%; gap: 4px 18px; padding-top: 4px; border-top: 1px dashed var(--edge); }
.filter-row .filters-count { margin-left: auto; }
.filter-row .reset-why { display: none; }
@media (max-width: 640px) {
  .filter-row .group-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filter-row .key { min-height: 24px; padding: 1px 7px; font-size: 12px; }
  .filter-row .filters-count { margin-left: 0; }
}
/* A setup's tag after its official name outside the leaderboard (Ümit #4445): setting · route · snapshot, small, grey,
   as the leaderboard's chip. */
.name-tag { display: inline-block; margin-left: .35rem; padding: 0 .4rem; color: var(--text-2); font-size: .74rem;
  font-weight: 400; line-height: 1.35; vertical-align: .05rem; background: var(--sunk); border: 1px solid var(--edge);
  border-radius: 999px; }
/* An own-machine cost in a chart is an estimate (Ümit #4450): marked beside its number. */
.hbar-value .est { color: var(--text-2); font-family: var(--sans); font-size: .72rem; }
