/* Design tokens (PLAN.md 4.1, ui-ux-pro-max: Minimalism/Swiss, dense).
   Use the variables, never raw colours, in app.css and future components. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-base: 16px; --fs-sm: 14px; --fs-xs: 12.5px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;

  /* FINAL owner-approved palette: all five exact colours have explicit roles. */
  --primary: #3B5768;            /* Blue Slate: primary buttons */
  --primary-strong: #3B5768;
  --primary-hover: #44363B;      /* Deep Mocha */
  --on-primary: #FFFFFF;
  --accent: #3B5768;
  --accent-strong: #44363B;
  --cta-bg: #3B5768;
  --cta-hover: #44363B;
  --cta-text: #FFFFFF;
  --nav-active: #D7DAEA;         /* Lavender: subtle surfaces */
  --board-header: #CCB7C5;       /* Thistle */
  --table-head: #FFFFFF;         /* Tables stay mostly white */
  --table-head-text: #44363B;
  --row-hover: #FFFFFF;
  --row-selected: #ABC4ED;       /* Powder Blue */
  --accent-text: #44363B;
  --link: #3B5768;
  --on-danger: #FFFFFF;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #D7DAEA;
  --fg: #44363B;
  --text: #44363B;
  --muted: #44363B;
  --border: #CCB7C5;
  --border-strong: #3B5768;
  --input-border: #3B5768;
  --destructive: #DC2626;
  --destructive-bg: #FEF2F2;
  --focus: #44363B; --focus-outer: #FFFFFF;

  /* status colours (same meaning as the sheet) */
  --st-live: #B7E1CD; --st-ended: #F9CB9C; --st-cancelled: #F4C7C3;
  --st-action: #FCE8B2; --st-change: #D0E0E3;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --radius: 6px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .12);
  --dur: 160ms;
  --touch: 44px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --primary: #3B5768; --primary-strong: #3B5768; --primary-hover: #44363B; --on-primary: #FFFFFF;
    --accent: #3B5768; --accent-strong: #44363B;
    --cta-bg: #3B5768; --cta-hover: #44363B; --cta-text: #FFFFFF;
    --nav-active: #D7DAEA; --board-header: #CCB7C5; --table-head: #111827; --table-head-text: #F8FAFC;
    --row-hover: #111827; --row-selected: #ABC4ED; --accent-text: #44363B; --link: #ABC4ED;
    --on-danger: #450A0A;
    --bg: #0F172A; --surface: #111827; --surface-2: #1E293B;
    --fg: #F8FAFC; --text: #E2E8F0; --muted: #CBD5E1;
    --border: #3B5768; --border-strong: #CCB7C5; --input-border: #CCB7C5;
    --destructive: #F87171; --destructive-bg: #3B1212; --focus: #44363B; --focus-outer: #FFFFFF;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 8px 24px rgba(0,0,0,.5);
  }
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }


/* Phase-2 status, emphasis and layering tokens. Components never use raw colours. */
:root {
  --st-neutral: #E2E8F0; --st-neutral-text: #0F172A;
  --st-blue: #DBEAFE; --st-blue-text: #1E3A8A;
  --st-action: #FCE8B2; --st-action-text: #713F12;
  --st-purple: #E9D5FF; --st-purple-text: #581C87;
  --st-teal: #CCFBF1; --st-teal-text: #134E4A;
  --st-live: #B7E1CD; --st-live-text: #14532D;
  --st-ended: #F9CB9C; --st-ended-text: #7C2D12;
  --st-cancelled: #F4C7C3; --st-cancelled-text: #7F1D1D;
  --st-change: #D0E0E3; --st-change-text: #164E63;
  --st-late: #B91C1C; --st-late-text: #FFFFFF;
  --highlight-yellow: #FEF3C7; --highlight-yellow-text: #713F12;
  --highlight-red: #FEE2E2; --highlight-red-text: #7F1D1D;
  --skeleton: #E2E8F0; --backdrop: rgba(15, 23, 42, .56);
  --z-drawer: 60; --z-toast: 100; --drawer-w: 560px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --st-neutral: #334155; --st-neutral-text: #F8FAFC;
    --st-blue: #1E3A8A; --st-blue-text: #EFF6FF;
    --st-action: #713F12; --st-action-text: #FFFBEB;
    --st-purple: #581C87; --st-purple-text: #FAF5FF;
    --st-teal: #134E4A; --st-teal-text: #F0FDFA;
    --st-live: #14532D; --st-live-text: #F0FDF4;
    --st-ended: #7C2D12; --st-ended-text: #FFF7ED;
    --st-cancelled: #7F1D1D; --st-cancelled-text: #FEF2F2;
    --st-change: #164E63; --st-change-text: #ECFEFF;
    --st-late: #F87171; --st-late-text: #450A0A;
    --highlight-yellow: #713F12; --highlight-yellow-text: #FFFBEB;
    --highlight-red: #7F1D1D; --highlight-red-text: #FEF2F2;
    --skeleton: #334155; --backdrop: rgba(0,0,0,.7);
  }
}
