/* ==========================================================================
   SmartAdmit parent portal - PROVINCE -> BCDF TOKENS
   --------------------------------------------------------------------------
   BCDF is themed through two scales: --bc-brand-* (the deep corporate colour:
   sidebar, headings, footer) and --bc-accent-* (the action colour: primary
   buttons, active navigation, links, focus). In the Nala reference those are
   navy and teal. Here they are the PROVINCE.

   Nothing in this file is a colour. Every value is one of the tokens the
   generated /css/brand.css publishes from the Province section (or its Master
   Config override), each already fitted to its WCAG role by ProvincePalette:

     --brand-ink          white text on it at >= 8:1    -> brand-600 (sidebar, headings)
     --brand-ink-bottom   the sidebar gradient's foot   -> brand-700 (footer, dark hero)
     --brand-primary      >= 5:1 on white               -> accent-500 (buttons, fills)
     --brand-primary-deep darker again                  -> accent-600 (links)
     --brand-accent       >= 5:1 on the ink             -> accent-300 (text on dark)
     --brand-primary-wash a tint for quiet grounds      -> accent-50
     --brand-highlight    the second brand colour       -> dark grounds only

   The in-between steps are color-mix() of those, towards white or black, so
   they stay the province's own hue. So Limpopo renders green and gold, KZN
   renders its colours, and a new province needs no CSS - only its Province
   section.

   Load order: bc.tokens.css, then /css/brand.css, then this file.
   ========================================================================== */

:root {
  /* ---- 1.1 brand scale: the province ink ------------------------------ */
  --bc-brand-50:  color-mix(in srgb, var(--brand-ink)  6%, #fff);
  --bc-brand-100: color-mix(in srgb, var(--brand-ink) 14%, #fff);
  --bc-brand-200: color-mix(in srgb, var(--brand-ink) 30%, #fff);
  --bc-brand-300: color-mix(in srgb, var(--brand-ink) 48%, #fff);
  --bc-brand-400: color-mix(in srgb, var(--brand-ink) 66%, #fff);
  --bc-brand-500: color-mix(in srgb, var(--brand-ink) 84%, #fff);
  --bc-brand-600: var(--brand-ink);
  --bc-brand-700: var(--brand-ink-bottom);
  --bc-brand-800: color-mix(in srgb, var(--brand-ink-bottom) 80%, #000);
  --bc-brand-900: color-mix(in srgb, var(--brand-ink-bottom) 62%, #000);

  /* ---- 1.2 accent scale: the province's working colour ---------------- */
  --bc-accent-50:  var(--brand-primary-wash);
  --bc-accent-100: color-mix(in srgb, var(--brand-primary) 18%, #fff);
  --bc-accent-200: color-mix(in srgb, var(--brand-primary) 36%, #fff);
  --bc-accent-300: var(--brand-accent);
  --bc-accent-400: color-mix(in srgb, var(--brand-primary) 82%, #fff);
  --bc-accent-500: var(--brand-primary);
  --bc-accent-600: var(--brand-primary-deep);
  --bc-accent-700: color-mix(in srgb, var(--brand-primary-deep) 82%, #000);
  --bc-accent-800: color-mix(in srgb, var(--brand-primary-deep) 64%, #000);
  --bc-accent-900: color-mix(in srgb, var(--brand-primary-deep) 46%, #000);

  /* ---- surfaces ------------------------------------------------------- */
  --bc-bg-app: var(--brand-canvas);
  --bc-grey-50: var(--brand-canvas);

  /* ---- SmartAdmit additions ------------------------------------------- */
  --sa-highlight: var(--brand-highlight);
  --sa-highlight-ground: var(--brand-highlight-ground);
  --sa-shadow-brand: rgba(var(--brand-primary-rgb), .28);
}

/* --------------------------------------------------------------------------
   The places BCDF writes Nala teal as a literal rgba() rather than through a
   token. Same rules, the province's colour. The primary button's lift and the
   hero's Nala gradients are gone: the parent site uses hairlines and a flat
   scrim (--bc-parent-scrim in sa.parent.css), not shadow and gradient.
   -------------------------------------------------------------------------- */
.bc-btn--primary        { --_sh: none; }
.bc-btn--primary:hover  { --_sh: none; }
.bc-pill.is-active      { box-shadow: none; }
.bc-vnav__item.is-active { background: rgba(var(--brand-accent-rgb), .16); }
.bc-hero__scrim { background: var(--bc-parent-scrim, rgba(5,17,28,.77)); }
