/*
 * TAG Legal Desk v2.1, wp3_canteen: the three Canteen themes (B1). Wattle Gold, Night Shift and Reef.
 * Each is a full UI token table from ART_DIRECTION.md 2.7's mood anchors; the brand green #233D26 stays the brand.
 * A Canteen theme sits over its base theme: the page keeps data-theme="light" (Wattle Gold, Reef) or "dark" (Night
 * Shift) and adds data-v21-theme, so every rule desk.css has for Light or Dark still holds, the server's settings keep
 * the five themes they accept, and the welfare tokens (--welfare-bg, --welfare-ink, the dark welfare rule) never change.
 * The same tables scope the live miniature desk in each Canteen card (data-v21-preview), so the preview is always
 * exactly the theme. The contrast run (tests\v21_theme_contrast.py) checks every pair of bible 5.7 on these tables;
 * the themes go on sale on the live desk only with approval canteenThemes. No inline styles; tokens only.
 */

/* ---------- Wattle Gold (over Light) ---------- */
:root[data-theme="light"][data-v21-theme="wattle_gold"],
.v21c-mini[data-v21-preview="wattle_gold"] {
  color-scheme: light;
  --bg: #F3EFE3; --mesh-1: #EADFB8; --mesh-2: #E3E6D4; --mesh-3: #F0E4C9;
  --glass-1: rgba(255,253,245,.66); --glass-2: rgba(255,253,245,.76); --glass-edge: rgba(255,255,255,.72); --glass-rim: rgba(60,45,10,.08); --glass-hi: rgba(255,255,255,.65); --glass-hover: rgba(255,255,255,.35);
  --solid: #FFFDF6; --solid-2: #F7F1E1;
  --ink: #1F1B12; --ink-2: #4B4434; --ink-3: #5B5341; --edge-strong: #7E765F;
  --brand: #233D26; --brand-hi: #2C4A30; --brand-ink: #FFFFFF; --brand-text: #233D26; --brand-soft: rgba(35,61,38,.10); --accent: #6A5610;
  --focus: #1F5FD1; --ok: #2E6B3A; --warn: #7E4B00; --danger: #B3261E; --info: #1D4F91; --tint-alpha: 12%;
  --practice: #1D4F91;
  --p-gary: #0F766E; --p-gill: #6D28D9; --p-kana: #B42A6A; --p-jonty: #B45309; --p-steve: #1D4ED8; --p-ink: #FFFFFF;
  --ember: #A5600E;
  --shadow-1: 0 1px 2px rgba(40,30,8,.06), 0 8px 24px rgba(40,30,8,.07);
  --shadow-2: 0 12px 40px rgba(40,30,8,.15);
  --btn-shadow: 0 6px 16px rgba(35,61,38,.28);
  --scrim: rgba(24,18,6,.32);
}

/* ---------- Reef (over Light) ---------- */
:root[data-theme="light"][data-v21-theme="reef"],
.v21c-mini[data-v21-preview="reef"] {
  color-scheme: light;
  --bg: #E6F1F0; --mesh-1: #CBE6E3; --mesh-2: #F1E3D3; --mesh-3: #D3E4F1;
  --glass-1: rgba(255,255,255,.64); --glass-2: rgba(255,255,255,.74); --glass-edge: rgba(255,255,255,.70); --glass-rim: rgba(10,40,45,.08); --glass-hi: rgba(255,255,255,.65); --glass-hover: rgba(255,255,255,.35);
  --solid: #FFFFFF; --solid-2: #EEF6F5;
  --ink: #10222A; --ink-2: #3B4F57; --ink-3: #4A5F68; --edge-strong: #6C858C;
  --brand: #233D26; --brand-hi: #2C4A30; --brand-ink: #FFFFFF; --brand-text: #1E4A40; --brand-soft: rgba(30,74,64,.10); --accent: #1E6A63;
  --focus: #1F5FD1; --ok: #2E6B3A; --warn: #8A5200; --danger: #B3261E; --info: #1D4F91; --tint-alpha: 12%;
  --practice: #1D4F91;
  --p-gary: #0F766E; --p-gill: #6D28D9; --p-kana: #B42A6A; --p-jonty: #B45309; --p-steve: #1D4ED8; --p-ink: #FFFFFF;
  --ember: #A85F0F;
  --shadow-1: 0 1px 2px rgba(8,32,36,.06), 0 8px 24px rgba(8,32,36,.06);
  --shadow-2: 0 12px 40px rgba(8,32,36,.14);
  --btn-shadow: 0 6px 16px rgba(35,61,38,.28);
  --scrim: rgba(8,24,28,.32);
}

/* ---------- Night Shift (over Dark) ---------- */
:root[data-theme="dark"][data-v21-theme="night_shift"],
.v21c-mini[data-v21-preview="night_shift"] {
  color-scheme: dark;
  --bg: #0B0F17; --mesh-1: #141B2E; --mesh-2: #1B1726; --mesh-3: #0F1E24;
  --glass-1: rgba(24,28,40,.70); --glass-2: rgba(20,24,34,.80); --glass-edge: rgba(255,255,255,.08); --glass-rim: rgba(0,0,0,.45); --glass-hi: rgba(255,255,255,.06); --glass-hover: rgba(255,255,255,.04);
  --solid: #151A25; --solid-2: #1C2230;
  --ink: #EAEEF6; --ink-2: #B7C0D1; --ink-3: #9AA4B8; --edge-strong: #6D778D;
  --brand: #2F5A34; --brand-hi: #38683E; --brand-ink: #FFFFFF; --brand-text: #9BD3A6; --brand-soft: rgba(155,211,166,.12); --accent: #A3BCE8;
  --focus: #8AB4F8; --ok: #7FD39A; --warn: #F0C36B; --danger: #FF8A80; --info: #9CC2F5; --tint-alpha: 14%;
  --practice: #9CC2F5; --welfare-rule: 0 0 0 2px #FF8A80;
  --p-gary: #2DD4BF; --p-gill: #B39DFA; --p-kana: #F472B6; --p-jonty: #FCD34D; --p-steve: #93C5FD; --p-ink: #111311;
  --ember: #F0A24B;
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.38);
  --shadow-2: 0 12px 40px rgba(0,0,0,.58);
  --btn-shadow: 0 6px 16px rgba(0,0,0,.45);
  --scrim: rgba(0,0,0,.58);
  --logo-light: none; --logo-dark: block;
}

/* ---------- the swatches (Settings rows and the Canteen) ---------- */
.sw-wattle_gold { background: linear-gradient(160deg, #F3EFE3, #EADFB8); --sw-card: #FFFDF6; --sw-accent: #233D26; }
.sw-night_shift { background: #0B0F17; --sw-card: #1C2230; --sw-accent: #9BD3A6; }
.sw-reef { background: linear-gradient(160deg, #E6F1F0, #CBE6E3); --sw-card: #FFFFFF; --sw-accent: #1E6A63; }
