/* Ascot Park MX theme: charcoal, racing red, white and gold, from the track's logo and flyers. Studio edits these tokens. */
:root {
  --background: #f6f4f0;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --popover: #ffffff;
  --popover-foreground: #1a1a1a;
  --primary: #c8202f;
  --primary-foreground: #ffffff;
  --secondary: #1a1a1a;
  --secondary-foreground: #f4f1ec;
  --muted: #ebe7e0;
  --muted-foreground: #55504a;
  --accent: #fdf0cf;
  --accent-foreground: #7a5200;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #d9d4cb;
  --input: #ffffff;
  --ring: #c8202f;
  --chart-1: #c8202f;
  --chart-2: #f5b21b;
  --chart-3: #1f3a6e;
  --chart-4: #2b2b2b;
  --chart-5: #7a5200;
  --sidebar: #ffffff;
  --sidebar-foreground: #1a1a1a;
  --sidebar-primary: #c8202f;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #fdf0cf;
  --sidebar-accent-foreground: #7a5200;
  --sidebar-border: #d9d4cb;
  --sidebar-ring: #c8202f;
  --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(26 26 26 / 0.06);
  --shadow-xs: 0 1px 2px 0 rgb(26 26 26 / 0.08);
  --shadow-sm: 0 1px 3px 0 rgb(26 26 26 / 0.12), 0 1px 2px -1px rgb(18 12 10 / 0.1);
  --shadow: 0 1px 3px 0 rgb(26 26 26 / 0.12), 0 1px 2px -1px rgb(18 12 10 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(26 26 26 / 0.14), 0 2px 4px -2px rgb(18 12 10 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(26 26 26 / 0.16), 0 4px 6px -4px rgb(18 12 10 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(26 26 26 / 0.18), 0 8px 10px -6px rgb(18 12 10 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(26 26 26 / 0.3);
  /* Site colours, moved here from css/ascot.css so Studio's Site look can change them. */
  --gp-red: #c8202f;
  --gp-gold: #f5b21b;
  --gp-night: #1a1a1a;
  --gp-sand: #f4f1ec;
}

.dark {
  --background: #121212;
  --foreground: #f4f1ec;
  --card: #1d1d1d;
  --card-foreground: #f4f1ec;
  --popover: #1d1d1d;
  --popover-foreground: #f4f1ec;
  --primary: #f5b21b;
  --primary-foreground: #1a1a1a;
  --secondary: #f4f1ec;
  --secondary-foreground: #1a1a1a;
  --muted: #262626;
  --muted-foreground: #b9b3aa;
  --accent: #2a2314;
  --accent-foreground: #f5b21b;
  --destructive: #f87171;
  --destructive-foreground: #121212;
  --border: #363636;
  --input: #262626;
  --ring: #f5b21b;
  --chart-1: #ff6b78;
  --chart-2: #f5b21b;
  --chart-3: #7fa3e6;
  --chart-4: #d9d4cb;
  --chart-5: #c9a24a;
  --sidebar: #1d1d1d;
  --sidebar-foreground: #f4f1ec;
  --sidebar-primary: #f5b21b;
  --sidebar-primary-foreground: #1a1a1a;
  --sidebar-accent: #2a2314;
  --sidebar-accent-foreground: #f5b21b;
  --sidebar-border: #363636;
  --sidebar-ring: #f5b21b;
}

/* Keyboard focus: solid 3px outline on the header and the always-charcoal footer (the template ring is half-transparent or removed). */
[data-theme-region="header"] :is(a, button, [role="button"]):focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; box-shadow: none; }
.gp-footer :is(a, button, [role="button"]):focus-visible { outline: 3px solid #f5b21b; outline-offset: 2px; box-shadow: none; }
/* Sponsor strip is white in both themes: use the dark gold, not the dark-mode gold token. */
.gp-sponsor-strip :is(.gp-eyebrow, .gp-textlink) { color: #7a5200; }

/* Round 2: menus opened from the header (body-level dropdowns, mobile sheet, in-header theme menu): visible focus. */
:is(.imported-menu-popup, .imported-sheet-panel) :is(a, button, summary, [role="button"]):focus-visible,
[role="menu"] [role^="menuitem"]:focus-visible { outline: 3px solid var(--popover-foreground); outline-offset: -3px; box-shadow: none; }
