/*
 * Campeonato Zona Centro de Enduro: theme tokens (customer layer, editable in Studio).
 *
 * Identity: black, championship yellow, plate white, chrome. Race red belongs to the 4 Horas mark and to "live".
 * Fluorescent orange is the course marking and nothing else (see docs/adr/0004-visual-identity-and-participant-theme.md).
 * Light is the default colour mode (public pages open light, the participant app too). The header, the hero,
 * the black bands and the footer stay black in both modes; the page body follows light / dark.
 * Every colour is a 6-digit hex so .checks/participant-theme.mjs can compare it with site.json -> participant.theme.
 * The customer stylesheet css/zce.css holds everything else.
 */

:root {
  --background: #ffffff;
  --foreground: #000000;
  --card: #f2f3f5;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffd200;
  --secondary: #e6e8eb;
  --secondary-foreground: #000000;
  --muted: #e6e8eb;
  --muted-foreground: #4a4f57;
  --accent: #ffd200;
  --accent-foreground: #000000;
  --destructive: #b91c1c;
  --destructive-foreground: #ffffff;
  --border: #d3d6db;
  --input: #b9bdc5;
  --ring: #000000;
  --chart-1: #000000;
  --chart-2: #e1261c;
  --chart-3: #ffd200;
  --chart-4: #ff5a00;
  --chart-5: #8a919c;
  --sidebar: #f2f3f5;
  --sidebar-foreground: #000000;
  --sidebar-primary: #000000;
  --sidebar-primary-foreground: #ffd200;
  --sidebar-accent: #ffd200;
  --sidebar-accent-foreground: #000000;
  --sidebar-border: #d3d6db;
  --sidebar-ring: #000000;
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --tracking-normal: 0em;
  --radius: 0.25rem;
  --spacing: 0.25rem;
  --shadow-2xs: 0px 2px 0px 0px rgb(0 0 0 / 0);
  --shadow-xs: 0px 2px 0px 0px rgb(0 0 0 / 0);
  --shadow-sm: 0px 2px 0px 0px rgb(0 0 0 / 0), 0px 1px 2px -1px rgb(0 0 0 / 0);
  --shadow: 0px 2px 0px 0px rgb(0 0 0 / 0), 0px 1px 2px -1px rgb(0 0 0 / 0);
  --shadow-md: 0px 2px 0px 0px rgb(0 0 0 / 0), 0px 2px 4px -1px rgb(0 0 0 / 0);
  --shadow-lg: 0px 2px 0px 0px rgb(0 0 0 / 0), 0px 4px 6px -1px rgb(0 0 0 / 0);
  --shadow-xl: 0px 2px 0px 0px rgb(0 0 0 / 0), 0px 8px 10px -1px rgb(0 0 0 / 0);
  --shadow-2xl: 0px 2px 0px 0px rgb(0 0 0 / 0);
}

.dark {
  --background: #0e0f11;
  --foreground: #ffffff;
  --card: #17181b;
  --card-foreground: #ffffff;
  --popover: #17181b;
  --popover-foreground: #ffffff;
  --primary: #ffd200;
  --primary-foreground: #000000;
  --secondary: #26282d;
  --secondary-foreground: #ffffff;
  --muted: #202227;
  --muted-foreground: #a6abb4;
  --accent: #ffd200;
  --accent-foreground: #000000;
  --destructive: #ff6b5e;
  --destructive-foreground: #1a0503;
  --border: #30333a;
  --input: #3a3d44;
  --ring: #ffd200;
  --chart-1: #ffd200;
  --chart-2: #ff4a3d;
  --chart-3: #ffffff;
  --chart-4: #ff5a00;
  --chart-5: #8a919c;
  --sidebar: #17181b;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #ffd200;
  --sidebar-primary-foreground: #000000;
  --sidebar-accent: #ffd200;
  --sidebar-accent-foreground: #000000;
  --sidebar-border: #30333a;
  --sidebar-ring: #ffd200;
}

/* Header and footer: black in both colour modes. site.json -> participant.theme.header / .footer mirror these. */
[data-theme-region="header"] {
  --background: #000000;
  --foreground: #ffffff;
  --card: #0e0f11;
  --card-foreground: #ffffff;
  --popover: #0e0f11;
  --popover-foreground: #ffffff;
  --primary: #ffd200;
  --primary-foreground: #000000;
  --secondary: #202227;
  --secondary-foreground: #ffffff;
  --muted: #202227;
  --muted-foreground: #c5cad3;
  --accent: #202227;
  --accent-foreground: #ffffff;
  --border: #ffd200;
  --input: #3a3d44;
  --ring: #ffd200;
  color-scheme: dark;
}
[data-theme-region="footer"] {
  --background: #000000;
  --foreground: #ffffff;
  --card: #0e0f11;
  --card-foreground: #ffffff;
  --primary: #ffd200;
  --primary-foreground: #000000;
  --muted: #202227;
  --muted-foreground: #a6abb4;
  --border: #30333a;
  --ring: #ffd200;
  color-scheme: dark;
}
