/* =========================================================================
   Athena - colour scheme (per theme; the Athena family's shared theme.css
   reads only these names. Source: the handoff's tokens.css, "SCHEME Athena")

   Athena's original four colours, refined for AA. Saturated fills, white text.

   BRAND LOOK sets four values (Site Admin > Brand Look); the platform injects
   them as --cs-brand-primary / --cs-brand-secondary (+ -text, its readable
   black or white partner) / --cs-font-heading / --cs-font-body. Everything is
   derived here, in CSS, so the live site, the Sections preview and the Pages
   editor agree.
     Stock (Brand Look colour unset): the hand-tuned values after the commas.
     Brand (the client set a colour): every "-bl" value below. A "-bl" value
     references a --cs-brand-* token with NO fallback, so it is invalid while
     that token is unset, and var(--x-bl, stock) falls back to the stock
     value (THEME_BUILD_GUIDE gotcha 13). The primary and the secondary
     switch independently.
   --primary-ink: the brand primary with its OKLCH lightness capped at 0.55,
   so white text on it (buttons) and the primary as small text both reach
   4.5:1. The raw primary is used only for large fills.
   ========================================================================= */
:root {
	--brand-primary: var(--cs-brand-primary, #167A4C);     /* white 5.35:1 */
	--brand-secondary: var(--cs-brand-secondary, #FFC107); /* ink 9.46:1 */
	--primary-ink-bl: oklch(from var(--cs-brand-primary) min(l, 0.55) c h);
	--primary-ink: var(--primary-ink-bl, #167A4C);
	--on-primary: var(--cs-brand-primary-text, #fff);
	--on-secondary: var(--cs-brand-secondary-text, #212529);

	/* Accents: red and blue; with Brand Look, shades of the client's two colours */
	--accent-1-bl: color-mix(in srgb, var(--cs-brand-primary) 72%, #000);
	--accent-2-bl: color-mix(in srgb, var(--cs-brand-secondary) 35%, #1B1F23);
	--on-accent-1-bl: oklch(from var(--accent-1-bl) clamp(0, (0.56 - l) * 1000, 1) 0 0);   /* white, or black on a light fill */
	--accent-1: var(--accent-1-bl, #CF2E3E);   /* red,  white 5.11:1 */
	--accent-2: var(--accent-2-bl, #0C63E4);   /* blue, white 5.36:1 */
	--accent-1-light: color-mix(in srgb, var(--accent-1) 45%, #fff);
	--accent-2-light: color-mix(in srgb, var(--accent-2) 45%, #fff);

	/* Impact tiles: bg / number / label (tiles 1-3 are also the "Ways to get involved" circles) */
	--t1-bg: var(--brand-primary);   --t1-num: var(--on-primary);         --t1-fg: var(--on-primary);
	--t2-bg: var(--accent-1);        --t2-num: var(--on-accent-1-bl, #fff); --t2-fg: var(--on-accent-1-bl, #fff);
	--t3-bg: var(--accent-2);        --t3-num: #fff;                      --t3-fg: #fff;
	--t4-bg: var(--brand-secondary); --t4-num: var(--on-secondary);       --t4-fg: var(--on-secondary);

	--mission-bg: var(--brand-primary); --mission-fg: var(--on-primary); --mission-eyebrow: var(--on-primary);
	--quotes-bg: var(--accent-1);       --quotes-fg: var(--on-accent-1-bl, #fff); --quotes-eyebrow: var(--on-accent-1-bl, #fff);
	--card-edge: var(--accent-2);       --card-link: var(--accent-2);    --cause-eyebrow: var(--accent-2);
	--date-bg: var(--primary-soft);     --date-fg: var(--primary-deep);

	--band: #F8F9FA;
	--footer: #000;  --footer-text: #ADB5BD;  --footer-mark: var(--primary-light);
	--footer-rule: #343A40;  --footer-ring: #495057;
	--fh1-bl: color-mix(in srgb, var(--cs-brand-secondary) 45%, #fff);
	--fh1: var(--fh1-bl, var(--brand-secondary));  --fh2: var(--accent-1-light);  --fh3: var(--accent-2-light);
	--stripe-1: var(--brand-primary); --stripe-2: var(--accent-1); --stripe-3: var(--accent-2); --stripe-4: var(--brand-secondary);
}
