/* =========================================================================
   Charter - design tokens (per theme; the association family's shared
   theme.css reads only these names)
   Single light theme by design.

   BRAND LOOK (the four values the platform's Site Admin > Brand Look screen
   controls; it injects --cs-brand-* / --cs-font-* and loads the fonts):
     --brand-primary, --brand-secondary, --font-heading, --font-body
   The values below are the fallbacks when Brand Look is not set.
   Precedence: custom.css > Brand Look > these defaults.

   THEME ACCENTS (fixed in this theme; not part of Brand Look):
     --accent-1  text-safe accent (eyebrows, Post a job, hints)
     --accent-2  FILL ONLY (focus ring, signup button, labels on dark via
                 --accent-2-light; as text use --accent-2-ink)
     --accent-3  the member directory slide
   Everything else is derived with color-mix() so a Brand Look change
   carries through tints, darks and hovers automatically.
   ========================================================================= */
:root {
  color-scheme: light;

  /* ---- Brand Look ---------------------------------------------------- */
  --brand-primary: var(--cs-brand-primary, #2A7A56);     /* green (Nick, 2026-10-14). 5.2:1 on white */
  --brand-secondary: var(--cs-brand-secondary, #8A2340); /* claret. Join button, conference: 8.7:1 on white */
  --font-heading: var(--cs-font-heading, 'Newsreader', Georgia, 'Times New Roman', serif);
  --font-body: var(--cs-font-body, 'Public Sans', 'Helvetica Neue', Arial, sans-serif);
  --heading-weight: 600;        /* Newsreader has real weights; set 400 in custom.css for a single-weight serif */
  --heading-tracking: -0.01em;

  /* ---- Theme accents (fixed) ----------------------------------------- */
  --accent-1: #9A5B13;          /* ochre. 5.3:1 on white: OK as text and as a fill under white text */
  --accent-2: #C9A04A;          /* brass. FILL ONLY with dark text. Text uses --accent-2-ink */
  --accent-3: #3D5A80;          /* slate. Member directory slide: 7.0:1 on white */
  --tint-base: #fbf9f4;         /* warm paper that every tint mixes into */
  --accent-3-ground: #efeadf;   /* directory slide background (stone) */

  /* ---- Derived from brand + accents ---------------------------------- */
  --primary-dark: var(--brand-primary);  /* footer, Our work band: the same green as the paths band, so every green background matches (Nick, 2026-10-14) */
  --primary-hover: color-mix(in srgb, var(--brand-primary) 80%, #000);
  --primary-tint: color-mix(in srgb, var(--brand-primary) 6%, var(--tint-base));
  --secondary-hover: color-mix(in srgb, var(--brand-secondary) 80%, #000);
  --secondary-tint: color-mix(in srgb, var(--brand-secondary) 8%, var(--tint-base));
  --accent-1-hover: color-mix(in srgb, var(--accent-1) 80%, #000);
  --accent-1-tint: color-mix(in srgb, var(--accent-1) 9%, var(--tint-base));
  --accent-2-tint: color-mix(in srgb, var(--accent-2) 16%, var(--tint-base));
  --accent-2-ink: color-mix(in srgb, var(--accent-2) 50%, #000);    /* brass as text */
  --accent-2-light: color-mix(in srgb, var(--accent-2) 55%, #fff);  /* labels on the dark bands */
  --accent-2-hover: color-mix(in srgb, var(--accent-2) 85%, #000);
  --accent-3-hover: color-mix(in srgb, var(--accent-3) 80%, #000);
  --accent-3-tint: color-mix(in srgb, var(--accent-3) 9%, var(--tint-base));

  /* ---- Colour cycles (cards cycle by position, editors never choose) --
     News cards and job cards use 1-4; events use the secondary colour for
     the featured first card, then 2-4. -text is the text-safe version. */
  --cyc-1: var(--brand-secondary); --cyc-1-text: var(--cyc-1);        --cyc-1-tint: var(--secondary-tint);
  --cyc-2: var(--brand-primary);   --cyc-2-text: var(--cyc-2);        --cyc-2-tint: var(--primary-tint);
  --cyc-3: var(--accent-1);        --cyc-3-text: var(--cyc-3);        --cyc-3-tint: var(--accent-1-tint);
  --cyc-4: var(--accent-3);        --cyc-4-text: var(--cyc-4);        --cyc-4-tint: var(--accent-3-tint);
  /* Our work icons, light enough to read on the dark band */
  --work-1: color-mix(in srgb, var(--brand-primary) 35%, #fff);
  --work-2: color-mix(in srgb, var(--brand-secondary) 45%, #fff);
  --work-3: var(--accent-2);
  --work-4: color-mix(in srgb, var(--accent-1) 50%, #fff);
  --work-5: color-mix(in srgb, var(--accent-3) 40%, #fff);

  /* ---- Neutrals ------------------------------------------------------ */
  --ink: #1c1f1d;
  --muted: #4e5550;             /* 7.6:1 on white */
  --line: #ddd8cc;
  --surface: #ffffff;
  --on-dark: #e6ebe7;
  --on-dark-muted: rgba(255, 255, 255, .8);

  /* ---- Type scale (desktop value in comment) ------------------------- */
  --fs-display: clamp(2.75rem, 1.5rem + 4.4vw, 5rem);       /* 80px welcome h1 */
  --fs-slide:   clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);      /* 72px slide h2 */
  --fs-h1:      clamp(2.5rem, 1.8rem + 2.6vw, 4rem);        /* 64px interior page title */
  --fs-h2:      clamp(2.25rem, 1.7rem + 2vw, 3.375rem);     /* 54px section titles */
  --fs-h3:      clamp(1.6rem, 1.4rem + .8vw, 1.875rem);     /* 30px paths, Our work */
  --fs-card:    clamp(1.45rem, 1.3rem + .45vw, 1.65rem);    /* 26px card titles */
  --fs-lead:    1.25rem;                                     /* 20px */
  --fs-body:    1.125rem;                                    /* 18px body */
  --fs-small:   .9375rem;                                    /* 15px meta */
  --fs-label:   .8125rem;                                    /* 13px eyebrows, uppercase */
  --lh-tight: 1.06;
  --lh-body: 1.6;
  --measure: 68ch;              /* interior rich-text line length */

  /* ---- Space, radii, elevation --------------------------------------- */
  --gutter: 24px;
  --section-y: clamp(4rem, 2.8rem + 4vw, 6.5rem);           /* 104px desktop */
  --radius-sm: 2px;             /* news cards */
  --radius-md: 4px;             /* job cards, notices */
  --radius-lg: 4px;             /* event cards */
  --radius-xl: 6px;             /* slide feature cards */
  --radius-btn: 4px;            /* buttons */
  --radius-input: 3px;          /* form fields, sidebar links */
  --radius-badge: 50%;          /* job badge tile (a seal is round) */
  --radius-pill: 999px;         /* chips, slider dots */
  --shadow-card: 0 1px 0 rgba(28, 31, 29, .04);
  --shadow-float: 0 24px 48px rgba(28, 31, 29, .14);
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent-2-ink); /* brass ink: 7.8:1 on white (brass itself is 2.4:1, under the 3:1 focus minimum) */
  --control-h: 48px;
  --tap-min: 44px;

  /* The motif as a CSS mask, for icons drawn by CSS on section content
     (news types, Our work, job badges, the hiring strip). Charter: the seal. */
  --motif-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='black'%3E%3Ccircle cx='100' cy='100' r='88' stroke-width='12'/%3E%3Ccircle cx='100' cy='100' r='64' stroke-width='20' stroke-dasharray='5 8.4'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='32'/%3E%3C/svg%3E");

  /* Aliases for the repo-wide names, so shared snippets pick up the palette */
  --theme-primary: var(--brand-primary);
  --theme-accent: var(--brand-secondary);
  --theme-dark: var(--ink);
  --theme-font-primary: var(--font-body);
  --theme-font-heading: var(--font-heading);
}
@media (max-width: 575.98px) { :root { --gutter: 16px; } }
