/* 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.
   Palette: dark card, white text, indigo and cyan for marks, rose only for "not confirmed / not stated", amber only for a note.
   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;
}
* { 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 sheet over the free edge of the frame (tall), floating beside the target (wide) ---------- */
.dock { flex: none; }
.tip { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; z-index: 30; max-height: 58%; overflow: auto; padding: 0.5rem 0.8rem 0.6rem; background: #09111f; border: 1px solid #5b7399; border-left-width: 5px; border-radius: 0.5rem; font-size: 0.875rem; box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.6); pointer-events: none; }
.tip.pinned { pointer-events: auto; }
.tip[hidden] { display: none; }
.tip p { margin: 0; }
.tip[data-tone="plain"], .tip[data-tone="stage"] { border-left-color: var(--indigo); }
.tip[data-tone="rose"] { border-left-color: var(--rose); }
.tip[data-tone="amber"] { border-left-color: var(--amber); }
.tip[data-tone="cyan"] { border-left-color: var(--cyan); }
.tk-kick { color: var(--mute); }
.tk-title { font-weight: 700; font-size: 1rem; margin-top: 0.1rem !important; }
.tk-plain { margin-top: 0.25rem !important; }
.vb { margin-top: 0.35rem; }
.vh { color: var(--cyan-t); font-weight: 700; }
.q { margin: 0.1rem 0 0; padding: 0 0 0 0.6rem; border-left: 2px solid #5b7399; font-style: italic; }
.vn { color: var(--mute); margin-top: 0.15rem !important; }
.tk-der { margin-top: 0.4rem !important; color: var(--cyan-t); font-weight: 600; }
.tk-mid { margin-top: 0.4rem !important; }
.tk-ns { margin-top: 0.4rem !important; color: var(--rose); font-weight: 600; }
.tk-close { display: none; position: sticky; bottom: 0; margin-top: 0.5rem; min-height: 2.6rem; padding: 0 1.2rem; background: var(--panel2); border: 1px solid #5b7399; border-radius: 0.4rem; font-weight: 600; font-size: 0.875rem; pointer-events: auto; }
.tip.pinned .tk-close { display: inline-block; }
.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.85rem; }
  .scrub { grid-template-columns: auto minmax(0, 20rem) 1fr; column-gap: 0.7rem; }
  .scrub-l { font-size: 0.85rem; }
  .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.85rem; }
  .dock { position: static; height: 0; }
  .tip { right: auto; bottom: auto; width: 28rem; max-width: calc(100% - 1rem); max-height: calc(100% - 1rem); font-size: 0.85rem; padding: 0.5rem 0.7rem; }
  .tk-title { font-size: 0.95rem; }
  .tk-close { margin-top: 0.4rem; min-height: 1.9rem; font-size: 0.85rem; }
  .src, .tipping .src { display: block; font-size: 0.8rem; }
}

/* ---------- 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 styles. Come after kit.css in styles.css. The tall frame is the base (the fixed 1060px frame below 900px wide); the wide frame
   (5:4) overrides it in the media query near the end. Four views on one DOM, one shown at a time behind four tabs: the sentence in five
   parts with the two readings, the two schedules to one scale with a slider, the steps and multiples that pass OpenAI's 26%, and the
   roughly 20% with what is not stated. Every mark is a real button. Bars start at zero. Colours: cyan is reading A, indigo is reading B,
   slate is the Fund's stake, amber is the OpenAI line and the press restatements, rose is what is not stated. */
:root {
  --c-a: #06b6d4; --c-a-t: #3fd9f0; --c-b: #635bff; --c-b-t: #b3afff; --c-st: #9db0cf; --c-ref: #fbbf24;
  --yw: 2.6rem; --rm: 0.9rem; --th: 13px; --ph: 10rem;
}
.tip { bottom: auto; }
/* a pinned tooltip that scrolls ends in an opaque Close bar, so text never runs under a floating button */
.tip.pinned .tk-close { display: block; position: sticky; bottom: -0.6rem; width: calc(100% + 1.6rem); margin: 0.5rem -0.8rem -0.6rem; padding: 0 0.8rem; border: 0; border-top: 1px solid #5b7399; border-radius: 0 0 0.4rem 0.4rem; background: #09111f; text-align: left; }
@media not all and (min-aspect-ratio: 21/20) { .tip { max-height: 80%; padding-top: 0.4rem; padding-bottom: 0.4rem; } }
h1 { font-size: 1rem; }
.tip p, .q { overflow-wrap: anywhere; }
.tip.lean .tk-plain { display: none; }
/* a tighter tooltip, so that it fits clear of its target on the wide frame */
.tip { line-height: 1.25; }
.tip .vb { margin-top: 0.25rem; }
.tip .tk-der, .tip .tk-mid, .tip .tk-ns { margin-top: 0.28rem !important; }
.tip .tk-plain { margin-top: 0.15rem !important; }

/* ---------- tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; flex: none; }
.vbtn { min-width: 0; padding: 0 0.15rem; line-height: 1.15; }
.vbtn[aria-pressed="true"] { background: var(--indigo); border-color: #fff; color: #fff; }

/* ---------- panels ---------- */
.chart { flex: none; }
.panel { display: none; min-width: 0; }
.stage[data-view="sentence"] .vsentence, .stage[data-view="schedule"] .vschedule, .stage[data-view="reference"] .vreference, .stage[data-view="notstated"] .vnotstated { display: block; }
.phead { display: block; }
.ph { margin: 0; font-size: 1rem; line-height: 1.2; font-weight: 700; }
.pu { margin: 0.05rem 0 0; font-size: 0.875rem; line-height: 1.3; color: var(--mute); }
.cap { margin: 0.4rem 0 0; font-size: 0.875rem; line-height: 1.3; color: #fff; }
.sh { margin: 0.5rem 0 0.15rem; font-size: 0.95rem; line-height: 1.2; font-weight: 700; }
.kg { display: inline-block; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 0.15rem; }
.kg.ka { background: var(--c-a); }
.kg.kb { background: var(--c-b); }

/* ---------- view 1: the sentence ---------- */
.sent { margin: 0.45rem 0 0; font-size: 0.95rem; line-height: 1.3; }
.sw { color: var(--mute); }
.spart, .partbtn, .pressbtn, .rdbtn, .chip { font: inherit; }
.spart { display: inline-block; margin: 0.12rem 0.05rem; padding: 0.15rem 0.4rem; border: 1px solid #5b7399; border-radius: 0.4rem; background: var(--panel2); text-align: left; font-size: 0.95rem; line-height: 1.25; color: #fff; }
.spart:hover, .spart.pin { border-color: #fff; background: rgba(99, 91, 255, 0.35); }
.cards { display: grid; gap: 0.4rem; margin-top: 0.1rem; }
.card { padding: 0.3rem 0.5rem 0.4rem; border: 1px solid var(--line2); border-left-width: 5px; border-radius: 0.5rem; background: rgba(16, 32, 57, 0.6); }
.card.cA { border-left-color: var(--c-a); }
.card.cB { border-left-color: var(--c-b-t); }
.rdbtn { display: flex; align-items: center; gap: 0.4rem; width: 100%; margin: 0; padding: 0.1rem 0.2rem; border: 0; border-radius: 0.3rem; background: none; text-align: left; font-size: 0.95rem; font-weight: 700; line-height: 1.2; color: #fff; }
.rdbtn:hover, .rdbtn.pin { background: rgba(99, 91, 255, 0.28); }
.rule, .chh { display: block; }
.rule { margin: 0.1rem 0 0; font-size: 0.875rem; line-height: 1.3; color: var(--mute); }
.chh { margin: 0.3rem 0 0.15rem; font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.chip { display: grid; justify-items: center; min-width: 3.2rem; margin: 0; padding: 0.15rem 0.3rem; border: 1px solid #5b7399; border-radius: 0.4rem; background: transparent; line-height: 1.15; color: #fff; }
.chip b { font-size: 0.95rem; font-weight: 700; }
.chip i { font-style: normal; font-size: 0.875rem; color: var(--mute); }
.chip.cA { border-color: var(--c-a); }
.chip.cB { border-color: var(--c-b-t); }
.chip:hover, .chip.pin { background: rgba(99, 91, 255, 0.35); border-color: #fff; }
.chmore { font-size: 0.875rem; color: var(--mute); }
.partrow { margin-top: 0.4rem; }
.partbtn { display: block; width: 100%; margin: 0; padding: 0.3rem 0.6rem; border: 1px dashed #cfe0ff; border-radius: 0.4rem; background: transparent; text-align: left; font-size: 0.875rem; font-weight: 700; line-height: 1.25; color: #fff; }
.partbtn:hover, .partbtn.pin { background: rgba(99, 91, 255, 0.28); border-color: #fff; }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-top: 0.4rem; }
.pressh { font-size: 0.875rem; color: var(--mute); }
.pressbtn { min-height: 2.2rem; margin: 0; padding: 0 0.7rem; border: 1px solid var(--amber); border-radius: 0.4rem; background: transparent; font-size: 0.875rem; font-weight: 600; line-height: 1.15; color: var(--amber); }
.pressbtn:hover, .pressbtn.pin { background: rgba(251, 191, 36, 0.2); border-color: #fff; color: #fff; }

/* ---------- view 2: the schedule ---------- */
.plots { position: relative; margin-top: 0.3rem; }
.plot { margin-top: 0.15rem; }
.ph3 { display: flex; align-items: center; gap: 0.4rem; padding-left: var(--yw); font-size: 0.875rem; line-height: 1.2; }
.pnm { font-weight: 700; }
.pnow { margin-left: auto; padding-right: var(--rm); font-weight: 600; white-space: nowrap; }
.pbody { display: grid; grid-template-columns: var(--yw) minmax(0, 1fr); margin-top: 0.15rem; }
.yax { position: relative; height: var(--ph); }
.ytk { position: absolute; right: 0.35rem; bottom: calc(var(--y, 0) * 100%); transform: translateY(50%); font-size: 0.875rem; line-height: 1; color: var(--mute); }
.pa { position: relative; height: var(--ph); margin-right: var(--rm); }
.pa::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--mute); pointer-events: none; }
.ygl { position: absolute; left: 0; right: 0; bottom: calc(var(--y, 0) * 100%); border-top: 1px solid rgba(74, 101, 144, 0.55); pointer-events: none; }
.ygl.zero { border-top: 2px solid var(--mute); }
.xgl { position: absolute; top: 0; bottom: 0; left: calc(var(--x, 0) * 100%); border-left: 1px solid rgba(74, 101, 144, 0.3); pointer-events: none; }
.col { position: absolute; z-index: 2; bottom: 0; left: calc(var(--x, 0) * 100%); width: calc(var(--w, 0) * 100%); min-width: 0.4rem; height: calc(var(--h, 0) * 100%); margin: 0; padding: 0; border: 0; background: none; }
.col .fl { position: absolute; inset: 0; background: var(--f); border-top: 2px solid var(--ft); border-right: 1px solid var(--bg); transform-origin: 50% 100%; transform: scaleY(var(--r, 1)); }
.col::after { content: ""; position: absolute; left: -0.1rem; right: -0.1rem; bottom: -0.1rem; top: calc(var(--ph) * (var(--h, 0) - 1) - 0.1rem); }
.col.cA { --f: rgba(6, 182, 212, 0.42); --ft: #3fd9f0; }
.col.cB { --f: rgba(99, 91, 255, 0.55); --ft: #b3afff; }
.col.cA.cur { --f: rgba(34, 211, 238, 0.85); }
.col.cB.cur { --f: rgba(120, 112, 255, 0.95); }
.col:hover .fl, .col.pin .fl { outline: 2px solid #fff; outline-offset: -2px; }
.rline { position: absolute; z-index: 4; left: 0.3rem; bottom: calc(var(--y, 0) * 100% - 1.5rem); margin: 0; padding: 0; border: 0; background: none; text-align: left; opacity: var(--r, 1); }
.rlt { display: block; padding: 0.05rem 0.4rem; border: 1px solid var(--c-ref); border-radius: 0.3rem; background: #0b1726; font-size: 0.875rem; line-height: 1.2; white-space: nowrap; color: var(--c-ref); }
.rline:hover .rlt, .rline.pin .rlt { background: #16294a; border-color: #fff; color: #fff; }
.rline::after { content: ""; position: absolute; inset: -0.2rem; }
.rlv { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--y, 0) * 100%); height: 0; border-top: 2px dashed var(--c-ref); pointer-events: none; opacity: var(--r, 1); }
.cursor { position: absolute; z-index: 5; top: -0.2rem; bottom: 0; left: calc(var(--cx, 0) * 100%); width: 0; margin-left: -1px; border-left: 2px solid #fff; pointer-events: none; }
.ctag { position: absolute; z-index: 6; left: calc(var(--cx, 0) * 100%); bottom: calc(var(--h, 0) * 100%); transform: translate(0.4rem, 50%); padding: 0.05rem 0.4rem; border-radius: 0.3rem; background: #fff; font-size: 0.875rem; font-weight: 700; line-height: 1.2; color: #0b1726; pointer-events: none; white-space: nowrap; }
.ctag.flip { transform: translate(calc(-100% - 0.4rem), 50%); }
.pinbtn { position: absolute; z-index: 4; top: 0.1rem; left: calc(var(--x, 0) * 100% + 0.3rem); margin: 0; padding: 0.05rem 0.4rem; border: 1px dashed #cfe0ff; border-radius: 0.3rem; background: #0b1726; text-align: left; opacity: var(--r, 1); }
.pinl { display: block; font-size: 0.875rem; line-height: 1.2; font-weight: 700; white-space: nowrap; color: #fff; }
.pinbtn:hover, .pinbtn.pin { background: #16294a; border-color: #fff; }
.pinbtn::after { content: ""; position: absolute; inset: -0.2rem; }
.partgl { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--x, 0) * 100%); width: 0; border-left: 1px dashed rgba(255, 255, 255, 0.6); pointer-events: none; opacity: var(--r, 1); }
.xax { margin: 0.1rem var(--rm) 0 var(--yw); }
.xin { position: relative; height: 1.3rem; }
.xtk { position: absolute; top: 0; left: calc(var(--x, 0) * 100%); transform: translateX(-50%); font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.xlab { margin: 0; padding-left: var(--yw); text-align: center; font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.s2 { display: block; margin-top: 0.25rem; }
.slrow { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.slrow .scrub-l { white-space: normal; line-height: 1.25; }
.readout { flex: none; font-size: 0.95rem; color: #fff; white-space: nowrap; }
.sl2 { margin: 0 calc(var(--rm) - var(--th)) 0 calc(var(--yw) - var(--th)); }

/* ---------- view 3: the steps that pass the 26% line ---------- */
.rtab { position: relative; margin-top: 0.35rem; }
.rgrid { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 3.4rem 3.4rem; column-gap: 0.45rem; align-items: center; }
.rgrid .rdl, .rgrid .rc5, .rax { display: none; }
.rtag { min-height: 1.8rem; }
.rtl { position: relative; display: block; height: 1.5rem; }
.rtagbtn { position: absolute; right: calc((1 - var(--rf, 0)) * 100%); bottom: 0.05rem; margin: 0; padding: 0.05rem 0.4rem; border: 1px solid var(--c-ref); border-radius: 0.3rem; background: #0b1726; font-size: 0.875rem; line-height: 1.2; white-space: nowrap; color: var(--c-ref); opacity: var(--r, 1); }
.rtagbtn::after { content: ""; position: absolute; right: -1px; top: 100%; height: 0.3rem; border-left: 2px dashed var(--c-ref); }
.rtagbtn:hover, .rtagbtn.pin { background: #16294a; border-color: #fff; color: #fff; }
.rhd { margin-top: 0.1rem; font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.rc3 { text-align: right; color: var(--c-a-t); font-weight: 700; }
.rc4 { text-align: right; color: var(--c-b-t); font-weight: 700; }
.rrows { display: block; }
.rrows li { margin: 0; }
.rrow { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 3.4rem 3.4rem; column-gap: 0.45rem; align-items: center; width: 100%; min-height: 1.7rem; margin: 0; padding: 0; border: 0; border-radius: 0.3rem; background: none; text-align: left; font-size: 0.875rem; line-height: 1.2; color: #fff; }
.rrow:hover, .rrow.pin { background: rgba(99, 91, 255, 0.28); }
.rk { padding-left: 0.2rem; white-space: nowrap; }
.rlane { position: relative; display: block; height: 1.2rem; }
.rlane::after { content: ""; z-index: 0; position: absolute; top: -0.3rem; bottom: -0.3rem; left: calc(var(--rf, 0) * 100%); border-left: 2px dashed var(--c-ref); pointer-events: none; }
.rbar { font-style: normal; position: absolute; left: 0; top: 0.12rem; bottom: 0.12rem; width: calc(var(--w, 0) * 100% * var(--r, 1)); min-width: 2px; background: var(--c-st); }
.rval { position: absolute; z-index: 1; padding: 0 0.15rem; background: var(--bg); top: 50%; transform: translateY(-50%); left: calc(var(--e, 0) * 100% * var(--r, 1) + 0.3rem); font-weight: 700; white-space: nowrap; }
.rpass .rbar { background: var(--c-ref); }
.rpass .rval { color: var(--c-ref); }
.rpl { display: none; font-style: normal; position: absolute; right: 0.3rem; top: 0; bottom: 0; align-items: center; font-size: 0.875rem; font-weight: 700; white-space: nowrap; color: #0b1726; }
.rn { text-align: right; font-weight: 700; white-space: nowrap; }
.rn.ra { color: var(--c-a-t); }
.rn.rb { color: var(--c-b-t); }
.rdumb { display: none; }

/* ---------- view 4: the roughly 20%, and what is not stated ---------- */
.comp { position: relative; margin-top: 0.45rem; }
.cbr { position: relative; width: calc(var(--w, 0) * 100%); height: 1.8rem; text-align: center; font-size: 0.875rem; font-weight: 700; line-height: 1.2; opacity: var(--r, 1); }
.cbr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 0.45rem; border: 2px solid #fff; border-bottom: 0; }
.cbar { position: relative; height: 3rem; }
.cseg { position: absolute; top: 0; bottom: 0; left: calc(var(--s, 0) * 100%); width: calc(var(--w, 0) * 100%); display: flex; align-items: center; justify-content: center; margin: 0; padding: 0.1rem 0.3rem; border: 0; border-right: 1px solid var(--bg); text-align: center; font-size: 0.875rem; font-weight: 700; line-height: 1.15; clip-path: inset(0 calc((1 - var(--r, 1)) * 100%) 0 0); }
.cseg::after { content: ""; position: absolute; inset: -0.2rem 0; }
.sfund { background: var(--c-st); color: #0b1726; }
.spledge { background: repeating-linear-gradient(135deg, #4a6590 0 4px, #3a5278 4px 8px); color: #fff; }
.smore { background: rgba(251, 113, 133, 0.08); border: 2px dashed var(--rose); color: var(--rose); }
.cseg:hover, .cseg.pin { box-shadow: 0 0 0 2px #fff; z-index: 3; }
.cst { display: block; }
.cax2 { position: relative; height: 2.6rem; margin-top: 0.15rem; }
.ctk2 { position: absolute; top: 0; left: calc(var(--k, 0) * 100%); transform: translateX(-50%); font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.ctk2:first-child { transform: none; }
.cal2 { position: absolute; left: 0; top: 1.25rem; font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
.nsh2 { color: var(--rose); margin-top: 0.15rem; }
.nsl2 { display: grid; gap: 0.25rem; margin-top: 0.25rem; }
.nsl2 li { margin: 0; }
.nsi { display: block; width: 100%; min-height: 2rem; margin: 0; padding: 0.2rem 0.6rem; border: 1px dashed var(--rose); border-radius: 0.4rem; background: rgba(251, 113, 133, 0.07); text-align: left; font-size: 0.875rem; line-height: 1.2; color: #fff; }
.nsi:hover, .nsi.pin { background: rgba(251, 113, 133, 0.22); border-color: #fff; }

/* ---------- the plain list, shown without script ---------- */
.plain { padding: 0.2rem 0; font-size: 0.95rem; }
.plain h2 { margin: 0.8rem 0 0.2rem; font-size: 1.1rem; }
.plain h3 { margin: 0.6rem 0 0.2rem; font-size: 1rem; }
.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%; border-collapse: collapse; margin: 0.3rem 0 0.8rem; table-layout: fixed; }
.plain caption { padding: 0.3rem 0; text-align: left; font-weight: 700; }
.plain th, .plain td { padding: 0.3rem 0.3rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; font-size: 0.875rem; }
.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; }
html:not(.js) .tabs { display: none; }

/* ---------- very narrow screens: the title leaves the frame (it stays for screen readers) so the panels fit ---------- */
@media (max-width: 419px) {
  .chh { display: none; }
  .cards { gap: 0.3rem; }
  h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .stage { padding: 0.45rem 0.55rem 0.4rem; gap: 0.3rem; }
  .top { gap: 0.2rem; }
}

/* ---------- wide frame: 53rem by 42.4rem composition (5:4) ---------- */
@media (min-aspect-ratio: 21/20) {
  :root { --yw: 3.1rem; --rm: 1rem; --th: 10px; --ph: 8.2rem; }
  .src, .tipping .src, .btn, .tk-close, .tip { font-size: 0.875rem; }
  .tip.pinned .tk-close { width: calc(100% + 1.4rem); margin: 0.4rem -0.7rem -0.6rem; padding: 0 0.7rem; }
  .tip { width: 32rem; }
  h1 { font-size: 1.2rem; }
  .tabs { grid-template-columns: repeat(4, 9rem); gap: 0.5rem; }
  .ph { font-size: 1.05rem; }
  .phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.8rem; }
  .pu { margin: 0; }
  .cap { margin-top: 0.35rem; }

  /* view 1 */
  .sent { margin-top: 0.5rem; font-size: 1rem; }
  .spart { font-size: 1rem; margin: 0.15rem 0.05rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .card { padding: 0.4rem 0.7rem 0.5rem; }
  .chips { gap: 0.4rem; }
  .chip { min-width: 3.6rem; }
  .partbtn { font-size: 0.95rem; }
  .press { margin-top: 0.5rem; }

  /* view 2 */
  .readout { font-size: 1rem; }
  .scrub-l { font-size: 0.875rem; }
  .sl2 input[type="range"] { height: 1.6rem; }

  /* view 3 */
  .rgrid, .rrow { grid-template-columns: 4.4rem 14.5rem 5rem 5rem minmax(0, 1fr); column-gap: 0.6rem; }
  .rgrid .rdl, .rgrid .rc5 { display: block; }
  .rpl { display: flex; }
  .rc5 { padding-left: 0.2rem; }
  .rdumb { display: block; position: relative; height: 1.2rem; }
  .rgl { position: absolute; top: -0.25rem; bottom: -0.25rem; left: calc(var(--k, 0) * 100%); border-left: 1px dashed rgba(74, 101, 144, 0.7); }
  .rlink { position: absolute; top: 50%; height: 2px; margin-top: -1px; left: calc(var(--k, 0) * 100%); width: calc(var(--kw, 0) * 100%); background: rgba(185, 199, 220, 0.7); opacity: var(--r, 1); }
  .dot { position: absolute; top: 50%; left: calc(var(--k, 0) * 100%); width: 0.85rem; height: 0.85rem; margin: -0.425rem 0 0 -0.425rem; border-radius: 50%; box-sizing: border-box; opacity: var(--r, 1); }
  .dot.da { background: var(--c-a); border: 2px solid #fff; }
  .dot.db { background: var(--c-b); border: 2px solid var(--c-b-t); }
  .rax { display: grid; grid-template-columns: 4.4rem 14.5rem 5rem 5rem minmax(0, 1fr); column-gap: 0.6rem; margin-top: 0.1rem; }
  .raxin { position: relative; display: block; height: 1.3rem; }
  .rtk { position: absolute; top: 0; left: calc(var(--k, 0) * 100%); transform: translateX(-50%); font-size: 0.875rem; line-height: 1.2; color: var(--mute); }
  .rtk:first-child { transform: none; }
  .rtk:last-child { transform: translateX(-100%); }

  /* view 4 */
  .cbar { height: 3.2rem; }
  .nsl2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 0.3rem 1rem; }
}
