/*
 * East Coast MX NL (ECMX) theme: "Edge of the continent".
 * Newfoundland is the easternmost edge of North America: deep North Atlantic navy, fog, the flare red of a race
 * plate and number-plate yellow, with iceberg blue as the cool accent.
 * The same colour values are mirrored in site.json (participant.theme), which is all the participant app (my.<host>) reads.
 * Font: Archivo (variable: weight 100-900, width 62-125%, italic), self-hosted (fonts/, SIL Open Font License).
 * Headings use its widest, heaviest italic; text uses the normal width.
 */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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; }

:root {
  --background: #eef2f3;
  --foreground: #0b2233;
  --card: #ffffff;
  --card-foreground: #0b2233;
  --popover: #ffffff;
  --popover-foreground: #0b2233;
  --primary: #d6281c;
  --primary-foreground: #ffffff;
  --secondary: #0b2233;
  --secondary-foreground: #eef2f3;
  --muted: #dde5e8;
  --muted-foreground: #4a5d6b;
  --accent: #fff1bf;
  --accent-foreground: #0b2233;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --border: #c9d5da;
  --input: #ffffff;
  --ring: #0b2233;
  --chart-1: #d6281c;
  --chart-2: #0b2233;
  --chart-3: #2b8ea8;
  --chart-4: #e0a400;
  --chart-5: #4a5d6b;
  --sidebar: #ffffff;
  --sidebar-foreground: #0b2233;
  --sidebar-primary: #d6281c;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #fff1bf;
  --sidebar-accent-foreground: #0b2233;
  --sidebar-border: #c9d5da;
  --sidebar-ring: #0b2233;
  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display-stretch: 125%;
  --tracking-normal: 0em;
  --radius: 0.5rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0 1px 2px 0 rgb(11 34 51 / 0.06);
  --shadow-xs: 0 1px 2px 0 rgb(11 34 51 / 0.08);
  --shadow-sm: 0 1px 3px 0 rgb(11 34 51 / 0.12), 0 1px 2px -1px rgb(11 34 51 / 0.1);
  --shadow: 0 1px 3px 0 rgb(11 34 51 / 0.12), 0 1px 2px -1px rgb(11 34 51 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(11 34 51 / 0.14), 0 2px 4px -2px rgb(11 34 51 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(11 34 51 / 0.16), 0 4px 6px -4px rgb(11 34 51 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(11 34 51 / 0.18), 0 8px 10px -6px rgb(11 34 51 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(11 34 51 / 0.3);
  /* Site colours (css/ecmx.css). The palette stays the same in both modes; the surfaces below flip. */
  --atlantic: #0b2233;
  --atlantic-raised: #123650;
  --plate: #ffc81e;
  --ice: #9fd8e3;
  --fog: #eef2f3;
  --dirt: #2a1d17;
  --surface-alt: #e2e9ec;
  --flare-ink: #b81f15;
}

.dark {
  --background: #071521;
  --foreground: #eef2f3;
  --card: #0f2536;
  --card-foreground: #eef2f3;
  --popover: #0f2536;
  --popover-foreground: #eef2f3;
  --primary: #d6281c;
  --primary-foreground: #ffffff;
  --secondary: #eef2f3;
  --secondary-foreground: #071521;
  --muted: #0f2536;
  --muted-foreground: #9fb3c0;
  --accent: #183449;
  --accent-foreground: #eef2f3;
  --destructive: #f87171;
  --destructive-foreground: #071521;
  --border: #1f3c52;
  --input: #0f2536;
  --ring: #ffc81e;
  --chart-1: #ff5a4c;
  --chart-2: #eef2f3;
  --chart-3: #5cc3dc;
  --chart-4: #ffc81e;
  --chart-5: #9fb3c0;
  --sidebar: #0f2536;
  --sidebar-foreground: #eef2f3;
  --sidebar-primary: #d6281c;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #183449;
  --sidebar-accent-foreground: #eef2f3;
  --sidebar-border: #1f3c52;
  --sidebar-ring: #ffc81e;
  --surface-alt: #0b1d2b;
  --flare-ink: #ff7a6e;
}

/* Header and footer: North Atlantic navy in both modes, under a flare red rule; the footer closes on a plate yellow rule. */
[data-theme-region="header"] { background: #0b2233; color: #eef2f3; border-color: #d6281c; }
.dark [data-theme-region="header"] { background: #061827; color: #eef2f3; border-color: #d6281c; }
[data-theme-region="footer"] { background: #0b2233; color: #eef2f3; border-color: #ffc81e; }
.dark [data-theme-region="footer"] { background: #04101a; color: #eef2f3; border-color: #ffc81e; }
