/* Ridelab design tokens — generated from the ridelab-design skill (references/tokens.css). Edit there first. */
/* Self-hosted fonts (no Google CDN), all OFL: Space Grotesk 300-700 (headings, owner decision 2026-11-23),
   Inter 100-900 (body/UI/specs), Material Symbols (Apache 2.0). Montserrat retired. */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url("../assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Material Symbols Outlined"; font-style: normal; font-weight: 400; font-display: block;
  src: url("../assets/fonts/material-symbols-outlined.woff2") format("woff2");
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

:root {
  /* ---- Brand palette (brand guide) ---- */
  --rl-lime: #EEFE53;        /* primary. Text on it: Carbon (16.79:1). NEVER white (1.11) */
  --rl-blue: #2979FF;        /* accent. Light bg: large text/icons/focus only (3.73 on Off White) */
  --rl-carbon: #111315;
  --rl-graphite: #292D2E;
  --rl-concrete: #BFBFBF;    /* light bg: dividers only (1.72 on Off White) */
  --rl-offwhite: #F7F8F4;
  --rl-white: #FFFFFF;

  /* ---- Derived, accessibility-driven ---- */
  --rl-blue-text: #1F5FCC;   /* APPROVED 2026-11-23: small blue link text on light, 5.52:1 on Off White */
  --rl-steel: #5E6663;       /* brand Steel Grey: secondary text, 5.54:1 on Off White */
  --rl-grey-text: var(--rl-steel);
  --rl-border: #D8DCD6;      /* brand Border Grey: decorative borders/dividers only (1.30:1) */
  --rl-outline: #8F8F8F;     /* input/important borders on Off White, 3.03:1 */
  --rl-error: #C63E3E;       /* brand Error Red: 4.73:1 on Off White, white on it 5.05:1 */
  --rl-success: #21845B;     /* brand Success Green: white on it 4.65:1; as text on Off White only large (4.36) */

  /* ---- Semantic roles: light (shopping pages) ---- */
  --rl-surface: var(--rl-offwhite);
  --rl-surface-raised: var(--rl-white);          /* cards, sheets */
  --rl-surface-sunken: #EEEFEA;                  /* DECISION: subtle section step. Carbon 16.11:1; --rl-grey-text FAILS here (4.16) -> use Graphite */
  --rl-on-surface: var(--rl-carbon);
  --rl-on-surface-variant: var(--rl-graphite);
  --rl-outline-variant: var(--rl-border);        /* dividers, card outlines */
  --rl-primary: var(--rl-carbon);                /* light surfaces: lime is invisible on white (1.04:1) -> Carbon */
  --rl-on-primary: var(--rl-white);
  --rl-primary-hover: var(--rl-graphite);
  --rl-strong: var(--rl-carbon);                 /* alt primary CTA / selected chips on light */
  --rl-on-strong: var(--rl-offwhite);
  --rl-accent: var(--rl-blue);
  --rl-inverse-surface: var(--rl-carbon);        /* snackbars, tooltips */
  --rl-inverse-on-surface: var(--rl-offwhite);
  --rl-inverse-primary: var(--rl-lime);          /* snackbar action */
  --rl-scrim: rgb(17 19 21 / 0.32);              /* Carbon @ 32% (M3 scrim) */
  --rl-focus: var(--rl-blue);                    /* 3.73:1 on Off White */

  /* ---- Typography (M3 size/line-height, brand weights) ---- */
  --rl-font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;          /* body, UI, specs */
  --rl-font-display: "Space Grotesk", var(--rl-font);                                  /* headings, display, prices-as-headline */
  --rl-font-specs: var(--rl-font);
  --rl-display-m: 700 2.8125rem/3.25rem var(--rl-font-display);   /* 45/52 */
  --rl-display-s: 700 2.25rem/2.75rem var(--rl-font-display);     /* 36/44 */
  --rl-headline-l: 700 2rem/2.5rem var(--rl-font-display);        /* 32/40 */
  --rl-headline-m: 700 1.75rem/2.25rem var(--rl-font-display);    /* 28/36 */
  --rl-headline-s: 700 1.5rem/2rem var(--rl-font-display);        /* 24/32 */
  --rl-title-l: 700 1.375rem/1.75rem var(--rl-font-display);      /* 22/28 */
  --rl-title-m: 600 1rem/1.5rem var(--rl-font);           /* 16/24 */
  --rl-title-s: 600 0.875rem/1.25rem var(--rl-font);      /* 14/20 */
  --rl-body-l: 400 1rem/1.5rem var(--rl-font);            /* 16/24 */
  --rl-body-m: 400 0.875rem/1.25rem var(--rl-font);       /* 14/20 */
  --rl-body-s: 400 0.75rem/1rem var(--rl-font);           /* 12/16 */
  --rl-label-l: 600 0.875rem/1.25rem var(--rl-font);      /* 14/20 buttons, chips */
  --rl-label-m: 600 0.75rem/1rem var(--rl-font);          /* 12/16 nav, badges */
  --rl-measure: 36rem;                                     /* ~60-70 chars of Body L in Inter */

  /* ---- Spacing (8px base, M3 scale) ---- */
  --rl-space-25: 2px;  --rl-space-50: 4px;  --rl-space-75: 6px;  --rl-space-100: 8px;
  --rl-space-125: 10px; --rl-space-150: 12px; --rl-space-175: 14px; --rl-space-200: 16px;
  --rl-space-250: 20px; --rl-space-300: 24px; --rl-space-400: 32px; --rl-space-450: 36px;
  --rl-space-500: 40px; --rl-space-600: 48px; --rl-space-700: 56px; --rl-space-800: 64px;
  --rl-space-900: 72px;
  --rl-margin: 16px;          /* 24px from 600px, see media query below */
  --rl-gutter: 16px;
  --rl-max-width: 1440px;     /* DECISION */
  --rl-pane-fixed: 360px;     /* 412px from 1200px */

  /* ---- Shape (M3 corner scale) ---- */
  --rl-radius-none: 0;
  --rl-radius-xs: 4px;        /* inputs, menus, tooltips */
  --rl-radius-s: 8px;         /* chips */
  --rl-radius-m: 12px;        /* cards, square buttons */
  --rl-radius-l: 16px;        /* large cards, desktop sheets */
  --rl-radius-xl: 28px;       /* dialogs, bottom-sheet top */
  --rl-radius-full: 9999px;   /* pills */
  --rl-radius-button: var(--rl-radius-full); /* DECIDED 2026-11-23: pill buttons everywhere */

  /* ---- Elevation (DECISION: M3 publishes no CSS shadows; tonal first) ---- */
  --rl-shadow-1: 0 1px 2px rgb(17 19 21 / 0.08), 0 1px 3px rgb(17 19 21 / 0.06);   /* card hover */
  --rl-shadow-2: 0 2px 6px rgb(17 19 21 / 0.10), 0 1px 2px rgb(17 19 21 / 0.06);   /* sticky bar, menus */
  --rl-shadow-3: 0 8px 24px rgb(17 19 21 / 0.16), 0 2px 6px rgb(17 19 21 / 0.08);  /* dialog, sheet */

  /* ---- States (M3 state-layer opacities) ---- */
  --rl-state-hover: 0.08;
  --rl-state-focus: 0.10;
  --rl-state-pressed: 0.10;
  --rl-state-dragged: 0.16;
  --rl-disabled-content: 0.38;
  --rl-disabled-container: 0.10;
  --rl-lime-hover: #D5EB20;   /* brand Hover Lime, Carbon text 13.95:1 */
  --rl-lime-pressed: #D8E64D; /* lime + Carbon 10%, text 13.61:1 */

  /* ---- Focus (DECISION based on WCAG 2.2) ---- */
  --rl-focus-width: 2px;
  --rl-focus-offset: 2px;

  /* ---- Targets ---- */
  --rl-target: 48px;
  --rl-control-h: 44px;       /* owner: less vertical padding. 44 = M3 pointer min / iOS; keep >=8px between targets */
  --rl-control-h-l: 48px;     /* PDP add-to-cart (mobile); text fields 48-56 */

  /* ---- Motion (M3) ---- */
  --rl-ease-effects: cubic-bezier(0.31, 0.94, 0.34, 1);
  --rl-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --rl-ease-spatial: cubic-bezier(0.27, 1.06, 0.18, 1);
  --rl-ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --rl-ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);
  --rl-dur-fast: 150ms;
  --rl-dur-effects: 200ms;
  --rl-dur-spatial: 350ms;
  --rl-dur-enter: 400ms;
  --rl-dur-exit: 200ms;
}

@media (min-width: 600px) {
  :root { --rl-margin: 24px; --rl-gutter: 24px; }
}
@media (min-width: 1200px) {
  :root { --rl-pane-fixed: 412px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --rl-dur-fast: 0ms; --rl-dur-effects: 0ms; --rl-dur-spatial: 0ms; --rl-dur-enter: 0ms; --rl-dur-exit: 0ms; }
}

/* Dark (hero / high-impact) sections */
.rl-dark {
  --rl-surface: var(--rl-carbon);
  --rl-surface-raised: var(--rl-graphite);
  --rl-on-surface: var(--rl-offwhite);
  --rl-on-surface-variant: var(--rl-concrete);   /* 10.13:1 on Carbon */
  --rl-outline: var(--rl-concrete);
  --rl-outline-variant: var(--rl-graphite);
  --rl-primary: var(--rl-lime);                  /* dark surfaces: lime button, Carbon text 16.79:1 */
  --rl-on-primary: var(--rl-carbon);
  --rl-primary-hover: var(--rl-lime-hover);
  --rl-strong: var(--rl-lime);
  --rl-on-strong: var(--rl-carbon);
  --rl-focus: var(--rl-lime);
  background: var(--rl-surface);
  color: var(--rl-on-surface);
}

/* Electric Blue sections (brand v1.0: Carbon text on blue, 4.68:1; never white body text on blue) */
.rl-blue {
  --rl-surface: var(--rl-blue);
  --rl-on-surface: var(--rl-carbon);
  --rl-on-surface-variant: var(--rl-carbon);
  --rl-outline: var(--rl-carbon);
  --rl-strong: var(--rl-carbon);
  --rl-on-strong: var(--rl-white);
  --rl-focus: var(--rl-carbon);
  background: var(--rl-surface);
  color: var(--rl-on-surface);
}

/* Reference primitives */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--rl-focus-width) solid var(--rl-focus);
  outline-offset: var(--rl-focus-offset);
}
.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--rl-control-h); min-width: var(--rl-target);
  padding: 0 var(--rl-space-250);
  font: var(--rl-label-l);
  border: 0;                                  /* owner rule: no borders on buttons */
  border-radius: var(--rl-radius-button);
  transition: background-color var(--rl-dur-effects) var(--rl-ease-effects);
  cursor: pointer; text-decoration: none;
}
.rl-btn--primary { background: var(--rl-primary); color: var(--rl-on-primary); }
.rl-btn--primary:hover { background: var(--rl-primary-hover); }
.rl-btn--tonal { background: var(--rl-border); color: var(--rl-carbon); }   /* secondary: grey fill, Carbon text */
.rl-btn--tonal:hover { background: #C9CEC7; }
.rl-btn--text { background: transparent; color: var(--rl-blue-text); padding-inline: var(--rl-space-150); text-decoration: underline; text-underline-offset: 3px; }
.rl-btn[disabled], .rl-btn[aria-disabled="true"] { opacity: var(--rl-disabled-content); cursor: not-allowed; }
.rl-price { font-variant-numeric: tabular-nums; }
