/* kit.css: the look every motion visual shares (newsroom/visual-kit/kit.css). build.py puts it first in styles.css and the
   visual's own CSS after it.
   REVISED 19 October 2026 (tooltip redesign, see DESIGN-REVIEW-2026-10-19.md, tuned in a browser the same day). The tooltip is a paper sheet
   with a caret, a peek on hover or focus and the whole record on click, tap or Enter, and it never uses a chart colour. Charts built before
   19 October 2026 carry the previous kit (archive-2026-10-19/kit.css) until they are rebuilt. Every class name is kept.
   Palette: dark card, white text, indigo and cyan for marks, rose only for "not confirmed / not stated", amber only for a note.
   The tooltip is not part of that palette: it is a paper sheet with its own ink (the --tk tokens), so no chart colour is used in it.
   Two frames on one DOM: tall (the fixed 1060px frame below 900px wide) is the base; wide (the block's aspect ratio, 5:4 or
   16:10 on screens 900px and wider) overrides it in the media query near the end. The wide query must match WIDE_QUERY in kit.js.
   Wide sizes are in rem and the root font size scales with the frame, so the wide design is one fixed composition. */
:root {
  --bg: #0b1726; --panel: #102039; --panel2: #16294a; --line: #2f4668; --line2: #4a6590;
  --mute: #b9c7dc; --ink: #0b1726;
  --indigo: #635bff; --indigo-t: #b3afff; --cyan: #06b6d4; --cyan-t: #3fd9f0; --rose: #fb7185; --amber: #fbbf24;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* tooltip tokens: a soft paper (not white: white glares on the dark card), ink, and two signs (a teal rule for this site's arithmetic, a rose label for what is not stated) */
  --tk-paper: #ecf0f7; --tk-tint: #dce4f0; --tk-ink: #16223a; --tk-body: #2b3a55; --tk-mute: #4f5b74; --tk-rule: #64748b;
  --tk-der: #0f766e; --tk-ns: #be123c; --tk-ns-bg: #fcebee; --tk-edge: #c7d0e0; --tk-fade: rgba(22, 34, 58, 0.25);
  --tk-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; font-size: 16px; }
body { margin: 0; background: var(--bg); color: #fff; font-family: var(--font); line-height: 1.35; min-height: 100vh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.lw { display: none; }
.lt { display: inline; }

/* ---------- the frame ---------- */
.stage { position: relative; display: flex; flex-direction: column; height: 100vh; padding: 0.6rem 0.7rem 0.5rem; gap: 0.4rem; max-width: 46rem; margin: 0 auto; }
.top { display: flex; flex-direction: column; gap: 0.4rem; }
h1 { margin: 0; font-size: 1.1rem; line-height: 1.2; font-weight: 700; }
.ctl { display: flex; gap: 0.5rem; }
.btn { min-height: 2.5rem; min-width: 5.5rem; padding: 0 1rem; border: 1px solid #5b7399; background: var(--panel2); border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.btn:hover:not(:disabled) { border-color: #fff; }
.btn:disabled { color: #a8b6cc; border-color: var(--line); background: transparent; cursor: default; }
.btn[hidden] { display: none; }

/* ---------- slider row: label, range input, readout ---------- */
.scrub { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; align-items: center; flex: none; }
.scrub-l { font-size: 0.875rem; color: var(--mute); white-space: nowrap; }
.scrub input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.2rem; margin: 0; background: transparent; cursor: pointer; }
.scrub input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: #3a5278; }
.scrub input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #3a5278; }
.scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 5px solid var(--indigo); }
.scrub input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--indigo); }
.when { grid-column: 1 / span 2; margin: 0; font-size: 0.875rem; color: var(--mute); min-height: 1.35em; }

/* ---------- tooltip: a paper sheet over the chart. Tall: a full width sheet beside the target. Wide: floats beside it ----------
   Two sizes. A peek (hover or keyboard focus) shows the kick, title, a plain sentence of at most two lines, the sources in
   a line or two and the not stated line (three lines). A pinned sheet (click, tap, Enter) shows the whole record and a Close bar. A short tip
   carries the class open and shows everything at once. Rules that must beat a chart's own overrides start with .stage. */
/* TIP:BEGIN */
.dock { flex: none; }
.tip { position: absolute; left: 0.5rem; right: 0.5rem; bottom: auto; z-index: 30; }
.tip[hidden] { display: none; }
.stage .tip { --fs: 0.9rem; --sm: 0.875rem; max-height: 80%; overflow: auto; overscroll-behavior: contain; padding: 0.8rem 0.9rem 0.85rem; background: var(--tk-paper); color: var(--tk-ink); border: 0; border-radius: 0.4rem; font-size: var(--fs); line-height: 1.4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0.9rem 2.2rem rgba(0, 0, 0, 0.55); pointer-events: none; }
.stage .tip.pinned { pointer-events: auto; }
.stage .tip p { margin: 0; overflow-wrap: anywhere; }
.stage .tip .tk-kick { font-size: var(--sm); line-height: 1.35; color: var(--tk-mute); }
.stage .tip .tk-title { margin: 0.2rem 0 0 !important; font-size: 1rem; line-height: 1.25; font-weight: 700; color: var(--tk-ink); }
.stage .tip .tk-plain { margin: 0.4rem 0 0 !important; color: var(--tk-body); }
.stage .tip .tk-from { display: none; margin: 0.45rem 0 0; font-size: var(--sm); line-height: 1.35; color: var(--tk-mute); }
.stage .tip .tk-voice { margin: 0.65rem 0 0; }
.stage .tip .tk-cite { font-size: var(--sm); line-height: 1.35; font-weight: 600; color: var(--tk-ink); }
.stage .tip .tk-quote { margin: 0.3rem 0 0; padding: 0.35rem 0.6rem; border: 0; border-left: 3px solid var(--tk-rule); border-radius: 0 0.3rem 0.3rem 0; background: var(--tk-tint); font: normal 400 var(--fs) / 1.4 var(--tk-serif); color: var(--tk-ink); }
.stage .tip .tk-note { margin: 0.3rem 0 0; font-size: var(--sm); line-height: 1.35; color: var(--tk-mute); }
.stage .tip .tk-der { margin: 0.5rem 0 0 !important; padding-left: 0.6rem; border-left: 3px solid var(--tk-der); color: var(--tk-ink); }
.stage .tip .tk-mid { margin: 0.5rem 0 0 !important; color: var(--tk-body); }
.stage .tip .tk-ns { --lines: 3; margin: 0.65rem 0 0 !important; padding: 0.35rem 0.6rem; border-left: 3px solid var(--tk-ns); border-radius: 0 0.3rem 0.3rem 0; background: var(--tk-ns-bg); color: var(--tk-ink); }
.stage .tip .tk-lab { font-weight: 700; color: var(--tk-ns); }
.stage .tip .tk-ns + .tk-ns { margin-top: 0.25rem !important; }
.stage .tip.lean .tk-plain { display: none !important; }
.stage .tip .tk-hint { display: none; margin: 0.5rem 0 0; font-size: var(--sm); line-height: 1.35; color: var(--tk-mute); }
.stage .tip:not(.pinned) .tk-hint { display: block; }
/* a peek: the record steps aside (still read aloud), the sources shrink to a line, long text is clamped */
.stage .tip:not(.pinned):not(.open) .tk-more { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stage .tip:not(.pinned):not(.open) .tk-from { display: block; }
.stage .tip:not(.pinned):not(.open) .tk-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2); line-clamp: var(--lines, 2); overflow: hidden; }
/* the Close bar ends a pinned sheet. It is the last child, so it is the last stop in the reading order */
.stage .tip .tk-close { display: none; }
.stage .tip.pinned .tk-close { display: block; position: sticky; bottom: -0.85rem; width: calc(100% + 1.8rem); min-height: 2.75rem; margin: 0.8rem -0.9rem -0.85rem; padding: 0 0.9rem; border: 0; border-top: 1px solid var(--tk-edge); border-radius: 0 0 0.4rem 0.4rem; background: var(--tk-paper); box-shadow: 0 -0.5rem 0.6rem -0.5rem var(--tk-fade); color: var(--tk-ink); text-align: left; font-size: var(--sm); font-weight: 600; pointer-events: auto; }
.stage .tip.pinned .tk-close:hover { background: var(--tk-tint); }
.stage .tip.pinned .tk-close:focus-visible { outline: 3px solid var(--tk-ink); outline-offset: -3px; }
/* the caret joins the sheet to its target (kit.js tkCaret places it); the veil keeps shape and brightness but quiets the chart's colours */
.tk-strip { position: absolute; left: 0; width: 2px; opacity: 0; pointer-events: none; }
.tk-caret { display: none; position: absolute; z-index: 31; width: 12px; height: 12px; background: var(--tk-paper); transform: rotate(45deg); pointer-events: none; }
.tip[hidden] ~ .tk-caret { display: none !important; }
.stage.tipping::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; -webkit-backdrop-filter: saturate(0.6); backdrop-filter: saturate(0.6); }
.stage.tk-pinned::after { -webkit-backdrop-filter: saturate(0.4); backdrop-filter: saturate(0.4); }
/* TIP:END */
/* an alternative surface, a lifted dark sheet: add the class tk-dark to the stage to try it */
.stage.tk-dark { --tk-paper: #2f4a78; --tk-tint: #233a63; --tk-ink: #f8fafc; --tk-body: #e2e8f4; --tk-mute: #c3d0e4; --tk-rule: #8ea2c6; --tk-der: #7fdcc8; --tk-ns: #ffb3c0; --tk-ns-bg: #4a2f4d; --tk-edge: #52709e; --tk-fade: rgba(0, 0, 0, 0.35); }
.src { margin: 0; flex: none; font-size: 0.875rem; color: var(--mute); }
.tipping .src { display: none; }

/* ---------- wide frame ---------- */
@media (min-aspect-ratio: 21/20) {
  .lw { display: inline; }
  .lt { display: none; }
  html { font-size: min(calc(100vw / 53), calc(100vh / 42.4)); }
  body { overflow: hidden; }
  .stage { max-width: calc(100vh * 1.25); padding: 0.5rem 1rem 0.35rem; gap: 0.3rem; }
  .top { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
  h1 { font-size: 1.2rem; }
  .btn { min-height: 1.9rem; min-width: 4.6rem; padding: 0 0.8rem; font-size: 0.875rem; }
  .scrub { grid-template-columns: auto minmax(0, 20rem) 1fr; column-gap: 0.7rem; }
  .scrub-l { font-size: 0.875rem; }
  .scrub input[type="range"] { height: 1.6rem; }
  .scrub input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; border-width: 4px; }
  .when { grid-column: auto; font-size: 0.875rem; }
  .dock { position: static; height: 0; }
  /* TIPW:BEGIN */
  .tip { right: auto; width: 26rem; max-width: calc(100% - 1rem); }
  .stage .tip { --fs: 0.9rem; --sm: 0.9rem; max-height: calc(100% - 1rem); padding: 0.7rem 0.8rem 0.75rem; }
  .stage .tip.pinned { width: 30rem; }
  .stage .tip.pinned .tk-close { bottom: -0.75rem; width: calc(100% + 1.6rem); min-height: 2.2rem; margin: 0.7rem -0.8rem -0.75rem; padding: 0 0.8rem; }
  /* TIPW:END */
  .src, .tipping .src { display: block; font-size: 0.875rem; }
}

/* ---------- without script ----------
   A module script runs a moment after first paint, so the plain list waits 1.4 seconds before it appears. A reader with script
   never sees it flash, a reader without script still gets it. */
html:not(.js) .plain { opacity: 0; animation: nojs 0.01s 1.4s forwards; }
@keyframes nojs { to { opacity: 1; } }
html:not(.js) body { overflow: auto; }
html:not(.js) .stage { height: auto; min-height: 100vh; }
html:not(.js) .scrub, html:not(.js) .dock, html:not(.js) .ctl, html:not(.js) .chart { display: none; }
html.js .plain { display: none; }

/* ---------- reduced motion, and the freeze while a tooltip is open ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.frozen *, .frozen *::before, .frozen *::after { transition: none !important; animation: none !important; }

/* chart.css: the look of the Rank Math PRO 3.0.123 chart, after kit.css. Three regions: the two clocks to scale (6 to 20 October by day with the
   two changelog labels and the window, and 14 October 18:00 to 17 October 00:00 by the hour in UTC with BST beneath), one tabbed panel (a
   download time slider set against a version check and the notice, and the records with their dates), and a standing strip of what is not
   stated. The tall frame is the base (the fixed 1060px frame below 900px wide): a vertical stack of the same items, with the strip as a
   third tab. The wide frame overrides it in the media query at the end. Marks, bars, brackets and panel rows are real buttons. Wide sizes
   are in rem and the root font size scales with the frame, so the wide design is one fixed composition, 51rem wide inside the frame.
   Solid indigo is Rank Math's own words, a ring is a public record, grey is a security firm or the press, a dashed outline is a date with
   no time, cyan is a derived figure, rose is the window and what is not stated. */
:root { --grey: #cbd5e1; }
h1 { font-size: 1rem; }
.rv, .fr { opacity: var(--r, 1); }
.bk.rv { opacity: 1; }
.chart { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.when { margin: 0; flex: none; font-size: 0.875rem; line-height: 1.25; color: var(--mute); min-height: 1.25em; }
.plot { flex: none; min-width: 0; }
.stage [data-item]:hover, .stage [data-item].pin { outline: 2px solid #fff; outline-offset: 2px; }
html:not(.js) .when { display: none; }
.tlw { display: none; }
.mk::after, .sliver::after, .lbar::after { content: ""; position: absolute; inset: -0.2rem; }

/* ---------- the kinds of mark ---------- */
.kown.mk { background: var(--indigo); border: 2px solid #fff; border-radius: 50%; }
.krec.mk { background: var(--bg); border: 3px solid var(--indigo-t); border-radius: 50%; }
.kg { display: inline-block; flex: none; width: 0.85rem; height: 0.85rem; box-sizing: border-box; }
.kg.kown { background: var(--indigo); border: 2px solid #fff; border-radius: 50%; }
.kg.krec { background: var(--bg); border: 3px solid var(--indigo-t); border-radius: 50%; }
.kg.kdash { width: 1.3rem; height: 0.7rem; border: 2px dashed var(--indigo-t); border-radius: 0.25rem; }
.kn { color: var(--cyan-t); font-weight: 500; }

/* ---------- tall frame: the stack ---------- */
.tlt { position: relative; display: block; }
.tlt > li { position: relative; margin: 0 0 0.25rem; }
.lg { display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem; font-size: 0.875rem; line-height: 1.25; color: var(--mute); }
.li2 { display: inline-flex; align-items: center; gap: 0.35rem; }
.rul { padding: 0.35rem 0.1rem 0; }
.rtr { position: relative; height: 0.5rem; margin: 0.35rem 0 0.2rem; border-radius: 0.25rem; background: #3a5278; }
.rvb { position: absolute; top: 0; bottom: 0; background: rgba(99, 91, 255, 0.7); }
.rvb.dashed { background: transparent; border: 2px dashed var(--indigo-t); border-left: 0; }
.rwn { position: absolute; top: -0.25rem; bottom: -0.25rem; min-width: 4px; background: var(--rose); border-radius: 0.1rem; }
.rth { position: absolute; top: -0.35rem; bottom: -0.35rem; width: 3px; margin-left: -1px; background: #fff; border-radius: 0.1rem; opacity: 0; }
.rth.on { opacity: 1; }
.rth.inw { background: #fecdd3; box-shadow: 0 0 0 2px var(--rose); }
.rend { display: flex; justify-content: space-between; margin: 0; font-size: 0.875rem; line-height: 1.25; color: var(--mute); }
.grp { display: block; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.chip { min-width: 0; min-height: 1.6rem; margin: 0; padding: 0 0.45rem; border-radius: 0.3rem; font-size: 0.875rem; line-height: 1.2; font-weight: 500; color: #fff; text-align: center; white-space: nowrap; }
.chip.kown { background: var(--indigo); border: 2px solid var(--indigo); }
.chip.krec { background: transparent; border: 2px solid var(--indigo-t); }
.chip.dashed { background: transparent; border: 2px dashed var(--indigo-t); }
.chip.pin, .chip:hover { box-shadow: 0 0 0 2px #fff; }
.tbands { margin: 0; }
.bkr { margin: 0.05rem 0 0; }
.bkt { display: block; width: 100%; margin: 0; padding: 0.1rem 0.2rem 0.1rem 0.4rem; border: 0; border-left: 3px solid var(--cyan); border-radius: 0.3rem; background: none; text-align: left; font-size: 0.875rem; line-height: 1.3; min-height: 1.6rem; }
.bkt b { color: var(--cyan-t); font-weight: 500; }
.bkt span { color: var(--mute); }
.bkt:hover, .bkt.pin, .rr:hover, .rr.pin, .nsb:hover, .nsb.pin, .rc:hover, .rc.pin { background: rgba(99, 91, 255, 0.22); }

/* ---------- region 2: the tabbed panel (both frames) ---------- */
.sec, .ns { flex: none; background: #0d1a2d; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.4rem 0.5rem 0.5rem; }
.tabs { display: flex; gap: 0.3rem; }
.tabs .btn { flex: 1 1 auto; min-width: 0; min-height: 2.2rem; padding: 0 0.35rem; font-size: 0.875rem; white-space: nowrap; font-weight: 500; }
.tabs .btn[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; font-weight: 600; }
.sbody { margin-top: 0.4rem; }
.pane { display: none; }
.stage[data-view="try"] .vtry, .stage[data-view="rec"] .vrec { display: block; }
.stage[data-view="ns"] .sbody { display: none; }
.tonly { display: inline-flex; align-items: center; justify-content: center; }

/* the tab "Try a time": a slider, what the plugin was, and the two verdicts */
.tst { display: flex; flex-direction: column; gap: 0.4rem; }
.tsl.scrub { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.tsl .scrub-l { white-space: normal; line-height: 1.3; }
.tsl input[type="range"] { height: 1.9rem; }
.tro { margin: 0; font-size: 0.9rem; line-height: 1.3; font-weight: 600; color: #fff; }
.tsa { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.tsa .scrub-l { width: 100%; line-height: 1.3; }
.sbtn { min-width: 0; min-height: 2rem; padding: 0 0.6rem; font-weight: 500; white-space: nowrap; }
.sbtn[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; font-weight: 600; }
.sbtn:disabled[aria-pressed="true"] { background: rgba(99, 91, 255, 0.3); border-color: var(--indigo-t); color: #e4e2ff; }
.tpill { display: inline-block; padding: 0 0.6rem; border: 1px dashed var(--rose); border-radius: 0.6rem; font-size: 0.875rem; line-height: 1.5; color: #fecdd3; background: rgba(251, 113, 133, 0.12); white-space: nowrap; }
.tpill.in { border-style: solid; background: rgba(251, 113, 133, 0.35); color: #fff; }
.tres { display: grid; gap: 0.3rem; }
.rc { display: block; width: 100%; margin: 0; padding: 0.3rem 0.55rem; border: 1px solid var(--line2); border-radius: 0.4rem; background: var(--panel2); text-align: left; font-size: 0.9rem; line-height: 1.25; color: #fff; }
.rc .rch { display: block; color: var(--mute); font-size: 0.875rem; }
.rc .rcv { display: block; font-weight: 600; }
.tfix { margin: 0; font-size: 0.875rem; line-height: 1.3; color: var(--mute); }

/* the tab "Records": a name, a pill for what kind of source it is, when, and what it says */
.rcl { display: block; }
.ri { margin: 0 0 0.15rem; }
.rr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.4rem; align-items: center; width: 100%; margin: 0; padding: 0.2rem 0.4rem 0.25rem; border: 0; border-left: 3px solid var(--indigo); border-radius: 0.3rem; background: none; text-align: left; font-size: 0.875rem; line-height: 1.25; color: #fff; }
.rr.krec { border-left-color: var(--indigo-t); }
.rr.ksec { border-left-color: var(--grey); }
.rr .rn { font-weight: 600; }
.rr .rp { justify-self: end; padding: 0 0.45rem; border-radius: 0.6rem; border: 1px solid; font-weight: 500; white-space: nowrap; text-align: center; }
.rr.kown .rp { border-color: var(--indigo); color: #fff; background: rgba(99, 91, 255, 0.55); }
.rr.krec .rp { border: 2px solid var(--indigo-t); color: var(--indigo-t); background: transparent; }
.rr.ksec .rp { border-color: var(--grey); color: #e2e8f0; background: rgba(203, 213, 225, 0.14); }
.rr .rw, .rr .rs { grid-column: 1 / -1; color: var(--mute); }

/* ---------- region 3: what is not stated, always on screen ---------- */
.ns { display: none; margin: 0; border: 1px dashed var(--rose); background: rgba(251, 113, 133, 0.07); }
.stage[data-view="ns"] .ns { display: block; }
.nsh { margin: 0; font-size: 0.95rem; line-height: 1.15; font-weight: 700; color: var(--rose); }
.nsl { margin: 0.1rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.05rem; }
.nsb { position: relative; display: block; width: 100%; min-height: 1.6rem; margin: 0; padding: 0.15rem 0.1rem 0.1rem 0.85rem; border: 0; border-radius: 0.3rem; background: none; text-align: left; font-size: 0.875rem; line-height: 1.2; color: #fff; }
.nsb::before { content: ""; position: absolute; left: 0.2rem; top: 0.7em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--rose); }

/* ---------- the plain list, shown without script ---------- */
.plain { padding: 0.2rem 0; font-size: 0.95rem; }
.plain h2 { margin: 0.6rem 0 0.2rem; font-size: 1.05rem; }
.plain ol, .plain ul { padding-left: 1.2rem; list-style: decimal; }
.plain ul { list-style: disc; }
.plain li { margin: 0.45rem 0; }
.plain table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0.3rem 0 0.8rem; }
.plain th, .plain td, .plain p, .plain li { overflow-wrap: anywhere; }
.plain caption { padding: 0.3rem 0; text-align: left; font-weight: 700; }
.plain th, .plain td { padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plain th { color: var(--mute); font-weight: 600; }
.plain p { margin: 0.3rem 0; }
.plain li p { margin: 0.2rem 0; }
.plain em { font-style: italic; }
.plain .der { color: var(--cyan-t); font-weight: 600; }
.plain .nst { color: var(--rose); font-weight: 600; }

@media (min-width: 336px) and (not (min-aspect-ratio: 21/20)) {
  .tsa .scrub-l { width: auto; }
}

/* ---------- a tall frame that is not narrow (520px and up): the longer wording fits ---------- */
@media (min-width: 520px) and (not (min-aspect-ratio: 21/20)) {
  .src .lw { display: inline; }
  .src .lt { display: none; }
  .rr { grid-template-columns: 11rem 8rem minmax(0, 1fr); }
  .rr .rw, .rr .rs { grid-column: auto; }
  .rr .rn .lw, .rr .rp .lw, .rr .rw .lw, .rr .rs .lw, .nsb .lw, .tsl .lw, .tro .lw, .sbtn .lw, .tfix .lw { display: inline; }
  .rr .rn .lt, .rr .rp .lt, .rr .rw .lt, .rr .rs .lt, .nsb .lt, .tsl .lt, .tro .lt, .sbtn .lt, .tfix .lt { display: none; }
}

/* ---------- very narrow screens: a little less padding ---------- */
@media (max-width: 419px) {
  .stage { padding: 0.45rem 0.55rem 0.4rem; gap: 0.3rem; }
  .top { gap: 0.2rem; }
}

/* ---------- wide frame: a 51rem composition ---------- */
@media (min-aspect-ratio: 21/20) {
  .btn { min-height: 1.75rem; }
  .when { min-height: 0; height: 1.3em; line-height: 1.3; white-space: nowrap; font-size: 0.875rem; }
  .chart { gap: 0.45rem; }
  .tlt { display: none; }
  .plot { border: 1px solid var(--line); border-radius: 0.6rem; background: #0d1a2d; }
  .tlw { display: block; position: relative; height: var(--th); overflow: visible; }
  .tonly { display: none; }

  /* headings, the key, the axes */
  .rg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
  .rg .lbar, .rg .zband, .rg .bk { pointer-events: auto; }
  .hd { position: absolute; margin: 0; font-size: 0.95rem; line-height: 1; white-space: nowrap; }
  .hd b { font-weight: 700; }
  .hd span { color: var(--mute); font-size: 0.875rem; margin-left: 0.3rem; }
  .kbox { position: absolute; right: 0.7rem; top: 0.3rem; display: flex; align-items: center; gap: 0 0.9rem; font-size: 0.875rem; line-height: 1; color: var(--mute); white-space: nowrap; }
  .kr2 { display: inline-flex; align-items: center; gap: 0.35rem; }
  .trk { position: absolute; height: 2px; margin-top: -1px; background: var(--line2); }
  .dtk { position: absolute; width: 1px; height: 0.4rem; background: var(--mute); }
  .dlb { position: absolute; font-size: 0.875rem; line-height: 1; color: var(--mute); white-space: nowrap; }
  .cap { position: absolute; font-size: 0.875rem; line-height: 1; color: var(--mute); }
  .zlb { position: absolute; font-size: 0.875rem; line-height: 1; color: #fff; white-space: nowrap; }
  .zlb.bst { color: var(--mute); }
  .zlb.md { font-weight: 600; }
  .zlb.c { transform: translateX(-50%); }
  .zlb.r { transform: translateX(-100%); }
  .sep { position: absolute; height: 0; border-top: 1px solid var(--line); pointer-events: none; }
  .pha { position: absolute; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.55); z-index: 4; pointer-events: none; }

  /* the window column, the zoom pill, the sliver and the band */
  .wcol { position: absolute; z-index: 1; background: rgba(251, 113, 133, 0.2); border-left: 1px solid rgba(251, 113, 133, 0.7); border-right: 1px solid rgba(251, 113, 133, 0.7); pointer-events: none; }
  .zpill { position: absolute; z-index: 1; border: 2px dashed var(--indigo-t); border-radius: 0.6rem; background: rgba(99, 91, 255, 0.16); pointer-events: none; }
  .sliver { position: absolute; z-index: 3; margin: 0; padding: 0; background: rgba(251, 113, 133, 0.85); border: 1px solid var(--rose); border-radius: 0.2rem; }
  .zband { position: absolute; z-index: 2; margin: 0; padding: 0; background: rgba(251, 113, 133, 0.38); border: 2px solid var(--rose); border-radius: 0.3rem; color: #fff; text-align: center; font-size: 0.875rem; line-height: 1; }
  .sliver:hover, .sliver.pin, .zband:hover, .zband.pin { background: rgba(251, 113, 133, 0.6); }

  /* the version labels, as bars on a lane */
  .lbar { position: absolute; z-index: 2; display: flex; align-items: center; margin: 0; padding: 0 0.6rem; border: 2px solid var(--indigo-t); border-radius: 0.4rem; background: rgba(99, 91, 255, 0.3); color: #fff; text-align: left; font-size: 0.875rem; line-height: 1; white-space: nowrap; overflow: hidden; }
  .lbar::after { display: none; }
  .lbar.dashed { background: transparent; border-style: dashed; }
  .lbar.cutl { border-left-style: none; border-radius: 0 0.4rem 0.4rem 0; }
  .lbar .vt { font-weight: 500; }
  .lbar .vt.rt { margin-left: auto; }
  .lbar:hover, .lbar.pin { background: rgba(99, 91, 255, 0.5); }
  .lbar.dashed:hover, .lbar.dashed.pin { background: rgba(99, 91, 255, 0.22); }

  /* the dated marks: a dot on the axis, a stem up to a flag */
  .mk { position: absolute; z-index: 3; box-sizing: border-box; width: 1.15rem; height: 1.15rem; margin: -0.575rem 0 0 -0.575rem; padding: 0; }
  .mk::before { content: ""; position: absolute; left: calc(50% - 0.5px); bottom: 100%; width: 2px; margin-left: -0.5px; height: calc(var(--stem) - 0.575rem); background: #8da3c7; }
  .fl { position: absolute; height: 1rem; padding: 0 0.1rem; background: #0d1a2d; font-size: 0.875rem; line-height: 1; white-space: nowrap; color: var(--mute); }
  .fl b { color: #fff; font-weight: 500; }
  .fl.rgt { left: calc(50% + 0.3rem); }
  .fl.lft { right: calc(50% + 0.3rem); text-align: right; }

  /* the derived gaps: a dimension line with its label under it */
  .bk { position: absolute; z-index: 2; margin: 0; padding: 0; border: 0; background: none; text-align: left; }
  .bline { position: absolute; left: 0; right: 0; top: 0; height: 0.5rem; border-left: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: 0.85; transform: scaleX(var(--r, 1)); transform-origin: left; }
  .bline::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: var(--cyan); }
  .bt { position: absolute; left: 0.1rem; top: 0.6rem; font-size: 0.875rem; line-height: 1; white-space: nowrap; color: var(--cyan-t); font-weight: 500; opacity: calc(var(--r, 1) * var(--r, 1)); }
  .bk::after { content: ""; position: absolute; inset: -0.1rem; }
  .bk:hover .bt, .bk.pin .bt { text-decoration: underline; }

  /* the thumb that follows the download time */
  .thumb { position: absolute; z-index: 5; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; opacity: 0; }
  .thumb::before { content: ""; position: absolute; left: -0.3rem; top: calc(50% - 0.3rem); width: 0.6rem; height: 0.6rem; border-radius: 50%; background: inherit; box-shadow: 0 0 0 2px var(--bg); }
  .thumb.on { opacity: 1; }
  .thumb.inw { background: #fecdd3; box-shadow: 0 0 0 1px var(--rose); }

  /* the tabbed panel: tabs on the left, the pane under them */
  .sec { position: relative; padding: 0.4rem 0.7rem 0.45rem; }
  .tabs { width: 26rem; }
  .tabs .btn { min-height: 1.9rem; }
  .sbody { margin-top: 0.3rem; }
  .lw { display: inline; }
  .lt { display: none; }

  .tst { gap: 0.25rem; }
  .tsl.scrub { grid-template-columns: 14.6rem minmax(0, 1fr) 15.2rem; column-gap: 0.8rem; align-items: center; }
  .tsl .scrub-l { white-space: nowrap; }
  .tsl input[type="range"] { height: 1.7rem; }
  .tro { white-space: nowrap; text-align: right; }
  .tsa { flex-wrap: nowrap; gap: 0.35rem; min-height: 1.9rem; }
  .tsa .scrub-l { width: 14.6rem; margin-right: 0.45rem; flex: none; }
  .sbtn { min-height: 1.9rem; }
  .tpill { margin-left: auto; }
  .tres { display: flex; gap: 0.5rem; }
  .rc { width: auto; min-height: 1.7rem; padding: 0.25rem 0.6rem; font-size: 0.9rem; line-height: 1.2; }
  .rc.ck { flex: none; }
  .rc.nt { flex: 1 1 auto; min-width: 0; }
  .rc .rch, .rc .rcv { display: inline; }
  .rc .rcv { margin-left: 0.2rem; }
  .tfix { line-height: 1.2; }

  .rr { grid-template-columns: 10.5rem 7.4rem 12.4rem minmax(0, 1fr); column-gap: 0.45rem; min-height: 1.6rem; padding: 0.15rem 0.4rem; }
  .rr .rw, .rr .rs { grid-column: auto; }
  .rr .rp { justify-self: start; }
  .rcl .ri { margin-bottom: 0.1rem; }

  /* what is not stated: a heading on the left and the eight lines in two columns */
  .ns { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); column-gap: 0.6rem; align-items: start; padding: 0.3rem 0.7rem 0.35rem; }
  .nsh { margin: 0.2rem 0 0; font-size: 0.95rem; }
  .nsl { grid-template-columns: 1fr 1fr; gap: 0.05rem 0.8rem; margin: 0; }
  .nsb { min-height: 1.4rem; }
}
