/* ============================================================================
   MY CRUSADER — DESIGN TOKENS  (mc-tokens.css)
   Lane A, Nov 9, 2026. Canonical token sheet for the teal liquid-glass remodel.
   Values MEASURED from wayne-reference-20261109.png (1024x1536) with PIL —
   ROI medians / percentile scans, not eyeballed. Raw data:
   ../lane-tokens/palette-measured.json  ·  sampler: ../lane-tokens/sample_palette.py
   Other lanes: consume these custom properties ONLY. Do not hard-code colour,
   spacing, radius, type or shadow values in page CSS — add a token here first.
   ========================================================================== */

:root {
  /* ---- DEEP FIELD ---------------------------------------------------------
     Measured: corner TL median #001C23 · left-edge median #00202A ·
     right-edge median #01222F · global quantized clusters #01242F (10.2%),
     #052F3A (6.5%), #09313D (9.4%), #0A4C50 (11.2%, the luminous current). */
  --deep-950: #001C23;   /* field edge — darkest, corners/vignette        */
  --deep-900: #01242F;   /* field base                                    */
  --deep-800: #052F3A;   /* field mid                                     */
  --deep-700: #09313D;   /* field raised / card field (card ROI #062A3B)  */
  --deep-600: #0A4C50;   /* luminous current — glows, blooms, washes      */

  /* ---- GLASS FILLS ---------------------------------------------------------
     Translucent fills; the COMPOSITED result over --deep-900 is what was
     measured: inactive segment median #165754, bottom-bar median #0F464B,
     feed-card upper fill #062A3B, FILES tile header fill #052B3C.
     --glass-bright composited ≈ #8FC8C4–#9BCAC7 = EVIDENCE tile mid median. */
  --glass-aqua:        rgba(95, 242, 223, 0.18);  /* standard tile/card fill  */
  --glass-aqua-deep:   rgba(23, 112, 104, 0.42);  /* UPDATES tile — deep variant,
                                                     ROI body median #02342F family */
  --glass-bright:      rgba(190, 255, 245, 0.72); /* lit tile / active surfaces */
  --glass-bright-hi:   #A1DBD3;                   /* EVIDENCE top ROI median (solid) */
  --glass-bright-mid:  #9BCAC7;                   /* EVIDENCE mid ROI median (solid) */
  --glass-puck:        #268CA3;                   /* segment puck ROI median (solid base) */
  --glass-puck-hi:     #8FF5E6;                   /* puck gradient light stop (spec §1.2) */
  --glass-puck-lo:     #3EC9BC;                   /* puck gradient deep stop  (spec §1.2) */
  --glass-solid:       #0E3A42;                   /* NO-BLUR fallback fill (composited avg) */
  --glass-solid-bright:#7FB5AF;                   /* NO-BLUR fallback, bright variant */

  /* ---- RIM / LIGHT ---------------------------------------------------------
     ONE light source: top-left, everywhere. No exceptions.
     Brightest-5% rim-core median measured #DDFFFF–#EFFFFF on all four edges
     scanned (FILES top, EVIDENCE top, bottom-bar top, card top). */
  --rim:        #5FF2DF;   /* saturated rim cyan — glows, active states      */
  --rim-hi:     #EFFFFF;   /* rim highlight core (measured)                  */
  --rim-soft:   rgba(220, 255, 250, 0.55);  /* 1px rim border on glass        */
  --rim-faint:  rgba(220, 255, 250, 0.28);  /* hairline dividers on glass     */
  --highlight:  rgba(255, 255, 255, 0.70);  /* inset top highlight line       */
  --shade:      rgba(0, 46, 42, 0.28);     /* inset bottom shade (away from light) */

  /* ---- INK ---------------------------------------------------------------- */
  --ink:          #FFFFFF;  /* primary text                                   */
  --ink-2:        #DFFBF5;  /* secondary text                                 */
  --ink-3:        rgba(223, 251, 245, 0.68); /* muted / timestamps            */
  --ink-on-bright:#06302E;  /* text on bright glass / puck                    */

  /* ---- WARM ACCENT (lantern gold — retained brand accent, spec D6-a) -------
     Measured: lantern warm-pixel median #DDB468 · brightest #FDDB82 ·
     whole-image warm median #BF8E46. Brand family anchor #E3BC3F (spec §0). */
  --accent-warm:      #E3BC3F;
  --accent-warm-lit:  #FDDB82;
  --gold-hi:          #FDDB82;   /* legacy alias restored Nov 13, 2026 (uniformity C-02):
                                    apra/meetings headings paint with it; same value as
                                    --accent-warm-lit so the warm hierarchy is one family */
  --accent-warm-mid:  #DDB468;
  --accent-warm-deep: #BF8E46;

  /* ---- CAMERA BUBBLE (iridescent, STATIC — no shimmer, see TOKENS.md) ------
     Bubble centre ROI median #9CD4D7, p90 #F3F6F6 family. */
  --bubble-1: #9CD4D7;
  --bubble-2: #D9F2EE;
  --bubble-3: #E8DFF2;   /* oil-slick pastel violet, measured in bubble p90 spread */

  /* ---- SPACING SCALE (official-grade discipline: 4px base, NO arbitrary) - */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --page-pad: var(--space-4);        /* 16px page gutter at phone width      */
  --card-pad: var(--space-5);        /* 20px — every card, every sheet       */
  --row-gap:  var(--space-3);        /* 12px — rows inside a component       */

  /* ---- TYPE SCALE (restrained: 7 steps, 2 weights in UI chrome) ------------
     System sans stack ONLY — no webfont (spec §4.1 budget).                 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --text-caption: 12px;  --text-label: 13px;  --text-body: 15px;
  --text-lede: 17px;     --text-tile: 18px;   --text-card-title: 20px;
  --text-headline: 28px;
  --leading-tight: 1.2;  --leading-body: 1.45;
  --weight-body: 400;    --weight-med: 600;   --weight-bold: 700;  --weight-black: 800;

  /* ---- RADIUS SCALE (only these values, ever) ----------------------------- */
  --radius-s: 10px;   /* source inset, thumbnails-inner                     */
  --radius-m: 14px;   /* inputs-inner, media panels                         */
  --radius-pill: 14px;  /* ITEM 7 (Nov 16, 2026): Wayne's button law — the capsule
                            is retired; the shared control radius is the moderate
                            14px long-rounded-rectangle (--radius-m). Token name
                            kept so every consumer follows in one move. */
  --radius-card: 28px;  /* cards, sheets, tiles base                        */
  --radius-tile: 32px;
  --chevron: 26px;      /* tile arrow-point depth (spec §1.4)               */

  /* ---- CONTROL HEIGHTS (uniform per class — machined, not decorative) ----- */
  --h-chip: 28px;  --h-btn: 44px;  --h-pill: 44px;  --h-input: 48px;
  --h-seg: 52px;   --h-nav: 72px;  --h-header: 60px; --h-camera: 64px;
  --touch-min: 44px;

  /* ---- THE THREE GLASS RECIPES — one blur radius each (spec §4.1) --------- */
  --blur-pill: 14px;   /* RECIPE 1 · pill  — pills, buttons, chips, seg bar  */
  --blur-card: 18px;   /* RECIPE 2 · tile/card — tiles, cards, shelf, nav  */
  --blur-sheet: 20px;  /* RECIPE 3 · sheet — sheets, header panes            */
  --saturate: 1.4;

  /* ---- SHADOWS (ONE recipe family, light from top-left) ---------------------
     Cast shadow falls down-right, soft, deep-teal. Same recipe at 3 scales. */
  --shadow-s: 0 4px 14px rgba(0, 24, 26, 0.35);
  --shadow-m: 0 10px 28px rgba(0, 24, 26, 0.38);
  --shadow-l: 0 18px 44px rgba(0, 24, 26, 0.45);
  --glow-rim: 0 0 18px rgba(95, 242, 223, 0.45);   /* active/primary ONLY    */
  --inset-glass: inset 0 1px 0 var(--highlight), inset 1px 0 0 rgba(255,255,255,0.28),
                 inset 0 -10px 18px var(--shade);

  /* ---- MOTION (transform/opacity only; killed by prefers-reduced-motion) -- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;

  /* ---- LAYERS -------------------------------------------------------------- */
  --z-nav: 50;  --z-sheet: 60;  --z-header: 40;
}

