/* Boocoo design tokens. Copied unchanged (below this comment) from /workspace/boocoo/design/tokens.css, approved 26-27 Nov 2026.
   Load this file BEFORE blazorblueprint.css, and do not load Blueprint's themes.css presets.
   Hex values are the source of truth; Blueprint variables are the same colours in OKLCH.
   The public site is light only (it never sets .dark). The portal and admin add .dark on <html>
   from the device setting or the person's toggle (see Components/Shared/ThemeHead.razor).
   The portal sidebar is forest deep in both modes (--sidebar). */

:root {
  /* ---------- Brand & surfaces (hex) ---------- */
  --color-forest-deep: #0f1c16;
  --color-forest-ink: #163827;
  --color-forest: #1e4d38;
  --color-forest-mid: #43755b;
  --color-forest-soft: #669279;
  --color-forest-tint: #dcefe6;
  --color-forest-mist: #e5eee8;

  --color-paper: #f7f4ef;
  --color-paper-shade: #f3efe8;
  --color-white: #ffffff;
  --color-card: #ffffff;
  --color-ink: #1c1a17;
  --color-muted: #5c564e;
  --color-border: #e4dfd6;
  --color-line: #7f7971;

  --color-gold: #886318;
  --color-highlight: #e4c36b;
  --color-sand: #e8d5a3;

  --color-good: #0f6b45;
  --color-good-bg: #dcefe6;
  --color-mid: #8a5a00;
  --color-mid-bg: #f8ebcb;
  --color-low: #b42318;
  --color-low-bg: #f9e4e2;
  --color-info: #0b6e8a;
  --color-info-bg: #e4f3f7;

  --color-muted-on-dark: #b8c4be;

  /* ---------- Typography ---------- */
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: var(--font-serif);
  --font-numeric: var(--font-sans);

  --text-caption: 0.75rem;
  --text-caption-lh: 1.1rem;
  --text-sm: 0.875rem;
  --text-sm-lh: 1.35rem;
  --text-body: 1.0625rem;
  --text-body-lh: 1.65rem;
  --text-lg: 1.1875rem;
  --text-lg-lh: 1.8rem;
  --text-h6: 1rem;
  --text-h5: 1.125rem;
  --text-h4: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-h3: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --text-h2: clamp(1.875rem, 1.3rem + 2vw, 2.5rem);
  --text-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem);
  --text-display: clamp(2.5rem, 1.4rem + 4vw, 4.25rem);

  /* ---------- Space, radius, shadow, motion ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px oklch(0.25 0.02 75 / 0.06), 0 1px 1px oklch(0.25 0.02 75 / 0.04);
  --shadow-md: 0 8px 24px oklch(0.28 0.02 75 / 0.08), 0 2px 6px oklch(0.28 0.02 75 / 0.05);
  --shadow-lg: 0 20px 48px oklch(0.28 0.03 75 / 0.12), 0 4px 12px oklch(0.28 0.02 75 / 0.06);
  --shadow-hero: 0 28px 60px oklch(0.22 0.05 160 / 0.4);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration: 220ms;
  --duration-slow: 400ms;

  --wrap: 72rem;
  --wrap-narrow: 42rem;
  --header-h: 4.5rem;

  /* ---------- Blazor Blueprint theme variables (light) ---------- */
  --background: oklch(0.968 0.0074 80.72);
  --foreground: oklch(0.219 0.0065 78.18);
  --card: oklch(1.000 0.0000 89.88);
  --card-foreground: oklch(0.219 0.0065 78.18);
  --popover: oklch(1.000 0.0000 89.88);
  --popover-foreground: oklch(0.219 0.0065 78.18);
  --primary: oklch(0.310 0.0507 159.55);
  --primary-foreground: oklch(0.968 0.0074 80.72);
  --secondary: oklch(0.953 0.0103 81.80);
  --secondary-foreground: oklch(0.310 0.0507 159.55);
  --muted: oklch(0.953 0.0103 81.80);
  --muted-foreground: oklch(0.456 0.0149 75.22);
  --accent: oklch(0.941 0.0125 156.99);
  --accent-foreground: oklch(0.310 0.0507 159.55);
  --destructive: oklch(0.500 0.1821 29.51);
  --destructive-foreground: oklch(1.000 0.0000 89.88);
  --border: oklch(0.905 0.0133 82.40);
  --input: oklch(0.579 0.0141 75.29);
  --ring: oklch(0.310 0.0507 159.55);

  --alert-success: oklch(0.468 0.1018 159.27);
  --alert-success-foreground: oklch(0.468 0.1018 159.27);
  --alert-success-bg: oklch(0.936 0.0234 165.84);
  --alert-info: oklch(0.501 0.0914 224.13);
  --alert-info-foreground: oklch(0.501 0.0914 224.13);
  --alert-info-bg: oklch(0.954 0.0168 215.46);
  --alert-warning: oklch(0.508 0.1080 73.30);
  --alert-warning-foreground: oklch(0.508 0.1080 73.30);
  --alert-warning-bg: oklch(0.942 0.0442 88.53);
  --alert-danger: oklch(0.500 0.1821 29.51);
  --alert-danger-foreground: oklch(0.500 0.1821 29.51);
  --alert-danger-bg: oklch(0.935 0.0233 24.13);

  --chart-1: oklch(0.310 0.0507 159.55);
  --chart-2: oklch(0.519 0.0687 160.03);
  --chart-3: oklch(0.525 0.0992 80.12);
  --chart-4: oklch(0.501 0.0914 224.13);
  --chart-5: oklch(0.456 0.0149 75.22);

  --sidebar: oklch(0.212 0.0219 163.93);
  --sidebar-foreground: oklch(0.968 0.0074 80.72);
  --sidebar-primary: oklch(0.828 0.1139 89.27);
  --sidebar-primary-foreground: oklch(0.212 0.0219 163.93);
  --sidebar-accent: oklch(0.310 0.0507 159.55);
  --sidebar-accent-foreground: oklch(0.968 0.0074 80.72);
  --sidebar-border: oklch(0.406 0.0501 164.04);
  --sidebar-ring: oklch(0.828 0.1139 89.27);

  --sidebar-width: 16rem;
  --sidebar-width-mobile: 18rem;
  --sidebar-width-icon: 3.25rem;

  /* Highlight is our gold accent (not a Blueprint token; keep alongside).
     Blueprint --accent is a hover/selected wash, not the brand accent. */
  --highlight: oklch(0.828 0.1139 89.27);
  --highlight-foreground: oklch(0.310 0.0507 159.55);
  --brand-gold: oklch(0.525 0.0992 80.12);
}

.dark {
  /* Portal only. Public pages do not apply this class. */

  /* Hex aliases so mockups and custom CSS follow the mode.
     --color-white becomes the card surface; --color-paper becomes the page. */
  --color-paper: #0f1c16;
  --color-paper-shade: #163827;
  --color-white: #163827;
  --color-card: #163827;
  --color-ink: #f7f4ef;
  --color-muted: #b8c4be;
  --color-border: #2e5242;
  --color-line: #8aab98;

  /* Gold text on dark must use highlight; #886318 fails AA on cards. */
  --color-gold: #e4c36b;
  --color-highlight: #e4c36b;
  --color-sand: #e8d5a3;

  --color-good: #74ad8e;
  --color-good-bg: #143528;
  --color-mid: #c4a05e;
  --color-mid-bg: #3a2f14;
  --color-low: #e08b7e;
  --color-low-bg: #3d2420;
  --color-info: #71abc0;
  --color-info-bg: #1a333a;

  --color-muted-on-dark: #b8c4be;

  --shadow-sm: 0 1px 2px oklch(0.15 0.03 160 / 0.45), 0 1px 1px oklch(0.15 0.02 160 / 0.3);
  --shadow-md: 0 8px 24px oklch(0.10 0.03 160 / 0.5), 0 2px 6px oklch(0.10 0.02 160 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0.08 0.03 160 / 0.55), 0 4px 12px oklch(0.08 0.02 160 / 0.35);
  --shadow-hero: 0 28px 60px oklch(0.10 0.04 160 / 0.55);

  --background: oklch(0.212 0.0219 163.93);
  --foreground: oklch(0.968 0.0074 80.72);
  --card: oklch(0.310 0.0507 159.55);
  --card-foreground: oklch(0.968 0.0074 80.72);
  --popover: oklch(0.310 0.0507 159.55);
  --popover-foreground: oklch(0.968 0.0074 80.72);
  /* Primary actions invert: paper fill, forest-ink label. */
  --primary: oklch(0.968 0.0074 80.72);
  --primary-foreground: oklch(0.310 0.0507 159.55);
  --secondary: oklch(0.381 0.0633 161.81);
  --secondary-foreground: oklch(0.968 0.0074 80.72);
  --muted: oklch(0.381 0.0633 161.81);
  --muted-foreground: oklch(0.809 0.0156 164.63);
  --accent: oklch(0.381 0.0633 161.81);
  --accent-foreground: oklch(0.968 0.0074 80.72);
  /* Destructive is a filled button in Blueprint; use forest-deep on the
     lifted coral so the label meets AA (paper on #E08B7E fails). */
  --destructive: oklch(0.722 0.1064 29.29);
  --destructive-foreground: oklch(0.212 0.0219 163.93);
  --border: oklch(0.406 0.0501 164.04);
  --input: oklch(0.711 0.0455 159.82);
  --ring: oklch(0.828 0.1139 89.27);

  --alert-success: oklch(0.699 0.0754 159.90);
  --alert-success-foreground: oklch(0.699 0.0754 159.90);
  --alert-success-bg: oklch(0.300 0.0459 165.19);
  --alert-info: oklch(0.709 0.0676 222.84);
  --alert-info-foreground: oklch(0.709 0.0676 222.84);
  --alert-info-bg: oklch(0.304 0.0334 217.88);
  --alert-warning: oklch(0.724 0.0946 81.52);
  --alert-warning-foreground: oklch(0.724 0.0946 81.52);
  --alert-warning-bg: oklch(0.311 0.0446 87.52);
  --alert-danger: oklch(0.722 0.1064 29.29);
  --alert-danger-foreground: oklch(0.722 0.1064 29.29);
  --alert-danger-bg: oklch(0.291 0.0392 29.54);

  --chart-1: oklch(0.828 0.1139 89.27);
  --chart-2: oklch(0.621 0.0613 159.07);
  --chart-3: oklch(0.724 0.0946 81.52);
  --chart-4: oklch(0.709 0.0676 222.84);
  --chart-5: oklch(0.809 0.0156 164.63);

  --sidebar: oklch(0.212 0.0219 163.93);
  --sidebar-foreground: oklch(0.968 0.0074 80.72);
  --sidebar-primary: oklch(0.828 0.1139 89.27);
  --sidebar-primary-foreground: oklch(0.212 0.0219 163.93);
  --sidebar-accent: oklch(0.310 0.0507 159.55);
  --sidebar-accent-foreground: oklch(0.968 0.0074 80.72);
  --sidebar-border: oklch(0.406 0.0501 164.04);
  --sidebar-ring: oklch(0.828 0.1139 89.27);

  --highlight: oklch(0.828 0.1139 89.27);
  --highlight-foreground: oklch(0.212 0.0219 163.93);
  --brand-gold: oklch(0.828 0.1139 89.27);
}

@media (prefers-reduced-motion: reduce) {
  :root,
  .dark {
    --duration-fast: 0ms;
    --duration: 0ms;
    --duration-slow: 0ms;
  }
}
