/*
 * East Coast MX NL (ECMX) theme: "Island Dirt" (designer handoff ECMX-Island-Dirt, concept 3, 2026-11-18).
 * A Newfoundland motocross club bulletin: cream paper, navy ink and rail, a screen-printed race poster, vermilion,
 * caption blue and a peach action button. The same colour values are mirrored in site.json (participant.theme),
 * which is all the participant app (my.<host>) reads.
 * Fonts (self-hosted, SIL Open Font License in fonts/OFL-*.txt): Archivo Black (titles), DM Sans (text),
 * IBM Plex Mono (small labels).
 */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/dm-sans-700.woff2) format('woff2'); }
@font-face { font-family: 'Archivo Black'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/archivo-black-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

:root {
  --background: #fff2d7;
  --foreground: #112e43;
  --card: #fbebcc;
  --card-foreground: #112e43;
  --popover: #fffaf0;
  --popover-foreground: #112e43;
  --primary: #112e43;
  --primary-foreground: #fff2d7;
  --secondary: #a7d1d1;
  --secondary-foreground: #112e43;
  --muted: #f6e5c4;
  --muted-foreground: #4b5b63;
  --accent: #a7d1d1;
  --accent-foreground: #112e43;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #cdbfa6;
  --input: #fffaf0;
  --ring: #df4f28;
  --chart-1: #df4f28;
  --chart-2: #112e43;
  --chart-3: #82b5bf;
  --chart-4: #f58459;
  --chart-5: #4b5b63;
  --sidebar: #112e43;
  --sidebar-foreground: #fff2d7;
  --sidebar-primary: #9dcbd0;
  --sidebar-primary-foreground: #102e42;
  --sidebar-accent: #1d3f57;
  --sidebar-accent-foreground: #fff2d7;
  --sidebar-border: #48616b;
  --sidebar-ring: #df4f28;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Archivo Black', 'Arial Black', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --tracking-normal: 0em;
  --radius: 0rem;
  --spacing: 0.25rem;
  --shadow-2xs: 2px 2px 0 0 #112e43;
  --shadow-xs: 2px 2px 0 0 #112e43;
  --shadow-sm: 3px 3px 0 0 #112e43;
  --shadow: 3px 3px 0 0 #112e43;
  --shadow-md: 4px 4px 0 0 #112e43;
  --shadow-lg: 5px 5px 0 0 #112e43;
  --shadow-xl: 6px 6px 0 0 #112e43;
  --shadow-2xl: 8px 8px 0 0 #112e43;
  /* Island Dirt colours by role (css/ecmx.css). */
  --ink: #112e43;
  --paper: #fff2d7;
  --poster-stock: #fbebcc;
  --vermilion: #df4f28;
  --caption-blue: #a7d1d1;
  --selected-blue: #9dcbd0;
  --stripe-blue: #82b5bf;
  --action-peach: #f58459;
  --ticket-paper: #fffaf0;
  --ticket-edge: #f6eacf;
  --rail-rule: #48616b;
  --rail-meta: #cbdbdb;
  --rail-edge: #0b293d;
  --flag-ink: #d3e3d6;
  --rule-soft: #b4aba0;
}

.dark {
  --background: #0e2233;
  --foreground: #fff2d7;
  --card: #16324a;
  --card-foreground: #fff2d7;
  --popover: #16324a;
  --popover-foreground: #fff2d7;
  --primary: #a7d1d1;
  --primary-foreground: #0e2233;
  --secondary: #a7d1d1;
  --secondary-foreground: #0e2233;
  --muted: #16324a;
  --muted-foreground: #cbbfa7;
  --accent: #1f4a63;
  --accent-foreground: #fff2d7;
  --destructive: #f87171;
  --destructive-foreground: #0e2233;
  --border: #2e5068;
  --input: #16324a;
  --ring: #f58459;
  --chart-1: #f58459;
  --chart-2: #fff2d7;
  --chart-3: #82b5bf;
  --chart-4: #df4f28;
  --chart-5: #cbbfa7;
  --sidebar: #0b1c2a;
  --sidebar-foreground: #fff2d7;
  --sidebar-primary: #9dcbd0;
  --sidebar-primary-foreground: #102e42;
  --sidebar-accent: #1d3f57;
  --sidebar-accent-foreground: #fff2d7;
  --sidebar-border: #48616b;
  --sidebar-ring: #f58459;
  --ink: #fff2d7;
  --paper: #0e2233;
  --poster-stock: #16324a;
  --rule-soft: #3c5a6e;
  --shadow-sm: 3px 3px 0 0 #050f17;
  --shadow: 3px 3px 0 0 #050f17;
  --shadow-lg: 5px 5px 0 0 #050f17;
}

/* Header: the navy rail (top bar on narrow screens and in the participant app). Footer: the bulletin sign-off on paper. */
[data-theme-region="header"] { background: #112e43; color: #fff2d7; border-color: #0b293d; }
.dark [data-theme-region="header"] { background: #0b1c2a; color: #fff2d7; border-color: #050f17; }
[data-theme-region="footer"] { background: #fff2d7; color: #112e43; border-color: #112e43; }
.dark [data-theme-region="footer"] { background: #0e2233; color: #fff2d7; border-color: #fff2d7; }
