/*
 * Appalachian Championship Enduro Series (ACES) theme: "Hardwood & route sheet".
 * ACES red on route-card paper, the deep green of the Appalachian hardwoods, ink black from the logo.
 * The same colour values are mirrored in site.json (participant.theme), which is all the participant app (my.<host>) reads.
 * Fonts: Barlow (text) and Barlow Condensed (display), self-hosted (fonts/, SIL Open Font License).
 */
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --background: #f5f3ec;
  --foreground: #16191b;
  --card: #ffffff;
  --card-foreground: #16191b;
  --popover: #ffffff;
  --popover-foreground: #16191b;
  --primary: #cf1820;
  --primary-foreground: #ffffff;
  --secondary: #17382a;
  --secondary-foreground: #f5f3ec;
  --muted: #e8e4d8;
  --muted-foreground: #5a5246;
  --accent: #dfe7d4;
  --accent-foreground: #17382a;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #d8d1c1;
  --input: #ffffff;
  --ring: #17382a;
  --chart-1: #cf1820;
  --chart-2: #17382a;
  --chart-3: #6f8c3c;
  --chart-4: #c4952f;
  --chart-5: #5a5246;
  --sidebar: #ffffff;
  --sidebar-foreground: #16191b;
  --sidebar-primary: #cf1820;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #dfe7d4;
  --sidebar-accent-foreground: #17382a;
  --sidebar-border: #d8d1c1;
  --sidebar-ring: #17382a;
  --font-sans: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --tracking-normal: 0em;
  --radius: 0.375rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0 1px 2px 0 rgb(22 25 27 / 0.06);
  --shadow-xs: 0 1px 2px 0 rgb(22 25 27 / 0.08);
  --shadow-sm: 0 1px 3px 0 rgb(22 25 27 / 0.12), 0 1px 2px -1px rgb(22 25 27 / 0.1);
  --shadow: 0 1px 3px 0 rgb(22 25 27 / 0.12), 0 1px 2px -1px rgb(22 25 27 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(22 25 27 / 0.14), 0 2px 4px -2px rgb(22 25 27 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(22 25 27 / 0.16), 0 4px 6px -4px rgb(22 25 27 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(22 25 27 / 0.18), 0 8px 10px -6px rgb(22 25 27 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(22 25 27 / 0.3);
  /* Site colours (css/aces.css). The palette stays the same in both modes; the surfaces below flip. */
  --forest: #17382a;
  --moss: #6f8c3c;
  --paper: #f5f3ec;
  --flag: #ed1c24;
  --check-green: #1d7a3e;
  --bark: #5a5246;
  --night: #0d1411;
  --surface-alt: #ece8dc;
  --flag-ink: #b8141b;
}

.dark {
  --background: #0d1411;
  --foreground: #eef0e8;
  --card: #16201b;
  --card-foreground: #eef0e8;
  --popover: #16201b;
  --popover-foreground: #eef0e8;
  --primary: #cf1820;
  --primary-foreground: #ffffff;
  --secondary: #eef0e8;
  --secondary-foreground: #0d1411;
  --muted: #16201b;
  --muted-foreground: #a7b1a3;
  --accent: #1d2b24;
  --accent-foreground: #eef0e8;
  --destructive: #f87171;
  --destructive-foreground: #0d1411;
  --border: #2a3a31;
  --input: #16201b;
  --ring: #8fb35a;
  --chart-1: #ff5a5f;
  --chart-2: #eef0e8;
  --chart-3: #8fb35a;
  --chart-4: #d9ab48;
  --chart-5: #a7b1a3;
  --sidebar: #16201b;
  --sidebar-foreground: #eef0e8;
  --sidebar-primary: #cf1820;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1d2b24;
  --sidebar-accent-foreground: #eef0e8;
  --sidebar-border: #2a3a31;
  --sidebar-ring: #8fb35a;
  --surface-alt: #121b17;
  --flag-ink: #ff7272;
}

/* Header and footer. The header is a white bar under a red rule in both modes (the logo has black lettering).
   The footer is hardwood green (darker at night). */
[data-theme-region="header"] { background: #ffffff; color: #16191b; border-color: #d8d1c1; }
.dark [data-theme-region="header"] { background: #ffffff; color: #16191b; border-color: #d8d1c1; }
[data-theme-region="footer"] { background: #17382a; color: #f5f3ec; border-color: #cf1820; }
.dark [data-theme-region="footer"] { background: #0a110e; color: #eef0e8; border-color: #cf1820; }
