/* Nanaimo Motocross Association theme: signal red from the NMA Wastelands logo on warm white, with black and charcoal. */
:root {
  --background: #f7f5f2;
  --foreground: #17110f;
  --card: #ffffff;
  --card-foreground: #17110f;
  --popover: #ffffff;
  --popover-foreground: #17110f;
  --primary: #c8161d;
  --primary-foreground: #ffffff;
  --secondary: #17110f;
  --secondary-foreground: #f7f5f2;
  --muted: #ece8e3;
  --muted-foreground: #5a514b;
  --accent: #f6dad7;
  --accent-foreground: #7a0f14;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #ddd5cc;
  --input: #fbf8f5;
  --ring: #c8161d;
  --chart-1: #c8161d;
  --chart-2: #3b3431;
  --chart-3: #2f6f4e;
  --chart-4: #a35b00;
  --chart-5: #7a6f68;
  --sidebar: #ffffff;
  --sidebar-foreground: #17110f;
  --sidebar-primary: #c8161d;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f6dad7;
  --sidebar-accent-foreground: #7a0f14;
  --sidebar-border: #ddd5cc;
  --sidebar-ring: #c8161d;
  --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(23 17 15 / 0.06);
  --shadow-xs: 0 1px 2px 0 rgb(23 17 15 / 0.08);
  --shadow-sm: 0 1px 3px 0 rgb(23 17 15 / 0.12), 0 1px 2px -1px rgb(23 17 15 / 0.1);
  --shadow: 0 1px 3px 0 rgb(23 17 15 / 0.12), 0 1px 2px -1px rgb(23 17 15 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(23 17 15 / 0.14), 0 2px 4px -2px rgb(23 17 15 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(23 17 15 / 0.16), 0 4px 6px -4px rgb(23 17 15 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(23 17 15 / 0.18), 0 8px 10px -6px rgb(23 17 15 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(23 17 15 / 0.3);
  /* Site colours, moved here from css/nmx.css so Studio's Site look can change them. */
  --gp-red: #f23b3f;
  --gp-night: #120d0c;
  --gp-sand: #f7f3ee;
}

.dark {
  --background: #0f0c0b;
  --foreground: #f4eeea;
  --card: #1a1514;
  --card-foreground: #f4eeea;
  --popover: #1a1514;
  --popover-foreground: #f4eeea;
  --primary: #f23b3f;
  --primary-foreground: #120d0c;
  --secondary: #f4eeea;
  --secondary-foreground: #120d0c;
  --muted: #251e1c;
  --muted-foreground: #c8bdb6;
  --accent: #3a1416;
  --accent-foreground: #ffb3b5;
  --destructive: #f87171;
  --destructive-foreground: #120d0c;
  --border: #3a2e2c;
  --input: #251e1c;
  --ring: #f23b3f;
  --chart-1: #f23b3f;
  --chart-2: #d9cfc9;
  --chart-3: #6fc29a;
  --chart-4: #f0a24b;
  --chart-5: #a89d96;
  --sidebar: #1a1514;
  --sidebar-foreground: #f4eeea;
  --sidebar-primary: #f23b3f;
  --sidebar-primary-foreground: #120d0c;
  --sidebar-accent: #3a1416;
  --sidebar-accent-foreground: #ffb3b5;
  --sidebar-border: #3a2e2c;
  --sidebar-ring: #f23b3f;
}

/* Header and footer keyboard focus: solid 3px outline (the template ring is half transparent or missing). */
[data-theme-region="header"] :is(a, button, [role="button"]):focus-visible { outline: 3px solid #f23b3f; outline-offset: 2px; box-shadow: none; }
/* Footer is always the dark night panel. */
footer.gp-footer :is(a, button, [role="button"]):focus-visible { outline: 3px solid #f7f3ee; 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; }
/* Featured-event card sits on a hero photo: more opaque panel and a lighter brand red so the label and dates pass on a bright photo. */
:root .gp-featured { background: rgb(18 13 12 / .94); }
:root .gp-featured .gp-featured-label, :root .gp-featured .gp-featured-dates { color: #ff5a5e; }
