/*
 * USSS brand tokens — the only place brand color values live (SPEC.md).
 *
 * Brand constants:            role mapping (light / dark):
 *   USSS_BLUE       #0F1D41     foreground + primary / card surface
 *   USSS_LIGHT_BLUE #3568e8     link, ring, active accents / primary
 *   USSS_RED        #DA262E     destructive only (darkened where white
 *                               small-text AA needs it; brand hex stays
 *                               for large/graphic use)
 *   USSS_WHITE      #FFFFFF     background / foreground
 *
 * Derived shades stay on hue 223 (navy-tinted, never pure neutral) and
 * are tuned against WCAG AA at the B1 gate — adjust here, never in
 * component code.
 */
:root {
	--background: 0 0% 100%;
	--foreground: 223 63% 16%;
	--card: 0 0% 100%;
	--card-foreground: 223 63% 16%;
	--popover: 0 0% 100%;
	--popover-foreground: 223 63% 16%;
	--primary: 223 63% 16%;
	--primary-foreground: 0 0% 100%;
	--secondary: 223 30% 95%;
	--secondary-foreground: 223 63% 16%;
	--muted: 223 30% 95%;
	--muted-foreground: 223 15% 40%;
	--accent: 223 60% 94%;
	--accent-foreground: 223 63% 16%;
	--destructive: 357 65% 44%;
	--destructive-foreground: 0 0% 100%;
	--border: 223 25% 88%;
	--input: 223 25% 88%;
	--ring: 223 80% 56%;
	--link: 223 80% 56%;
	--chart-1: 223 80% 56%;
	--chart-2: 223 63% 28%;
	--chart-3: 357 71% 50%;
	--chart-4: 205 65% 55%;
	--chart-5: 223 25% 65%;
	--radius: 0.5rem;
}

.dark {
	/* Background sits below USSS_BLUE so navy cards read as raised. */
	--background: 223 55% 8%;
	--foreground: 213 30% 96%;
	--card: 223 63% 16%;
	--card-foreground: 213 30% 96%;
	--popover: 223 55% 12%;
	--popover-foreground: 213 30% 96%;
	/* Navy-on-navy has no contrast — light blue takes primary in dark. */
	--primary: 223 80% 56%;
	--primary-foreground: 0 0% 100%;
	--secondary: 223 45% 22%;
	--secondary-foreground: 213 30% 96%;
	--muted: 223 40% 20%;
	--muted-foreground: 220 22% 72%;
	--accent: 223 50% 24%;
	--accent-foreground: 213 30% 96%;
	--destructive: 357 65% 48%;
	--destructive-foreground: 0 0% 100%;
	--border: 223 40% 24%;
	--input: 223 40% 24%;
	/* Brand light blue fails 4.5:1 as text on the dark background —
	   link/ring lift to L 65% (5.5:1) instead of using --primary. */
	--ring: 223 85% 65%;
	--link: 223 85% 65%;
	--chart-1: 223 85% 65%;
	--chart-2: 213 60% 75%;
	--chart-3: 357 75% 62%;
	--chart-4: 205 70% 60%;
	--chart-5: 223 25% 55%;
}
