/* ════════════════════════════════════════════════════════════════════════
   theme-medax.css - THE single color authority. Loaded after bootstrap and
   medax-base. Every color token lives here for all three theme states; no
   other stylesheet contains a color literal.

   ── TO RE-THEME THE WHOLE APP ──
   Edit the light block (:root) and its dark mirrors. Nothing else in the
   codebase references a color directly.

   Direction: "navy + gold" - a signal-blue primary (the brand action), a TEAL
   "verified" accent for live/registered state, deep-navy ink on cool navy
   paper, gold for wins/ratings, and a deep-navy dark theme. Display type is a
   grotesque (Archivo); body is Inter; data reads in mono. Light is the default;
   dark is a full navy mirror. Contrast noted against the surface named
   (WCAG AA floor: 4.5:1 text / 3:1 UI).

   ── WHICH SIGNAL OWNS WHAT (decided 2026-08-27; unified on blue) ──
   Teal had drifted into being the de facto brand colour - links, outline buttons,
   active states, hover borders and neutral data series were all teal, which left
   two colours claiming to be the primary and made the dashboard read green while
   the home page read blue. The split is now:

     BLUE  (--bs-primary fill / --bs-link-color ink) - the brand signal. Every link,
           every outline button, active and open states, focus rings, hover borders,
           selection, and any neutral data series (a score line, a topic bar).
     TEAL  (--mx-teal / --bs-success) - a claim about TRUTH, not importance. It means
           the system checked this and it holds: a pass badge, "✓ Verified", Premium
           active, "Exam ready", a completed journey stage, a correct answer. The test:
           if the element would look identical whether or not anything had been
           confirmed, it must not be teal.
     CORAL (--mx-action, defined in medax-base.css) - the ONE highest-intent action
           per view. Deliberately has no dark twin: the deep coral clears AA on both
           grounds, so it is a single value by design, not an omission.
     GOLD  (--mx-gold) - wins and ratings: stars, passer stamps.

   A neutral data series in teal is the easy mistake: a 20% topic bar rendered green
   tells the candidate they are doing well at the thing they are worst at.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Light (bare :root = the default, incl. OS-light and un-stamped) ─────── */
[data-bs-theme="light"],
:root {
  /* Semantic (Bootstrap). Primary = signal blue (action); success = teal (verified). */
  --bs-primary: #1D4ED8;            /* signal blue - action fill; white ink (--mx-on-primary) */
  --bs-primary-rgb: 29, 78, 216;
  --bs-secondary: #54677A;          /* muted navy-grey */
  --bs-secondary-rgb: 84, 103, 122;
  --bs-success: #0f9c7c;            /* teal (pass / verified) 3.9:1 fill; ink twin below */
  --bs-success-rgb: 15, 156, 124;
  --bs-info: #1D4ED8;               /* keep the palette tight - info reads as signal */
  --bs-info-rgb: 29, 78, 216;
  --bs-warning: #B5730B;            /* amber/gold - 4.5:1 ink on white; ratings + caution */
  --bs-warning-rgb: 181, 115, 11;
  --bs-danger: #c0392c;             /* true red - 5.0:1 on white */
  --bs-danger-rgb: 192, 57, 44;

  /* Surfaces + ink. Cool navy-biased paper, deep navy ink. */
  --bs-body-bg: #EAEEF2;            /* navy paper */
  --bs-body-bg-rgb: 234, 238, 242;
  --bs-body-color: #33465A;         /* body on navy paper */
  --bs-body-color-rgb: 51, 70, 90;
  --bs-heading-color: #0A1A2F;      /* deep navy */
  --bs-emphasis-color: #0A1A2F;
  --bs-emphasis-color-rgb: 10, 26, 47;
  --bs-secondary-color: #54677A;    /* muted navy-grey */
  --bs-tertiary-color: #5A6D80;     /* faint meta - 5.3:1 on white, 4.6:1 on paper (AA for its small text; #8095A8 was 3.1:1) */
  --bs-border-color: rgba(10, 26, 47, 0.13);
  --bs-border-color-translucent: rgba(10, 26, 47, 0.10);
  --bs-secondary-bg: #E0E6EC;       /* alt section ground */
  --bs-secondary-bg-rgb: 224, 230, 236;
  --bs-tertiary-bg: #EAEEF2;
  --bs-tertiary-bg-rgb: 234, 238, 242;
  --bs-card-bg: #ffffff;
  --bs-link-color: #12329C;         /* signal ink - 6.4:1 on paper */
  --bs-link-hover-color: #1D4ED8;

  /* Medax extras. */
  --mx-paper-bg: #ffffff;
  --mx-panel-2: #F1F4F8;            /* subtly raised inside a white panel */
  --mx-accent-ink: #12329C;         /* the signal brand as TEXT on light */
  --mx-on-primary: #ffffff;         /* white ink on the signal-blue fill */
  --mx-azure: #1D4ED8;              /* signal pop, used sparingly */
  --mx-azure-rgb: 29, 78, 216;
  --mx-teal: #0f9c7c;               /* THE verified accent (fill) */
  --mx-teal-rgb: 15, 156, 124;
  --mx-teal-ink: #0A6E58;           /* verified as TEXT - 6:1 on white, 5.2:1 on its own tint (#0c7a62 was 4.45:1 there) */
  --mx-on-teal: #ffffff;
  --mx-gold: #E0A43B;               /* a win worth celebrating (stars, passer stamps) */
  --mx-gold-ink: #A9741A;           /* gold as TEXT on PAPER - 4.6:1 on white */
  /* Gold/amber ink on a gold or amber TINT. --mx-gold-ink is mixed for white and
     measures only 3.4:1 once the tint darkens the ground beneath it, so a badge
     set in it can't be read. Every tinted status pill takes this instead:
     6.2:1 on the gold tint, 6.0:1 on the amber one. */
  --mx-amber-ink: #7A4E0C;
  --mx-elevation: 0 1px 2px rgba(10, 26, 47, .06), 0 12px 28px -14px rgba(10, 26, 47, .18);
  --mx-elevation-sm: 0 1px 2px rgba(10, 26, 47, .07);
  --mx-ring: rgba(29, 78, 216, .4);   /* signal focus ring */
}

/* ══════════════════════════════════════════════════════════════════════════
   BRAND PALETTE - marketing / homepage direction. THE ONE PLACE A PALETTE
   CHANGES: every marketing surface (home-navy.css, the pl-* landing pages,
   the passer wall) reads these roles, never a hex. Swap the values in this
   block (and its dark twin in home-navy.css) and the whole surface follows.

   Palette D (2026-09-03), built around the real logo - an orange wordmark on
   a royal-blue ground. Roles, not colours:
     action    = the ONE colour that means "act" and "won": every primary
                 button, a passed stamp, the stars. Dark ink on it, never white.
     signal    = structure. Links, eyebrows, score bars, the Premium band.
                 It is the logo's royal blue; it never paints a button.
     verified  = a checked fact (a PIN, a live engine). Text and tints only.
     wait      = "not yet" - slate, never amber, so it can never be mistaken
                 for the celebration colour.
     error     = destructive / failed. Red, kept far from the orange.
   Legacy names (gold, amber, signal-ink) are kept as ALIASES of the roles
   above so older pages keep painting; new rules should read the role.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  /* ink + surfaces */
  --mx-nav-ink: #0A1A2F;             /* text ink; also the deepest band */
  --mx-nav-ink-2: #12283F;
  --mx-nav-ink-3: #1B3550;
  --mx-nav-text: #0A1A2F;
  --mx-nav-muted: #586778;           /* 5.5:1 on paper - "not yet" text lives here too */
  --mx-nav-muted-dark: #9FB3E6;      /* meta on the royal band */
  --mx-nav-paper: #FFFFFF;           /* white ground; sections and insets take a faint royal tint (Sep 2026: cream read as AI-default) */
  --mx-nav-paper-2: #F4F6FC;         /* alternating section band - royal at ~4% */
  --mx-nav-inset: #F4F6FC;           /* a sunken box INSIDE a white card */
  --mx-nav-card: #FFFFFF;
  --mx-nav-hairline: #E3E7F2;        /* card edge; cool, royal-leaning - carries the card on a white ground */
  --mx-nav-hairline-strong: rgba(10, 26, 47, .24); /* ghost-button border, hover edge */
  --mx-nav-line: rgba(10, 26, 47, .12);
  --mx-nav-line-dark: rgba(231, 238, 246, .16);

  /* action (orange) */
  --mx-nav-action: #F28B1D;
  --mx-nav-action-hover: #DE7C12;
  --mx-nav-action-press: #C46C0C;    /* never darker - past this it reads as disabled */
  --mx-nav-on-action: #1A1206;       /* 7.4:1 on the fill */
  --mx-nav-action-ink: #9A4F0C;      /* orange as TEXT on paper - 5.6:1 */
  --mx-nav-action-tint: rgba(242, 139, 29, .16);

  /* structure (royal) */
  --mx-nav-signal: #14307A;
  --mx-nav-signal-2: #1B3D96;        /* one step up from the band */
  --mx-nav-signal-ink: #14307A;
  --mx-nav-on-signal: #FFFFFF;
  --mx-nav-signal-tint: rgba(20, 48, 122, .08);
  --mx-nav-band: #14307A;            /* the one royal band: Premium column, menu feature card */
  --mx-nav-ramp-1: #14307A;          /* score bars: a royal ramp, so no topic ever wears orange */
  --mx-nav-ramp-2: #4E6BB8;
  --mx-nav-ramp-3: #97A9D6;

  /* verified (green, text-only) */
  --mx-nav-verified: #086E55;   /* 5.3:1 on its mint tint (#0A7A5E was 4.49:1 there) */
  --mx-nav-verified-bright: #4FD6B0;
  --mx-nav-verified-tint: rgba(10, 122, 94, .12);

  /* wait (slate) */
  --mx-nav-wait: #586778;
  --mx-nav-wait-fill: #6B7A8C;
  --mx-nav-wait-tint: rgba(88, 103, 120, .12);

  /* error (red) */
  --mx-nav-error: #B3261E;
  --mx-nav-error-tint: #FCEDEC;

  /* disabled */
  --mx-nav-disabled: #E6E9F0;
  --mx-nav-on-disabled: #8D96A2;

  /* geometry */
  --mx-nav-radius: 5px;
  --mx-nav-shadow: 0 1px 0 rgba(10, 26, 47, .05), 0 16px 40px -24px rgba(10, 26, 47, .45);

  /* legacy aliases - older marketing pages read these; they now resolve to the roles */
  --mx-nav-gold: var(--mx-nav-action);
  --mx-nav-gold-deep: var(--mx-nav-action-ink);
  --mx-nav-gold-grad: linear-gradient(135deg, #F5A24A, #E07A12);
  --mx-nav-amber: var(--mx-nav-wait);

  /* The Nov 2026 home look, shared by every public page that adopts it (home-navy.css, the
     programme landings): headings in the logo's royal, an orange phrase as LARGE text only
     (4.0:1 on white), the hero's pale wash, the navy closing band, and the card shape. */
  --mx-nav-heading: #14307A;
  --mx-nav-accent-text: #E2660A;
  --mx-nav-hero-wash: linear-gradient(100deg, #FBFDFF 0%, #F2F7FD 42%, #DDEBFA 100%);
  --mx-nav-band-wash: linear-gradient(100deg, #174175 0%, #174175 34%, #12407E 70%, #0F3470 100%);
  --mx-nav-card-radius: 10px;
  --mx-nav-card-shadow: 0 1px 2px rgba(10, 26, 47, .05), 0 10px 26px -18px rgba(10, 26, 47, .35);
  --mx-nav-step: #1E5BC6;             /* numbered/icon step discs (home journey, programme "how to" steps) */
  --mx-nav-step-ring: rgba(30, 91, 198, .12);
}

/* ── Dark: navy mirror. Deep-navy ground, brighter signal/teal/gold that hold
   contrast on dark. Bright fills take dark ink (--mx-on-primary). ──────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --bs-primary: #5B8DEF;           /* signal, lifted for dark; dark ink on fill */
    --bs-primary-rgb: 91, 141, 239;
    --bs-secondary: #93A6BC;
    --bs-secondary-rgb: 147, 166, 188;
    --bs-success: #4FD6B0;           /* teal (verified) */
    --bs-success-rgb: 79, 214, 176;
    --bs-info: #5B8DEF;
    --bs-info-rgb: 91, 141, 239;
    --bs-warning: #E8B24A;           /* gold/amber */
    --bs-warning-rgb: 232, 178, 74;
    --bs-danger: #FF8172;
    --bs-danger-rgb: 255, 129, 114;

    --bs-body-bg: #0B1220;           /* deep navy ground */
    --bs-body-bg-rgb: 11, 18, 32;
    --bs-body-color: #D5DDEA;        /* ~12:1 on ground */
    --bs-body-color-rgb: 213, 221, 234;
    --bs-heading-color: #EEF2F8;
    --bs-emphasis-color: #EEF2F8;
    --bs-emphasis-color-rgb: 238, 242, 248;
    --bs-secondary-color: #A7B3C6;   /* ~7:1 on ground */
    --bs-tertiary-color: #8394AA;    /* ~6:1 on ground (#5F748C was ~3.9:1) */
    --bs-border-color: rgba(226, 235, 247, 0.12);
    --bs-border-color-translucent: rgba(226, 235, 247, 0.09);
    --bs-secondary-bg: #0F1829;
    --bs-secondary-bg-rgb: 15, 24, 41;
    --bs-tertiary-bg: #101A2C;
    --bs-tertiary-bg-rgb: 16, 26, 44;
    --bs-card-bg: #141E31;
    --bs-link-color: #7FA9FF;
    --bs-link-hover-color: #A2C2FF;

    --mx-paper-bg: #141E31;
    --mx-panel-2: #0F1829;
    --mx-accent-ink: #7FA9FF;        /* signal as text on dark */
    --mx-on-primary: #06122A;        /* dark ink on the bright signal fill */
    --mx-azure: #5B8DEF;
    --mx-azure-rgb: 91, 141, 239;
    --mx-teal: #4FD6B0;
    --mx-teal-rgb: 79, 214, 176;
    --mx-teal-ink: #4FD6B0;
    --mx-on-teal: #04231C;
    --mx-gold: #E8B24A;
    --mx-gold-ink: #E8B24A;
    --mx-amber-ink: #E8B24A;
    --mx-elevation: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -16px rgba(0, 0, 0, .6);
    --mx-elevation-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --mx-ring: rgba(91, 141, 239, .55);

    /* Marketing surfaces on dark (Sep 2026 palette): a neutral deep ink rather than saturated navy,
       one blue family (light #8FA4F0 for text and lines, #4F6FD8 for fills with white text, muted
       royal #1A2A5E for the band), orange unchanged for actions and #F6A552 when orange is text. */
    --mx-nav-paper: #0B1220;
    --mx-nav-paper-2: #0F1829;
    --mx-nav-inset: #101A2C;
    --mx-nav-card: #141E31;
    --mx-nav-hairline: rgba(214, 224, 245, .10);
    --mx-nav-line: rgba(214, 224, 245, .10);
    --mx-nav-text: #EEF2F8;
    --mx-nav-muted: #A7B3C6;
    --mx-nav-muted-dark: #A7B3C6;
    --mx-nav-band: #1A2A5E;
    /* Structure, verified and wait roles lifted for dark. Orange (action) is untouched. */
    --mx-nav-signal: #8FA4F0;
    --mx-nav-signal-2: #A9B9F4;
    --mx-nav-signal-ink: #A9B9F4;
    --mx-nav-on-signal: #0B1220;
    --mx-nav-signal-tint: rgba(143, 164, 240, .14);
    --mx-nav-ramp-1: #8FA4F0;
    --mx-nav-ramp-2: #5E75C8;
    --mx-nav-ramp-3: #3A4C8C;
    --mx-nav-verified: #5ACFAE;
    --mx-nav-verified-tint: rgba(90, 207, 174, .14);
    --mx-nav-wait: #A7B3C6;
    --mx-nav-wait-fill: #5F748C;
    --mx-nav-wait-tint: rgba(167, 179, 198, .14);
    --mx-nav-hairline-strong: rgba(214, 224, 245, .24);
    --mx-nav-action-ink: #F6A552;      /* orange as text on dark - 9:1 */
    --mx-nav-heading: #A9B9F4;
    --mx-nav-accent-text: #F6A552;
    --mx-nav-hero-wash: linear-gradient(100deg, #0B1220 0%, #0F1829 50%, #14223D 100%);
    --mx-nav-card-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .7);
    --mx-nav-step: #4F6FD8;
    --mx-nav-step-ring: rgba(79, 111, 216, .18);
  }
}

/* ── Dark: explicit toggle (wins over OS in both directions) ─────────────── */
:root[data-bs-theme="dark"] {
  --bs-primary: #5B8DEF;
  --bs-primary-rgb: 91, 141, 239;
  --bs-secondary: #93A6BC;
  --bs-secondary-rgb: 147, 166, 188;
  --bs-success: #4FD6B0;
  --bs-success-rgb: 79, 214, 176;
  --bs-info: #5B8DEF;
  --bs-info-rgb: 91, 141, 239;
  --bs-warning: #E8B24A;
  --bs-warning-rgb: 232, 178, 74;
  --bs-danger: #FF8172;
  --bs-danger-rgb: 255, 129, 114;

  --bs-body-bg: #0B1220;
  --bs-body-bg-rgb: 11, 18, 32;
  --bs-body-color: #D5DDEA;
  --bs-body-color-rgb: 213, 221, 234;
  --bs-heading-color: #EEF2F8;
  --bs-emphasis-color: #EEF2F8;
  --bs-emphasis-color-rgb: 238, 242, 248;
  --bs-secondary-color: #A7B3C6;
  --bs-tertiary-color: #8394AA;
  --bs-border-color: rgba(226, 235, 247, 0.12);
  --bs-border-color-translucent: rgba(226, 235, 247, 0.09);
  --bs-secondary-bg: #0F1829;
  --bs-secondary-bg-rgb: 15, 24, 41;
  --bs-tertiary-bg: #101A2C;
  --bs-tertiary-bg-rgb: 16, 26, 44;
  --bs-card-bg: #141E31;
  --bs-link-color: #7FA9FF;
  --bs-link-hover-color: #A2C2FF;

  --mx-paper-bg: #141E31;
  --mx-panel-2: #0F1829;
  --mx-accent-ink: #7FA9FF;
  --mx-on-primary: #06122A;
  --mx-azure: #5B8DEF;
  --mx-azure-rgb: 91, 141, 239;
  --mx-teal: #4FD6B0;
  --mx-teal-rgb: 79, 214, 176;
  --mx-teal-ink: #4FD6B0;
  --mx-on-teal: #04231C;
  --mx-gold: #E8B24A;
  --mx-gold-ink: #E8B24A;
  --mx-amber-ink: #E8B24A;
  --mx-elevation: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -16px rgba(0, 0, 0, .6);
  --mx-elevation-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --mx-ring: rgba(91, 141, 239, .55);

  /* Marketing surfaces on dark. The role tokens (action / signal / verified / wait) do
     not flip here - orange holds on dark, and the structure blues have page-specific
     dark values in home-navy.css. Only the GROUND flips, so the header, its dropdowns
     and the home page all sit on the same dark paper. */
  --mx-nav-paper: #0B1220;
  --mx-nav-paper-2: #0F1829;
  --mx-nav-inset: #101A2C;
  --mx-nav-card: #141E31;
  --mx-nav-hairline: rgba(214, 224, 245, .10);
  --mx-nav-line: rgba(214, 224, 245, .10);
  --mx-nav-text: #EEF2F8;
  --mx-nav-muted: #A7B3C6;
  --mx-nav-muted-dark: #A7B3C6;
  --mx-nav-band: #1A2A5E;
  /* Structure, verified and wait roles lifted for dark. Orange (action) is untouched. */
  --mx-nav-signal: #8FA4F0;
  --mx-nav-signal-2: #A9B9F4;
  --mx-nav-signal-ink: #A9B9F4;
  --mx-nav-on-signal: #0B1220;
  --mx-nav-signal-tint: rgba(143, 164, 240, .14);
  --mx-nav-ramp-1: #8FA4F0;
  --mx-nav-ramp-2: #5E75C8;
  --mx-nav-ramp-3: #3A4C8C;
  --mx-nav-verified: #5ACFAE;
  --mx-nav-verified-tint: rgba(90, 207, 174, .14);
  --mx-nav-wait: #A7B3C6;
  --mx-nav-wait-fill: #5F748C;
  --mx-nav-wait-tint: rgba(167, 179, 198, .14);
  --mx-nav-hairline-strong: rgba(214, 224, 245, .24);
  --mx-nav-action-ink: #F6A552;
  --mx-nav-heading: #A9B9F4;
  --mx-nav-accent-text: #F6A552;
  --mx-nav-hero-wash: linear-gradient(100deg, #0B1220 0%, #0F1829 50%, #14223D 100%);
  --mx-nav-card-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .7);
  --mx-nav-step: #4F6FD8;
  --mx-nav-step-ring: rgba(79, 111, 216, .18);
}

/* ── Identity accents ────────────────────────────────────────────────────
   A SEPARATE family from the semantic set, assigned by IDENTITY not position.
   Specializations: 1 Adult Nursing · 2 Mental Health · 3 Nursing Associate ·
   4 General. Part badges reuse: Part A (numeracy) = mint (accent-2),
   Part B (clinical) = coral (accent-1). Harmonized to the coral/mint world. */
[data-bs-theme="light"],
:root {
  --mx-accent-1: #c0442f;  /* coral-deep */
  --mx-accent-2: #0c7a62;  /* mint-deep  */
  --mx-accent-3: #7a53a8;  /* plum       */
  --mx-accent-4: #b0567a;  /* rose       */
  --mx-accent-5: #5f746b;  /* slate-green*/
  --mx-accent-6: #2f8f5f;  /* green      */
  --mx-accent-1-rgb: 192, 68, 47;
  --mx-accent-2-rgb: 12, 122, 98;
  --mx-accent-3-rgb: 122, 83, 168;
  --mx-accent-4-rgb: 176, 86, 122;
  --mx-accent-5-rgb: 95, 116, 107;
  --mx-accent-6-rgb: 47, 143, 95;
  --mx-on-accent-solid: #fbfaf5;

  /* Destination identity. Assigned by COUNTRY, never by status - a green here means
     "Australia", not "passed". Defined once because two pages draw the same four
     countries (the /pathway destination cards and the /compare matrix) and had already
     started to disagree; clicking between them should feel like one product. */
  --mx-dest-uk: #3f74c2;
  --mx-dest-au: var(--mx-accent-6);
  --mx-dest-nz: var(--mx-accent-3);
  --mx-dest-ca: var(--mx-accent-1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --mx-accent-1: #ff8f7e;
    --mx-accent-2: #6fe3c4;
    --mx-accent-3: #b494d8;
    --mx-accent-4: #dd8fae;
    --mx-accent-5: #a7bcb3;
    --mx-accent-6: #63c58c;
    --mx-accent-1-rgb: 255, 143, 126;
    --mx-accent-2-rgb: 111, 227, 196;
    --mx-accent-3-rgb: 180, 148, 216;
    --mx-accent-4-rgb: 221, 143, 174;
    --mx-accent-5-rgb: 167, 188, 179;
    --mx-accent-6-rgb: 99, 197, 140;
    --mx-on-accent-solid: #06122A;
    --mx-dest-uk: #7ba7e0;
  }
}

:root[data-bs-theme="dark"] {
  --mx-accent-1: #ff8f7e;
  --mx-accent-2: #6fe3c4;
  --mx-accent-3: #b494d8;
  --mx-accent-4: #dd8fae;
  --mx-accent-5: #a7bcb3;
  --mx-accent-6: #63c58c;
  --mx-accent-1-rgb: 255, 143, 126;
  --mx-accent-2-rgb: 111, 227, 196;
  --mx-accent-3-rgb: 180, 148, 216;
  --mx-accent-4-rgb: 221, 143, 174;
  --mx-accent-5-rgb: 167, 188, 179;
  --mx-accent-6-rgb: 99, 197, 140;
  --mx-on-accent-solid: #06122A;
  --mx-dest-uk: #7ba7e0;
}

/* ── Exam-runner status tokens (mex dialect reads only these) ────────────── */
[data-bs-theme="light"],
:root {
  --mx-timer-calm: var(--bs-secondary-color);
  --mx-timer-warn: var(--bs-warning);
  --mx-timer-crit: var(--bs-danger);
  --mx-nav-answered-rgb: var(--mx-teal-rgb);
  --mx-nav-flagged-rgb: var(--bs-warning-rgb);
  --mx-nav-blank-rgb: var(--bs-secondary-rgb);
}

/* ── Fixed "monitor screen" tokens ───────────────────────────────────────
   The hero pass-rate card is a device-screen metaphor that stays dark in
   BOTH themes, so these are intentionally theme-independent (one :root). */
:root {
  --scr-bg: #0B1626;                    /* navy-black device screen */
  --scr-line: rgba(226, 235, 247, 0.09);
  --scr-line-strong: rgba(226, 235, 247, 0.17);
  --scr-ink: #EEF3FA;                   /* cool near-white readout */
  --scr-ink-faint: #6E82A0;
  --scr-mint: #6fe3c4;                  /* teal readout / verified */
  --scr-coral: #E8B24A;                 /* gold - the second (celebratory) figure + hero accent */
}

/* ── Courses catalog ──────────────────────────────────────────────────────
   Coral is deliberately DEMOTED on the catalog: the card CTA is a neutral
   ink-on-paper button (inverts to paper-on-ink in dark), and colour instead
   ENCODES the specialism - a 3px card edge + a matching dot in the filter
   list. Twelve muted track hues, lifted for the dark ground. */
[data-bs-theme="light"],
:root {
  --crs-cta-bg: #0A1A2F;      /* deep navy ink - neutral CTA (colour is reserved for the specialism) */
  --crs-cta-fg: #F4F8FC;
  --crs-cta-hover: #12329C;   /* lifts to signal ink on hover */
  --crs-sunk: #EEF2F7;        /* card-foot / sunk surface */
  --crs-t-adult:     #12735a; /* jade  */
  --crs-t-mental:    #6c5ca6; /* plum  */
  --crs-t-midwife:   #b4547a; /* rose  */
  --crs-t-associate: #2c6e8f; /* blue  */
  --crs-t-oet:       #a87524; /* gold  */
  --crs-t-paeds:     #5c7a3a; /* green */
  --crs-t-clinical:  #1f6f8b; /* teal-blue: clinical skills */
  --crs-t-mandatory: #7a5a1e; /* umber: mandatory training */
  --crs-t-meds:      #b0443a; /* brick: medication safety */
  --crs-t-specialist:#4b5f9e; /* indigo: specialist training */
  --crs-t-nclex:     #8a3f6f; /* mulberry: NCLEX */
  --crs-t-apprentice:#3b7f5c; /* moss: apprenticeships */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --crs-cta-bg: #e7eeea;    /* paper-on-ink: near-white, no chroma */
    --crs-cta-fg: #0c1512;
    --crs-cta-hover: #ffffff;
    --crs-sunk: #0F1E30;
    --crs-t-adult:     #4fc79e;
    --crs-t-mental:    #a08fe8;
    --crs-t-midwife:   #e88aaa;
    --crs-t-associate: #6fb6d8;
    --crs-t-oet:       #d9a94a;
    --crs-t-paeds:     #9cc06a;
    --crs-t-clinical:  #6cc3e0;
    --crs-t-mandatory: #d3a86a;
    --crs-t-meds:      #f08a80;
    --crs-t-specialist:#9fb0f0;
    --crs-t-nclex:     #e090c4;
    --crs-t-apprentice:#7fd3a4;
  }
}
:root[data-bs-theme="dark"] {
  --crs-cta-bg: #e7eeea;
  --crs-cta-fg: #0c1512;
  --crs-cta-hover: #ffffff;
  --crs-sunk: #0F1E30;
  --crs-t-adult:     #4fc79e;
  --crs-t-mental:    #a08fe8;
  --crs-t-midwife:   #e88aaa;
  --crs-t-associate: #6fb6d8;
  --crs-t-oet:       #d9a94a;
  --crs-t-paeds:     #9cc06a;
  --crs-t-clinical:  #6cc3e0;
  --crs-t-mandatory: #d3a86a;
  --crs-t-meds:      #f08a80;
  --crs-t-specialist:#9fb0f0;
  --crs-t-nclex:     #e090c4;
  --crs-t-apprentice:#7fd3a4;
}
