/* ============================================================
   THE PROGRAM PALETTE (BP-2409; the roast §3.1, Butz's "Agree", DECISIONS 2026-11-26): the colours
   of fflo.io's five program pages, /agency-lift, /challenge, /advise-hour, /hub and /blueprint,
   which are now built in one design system modelled on Agency Lift, and of fflo.io/ffree (BP-2410),
   ffree for advisors, built in the same system. It began as Agency Lift's own
   (Round 101 lane B; P-1 A, the printed flyer's colours) and is named --prog-* now that every
   program page wears it; the --lift-* names stay as aliases, so Agency Lift's own rules (the
   levels, the timeline, the triangles) read exactly what they read before.
   TOKENS ONLY: custom properties, no rule. Every rule that paints with them is in fflo.css, which
   writes no colour literal (StylesheetTest); bp labs' cyan and orange are tokens.css's own
   (--cyan-500, --orange) and are not repeated here (only the text cyan is, below: the pinned
   tokens lack it). Loaded by the program pages and /ffree alone, as a file: the site's CSP
   (docker/site/Caddyfile) has no 'unsafe-inline' for styles, so no <style> and no style="".
   ProgramPagesContrastTest measures every text pair the pages paint with these (WCAG 2) and fails
   on a declaration that is not a --prog-* or --lift-* token. The lead's call (BP-2409): kept in
   fflo-app until a second SITE wears them, then they move to web-kit's tokens.css (hard rule 5).
   ============================================================ */
:root {
  /* The grounds: the hero, the first card of a shaded row, the closing panel. */
  --prog-ink: #0e2a33;
  /* The four shades, darkest last: Agency Lift's four triangles, in order, and every shaded row.
     The fourth is ink on a light page and the near-white on the ink (and on a dark page). */
  --prog-1: #a9d4da;
  --prog-2: #5fb3bf;
  --prog-3: #2f8a98;
  --prog-4: #0f2429;
  --prog-4-on-ink: #f2fcfe;
  /* The palest ground: the sample timeline's "Squads get ready", a bar with no words on it. */
  --prog-pale: var(--prog-on-ink);
  /* On the ink: the eyebrow, the fact line and the small lines (8.3:1), and reading copy (11.9:1). */
  --prog-mist: #9fc8ce;
  --prog-on-ink: #d6e8ec;
  /* Text and links on a light page: bp labs' text cyan (5.7:1 on white). Written here, not read
     from tokens.css: the web-kit this site is pinned to has no --cyan-700 yet. */
  --prog-link: #006e94;
  /* ffree's accent on fflo.io/ffree (BP-2410), from tokens.css's [data-brand="ffree"], never picked
     by eye: its coral on the ink (the outcome's phrase, the "for advisors" pill, "Never shared";
     5.6:1), and its darker coral for type on a light page (--accent-text, 6.3:1 on white). */
  --prog-ffree: var(--coral);
  --prog-ffree-text: #be123c;

  /* Agency Lift's names for the same colours (Round 101 lane B), kept as aliases. */
  --lift-ink: var(--prog-ink);
  --lift-1: var(--prog-1);
  --lift-2: var(--prog-2);
  --lift-3: var(--prog-3);
  --lift-4: var(--prog-4);
  --lift-4-on-ink: var(--prog-4-on-ink);
  --lift-pale: var(--prog-pale);
  --lift-mist: var(--prog-mist);
  --lift-on-ink: var(--prog-on-ink);
  --lift-link: var(--prog-link);
}

:root[data-theme="dark"] {
  --prog-4: #f2fcfe;
  --prog-link: var(--cyan-300);
  /* tokens.css's [data-theme="dark"][data-brand="ffree"] --accent-text: the lighter coral. */
  --prog-ffree-text: #ff8fa5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --prog-4: #f2fcfe;
    --prog-link: var(--cyan-300);
    --prog-ffree-text: #ff8fa5;
  }
}
