/*
 * Prairie Sprint Enduro colour tokens (customer-owned). Light: warm prairie off-white with near-black text;
 * the primary is a deep wheat gold so links and buttons keep AA contrast on light surfaces.
 * Dark: near-black with bright wheat gold. The unlayered rules here win over the theme-defaults layer in assets/root-*.css.
 * .tools/generate-public.mjs reads the hex --primary and --foreground of both blocks.
 */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --pse-display: "Oswald", "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --tracking-normal: 0em;
  --radius: 0.625rem;
  --spacing: 0.25rem;
  --background: #fdfbf6;
  --foreground: #0b0b0b;
  --card: #ffffff;
  --card-foreground: #0b0b0b;
  --popover: #ffffff;
  --popover-foreground: #0b0b0b;
  --primary: #8a5d00;
  --primary-foreground: #ffffff;
  --secondary: #f3edde;
  --secondary-foreground: #0b0b0b;
  --muted: #f3edde;
  --muted-foreground: #5a5445;
  --accent: #f3edde;
  --accent-foreground: #0b0b0b;
  --border: #e3dac6;
  --input: #d9cfb8;
  --ring: #b8860b;
}
.dark {
  --background: #0b0b0b;
  --foreground: #f5f2ea;
  --card: #161616;
  --card-foreground: #f5f2ea;
  --popover: #1a1a1a;
  --popover-foreground: #f5f2ea;
  --primary: #e0a82e;
  --primary-foreground: #0b0b0b;
  --secondary: #222222;
  --secondary-foreground: #f5f2ea;
  --muted: #1f1f1f;
  --muted-foreground: #b8b2a3;
  --accent: #2b2b2b;
  --accent-foreground: #ffffff;
  --border: #ffffff24;
  --input: #ffffff30;
  --ring: #e0a82e;
}

/* Header and footer keyboard focus: solid outline in the region text colour, not the template half-transparent ring. */
[data-theme-region="header"] :is(a, button, [role="button"], [tabindex]):focus-visible { outline: 3px solid var(--foreground); outline-offset: 2px; box-shadow: none; }
[data-theme-region="footer"] :is(a, button, [role="button"], [tabindex]):focus-visible { outline: 3px solid var(--foreground); outline-offset: 2px; box-shadow: none; }

/* Menus opened from the header: body-level dropdowns/mobile sheet and the in-header theme menu. */
:is(.imported-menu-popup, .imported-sheet-panel) :is(a, button, summary, [role="button"]):focus-visible,
[role="menu"] [role^="menuitem"]:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; box-shadow: none; }
/* Header is black in both modes: card and popover tokens must be light-on-dark. */
[data-theme-region="header"], .dark [data-theme-region="header"] { --card: #0b0b0b; --card-foreground: #f5f2ea; --popover: #1a1a1a; --popover-foreground: #f5f2ea; }
