/* ============================================================================
 * DESIGN TOKENS — the single source of truth
 * ----------------------------------------------------------------------------
 * Loaded FIRST on every page, before any other stylesheet. Everything else
 * consumes these; nothing else should declare a :root block.
 *
 * Phase 3 of the style refactor. Previously these 37 tokens were re-declared in
 * five separate stylesheets, which is how --muted came to ship at 0.45 on the
 * customer site and 0.4 in admin without anyone deciding that.
 *
 * MULTI-TENANT: the BRAND group is what a second club overrides. A tenant theme
 * file is a :root block containing those tokens and nothing else — see
 * docs/STYLE_REFACTOR_PLAN.md §4. Everything below BRAND is structural and
 * shared, so a re-brand cannot accidentally reshape the UI.
 * ============================================================================ */

:root{

  /* Tells the BROWSER which way round this site is, so the controls it draws
     itself — scrollbars, date and time pickers, select menus, autofill, spell
     -check underlines — come out matching. CSS cannot style most of those, so
     without this a light tenant gets dark native widgets and there is no rule
     that can fix them.
     It was declared once, on one admin input (admin_panel.css:501). Now it is
     a root-level token a light theme flips to `light`. */
  --color-scheme:dark;
  color-scheme:var(--color-scheme);


  /* brand — a tenant theme overrides THESE and only these */
  --red:#c8321a;
  /* channel form of --red, so translucent brand tints
     (rgba(var(--red-rgb),.12)) re-theme with the brand. */
  --red-rgb:200,50,26;
  --font-big:'Bebas Neue',sans-serif;
  --font-body:'DM Sans',sans-serif;

  /* surfaces. --black was a SECOND name for --bg at the same value, with more
     consumers (15) than --bg itself (6) — so a tenant overriding --bg per the
     light-theme plan would have re-themed a third of the page and left the rest
     at #0a0a0a. Retired; every use site now reads --bg. */
  --surface:#111;
  --surface2:#161616;
  --bg:#0a0a0a;

  /* text */
  /* .47, not .45: at .45 the browser composites 4.41:1 on --bg (the guard's
     own arithmetic said 4.48) — both under AA. .47 measures 4.81:1 on --bg
     and 4.85:1 on --surface; two hundredths of alpha, invisible by eye, and
     the one KNOWN exception in contrast_audit that the admin repeated on
     every screen (sidebar, footer links) is gone. 24 Sep 2026. */
  --muted:rgba(255,255,255,.47);
  --dim:rgba(255,255,255,.22);
  /* .47 (was .42 = 4.10:1 on a card, the second KNOWN exception): it now
     equals --muted, so the 17 call sites that chose it carry no information
     and the name is a retirement candidate. 24 Sep 2026. */
  --muted-mid:rgba(255,255,255,.47);

  /* lines / borders */
  --border:rgba(255,255,255,.08);
  /* STRONGER than --border, which is what the name says. It was .07 against
     --border's .08 — the "-hi" variant was LOWER contrast than its base, so
     every call site that reached for the stronger border got the weaker one.
     Invisible by eye at one hundredth of an alpha; found by measurement and
     Corrected 18 Aug 2026. .11 rather than a bigger jump: --border-mid is .15 and
     --border-input is .10, so anything higher would duplicate a rung of a ladder
     that already has eight of them for a job the research says wants two. */
  --border-hi:rgba(255,255,255,.11);

  /* state colours. Every one of these FAILS AA on white (--gold is 1.67:1), so
     a light tenant overrides the whole group — see the plan's §7.3. They are
     mode values, not brand values: green means "paid" in both themes, the hex
     that means it differs. */
  --green:#22c55e;
  --amber:#f59e0b;
  --blue:#60a5fa;
  --danger:#f87171;

  /* Channel form of each state colour, so a tinted PLATE tracks the text that
     sits on it. Without these a plate is a literal rgba() triple: change the
     token and the label moves while its background stays the old hue. That was
     live — the ticket set --green to #4ade80 in its own :root while its plates
     were rgba(74,222,128), and everywhere else was #22c55e. */
  --green-rgb:34,197,94;
  --amber-rgb:245,158,11;
  --blue-rgb:96,165,250;
  --danger-rgb:248,113,113;
  --purple-rgb:167,139,250;
  --gold-rgb:251,191,36;

  /* misc */
  /* --surface2-alt RETIRED 17 Aug 2026. It was byte-identical to --surface2
     (#161616) and was the only colour token with no light override that was
     neither mode-independent nor per-tenant — so its four consumers in
     admin.css painted near-black cards on a light club while every
     neighbouring surface re-themed correctly. Two names for one value means
     no call site's choice carries information, and the light theme has to
     maintain both. */
  /* --card RETIRED 18 Aug 2026. Byte-identical to --surface in tokens.css and
     in BOTH light themes, so two names described one value and no call site's
     choice between them carried information — while every theme had to keep
     both in step. --select-option-bg was NOT retired with it: it looks like a
     duplicate of --surface-3 in the dark theme and is a deliberately different
     value in light (#FFFFFF against #EFEDE8), which is only visible if you
     check all three themes rather than the one in front of you. */
  --muted-hi:rgba(255,255,255,.47);   /* kept in step with --muted, 24 Sep 2026 */
  --red-deep:#a82516;
  /* --green-soft #4ade80 RETIRED. It was the ticket's rogue green with a token
     name: 26 consumers, all admin, and admin_panel.css already paired it with
     rgba(34,197,94) plates. L3 converged the customer side; this finishes it.
     One green means one thing. */
  --amber-bright:#fbbf24;
  --amber-deep:#ba7517;
  --gold:#fbbf24;
  --blue-deep:#3b82f6;
  --purple:#a78bfa;
  --red-urgent:#a32d2d;
  --font:var(--font-body);
  --radius-sm:4px;
  --radius-md:6px;
  --radius-lg:10px;
  --radius-pill:999px;

  /* ── THE SPACING SCALE ─────────────────────────────────────────────────────
     Added 16 Nov 2026 (UI-02; DATA_VIEWS §12.1, decided by Liam 13 Nov as D8).
     Every gap, padding and margin is one of these; a px literal in the admin
     CSS is a defect the UI-01 guard counts down. Named by value because the
     number IS the step (4px base, R10 §2.1; Material's own spacing-8 naming).
       4   icon to its label; inside a pill; a label to its own field
       8   between controls, chips, buttons; between rows and cards in a list
       12  table-cell and list-row inset; between a label and the next field
       16  card padding; the phone side gutter; a header's title and its actions
       24  between groups; the desktop page gutter; the modal body
       32  between sections
       2   an optical nudge only
     Judge the outer size: a 7px padding with a 1px border is an 8px inset. */
  --space-2:2px;
  --space-4:4px;
  --space-8:8px;
  --space-12:12px;
  --space-16:16px;
  --space-24:24px;
  --space-32:32px;
  /* ONE CONTROL HEIGHT (DATA_VIEWS §12.3, §12.5, §12.10 — D9 and D15; UI-04,
     16 Nov 2026). Every toolbar control — a search well, a select, a chip, a
     segmented control, a button — is 36px on a desktop, and 44px, the tap floor
     (UX_PRINCIPLES §11), at 980px and under or on any touch screen: the
     override is at the foot of this file. */
  --control-h:36px;
  --red-darker:#b02a16;
  --border-input:rgba(255,255,255,.1);
  --border-input-hi:rgba(255,255,255,.12);
  --bg-input:rgba(255,255,255,.06);
  /* The WELL: a search box, a modal input, a typeahead — a control the eye
     should read as "type here". On dark it is a shade DEEPER than the card
     (a tint of shadow); on a light club the same tint composites to a mid
     grey that reads as disabled (admin audit X-1/X-2, 24 Sep 2026), so the
     light themes set it to a real white fill and let the hairline do the
     work. Three states, because focus and hover were separate literals. */
  --well:rgba(var(--shadow-rgb),.25);
  --well-hover:rgba(var(--shadow-rgb),.32);
  --well-focus:rgba(var(--shadow-rgb),.35);
  --green-deep:#16a34a;

  /* ══ MODE ══════════════════════════════════════════════════════════════════
   * Everything below is the DARK mode, and dark is the default. A light tenant
   * overrides this group in themes/<id>.css; a dark tenant writes nothing and
   * inherits it. Phase L0 of docs/LIGHT_THEME_PLAN_2026_08_05.md.
   *
   * The mode group lives HERE and not in the theme files on purpose.
   * test_tenant_isolation.check_themes() flags any non-Wit's-End theme
   * containing a hex from Wit's End's brand dict — which includes ink #0a0a0a
   * and cream #F6EFE0 — as a never-re-branded byte copy. Both clubs share those
   * neutrals legitimately, so putting the dark mode block in themes/laughbarn.css
   * would fail that guard for a value nobody got wrong. Defaults here, overrides
   * only where a tenant genuinely differs, and the guard keeps its teeth.
   *
   * NOTHING CONSUMES THESE YET. L0 declares the vocabulary; L1 and L2 migrate
   * call sites onto it. Values are byte-equal to the literals already in use, so
   * adding them cannot move a pixel.
   * ═════════════════════════════════════════════════════════════════════════ */

  /* text. Only --text is new. --muted (209 consumers) and --dim (2) ALREADY
     were the mode group and are declared above; an earlier pass added
     --text-muted/--text-dim as "better" names beside them and nothing consumed
     either, which would have left a light tenant overriding two dead tokens
     while 209 sites stayed white-at-45%. The existing names win because they
     have the call sites. Rename later or never — it is cosmetic. */
  --text:#fff;

  /* ── THE WORDMARK LOCKUP ──────────────────────────────────────────────────
     The top-left of every public page, and the footer brand. Three tokens of
     its own because the alternatives are site-wide: --text has 337 consumers
     across 16 stylesheets and --font-big has 133, so recolouring either to
     restyle one lockup repaints the whole product.

     THESE DEFAULTS ARE TODAY'S RENDERED VALUES, so a club that declares none of
     them is byte-identical to before. core/theme.OPTIONAL_TOKENS overrides them
     per club, and omits the line entirely when a club declares nothing. */
  --wordmark-ink:var(--text);
  --font-wordmark:var(--font-big);
  /* transparent, so a club with no plate keeps the nav surface it has. */
  --wordmark-plate:transparent;
  /* Zero by default, so a club with no plate keeps its exact layout. The pad
     is emitted BY core.theme only when a plate is declared — padding a
     transparent band would shift every nav that does not want one. */
  --wordmark-plate-pad:0;
  /* The last word. Defaults to the club's accent, so a club that declares no
     plate is unchanged; a club WITH a plate lifts it, because an accent chosen
     against the club's own page is not necessarily readable on a near-black
     band. */
  --wordmark-accent:var(--red);
  /* The stacked hero lockup's line-height. Overridden per club by core.theme
     from the face's MEASURED cap height — never from the CSS `cap` unit, which
     reads OS/2.sCapHeight and which a font is free to declare wrong. */
  --wordmark-leading:.92;
  /* widest wordmark word in em, in the wordmark face. 1 = "do not fit" — the
     hero keeps its clamp. core.theme.wordmark_em_width emits the real number
     per club; see home.css .hero-title for the arithmetic. */
  --wordmark-em-width:1;

  /* NOTE ON --surface2 (declared above, 28 consumers): in LIGHT mode it inverts
     in meaning. Dark stacks upward (#0a0a0a -> #111 -> #161616); light hits its
     ceiling at #fff after one step, so --surface2 becomes a RECESSED tone —
     inputs, wells, zebra rows — not a higher one. Also: admin.css re-declares
     it at #1a1a1a and wins on admin pages. Resolve that drift in L7; do not
     mirror it here. */

  /* STATE PLATES — the opaque fill behind a state message.
     These were SIX HARDCODED HEXES in admin.css and one in admin_revenue.css,
     paired with themed ink (color:var(--green) and friends). A hardcoded plate
     under a themed ink is the one combination that cannot survive a mode flip,
     and it did not: on the light club the six toasts measured 1.23–2.81:1 and
     the revenue table header 1.03:1 — an invisible column header on the money
     screen. On the DARK club the standalone set was also sub-AA at 3.13–4.52,
     so this was never only a light-mode problem.

     There were two different plate sets for the same three states — the
     container toasts and the standalone toast drifted apart. One set now, so a
     success message cannot mean two different colours depending on which screen
     raised it. Dark values are the container set unchanged, so Wit's End is
     pixel-identical; the standalone toasts move to match it and gain contrast.

     Measured, ink over plate, WCAG 2.1:
                       witsend   laughbarn
       ok               6.19      4.52
       err              6.29      7.23
       info             6.71      5.97
       thead (muted)    4.54      5.00                                        */
  --plate-ok:#15302a;
  --plate-err:#2d1212;
  --plate-info:#1a1a2e;
  /* Sticky table headers. #17171a measured 4.48:1 against --muted — under AA
     for small text by two hundredths, on uppercase .68rem labels. */
  --plate-thead:#141416;

  /* state tints — hover/selected only. In light mode these stay tints; it is
     ELEVATION that stops being a tint and becomes a border. */
  --state-hover:rgba(255,255,255,.06);
  --state-selected:rgba(255,255,255,.1);
  /* A meter's trough (sell-through, upcoming, show health). A DRAWN FIGURE, not
     elevation: it stays a visible tint in light too, where --surface-tint goes
     transparent and a track has no border to lean on. Keep it ≥ .08 — R-18's
     pixel probe needs 12/255 of change, and at .05 a phone lost it (18 Nov). */
  --track:rgba(255,255,255,.1);

  /* ── MODE-INDEPENDENT ── identical in light and dark, deliberately ──────── */

  /* Text on a brand or state fill. NOT a theme value — a contrast guarantee.
     68 rules currently write #fff for this and would go white-on-white under a
     naive flip. White on #C8321A is 5.35:1, on #1D7A8C 4.98:1. */
  --on-accent:#fff;

  /* The white plate behind a QR code. NOT a surface and never themed: a scanner
     needs a light quiet-zone and high contrast, so this stays white on a light
     site and on a dark one. It is a functional requirement wearing a colour. */
  /* Text sitting on a SCRIM. --scrim-* deliberately stays dark in both modes
     because it darkens a photograph, so the type on top of it must stay light
     too. Exactly the same contract as --on-accent, and missing it is why the
     Laugh Barn's hero wordmark and every show-card date went invisible the
     moment the club went light: they read var(--text), which had flipped to
     dark ink, over a scrim that had not.
     The rules check could not catch this — the scrim and the text are
     SEPARATE ELEMENTS, and it only compares a colour to a background set in
     the same rule. */
  --on-scrim:#fff;

  /* A card lift. The whole shadow is the token because the ALPHA has to differ
     by mode: black at .5 barely reads on a dark page and is a smudge on a
     light one. Tight and layered — a close contact shadow plus a soft one —
     reads as lift; one big blur reads as fog. */
  --elev-lift:0 2px 4px rgba(0,0,0,.40), 0 8px 18px rgba(0,0,0,.34);

  /* Opacity of the date plate over a show photo. Light tones it down: an
     88%-opaque black block on a cream card is the heaviest thing on screen. */
  --plate-scrim:rgba(10,10,10,.88);
  /* The accent as TEXT. Defaults to the accent; core/theme.accent_ink emits a
     lighter (dark club) or darker (light club) step when the accent misses
     4.5:1 as small type on this club's cards. Fills keep --red. */
  --accent-ink:var(--red);
  /* THE STAGE LIGHT: the club's accent as a soft wash at the top of every public
     page, fading into the ground — the comedian page's hero glow, which Liam
     picked as the best-looking thing on the gray (25 Sep). Each club gets it in
     its own accent; light clubs get a fainter one. */
  --stage-light:radial-gradient(ellipse 90% 620px at 50% 0%, rgba(var(--red-rgb),.16) 0%, transparent 72%);
  /* A plate on a surface with NO photo under it — the date tile on a card
     that has no headshot. Opaque, the surface's own family; the scrim above
     is for photographs and read as a black block on a cream card. */
  --plate:var(--surface-4);  --plate-ink:var(--text);  --plate-accent:var(--accent-ink);   /* the month is small text: the text shade, not the fill */
  /* A disabled primary: not the accent at .4 opacity (its --on-accent ink then
     sat on a near-black at 1.08:1 for a club whose ink is dark). */
  --disabled-fill:var(--state-selected);  --disabled-ink:rgba(255,255,255,.6);

  --qr-plate:#fff;

  /* The email PREVIEW pane in the marketing composer. It simulates a real
     email client, so it is a light cream sheet with dark ink NO MATTER WHAT
     the console theme is — the operator is looking at what the customer will
     receive, not at admin chrome. Same class as --qr-plate and @media print:
     a context that deliberately does not follow the theme. Named so the next
     tokenisation sweep does not helpfully convert it and turn the preview
     into white-on-cream. */
  --preview-paper:#f8f8f2;
  --preview-ink:#0a0a0a;
  --preview-ink-soft:#333;

  /* The <select> chevron. A colour baked inside a data: URI is the one place
     no CSS variable can reach — 9 rules had stroke='rgba(255,255,255,0.5)'
     welded into the SVG, which is invisible on a light input and cannot be
     fixed by any override. The whole url() IS the token, so a theme swaps the
     entire image and the glyph stays identical. STYLE_REFACTOR_PLAN rule 3:
     a component that cannot be re-themed is a gap in the component API. */
  --select-chevron:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");

  /* Scrims darken a PHOTOGRAPH so type can sit on it. That requirement does not
     invert with the page — a light site with light scrims has unreadable hero
     copy over a bright show photo. These stay dark in every mode. */
  --scrim-strong:rgba(10,10,10,.85);
  --scrim-mid:rgba(10,10,10,.72);
  --scrim-soft:rgba(10,10,10,.55);

  /* ══ THE INK LADDER ════════════════════════════════════════════════════════
   * White-at-N% was the de-facto de-emphasis scale of this codebase and nobody
   * ever named it — 154 distinct achromatic values, of which this ladder is the
   * fat head. Naming it IS the refactor (L2).
   *
   * INK and SURFACE are kept apart even where the dark values coincide, and
   * that separation is the whole point. In light mode ink inverts to dark ink,
   * but a surface tint does NOT invert to rgba(20,17,15,.05) — that is the
   * grey-on-grey mush §7.1 of the plan rules out. Light expresses elevation
   * with a BORDER; the tint tokens go transparent. A single shared ladder would
   * make that distinction unexpressable, which is why there are two.
   *
   * Values are the literals already in the stylesheets, exactly. Where two
   * neighbours are almost the same (--text-faint .2 vs --text-dim .22) BOTH are
   * named rather than snapped together: naming makes the drift visible and
   * fixable, snapping would change pixels in a phase that promises not to.
   * Consolidate deliberately, later, with the baseline regenerated on purpose.
   * ═════════════════════════════════════════════════════════════════════════ */

  /* THE INK CHANNEL. Text and borders are the same substance at different
     strengths, and the tail of that ladder — .18 .25 .38 .5 .65 .7 .75 — has no
     intent behind it, which is exactly why it is drift. Naming 18 rungs would
     dignify an accident; naming the CHANNEL lets a light tenant override one
     value and re-theme every rung at once:
         --ink-rgb:20,17,15;
     Same idiom as --red-rgb, which this codebase already uses. Use it as
     rgba(var(--ink-rgb),.5) wherever a semantic token does not already exist.
     NOT for backgrounds — see the surface-tint note below. */
  --ink-rgb:255,255,255;

  /* ink — text and borders. Inverts with the theme. */
  --text-soft:rgba(255,255,255,.6);     /* secondary text, resting icon glyphs */
  --text-faint:rgba(255,255,255,.2);    /* decorative only — NOT placeholders */

  /* Input placeholder text. Its own token because it was rgba(...,.18) —
     1.71:1 on the dark card and 1.48:1 on a white input. Unreadable in BOTH
     modes; dark merely hid it better. Beta users could not see the checkout's
     own instruction. A placeholder is text a buyer has to read. */
  --placeholder:rgba(255,255,255,.45);
  --border-mid:rgba(255,255,255,.15);
  --border-emph:rgba(255,255,255,.3);
  --border-strong:rgba(255,255,255,.35);
  --border-hover:rgba(255,255,255,.4);

  /* surface tints — elevation ONLY. In light these become transparent and the
     component leans on --border instead. Never reuse an ink token here. */
  --surface-tint:rgba(255,255,255,.05);

  /* Tint channel, for the elevation steps with no semantic name of their own
     (.01 .015 .02 .03 .04 .07 .08 .12 .13 .14 .15 .18 .2 .22). SEPARATE from
     --ink-rgb on purpose: a light tenant wants ink at full strength and tints
     barely there, so they cannot share one channel. Tune the alpha budget here
     rather than inverting it wholesale — plan 7.1. */
  --tint-rgb:255,255,255;
  /* THE PAGE COLOUR AS CHANNELS, added 17 Aug 2026. --ink-rgb and --tint-rgb
     already exist so that text and tint alphas can re-theme; nothing existed for
     an alpha of the PAGE, so the checkout's sticky pay bar faded to a hardcoded
     rgba(12,8,7,…) — a warm near-black that matches neither --bg (#0a0a0a) nor
     any other token, and rendered as an opaque dark band across the bottom of a
     light club's checkout. Must equal --bg's channels in every theme. */
  --bg-rgb:10,10,10;

  /* THE KEYBOARD FOCUS RING, added 17 Aug 2026. Deliberately NOT the accent.
     admin.css's rule used var(--red), and a ring in the same colour as every
     selected row and primary action is one a keyboard user has to decode rather
     than see. Material makes the same call for the same reason and picks a colour
     that cannot collide with a selected state.

     An alias of --text rather than its own hex, so it re-themes with the mode for
     free and cannot drift from it: one fewer value for every light theme to
     maintain, and nothing for scripts/theme_pairs_check.py to hold together. */
  --focus-ring:var(--text);

  /* ── THE TYPE SCALE ────────────────────────────────────────────────────────
     Added 18 Aug 2026. Until now tokens.css declared --font-big and --font-body
     and NOTHING ELSE about type: no size, no weight, no line-height, no tracking.
     The codebase carries 73 distinct font-size declarations across 943 uses, and
     --wordmark-leading exists at all because one lockup needed a line height and
     there was no line-height vocabulary to reach for — a role token invented
     under pressure for a population of one.

     THESE VALUES ARE MEASURED, NOT CHOSEN. The five roles are the five clusters
     the product already uses, with the representative value of each:

       label/meta   360 uses (38%)  17 distinct   8 - 11.9px
       small body   255 uses (27%)  12 distinct  12 - 13.9px
       body         141 uses (15%)  11 distinct  14 - 16.8px
       title         91 uses ( 9%)   9 distinct  17.6 - 23.2px
       display       92 uses ( 9%)  18 distinct  24px and up

     FIVE ROLES, NOT MATERIAL'S FIFTEEN. And note meta and label sit at almost the
     same size: they are different ROLES, not different sizes — a label is
     uppercase, tracked and semi-bold, which is Material's own point that weight
     rather than size separates the two.

     Every line-height is a multiple of 4 and tracking runs inverse to size, both
     from the research (docs/research/DIGEST.md §3).

     NOTHING IS MIGRATED YET, deliberately: declaring the vocabulary is one change
     and moving 943 call sites is another, and doing both at once would make every
     visual regression indistinguishable from a token bug. scripts/type_scale_check.py
     ratchets the distinct count so the smear cannot grow while migration happens. */
  --type-display-size:2rem;      --type-display-lh:36px;  --type-display-weight:700;  --type-display-track:-.02em;
  --type-title-size:1.125rem;    --type-title-lh:24px;    --type-title-weight:600;    --type-title-track:-.01em;
  --type-body-size:.8125rem;     --type-body-lh:20px;     --type-body-weight:400;     --type-body-track:0;
  --type-meta-size:.6875rem;     --type-meta-lh:16px;     --type-meta-weight:400;     --type-meta-track:.01em;
  --type-label-size:.6875rem;    --type-label-lh:16px;    --type-label-weight:600;    --type-label-track:.10em;   /* 11px: the floor (D24, DV §13.9; was .625rem = 10px until UI-14, 23 Nov 2026). Label and meta share the size; weight, tracking and case tell them apart. */

  /* Veils over content and photographs, and drop shadows. Both STAY DARK in
     every mode, for the same reason --scrim-* does: they darken something
     underneath so type can sit on it, and that requirement does not invert.
     --scrim-rgb is the page ink (10,10,10); --shadow-rgb is true black. */
  --scrim-rgb:10,10,10;
  --shadow-rgb:0,0,0;

  /* Opaque elevation steps between --bg #0a0a0a and --surface2 #161616 and
     above it. Named because they are real steps, not alpha accidents. */
  --surface-1:#0f0f0f;
  --surface-3:#1a1a1a;
  --surface-4:#222;
  --surface-5:#333;

  /* opaque chrome surfaces that are not --bg/--surface */
  /* Solid black chrome bands — the public footer and the admin mobile topbar.
     NOT --bg (#0a0a0a): these are deliberately darker than the page. Named for
     the ROLE, because it also had to serve a topbar and "footer-bg" would have
     been the same kind of lie --black was. */
  --chrome-solid:#000;
  --select-option-bg:#1a1a1a;           /* native <option> menu; see the --surface2 drift note */

  /* The fixed nav is translucent chrome over scrolling content — NOT a scrim
     over a photograph, so unlike --scrim-* it DOES flip with the theme.
     Three alphas for one surface is drift nobody chose; named here so it is
     visible, and left unconsolidated so this phase moves no pixels. */
  /* Sticky bottom bars (the checkout's buy bar) are the same KIND of thing as
     the nav: translucent chrome over scrolling content, so they flip. They are
     NOT a scrim — a scrim darkens a photograph and stays dark. Getting that
     wrong put dark ink on a dark bar in light mode, at 1.02:1. */
  --bar-bg:rgba(10,10,10,.98);
  --nav-bg:rgba(10,10,10,.95);
  --nav-bg-home:rgba(10,10,10,.92);
  --nav-bg-calendar:rgba(10,10,10,.96);
}
/* The touch size of --control-h (D15: by width to 980px, by pointer above it). */
@media (max-width: 980px), (pointer: coarse) {
  :root { --control-h:44px; }
}
