/* Nexus token sheet (spec V3 A1.3, C1): the only place Nexus declares a token. It adds; it redeclares nothing the
   served sheet (~/wiki/site/assets/site-base.css) declares. Component and page sheets read these names and the
   served sheet's names through var() only; a literal anywhere else is a drift-check failure (A9.1).
   The first block's seven status tokens are the export's mission_control_additions, verbatim (design-standards
   tokens.json, 2026-11-13); everything after them is a Nexus addition recorded in the build's DECISIONS.md. */

:root{
  --st-ok:#8BC34A;--st-run:#4FC3F7;--st-warn:#FFB74D;--st-bad:#EF5350;--st-pass:#4ADE80;--st-pass-bg:rgba(0,200,120,.14);--tag:var(--s1);
  /* D4 (spec default, A6.11): every status pill ground is its status token at 14% (dark) / 10% (light), through a token */
  --st-run-bg:rgba(79,195,247,.14);--st-warn-bg:rgba(255,183,77,.14);--st-ok-bg:rgba(139,195,74,.14);--st-bad-bg:rgba(239,83,80,.14);
  --nx-shade:rgba(0,0,0,.62);
  --nx-text:Barlow,system-ui,sans-serif;
  --nx-mono:'JetBrains Mono',ui-monospace,monospace;
  --nx-cond:'Barlow Condensed',Barlow,sans-serif;
  /* A3 type, as sizes, so no component sheet carries a font-size literal */
  --nx-fs-body:16px;--nx-lh-body:24px;--nx-fs-micro:13px;--nx-fs-eyebrow:9.5px;--nx-fs-util:11px;
  --nx-fs-head:26px;--nx-fs-title:28px;--nx-fs-card:18px;--nx-fs-chip:14.95px;--nx-fs-word:49.4px;
  --nx-fs-num:124.8px;--nx-fs-num-tile:48px;--nx-fs-num-gauge:40px;--nx-fs-num-col:22px;
  /* A4 surfaces and motion */
  --nx-chip-h:32.5px;--nx-pill-h:22px;--nx-dot:8px;--nx-bar:4px;--nx-spark:2px;
  --nx-cur-w:12.84px;--nx-cur-h:6.66px;
  --nx-modal-w:920px;--nx-modal-wide:1200px;--nx-drawer-w:480px;--nx-wrap:1120px;--nx-measure:78ch;
  --nx-t-hover:150ms;--nx-t-modal:200ms;--nx-t-drop:200ms;--nx-t-gauge:300ms;--nx-t-blink:1.2s;
  --nx-focus:2px solid var(--hairline-hi);
  --nx-edge-gate:1px solid var(--st-warn);
  --nx-edge-dash:1px dashed var(--edge);
  --nx-on-ground:var(--fg);--nx-on-ink:var(--bg);
  /* the served wiki draws its lockup and chips at 1.3x (A2: wordmark 49.4 = 38 x 1.3, chip 32.5 = 25 x 1.3) */
  --nx-lock-scale:1.3;
  /* the mast's own height: 22px top + the 49.4px lockup row + the 66.5px catnav (A2); the served --hdr-h (135px) is the
     wiki's pre-script default that its site.js corrects at load; the chassis states it instead (DECISIONS.md) */
  --nx-hdr-h:calc(22px + var(--nx-fs-word) + 66.5px);
  --nx-edge-on:1px solid var(--nx-on-ground);
  --nx-edge-sel:1px solid var(--s1);
  --nx-tab-on:2px solid var(--s1);
  --nx-edge-none:0 solid transparent;
  --nx-round:50%;
  /* A2 mast ground: the served sheet's own .mast literals (rgb(4,4,4) / rgb(251,251,251)), named so the chassis can
     re-assert them over the legacy stack's light #F0F0F0 in the TABLE view (drift logged in DECISIONS.md) */
  --nx-mast:rgb(4,4,4);
}

html[data-theme="light"]{
  --nx-mast:rgb(251,251,251);
  --st-ok:#33691E;--st-run:#01579B;--st-warn:#8D4E00;--st-bad:#B71C1C;--st-pass:#1B5E20;--st-pass-bg:rgba(0,120,60,.10);--tag:#01579B;
  --st-run-bg:rgba(1,87,155,.10);--st-warn-bg:rgba(141,78,0,.10);--st-ok-bg:rgba(51,105,30,.10);--st-bad-bg:rgba(183,28,28,.10);
}

/* A7.4: charts, terminals and gauges stay dark in both rooms. The served sheet's .plate scope re-maps its own tokens to
   the dark room; this block does the same for Nexus's status tokens, so a dark picture reads the dark-room values. */
html[data-theme="light"] .plate{
  --st-ok:#8BC34A;--st-run:#4FC3F7;--st-warn:#FFB74D;--st-bad:#EF5350;--st-pass:#4ADE80;--st-pass-bg:rgba(0,200,120,.14);--tag:var(--s1);
  --st-run-bg:rgba(79,195,247,.14);--st-warn-bg:rgba(255,183,77,.14);--st-ok-bg:rgba(139,195,74,.14);--st-bad-bg:rgba(239,83,80,.14);
}
