/* MagsBC approved design system, September 2026. Shared source for the site, guidelines and /llms.txt. */
:root {
	/* Primitives — from the Elementor kit */
	--magsbc-teal-light: #8FD5DE;  /* kit: Primary (Light Teal) */
	--magsbc-teal: #39C7CE;        /* NEW, found Sept 10: the footer section-divider colour, not previously captured from the kit's named palette */
	--magsbc-yellow: #F9D777;      /* kit: Secondary — the mustard hero band */
	--magsbc-olive: #262E13;       /* kit: Dark (Deep Olive Green) — verified live: body/h1 colour */
	--magsbc-coral: #F47C67;       /* kit: CTA (Coral) — verified live: Become a Member button background, footer "Read more" links */
	--magsbc-white: #FFFFFF;
	--magsbc-soft-green: #58BD84;  /* kit: Soft Green, custom colour */
	--magsbc-dark-tone: #14180A;   /* kit: Dark Tone, custom colour — verified live: footer's dark section background */
	--magsbc-link: #B94A34;        /* kit: "Accessability Orange (Links)", custom colour — darkened
	                                   from the kit's #C9563F (Sept 10 accessibility audit: on white
	                                   that measured 4.3:1, just under the 4.5:1 AA text threshold;
	                                   this shade computes to 5.1:1, same hue, same role) */
	--magsbc-scrim: rgba(0, 0, 0, 0.23); /* kit: "Boxes", #0000003B — unchanged since Sept 9 */

	/* Roles — verified against rendered output only */
	--fg: var(--magsbc-olive);
	--bg: var(--magsbc-white);
	--cta: var(--magsbc-coral);       /* solid-fill buttons ONLY (Become a Member, filled CTAs) */
	--link: var(--magsbc-link);       /* Sept 10: plain text links (Read More, Learn More, inline
	                                     content links, footer links) — darker than --cta. Was
	                                     wrongly wired to --cta (bright coral) everywhere; the kit
	                                     already had this dedicated darker "Links" colour defined
	                                     and unused. */
	--border: rgba(20, 24, 10, 0.15); /* no plain grey in this palette — low-alpha Dark Tone */

	/* Type family — confirmed live: Roboto (not Roboto Slab), body/h1 both use it */
	--font-body: Roboto, sans-serif;

	/* Approved type scale — matches the promoted homepage. */
	--type-display: clamp(2.5rem, 4.8vw, 4rem);
	--type-h1: clamp(2.5rem, 4vw, 3rem);
	--type-h2: clamp(1.75rem, 2.8vw, 2.25rem);
	--type-h3: 1.25rem;
	--type-h4: 1.25rem;
	--type-lead: 1.25rem;
	--type-body: 1rem;
	--type-small: .875rem;

	--weight-display: 900;
	--weight-h1: 900;
	--weight-h2: 700;
	--weight-h3: 700;
	--weight-h4: 700; /* was 500 — corrected Sept 10 against the reference board/directors grid, where component titles ("Glenn Alderson" etc.) render bold */
	--weight-lead: 400;
	--weight-body: 400;
	--weight-small: 700;

	/* ==============================================================
	   ROLE LAYER — added Sept 10, 2026 for the Design Guidelines page.
	   Nothing above this line moves. These are aliases and derived
	   values. Product code (magsbc.css, page templates) should reach
	   for a role here rather than the primitive above.
	   ============================================================== */

	/* Foreground — text colours, muted/subtle derived by alpha on --magsbc-olive
	   because no verified grey scale exists in this brand yet. Values are safe
	   for text at their listed contrast ratios against --magsbc-white. */
	--fg-muted:   rgba(38, 46, 19, 0.70);  /* body-subtle, meta lines */
	--fg-subtle:  rgba(38, 46, 19, 0.65);  /* captions, dim labels — was 0.55 (3.45:1 on white,
	                                          fails AA); 0.65 computes to 4.62:1 */

	/* Foreground on dark surfaces (hero, dark section band). */
	--fg-on-dark:        var(--magsbc-white);
	--fg-on-dark-muted:  rgba(255, 255, 255, 0.75);
	--fg-on-dark-subtle: rgba(255, 255, 255, 0.55);

	/* Background — page canvas, raised cards, dark section. */
	--bg-raised:  var(--magsbc-white);        /* cards on the page */
	--bg-inverse: var(--magsbc-dark-tone);    /* dark section band, footer, hero fallback */

	/* Accent — the brand-recognizable "signal" colour for eyebrows,
	   dividers, and small emphasized moments. Uses the darker link
	   colour (#C9563F) rather than coral because coral is CTA-only
	   and reading eyebrow-as-CTA would be wrong. */
	--accent:      var(--magsbc-link);
	--accent-deep: var(--magsbc-link);

	/* Border — hairline (--border) already defined above. */
	--border-strong:          rgba(20, 24, 10, 0.30);   /* stronger divider */
	--border-on-dark:         rgba(255, 255, 255, 0.16);
	--border-on-dark-strong:  rgba(255, 255, 255, 0.28);
	--bg-raised-on-dark:      rgba(255, 255, 255, 0.06);

	/* Fills — surfaces that are neither the page nor a raised card.
	   Placeholder blocks, tinted callouts, chip fills on the DG page. */
	--fill-subtle:  rgba(20, 24, 10, 0.05);
	--fill:         rgba(20, 24, 10, 0.10);
	--fill-strong:  var(--magsbc-olive);

	/* The "whole card is a link" hover wash — was a bare rgba() literal
	   repeated across news-grid, board-grid, resource-card and
	   magazine-grid; named so it only needs changing in one place. */
	--hover-wash:   rgba(20, 24, 10, 0.04);

	/* Hero scrim — three-stop wash for photo-backed heros. If the hero
	   uses the flat --bg-inverse instead of a photo, these are unused. */
	--scrim-hero-strong: rgba(20, 24, 10, 0.97);
	--scrim-hero-mid:    rgba(20, 24, 10, 0.55);
	--scrim-hero-soft:   rgba(20, 24, 10, 0.20);

	/* Radius — four steps, named by role. */
	--radius-sm:   4px;   /* dense UI, chips */
	--radius-md:   8px;   /* cards */
	--radius-lg:   16px;  /* large surfaces */
	--radius-pill: 999px; /* pills, buttons */

	/* Elevation — flat is default; xs is card hover; inset is hairline. */
	--shadow-xs:              0 2px 6px rgba(20, 24, 10, 0.08);
	--shadow-inset-hairline:  inset 0 0 0 1px rgba(20, 24, 10, 0.06);

	/* Standard interaction timing; gallery entrances and depth have explicit exceptions. */
	--dur-std:       200ms;
	--ease-standard: cubic-bezier(0.22, 1, 0.36, 1);

	/* Type-family aliases so the DG display CSS can reference
	   role names instead of the primitives above. */
	--font-sans:  var(--font-body);
	--font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Weight aliases — role-named counterparts to --weight-* above,
	   used by the DG display CSS to stay brand-agnostic. */
	--fw-light:   400;
	--fw-medium:  700;
	--fw-black:   900;

	/* Micro type — smallest step, used for eyebrows and meta labels.
	   Smaller than --type-small (12px), which already exists. */
	--type-micro: .75rem;
	--type-small-lh:   1.55;

	/* Line-height for --type-lead (used by the Foundation description). */
	--type-lead-lh: 1.65;

    --lh-display: 1.08;
    --lh-h1: 1.18;
    --lh-h2: 1.18;
    --lh-h3: 1.3;
    --lh-h4: 1.3;
    --lh-lead: 1.65;
    --lh-body: 1.65;
    --lh-small: 1.5;
    --lh-micro: 1.5;
    --weight-micro: 700;
    --tracking-heading: -.025em;
    --magazine-filter: saturate(.58) sepia(.12) contrast(.96) brightness(1.02);
    --magazine-wash: rgba(38,46,19,.05);
    --magazine-border: 2px solid rgba(38,46,19,.45);

	/* Spacing scale — a 15-step ladder on a 4px grid.
	   Named by value: --sp-24 is 24px. */
	--sp-2:   2px;
	--sp-4:   4px;
	--sp-8:   8px;
	--sp-12: 12px;
	--sp-16: 16px;
	--sp-20: 20px;
	--sp-24: 24px;
	--sp-32: 32px;
	--sp-40: 40px;
	--sp-48: 48px;
	--sp-56: 56px;
	--sp-64: 64px;
	--sp-80: 80px;
	--sp-96: 96px;
	--sp-120: 120px;
}
