/* Changed for Gould: v23's palette (spec decisions 6, 50, 58, 66 item 9).
   Five colours: navy (bg), mint (accent), pacific blue (blue), deep-space blue
   (primary). Orange: the Announcement chip only (Latest News decision 28, Mitchell
   2026-11-19; navy text on it 9.53:1). Neutrals don't count as colours: one white (#fafafa), pure black
   for shadows, and the framework's greys (white-dark, contrast scale) made
   pure grey at their old lightness, unused for now. Light/dark shade steps:
   only the green's two (the button, 2026-11-11); no warning/success/error: the first spec that
   needs one adds it. HSL
   values round-trip to v23's hex exactly. */
:root {
  --color-primary-base-hsl: 202.1 100% 16.5%; /* deep-space blue #003554 */
  --color-accent-base-hsl: 160.1 84.1% 39.4%; /* tropical mint #10b981 */
  --color-blue-base-hsl: 185.2 84.4% 37.6%;   /* pacific blue #0fa3b1 */
  --color-bg-base-hsl: 210 84.6% 5.1%;        /* page navy #020d18 */
  --color-orange-base-hsl: 34.6 100% 55.5%;   /* announcement orange #ff9f1c (News decision 28) */
  --color-cta-band-hsl: 207.8 96.4% 11%;      /* CTA band navy #011e37: the CTA picture's own navy (CTA redesign decision 51) */

  /* Neutrals */
  --color-black-hsl: 0 0% 0%;
  --color-white-hsl: 0 0% 98%;
  --color-white-dark-1-hsl: 0 0% 75%;
  --color-white-dark-2-hsl: 0 0% 60%;

  --color-contrast-lower-hsl: 0 0% 84%;
  --color-contrast-low-hsl: 0 0% 64%;
  --color-contrast-medium-hsl: 0 0% 46%;
  --color-contrast-high-hsl: 0 0% 21%;
  --color-contrast-higher-hsl: 0 0% 7%;

  /* Resolved color tokens */
  --color-primary-base: hsl(var(--color-primary-base-hsl));
  --color-accent-base: hsl(var(--color-accent-base-hsl));
  --color-blue-base: hsl(var(--color-blue-base-hsl));
  --color-bg-base: hsl(var(--color-bg-base-hsl));
  --color-orange-base: hsl(var(--color-orange-base-hsl));
  --color-cta-band: hsl(var(--color-cta-band-hsl));

  /* The green's hover and press shades (the button, Mitchell 2026-11-11): mixed from the one green,
     no new hue; navy text on them 9.51:1 and 5.07:1 (20% black gave 4.43, under AA) */
  --color-accent-light: color-mix(in oklab, var(--color-accent-base), white 20%);
  --color-accent-dark: color-mix(in oklab, var(--color-accent-base), black 15%);

  /* The Quality panel: the navy lifted 5% toward white (REF), mixed, no new hue. */
  --color-bg-raised: color-mix(in srgb, var(--color-white) 5%, var(--color-bg-base));

  --color-black: hsl(var(--color-black-hsl));
  --color-white: hsl(var(--color-white-hsl));
  --color-white-dark-1: hsl(var(--color-white-dark-1-hsl));
  --color-white-dark-2: hsl(var(--color-white-dark-2-hsl));

  --color-contrast-lower: hsl(var(--color-contrast-lower-hsl));
  --color-contrast-low: hsl(var(--color-contrast-low-hsl));
  --color-contrast-medium: hsl(var(--color-contrast-medium-hsl));
  --color-contrast-high: hsl(var(--color-contrast-high-hsl));
  --color-contrast-higher: hsl(var(--color-contrast-higher-hsl));

  /* Compatibility aliases for current framework usage */
  --color-dark: var(--color-contrast-higher);
  --color-light: var(--color-white);
}
