/* Great Plains Cross Country Racing theme: plains orange from the logo on cream, with dirt brown and night black. */
:root {
  --background: #fbf5ea;
  --foreground: #1c140d;
  --card: #fffaf1;
  --card-foreground: #1c140d;
  --popover: #fffaf1;
  --popover-foreground: #1c140d;
  --primary: #e8870a;
  --primary-foreground: #14100c;
  --secondary: #2a1a0e;
  --secondary-foreground: #fbf5ea;
  --muted: #efe3cf;
  --muted-foreground: #5c4a38;
  --accent: #f6dcb0;
  --accent-foreground: #5a2e0a;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #e2d1b4;
  --input: #fff6e6;
  --ring: #b45309;
  --chart-1: #e8870a;
  --chart-2: #5a2e0a;
  --chart-3: #2f6f4e;
  --chart-4: #c2410c;
  --chart-5: #8a6d3b;
  --sidebar: #fffaf1;
  --sidebar-foreground: #1c140d;
  --sidebar-primary: #e8870a;
  --sidebar-primary-foreground: #14100c;
  --sidebar-accent: #f6dcb0;
  --sidebar-accent-foreground: #5a2e0a;
  --sidebar-border: #e2d1b4;
  --sidebar-ring: #b45309;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: Impact, 'Arial Narrow Bold', Haettenschweiler, 'Franklin Gothic Condensed', sans-serif;
  --tracking-normal: 0em;
  --radius: 0.75rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0 1px 2px 0 rgb(40 20 0 / 0.06);
  --shadow-xs: 0 1px 2px 0 rgb(40 20 0 / 0.08);
  --shadow-sm: 0 1px 3px 0 rgb(40 20 0 / 0.12), 0 1px 2px -1px rgb(40 20 0 / 0.1);
  --shadow: 0 1px 3px 0 rgb(40 20 0 / 0.12), 0 1px 2px -1px rgb(40 20 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(40 20 0 / 0.14), 0 2px 4px -2px rgb(40 20 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(40 20 0 / 0.16), 0 4px 6px -4px rgb(40 20 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(40 20 0 / 0.18), 0 8px 10px -6px rgb(40 20 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(40 20 0 / 0.3);
  /* Site colours, moved here from css/gpxc.css so Studio's Site look can change them. */
  --gp-orange: #f59a1c;
  --gp-night: #14100c;
  --gp-sand: #fbf5ea;
}

.dark {
  --background: #120d08;
  --foreground: #f5ead8;
  --card: #1d1510;
  --card-foreground: #f5ead8;
  --popover: #1d1510;
  --popover-foreground: #f5ead8;
  --primary: #f59a1c;
  --primary-foreground: #14100c;
  --secondary: #f5ead8;
  --secondary-foreground: #14100c;
  --muted: #2a1f16;
  --muted-foreground: #c9b79c;
  --accent: #3a2410;
  --accent-foreground: #f6c77a;
  --destructive: #f87171;
  --destructive-foreground: #14100c;
  --border: #3a2b1d;
  --input: #2a1f16;
  --ring: #f59a1c;
  --chart-1: #f59a1c;
  --chart-2: #d9a066;
  --chart-3: #6fc29a;
  --chart-4: #f97316;
  --chart-5: #c8a96a;
  --sidebar: #1d1510;
  --sidebar-foreground: #f5ead8;
  --sidebar-primary: #f59a1c;
  --sidebar-primary-foreground: #14100c;
  --sidebar-accent: #3a2410;
  --sidebar-accent-foreground: #f6c77a;
  --sidebar-border: #3a2b1d;
  --sidebar-ring: #f59a1c;
}


/* Header and footer are always night black: solid orange focus outline, and card/popover tokens readable on dark. */
[data-theme-region="header"],
.gp-footer {
  --card: #1d1510;
  --card-foreground: #fbf5ea;
  --popover: #1d1510;
  --popover-foreground: #fbf5ea;
  --accent: #3a2410;
  --accent-foreground: #fbf5ea;
}
[data-theme-region="header"] :is(a, button, [role="button"]):focus-visible,
.gp-footer :is(a, button, [role="button"]):focus-visible { outline: 3px solid #f59a1c; outline-offset: 2px; box-shadow: none; }


/* Round 2: menus opened from the header (body-level dropdowns, mobile sheet, 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; }

/* Round 2: orange label on the translucent featured card (worst case over a light photo) was 4.34:1. */
:root .gp-featured { background: rgb(20 16 12 / .92); }
