/* The logic & math site's additions to tb-next's v3.css (copied unchanged beside this file): the sticky header (turkce's
   suite bar and the site bar, as the backgammon site's: Ümit #2980), the leaderboard, the Current work panel, the
   question pages, the question index's filters and outcome marks. */

/* The sticky header: the suite strip, then the site bar (the Hilde leaf and the site's name, the theme keys at the right,
   under them one row of tabs that scrolls sideways where it does not fit, the page's tab underlined in the link colour).
   It stays at the top of the window on every width; site.js keeps --view-bar-h at its height. */
html { --view-bar-h: 84px; scroll-padding-top: calc(var(--view-bar-h) + 8px); }
.site-header { position: sticky; top: 0; z-index: 20; margin: 0 -1rem .75rem; background: var(--view-bg); box-shadow: var(--shadow); }
.site-bar { padding: 0 1rem; background: var(--view-bg); border-bottom: 1px solid var(--view-edge); }
.site-bar-in { max-width: 1100px; margin: 0 auto; }
.site-title-row { display: flex; align-items: center; gap: .6rem; padding: 6px 0 0; }
.site-title { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; color: var(--text); font-size: 1.15rem;
  font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.site-leaf { flex: none; width: 26px; height: 26px; object-fit: contain; }  /* Hilde Reader's PNG, whole canvas; a tad larger (Ümit #10818/#10821), as Reading's top bar (turkce #10834) */
.site-tag { padding: 0 .35rem; color: var(--text-2); border: 1px solid var(--edge); border-radius: 4px; font-size: .7rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.site-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-controls .key { min-height: 24px; padding: 1px 8px; gap: 5px; font-size: 12px; }
.site-tabs ul { display: flex; gap: .2rem; list-style: none; margin: 0 -.35rem; padding: 0 .35rem; overflow-x: auto;
  scrollbar-width: none; scroll-padding-inline: .35rem; }
.site-tabs ul::-webkit-scrollbar { display: none; }
.site-tabs li { flex: none; }
.site-tabs a { display: block; padding: 6px 10px 4px; color: var(--text-2); font-size: .92rem; font-weight: 600;
  line-height: 1.25; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.site-tabs a:hover { color: var(--text); border-bottom-color: var(--edge); }
.site-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--link); }
.site-tabs a:focus-visible { outline-offset: -2px; }
@media print { .site-tabs, .needs-js { display: none !important; } }
html:not(.js) .needs-js { display: none !important; }
.hv-sub { color: var(--text-2); }
td.probs span { white-space: nowrap; }
/* A wide value column (accuracy with its interval and letters, costs in both units) that never wraps. */
.chart-wide .hbar:not(.cols), .chart-wide .hbars:not(.cols) > .hbar { grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr) 15rem; }
.chart-wide .hbar-value { white-space: nowrap; }
.chart-wide .hbar.cols, .chart-wide .hbars.cols > .hbar { grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr) repeat(var(--cols), 7.5rem); }
.chart-wide .cols .hbar-value { white-space: normal; }
/* A test page's own keys (shell.view_keys: part, models, size, measure), in the card under its title. */
.view-keys { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: .2rem 0 .7rem; }
.view-keys-row { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.view-keys-label { color: var(--text-2); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.view-keys ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.view-keys a { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 .5rem; color: var(--tab-text);
  background: var(--tab-bg); border: 1.5px solid var(--tab-edge); border-radius: 6px; font-size: .8rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; }
.view-keys a[aria-current] { color: var(--tab-current-text); background: var(--tab-current-bg); border-color: var(--tab-current-bg); }
/* The footer's links. */
.footer-links { display: flex; gap: 1rem; margin: 0 0 .5rem; font-weight: 600; }
@media (max-width: 640px) {
  html { --view-bar-h: 80px; }
  .site-header { margin: 0 -.6rem .55rem; }
  .site-bar { padding: 0 .6rem; }
  .site-title-row { gap: .3rem; padding-top: 4px; }
  .site-title { gap: .3rem; font-size: .95rem; }
  .site-leaf { width: 22px; height: 22px; }
  .site-tabs a { padding: 5px 8px 4px; font-size: .88rem; }
  /* Six tabs (Experiments added, zeki #4836): they wrap onto a second line rather than scroll, so none is cut off. */
  .site-tabs ul { flex-wrap: wrap; overflow-x: visible; row-gap: 0; }
  .theme-switch .key { padding: 1px 6px; gap: 4px; font-size: 11.5px; }
  .view-keys-row { align-items: flex-start; }  /* the rows wrap rather than scroll sideways, so no key is cut off (zeki #4177) */
  .view-keys-row .view-keys-label { padding-top: .35rem; }
  .chart-wide .hbar:not(.cols), .chart-wide .hbars:not(.cols) > .hbar { grid-template-columns: minmax(0, 1fr) 12.5rem; }
  .chart-wide .hbar-value { font-size: .74rem; }
  .chart-wide .hbar.cols, .chart-wide .hbars.cols > .hbar { grid-template-columns: minmax(0, 1fr) repeat(var(--cols), 3.7rem); column-gap: .35rem; }
}

/* Result cards, empty states and charts of the test pages. */
.empty-state { padding: .8rem 1rem; color: var(--text-2); background: var(--sunk); border: 1px dashed var(--edge); border-radius: 8px; }
.letters { font-family: var(--mono); color: var(--text-2); }
.chart-box { overflow-x: auto; }
.chart-box svg .grid { stroke: var(--edge); stroke-width: 1; }
.chart-box svg .axis { stroke: var(--text-2); stroke-width: 1.2; }
.chart-box svg .tick { fill: var(--text-2); font-size: 11px; font-family: var(--mono); }
.chart-box svg .axis-title { fill: var(--text); font-size: 12px; font-weight: 600; }
.charts > * + * { margin-top: 1rem; }
.hbar-fill.kept-wrong { background: var(--wrong); }
.group-copy > section { margin-bottom: 1rem; }
.footer .internal { color: var(--text); }
.card .face-nav { margin: .4rem 0 .75rem; }
.card .face-nav:last-child { margin-bottom: 0; }
.ok { color: var(--accepted); font-weight: 650; }
.bad { color: var(--wrong); font-weight: 650; }
@media screen { :root:not([data-theme="light"]) .ok { color: #4ade80; } :root:not([data-theme="light"]) .bad { color: #f87171; } }
.small.inline { display: inline; }
/* Home leaderboard: long subheaders wrap, short columns keep their natural width. */
@media (min-width: 641px) { table.board.headline.wrap-headers thead th:not(:first-child) { min-width: 0; } }
.cost-mark { font-size: .78rem; color: var(--text-2); }
.cost-gpu { display: block; font-size: .78rem; color: var(--text-2); }
/* A GPU-time cost: the amount, then a small 'estimate · <machine>' line (shell.estimate_cell). */
.cost-est { display: inline-block; max-width: 100%; }
.cost-est.cost-tip { text-decoration: none; }
.cost-est > .cost-1k, .cost-est > .cost-1m { text-decoration: underline dotted; }
.cost-machine { display: block; font-size: .72rem; color: var(--text-2); font-weight: normal; }
@media (min-width: 641px) { .cost-machine { white-space: nowrap; } }
@media (max-width: 640px) { .cost-machine { white-space: normal; } }
/* A GPU-time cost's machine name: its method, pauses and rate show on hover, focus or tap (shell.gpu_tip). */
.cost-tip { position: relative; cursor: help; text-decoration: underline dotted; }
.cost-tip:hover::after, .cost-tip:focus::after { content: attr(data-tip); position: absolute; z-index: 20; left: 0; top: 100%;
  width: min(26rem, 80vw); padding: .4rem .5rem; background: var(--bg, #fff); color: var(--text, #111); border: 1px solid var(--edge);
  border-radius: 4px; font-size: .78rem; line-height: 1.35; white-space: normal; text-align: left; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
/* Column-head explanations (Ümit #9113): the side columns' boxes open to the left, so they stay on screen; narrower. */
th .head-tip:hover::after, th .head-tip:focus::after { font-weight: 400; width: min(20rem, 80vw); }
th.lb-wide .head-tip:hover::after, th.lb-wide .head-tip:focus::after { left: auto; right: 0; }
/* Below 900 px the table scrolls sideways inside its wrap, which clips a box anchored to the head: there the box is a
   panel pinned to the bottom of the screen instead, full width, so it is never cut off (tested at 390 px). */
@media (max-width: 899.98px) {
  th .head-tip:hover::after, th .head-tip:focus::after,
  th.lb-wide .head-tip:hover::after, th.lb-wide .head-tip:focus::after { position: fixed; left: .75rem; right: .75rem; top: auto;
    bottom: .75rem; width: auto; z-index: 50; font-size: .85rem; }
}

/* Current work. */
.progress { display: block; width: 100%; min-width: 8rem; height: .7rem; margin: .2rem 0 .15rem; background: var(--sunk);
  border: 1px solid var(--edge); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--data-grey); }
.job-running .progress > span { background: var(--accepted); }
.job-finished .progress > span { background: var(--text-2); }
.job-stalled .progress > span { background: var(--grammar); }
td.progress-cell { min-width: 12rem; width: 35%; }
.state { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; }
.state-running .lamp { background: var(--accepted); box-shadow: 0 0 0 1px var(--accepted), 0 0 5px 1px var(--accepted); }
.state-stalled .lamp { background: var(--lamp-on); box-shadow: 0 0 0 1px var(--lamp-on), 0 0 5px 1px var(--lamp-glow); }
.state-stalled { color: var(--grammar-text); }
@media screen { :root:not([data-theme="light"]) .state-stalled { color: #fb923c; } }

/* Question pages: the texts side by side, one column on a phone. */
.qtexts { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; }
.qtext { min-width: 0; }
.qtext h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.qcontext { padding: .5rem .75rem; margin: 0 0 .75rem; background: var(--sunk); border-left: 3px solid var(--edge); border-radius: 4px; }
.qcontext p, .qstem p { margin: 0 0 .6rem; }
.qcontext p:last-child, .qstem p:last-child { margin-bottom: 0; }
.qstem { font-weight: 600; margin: 0 0 .6rem; }
.qoptions { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.qoptions li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; align-items: baseline; gap: .4rem;
  padding: .25rem .5rem; border: 1px solid transparent; border-radius: 6px; }
.qoptions li.is-key { border-color: var(--accepted); background: var(--sunk); }
.opt-letter { font-family: var(--mono); font-weight: 700; }
.opt-text p { margin: 0 0 .3rem; }
.key-mark { color: var(--accepted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@media screen { :root:not([data-theme="light"]) .key-mark { color: #4ade80; } }
.key-letter { font-family: var(--mono); font-size: 1.1rem; }
code.tex { padding: 0 .2rem; background: var(--sunk); border: 1px solid var(--edge); border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
code.tex-block { display: block; margin: .3rem 0; padding: .3rem .5rem; }
table.qtable { width: auto; margin: .4rem 0; font-size: .85rem; }
table.qtable td, table.qtable th { padding: .25rem .5rem; border: 1px solid var(--edge); }
.reply { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--edge); }
.reply h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; margin: 0 0 .5rem; font-size: 1rem; }
.reply details { margin: .35rem 0; }
.reply summary { cursor: pointer; color: var(--text-2); font-size: .88rem; font-weight: 600; }
pre.reply-text { margin: .4rem 0 0; padding: .6rem .75rem; max-height: 40rem; overflow: auto; background: var(--sunk); border: 1px solid var(--edge);
  border-radius: 6px; font-family: var(--mono); font-size: .78rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.run-record { margin: 0 0 1.25rem; padding-top: .75rem; border-top: 1px solid var(--edge); }
.run-record h3 { margin: 0 0 .5rem; font-family: var(--mono); font-size: .95rem; }
.run-record pre.input-text { white-space: pre-wrap; }

/* The question index. */
.q-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; margin: .5rem 0; }
.q-filters .control { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .15rem; font-size: .78rem; color: var(--text-2); }
.q-filters input[type="search"] { width: 12rem; }
.q-filters[hidden] { display: none; }
.q-count { font-family: var(--mono); font-size: .85rem; color: var(--text-2); }
table.q-index td, table.q-index th { padding: .3rem .45rem; }
table.q-index td.model { min-width: 11rem; }
td.answers { white-space: nowrap; font-size: .82rem; }
.charts { margin: 0 0 1rem; }

/* The Non-hallucination view: a heading per model group (All shows Decision, then Chat) and the two sub-sections. */
.group-section { margin: 0 0 1.5rem; }
.group-heading { margin: 1.25rem 0 .6rem; padding: .35rem .7rem; font-size: 1.15rem; background: var(--view-bg);
  border-left: 4px solid var(--view-current-edge); border-radius: 4px; }
.nh-part { margin-bottom: .75rem; }
.nh-part h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.nh-part .note { margin: 0; }
.finished-jobs { margin-top: .6rem; }
.finished-jobs > summary { cursor: pointer; color: var(--text-2); font-size: .88rem; font-weight: 600; }
td[data-label="GPU"] { white-space: nowrap; }

/* The 95% interval across an accuracy bar: a line with end caps in the text colour (shell.hbars whisker). */
.hbar-whisker { position: absolute; top: 50%; height: 0; border-top: 1.5px solid var(--text); pointer-events: none; }
.hbar-whisker::before, .hbar-whisker::after { content: ""; position: absolute; top: -5px; height: 8px; border-left: 1.5px solid var(--text); }
.hbar-whisker::before { left: 0; }
.hbar-whisker::after { right: 0; }
.whisker-note { display: block; margin-top: .3rem; }
.versus-icon { fill: var(--text); }
.how-scores ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; }
.how-scores li { margin: .3rem 0; }
/* The front page's finding sections: the finding as the heading, one chart, a few sentences, one link. */
.card.story > h2 { font-size: clamp(.95rem, 1.25vw, 1.1rem); line-height: 1.3; }
.story > p { max-width: 62rem; }
.section-caveat { margin: .5rem 0 0; color: var(--text-2); font-size: .85rem; }
/* Compact headings (Ümit #3521): page titles and card headings one or two lines, the charts and tables right under them. */
main > .card h1, .hero-card h1 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.25; margin: 0 0 .35rem; }
.card > h2 { font-size: clamp(.95rem, 1.2vw, 1.05rem); margin-bottom: .5rem; padding-bottom: .35rem; }
/* The front page's hero: the title only (zeki #4793, as Reading); the leaderboard right under it. */
.hero-card { max-width: none; padding-top: .8rem; padding-bottom: .6rem; }
.hero-card h1 { margin-bottom: 0; }
/* Link buttons (the internal Questions tab's indexes). */
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; }
.hero-links a { display: inline-flex; align-items: center; min-height: 2.3rem; padding: .3rem .8rem; color: var(--view-text);
  background: var(--view-key); border: 1.5px solid var(--view-key-edge); border-radius: 8px; font-weight: 700;
  text-decoration: none; box-shadow: var(--key-shadow); }
.hero-links a:hover { border-color: var(--view-key-hover); }
.hero-links a:first-child { color: var(--view-current-text); background: var(--view-current-bg); border-color: var(--view-current-edge); }
/* The leaderboard (home.leaderboard): its keys in one row, two lines of text, the rows (rank, the model with its maker dot
   and the line under it, the main score as a bar with its 95% interval), five more columns from 900 px; a row's details
   box opens on hover or focus, on a phone on a tap of the model's name (site.js). */
.leaderboard > h2 { margin: 0 0 .4rem; }
.lb-controls { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 .5rem; }
.lb-keys { display: flex; flex-wrap: wrap; gap: .25rem; }
.lb-keys .key { min-height: 1.9rem; padding: .15rem .65rem; font-size: .82rem; }
.lb-keys .key[aria-pressed="true"] { color: var(--view-current-text); background: var(--view-current-bg); border-color: var(--view-current-edge); }
/* The front page's Measure keys: Accuracy is this leaderboard (a pressed key), the others are links to the test pages
   drawn as keys (zeki #4154). */
.lb-measures { margin: 0 0 .45rem; }
.lb-keys a.key { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; background: var(--key);
  border: 1px solid var(--control-edge); border-radius: 6px; box-shadow: var(--key-shadow); line-height: 1.2; }
.lb-keys a.key:hover { border-color: var(--text-2); }
.lb-line { margin: .2rem 0 .45rem; color: var(--text-2); font-size: .86rem; max-width: 62rem; }
.lb-rule { margin-top: .5rem; }
.lb-provisional { margin: 0 0 .45rem; font-size: .84rem; }
.js [data-lb-panel][hidden], .js [data-lb-view][hidden], .lb-empty[hidden] { display: none; }
table.lb-table td.model { min-width: 13rem; }
table.lb-table thead th:nth-child(2), table.lb-table thead th:nth-child(3) { text-align: left; }
i.swatch.lb-dot { width: .7rem; height: .7rem; margin-right: .35rem; border-radius: 50%; vertical-align: -.05rem; }
table.lb-table .hl-type { display: block; }
td.lb-score { width: 45%; min-width: 9rem; }
.hl-bar { position: relative; display: block; height: .8rem; margin: .2rem 0 .25rem; background: var(--sunk); border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--edge); }
.hl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--mark-edge); }
.hl-int { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--text); box-shadow: 0 0 0 1px var(--panel); }
.hl-val { font-family: var(--mono); font-size: .84rem; }
.hl-val .small { display: inline; margin-left: .4rem; }
tr.hl-off { display: none !important; }
/* The Size keys' row (Ümit #4156), the size label beside each name, a line above each new tier: 2px so it wins over the
   row above's 1px border (border-collapse) and stands out from the rows' own lines. */
.lb-keys-label { align-self: center; margin-right: .2rem; color: var(--text-2); font-size: .82rem; }
.lb-size { color: var(--text-2); font-size: .76rem; white-space: nowrap; margin-left: .45rem; }  /* never runs into the name (Ümit #4269) */
.name-tag { color: var(--text-2); font-size: .76rem; font-weight: 400; white-space: nowrap; margin-left: .3rem; }  /* setting · route · snapshot (Ümit #4445) */
.lb-mark { margin-left: .1rem; font-size: .62rem; line-height: 0; letter-spacing: .02em; cursor: help; }
table.lb-table tbody tr.lb-tier-start > td { border-top: 2px solid var(--text-2); }
/* Ümit via zeki #4611: the class rule as one short line (thresholds open under '*'); nothing is dropped. */
.class-rule { margin: .3rem 0 .6rem; font-size: .85rem; color: var(--text-2); }
.class-rule > summary { cursor: pointer; }
.class-rule .star { color: var(--link); }
.class-rule > p { margin: .35rem 0 0; }
th.lb-tier-head { font-size: .72rem; letter-spacing: .01em; }  /* 'Tier' fits the narrow first column (zeki #4629) */
/* PREVIEW (Ümit #4217): a class key with no model in view is hidden; the 'with web' / 'sample' label of an untiered row. */
.lb-keys .key[hidden], .view-keys li[hidden] { display: none !important; }
.lb-flag { color: var(--text-2); font-size: .72rem; white-space: nowrap; border: 1px solid var(--text-2); border-radius: .6rem; padding: 0 .35rem; }
table.lb-table tbody tr.hl-open > td { background: var(--row-hover); }
.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; }
.hl-box .cost-gpu { display: inline; margin-left: .3rem; }
.hbar-label .hl-box { text-align: left; font-weight: normal; }
.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; }
.hl-more { display: block; margin-top: .2rem; padding: 0; border: 0; background: none; color: var(--link); font: inherit;
  font-size: .8rem; cursor: pointer; text-decoration: underline dotted; }
.hl-more::before { content: "\25B8\00a0"; }
.hl-more[aria-expanded="true"]::before { content: "\25BE\00a0"; }
/* The models keys and All setups in one row (zeki #4793); the time of the last answer under the table. */
.lb-keys-row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.lb-updated { margin: .35rem 0 0; font-size: .8rem; }
/* A model's name opens its details box (site.js setupDetails; zeki #5462): no key under it. A name that is not a link
   (a Vision row, a chart row without a page) and a chart dot show they open something. */
:is(span.model-name, span.hbar-name)[tabindex] { cursor: help; text-decoration: underline dotted; text-underline-offset: .15em; }
svg [data-box] { cursor: help; }
.chart-box > .hl-box { display: none; }  /* a dot's box, beside its SVG: only as a popover (without JavaScript none) */
.hbar-axis { pointer-events: none; }  /* its ticks, which can sit over the first name on a phone, never take its tap */
/* The Repeat checks (Experiments tab; zeki #4831, #4838): one compact table per part, ranked by the repeat; on a phone the
   rank, the model and status only, the numbers in the row's details (as the leaderboard), no sideways scroll. */
#repeat-checks > h3 { margin: .7rem 0 .35rem; font-size: .92rem; }
table.repeat-table td.model { white-space: normal; }
table.repeat-table th:first-child, table.repeat-table td.rc-rank { width: 2.6rem; }
.rc-details { margin: .2rem 0 0; font-size: .8rem; }
.rc-details > summary { cursor: pointer; }
.rc-details p { margin: .25rem 0 0; }
.rc-phone { display: none; }
.rc-line { display: none; }
@media (max-width: 599.98px) {
  .rc-line { display: block; margin: .15rem 0 0; color: var(--text-2); font-family: var(--mono); font-size: .76rem; }
  table.repeat-table .rc-wide { display: none; }
  .rc-phone { display: block; font-weight: 600; }
  table.board.repeat-table { table-layout: auto; width: 100%; }
  table.board.repeat-table td:first-child, table.board.repeat-table th:first-child { position: static; min-width: 0; max-width: none; width: auto; }
}
tr.hl-sub[hidden] { display: table-row; }
.js tr.hl-sub[hidden] { display: none; }
tr.hl-sub td { background: var(--sunk); }
tr.hl-sub td.model { padding-left: 1.6rem; }
/* The side columns show at every width (zeki #6751 on Ümit #6706: on a phone too, not only in the model box); below
   900 px the table scrolls sideways inside its .table-wrap, the page itself does not. */
table.lb-table .lb-wide { display: table-cell; white-space: nowrap; }
/* Heads wrap so the added Latency column (Ümit #6706) fits without the table scrolling sideways at 1280 px. */
table.lb-table thead th.lb-wide { white-space: normal; min-width: 4.5rem; }
@media (min-width: 900px) {
  td.lb-score { width: 32%; }
}
@media (max-width: 899.98px) {
  table.lb-table .lb-wide { font-size: .8rem; }
}
.more-views-box { margin-top: .6rem; }
.more-views-box > summary { cursor: pointer; font-weight: 650; }
.more-views { margin: .4rem 0 0; padding-left: 1.1rem; }
.more-views li { margin: .2rem 0; }
.more-views-part { display: inline-block; min-width: 3.2rem; font-weight: 700; }
.finding-link { margin: .3rem 0 0; font-weight: 600; }
.story > figure { margin: .5rem 0 .6rem; }
@media (max-width: 640px) {
  .hero-links a { min-height: 2rem; padding: .2rem .6rem; font-size: .88rem; }
  /* The key rows wrap onto more lines rather than scroll sideways, so no key is cut off at the edge (zeki #4177; Ümit
     #4163 asked the same of the tab bar). Each group stays on its own line(s). */
  .lb-controls { flex-direction: column; gap: .35rem; }
  .lb-keys-row { gap: .25rem .45rem; }
  .lb-keys { flex-wrap: wrap; }
  .lb-keys .key { min-height: 1.7rem; padding: .1rem .45rem; font-size: .76rem; white-space: nowrap; }
  .lb-keys.lb-measures { margin: 0 0 .45rem; }
  table.board.lb-table { table-layout: auto; width: 100%; }
  table.board.lb-table td.model { min-width: 8.5rem; white-space: normal; }
  table.board.lb-table td.lb-score { width: 38%; min-width: 6.5rem; }
  table.board.lb-table th:first-child, table.board.lb-table td:first-child { width: 1.6rem; min-width: 0; padding-left: .15rem; padding-right: .25rem; }
  .hl-val .small { display: block; margin-left: 0; }
}

/* The Vision tab (Ümit #5266, as Reading's Vision page): the keys, one panel in view (its chart or its table), every setup
   with its state; the language line, the averages and the method under the results. On a phone the tables keep three
   columns (the tie group and the points move under the name), so nothing scrolls sideways. */
#vision h1 { margin-bottom: .5rem; }
#vision .view-keys { margin-bottom: 0; }
.vision-repeats-link { margin: .45rem 0 0; font-size: .86rem; font-weight: 600; }
.vision-withdrawn-table .vr-line { white-space: normal; }
.vw-status { margin: .35rem 0 0; font-size: .86rem; }
.vision-panel > div + div { margin-top: 0; }
/* Its grid's one column never grows past the page (at 320 px a table's content made it 349 px wide: the table now scrolls
   in its own box). */
.vision-panel > * { min-width: 0; }
.vision-more { margin: .6rem 0 0; }
.vision-go { font-weight: 600; white-space: nowrap; }
.vision-state { font-weight: 650; }
table.vision-table td.model, table.vision-roster-table td { white-space: normal; }
.vision-panel[hidden], [data-vision-show][hidden] { display: none !important; }
.vt-line { display: none; }
.vr-line { display: block; font-family: var(--mono); font-size: .78rem; white-space: nowrap; }
.vr-line .vr-name { font-family: var(--sans); }
.vr-na { font-family: var(--sans); white-space: normal; }
.vision-roster h2 { margin-bottom: .2rem; }
.vr-state { display: block; margin-top: .15rem; font-size: .84rem; }
@media (max-width: 640px) {
  .vr-line .vr-name { display: none; }
  .vt-line { display: block; }
  table.vision-table .vt-wide { display: none; }
  table.board:is(.vision-table, .vision-roster-table) { table-layout: auto; width: 100%; }
  table.board:is(.vision-table, .vision-roster-table) :is(td, th):first-child { position: static; width: auto; min-width: 0;
    max-width: none; box-shadow: none; }
  table.board:is(.vision-table, .vision-roster-table) td.num { white-space: normal; }
}
.vision-lang { margin: .2rem 0 .6rem; }
.vision-gaps { margin: .4rem 0 .3rem; padding-left: 1.1rem; }
.vision-gaps li { margin: .2rem 0; }
.vision-method > summary { cursor: pointer; font-weight: 650; }
.vision-method[open] > summary { margin-bottom: .5rem; }
.chart-card .table-wrap { margin-top: .8rem; }
/* Ümit #4317, #4318; zeki #4320, #4337: the Decision style section on the Logic page (decision models). */
.decision-style .chart-box svg .style-name { fill: var(--text-2); font-size: 11px; font-weight: 650; }
.decision-style .style-sub { margin: 1rem 0 .3rem; font-size: 1rem; }
.decision-style .style-note { margin: .4rem 0 0; }
.decision-style .style-key svg { vertical-align: -.15rem; margin-right: .25rem; }
.decision-style tr.style-chosen td { font-weight: 650; }
.decision-style .style-method { margin-top: .8rem; }
.decision-style .style-method > summary { cursor: pointer; font-weight: 650; }
.decision-style .chart-box { min-height: 0; }
.decision-style tr.style-head > td { border-bottom: 0; font-weight: 600; }
.decision-style tr.style-members > td { padding-top: 0; color: var(--text-2); font-size: .85rem; white-space: normal; }
.decision-style .style-sensitivity { margin: .2rem 0 .6rem; padding: .5rem .7rem; border-left: 3px solid var(--text-2); background: var(--sunk); font-weight: 600; }
.decision-style .style-k-keys > .style-k-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.decision-style .style-k-keys > label.key { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .7rem; margin: 0 .35rem .6rem 0;
  font-size: .85rem; color: var(--text); background: var(--key); border: 1px solid var(--control-edge); border-radius: 6px; box-shadow: var(--key-shadow); cursor: pointer; }
.decision-style .style-k-input:checked + label.key { color: var(--view-current-text); background: var(--view-current-bg); border-color: var(--view-current-edge); }
.decision-style .style-k-input:focus-visible + label.key { outline: 2px solid var(--text); outline-offset: 2px; }
.decision-style .style-chart-note { margin: .5rem 0 0; }
.decision-style .style-change { margin: .5rem 0 0; }
/* Phone: each table scrolls sideways inside its own box; the first column (model or style) stays in view. */
.decision-style .table-wrap { max-width: 100%; overflow-x: auto; }
.decision-style table.style-table tbody td:first-child, .decision-style table.style-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.decision-style table.style-table tr.style-members > td:first-child { position: static; }
