/* =====================================================================================================================
   AheadWise design system: "the instrument"
   One type family (Archivo) used in three widths, cool neutrals, a single signal orange that marks what AheadWise
   measures (the needle), and semantic verdict colours that are never used for decoration. Hairline rules carry tick
   marks like a measuring scale. Documented live in system.html.
   ===================================================================================================================== */

:root {
  /* Colour: neutrals */
  --paper: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --sunk: #eceef1;
  --ink: #0b0d10;
  --ink-2: #454c57;
  --ink-3: #6f7783;
  --rule: #dde0e5;
  --rule-2: #c3c8d0;
  --on-ink: #ffffff;
  --primary: #0b0d10;
  --primary-hover: #262a31;
  /* Colour: the signal (needle, focus, active states) */
  --signal: #ff4f1a;
  --signal-ink: #b5360a;
  --signal-wash: rgba(255, 79, 26, 0.1);
  /* Colour: verdicts (semantic only) */
  --real: #0f8a4f;
  --real-wash: rgba(15, 138, 79, 0.1);
  --borderline: #a0670f;
  --borderline-wash: rgba(197, 138, 31, 0.15);
  --noise: #7a8390;
  --noise-wash: rgba(122, 131, 144, 0.14);
  --reversed: #c62828;
  --reversed-wash: rgba(198, 40, 40, 0.1);
  --split: #6b46c1;
  --split-wash: rgba(107, 70, 193, 0.1);
  /* Depth */
  --scrim: rgba(11, 13, 16, 0.42);
  --shadow-1: 0 1px 0 rgba(11, 13, 16, 0.03), 0 1px 3px rgba(11, 13, 16, 0.06);
  --shadow-2: 0 1px 2px rgba(11, 13, 16, 0.05), 0 18px 40px -18px rgba(11, 13, 16, 0.22);
  --shadow-3: 0 40px 90px -24px rgba(11, 13, 16, 0.42), 0 0 0 1px rgba(11, 13, 16, 0.05);
  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: 118%;
  --normal: 100%;
  --narrow: 86%;
  /* Space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  /* Shape */
  --r-1: 4px; --r-2: 6px; --r-3: 10px; --r-4: 14px;
  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-1: 140ms; --t-2: 220ms; --t-3: 380ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0b0d; --surface: #121418; --surface-2: #16191e; --sunk: #0e1013;
    --ink: #edeff2; --ink-2: #a9b0bb; --ink-3: #7b838f; --rule: #23272e; --rule-2: #353b45; --on-ink: #0a0b0d;
    --primary: #edeff2; --primary-hover: #ffffff;
    --signal: #ff6a3d; --signal-ink: #ff8f6b; --signal-wash: rgba(255, 106, 61, 0.14);
    --real: #3fca83; --real-wash: rgba(63, 202, 131, 0.13); --borderline: #e2b04a; --borderline-wash: rgba(226, 176, 74, 0.14);
    --noise: #858e9b; --noise-wash: rgba(133, 142, 155, 0.16); --reversed: #ff6b6b; --reversed-wash: rgba(255, 107, 107, 0.13);
    --split: #a78bfa; --split-wash: rgba(167, 139, 250, 0.14);
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3); --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-3: 0 40px 90px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0b0d; --surface: #121418; --surface-2: #16191e; --sunk: #0e1013;
  --ink: #edeff2; --ink-2: #a9b0bb; --ink-3: #7b838f; --rule: #23272e; --rule-2: #353b45; --on-ink: #0a0b0d;
  --primary: #edeff2; --primary-hover: #ffffff;
  --signal: #ff6a3d; --signal-ink: #ff8f6b; --signal-wash: rgba(255, 106, 61, 0.14);
  --real: #3fca83; --real-wash: rgba(63, 202, 131, 0.13); --borderline: #e2b04a; --borderline-wash: rgba(226, 176, 74, 0.14);
  --noise: #858e9b; --noise-wash: rgba(133, 142, 155, 0.16); --reversed: #ff6b6b; --reversed-wash: rgba(255, 107, 107, 0.13);
  --split: #a78bfa; --split-wash: rgba(167, 139, 250, 0.14);
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.3); --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 40px 90px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

/* An inverted band (a dark instrument face in the light theme; a raised dark band in the dark theme). */
.invert {
  --paper: #0b0d10; --surface: #13161a; --surface-2: #181b20; --sunk: #0f1114;
  --ink: #eef0f3; --ink-2: #a8afba; --ink-3: #7c8490; --rule: #252a31; --rule-2: #363c46; --on-ink: #0b0d10;
  --primary: #eef0f3; --primary-hover: #ffffff;
  --signal: #ff6a3d; --signal-ink: #ff8f6b; --signal-wash: rgba(255, 106, 61, 0.14);
  --real: #3fca83; --borderline: #e2b04a; --noise: #858e9b; --reversed: #ff6b6b; --split: #a78bfa;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .invert { --paper: #111317; --surface: #171a1f; } }
:root[data-theme="dark"] .invert { --paper: #111317; --surface: #171a1f; }

/* ---------------------------------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); font-stretch: var(--normal);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.has-drawer { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--signal-wash); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* ---------------------------------------------------------------------------------------------------- typography */
.t-display { font-size: clamp(2.55rem, 5.6vw, 4.9rem); line-height: 0.98; font-weight: 650; font-stretch: var(--wide);
  letter-spacing: -0.038em; text-wrap: balance; }
.t-h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); line-height: 1.04; font-weight: 630; font-stretch: 112%; letter-spacing: -0.03em; text-wrap: balance; }
.t-h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 620; letter-spacing: -0.012em; }
.t-lead { font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 36em; }
.t-body { font-size: 1rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.t-small { font-size: 0.875rem; line-height: 1.55; color: var(--ink-3); }
.t-label { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.82rem; line-height: 1.2; font-weight: 600;
  font-stretch: var(--narrow); letter-spacing: 0.015em; color: var(--ink-2); }
.t-label::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--signal); flex: none; }
.t-label.plain::before { display: none; }
.t-num { font-stretch: var(--wide); font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.t-mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* A hairline with tick marks every 24px: the measuring-scale divider used between sections. */
.rule-scale { height: 7px; border: 0; margin: 0;
  background: linear-gradient(var(--rule-2), var(--rule-2)) bottom / 100% 1px no-repeat,
              repeating-linear-gradient(to right, var(--rule-2) 0 1px, transparent 1px 24px) bottom / 100% 7px no-repeat; }
.rule-scale.major { background: linear-gradient(var(--rule-2), var(--rule-2)) bottom / 100% 1px no-repeat,
  repeating-linear-gradient(to right, var(--rule-2) 0 1px, transparent 1px 24px) bottom / 100% 4px no-repeat,
  repeating-linear-gradient(to right, var(--ink-3) 0 1px, transparent 1px 120px) bottom / 100% 9px no-repeat; height: 9px; }

/* --------------------------------------------------------------------------------------------------------- buttons */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding-inline: 20px;
  border-radius: var(--r-2); border: 1px solid transparent; font-size: 0.97rem; font-weight: 600; font-stretch: 104%;
  letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(11, 13, 16, 0.2); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-2); box-shadow: var(--shadow-1); }
.btn--secondary:hover { border-color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--sunk); color: var(--ink); }
.btn--sm { --h: 36px; padding-inline: 14px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn .arrow { width: 14px; height: 14px; transition: transform var(--t-2) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; transition: border-color var(--t-1) var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow .arrow { width: 14px; height: 14px; transition: transform var(--t-2) var(--ease); }
.text-button { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.text-button:hover { text-decoration-color: var(--ink); }

/* ----------------------------------------------------------------------------------------------- chips and tags */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding-inline: 8px 9px; border-radius: var(--r-1);
  font-size: 0.78rem; font-weight: 600; font-stretch: 92%; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--sunk); color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: currentColor; flex: none; }
.chip--real { background: var(--real-wash); color: var(--real); }
.chip--borderline { background: var(--borderline-wash); color: var(--borderline); }
.chip--noise, .chip--unproven { background: var(--noise-wash); color: var(--noise); }
.chip--reversed { background: var(--reversed-wash); color: var(--reversed); }
.chip--broken-split { background: var(--split-wash); color: var(--split); }
.chip--signal { background: var(--signal-wash); color: var(--signal-ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding-inline: 8px; border-radius: var(--r-1); border: 1px solid var(--rule-2);
  font-size: 0.74rem; font-weight: 600; font-stretch: var(--narrow); letter-spacing: 0.02em; color: var(--ink-3); background: var(--surface); }
.swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; background: var(--noise); }
.swatch.real { background: var(--real); } .swatch.borderline { background: var(--borderline); } .swatch.noise, .swatch.unproven { background: var(--noise); }
.swatch.reversed { background: var(--reversed); } .swatch.broken-split { background: var(--split); } .swatch.other { background: var(--rule-2); }

/* ------------------------------------------------------------------------------------------------------- panels */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); box-shadow: var(--shadow-1); }
.panel--raised { box-shadow: var(--shadow-2); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.panel__body { padding: 18px; }

/* ------------------------------------------------------------------------------------------------------ controls */
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.8rem; font-weight: 600; font-stretch: var(--narrow); letter-spacing: 0.015em; color: var(--ink-2); }
.field__hint { font-size: 0.8rem; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 0 12px; border-radius: var(--r-2); border: 1px solid var(--rule-2);
  background: var(--surface); color: var(--ink); font-size: 0.97rem; transition: border-color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
.textarea { padding-block: 10px; min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal-wash); }
.input[aria-invalid="true"] { border-color: var(--reversed); box-shadow: 0 0 0 3px var(--reversed-wash); }
.input.num-input { font-variant-numeric: tabular-nums; text-align: right; font-weight: 560; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; height: 34px; padding-inline: 12px; border-radius: var(--r-2); border: 1px solid var(--rule-2);
  font-size: 0.9rem; font-weight: 520; color: var(--ink-2); background: var(--surface); transition: all var(--t-1) var(--ease); }
.check input:checked + span { border-color: var(--ink); color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--rule); }
.seg__btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding-inline: 11px; border: 0; border-radius: 6px; background: transparent;
  font-size: 0.86rem; font-weight: 580; font-stretch: 96%; color: var(--ink-2); transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"], .seg__btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--rule); }
.seg__btn .count { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 520; }

/* Tabs: underlined, with the signal colour as the active marker */
.tabs__list { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { position: relative; height: 48px; padding: 0; border: 0; background: none; font-size: 0.98rem; font-weight: 600;
  font-stretch: 104%; color: var(--ink-3); white-space: nowrap; transition: color var(--t-1) var(--ease); }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-2) var(--ease); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { padding-top: var(--s-6); }

/* Accordion (FAQ) */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.acc__summary::-webkit-details-marker { display: none; }
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink-3);
  transition: transform var(--t-2) var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item[open] .acc__icon::after { transform: rotate(0deg); }
.acc__body { overflow: hidden; }
.acc__body > div { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 46em; }

/* Notices */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-2); font-size: 0.92rem; background: var(--sunk); color: var(--ink-2); }
.notice--error { background: var(--reversed-wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--reversed); }

/* Key-value list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 0.93rem; }
.kv dt { color: var(--ink-3); }
.kv dd { font-variant-numeric: tabular-nums; text-align: right; font-weight: 560; }

/* ------------------------------------------------------------------------------------------------------ drawers */
.scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); opacity: 0; transition: opacity var(--t-3) var(--ease);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(540px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-3); transform: translateX(104%); transition: transform var(--t-3) var(--ease);
  padding-top: env(safe-area-inset-top, 0px); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: 22px 24px 18px; border-bottom: 1px solid var(--rule); }
.drawer__eyebrow { margin-bottom: 8px; }
.drawer__title { font-size: 1.35rem; line-height: 1.2; font-weight: 640; font-stretch: 108%; letter-spacing: -0.02em; }
.drawer__close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r-2);
  background: var(--surface); color: var(--ink-2); transition: all var(--t-1) var(--ease); }
.drawer__close:hover { border-color: var(--ink-3); color: var(--ink); }
.drawer__close svg { width: 14px; height: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: var(--s-5); align-content: start; overscroll-behavior: contain; }
.drawer__body h3 { font-size: 1rem; font-weight: 620; }
.drawer__body p, .drawer__body li { color: var(--ink-2); font-size: 0.95rem; }
.drawer__body ul:not([class]) { padding-left: 18px; display: grid; gap: 6px; }
.drawer__foot { display: flex; gap: var(--s-3); justify-content: flex-end; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--surface-2); }
@media (max-width: 640px) {
  .drawer { inset: auto 0 0 0; width: 100%; max-height: 92dvh; border-radius: 16px 16px 0 0; transform: translateY(104%); }
  .drawer.is-open { transform: translateY(0); }
  .drawer__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--rule-2); }
  .drawer__head { position: relative; padding-top: 26px; }
}

/* -------------------------------------------------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-3); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: 0.76rem; font-weight: 600; font-stretch: var(--narrow);
  letter-spacing: 0.02em; color: var(--ink-3); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .mono { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; }
.sort::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--rule-2); }
th[aria-sort="ascending"] .sort::after { border-top: 0; border-bottom: 5px solid var(--ink); }
th[aria-sort="descending"] .sort::after { border-top-color: var(--ink); }
.table tbody tr.is-clickable { cursor: pointer; transition: background var(--t-1) var(--ease); }
.table tbody tr.is-clickable:hover { background: var(--surface-2); }
.table tbody tr.is-clickable:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }

/* --------------------------------------------------------------------------------------------------- instrument */
/* The z-scale: coin-flip, borderline and real zones on |z|, with a signal-orange needle. Drawn by instrument.js. */
.instrument svg { width: 100%; height: auto; overflow: visible; }
.inst-zone-noise { fill: var(--noise-wash); }
.inst-hatch line { stroke: var(--noise); stroke-width: 1; opacity: 0.35; }
.inst-zone-border { fill: var(--borderline-wash); }
.inst-zone-real { fill: var(--real-wash); }
.inst-base { stroke: var(--ink-3); stroke-width: 1; }
.inst-tick { stroke: var(--ink-3); stroke-width: 1; }
.inst-tick.minor { stroke: var(--rule-2); }
.inst-cut { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.inst-num { fill: var(--ink-3); font: 500 11px var(--mono); }
.inst-zone-label { fill: var(--ink-2); font: 600 11.5px var(--font); font-stretch: 92%; letter-spacing: 0.01em; }
.inst-needle { transition: transform 520ms var(--ease); }
.inst-needle line { stroke: var(--signal); stroke-width: 2.25; stroke-linecap: round; }
.inst-needle path { fill: var(--signal); }
.inst-needle text { fill: var(--signal-ink); font: 600 11.5px var(--mono); }
