/* ════════════════════════════════════════════════════════════════════════
   Medax UI design language - one file, four dialects, all tokens from
   theme-medax.css:

   mlp-*  LIST PAGES (admin: questions, candidates, attempts, CMS lists):
          hero, stat strip, command bar + search, filter row, tables,
          status pills, empty states.

   .mfm   FORMS / EDITORS: wrap an EditForm in <div class="mfm"> to opt in -
          labels, inputs, validation rings, including child components.

   mex-*  EXAM RUNNER: distraction-free chrome - timer bar, question card,
          numeric pad, option rows, navigator grid, review screen, results.

   mkt-*  MARKETING / PUBLIC: hero, feature cards, testimonial carousel,
          FAQ accordion, CTA banner, long-form typography (~66ch measure).

   Page-specific rules live in scoped .razor.css files, never here.
   ════════════════════════════════════════════════════════════════════════ */

/* ── auth pages (login / register) ───────────────────────────────────────── */
.mx-auth {
  max-width: 27rem;
  margin: clamp(1rem, 5vh, 3rem) auto;
}
.mx-auth-card {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius-lg);
  box-shadow: var(--mx-elevation);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.mx-auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.mx-auth-lead { color: var(--bs-secondary-color); font-size: var(--mx-fs-sm); margin-bottom: 1.25rem; }
.mx-auth .form-floating > label { color: var(--bs-tertiary-color); }
.mx-auth hr { border-color: var(--bs-border-color); opacity: .5; }
.mx-auth-alt { text-align: center; margin-top: 1rem; font-size: var(--mx-fs-sm); color: var(--bs-secondary-color); }

/* ── shared micro-utilities ──────────────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .69rem;
  font-weight: 700;
  color: var(--bs-tertiary-color);
}

.link {
  color: var(--bs-link-color);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
}
.link:hover { color: var(--bs-link-hover-color); }

/* One title voice for the candidate app. The redesigned pages (dashboard .mdash-title,
   mock exams .mex-exams-title, resources .mres-h1) set the page title in the serif under
   a mono eyebrow; the older pages kept a bold sans at assorted sizes, so the typeface
   changed from page to page as a candidate moved through their own app. These are the
   remaining page-title hooks, on the same serif and scale as .mex-exams-title. Element
   specificity (h1.x) so the later per-area sheets' size-only rules don't win. */
h1.mlp-hero-title, .plan-head h1, .ntf-head h1, h1.sp-title, h1.grp-title, h1.ach-title, h1.osce-title {
  font-family: var(--mx-font-quote); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -.02em;
  color: var(--bs-heading-color); margin: 0;
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║ mfm - forms                                                          ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.mfm label,
.mfm .form-label {
  font-size: var(--mx-fs-sm);
  font-weight: 600;
  color: var(--bs-heading-color);
  margin-bottom: var(--mx-space-1);
}

.mfm .validation-message {
  color: var(--bs-danger);
  font-size: var(--mx-fs-xs);
  margin-top: var(--mx-space-1);
}

.mfm .form-control.invalid,
.mfm .form-select.invalid {
  border-color: rgba(var(--bs-danger-rgb), .6);
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║ mex - exam runner (skeleton; fleshed out in Phase 3b)                ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.mex-shell {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--mx-space-4);
}
.mx-drill-feedback {
  margin-top: var(--mx-space-3); padding: var(--mx-space-3) var(--mx-space-4);
  border-radius: var(--mx-radius); border: 1px solid var(--bs-border-color);
}
.mx-drill-feedback.is-correct { border-color: rgba(var(--bs-success-rgb), .5); background: rgba(var(--bs-success-rgb), .08); }
.mx-drill-feedback.is-wrong { border-color: rgba(var(--bs-danger-rgb), .5); background: rgba(var(--bs-danger-rgb), .07); }
.mx-drill-verdict { font-weight: 800; font-size: 1.05rem; }
.mx-drill-verdict.is-correct { color: var(--bs-success); }
.mx-drill-verdict.is-wrong { color: var(--bs-danger); }
.mx-drill-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--mx-space-3); }
.mx-drill-track { flex: 1; height: .4rem; border-radius: 1rem; background: var(--bs-secondary-bg); overflow: hidden; }
.mx-drill-track-fill { height: 100%; background: var(--bs-primary); border-radius: 1rem; transition: width .2s ease; }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║ mkt - marketing / public (skeleton; fleshed out in Phase 6)          ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.mkt-hero {
  position: relative;
  padding: clamp(3rem, 9vh, 5.5rem) 0 var(--mx-space-8);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Animated ECG line drifting behind the hero. */
.mkt-hero-ecg {
  position: absolute; left: 0; right: 0; top: 7%;
  width: 100%; height: 220px; opacity: .16; z-index: -1; pointer-events: none;
}
.mkt-hero-ecg path {
  fill: none; stroke: var(--bs-primary); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14 10; animation: mkt-ecg-flow 5s linear infinite;
}
@keyframes mkt-ecg-flow { to { stroke-dashoffset: -240; } }

.mkt-hero .eyebrow { display: block; margin-bottom: var(--mx-space-3); }

.mkt-hero-title {
  font-family: var(--mx-font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.12;
  max-width: 800px;
  margin: 0 auto;
  color: var(--bs-heading-color);
}

.mkt-hero-sub {
  max-width: 40rem;
  margin: var(--mx-space-4) auto var(--mx-space-6);
  color: var(--bs-secondary-color);
  font-size: var(--mx-fs-lg);
  line-height: 1.6;
}

/* Trust row under the hero CTAs. */
.mkt-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 720px;
  margin: var(--mx-space-8) auto 0;
  padding-top: var(--mx-space-6);
  border-top: 1px solid var(--bs-border-color);
}
.mkt-stats > div { display: flex; flex-direction: column; gap: .1rem; text-align: center; }
.mkt-stat-num { font-family: var(--mx-font-serif); font-weight: 600; font-size: 1.05rem; color: var(--bs-heading-color); letter-spacing: -.01em; }
.mkt-stat-lbl { font-size: var(--mx-fs-sm); color: var(--bs-tertiary-color); }

/* ── Photographic hero (Home) ────────────────────────────────────────────────
   A fixed-dark band: the background photo is always dark, so hero copy is light
   in BOTH light and dark site themes (same principle as the --scr-* screens).
   The overlay is weighted to the left so the headline stays legible while the
   photo shows through on the right. Text colours come from tokens; only the
   photo-matching shadow tones are literal (like the --scr-* screen values). */
.mkt-hero--photo {
  --mkt-hero-shadow: 6, 15, 24;               /* deep navy - the photo's own shadow */
  --mkt-hero-foot: transparent;               /* bottom-edge fade colour; dark theme sets it to
                                                 body-bg to dissolve the seam, light stays crisp */
  text-align: left;
  padding: 0;
  min-height: clamp(500px, 80vh, 700px);
  display: flex;
  align-items: center;
  color: var(--scr-ink);
  /* Fallback backdrop shown until the photo loads (or if the file is missing). */
  background: linear-gradient(120deg, #0a1626 0%, #0c2743 58%, #0a1a30 100%);
}
.mkt-hero-photo-img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;   /* keep the nurse/laptop in frame */
}
/* Brand green-tint - only for the DEFAULT hero photo, never an admin's own CTA
   banner image (CTA wins = show it as uploaded). */
.mkt-hero--brandtint .mkt-hero-photo-img {
  /* Nudge the photo's electric-blue toward our teal-green brand hue. Kept mild so
     skin tones stay natural; the soft-light ::after wash finishes the "brush". */
  filter: hue-rotate(-20deg) saturate(1.04);
}
.mkt-hero-photo-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* vertical: soft top vignette + a fade to the section colour at the very
       bottom, so the banner dissolves into the next section (no hard seam)
       - resolves per theme via --bs-body-bg. */
    linear-gradient(180deg,
      rgba(var(--mkt-hero-shadow), .35) 0%,
      rgba(var(--mkt-hero-shadow), 0) 24%,
      rgba(var(--mkt-hero-shadow), 0) 90%,
      var(--mkt-hero-foot) 100%),
    /* horizontal: darken the left enough to keep the headline legible, but let
       the map/scene read through so the photo feels full-bleed, not a flat panel
       with the subject stranded on the right. */
    linear-gradient(90deg,
      rgba(var(--mkt-hero-shadow), .86) 0%,
      rgba(var(--mkt-hero-shadow), .68) 34%,
      rgba(var(--mkt-hero-shadow), .28) 66%,
      rgba(var(--mkt-hero-shadow), 0) 94%);
}

/* Soft green "brush" so the default blue stock photo takes on our green-black
   brand hue. Sits between the photo (z-index -3) and the darkening scrim
   (z-index -1); soft-light keeps it a gentle wash. Skipped for admin CTA images. */
.mkt-hero--brandtint::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(130% 110% at 80% 6%, rgba(40, 200, 158, .5), transparent 52%),
    linear-gradient(160deg, rgba(15, 156, 124, .28) 0%, rgba(13, 32, 26, .34) 100%);
  mix-blend-mode: soft-light;
}

/* Only in dark theme does the banner dissolve into the (dark) section below;
   in light theme the crisp photo-to-cream edge is kept. Covers explicit-dark
   and system-dark (with no explicit light override). */
:root[data-bs-theme="dark"] .mkt-hero--photo { --mkt-hero-foot: var(--bs-body-bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .mkt-hero--photo { --mkt-hero-foot: var(--bs-body-bg); }
}
.mkt-hero--photo .mkt-container { position: relative; }
/* Soft shadow keeps copy legible wherever the photo is busy/bright behind it. */
.mkt-hero-inner { max-width: 34rem; text-shadow: 0 1px 14px rgba(6, 15, 24, .5); }
.mkt-hero-actions .btn { text-shadow: none; }
.mkt-hero--photo .eyebrow { color: var(--scr-mint); margin-bottom: var(--mx-space-3); }
.mkt-hero--photo .mkt-hero-title {
  margin: 0; max-width: none; color: var(--scr-ink);
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08;
}
.mkt-hero--photo .mkt-hero-title .accent { color: var(--scr-coral); }
.mkt-hero--photo .mkt-hero-sub {
  margin: var(--mx-space-4) 0 var(--mx-space-6); max-width: 33rem;
  color: rgba(243, 241, 232, .84);
}
.mkt-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
/* Secondary CTA over the photo: a clean dark pill (not frosted glass) so the
   label stays legible whether it sits over the dark navy or the bright laptop. */
.mkt-hero--photo .btn-outline-secondary {
  --bs-btn-color: var(--scr-ink);
  --bs-btn-border-color: rgba(243, 241, 232, .5);
  --bs-btn-bg: rgba(9, 18, 28, .6);
  --bs-btn-hover-bg: rgba(9, 18, 28, .82);
  --bs-btn-hover-color: var(--scr-ink);
  --bs-btn-hover-border-color: rgba(243, 241, 232, .7);
}

/* Chips carry NO glass/box - just a mint ring icon + text, with a soft shadow. */
.mkt-hero-chips {
  display: flex; flex-wrap: wrap; gap: clamp(1.1rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  text-shadow: 0 1px 12px rgba(6, 15, 24, .55);
}
.mkt-hero-chip { display: flex; align-items: center; gap: .7rem; }
.mkt-hero-chip-ic {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(111, 227, 196, .45); color: var(--scr-mint);
}
.mkt-hero-chip-ic svg { width: 1.15rem; height: 1.15rem; }
.mkt-hero-chip-ic .num { font-family: var(--mx-font-mono); font-weight: 600; font-size: .95rem; }
.mkt-hero-chip-txt { display: flex; flex-direction: column; line-height: 1.22; }
.mkt-hero-chip-t { font-weight: 700; font-size: .92rem; color: var(--scr-ink); }
.mkt-hero-chip-d { font-size: .78rem; color: rgba(243, 241, 232, .72); }

@media (max-width: 720px) {
  .mkt-hero--photo { min-height: 0; padding: clamp(3rem, 12vh, 5rem) 0; }
  .mkt-hero-photo-scrim {
    background: linear-gradient(180deg, rgba(var(--mkt-hero-shadow), .74) 0%, rgba(var(--mkt-hero-shadow), .90) 100%);
  }
  .mkt-hero-inner { max-width: none; }
  .mkt-hero-photo-img { object-position: 66% center; }
}

/* Dark "monitor" pass-rate card - a device-screen metaphor, always dark. */
.mx-monitor {
  max-width: 900px;
  margin: 0 auto var(--mx-space-8);
  background: linear-gradient(180deg, rgba(111, 227, 196, .05), transparent 40%), var(--scr-bg);
  border: 1px solid var(--scr-line-strong);
  border-radius: 20px;
  padding: 2.1rem 2rem 1.5rem;
  position: relative;
  text-align: initial;
  box-shadow: 0 30px 60px -25px rgba(15, 35, 28, .35), 0 10px 24px -12px rgba(15, 35, 28, .25);
}
.mx-monitor::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background-image:
    linear-gradient(var(--scr-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--scr-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.mx-monitor-wave { width: 100%; height: 54px; margin-bottom: .6rem; position: relative; z-index: 1; }
.mx-monitor-wave path {
  fill: none; stroke: var(--scr-mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(111, 227, 196, .55));
  stroke-dasharray: 500; stroke-dashoffset: 500; animation: mkt-wave-draw 3.2s ease-in-out infinite;
}
@keyframes mkt-wave-draw { 0% { stroke-dashoffset: 500; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -500; } }
.mx-monitor-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.mx-monitor-stats .mx-passrate-item + .mx-passrate-item { border-left: 1px solid var(--scr-line); }
.mx-monitor .mx-passrate-num {
  font-family: var(--mx-font-mono); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--scr-mint); text-shadow: 0 0 18px rgba(111, 227, 196, .35); line-height: 1;
}
.mx-monitor .mx-passrate-item:nth-child(2) .mx-passrate-num { color: var(--scr-coral); text-shadow: 0 0 18px rgba(232, 178, 74, .35); }
.mx-monitor .mx-passrate-lbl { font-size: .76rem; color: var(--scr-ink-faint); margin-top: .5rem; letter-spacing: .02em; }
.mx-monitor-foot {
  position: relative; z-index: 1; text-align: center; font-size: .74rem; color: var(--scr-ink-faint);
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--scr-line);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.mx-monitor-foot svg { width: 13px; height: 13px; color: var(--scr-mint); flex-shrink: 0; }
@media (max-width: 640px) {
  .mx-monitor-stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .mx-monitor-stats .mx-passrate-item + .mx-passrate-item { border-left: 0; border-top: 1px solid var(--scr-line); padding-top: 1.1rem; }
}

.mkt-prose {
  max-width: 66ch;
}

/* ── mex runner: extended pieces ─────────────────────────────────────────── */

.exam-card-list {
  display: grid;
  gap: var(--mx-space-4);
}

.exam-card { margin: 0; }

/* results */
.mex-score { font-size: 1.6rem; font-weight: 800; }

/* ══ Exam runner, rebuilt ══════════════════════════════════════════════════════
   Shared by the timed runner (PartRunner) and practice (Drill) via ExamQuestionView /
   ExamNavigator. Tokens only - no new --mx-*/--mex-* token, so §01's token-coverage audit stays
   empty and both themes come free. No new focus treatment either: the global :focus-visible ring
   applies, so the focus-dialect count doesn't move. */

/* The runner needs room for a navigator column; .mex-shell's 60rem is sized for a single column. */
.mex-shell:has(.mex-layout),
.mex-shell:has(.mex-review) { max-width: var(--mx-shell); }
@keyframes mex-crit { 50% { opacity: .55; } }

/* Paper-ladder hues: two values of the brand navy, not two semantic colours. The split
   between numeracy and clinical is categorical, and reusing teal/coral here would make a
   neutral fact look like a status. Both values are picked to sit on the card ground in
   either theme, so they are redefined rather than inherited from a single-theme literal. */
:root { --mex-paper-a: #143A5E; --mex-paper-b: #7C9AB6; }
:root[data-bs-theme="dark"] { --mex-paper-a: #9CC4E4; --mex-paper-b: #4C6E8C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) { --mex-paper-a: #9CC4E4; --mex-paper-b: #4C6E8C; }
}

/* ── Candidate search box ─────────────────────────────────────────────────────
   Shared by /exam and /resources. Same shape as the admin klp-search, but focus is
   the candidate coral rather than admin blue, so it belongs to these pages. */
.mx-search { position: relative; display: flex; align-items: center; flex: 1 1 20rem; min-width: 0; max-width: 26rem; }
.mx-search > svg { position: absolute; left: .95rem; color: var(--bs-secondary-color); pointer-events: none; }
.mx-search > input {
  width: 100%; padding: .58rem 2.4rem .58rem 2.5rem;
  border: 1px solid var(--bs-border-color); border-radius: 999px;
  background: var(--bs-card-bg); color: var(--bs-body-color); font-size: .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mx-search > input::placeholder { color: var(--bs-secondary-color); opacity: .8; }
.mx-search > input:focus {
  outline: none; border-color: var(--mx-action);
  box-shadow: 0 0 0 .2rem rgba(208, 64, 45, .14);
}
/* Clear button appears only when there is text; sits inside the pill on the right. */
.mx-search-clear {
  position: absolute; right: .5rem; display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--bs-secondary-color); font-size: 1rem; line-height: 1;
}
.mx-search-clear:hover { background: var(--bs-secondary-bg); color: var(--bs-heading-color); }
/* ── Type badges ─────────────────────────────────────────────────────────────
   Colour per resource type. These are CATEGORY hues, so they are their own tokens
   rather than borrowed from the semantic set - and they appear only as tinted pills,
   never as a filled button, so coral keeps its monopoly on "this is the action".
   PDF takes red because that convention is older than this app and reads instantly. */
/* Inks are darker than the app's usual teal/red because a badge sits on its OWN tint, and
   that tint sits on a row that lightens on hover - the worst-case ground, and the one that
   actually failed AA when measured. Verified ≥4.5:1 on both the card and the hover ground. */
:root {
  --mres-article: #0A6853; --mres-article-bg: rgba(15, 156, 124, .13);
  --mres-video:   #5B4BB8; --mres-video-bg:   rgba(91, 75, 184, .12);
  --mres-pdf:     #A62E1D; --mres-pdf-bg:     rgba(208, 64, 45, .11);
  --mres-link:    #4A5D72; --mres-link-bg:    rgba(74, 93, 114, .12);
}
:root[data-bs-theme="dark"] {
  --mres-article: #4FD6B0; --mres-article-bg: rgba(79, 214, 176, .16);
  --mres-video:   #B0A3F5; --mres-video-bg:   rgba(176, 163, 245, .16);
  --mres-pdf:     #FF9B87; --mres-pdf-bg:     rgba(255, 155, 135, .16);
  --mres-link:    #A8BCD2; --mres-link-bg:    rgba(168, 188, 210, .15);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --mres-article: #4FD6B0; --mres-article-bg: rgba(79, 214, 176, .16);
    --mres-video:   #B0A3F5; --mres-video-bg:   rgba(176, 163, 245, .16);
    --mres-pdf:     #FF9B87; --mres-pdf-bg:     rgba(255, 155, 135, .16);
    --mres-link:    #A8BCD2; --mres-link-bg:    rgba(168, 188, 210, .15);
  }
}
.mex-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .88rem; padding: .6rem 1.3rem;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* The primary action takes the row's own accent, so a Resume reads teal and a
   Start reads signal blue - the button agrees with the badge instead of fighting it. */
/* The primary button is ALWAYS --mx-action. It deliberately no longer reads the row's
   --mex-accent: a button that changes colour by state stops reading as "the button" and
   starts competing with the rails and badges that already carry that information. */
.mex-btn--primary { background: var(--mx-action); color: var(--mx-action-on); }
.mex-btn--primary:hover:not(:disabled) { background: var(--mx-action-hover); color: var(--mx-action-on); }
.mex-btn--ghost { background: var(--bs-card-bg); border-color: var(--bs-border-color); color: var(--bs-heading-color); }
.mex-btn--ghost:hover:not(:disabled) { border-color: var(--mx-action); color: var(--mx-action); }
.mex-btn:disabled { opacity: .55; cursor: default; }

/* This class was referenced by /exam but never defined, so a failed fetch rendered the
   error message as bare body text. Matches .osce-alert - but token-driven, because a
   literal dark red is unreadable on the dark card ground. */
:root { --mex-alert-ink: #B23422; }
:root[data-bs-theme="dark"] { --mex-alert-ink: #FF9B87; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) { --mex-alert-ink: #FF9B87; }
}

/* The flashcards, notebook and question-notes components (flashcards.css, notebook.css)
   were written against four "mex" surface tokens that were never defined, so every use
   fell back to its own hardcoded white / grey / green: light-only and off-system (white
   cards on the dark theme's navy). Bound here, once, to the theme's own palette - the
   same tokens .mkt-shell / .mx-app map the Bootstrap surface variables to - so they
   follow light and dark with everything else. */
:root {
  --mex-surface: var(--mx-nav-card);
  --mex-line: var(--mx-nav-hairline);
  --mex-muted: var(--mx-nav-muted);
  --mex-accent: var(--mx-teal-ink);
}

.mx-bookmark-btn {
  flex: 0 0 auto; border: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-secondary-color);
  border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}
.mx-bookmark-btn:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.mx-bookmark-btn.is-on { border-color: rgba(var(--bs-primary-rgb), .5); color: var(--bs-link-color); background: rgba(var(--bs-primary-rgb), .12); }

/* ── readiness ring (candidate dashboard) ────────────────────────────────── */
.mx-readiness-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: var(--mx-space-6);
}

.mx-ring-wrap { position: relative; width: 176px; height: 176px; }
.mx-ring-wrap svg { display: block; }
.mx-ring-track { stroke: var(--bs-tertiary-bg); }
.mx-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mx-ring-pct { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.mx-ring-pct span { font-size: 1.1rem; }
.mx-ring-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-tertiary-color); font-weight: 700; }

.mx-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .82rem;
}
.mx-status-pill .dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.mx-status-pill--ready { background: rgba(var(--mx-teal-rgb), .15); color: var(--mx-teal-ink); border: 1px solid rgba(var(--mx-teal-rgb), .3); }
.mx-status-pill--developing { background: rgba(var(--bs-warning-rgb), .14); color: var(--bs-warning); border: 1px solid rgba(var(--bs-warning-rgb), .34); }
.mx-status-pill--practice { background: rgba(var(--bs-danger-rgb), .13); color: var(--bs-danger); border: 1px solid rgba(var(--bs-danger-rgb), .34); }
.mx-status-pill--none { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); }

/* goal exam-date countdown (candidate dashboard) */
.mx-goaldate { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--bs-border-color); width: 100%; max-width: 15rem; text-align: center; }
.mx-goal-count { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--bs-primary); }
.mx-goal-date { font-size: .8rem; color: var(--bs-secondary-color); }
.mx-goaldate input[type="date"] { max-width: 12rem; margin: 0 auto; }

/* study plan ("your path to exam day") */
.mx-plan { border-left: 3px solid var(--mx-teal); }
.mx-plan-headline { font-family: var(--mx-font-serif); font-size: 1.15rem; font-weight: 600; color: var(--bs-heading-color); margin: .1rem 0 .7rem; letter-spacing: -.01em; }
.mx-plan-steps { margin: 0 0 .7rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; line-height: 1.5; color: var(--bs-body-color); }
.mx-plan-steps li::marker { color: var(--mx-teal-ink); font-weight: 700; }
.mx-plan-steps strong { color: var(--bs-heading-color); }
.mx-plan-note { font-size: .85rem; color: var(--bs-secondary-color); border-top: 1px solid var(--bs-border-color); padding-top: .6rem; }

/* cookie-consent banner (fixed bottom) */
.mx-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--bs-card-bg); border-top: 1px solid var(--bs-border-color); box-shadow: 0 -6px 28px -14px rgba(0, 0, 0, .28); }
.mx-cookie-inner { max-width: var(--mx-shell); margin-inline: auto; padding: .9rem clamp(1rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mx-cookie-text { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--bs-secondary-color); max-width: 62ch; }
.mx-cookie-text a { color: var(--bs-link-color); text-decoration: underline; text-underline-offset: 2px; }
.mx-cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* printable score report */
.mx-report { max-width: 46rem; margin: 0 auto; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius-lg); padding: 2rem 2.25rem; box-shadow: var(--mx-elevation-sm); }
.mx-report-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--bs-primary); padding-bottom: .75rem; margin-bottom: 1.25rem; }
.mx-report-brand { --mx-logo-w: 12rem; }
.mx-report-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bs-secondary-color); font-weight: 700; }
.mx-report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; margin-bottom: 1rem; font-size: .9rem; }
.mx-report-meta span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-tertiary-color); font-weight: 700; }
.mx-report-score { text-align: center; padding: 1.25rem 0; }
.mx-report-pct { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; color: var(--bs-heading-color); line-height: 1; }
.mx-report-verdict { display: inline-block; margin-top: .6rem; padding: .3rem 1.1rem; border-radius: 100px; font-weight: 800; letter-spacing: .05em; }
.mx-report-verdict.is-pass { background: rgba(var(--bs-success-rgb), .15); color: var(--bs-success); }
.mx-report-verdict.is-fail { background: rgba(var(--bs-danger-rgb), .13); color: var(--bs-danger); }
.mx-report-verdict.is-pending { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
/* Diagnostic readiness funnel (ADR 0009 D4) - band + recommended next step. */
.mx-report-readiness {
  margin: 1rem 0 0;
  padding: var(--mx-space-4);
  border: 1px solid rgba(var(--mx-teal-rgb), .35);
  background: rgba(var(--mx-teal-rgb), .08);
  border-radius: var(--mx-radius);
  text-align: center;
}
.mx-report-readiness-band { margin: 0; font-size: var(--mx-fs-lg); color: var(--bs-heading-color); }
.mx-report-readiness-band strong { color: var(--mx-teal-ink); }
.mx-report-readiness-lede { margin: var(--mx-space-3) 0 var(--mx-space-2); font-size: var(--mx-fs-sm); color: var(--bs-secondary-color); }
.mx-report-rec-actions { display: flex; gap: var(--mx-space-2); justify-content: center; flex-wrap: wrap; }

/* position: relative so the absolutely-positioned visually-hidden header text is clipped by this box rather than widening the page at 360px. */
.mx-report-parts-scroll { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; }
.mx-report-parts { width: 100%; border-collapse: collapse; }
.mx-report-parts th, .mx-report-parts td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--bs-border-color); font-size: .92rem; }
.mx-report-parts th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); }
.mx-report-why { margin: .9rem 0 0; font-size: .92rem; }
.mx-report-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); font-size: .78rem; color: var(--bs-tertiary-color); }

@media print {
  body * { visibility: hidden; }
  .mx-report, .mx-report * { visibility: visible; }
  .mx-report { position: absolute; left: 0; top: 0; width: 100%; max-width: 100%; border: 0; box-shadow: none; }
  .d-print-none { display: none !important; }
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  mkt - PUBLIC MARKETING SITE (shell, sections, cards, footer)          ║
   ║  Tokens only; no color literals. Layout via flex/grid + gap.           ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.mkt-shell { display: flex; flex-direction: column; min-height: 100vh; }
.mkt-body { flex: 1 0 auto; }

.mkt-container { width: 100%; max-width: var(--mx-shell); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.mkt-narrow { max-width: 780px; }

/* header */
.mkt-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bs-body-bg); /* opaque fallback where color-mix/backdrop-filter is unsupported */
  background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--bs-border-color);
  transition: box-shadow .25s ease;
}
/* Scrolled state (home-motion.js toggles it): once content passes underneath, the bar
   gains elevation so it reads as a surface floating over the page rather than a stripe
   glued to it. At rest there is nothing under it, so no shadow. */
.mkt-header.is-scrolled { box-shadow: var(--mx-elevation-sm); }
.mkt-header-inner {
  max-width: var(--mx-shell); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem);
  height: 64px; display: flex; align-items: center; gap: var(--mx-space-4);
}
.mkt-brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: var(--mx-space-6); --mx-logo-w: 9.5rem; }

/* The logo (BrandLogo.razor). Both themes' artwork is in the DOM and the theme attribute picks
   one, so the swap is right on first paint. Width comes from the context via --mx-logo-w; height
   follows the image, so each theme's artwork keeps its own proportions. */
.mx-logo { display: inline-block; flex: 0 0 auto; width: var(--mx-logo-w, 12rem); max-width: 100%; line-height: 0; vertical-align: middle; }
.mx-logo img { display: block; width: 100%; height: auto; }
.mx-logo .mx-logo-dark { display: none; }
.mx-logo.is-on-dark .mx-logo-dark { display: block; }
[data-bs-theme="dark"] .mx-logo .mx-logo-light { display: none; }
[data-bs-theme="dark"] .mx-logo .mx-logo-dark { display: block; }
/* Paper is white whatever the screen theme is - the dark artwork's white letters would vanish. */
@media print {
  [data-bs-theme="dark"] .mx-logo:not(.is-on-dark) .mx-logo-light { display: block; }
  [data-bs-theme="dark"] .mx-logo:not(.is-on-dark) .mx-logo-dark { display: none; }
}
/* Nav labels are sentence-case sans, not uppercase mono: mono is reserved for instruments
   (timers, scores) across the marketing surface, and a menu is not an instrument. */
.mkt-nav { display: flex; gap: var(--mx-space-5, 1.4rem); flex: 1; align-items: center; }
.mkt-nav a { color: var(--bs-body-color); text-decoration: none; font-family: var(--mx-font-sans); font-weight: 500; font-size: .9rem; letter-spacing: -.005em; text-transform: none; padding: .35rem 0; }
.mkt-nav a:hover { color: var(--bs-primary); }
/* Two-word plain entries ("About us", "Contact us") stay on one line, like the dropdown buttons. */
.mkt-nav > a { white-space: nowrap; flex: 0 0 auto; }

/* Programmes mega-dropdown - CSS-only (hover + keyboard focus-within), fades in */
.mkt-drop { position: relative; display: inline-flex; align-items: center; }
.mkt-drop-btn { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; background: none; border: 0; padding: .35rem 0; margin: 0; font-family: var(--mx-font-sans); font-weight: 500; font-size: .9rem; letter-spacing: -.005em; text-transform: none; color: var(--bs-body-color); cursor: pointer; }
.mkt-drop-btn:hover, .mkt-drop:focus-within .mkt-drop-btn { color: var(--bs-primary); }
.mkt-drop-chev { width: 13px; height: 13px; opacity: .7; transition: transform .2s ease; }
.mkt-drop:hover .mkt-drop-chev, .mkt-drop:focus-within .mkt-drop-chev { transform: rotate(180deg); }
.mkt-drop-panel {
  position: absolute; top: 100%; left: -.75rem; min-width: 320px; margin-top: .6rem; padding: .75rem;
  display: flex; align-items: stretch; gap: .75rem;
  max-width: calc(100vw - 2rem);
  /* Never a scroller: a hover menu that scrolls closes under the pointer. Length is handled
     by width - five or more entries go to two columns - and by the two-line teaser clamp. */
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  box-shadow: 0 1px 0 rgba(10, 26, 47, .04), 0 24px 56px -24px rgba(10, 26, 47, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60;
}

/* The list. Five or more entries go to two columns - categories are data-driven, so
   this has to hold for any number staff configure. */
.mkt-drop-list { display: grid; grid-template-columns: minmax(260px, 1fr); align-content: start; gap: .15rem; min-width: 260px; }
.mkt-drop-list:has(> .mkt-drop-item:nth-child(5)) { grid-template-columns: repeat(2, minmax(262px, 1fr)); gap: .15rem .5rem; }
/* Dividers follow DOM order, so in two columns they'd cut between items that aren't
   vertically adjacent. Drop them and let the column gap do the separating. */
.mkt-drop-list:has(> .mkt-drop-item:nth-child(5)) .mkt-drop-item + .mkt-drop-item::before { display: none; }
.mkt-drop-list .mkt-drop-foot { grid-column: 1 / -1; }

/* Keep every panel INSIDE the viewport, open or closed. A closed panel is only
   visibility-hidden (for the fade), and an absolutely-positioned box hanging past the
   right edge still widens the document: at 1280px the Courses/Prepare panels reached
   x≈1470–1560, so EVERY page had a horizontal scrollbar, and opened they were cut off.
   Moves: the LAST TWO drops hang from their RIGHT edge (Study Resources and About in the
   Nov 2026 nav, whether or not "My study" leads the bar), and below 1600px the
   two-column panels fold to one column (~550px; the list just runs longer). A list long
   enough to outrun the screen (8+ entries - the Courses menu) instead stays in two
   columns and drops its feature card, so it is no taller than the others. Together every
   panel fits from the hamburger breakpoint up. */
.mkt-nav > .mkt-drop:nth-last-of-type(-n+2) .mkt-drop-panel { left: auto; right: -.75rem; }
@media (max-width: 1599px) {
  .mkt-drop-list:has(> .mkt-drop-item:nth-child(5)) { grid-template-columns: minmax(260px, 1fr); gap: .15rem; }
  .mkt-drop-list:has(> .mkt-drop-item:nth-child(5)) .mkt-drop-item + .mkt-drop-item::before { display: block; }
}
@media (max-width: 1599px) {
  .mkt-drop-list:has(> .mkt-drop-item:nth-child(8)) { grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: .15rem .5rem; }
  .mkt-drop-list:has(> .mkt-drop-item:nth-child(8)) .mkt-drop-item + .mkt-drop-item::before { display: none; }
  .mkt-drop-panel:has(.mkt-drop-list > .mkt-drop-item:nth-child(8)) .mkt-drop-feat { display: none; }
}
/* Grouped panels (Programmes by country, Courses by exam): headed columns of plain links, balanced by CSS
   columns so a long group and a short one share the height. Never a scroller, same as the lists above. Three
   columns at 200px fit beside the feature card from the hamburger breakpoint (1231px) up. */
/* A grouped panel hangs from the start of the nav, not from its own button: Programmes' panel (three columns + the
   feature card, ~920px) ran past the right edge at 1240px when it hung from the button. */
.mkt-nav { position: relative; }
.mkt-nav > .mkt-drop:has(> .mkt-drop-panel--groups) { position: static; }
.mkt-nav .mkt-drop-panel--groups { left: -.75rem; }
.mkt-drop-groups { columns: 3 196px; column-gap: 1.25rem; min-width: 0; width: max-content; max-width: min(660px, calc(100vw - 2rem - 252px - 2.25rem)); }
.mkt-drop-panel--groups:not(:has(.mkt-drop-feat)) .mkt-drop-groups { max-width: min(700px, calc(100vw - 3.5rem)); }
.mkt-drop-group { break-inside: avoid; display: flex; flex-direction: column; padding: .45rem .4rem .7rem; width: 196px; }
.mkt-nav .mkt-drop-group-head {
  padding: .2rem .4rem .35rem; margin-bottom: .15rem; border-bottom: 1px solid var(--bs-border-color);
  font-family: var(--mx-font-display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--bs-heading-color);
}
.mkt-nav a.mkt-drop-group-head:hover { color: var(--bs-primary); }
.mkt-nav .mkt-drop-group-link {
  padding: .32rem .4rem; border-radius: var(--mx-radius-sm); font-size: .86rem; font-weight: 500; line-height: 1.3;
  color: var(--bs-body-color);
}
.mkt-nav .mkt-drop-group-link:hover { background: rgba(var(--bs-primary-rgb), .07); color: var(--bs-primary); }

/* The featured card: one action per panel, on the royal tint, with the orange button.
   It is what stops a panel reading as a bare list. */
.mkt-nav .mkt-drop-feat {
  display: flex; flex-direction: column; gap: .35rem; width: 252px; flex: 0 0 252px;
  padding: 1.15rem 1.15rem 1.05rem; border-radius: var(--mx-radius-sm); text-decoration: none;
  background: var(--mx-nav-band); color: #DCE4F5;
  font-family: var(--mx-font-sans); text-transform: none; letter-spacing: normal;
}
.mkt-drop-feat:hover { color: #DCE4F5; }
.mkt-drop-feat-k { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: #9FB3E6; }
.mkt-drop-feat-t { font-family: var(--mx-font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.22; letter-spacing: -.01em; color: #fff; margin-top: .2rem; }
.mkt-drop-feat-d { font-size: .8rem; line-height: 1.5; color: #DCE4F5; margin-top: .1rem; }
.mkt-drop-feat-b { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .8rem; font-size: .84rem; font-weight: 600; color: #fff; }
.mkt-drop-feat-b svg { width: 14px; height: 14px; transition: transform .18s ease; }
.mkt-drop-feat:hover .mkt-drop-feat-b svg { transform: translateX(3px); }
.mkt-drop-feat:hover .mkt-drop-feat-b { color: var(--mx-nav-action); }
/* On dark the royal fill is a dead slab against the dark panel. The card becomes a tinted
   surface with a hairline instead, its kicker and button in the lifted theme primary. */
:root[data-bs-theme="dark"] .mkt-nav .mkt-drop-feat {
  background: rgba(var(--bs-primary-rgb), .12); border: 1px solid rgba(var(--bs-primary-rgb), .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .mkt-nav .mkt-drop-feat {
    background: rgba(var(--bs-primary-rgb), .12); border: 1px solid rgba(var(--bs-primary-rgb), .35);
  }
  :root:not([data-bs-theme="light"]) .mkt-drop-feat-k,
  :root:not([data-bs-theme="light"]) .mkt-drop-feat-b { color: var(--bs-primary); }
  :root:not([data-bs-theme="light"]) .mkt-drop-feat-d { color: var(--bs-body-color); }
}
:root[data-bs-theme="dark"] .mkt-drop-feat-k,
:root[data-bs-theme="dark"] .mkt-drop-feat-b { color: var(--bs-primary); }
:root[data-bs-theme="dark"] .mkt-drop-feat-d { color: var(--bs-body-color); }
:root[data-bs-theme="dark"] .mkt-drop-feat:hover .mkt-drop-feat-b,
:root:not([data-bs-theme="light"]) .mkt-drop-feat:hover .mkt-drop-feat-b { color: var(--mx-nav-action); }
.mkt-drop:hover .mkt-drop-panel, .mkt-drop:focus-within .mkt-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mkt-drop-panel::before { content: ""; position: absolute; top: -.7rem; left: 0; right: 0; height: .7rem; } /* hover bridge over the gap */
/* The panel items are <a> inside .mkt-nav, so the mono-uppercase nav rule bleeds in - reset it. */
/* `.mkt-nav .x`, not `.x`: the bar's `.mkt-nav a` rule sets padding on every anchor and
   outranks a bare class, which is how the featured card lost its inset. */
.mkt-nav .mkt-drop-item { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem .8rem; border-radius: var(--mx-radius-sm); text-decoration: none; font-family: var(--mx-font-sans); text-transform: none; letter-spacing: normal; }
/* Tiles read the THEME primary, not the marketing royal: on the dark card the royal
   vanished into the ground, while the theme primary is lifted for dark by design. */
.mkt-drop-ico { width: 34px; height: 34px; flex: 0 0 auto; margin-top: .05rem; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); transition: background .15s ease, color .15s ease; }
.mkt-drop-ico svg { width: 18px; height: 18px; }
.mkt-drop-item:hover .mkt-drop-ico { background: var(--bs-primary); color: var(--mx-on-primary); }
.mkt-drop-text { display: block; min-width: 0; }
/* Hairline between entries so a list of title+description pairs reads as separate
   items rather than one run-on block. Inset so it stops short of the panel edges. */
.mkt-drop-item + .mkt-drop-item { position: relative; }
.mkt-drop-item + .mkt-drop-item::before {
  content: ""; position: absolute; left: .7rem; right: .7rem; top: 0;
  border-top: 1px solid var(--bs-border-color);
}
.mkt-drop-item:hover { background: rgba(var(--bs-primary-rgb), .07); }
.mkt-drop-item:hover::before, .mkt-drop-item:hover + .mkt-drop-item::before { border-color: transparent; }
.mkt-drop-title { display: block; font-family: var(--mx-font-display); font-weight: 700; font-size: .98rem; letter-spacing: -.01em; text-transform: none; color: var(--bs-heading-color); }
.mkt-drop-item:hover .mkt-drop-title { color: var(--bs-primary); }
/* Explicit sans: the item's <a> inherits mono from `.mkt-nav a` (higher specificity), and a desc
   with no font of its own would inherit that mono - terminal-looking on a marketing sentence. */
.mkt-drop-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .25rem; font-family: var(--mx-font-sans); font-size: .82rem; line-height: 1.45; text-transform: none; letter-spacing: normal; color: var(--bs-secondary-color); }

/* Quiet footer that turns the flat list into a menu - a mono cue back to the full catalogue. */
.mkt-nav .mkt-drop-foot { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; padding: .75rem .8rem .3rem; border-top: 1px solid var(--bs-border-color); font-family: var(--mx-font-sans); font-size: .84rem; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--bs-primary); text-decoration: none; }
.mkt-drop-foot:hover { color: var(--bs-heading-color); }
.mkt-drop-foot svg { width: 13px; height: 13px; transition: transform .18s ease; }
.mkt-drop-foot:hover svg { transform: translateX(3px); }
.mkt-menu-label { display: block; padding: .35rem .2rem .1rem; font-family: var(--mx-font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bs-tertiary-color); }
.mkt-header-actions { display: flex; align-items: center; gap: var(--mx-space-3); margin-left: auto; min-width: 0; }
.mkt-login { color: var(--bs-body-color); text-decoration: none; font-family: var(--mx-font-sans); font-weight: 500; font-size: .9rem; letter-spacing: -.005em; text-transform: none; white-space: nowrap; }
.mkt-login:hover { color: var(--bs-primary); }

/* ── Header, Nov 2026 design ─────────────────────────────────────────────────
   Wordmark + a two-line tagline behind a hairline; the current page's entry carries an
   orange underline; Login is an outlined royal button beside an orange Sign Up. */
.mkt-brand-tag {
  display: none; margin-left: .9rem; padding-left: .9rem; border-left: 1px solid var(--bs-border-color);
  font-family: var(--mx-font-sans); font-size: .78rem; line-height: 1.25; font-weight: 500;
  color: var(--mx-nav-signal, var(--bs-heading-color)); white-space: nowrap;
}
/* From 1440px: the seven-entry bar (Programmes … Contact us) needs the tagline's width on a 1280/1366 laptop, where
   Sign Up was pushed off the screen. */
@media (min-width: 1440px) { .mkt-header:not(.mkt-header--member) .mkt-brand-tag { display: block; } }
@media (min-width: 1600px) { .mkt-header--member .mkt-brand-tag { display: block; } }
.mkt-nav > a, .mkt-nav > .mkt-drop > .mkt-drop-btn { position: relative; color: var(--mx-nav-signal, var(--bs-body-color)); }
.mkt-nav > a.is-active, .mkt-nav > .mkt-drop.is-active > .mkt-drop-btn { font-weight: 600; }
.mkt-nav > a.is-active::after, .mkt-nav > .mkt-drop.is-active > .mkt-drop-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.55rem; height: 2.5px; border-radius: 2px; background: var(--mx-nav-action, #F28B1D);
}
.mkt-header .mkt-login--btn {
  display: inline-flex; align-items: center; padding: .42rem 1.1rem; border-radius: 7px;
  border: 1.5px solid var(--mx-nav-signal, var(--bs-heading-color)); color: var(--mx-nav-signal, var(--bs-heading-color)); font-weight: 600;
}
.mkt-header .mkt-login--btn:hover { background: var(--mx-nav-signal, var(--bs-heading-color)); color: var(--mx-nav-on-signal, #fff); }
.mkt-header .mkt-signup {
  padding: .46rem 1.15rem; border-radius: 7px; font-weight: 600; font-size: .9rem;
  background: var(--mx-nav-action); border-color: var(--mx-nav-action); color: var(--mx-nav-on-action);
}
.mkt-header .mkt-signup:hover { background: var(--mx-nav-action-hover); border-color: var(--mx-nav-action-hover); color: var(--mx-nav-on-action); }
/* Five entries, not seven: the visitor bar can breathe (beats the crowded-bar squeeze further down). */
@media (min-width: 1231px) { .mkt-header-inner { height: 68px; } .mkt-header:not(.mkt-header--member) .mkt-nav { gap: clamp(1.4rem, 2vw, 2.1rem); } }

/* Sign out is an EXIT, not a conversion. It used to be .btn-primary, which was merely
   dull while primary was blue - once primary became coral it turned the loudest element
   on every signed-in page into "leave". A quiet outline keeps coral for "Start free". */
.mkt-signout {
  display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer;
  font-family: var(--mx-font-mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--bs-border-color); background: transparent;
  color: var(--bs-secondary-color);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mkt-signout:hover { border-color: var(--bs-heading-color); color: var(--bs-heading-color); background: var(--bs-secondary-bg); }
.mkt-header-actions .btn { white-space: nowrap; }

/* Inline auth actions group (desktop). Hidden on mobile - moves into the menu. */
.mkt-auth { display: inline-flex; align-items: center; gap: var(--mx-space-3); }
/* A short hairline sets the quiet utility icons (search, theme toggle) apart from the
   identity / CTA cluster, so the right side reads as "tools | account" rather than one
   crowded run. Sits on .mkt-auth, so it disappears with it when the bar collapses. */
.mkt-header-actions .mkt-auth { position: relative; margin-left: var(--mx-space-1, .25rem); padding-left: var(--mx-space-3); }
.mkt-header-actions .mkt-auth::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 1.35rem; background: var(--bs-border-color);
}

/* Account avatar (signed in). Lived in the old app-bar stylesheet; now part of the one header. */
.mkt-avatar {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; text-decoration: none; overflow: hidden;
  background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color);
  color: var(--bs-heading-color);
  font-family: var(--mx-font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.mkt-avatar:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
/* Uploaded profile photo fills the circle; initials remain the fallback. */
.mkt-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Candidate's own area ──────────────────────────────────────────────────────
   A signed-in candidate's "My study" is their home base, not another marketing link,
   so its trigger reads as a distinct tinted pill; and the dashboard — their main page —
   earns one loud, always-visible button in the actions row (staff use /admin instead). */
.mkt-drop--study { flex: 0 0 auto; }   /* never shrink → "My study" always stays on one line */
.mkt-drop--study .mkt-drop-btn {
  gap: .42rem; padding: .36rem .5rem .36rem .68rem; border-radius: 999px; font-weight: 600;
  white-space: nowrap;
  background: color-mix(in srgb, var(--bs-primary) 11%, transparent);
  color: var(--bs-primary);
}
.mkt-drop--study .mkt-drop-btn:hover,
.mkt-drop--study:focus-within .mkt-drop-btn {
  background: color-mix(in srgb, var(--bs-primary) 17%, transparent);
  color: var(--bs-primary);
}
/* Leading mortarboard mark + a quieter chevron, so the pill reads as icon · label · caret. */
.mkt-drop-lead { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.mkt-drop--study .mkt-drop-chev { opacity: .55; }

.mkt-dash {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .46rem .95rem; border-radius: 999px; text-decoration: none;
  /* Orange, not royal: it sits next to the royal search button, and orange is the design's one
     "primary action" colour — so the candidate's way home is unmistakably the loudest thing here. */
  background: var(--mx-orange, #e8791f); border: 1px solid var(--mx-orange, #e8791f);
  color: #fff;
  font-family: var(--mx-font-sans); font-weight: 700; font-size: .85rem; letter-spacing: -.005em;
  box-shadow: 0 1px 3px rgba(232, 121, 31, .35);
  transition: filter .15s ease, transform .1s ease;
}
.mkt-dash:hover { filter: brightness(1.06); color: #fff; }
.mkt-dash:active { transform: translateY(1px); }
.mkt-dash-ico { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* Mobile: the same dashboard emphasis inside the hamburger. */
.mkt-menu-dash {
  align-self: start; margin: .1rem 0 .5rem; padding: .5rem .95rem; border-radius: 999px;
  background: var(--mx-orange, #e8791f); color: #fff !important;
  font-weight: 700; text-decoration: none;
}

/* Mobile hamburger menu - CSS-only via <details>. Hidden on desktop. */
.mkt-menu { display: none; position: relative; }
.mkt-burger {
  display: inline-grid; place-items: center; list-style: none;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--bs-border-color); background: var(--bs-card-bg);
  color: var(--bs-body-color); cursor: pointer;
}
.mkt-burger::-webkit-details-marker { display: none; }
.mkt-burger svg { width: 1.2rem; height: 1.2rem; }
.mkt-menu[open] .mkt-burger { border-color: rgba(var(--bs-primary-rgb), .5); color: var(--bs-primary); }
.mkt-menu-panel {
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 1100;
  min-width: 220px; max-width: 78vw;
  /* The panel now carries the whole site (My study + five sections), so it must scroll
     inside itself rather than running off the bottom of the screen. `contain` stops the
     page behind it scrolling once the panel hits its end. */
  max-height: min(76vh, 34rem); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .1rem; padding: .5rem;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); box-shadow: 0 16px 40px -16px rgba(15, 35, 28, .5);
}
/* Section labels stay put while the list scrolls under them. */
.mkt-menu-label { position: sticky; top: -.5rem; background: var(--bs-body-bg); z-index: 1; }
.mkt-menu-panel a {
  display: block; padding: .62rem .7rem; border-radius: var(--mx-radius-sm);
  color: var(--bs-body-color); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.mkt-menu-panel a:hover { background: var(--bs-secondary-bg); color: var(--bs-primary); }
.mkt-menu-sep { border: 0; border-top: 1px solid var(--bs-border-color); margin: .4rem .2rem; }
.mkt-menu-panel .mkt-logout { margin: 0; }
.mkt-menu-account { display: flex; flex-direction: column; gap: .1rem; }
/* The bell folds away with the account pills below the desktop bar, so its count rides on the burger
   (a dot) and on a Notifications entry inside the menu. Same red as .ntf-badge. */
.mkt-burger { position: relative; }
.mkt-burger-dot {
  position: absolute; top: .1rem; right: .1rem; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--bs-danger, #c0392b); box-shadow: 0 0 0 2px var(--bs-card-bg);
}
.mkt-menu-panel .mkt-menu-ntf { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mkt-menu-badge {
  min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; line-height: 1; color: #fff; background: var(--bs-danger, #c0392b);
}
/* One collapsible group per nav section (mobile only) - keeps the panel short. */
.mkt-menu-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: .6rem .7rem .45rem; }
.mkt-menu-group > summary::-webkit-details-marker { display: none; }
.mkt-menu-group > summary::after { content: "+"; font-size: .95rem; line-height: 1; }
.mkt-menu-group[open] > summary::after { content: "\2212"; }
/* A grouped section's sub-headings (a country, an exam) and the indented links under them. */
.mkt-menu-panel .mkt-menu-subhead { display: block; margin-top: .35rem; padding: .45rem .7rem .2rem; font-size: .8rem; font-weight: 700; color: var(--bs-heading-color); }
.mkt-menu-panel .mkt-menu-sublink { padding: .45rem .7rem .45rem 1.4rem; font-weight: 500; font-size: .92rem; }
.mkt-menu-panel .btn { display: block; text-align: center; margin-top: .3rem; }

/* site-wide CTA bar */
.mkt-cta-bar {
  display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
  padding: .6rem 1rem; text-align: center; text-decoration: none; font-weight: 600; font-size: .92rem;
  background: var(--bs-primary); color: var(--mx-on-primary);
}
.mkt-cta-bar:hover { color: var(--mx-on-primary); filter: brightness(1.06); }
.mkt-cta-bar-btn { text-decoration: underline; }
/* With an admin-uploaded banner image (set inline as a scrim + url on the anchor). */
.mkt-cta-bar.has-banner {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff; padding-block: 1.05rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.mkt-cta-bar.has-banner:hover { color: #fff; filter: brightness(1.08); }
/* Phone: a one-line strip, and none at all while the origin ribbon is showing (that ribbon is the
   page's one banner then - two stacked banners ate a third of a 740px first screen). */
@media (max-width: 640px) {
  .mkt-cta-bar { padding: .4rem .75rem; gap: .2rem .5rem; font-size: .8rem; line-height: 1.3; }
  .mkt-cta-bar.has-banner { padding-block: .55rem; }
  body:has(#mx-origin-ribbon-bar) .mkt-cta-bar { display: none; }
}

/* Locked (premium-gated) exam cards on the candidate exam list */
.exam-card--locked { border-color: rgba(var(--bs-primary-rgb), .35); opacity: .96; }
.exam-card--locked .card-body { position: relative; }
.exam-lock-badge {
  display: inline-block; margin-left: .5rem; vertical-align: middle;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  padding: .12rem .5rem; border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary);
}

/* "Premium active" chip (candidate dashboard) */
.mx-premium-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: var(--mx-fs-sm); font-weight: 700;
  color: var(--mx-teal-ink); background: rgba(var(--mx-teal-rgb), .16);
  border: 1px solid rgba(var(--mx-teal-rgb), .32); white-space: nowrap;
}

/* Payment-method picker on the pricing page */
.mkt-country { display: flex; flex-direction: column; gap: .3rem; margin: .25rem 0 .75rem; text-align: left; }
.mkt-country-label { font-weight: 650; font-size: var(--mx-fs-sm); color: var(--bs-heading-color); }
.mkt-country-hint { font-size: var(--mx-fs-sm); color: var(--bs-secondary-color); }
/* Teal focus + our own chevron. Bootstrap's default focus ring was signal blue - the only
   blue left in a checkout that is otherwise coral/teal - and the OS arrow clashed with the
   custom controls around it. */
.mkt-country .form-select {
  appearance: none; -webkit-appearance: none;
  border-radius: 10px; padding: .5rem 2.2rem .5rem .8rem;
  border: 1px solid var(--bs-border-color); background-color: var(--bs-body-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354677A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mkt-country .form-select:focus {
  outline: none; border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}
.mkt-methods { display: flex; flex-direction: column; gap: .5rem; margin: .25rem 0 1rem; text-align: left; }
/* radio | icon | text - the icon column gives four otherwise-identical rows something to
   scan by, and spans both rows so it sits against the name+description block as one unit. */
.mkt-method {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto;
  gap: 0 .6rem; align-items: center; padding: .65rem .8rem; cursor: pointer;
  border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  transition: border-color .14s ease, background .14s ease;
}
.mkt-method:hover { border-color: rgba(var(--bs-primary-rgb), .5); }
.mkt-method.is-selected { border-color: var(--mx-teal); background: rgba(var(--mx-teal-rgb), .07); }
.mkt-method input { grid-row: 1 / span 2; accent-color: var(--mx-teal); width: 1.05rem; height: 1.05rem; }
.mkt-method-ico {
  grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 8px; flex: 0 0 auto;
  background: var(--bs-secondary-bg); color: var(--bs-secondary-color);
  transition: background .14s ease, color .14s ease;
}
.mkt-method-ico svg { width: 16px; height: 16px; }
.mkt-method.is-selected .mkt-method-ico { background: rgba(var(--mx-teal-rgb), .16); color: var(--mx-teal-ink); }
.mkt-method-head { display: flex; align-items: center; gap: .5rem; }
.mkt-method-name { font-weight: 650; color: var(--bs-heading-color); }
.mkt-method-desc { font-size: var(--mx-fs-sm); color: var(--bs-secondary-color); }
/* Amber is the semantic here (a non-real payment rail); --bs-warning as ink on its own tint
   fails AA, so this takes the tinted-pill twin like every other amber badge. */
.mkt-method-sandbox {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 999px;
  background: rgba(var(--bs-warning-rgb), .18); color: var(--mx-amber-ink);
}

/* sections */
.mkt-section { padding: clamp(2.5rem, 7vh, 4.5rem) 0; }
/* A page's opening section in the home hero's pale wash (catalogue, pricing). */
.mkt-section--wash { background: var(--mx-nav-hero-wash); }
/* Every other public page opens on the same wash, fading to paper below its title, so a page without a hero of
   its own (blog, requirements, events, the tools) still starts like the rest of the site. :where() gives it no
   weight at all: a section with a background of its own (a photo hero, a band, the full wash) always wins. */
:where(.mkt-body > .mkt-section:first-child) {
  background: linear-gradient(180deg, transparent 0, transparent 220px, var(--mx-nav-paper) 440px), var(--mx-nav-hero-wash);
}
.mkt-section.crs-hero { padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.mkt-section.crs-hero .crs-head { margin-bottom: 0; }
.mkt-section.crs-body { padding-top: clamp(1.75rem, 4vh, 2.5rem); }
.mkt-section--muted { background: var(--bs-secondary-bg); }
.mkt-section-head { text-align: center; max-width: 640px; margin: 0 auto var(--mx-space-8); }
/* A title that reads left, over left-aligned content (forms, lists, a job): it sits on its container's left edge,
   where the content starts. The centred 640px block with text-align:left that these pages had set inline started
   the title 176px to the right of the form beneath it. Its lines stay readable at 46rem. */
.mkt-section-head--start { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.mkt-section-head--start > * { max-width: 46rem; }
.mkt-section-head h1, .mkt-section-head h2 {
  font-family: var(--mx-font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.01em; color: var(--bs-heading-color);
}
.mkt-section-head p { color: var(--bs-secondary-color); font-size: var(--mx-fs-lg); margin-top: .7rem; line-height: 1.6; }

/* feature grid */
.mkt-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--mx-space-4); }
.mkt-feature {
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--mx-elevation-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.mkt-feature:hover { transform: translateY(-3px); border-color: var(--bs-secondary-color); }
.mkt-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1;
  background: rgba(var(--bs-primary-rgb), .12); color: var(--mx-accent-ink);
}
.mkt-feature-icon svg { width: 19px; height: 19px; }
.mkt-feature-icon.is-coral { background: rgba(var(--bs-primary-rgb), .12); color: var(--mx-accent-ink); }
.mkt-feature-icon.is-mint { background: rgba(var(--mx-teal-rgb), .12); color: var(--mx-teal-ink); }
.mkt-feature-icon.is-gold { background: rgba(var(--bs-warning-rgb), .14); color: var(--bs-warning); }
.mkt-feature h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .45rem; color: var(--bs-heading-color); }
.mkt-feature p { color: var(--bs-secondary-color); font-size: .9rem; margin: 0; line-height: 1.6; }

/* steps */
.mkt-steps {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--mx-space-6);
}
.mkt-steps::before {
  content: ""; position: absolute; top: 22px; left: 16.5%; right: 16.5%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--bs-border-color) 0 8px, transparent 8px 16px);
}
.mkt-step { text-align: center; position: relative; }
/* Teal, not signal blue: a numbered step is INFORMATIONAL - it tells you what happens next,
   it isn't a control. Coral stays reserved for the one thing on the screen you can press. */
.mkt-step-n {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  /* --mx-on-teal, not #fff: the teal fill inverts to a BRIGHT mint on dark, and
     white on it measures 1.81:1. The token is white on light and dark ink on
     dark, so the numeral stays readable in both. */
  background: var(--mx-teal-ink); color: var(--mx-on-teal);
  font-family: var(--mx-font-mono); font-weight: 600; font-size: 1rem; margin-bottom: .9rem;
  box-shadow: 0 8px 20px -6px rgba(var(--mx-teal-rgb), .45);
}
.mkt-step h3 { font-size: 1.02rem; font-weight: 700; color: var(--bs-heading-color); margin: 0 0 .3rem; }
.mkt-step p { color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.6; margin: 0 auto; max-width: 260px; }
@media (max-width: 760px) { .mkt-steps::before { display: none; } }

/* content cards (courses, blog, etc.) */
.mkt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--mx-space-4); }
/* Destination hub: no live prep for this destination yet. */
.dh-soon { max-width: 44rem; margin: 2rem auto 0; padding: 1.3rem 1.4rem; border: 1px solid var(--bs-border-color); border-radius: 14px; background: var(--bs-card-bg); box-shadow: var(--mx-elevation-sm); }
.dh-soon h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.dh-soon p { color: var(--bs-secondary-color); line-height: 1.6; }
/* Destination hub: the non-route programmes, as one quiet line under the route exams. */
.dh-also { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; margin: 1.25rem auto 0; max-width: 60rem; font-size: .9rem; color: var(--bs-secondary-color); }
/* /practice-questions hub: exam cards + the rest of the free practice. */
.pq-h2 { font-size: 1.15rem; margin: 2rem 0 .9rem; color: var(--bs-heading-color); }
.mkt-card.pq-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit; }
.pq-card-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.pq-card-title { font-size: 1.05rem; margin: 0; color: var(--bs-heading-color); }
.pq-card-blurb { font-size: .88rem; color: var(--bs-secondary-color); margin: 0; line-height: 1.5; }
.pq-card-meta { font-size: .8rem; color: var(--bs-body-color); }
.pq-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.pq-more-item { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--bs-border-color);
  border-radius: 12px; background: var(--bs-card-bg); color: inherit; text-decoration: none; transition: border-color .15s ease; }
.pq-more-item:hover { border-color: var(--mx-action); }
.pq-more-item strong { color: var(--bs-heading-color); }
.pq-more-item span { font-size: .86rem; color: var(--bs-secondary-color); line-height: 1.5; }
.mkt-card {
  position: relative; display: block; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); padding: var(--mx-space-6); text-decoration: none; color: var(--bs-body-color);
  box-shadow: var(--mx-elevation-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mkt-card:hover { transform: translateY(-2px); box-shadow: var(--mx-elevation); border-color: rgba(var(--bs-primary-rgb), .4); }
.mkt-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--bs-heading-color); margin: 0 0 .4rem; }
.mkt-card p { color: var(--bs-secondary-color); font-size: .95rem; margin: 0 0 .6rem; line-height: 1.5; }
.mkt-card-meta { font-size: .85rem; color: var(--bs-tertiary-color); font-weight: 600; }
.mkt-badge {
  position: absolute; top: var(--mx-space-3); right: var(--mx-space-3);
  background: rgba(var(--mx-teal-rgb), .15); color: var(--mx-teal-ink); border: 1px solid rgba(var(--mx-teal-rgb), .3);
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 100px;
}

/* course card: a mode footer (icon + label) sitting above a hairline */
.mkt-course-card .mkt-card-meta {
  display: inline-flex; align-items: center; gap: .45rem; width: 100%;
  margin-top: .3rem; padding-top: .9rem; border-top: 1px solid var(--bs-border-color);
  color: var(--mx-accent-ink); font-weight: 600; font-size: .82rem;
}
.mkt-course-card .mkt-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* testimonials */
.mkt-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--mx-space-4); }
.mkt-testimonial {
  margin: 0; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  padding: var(--mx-space-6); box-shadow: var(--mx-elevation-sm);
}
.mkt-testimonial blockquote { margin: .5rem 0 1rem; font-family: var(--mx-font-quote); font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--bs-heading-color); }
.mkt-testimonial figcaption { font-size: .88rem; color: var(--bs-secondary-color); }
.mkt-testimonial figcaption strong { color: var(--bs-heading-color); }
.mkt-stars { color: var(--bs-warning); letter-spacing: .1em; font-size: .95rem; white-space: nowrap; }
.mkt-stars-off { color: var(--bs-border-color); }

/* ── social proof pack: trust bar / reviews / hall of fame / book-a-call / WhatsApp ── */

/* trust / stat bar (admin-editable marketing claims) */
.mkt-trustbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--bs-border-color);
  border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  overflow: hidden; margin-bottom: var(--mx-space-6);
}
.mkt-trust { background: var(--bs-card-bg); padding: 1.1rem 1rem; text-align: center; }
.mkt-trust-num { font-family: var(--mx-font-serif); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--mx-accent-ink); line-height: 1; letter-spacing: -.02em; }
.mkt-trust-lbl { font-size: .78rem; color: var(--bs-secondary-color); margin-top: .35rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* Google-style review cards */
.mkt-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--mx-space-4); }
.mkt-review {
  margin: 0; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); padding: 1.15rem 1.25rem; box-shadow: var(--mx-elevation-sm);
  display: flex; flex-direction: column;
}
.mkt-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.mkt-review-g { width: 22px; height: 22px; display: inline-flex; }
.mkt-review-g svg { width: 100%; height: 100%; }
.mkt-review blockquote { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; color: var(--bs-body-color); flex: 1; }
.mkt-review-by { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.mkt-review-by strong { color: var(--bs-heading-color); display: block; }
.mkt-review-role { color: var(--bs-tertiary-color); font-size: .78rem; }
.mkt-review-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mkt-review-initial { display: inline-grid; place-items: center; background: rgba(var(--bs-primary-rgb), .14); color: var(--mx-accent-ink); font-weight: 700; }

/* hall of fame - celebratory pass wall */
/* The passer wall lives with .pf / .pstory at the end of this file. */

/* book-a-call band */
.mkt-bookcall { background: var(--scr-bg); color: var(--scr-ink); border-block: 1px solid var(--scr-line-strong); }
.mkt-bookcall .eyebrow { color: var(--scr-mint); }
.mkt-bookcall h2 { font-family: var(--mx-font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: var(--scr-ink); margin: .4rem 0 .5rem; }
.mkt-bookcall p { color: var(--scr-ink-faint); font-size: var(--mx-fs-lg); margin: 0 auto 1.3rem; max-width: 34rem; }
.mkt-bookcall-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.mkt-btn-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .4rem; }

/* floating WhatsApp button */
.mx-wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1000;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 6px 20px -4px rgba(37, 211, 102, .6); text-decoration: none;
  transition: transform .15s ease;
}
.mx-wa-float:hover { transform: scale(1.06); color: #fff; }
.mx-wa-float svg { width: 60%; height: 60%; }
.mx-wa-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: mx-wa-pulse 2.2s infinite; }
@keyframes mx-wa-pulse { 70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .mx-wa-pulse { animation: none; } .mx-wa-float { transition: none; } }
/* .mx-focus-mode marks an assessment surface (the exam runner, practice) where ambient, sitewide
   furniture must not appear: a floating chat button or a marketing nudge over a timed exam is a
   distraction at best. The page marks its own root; anything ambient opts out here. Pure CSS, so it
   holds however the page was reached - server render, enhanced nav, or client-side routing.
   The origin ribbon opts out in JS (origin-ribbon.js) since it is injected, not server-rendered. */
body:has(.mx-focus-mode) .mx-wa-float,
body:has(.mx-focus-mode) .cg-ribbon,
body:has(.mx-focus-mode) .mx-cookie { display: none; }
/* Floating buttons on a phone (2026-10): smaller, clear of the home indicator (safe area), and out of
   the way whenever they would sit on top of something the visitor is working with -
   - while any field is focused (the keyboard is up and the bubble would land on the field),
   - on a page with form fields in its main content (register, login, welcome, apply, contact, job filters) - the
     right-hand edge of every full-width field would otherwise scroll under it,
   - while the /courses filter panel is open (its per-option counts sit on the right edge).
   The help widget (support.css) follows the same rules and drops into the WhatsApp slot. */
@media (max-width: 640px) {
  .mx-wa-float {
    width: 2.75rem; height: 2.75rem;
    right: calc(.75rem + env(safe-area-inset-right, 0px));
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(:is(input, select, textarea):focus) .mx-wa-float,
  body:has(main :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], input:not([type]), select, textarea)) .mx-wa-float,
  body:has([data-crs-railtoggle][aria-expanded="true"]) .mx-wa-float { display: none; }
}
/* A failed /files/media image swaps to its initials sibling (img-fallback.js); until then the sibling stays hidden. */
.pf-initial[hidden], .mkt-review-initial[hidden] { display: none !important; }

/* faq accordion */
/* FAQ - same sectioning language as /resources and the courses catalogue: a mono
   uppercase category on a hairline rule with a count, then rows separated by rules
   rather than a stack of identical floating boxes. */
.mkt-faq { display: flex; flex-direction: column; border-top: 1px solid var(--bs-border-color); }
.mkt-faq-cat {
  display: flex; align-items: baseline; gap: .9rem;
  margin: var(--mx-space-6) 0 0; padding-bottom: .55rem;
  border-bottom: 1.5px solid var(--bs-heading-color);
  font-family: var(--mx-font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bs-heading-color);
}
.mkt-faq-cat-count {
  margin-left: auto; font-size: .66rem; font-weight: 500;
  letter-spacing: .06em; color: var(--bs-secondary-color); white-space: nowrap;
}
.mkt-faq-item {
  background: transparent; border: 0; border-bottom: 1px solid var(--bs-border-color);
  border-radius: 0; padding: 0 .4rem;
  transition: background .14s ease;
}
.mkt-faq-item:hover { background: var(--bs-secondary-bg); }
.mkt-faq-item summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 600; color: var(--bs-heading-color);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary:focus-visible { outline: 2px solid var(--mx-action); outline-offset: -2px; border-radius: 6px; }
.mkt-faq-item summary::after {
  content: "+"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--bs-border-color); display: inline-grid; place-items: center;
  font-size: 1rem; font-weight: 400; line-height: 1; color: var(--bs-secondary-color);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
/* Blue on open: the signal colour marks "this is active" everywhere. */
.mkt-faq-item[open] summary::after {
  content: "\2212"; color: var(--mx-on-primary, #fff);
  background: var(--bs-primary); border-color: var(--bs-primary);
}
.mkt-faq-item[open] summary { color: var(--bs-link-color); }
.mkt-faq-item .mkt-prose { padding: 0 0 var(--mx-space-4); max-width: 62ch; }
.mkt-faq-contact { text-align: center; margin-top: var(--mx-space-6); color: var(--bs-secondary-color); }
.mkt-faq-contact a { color: var(--bs-link-color); font-weight: 600; }

/* closing CTA band - a calm dark "monitor" panel with ONE coral button, rather
   than a full-width coral fill. Coral survives as the single conversion accent. */
.mkt-cta-section { padding: clamp(2.5rem, 7vh, 4.5rem) 0; text-align: center; background: var(--scr-bg); color: var(--scr-ink); border-block: 1px solid var(--scr-line-strong); }
.mkt-cta-section h2 { font-family: var(--mx-font-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--scr-ink); }
.mkt-cta-section p { color: var(--scr-ink-faint); margin: .5rem 0 1.25rem; font-size: var(--mx-fs-lg); }
/* Coral, as the comment above always intended. This rule said var(--bs-primary) back when
   that token WAS coral; the token later became signal blue and the rule silently followed,
   so the "single coral conversion accent" had been rendering blue. */
.mkt-cta-section .btn-primary { background: var(--mx-action); color: var(--mx-action-on); border-color: var(--mx-action); }
.mkt-cta-section .btn-primary:hover { background: var(--mx-action-hover); color: var(--mx-action-on); border-color: var(--mx-action-hover); }

/* footer */
.mkt-footer { background: var(--bs-secondary-bg); border-top: 1px solid var(--bs-border-color); }
.mkt-footer-inner {
  max-width: var(--mx-shell); margin-inline: auto; padding: var(--mx-space-8) clamp(1rem, 4vw, 2rem) var(--mx-space-6);
  /* The brand column, then the five menu columns (Programmes, Courses, Prepare, Jobs, Learn) on one row. */
  display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(5, minmax(0, 1fr)); gap: var(--mx-space-6) var(--mx-space-5);
}
@media (max-width: 1080px) {
  .mkt-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mkt-footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 2rem; align-items: start; }
  .mkt-footer-brand .mkt-footer-talk { grid-column: 2; margin-top: .25rem; }
  .mkt-footer .mkt-footer-brand p { margin-top: 0; max-width: 62ch; }
}
.mkt-footer-brand { --mx-logo-w: 12rem; }
.mkt-footer-brand p { color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.6; margin-top: .75rem; max-width: 34ch; }
.mkt-footer-logo { display: inline-flex; }
.mkt-footer-talk { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: 1rem; font-size: .88rem; font-weight: 600; }
.mkt-footer-talk a { color: var(--bs-heading-color); text-decoration: none; }
.mkt-footer-talk a:hover { color: var(--bs-primary); text-decoration: underline; text-underline-offset: 3px; }
.mkt-footer .mkt-footer-wa { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px;
  background: #25D366; color: #06321A; }
.mkt-footer .mkt-footer-wa:hover { background: #1FBE5B; color: #06321A; text-decoration: none; }
.mkt-footer-wa svg { width: 16px; height: 16px; }
.mkt-footer-col h4 { font-family: var(--mx-font-sans); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-heading-color); margin-bottom: .8rem; }
.mkt-footer-col a { display: block; color: var(--bs-secondary-color); text-decoration: none; font-size: .9rem; line-height: 1.35; padding: .28rem 0; }
.mkt-footer-col a:hover { color: var(--bs-heading-color); text-decoration: underline; text-underline-offset: 3px; }
.mkt-footer-col a.mkt-footer-more { margin-top: .35rem; font-weight: 600; color: var(--mx-nav-action-ink, var(--bs-primary)); }
/* Copyright left, legal links right, on the content's own width; the evidence note sits under them. */
.mkt-footer-legal { border-top: 1px solid var(--bs-border-color); padding: var(--mx-space-4) clamp(1rem, 4vw, 2rem); font-size: .82rem; color: var(--bs-tertiary-color); }
.mkt-footer-legal-inner { max-width: calc(var(--mx-shell) - 2 * clamp(1rem, 4vw, 2rem)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; flex-wrap: wrap; }
.mkt-footer-legal > .mkt-footer-note { max-width: calc(var(--mx-shell) - 2 * clamp(1rem, 4vw, 2rem)); margin-inline: auto; }
.mkt-footer-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.mkt-footer-legal-links a { color: var(--bs-secondary-color); text-decoration: none; font-weight: 600; }
/* A page's own evidence line (the home page names where its pass-rate figure comes from). */
.mkt-footer-note { display: block; margin-top: .6rem; font-size: .78rem; }
.mkt-footer-legal-links a:hover { color: var(--bs-primary); }

/* long-form markdown */
.mkt-prose h1, .mkt-prose h2, .mkt-prose h3 { color: var(--bs-heading-color); font-weight: 700; margin: 1.2em 0 .5em; line-height: 1.25; }
.mkt-prose p { margin: 0 0 1em; line-height: 1.7; }
.mkt-prose ul, .mkt-prose ol { margin: 0 0 1em; padding-left: 1.4em; line-height: 1.7; }
.mkt-prose li { margin-bottom: .3em; }
/* Prose links match every other public link: the signal ink. */
.mkt-prose a { color: var(--bs-link-color); }
.mkt-prose strong { color: var(--bs-heading-color); }
/* Markdown tables (the OSCE programme's Onsite / Virtual / Comprehensive comparison, blog tables). They had no styling,
   and on a phone a wide one pushed the whole page sideways (483px on a 375px screen). Below 640px the table scrolls
   inside its own box instead. */
.mkt-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95em; }
.mkt-prose th, .mkt-prose td { padding: .5rem .65rem; border-bottom: 1px solid var(--bs-border-color); text-align: left; vertical-align: top; }
.mkt-prose th { color: var(--bs-heading-color); font-weight: 700; }
@media (max-width: 640px) {
  .mkt-prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* detail pages + lists */
.mkt-back { display: inline-block; margin-bottom: var(--mx-space-4); color: var(--bs-link-color); text-decoration: none; font-weight: 600; font-size: .9rem; }
.mkt-back:hover { text-decoration: underline; }
/* The standing-first paragraph under a marketing page title: larger than body, measured to ~52ch so it
   stays one readable block, and secondary so the h1 keeps the emphasis. Matches .pl-lede's proportions. */
.mkt-lede { margin: .8rem 0 0; max-width: 52ch; color: var(--bs-secondary-color); font-size: var(--mx-fs-lg); line-height: 1.65; }
.mkt-section-head .mkt-lede { margin-inline: auto; }
.mkt-detail-title { font-family: var(--mx-font-serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; letter-spacing: -.01em; color: var(--bs-heading-color); }
.mkt-event-date { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mx-teal-ink); margin-bottom: .35rem; }
.mkt-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.mkt-tag { display: inline-block; padding: .12rem .55rem; border-radius: 100px; font-size: .75rem; font-weight: 600; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }

/* ── Blog index: tag rail + even cards ────────────────────────────────────────
   The rail turns the tags already printed on every card into a real filter. Cards
   become flex columns so a 2-line title and a 3-line title still produce the same
   card height, with the tag row pinned to the bottom by margin-top:auto. */
.blg-rail { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.blg-chip {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .36rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--bs-border-color); background: var(--bs-card-bg);
  color: var(--bs-secondary-color);
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.blg-chip:hover { border-color: var(--bs-primary); color: var(--bs-link-color); }
.blg-chip.is-on { background: var(--mx-nav-ink); border-color: var(--mx-nav-ink); color: #fff; }
.blg-chip-n { font-family: var(--mx-font-mono); font-size: .68rem; opacity: .7; }
.blg-chip.is-on .blg-chip-n { opacity: .8; }
:root[data-bs-theme="dark"] .blg-chip.is-on { background: var(--bs-primary); border-color: var(--bs-primary); color: #06122A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .blg-chip.is-on { background: var(--bs-primary); border-color: var(--bs-primary); color: #06122A; }
}

/* The long tail is present in the DOM (so a ?tag= deep link to one still resolves) but
   folded until asked for - the rail was 6 rows tall before a single article. */
.blg-chip--more { display: none; }
.blg-rail.is-expanded .blg-chip--more { display: inline-flex; }
.blg-more {
  border: 0; background: none; padding: .36rem .4rem; cursor: pointer;
  color: var(--mx-teal-ink); font-weight: 600; font-size: .82rem; text-decoration: underline;
}
.blg-more:hover { color: var(--mx-action); }

.blg-count { font-size: .85rem; color: var(--bs-secondary-color); margin: 0 0 1rem; }
.blg-count b { color: var(--bs-heading-color); }
.blg-empty { color: var(--bs-secondary-color); font-size: .95rem; margin-top: 1rem; }
.blg-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--bs-link-color); font-weight: 600; font-size: inherit; text-decoration: underline;
}

/* Equal-height cards: the tag row sinks to the bottom, so rows line up regardless of how
   long each title runs. Wider minimum than the generic .mkt-cards grid - blog titles are
   long sentences, and at 260px they were breaking across four cramped lines. */
.blg-card { display: flex; flex-direction: column; }
.blg-card .mkt-tags { margin-top: auto; padding-top: .7rem; }
@media (min-width: 900px) {
  .mkt-cards:has(.blg-card) { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}


/* CMS media (uploaded images) */
.mkt-detail-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--mx-radius); margin: 0 0 1.5rem; display: block; }
.mkt-card-cover { width: 100%; height: 150px; object-fit: cover; border-radius: var(--mx-radius); margin-bottom: .75rem; display: block; }
.mkt-testimonial-photo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; border: 2px solid var(--bs-border-color); }

/* Reclaim width in the actions area before sacrificing the nav: below 1400px the
   install button drops to its icon, which buys back roughly the width of one nav item. */
@media (max-width: 1400px) {
  .mkt-header .mx-install-label { display: none; }
}

/* The SIGNED-IN bar (Dashboard pill + bell + avatar + Sign out) measures ~1384px of content
   against the shell's 1176px usable width - over by ~210px at EVERY width; the 1240px shell
   caps, so wide monitors only hide it by spilling into the margin, while on an ordinary
   1280/1366 laptop the avatar and Sign out sat OFF-SCREEN behind a horizontal scrollbar.
   Below 1600px (where the spill would become a scrollbar) the two labelled pills become the
   same 34px round icon buttons as search/theme - labels stay in the DOM for assistive tech
   and the title tooltips - and the gaps tighten. Full labels return from 1600px up. */
.mkt-signout-ico { display: none; width: 1rem; height: 1rem; flex: 0 0 auto; }
.mkt-dash { position: relative; }
@media (min-width: 1231px) and (max-width: 1599px) {
  .mkt-nav { gap: .75rem; }
  .mkt-brand { margin-right: var(--mx-space-3, .75rem); }
  .mkt-header-inner { gap: var(--mx-space-3, .75rem); }
  .mkt-header-actions, .mkt-auth { gap: var(--mx-space-2, .5rem); }
  .mkt-dash, .mkt-auth .mkt-signout {
    width: 34px; height: 34px; padding: 0; border-radius: 50%;
    display: grid; place-items: center;
  }
  .mkt-dash-ico { width: 1.05rem; height: 1.05rem; }
  .mkt-auth .mkt-signout-ico { display: block; }
  .mkt-dash > span,
  .mkt-auth .mkt-signout-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* From 1600px the labels come back - and so must the width they need. The labelled signed-in
   bar is ~1,450px of content (guide chip included) and the page shell's row is 1,176px; the
   "spill into the margin" above only looked like it worked because .mkt-header-actions may
   shrink (min-width: 0), so the guide chip was crushed under the search button and, at
   1640px, Sign out still ran past the edge. The header row gets its own wider cap here
   instead of borrowing the margin (the page below keeps the 1240px shell), and the nav keeps
   a clear gap before the actions so the two groups read apart. */
@media (min-width: 1600px) {
  .mkt-header-inner { max-width: 1560px; }
  .mkt-nav { margin-right: var(--mx-space-3, .75rem); }
}

/* Collapse the nav to the hamburger BEFORE it can crowd. At 1000px the bar still
   overflowed (brand + nav + install + theme + auth), pushing the auth actions off
   screen and giving the whole page a horizontal scrollbar. The hamburger carries
   the identical nav model, so nothing is lost by collapsing earlier. 1230 meets the
   icon-pill band above: even icon-only, the signed-in bar needs ~1150px of content. */
@media (max-width: 1230px) {
  .mkt-nav { display: none; }
  .mkt-auth { display: none; }        /* auth actions move into the hamburger */
  .mkt-menu { display: block; }       /* show the hamburger */
}

/* Smallest phones (360px): brand + search + theme + burger only just fit - the desktop gaps pushed
   the burger ~22px past the edge. Tighten them so the bar never scrolls sideways. */
@media (max-width: 400px) {
  .mkt-header-inner { gap: var(--mx-space-2, .5rem); }
  .mkt-brand { margin-right: 0; }
  .mkt-header-actions { gap: var(--mx-space-2, .5rem); }
}

@media (max-width: 760px) {
  .mkt-footer-inner { grid-template-columns: 1fr 1fr; }
  .mkt-footer-brand { display: block; }
  .mkt-footer .mkt-footer-brand p { margin-top: .75rem; }
}

/* ⌘K command palette */
.mx-cmdk-overlay {
  position: fixed; inset: 0; z-index: 1080; padding: 12vh 1rem 1rem;
  display: flex; justify-content: center; align-items: flex-start;
  background: rgba(8, 12, 20, .5); backdrop-filter: blur(2px);
}
.mx-cmdk-panel {
  width: 100%; max-width: 40rem; max-height: 70vh; display: flex; flex-direction: column;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: calc(var(--mx-radius) * 1.5); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.mx-cmdk-inputrow { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--bs-border-color); }
.mx-cmdk-glass { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; color: var(--bs-tertiary-color); }
.mx-cmdk-input {
  flex: 1 1 auto; border: 0; outline: 0; background: transparent;
  font-size: 1.05rem; color: var(--bs-body-color);
}
.mx-cmdk-input::placeholder { color: var(--bs-tertiary-color); }
.mx-cmdk-results { overflow-y: auto; padding: .35rem; }
.mx-cmdk-hint { padding: 1.1rem 1rem; color: var(--bs-tertiary-color); font-size: var(--mx-fs-sm); }
.mx-cmdk-group {
  padding: .5rem .75rem .25rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--bs-tertiary-color);
}
.mx-cmdk-item {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .5rem .75rem; border: 0; border-radius: var(--mx-radius);
  background: transparent; color: var(--bs-body-color); text-align: left; cursor: pointer;
}
.mx-cmdk-item.is-active { background: rgba(var(--bs-primary-rgb), .12); }
.mx-cmdk-item-label { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--mx-fs-sm); }
.mx-cmdk-item-sub { flex: 0 0 auto; font-size: .72rem; color: var(--bs-tertiary-color); font-variant-numeric: tabular-nums; }
.mx-cmdk-foot {
  display: flex; gap: 1rem; padding: .5rem .85rem; border-top: 1px solid var(--bs-border-color);
  font-size: .72rem; color: var(--bs-tertiary-color);
}
.mx-cmdk-foot kbd {
  font-size: .68rem; padding: .05rem .3rem; margin-right: .15rem; border-radius: 4px;
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); color: var(--bs-secondary-color);
}

/* ── Phone field (Components/Shared/PhoneInput) ──────────────────────────────
   Dial-code picker + number as one merged control, on every form that asks for a phone. The code
   column is fixed so "+44  United Kingdom" stays readable; on a phone the two stack. */
.mx-phone { display: flex; min-width: 0; }
.mx-phone > .mx-phone-dial {
  flex: 0 0 10rem; width: 10rem; min-width: 0;
  border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0;
  position: relative; z-index: 1;
}
.mx-phone > .mx-phone-num { flex: 1 1 auto; min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mx-phone > .mx-phone-dial:focus, .mx-phone > .mx-phone-num:focus { z-index: 2; }
.mx-phone.invalid > .mx-phone-num, .mx-phone.invalid > .mx-phone-dial { border-color: var(--bs-form-invalid-border-color, var(--bs-danger)); }
@media (max-width: 480px) {
  .mx-phone { flex-wrap: wrap; }
  .mx-phone > .mx-phone-dial {
    flex: 1 1 100%; width: 100%;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0; border-right: var(--bs-border-width) solid var(--bs-border-color); border-bottom: 0;
  }
  .mx-phone > .mx-phone-num { border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius); }
}

/* ── Admin kit (Components/Admin/Kit) ────────────────────────────────────────
   Toasts: save/error feedback in one fixed place (ToastHost), bottom-right, above the WhatsApp float. */
.mx-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 1060; display: flex; flex-direction: column; gap: .5rem; max-width: min(26rem, calc(100vw - 2rem)); pointer-events: none; }
.mx-toasts--errors { bottom: auto; top: 1rem; }
.mx-toast-link { margin-left: .4rem; font-weight: 700; white-space: nowrap; }
.mx-toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: .6rem;
  padding: .7rem .8rem; border-radius: var(--mx-radius); background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  font-size: var(--mx-fs-sm); color: var(--bs-body-color); animation: mx-toast-in .18s ease-out;
}
.mx-toast-ico { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; color: #fff; }
.mx-toast--success { border-left: 4px solid var(--bs-success); }
.mx-toast--success .mx-toast-ico { background: var(--bs-success); }
.mx-toast--info { border-left: 4px solid var(--bs-info); }
.mx-toast--info .mx-toast-ico { background: var(--bs-info); }
.mx-toast--error { border-left: 4px solid var(--bs-danger); }
.mx-toast--error .mx-toast-ico { background: var(--bs-danger); }
.mx-toast--warning { border-left: 4px solid var(--bs-warning); }
.mx-toast--warning .mx-toast-ico { background: var(--bs-warning); color: #212529; }
.mx-toast-msg { flex: 1 1 auto; line-height: 1.4; padding-top: .05rem; }
.mx-toast-x { flex: 0 0 auto; border: 0; background: transparent; color: var(--bs-secondary-color); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .15rem; }
.mx-toast-x:hover { color: var(--bs-body-color); }
.mx-toast-x:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
@keyframes mx-toast-in { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mx-toast { animation: none; } }

/* Dashboard KPIs are exactly six; on a wide screen let them share one row rather than
   stranding the sixth alone underneath. Scoped so the shared .admin-tiles grid is untouched. */
@media (min-width: 1200px) {
  .mx-kpi-tiles { grid-template-columns: repeat(6, 1fr); }
}

.mx-dash-note {
  margin: -.25rem 0 .8rem; color: var(--bs-secondary-color); font-size: var(--mx-fs-sm);
}
.mx-dash-qcell { max-width: 24rem; }
/* AdminEmptyState: what fills this page + the next step. Builds on .klp-empty above. */
.adm-empty { gap: .45rem; }
.adm-empty-compact { padding: 1.5rem 1rem; }
.adm-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.adm-empty-title { color: var(--bs-body-color); font-weight: 600; font-size: .95rem; }
.adm-empty-msg { max-width: 34rem; font-size: .875rem; line-height: 1.45; }
.adm-empty-hint { max-width: 34rem; margin-top: 0; }
.adm-empty-act { margin-top: .35rem; }
.adm-empty-row > td { padding: 0 !important; }

/* ── Careers (public listing + detail + apply) ── */
/* ── Careers list ─────────────────────────────────────────────────────────────
   Employment type is colour-coded (the same "colour carries category" system as the
   course and resource types), while team and location stay neutral grey - they are
   context, not a category someone filters by, so they must not compete for attention.
   Types are their own tokens (not the semantic set) and appear only as tinted pills. */
:root {
  --cr-ft: #A62E1D;  --cr-ft-bg: rgba(208, 64, 45, .11);   /* Full-time  - coral  */
  --cr-pt: #0A6853;  --cr-pt-bg: rgba(15, 156, 124, .13);  /* Part-time  - teal   */
  --cr-ct: #5B4BB8;  --cr-ct-bg: rgba(91, 75, 184, .12);   /* Contract   - violet */
  --cr-bank: #8A5A12; --cr-bank-bg: rgba(201, 150, 60, .18); /* Bank      - amber  */
  --cr-app: #2A5C8F; --cr-app-bg: rgba(60, 120, 180, .14);  /* Apprentice - blue   */
}
:root[data-bs-theme="dark"] {
  --cr-ft: #FF9B87;  --cr-ft-bg: rgba(255, 155, 135, .16);
  --cr-pt: #4FD6B0;  --cr-pt-bg: rgba(79, 214, 176, .16);
  --cr-ct: #B0A3F5;  --cr-ct-bg: rgba(176, 163, 245, .16);
  --cr-bank: #E8B24A; --cr-bank-bg: rgba(232, 178, 74, .18);
  --cr-app: #8FBEEA; --cr-app-bg: rgba(143, 190, 234, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    --cr-ft: #FF9B87;  --cr-ft-bg: rgba(255, 155, 135, .16);
    --cr-pt: #4FD6B0;  --cr-pt-bg: rgba(79, 214, 176, .16);
    --cr-ct: #B0A3F5;  --cr-ct-bg: rgba(176, 163, 245, .16);
    --cr-bank: #E8B24A; --cr-bank-bg: rgba(232, 178, 74, .18);
    --cr-app: #8FBEEA; --cr-app-bg: rgba(143, 190, 234, .16);
  }
}

.careers-list { display: grid; gap: 1rem; }
.careers-card {
  position: relative;
  display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: inherit;
  border: 1px solid var(--bs-border-color); border-radius: 14px; padding: 1.25rem 1.4rem;
  background: var(--bs-card-bg); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.careers-card:hover { border-color: var(--bs-primary); box-shadow: 0 6px 22px rgba(var(--bs-primary-rgb), .12); transform: translateY(-1px); }

/* Emphasis is earned by a flag, not by position. Closing soon = coral (urgency, act now);
   New = teal (fresh, the app's "good" colour). A role with neither is a plain card. */
.careers-card--closing { border-color: var(--mx-action); box-shadow: 0 6px 22px rgba(208, 64, 45, .10); }
.careers-card--closing:hover { border-color: var(--mx-action); box-shadow: 0 8px 26px rgba(208, 64, 45, .18); }
.careers-card--new { border-color: var(--mx-teal-ink); box-shadow: 0 6px 22px rgba(var(--mx-teal-rgb), .12); }
.careers-card--new:hover { border-color: var(--bs-primary); box-shadow: 0 8px 26px rgba(var(--bs-primary-rgb), .2); }

.careers-flag {
  align-self: flex-start;
  font-family: var(--mx-font-mono); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; color: #fff;
}
.careers-flag--closing { background: var(--mx-action); }
.careers-flag--new { background: var(--mx-teal-ink); }

/* Archivo, the display face: the quote serif is for pull-quotes only (medax-fonts.css). */
.careers-card-main h2 { font-family: var(--mx-font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; margin: 0 0 .35rem; color: var(--bs-heading-color); }
.careers-card-sum { margin: 0; color: var(--bs-secondary-color); font-size: .92rem; line-height: 1.5; }
.careers-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.careers-detail-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: .3rem 0 1rem; }
.careers-tag {
  display: inline-flex; align-items: center; gap: .32rem; padding: .26rem .62rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: rgba(var(--bs-secondary-rgb), .12); color: var(--bs-body-color);
}
.careers-tag--meta { color: var(--bs-secondary-color); }
.careers-tag--meta svg { width: 12px; height: 12px; flex: 0 0 auto; opacity: .85; }

/* Type colour is slug-driven, so the same employment type reads identically on the list
   and the detail page. Default (any unmapped type) falls back to the app primary. */
.careers-tag.is-type { background: var(--ct-bg, rgba(var(--bs-primary-rgb), .12)); color: var(--ct, var(--bs-primary)); }
.careers-tag--fulltime { --ct: var(--cr-ft); --ct-bg: var(--cr-ft-bg); }
.careers-tag--parttime { --ct: var(--cr-pt); --ct-bg: var(--cr-pt-bg); }
.careers-tag--contract { --ct: var(--cr-ct); --ct-bg: var(--cr-ct-bg); }
.careers-tag--bank { --ct: var(--cr-bank); --ct-bg: var(--cr-bank-bg); }
.careers-tag--apprenticeship { --ct: var(--cr-app); --ct-bg: var(--cr-app-bg); }
.careers-tag.is-salary { background: rgba(var(--mx-teal-rgb), .14); color: var(--mx-teal-ink); }

.careers-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--bs-border-color); padding-top: .8rem; }
.careers-salary { font-weight: 600; color: var(--bs-heading-color); font-size: .9rem; }
.careers-view { color: var(--mx-teal-ink); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.careers-view-arrow { display: inline-block; transition: transform .15s ease; }
.careers-card:hover .careers-view-arrow { transform: translateX(3px); }
.careers-empty { text-align: center; padding: 2.5rem 1rem; color: var(--bs-secondary-color); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.careers-closing { color: var(--bs-secondary-color); font-size: .9rem; margin: 0 0 1.2rem; }

/* ── Role detail + apply (/careers/{slug}) ────────────────────────────────────
   The teal language from the rest of the site, applied to a long-form page: a teal
   back link, a pay callout that reads as a sentence not a tag, teal heading markers
   and list dots so the body isn't unstyled markdown, and a form that matches the
   design system instead of the browser's defaults. Scoped to .careers-detail so the
   prose treatment never leaks into the blog or other .mkt-prose pages. */
.careers-back { display: inline-block; margin-bottom: var(--mx-space-4); color: var(--bs-link-color); text-decoration: none; font-weight: 600; font-size: .9rem; }
.careers-back:hover { text-decoration: underline; }

/* Pay: a teal callout on its own line. Money is the first thing a candidate looks for. */
.careers-pay {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .1rem 0 1.2rem; padding: .5rem .9rem;
  border-radius: 10px; border: 1px solid rgba(var(--mx-teal-rgb), .3);
  background: rgba(var(--mx-teal-rgb), .08);
  color: var(--mx-teal-ink); font-weight: 600; font-size: .92rem;
}
.careers-pay svg { width: 16px; height: 16px; flex: 0 0 auto; }

.careers-rule { border: 0; border-top: 1px solid var(--bs-border-color); margin: 2.2rem 0; }

/* Body prose: a teal marker on each section heading, and teal dots for list items,
   so long-form content joins the same visual language as the cards above it. */
/* Prefixed with .careers-detail so these beat the base .mkt-prose rules on specificity
   (0,2,1 vs 0,1,1) rather than relying on source order - an equal-specificity tie there
   has silently broken before. */
.careers-detail .careers-body :is(h2, h3) {
  position: relative; padding-left: 1.4rem;
  font-family: var(--mx-font-display); font-weight: 600; letter-spacing: -.01em;
}
.careers-detail .careers-body :is(h2, h3)::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: .72rem; height: .72rem; border-radius: 3px;
  background: var(--mx-teal-ink);
}
.careers-detail .careers-body ul { list-style: none; padding-left: 1.4rem; }
.careers-detail .careers-body ul > li { position: relative; }
.careers-detail .careers-body ul > li::before {
  content: ""; position: absolute; left: -1.15rem; top: .62em;
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--mx-teal-ink);
}

/* ── Apply form ── */
.careers-apply { margin-top: 1rem; }
.careers-apply .card,
.careers-apply.card { border: 1px solid var(--bs-border-color); border-radius: 16px; background: var(--bs-card-bg); }
.careers-apply-sub { color: var(--bs-secondary-color); font-size: .92rem; margin-bottom: 1rem; }
.careers-apply-hint { color: var(--bs-secondary-color); font-size: .8rem; margin: .8rem 0 0; }
.careers-apply-legal { color: var(--bs-secondary-color); font-size: .72rem; margin: .5rem 0 0; }
.careers-apply-legal a { color: var(--bs-secondary-color); text-decoration: underline; }

/* Inputs: consistent radius/padding and a teal focus ring, matching the rest of the app. */
.careers-apply .form-control {
  border-radius: 10px; padding: .6rem .8rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.careers-apply .form-control:focus {
  outline: none; border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}

/* File control: native input hidden but still the focus/click target; label is the face. */
.careers-file { position: relative; }
.careers-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.careers-file-face {
  display: flex; align-items: center; gap: .55rem; cursor: pointer;
  padding: .55rem .8rem; border-radius: 10px;
  border: 1px dashed var(--bs-border-color); background: var(--bs-body-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.careers-file-face svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--mx-teal-ink); }
.careers-file-cta { font-weight: 600; color: var(--bs-link-color); white-space: nowrap; }
.careers-file-name { color: var(--bs-secondary-color); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.careers-file.has-file .careers-file-face { border-style: solid; border-color: rgba(var(--mx-teal-rgb), .45); }
.careers-file.has-file .careers-file-name { color: var(--bs-heading-color); font-weight: 500; }
.careers-file-input:focus-visible + .careers-file-face {
  border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}

/* Submit: the coral primary, same as every other page's main action. */
.careers-submit {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .92rem; padding: .68rem 1.5rem;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--mx-action); color: var(--mx-action-on);
  transition: background .15s ease;
}
.careers-submit:hover:not(:disabled) { background: var(--mx-action-hover); }
.careers-submit:disabled { opacity: .6; cursor: default; }

/* Honeypot - visually removed but still in the DOM for bots to trip on. */
.careers-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* bulk action bar (question list) */
.mx-bulkbar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .7rem 1.25rem; border-bottom: 1px solid var(--bs-border-color);
  background: rgba(var(--bs-primary-rgb), .06);
}
.mx-bulk-count { font-weight: 700; color: var(--bs-heading-color); }
.mx-bulk-sep { width: 1px; height: 1.4rem; background: var(--bs-border-color); margin: 0 .2rem; }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  mx-modal - app confirm dialog (ConfirmDialog.razor). Tokens only.     ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
.mx-modal-backdrop {
  position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); animation: mx-fade .12s ease;
}
.mx-modal {
  width: 100%; max-width: 26rem; text-align: center;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); padding: 1.75rem 1.6rem 1.5rem;
  animation: mx-pop .14s ease;
}
.mx-modal-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto .9rem;
  border-radius: 50%; color: var(--bs-danger); background: rgba(var(--bs-danger-rgb), .13);
}
.mx-modal-icon svg { width: 1.5rem; height: 1.5rem; }
.mx-modal-icon--neutral { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .12); }
.mx-modal-title { font-size: 1.15rem; font-weight: 700; color: var(--bs-heading-color); margin: 0 0 .45rem; }
.mx-modal-body { font-size: .92rem; color: var(--bs-secondary-color); margin: 0 0 1.35rem; line-height: 1.5; }
.mx-modal-actions { display: flex; justify-content: center; gap: .6rem; }
.mx-modal-actions .btn { min-width: 6.5rem; }

@keyframes mx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mx-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mx-modal-backdrop, .mx-modal { animation: none; }
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  dashboard v2 - sparklines, funnel, attention feed. Tokens only.       ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
.mx-section-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-tertiary-color); margin: 1.5rem 0 .6rem; }

.mx-spark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.mx-spark {
  --spark: var(--bs-primary);
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 14px;
  padding: 1rem 1.1rem; box-shadow: var(--mx-elevation-sm);
}
.mx-spark--primary { --spark: var(--bs-primary); }
.mx-spark--teal    { --spark: var(--mx-teal-ink); }
.mx-spark--success { --spark: var(--bs-success); }
.mx-spark-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.mx-spark-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }
.mx-spark-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.mx-spark-svg { width: 100%; height: 40px; display: block; overflow: visible; }
.mx-spark-fill { fill: var(--spark); opacity: .13; }
.mx-spark-line { fill: none; stroke: var(--spark); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.mx-spark-dot { fill: var(--spark); }
.mx-spark-foot { font-size: .74rem; color: var(--bs-tertiary-color); }

.mx-funnel { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.4rem 1.4rem; }
.mx-funnel-row { display: grid; grid-template-columns: 8.5rem 1fr auto; align-items: center; gap: .8rem; }
.mx-funnel-label { font-size: .86rem; font-weight: 600; color: var(--bs-body-color); }
.mx-funnel-track { height: 1.5rem; border-radius: .5rem; background: rgba(var(--bs-secondary-rgb), .1); overflow: hidden; }
.mx-funnel-bar { height: 100%; border-radius: .5rem; background: var(--bs-primary); min-width: 3px; }
/* The min-width keeps a small-but-real value visible; at zero it drew a nub, so a step nobody
   had reached looked like a step somebody had. Nothing is not a very small something. */
.mx-funnel-bar.is-zero { min-width: 0; }
.mx-funnel-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-heading-color); white-space: nowrap; }
.mx-funnel-val small { color: var(--bs-secondary-color); font-weight: 600; margin-left: .35rem; }

.mx-attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .6rem; padding: 1.2rem 1.4rem; }
.mx-alert-chip {
  display: flex; flex-direction: column; gap: .1rem; padding: .8rem .95rem; text-decoration: none;
  border: 1px solid var(--bs-border-color); border-radius: 12px; background: rgba(var(--bs-secondary-rgb), .03);
  transition: border-color .12s ease, background-color .12s ease, transform .12s ease;
}
.mx-alert-chip:hover { border-color: rgba(var(--bs-primary-rgb), .45); background: rgba(var(--bs-primary-rgb), .05); transform: translateY(-1px); }
.mx-alert-chip.is-hot { border-color: rgba(var(--bs-warning-rgb), .55); background: rgba(var(--bs-warning-rgb), .1); }
.mx-alert-chip.is-hot:hover { border-color: var(--bs-warning); }
.mx-alert-num { font-size: 1.5rem; font-weight: 800; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; line-height: 1.05; }
.mx-alert-chip.is-hot .mx-alert-num { color: var(--bs-warning); }
.mx-alert-lbl { font-size: .78rem; color: var(--bs-secondary-color); font-weight: 600; }

/* row action menu (staff) */
.mx-actions { position: relative; display: inline-block; }
.mx-rowmenu {
  /* Above .mx-toasts (1060): a toast must never cover a menu the user has just opened. */
  position: absolute; right: 0; top: calc(100% + .3rem); z-index: 1070; min-width: 12rem;
  display: flex; flex-direction: column; padding: .35rem;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.mx-rowmenu button, .mx-rowmenu a {
  display: block; text-decoration: none;
  text-align: left; padding: .5rem .7rem; border: 0; background: none; border-radius: 8px;
  color: var(--bs-body-color); font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.mx-rowmenu button:hover, .mx-rowmenu a:hover { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mx-rowmenu button.is-danger { color: var(--bs-danger); }
.mx-rowmenu button.is-danger:hover { background: rgba(var(--bs-danger-rgb), .1); color: var(--bs-danger); }
.mx-rowmenu button:disabled { opacity: .5; cursor: default; }
.mx-rowmenu.is-up { top: auto; bottom: calc(100% + .3rem); }
.mx-rowmenu-backdrop { position: fixed; inset: 0; z-index: 1065; background: transparent; }
/* A one-line explanation under a menu item, for actions whose difference isn't obvious from the name. */
.mx-rowmenu-hint { display: block; max-width: 17rem; margin-top: .1rem; font-size: .74rem; line-height: 1.3; color: var(--bs-secondary-color); white-space: normal; }
.mx-rowmenu-sep { height: 1px; margin: .3rem .2rem; background: var(--bs-border-color); }

/* UK date / date-time field (staff) - Kit/UkDateInput: dd/mm/yyyy text box + Monday-first popup calendar */
.mx-date { position: relative; display: block; }
.mx-date-field { position: relative; display: flex; align-items: stretch; }
.mx-date-field .mx-date-input { padding-right: 2.2rem; font-variant-numeric: tabular-nums; }
.mx-date-btn {
  position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.7rem;
  border: 0; border-radius: 6px; background: none; color: var(--bs-secondary-color); cursor: pointer;
}
.mx-date-btn:hover:not(:disabled) { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mx-date-btn:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.mx-date-btn:disabled { opacity: .45; cursor: default; }
.mx-date-error { margin-top: .25rem; font-size: .82rem; color: var(--bs-danger); }
.mx-date-pop {
  position: absolute; left: 0; top: calc(100% + .3rem); z-index: 20; width: 17rem; padding: .55rem;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); color: var(--bs-body-color);
}
.mx-date-pop.is-fixed { position: fixed; z-index: 1060; }
.mx-date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.mx-date-title { font-weight: 600; font-size: .9rem; }
.mx-date-nav, .mx-date-link {
  border: 0; background: none; border-radius: 8px; color: var(--bs-body-color); cursor: pointer;
}
.mx-date-nav { width: 2rem; height: 2rem; font-size: 1.15rem; line-height: 1; }
.mx-date-nav:hover, .mx-date-link:hover:not(:disabled) { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mx-date-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mx-date-grid th { padding: .2rem 0; text-align: center; font-size: .72rem; font-weight: 600; color: var(--bs-secondary-color); }
.mx-date-grid td { padding: 1px; text-align: center; }
.mx-date-day {
  width: 100%; height: 2rem; border: 0; border-radius: 8px; background: none;
  color: var(--bs-body-color); font-size: .85rem; font-variant-numeric: tabular-nums; cursor: pointer;
}
.mx-date-day:hover:not(:disabled) { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mx-date-day:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.mx-date-day.is-out { color: var(--bs-secondary-color); opacity: .6; }
.mx-date-day.is-today { box-shadow: inset 0 0 0 1px var(--bs-primary); }
.mx-date-day.is-selected, .mx-date-day.is-selected:hover { background: var(--bs-primary); color: var(--mx-on-primary, #fff); opacity: 1; }
.mx-date-day:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.mx-date-foot { display: flex; justify-content: space-between; margin-top: .35rem; }
.mx-date-link { padding: .3rem .6rem; font-size: .82rem; color: var(--bs-primary); }
.mx-date-link:disabled { opacity: .45; cursor: default; }

/* Mobile tap targets for the candidate top-nav links. Global (not scoped) so it applies
   wherever the nav renders - including WASM-hosted pages whose markup carries no scope
   attribute. WCAG 2.5.8 asks ≥24px; we give a comfortable ~40px. */
@media (max-width: 560px) {
  .mx-nav-link { min-height: 2.5rem; display: inline-flex; align-items: center; padding-block: .5rem; }
}

/* ── Courses catalogue (public, filterable) ─────────────────────────────── */
/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  crs - COURSES CATALOG. Coral is DEMOTED here (see theme-medax): the    ║
   ║  card CTA is a neutral ink-on-paper button, and colour instead ENCODES  ║
   ║  the specialism - a 3px card edge + a matching dot in the filter list.  ║
   ║  Coral survives only as the single "Most popular" status marker.        ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* page head */
.crs-head { text-align: center; max-width: 660px; margin: 0 auto var(--mx-space-8); }
.crs-head-eyebrow { display: block; font-family: var(--mx-font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-nav-signal-ink); margin-bottom: .9rem; }
.crs-head h1 { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; color: var(--bs-heading-color); }
.crs-head p { max-width: 46ch; margin: .9rem auto 0; color: var(--bs-secondary-color); font-size: 1.02rem; line-height: 1.55; }

.crs-layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 4rem; }

/* ── filter rail ── */
/* The rail scrolls INSIDE the viewport when it is taller than the screen. Sticky alone
   pinned its top and hid everything below the fold until the page ran out. */
.crs-rail { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--mx-nav-hairline-strong) transparent; padding-right: 2px; }
.crs-panel { background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-radius); overflow: hidden; }
.crs-panel-top { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.15rem .85rem; border-bottom: 1px solid var(--mx-nav-hairline); }
.crs-panel-title { font-family: var(--mx-font-display); font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--bs-heading-color); }
.crs-reset { border: 0; background: none; padding: 0; font-size: .82rem; color: var(--bs-tertiary-color); cursor: pointer; border-bottom: 1px solid transparent; }
.crs-reset:hover { color: var(--mx-nav-signal-ink); border-bottom-color: currentColor; }
.crs-fgroup { padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--mx-nav-hairline); }
.crs-fgroup:last-child { border-bottom: 0; }
.crs-flabel { display: block; font-family: var(--mx-font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); margin-bottom: .75rem; }

/* search */
.crs-search { position: relative; }
.crs-search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--bs-tertiary-color); pointer-events: none; }
.crs-search input { width: 100%; padding: .6rem .7rem .6rem 2.2rem; font: inherit; font-size: .88rem; color: var(--bs-body-color); background: var(--mx-nav-inset); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-radius); }
.crs-search input::placeholder { color: var(--bs-tertiary-color); }
.crs-search input:focus { outline: none; border-color: var(--mx-nav-signal); box-shadow: 0 0 0 3px var(--mx-nav-signal-tint); }

/* specialism checks - the track dot doubles as the colour legend */
.crs-checks { display: grid; gap: 2px; }
.crs-check { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; margin-inline: -.5rem; border-radius: 8px; font-size: .88rem; color: var(--bs-secondary-color); cursor: pointer; transition: background .16s, color .16s; }
.crs-check:hover { background: var(--mx-nav-inset); color: var(--bs-body-color); }
.crs-check input { appearance: none; -webkit-appearance: none; flex: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid var(--mx-nav-hairline-strong); border-radius: 4px; background: transparent; cursor: pointer; position: relative; }
.crs-check input:checked { background: var(--mx-nav-signal); border-color: var(--mx-nav-signal); }
.crs-check input:checked::after { content: ""; position: absolute; inset: 0; background: var(--mx-nav-on-signal); clip-path: polygon(20% 52%, 15% 60%, 40% 82%, 86% 28%, 79% 21%, 39% 67%); }
.crs-check:has(input:checked) { color: var(--bs-body-color); font-weight: 500; }
.crs-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--bs-tertiary-color)); }
.crs-check-name { flex: 1; }
.crs-check-count { font-size: .76rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }

/* toggle chips for short, scannable facets */
.crs-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.crs-chip { border: 1px solid var(--mx-nav-hairline-strong); background: transparent; border-radius: 999px; padding: .38rem .85rem; font-size: .82rem; font-weight: 500; color: var(--bs-body-color); cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
.crs-chip:hover { border-color: var(--bs-secondary-color); color: var(--bs-body-color); }
.crs-chip[aria-pressed="true"] { background: var(--mx-nav-signal); border-color: var(--mx-nav-signal); color: var(--mx-nav-on-signal); }

/* price */
.crs-price-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .85rem; }
.crs-price-out { font-family: var(--mx-font-display); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-heading-color); }
.crs-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.crs-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--mx-nav-signal) 0 var(--fill, 100%), var(--bs-border-color) var(--fill, 100%) 100%); }
.crs-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--bs-border-color); }
.crs-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--mx-nav-signal); }
.crs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--bs-card-bg); border: 2px solid var(--mx-nav-signal); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.crs-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bs-card-bg); border: 2px solid var(--mx-nav-signal); }
.crs-range-scale { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .72rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }

/* advisor panel - echoes the monitor from the landing page (always dark) */
.crs-advisor { position: relative; margin-top: .9rem; padding: 1.25rem 1.25rem 1.35rem; border-radius: var(--mx-nav-radius); background: var(--mx-nav-band); color: #9FB3E6; overflow: hidden; }
.crs-advisor-trace { position: absolute; inset: auto 0 0 0; width: 100%; height: 46px; opacity: .28; pointer-events: none; }
.crs-advisor h3 { position: relative; font-family: var(--mx-font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.25; color: #fff; letter-spacing: -.01em; margin: 0; }
.crs-advisor p { position: relative; margin: .45rem 0 1.1rem; font-size: .82rem; color: #DCE4F5; }
.mkt-shell .crs-advisor-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: var(--mx-nav-radius); background: var(--mx-nav-action); color: var(--mx-nav-on-action); font-size: .82rem; font-weight: 600; text-decoration: none; }
.mkt-shell .crs-advisor-cta:hover { background: var(--mx-nav-action-hover); color: var(--mx-nav-on-action); text-decoration: none; }

.crs-rail-toggle { display: none; }
@media (max-width: 900px) { .crs-rail { position: static; max-height: none; overflow: visible; } }

/* ── results toolbar ── */
.crs-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px solid var(--mx-nav-hairline); margin-bottom: 1.5rem; }
.crs-count { font-size: .88rem; color: var(--bs-secondary-color); margin: 0; }
.crs-count b { font-weight: 600; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.crs-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.crs-tag { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .5rem .3rem .7rem; border-radius: 999px; background: var(--mx-nav-signal-tint); border: 1px solid var(--mx-nav-hairline-strong); color: var(--mx-nav-signal-ink); font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .16s; }
.crs-tag:hover { background: rgba(var(--bs-primary-rgb), .2); }
.crs-tag span { opacity: .65; font-size: .9rem; line-height: 1; }
.crs-sort { position: relative; display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.crs-sort .crs-flabel { margin: 0; }
.crs-sort select { font: inherit; font-size: .84rem; font-weight: 500; color: var(--bs-body-color); background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline-strong); border-radius: var(--mx-nav-radius); padding: .5rem 2rem .5rem .75rem; cursor: pointer; appearance: none; -webkit-appearance: none; }
.crs-sort::after { content: ""; position: absolute; right: .8rem; top: 50%; width: 10px; height: 10px; transform: translateY(-50%); background: var(--bs-tertiary-color); pointer-events: none; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") center/contain no-repeat; }

/* ── catalogue: cover cards ────────────────────────────────────────────────
   Every course is a card with a JACKET: the marketing image when there is one,
   otherwise a generated cover in the specialism's colour with the course name set
   like a book title. Three alternating treatments (solid, tinted, ink) so a shelf
   of them reads as a set. Below the jacket: the facts a buyer scans for, proof
   (rating, next date), and a buy block with the price and the one orange action. */
.crs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (min-width: 1360px) { .crs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .crs-grid { grid-template-columns: 1fr; } }

.crs-item {
  display: flex; flex-direction: column;
  background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-card-radius);
  box-shadow: var(--mx-nav-card-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* MUST stay: the filter JS sets `card.hidden`, and `display:flex` would beat the
   browser's default [hidden] rule, leaving filtered-out cards on screen. */
.crs-item[hidden] { display: none; }
.crs-item:hover { transform: translateY(-3px); box-shadow: var(--mx-nav-shadow); border-color: var(--mx-nav-hairline-strong); }
.crs-item[data-track="adult"]      { --track: var(--crs-t-adult); }
.crs-item[data-track="mental"]     { --track: var(--crs-t-mental); }
.crs-item[data-track="midwifery"]  { --track: var(--crs-t-midwife); }
.crs-item[data-track="associate"]  { --track: var(--crs-t-associate); }
.crs-item[data-track="oet"]        { --track: var(--crs-t-oet); }
.crs-item[data-track="paediatric"] { --track: var(--crs-t-paeds); }
.crs-item[data-track="clinical"]   { --track: var(--crs-t-clinical); }
.crs-item[data-track="mandatory"]  { --track: var(--crs-t-mandatory); }
.crs-item[data-track="meds"]       { --track: var(--crs-t-meds); }
.crs-item[data-track="specialist"] { --track: var(--crs-t-specialist); }
.crs-item[data-track="nclex"]      { --track: var(--crs-t-nclex); }
.crs-item[data-track="apprentice"] { --track: var(--crs-t-apprentice); }

/* the jacket */
.crs-cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  aspect-ratio: 16 / 9; padding: 1.1rem 1.2rem 1rem; text-decoration: none; overflow: hidden;
  background: var(--track); color: #fff; isolation: isolate;
}
.crs-cover--img { padding: 0; display: block; background: var(--mx-nav-inset); }
.crs-cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a faint spine down the left, like a jacket's fold */
.crs-cover:not(.crs-cover--img)::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .22; }
/* a large ghost of the kicker - texture, not information */
.crs-cover:not(.crs-cover--img)::after {
  content: attr(data-ghost); position: absolute; right: -.1em; top: -.3em; z-index: -1;
  font-family: var(--mx-font-display); font-weight: 800; font-size: 5.4rem; letter-spacing: -.05em; line-height: 1;
  color: currentColor; opacity: .08; pointer-events: none;
}
.crs-cover-k { font-family: var(--mx-font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .82; margin-bottom: auto; }
.crs-cover-t { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; max-width: 12ch; }
.crs-cover-s { font-family: var(--mx-font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; opacity: .9; margin-top: .25rem; }
.crs-cover-f { font-family: var(--mx-font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .28); }
/* v0 solid: the specialism colour, white type (default above) */
/* v1 tinted: paper with the colour as type and a colour band */
.crs-cover--v1 { background: color-mix(in srgb, var(--track) 12%, var(--bs-card-bg)); color: var(--track); }
.crs-cover--v1 .crs-cover-f { border-top-color: color-mix(in srgb, var(--track) 35%, transparent); }
.crs-cover--v1::before { opacity: .35; }
/* v2 ink: deep navy with the colour as the title */
.crs-cover--v2 { background: var(--mx-nav-ink); color: #EEF3FA; }
.crs-cover--v2 .crs-cover-t { color: color-mix(in srgb, var(--track) 55%, #fff); }
.crs-cover--v2::after { color: var(--track); opacity: .22; }
.crs-cover .crs-flag {
  position: absolute; top: .8rem; right: .8rem; margin: 0; z-index: 2;
  padding: .3rem .6rem; border-radius: 999px; font-size: .68rem;
  background: var(--mx-nav-action); color: var(--mx-nav-on-action);
}
.crs-cover .crs-flag::before { display: none; }
.crs-cover .crs-flag--value { background: var(--bs-card-bg); color: var(--bs-heading-color); }

/* the facts */
.crs-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.05rem 1.2rem .9rem; flex: 1; }
.crs-track { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-secondary-color); }
/* --dot is what the filter list sets inline; --track is the card's. Either paints the dot. */
.crs-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--dot, var(--track, var(--bs-tertiary-color))); }
.crs-title { margin: 0; font-family: var(--mx-font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.015em; }
/* Ink, not link-blue: the title is a heading that happens to be clickable; the whole card says so. */
.mkt-shell .crs-item .crs-title a { color: var(--bs-heading-color); text-decoration: none; }
.mkt-shell .crs-item:hover .crs-title a { color: var(--mx-nav-signal-ink); }
.crs-meta { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--bs-secondary-color); }
.crs-highs { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; }
.crs-highs li { position: relative; padding-left: 1.2rem; font-size: .84rem; line-height: 1.4; color: var(--bs-body-color); }
.crs-highs li::before { content: "✓"; position: absolute; left: 0; top: .05rem; font-size: .7rem; font-weight: 700; color: var(--mx-nav-verified); }
.crs-proof { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: auto; padding-top: .7rem; font-size: .82rem; color: var(--bs-secondary-color); }
.crs-rating { display: inline-flex; align-items: center; gap: .3rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.crs-rating svg { color: var(--mx-nav-action); }
.crs-rating b { font-weight: 700; color: var(--bs-heading-color); }
.crs-rating-n { color: var(--bs-secondary-color); }
.crs-next { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--mx-nav-verified); }
.crs-next i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: mh-breathe 2.6s ease-in-out infinite; }
@keyframes mh-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.72); } }

/* the buy block */
.crs-buy {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem;
  padding: .9rem 1.2rem 1.05rem; border-top: 1px solid var(--mx-nav-hairline); background: var(--mx-nav-inset);
}
.crs-buy-price { display: flex; flex-direction: column; line-height: 1.15; }
.crs-price { font-family: var(--mx-font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.crs-price--text { font-size: 1rem; font-weight: 700; }
.crs-was { font-size: .8rem; color: var(--bs-secondary-color); text-decoration: line-through; }
.crs-pricenote { font-size: .74rem; color: var(--bs-secondary-color); margin-top: .15rem; }
.crs-pricenote--sale { color: var(--mx-nav-verified); font-weight: 600; }
.crs-owned { font-size: .8rem; font-weight: 600; color: var(--mx-nav-verified); }
.crs-buy .crs-cta { width: auto; padding: .6rem 1.05rem; border-radius: var(--mx-nav-radius); font-size: .86rem; white-space: nowrap; }
.crs-buy-note { grid-column: 1 / -1; font-size: .72rem; color: var(--bs-secondary-color); }
.mx-price-indicative { font-size: .72rem; color: var(--bs-secondary-color); line-height: 1.35; margin-top: .15rem; }

.crs-enrolled { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--mx-teal-ink); margin-bottom: .9rem; }

/* the demoted CTA - neutral ink-on-paper (paper-on-ink in dark) */
/* The catalogue CTA joins the one primary colour. NOTE: --crs-cta-bg is left alone -
   it also drives the checkboxes, chips and price slider, which are selection state
   rather than actions and would flood the page with coral if repointed. */
.crs-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; border: 1px solid transparent; border-radius: 9px; padding: .7rem 1rem; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--mx-action); color: var(--mx-action-on); transition: background .18s; }
.crs-cta:hover { background: var(--mx-action-hover); color: var(--mx-action-on); }
.crs-cta:disabled { opacity: .6; cursor: default; }
.crs-cta--ghost { background: transparent; border-color: var(--bs-border-color); color: var(--bs-body-color); }
.crs-cta--ghost:hover { background: var(--crs-sunk); border-color: var(--bs-secondary-color); color: var(--bs-body-color); }
.crs-cta--auto { display: inline-flex; width: auto; }
/* one coral accent dot on the primary purchase action - coral, demoted to a spice */
/* Kept for any remaining caller, but recoloured: a signal-blue dot on a coral button read
   as a stray bullet. Checkout now uses --lock instead, which says something useful. */
.crs-cta--dot::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.crs-cta--lock svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .9; }

/* The enrol price. These two classes were referenced by CourseEnrol.razor but never defined
   anywhere, so the price and the Klarna line both rendered at plain body size and competed.
   The amount is the fact being decided on, so it gets the display serif and the size. */
.crs-price-main {
  font-family: var(--mx-font-display); font-size: 1.55rem; font-weight: 600;
  line-height: 1.1; letter-spacing: -.02em; color: var(--bs-heading-color);
  font-variant-numeric: tabular-nums;
}
.crs-price-main s { font-weight: 400; margin-right: .35rem; }
.crs-price-klarna { font-size: .8rem; color: var(--bs-secondary-color); margin-top: .15rem; }
/* A discount is good news - teal, and never the same red as an error. */
.crs-price-klarna.text-success { color: var(--mx-teal-ink); font-weight: 600; }

/* quiet Premium cross-sell - a tinted bar with a coral link, not a full coral fill */
.crs-crosssell {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding: .9rem 1.15rem; border-radius: 12px; text-decoration: none;
  background: var(--crs-sunk); border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color); font-size: .92rem; transition: border-color .16s;
}
.crs-crosssell:hover { border-color: var(--bs-secondary-color); color: var(--bs-body-color); }
.crs-crosssell-text { font-weight: 500; }
.crs-crosssell-btn { color: var(--mx-accent-ink); font-weight: 600; white-space: nowrap; }

/* ── Course detail: give the page real presence (was flat/pale) ────────────────
   The enrol "buy box" is the conversion point, so it earns a white surface with real
   elevation and a brand-tinted edge instead of reading as one more faint panel on the
   marketing ground. The enquiry card gets a lighter lift of the same family. */
/* Bootstrap's .card locally rebinds --bs-card-bg to --bs-body-bg, which this theme paints as
   the page ground - so a plain .card reads ground-on-ground. Pin it to the app's
   paper surface (theme-aware: white in light, navy in dark) so the buy box actually stands off
   the page, matching the dashboard's .mex-shell .card.mfm fix. */
.crs-enrolbox.card {
  --bs-card-bg: var(--mx-paper-bg);
  background: var(--bs-card-bg);
  border: 1px solid rgba(var(--bs-primary-rgb), .18);
  border-radius: 16px;
  box-shadow: var(--mx-elevation);
}
.crs-enrolbox.card > .card-body { padding: 1.6rem 1.75rem; }
.crs-enrolbox .crs-price-main { font-size: 1.9rem; }

.crs-panel.card {
  --bs-card-bg: var(--mx-paper-bg);
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  box-shadow: var(--mx-elevation-sm);
}

/* Course highlights read as checked inclusions, not a plain disc list. */
.crs-highlights { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.crs-highlights li {
  position: relative; padding-left: 1.85rem; color: var(--bs-body-color);
  font-size: 1rem; line-height: 1.5;
}
.crs-highlights li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 1.25rem; height: 1.25rem;
  border-radius: 999px; background: rgba(var(--mx-teal-rgb), .15);
}
.crs-highlights li::after {
  content: ""; position: absolute; left: .38rem; top: .42rem; width: .45rem; height: .24rem;
  border-left: 2px solid var(--mx-teal-ink); border-bottom: 2px solid var(--mx-teal-ink);
  transform: rotate(-45deg);
}

/* The lead paragraph carries the pitch - a touch larger and less washed-out. */
.crs-lede { font-size: 1.12rem; line-height: 1.6; color: var(--bs-body-color); }

/* ── Two-column course detail: sticky enrol rail ───────────────────────────────
   The pitch + syllabus read down the left; the buy box rides a sticky right rail so
   the price and CTA stay in view while the candidate reads. Grid AREAS (not just
   columns) let the same DOM collapse to intro → buy box → syllabus on mobile, so the
   price sits near the top instead of being buried under the whole syllabus. The aside
   spans both rows, so its (stretched) box stays tall enough for the sticky child to
   travel the full column - a start-aligned aside would only be as tall as the card and
   the stickiness would do nothing. */
.crs-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  grid-template-areas:
    "intro aside"
    "rest  aside";
  column-gap: 2.75rem;
  max-width: 1120px;
  margin-inline: auto;
}
.crs-detail-intro { grid-area: intro; min-width: 0; }
.crs-detail-rest  { grid-area: rest;  min-width: 0; }
.crs-detail-aside { grid-area: aside; }
.crs-detail-aside .crs-enrolbox.card {
  position: sticky; top: 5.5rem; margin-top: 0 !important;
}
@media (max-width: 900px) {
  .crs-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "aside" "rest";
    column-gap: 0;
  }
  .crs-detail-aside .crs-enrolbox.card { position: static; margin-top: 1.25rem !important; }
}

/* empty state */
.crs-empty { display: none; padding: 4.5rem 1.5rem; text-align: center; border: 1px dashed var(--bs-border-color); border-radius: 14px; }
.crs-empty h2 { font-family: var(--mx-font-serif); font-size: 1.5rem; font-weight: 500; color: var(--bs-heading-color); }
.crs-empty p { max-width: 40ch; margin: .5rem auto 1.25rem; color: var(--bs-secondary-color); font-size: .9rem; }
.crs-results.is-empty .crs-grid { display: none; }
.crs-results.is-empty .crs-empty { display: block; }

@media (max-width: 1140px) { .crs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .crs-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .crs-rail { position: static; }
  .crs-rail-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .8rem 1rem; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--bs-body-color); cursor: pointer; }
  .crs-rail-toggle svg { transition: transform .24s ease; }
  .crs-rail-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .crs-panel[hidden] { display: none; }
  .crs-panel { margin-top: .6rem; }
  .crs-advisor { margin-top: .6rem; }
  .crs-sort { margin-left: 0; width: 100%; }
  .crs-sort select { flex: 1; }
}
@media (max-width: 560px) { .crs-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Sectioned admin editor (bespoke forms like the course page) ────────── */
.mfm-form { display: flex; flex-direction: column; gap: 1.1rem; }
.mfm-card {
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 14px;
  padding: 1.3rem 1.5rem; box-shadow: var(--mx-elevation-sm);
}
.mfm-card-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.1rem; }
.mfm-card-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .55rem;
  color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .12);
}
.mfm-card-ico svg { width: 1.05rem; height: 1.05rem; }
.mfm-card-title { font-size: 1.02rem; font-weight: 700; margin: 0; color: var(--bs-heading-color); }
.mfm-card-sub { font-size: var(--mx-fs-sm); color: var(--bs-tertiary-color); margin: .1rem 0 0; }
.mfm-req { color: var(--bs-danger); font-weight: 700; }
.mfm-hint { margin-top: .3rem; font-size: .78rem; color: var(--bs-tertiary-color); }

/* £ (or other) prefix rendered inside the input */
.mfm-prefixed { position: relative; }
.mfm-prefixed .mfm-prefix {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--bs-secondary-color); font-weight: 600; pointer-events: none;
}
/* Doubled class for weight: the admin field dialect (.admin-main .form-control, same specificity, loaded later) reset the
   padding to 12px, so the £ sat on top of the first digit - "£139.99" read as "£39.99" in the course price box. */
.mfm-prefixed .form-control.form-control { padding-left: 1.7rem; }

/* Sticky submit bar so you never scroll back up on a long form */
.mfm-stickyfoot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;   /* wraps at phone width instead of pushing the page sideways */
  margin-top: 1.1rem; padding: .9rem 0;
  background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color);
}
/* Buttons across admin + the editor sticky foot: one consistent, token-driven set. */
.admin-main .btn, .mfm-stickyfoot .btn { border-radius: 9px; font-weight: 600; }
.mfm-stickyfoot .btn-primary { padding: .6rem 1.5rem; font-weight: 700; }
.admin-main .btn-outline-secondary, .mfm-stickyfoot .btn-outline-secondary,
.admin-main .btn-outline-primary { border-color: var(--bs-border-color); color: var(--bs-heading-color); }
.admin-main .btn-outline-secondary:hover, .mfm-stickyfoot .btn-outline-secondary:hover {
  border-color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); color: var(--bs-heading-color);
}

/* ── Destination scope toggle (DestinationPicker) ─────────────────────────
   Was a raw Bootstrap btn-check whose CHECKED state filled with the light
   --bs-secondary and white text, so the selected label went invisible (the
   "destination country selection" text the user couldn't read). Now it's a real
   segmented control: a grey track, and the active segment a white pill with
   heading-ink text and a soft lift. */
.dest-picker .btn-group {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 11px;
}
.dest-picker .btn-check + .btn.btn-outline-secondary {
  border: 0; border-radius: 8px; background: transparent; box-shadow: none;
  color: var(--bs-secondary-color); font-weight: 600; font-size: .84rem; padding: .4rem .95rem;
}
.dest-picker .btn-check + .btn.btn-outline-secondary:hover { color: var(--bs-heading-color); background: transparent; }
.dest-picker .btn-check:checked + .btn.btn-outline-secondary {
  background: var(--bs-card-bg); color: var(--bs-heading-color);
  box-shadow: 0 1px 2px rgba(15, 23, 32, .14);
}
.dest-picker .btn-check:focus-visible + .btn.btn-outline-secondary { outline: 2px solid var(--bs-primary); outline-offset: 1px; }
.dest-picker-list {
  display: flex; flex-wrap: wrap; gap: .35rem .95rem;
  padding: .7rem .85rem; margin-top: .55rem;
  background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 9px;
}
.dest-picker-list .form-check { margin: 0; }

/* Course cover images */
.crs-card-cover {
  width: calc(100% + 2 * var(--mx-space-4)); margin: calc(-1 * var(--mx-space-4)) calc(-1 * var(--mx-space-4)) .35rem;
  height: 130px; object-fit: cover; border-radius: 11px 11px 0 0; display: block;
}

/* ── Course completion certificate ──────────────────────────────────────── */
.mx-cert {
  border: 3px solid var(--bs-primary); border-radius: 16px; padding: 3rem 2.5rem; text-align: center;
  background: var(--bs-card-bg);
}
.mx-cert-brand { --mx-logo-w: 14rem; }
.mx-cert-kicker { margin-top: 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bs-secondary-color); }
.mx-cert-name { margin: 1rem 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--bs-heading-color); }
.mx-cert-line { color: var(--bs-secondary-color); margin: .3rem 0; }
.mx-cert-course { margin: .5rem 0 1rem; font-size: 1.4rem; font-weight: 700; color: var(--bs-primary); }
.mx-cert-foot { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--bs-border-color); }
.mx-cert-sig { font-weight: 700; color: var(--bs-heading-color); }
.mx-cert-note { font-size: .72rem; color: var(--bs-tertiary-color); margin-top: .3rem; }
/* The certificate is a shareable, printable document, so it deliberately does NOT use .mex-shell:
   that class is the signed-in exam app, which the print guard below blanks to stop exam-content
   scraping. This shell gives the same centred column without inheriting that block. */
.mx-cert-shell { max-width: 60rem; margin: 0 auto; padding: var(--mx-space-4); }
@media print {
  /* A certificate is a landscape document - centre it and let it fill the page. */
  @page { size: landscape; margin: 12mm; }
  body * { visibility: hidden; }
  .mx-cert, .mx-cert * { visibility: visible; }
  .mx-cert {
    position: absolute; inset: 0; margin: 0; border-width: 4px; border-color: #1157b0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 2.5rem 4rem;
  }
  /* Scale the type up to fill a landscape page proportionally. */
  .mx-cert-brand  { --mx-logo-w: 18rem; }
  .mx-cert-kicker { margin-top: 0; font-size: 1rem; }
  .mx-cert-name   { font-size: 3.6rem; margin: 1.4rem 0; }
  .mx-cert-course { font-size: 2.1rem; margin: .6rem 0 1.2rem; }
  .mx-cert-line   { font-size: 1.15rem; }
  .mx-cert-num    { margin-top: .2rem; }
  .mx-cert-foot   { margin-top: 2.4rem; width: 100%; }
  .mx-cert-note   { font-size: .85rem; }
  .d-print-none { display: none !important; }
  /* The exam-content guard adds a global "Printing is disabled" body::after; suppress it on the
     certificate page (the one page in the app that IS meant to print). */
  body:has(.mx-cert)::after { content: none !important; }
}

/* CV builder: print only the document, clean single column, no chrome.
   Positioned with left/top/width rather than inset:0 - pinning the bottom edge as well caps the
   document at one page height, which silently cropped any CV longer than a single sheet. */
@media print {
  @page { margin: 14mm; }
  body * { visibility: hidden; }
  .cvb-doc, .cvb-doc * { visibility: visible; }
  .cvb-doc { position: absolute !important; left: 0; top: 0; width: 100%; max-width: 100%; margin: 0 !important; }
}

/* Admin curriculum builder */
.crc-module { border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: var(--bs-tertiary-bg); }
.crc-module-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.crc-lesson { padding: .5rem; border-radius: 8px; background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); margin-bottom: .4rem; }

/* Outcome prompt / win banner (candidate dashboard) */
.mx-outcome-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; border-radius: 12px; margin-bottom: var(--mx-space-4);
  text-decoration: none; font-size: var(--mx-fs-sm);
}
.mx-outcome-banner.is-win { background: rgba(var(--mx-teal-rgb), .14); color: var(--bs-body-color); border: 1px solid rgba(var(--mx-teal-rgb), .3); }
.mx-outcome-banner.is-prompt { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-body-color); border: 1px solid rgba(var(--bs-primary-rgb), .25); }
.mx-outcome-banner.is-prompt:hover { border-color: var(--bs-primary); }
.mx-outcome-cta { font-weight: 700; color: var(--bs-primary); white-space: nowrap; }
.mx-outcome-verified { font-size: .7rem; font-weight: 700; padding: .1rem .4rem; border-radius: 999px; background: var(--mx-teal, var(--bs-success)); color: #fff; }

/* Public pass-rate proof strip */
.mx-passrate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem;
  max-width: 960px; margin: -1rem auto 0; padding: 1.75rem 1.5rem;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color); border-radius: 16px;
  box-shadow: var(--mx-elevation-sm); position: relative; z-index: 2;
}
.mx-passrate-item { text-align: center; }
.mx-passrate-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--bs-primary); line-height: 1; }
.mx-passrate-lbl { font-size: .8rem; color: var(--bs-secondary-color); margin-top: .3rem; }
.mx-passrate-note { flex-basis: 100%; text-align: center; font-size: .74rem; color: var(--bs-tertiary-color); }

/* Course reviews (public) + star picker (enrolled review form) */
.mx-reviews { display: grid; gap: .9rem; }
.mx-review { padding: 1rem 1.2rem; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-card-bg); }
.mx-review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.mx-review-stars { color: var(--bs-warning); letter-spacing: 1px; }
.mx-review-stars-off { color: var(--bs-border-color); }
.mx-review-badge { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgba(var(--mx-teal-rgb), .16); color: var(--mx-teal-ink); }
.mx-review-title { font-weight: 700; color: var(--bs-heading-color); }
.mx-starpick { display: inline-flex; gap: .1rem; }
.mx-star { border: 0; background: none; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--bs-border-color); padding: 0 .05rem; transition: color .1s ease; }
.mx-star.on { color: var(--bs-warning); }
.mx-star:hover { color: var(--bs-warning); }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║ pwy - Pathway Navigator + Requirements Hub (ADR 0001 Phase A).       ║
   ║ Colors come from tokens only, so both themes are automatic.          ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.pwy { max-width: 880px; }

/* ── wizard ── */
.pwy-wiz {
  position: relative; overflow: hidden;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius-lg); padding: clamp(1.25rem, 4vw, 2.25rem);
  max-width: 720px; margin: 0 auto;
}
/* The chosen country's outline, behind everything. Steps 2–5 hold only a dropdown or a
   short option list, so the card emptied out and lost all sense of place; this carries the
   destination through without adding anything the reader has to read. Kept very low
   contrast and pointer-inert so it never competes with the question. */
.pwy-wiz > * { position: relative; z-index: 1; }
.pwy-wiz-map {
  /* Sized and pushed into the corner so it reads as a watermark rather than an illustration:
     at 46% it covered over a third of the card and crowded the question. Capped in px too,
     so it doesn't grow with the card on wide screens. */
  position: absolute; right: -3%; bottom: -14%; z-index: 0;
  width: min(30%, 210px); height: auto;
  fill: var(--mx-nav-ink); opacity: .06; pointer-events: none;
}
.pwy-wiz.is-uk .pwy-wiz-map { fill: var(--mx-teal-ink); opacity: .07; }
:root[data-bs-theme="dark"] .pwy-wiz-map { fill: #9CC4E4; opacity: .07; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .pwy-wiz-map { fill: #9CC4E4; opacity: .07; }
}

.pwy-progress {
  display: flex; align-items: center; gap: 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: var(--bs-secondary-color);
  margin-bottom: 1.1rem;
}
/* A filling bar rather than five dots: dots said which question you were on, a bar also
   shows how much is left, which is what makes a multi-step form feel finishable. */
.pwy-bar {
  flex: 1 1 auto; height: 4px; border-radius: 999px;
  background: var(--bs-secondary-bg); overflow: hidden;
}
.pwy-bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: var(--mx-teal-ink); transition: width .3s ease;
}

/* Answers given so far - each one a button back to that question. */
.pwy-answers { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; }
.pwy-answer {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .34rem .7rem; border-radius: 999px; font-size: .78rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg);
  color: var(--bs-body-color); text-align: left;
  transition: border-color .14s ease, background .14s ease;
}
.pwy-answer:hover { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .07); }
.pwy-answer-k {
  font-family: var(--mx-font-mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bs-secondary-color);
}
.pwy-answer-v { font-weight: 600; color: var(--bs-heading-color); }
.pwy-answer-edit { display: inline-flex; color: var(--bs-tertiary-color); }
.pwy-answer-edit svg { width: 11px; height: 11px; }
.pwy-answer:hover .pwy-answer-edit { color: var(--bs-link-color); }

.pwy-q { font-family: var(--mx-font-serif); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .25rem; }
.pwy-hint { color: var(--bs-secondary-color); font-size: .92rem; margin: 0 0 1.1rem; }

/* ── steps 3 & 4: single-select option cards (icon · text · advance chevron) ── */
.pwy-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: .7rem; }
.pwy-opt {
  position: relative; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
  padding: .85rem 1rem; border-radius: var(--mx-radius);
  border: 1px solid var(--bs-border-color); background: var(--mx-paper-bg, var(--bs-body-bg));
  color: var(--bs-body-color); box-shadow: var(--mx-elevation-sm);
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.pwy-opt:hover { border-color: rgba(var(--bs-primary-rgb), .55); transform: translateY(-2px); box-shadow: var(--mx-elevation); }
.pwy-opt:hover .pwy-opt-go { color: var(--bs-primary); transform: translateX(3px); }
.pwy-opt:focus-visible { outline: 0; border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .38); }
.pwy-opt.is-selected { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .045); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .14); }

.pwy-opt-ic { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .6rem; }
.pwy-opt-ic svg { width: 1.2rem; height: 1.2rem; }
.pwy-opt-ic.is-coral { background: rgba(var(--bs-primary-rgb), .12); color: var(--mx-accent-ink); }
.pwy-opt-ic.is-mint  { background: rgba(var(--mx-teal-rgb), .14);   color: var(--mx-teal-ink); }
.pwy-opt-ic.is-gold  { background: rgba(var(--bs-warning-rgb), .16); color: var(--mx-warning-ink, var(--bs-warning)); }
.pwy-opt-ic.is-plum  { background: rgba(var(--mx-accent-3-rgb), .16); color: var(--mx-accent-3); }
.pwy-opt-ic.is-green { background: rgba(var(--mx-accent-6-rgb), .16); color: var(--mx-accent-6); }

.pwy-opt-main { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pwy-opt-t { font-weight: 700; font-size: .92rem; color: var(--bs-heading-color); }
.pwy-opt-d { font-size: .78rem; color: var(--bs-tertiary-color); }

.pwy-opt-go { display: grid; place-items: center; color: var(--bs-tertiary-color); transition: transform .14s ease, color .14s ease; }
.pwy-opt-go svg { width: 1.15rem; height: 1.15rem; }
.pwy-opt.is-selected .pwy-opt-go { color: var(--bs-primary); }

.pwy-flag {
  font-family: var(--mx-font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .06em;
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 1.5rem; padding: 0 .4rem;
  border-radius: .45rem; background: var(--bs-secondary-bg); color: var(--bs-heading-color);
  border: 1px solid var(--bs-border-color);
}
.pwy-badge {
  font-family: var(--mx-font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; margin-top: .35rem;
  padding: .18rem .5rem; border-radius: 999px;
  background: var(--bs-secondary-bg); color: var(--bs-secondary-color);
}
.pwy-badge.is-live { background: rgba(var(--mx-teal-rgb), .14); color: var(--mx-teal-ink); }

/* ── step 1: destination cards ── */
.pwy-dest { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: .8rem; }
.pwy-dest-card {
  --pwy-accent: var(--bs-primary);
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  display: grid; gap: .12rem; align-content: start;
  /* Even side padding now the accent is a top edge - the extra 0.1rem on the left only
     existed to clear the old rail. */
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius);
  background: var(--mx-paper-bg, var(--bs-body-bg)); color: var(--bs-body-color);
  box-shadow: var(--mx-elevation-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
/* A top accent, not a left rail. The rail sat inside the padding and read as a stray mark
   next to the text; a full-width top edge matches the destination cards on the home page,
   so the same choice looks the same in both places. */
.pwy-dest-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--pwy-accent);
  transition: background .14s ease;
}
/* Each card carries its own country's outline. Four cards that differed only by wording now
   differ by SHAPE, which is recognised faster than any label - and it teaches the same visual
   language the wizard then carries into steps 2–5. */
.pwy-dest-card > *:not(.pwy-dest-map) { position: relative; z-index: 1; }
.pwy-dest-map {
  position: absolute; right: -14px; bottom: -12px; width: 108px; height: 108px; z-index: 0;
  fill: var(--pwy-accent); opacity: .09; pointer-events: none;
  transition: opacity .2s ease, transform .3s ease;
}
.pwy-dest-card:hover .pwy-dest-map { opacity: .16; transform: translateY(-3px) scale(1.05); }
.pwy-dest-card.is-selected .pwy-dest-map { opacity: .18; }
.pwy-dest-card:hover { transform: translateY(-2px); box-shadow: var(--mx-elevation); border-color: rgba(var(--bs-primary-rgb), .5); }
.pwy-dest-card:focus-visible { outline: 0; border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .4); }
.pwy-dest-card.is-selected {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .045);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .14);
}
/* selected card unifies to coral so the country accent bar never fights the highlight */
.pwy-dest-card.is-selected::before { background: var(--bs-primary); }

/* per-country accent (scannable by colour + flag) */
/* Reads the shared destination tokens (theme-medax.css) rather than its own literals, so
   the /compare matrix and these cards can never show different colours for one country. */
.pwy-dest-card.is-uk { --pwy-accent: var(--mx-dest-uk); }
.pwy-dest-card.is-au { --pwy-accent: var(--mx-dest-au); }
.pwy-dest-card.is-nz { --pwy-accent: var(--mx-dest-nz); }
.pwy-dest-card.is-ca { --pwy-accent: var(--mx-dest-ca); }

.pwy-dest-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-right: 1.5rem; }
.pwy-dest-id { display: inline-flex; align-items: baseline; gap: .35rem; }
.pwy-dest-flag { font-size: 1.15rem; line-height: 1; }
.pwy-dest .pwy-flag {
  min-width: 0; height: auto; padding: 0; border: 0; background: transparent;
  color: var(--bs-tertiary-color); font-size: .58rem; letter-spacing: .1em;
}
.pwy-dest-demand { font-size: .56rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--bs-tertiary-color); white-space: nowrap; }
.pwy-dest-name { font-family: var(--mx-font-serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; color: var(--bs-heading-color); margin-top: .2rem; }
.pwy-dest-sub { font-size: .8rem; color: var(--bs-secondary-color); }
.pwy-dest-meta { display: flex; flex-wrap: wrap; gap: .1rem .55rem; align-items: center; margin-top: .45rem; font-size: .74rem; color: var(--bs-secondary-color); font-weight: 600; }
.pwy-dest-meta .pwy-dest-cost::before { content: "·"; margin-right: .55rem; color: var(--bs-tertiary-color); font-weight: 400; }

/* status badges gain a leading dot */
.pwy-dest .pwy-badge { display: inline-flex; align-items: center; gap: .42rem; justify-self: start; margin-top: .6rem; }
.pwy-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pwy-badge.is-wait { background: rgba(var(--bs-warning-rgb), .16); color: var(--mx-warning-ink, var(--bs-warning)); }
.pwy-badge.is-live .pwy-badge-dot { background: var(--mx-teal); animation: pwy-pulse 1.9s ease-in-out infinite; }

@keyframes pwy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--mx-teal-rgb), .55); }
  55% { box-shadow: 0 0 0 4px rgba(var(--mx-teal-rgb), 0); }
}

/* selected checkmark, top-right corner (space reserved so selecting never shifts layout) */
.pwy-dest-check {
  position: absolute; top: .62rem; right: .62rem; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bs-primary); color: var(--mx-on-primary);
  opacity: 0; transform: scale(.5); transition: opacity .14s ease, transform .14s ease;
}
.pwy-dest-card.is-selected .pwy-dest-check { opacity: 1; transform: scale(1); }

.pwy-dest-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.pwy-dest-actions.is-split { justify-content: space-between; }

/* steps 2 & 5: form fields harmonised with the card steps */
.pwy-field { display: block; max-width: 24rem; }
.pwy-field-label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--bs-tertiary-color); margin-bottom: .4rem;
}
.pwy-field .form-select,
.pwy-field .form-control {
  width: 100%; font-size: .95rem; line-height: 1.4; color: var(--bs-body-color);
  border-radius: var(--mx-radius); border: 1px solid var(--bs-border-color);
  background-color: var(--mx-paper-bg, var(--bs-body-bg));
  box-shadow: var(--mx-elevation-sm); transition: border-color .14s ease, box-shadow .14s ease;
}
.pwy-field .form-control { padding: .62rem .9rem; }
.pwy-field .form-select { padding: .62rem 2.2rem .62rem .9rem; }
.pwy-field .form-select:focus,
.pwy-field .form-control:focus {
  outline: 0; border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .3);
}

@media (prefers-reduced-motion: reduce) {
  .pwy-dest-card, .pwy-dest-check, .pwy-dest-card::before, .pwy-opt, .pwy-opt-go,
  .pwy-field .form-select, .pwy-field .form-control { transition: none; }
  .pwy-badge.is-live .pwy-badge-dot { animation: none; }
}

.pwy-skip {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--bs-secondary-color); font-size: .85rem; text-decoration: underline;
}
.pwy-back {
  display: inline-block; margin-top: 1.2rem; background: none; border: 0; cursor: pointer;
  color: var(--bs-secondary-color); font-weight: 600; font-size: .88rem; padding: 0;
}
.pwy-back:hover, .pwy-skip:hover { color: var(--bs-primary); }

/* ── result ── */
.pwy-result { max-width: 760px; margin: 0 auto; }
.pwy-summary {
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius-lg); padding: clamp(1.2rem, 3.5vw, 1.8rem); margin-bottom: 2rem;
}
.pwy-summary-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.pwy-summary-head h2 { font-family: var(--mx-font-serif); font-size: 1.45rem; font-weight: 600; margin: 0; }
.pwy-summary p { color: var(--bs-secondary-color); margin: 0; }
.pwy-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.pwy-chip {
  font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--bs-secondary-bg); color: var(--bs-secondary-color);
}
.pwy-chip.is-time { background: rgba(var(--bs-primary-rgb), .12); color: var(--mx-accent-ink); }
.pwy-target {
  margin-top: .9rem; padding: .7rem .9rem; border-radius: var(--mx-radius-sm);
  border-left: 3px solid var(--bs-primary); background: rgba(var(--bs-primary-rgb), .07);
  font-size: .9rem;
}

.pwy-h3 { font-family: var(--mx-font-serif); font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .9rem; }

.pwy-stages { list-style: none; margin: 0; padding: 0; position: relative; }
.pwy-stages::before {
  content: ""; position: absolute; left: 7.1rem; top: .6rem; bottom: .6rem;
  border-left: 2px dashed var(--bs-border-color);
}
.pwy-stage { display: grid; grid-template-columns: 6.4rem 1fr; gap: 1.4rem; padding: .55rem 0; position: relative; }
.pwy-stage::before {
  content: ""; position: absolute; left: calc(7.1rem - 5px); top: 1.05rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--mx-teal, var(--bs-success)); box-shadow: 0 0 0 3px var(--bs-body-bg);
}
.pwy-stage.is-engine::before { background: var(--bs-primary); }
.pwy-when { font-size: .7rem; font-weight: 600; color: var(--bs-tertiary-color); text-align: right; padding-top: .35rem; line-height: 1.35; }
.pwy-stage-body strong { font-size: .95rem; }
.pwy-stage-body p { font-size: .85rem; color: var(--bs-secondary-color); margin: .2rem 0 .4rem; }
.pwy-stage.is-engine .pwy-stage-body {
  border: 1px solid rgba(var(--bs-primary-rgb), .35); border-radius: var(--mx-radius);
  padding: .7rem .9rem; background: rgba(var(--bs-primary-rgb), .05);
}
@media (max-width: 560px) {
  .pwy-stages::before { left: .45rem; }
  .pwy-stage { grid-template-columns: 1fr; gap: .15rem; padding-left: 1.6rem; }
  .pwy-stage::before { left: 0; }
  .pwy-when { text-align: left; padding-top: 0; }
}

.pwy-fees table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pwy-fees td { padding: .5rem .2rem; border-bottom: 1px solid var(--bs-border-color); }
.pwy-fees td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.pwy-fee-note { color: var(--bs-tertiary-color); font-size: .78rem; }
.pwy-fee-total td { border-bottom: 0; font-weight: 700; color: var(--bs-heading-color); }
.pwy-small { font-size: .78rem; color: var(--bs-tertiary-color); margin-top: .6rem; }

.pwy-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.pwy-notes h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-tertiary-color); margin-bottom: .4rem; }
.pwy-notes ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--bs-secondary-color); }
.pwy-notes li { margin: .3rem 0; }

.pwy-cta { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }
.pwy-legal { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }

/* ── waitlist ── */
.pwy-wait { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.pwy-wait input {
  min-width: 15rem; padding: .5rem .85rem; border-radius: 999px;
  border: 1px solid var(--bs-border-color); background: var(--mx-paper-bg, var(--bs-body-bg));
  color: var(--bs-body-color); font-size: .9rem;
}
.pwy-wait input:focus { outline: 0; border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem var(--mx-ring); }
.pwy-wait-done {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem;
  color: var(--mx-teal-ink); padding: .55rem .9rem; border-radius: 999px;
  background: rgba(var(--bs-success-rgb), .12);
}
.pwy-wait-done svg { width: 1rem; height: 1rem; }

/* ── requirements hub ── */
.pwy-desttabs { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; margin: 0 0 2rem; }
.pwy-desttabs a {
  padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  border: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-decoration: none;
}
.pwy-desttabs a:hover { border-color: rgba(var(--bs-primary-rgb), .5); color: var(--bs-primary); }
.pwy-desttabs a.is-on { background: var(--crs-cta-bg, var(--bs-emphasis-color)); color: var(--crs-cta-fg, var(--bs-body-bg)); border-color: transparent; }

.pwy-req-group { max-width: 760px; margin: 0 auto 1.2rem; }
.pwy-req {
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); padding: 1rem 1.2rem; margin-bottom: .7rem;
}
.pwy-req h3 { font-size: .98rem; font-weight: 650; margin: 0 0 .35rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pwy-req-meta { display: flex; gap: .8rem; align-items: center; margin-top: .5rem; }
.pwy-verified {
  font-family: var(--mx-font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: .16rem .5rem; border-radius: 999px;
  background: rgba(var(--bs-success-rgb), .13); color: var(--mx-teal-ink);
}
/* --bs-warning as INK on its own tint measured 3.22:1 - a caution badge nobody can read is
   worse than no badge. Darkened to a real amber ink that clears AA on the same tint. */
.pwy-verified.is-pending { background: rgba(var(--bs-warning-rgb), .16); color: var(--mx-amber-ink); }
/* The signal ink, like every other link on the public site. */
.pwy-source { font-size: .78rem; font-weight: 600; color: var(--bs-link-color); }
.pwy-empty { text-align: center; max-width: 34rem; margin: 0 auto; }
.pwy-empty .pwy-cta { justify-content: center; }

/* ── English band checker (eng-) ─────────────────────────────────────────── */
.eng-wiz { max-width: 640px; }
.eng-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.eng-field { display: flex; flex-direction: column; gap: .35rem; }
.eng-field > span { font-size: .8rem; font-weight: 600; color: var(--bs-secondary-color); }
.eng-seg { display: inline-flex; border: 1px solid var(--bs-border-color); border-radius: 999px; overflow: hidden; }
.eng-seg button {
  flex: 1; border: 0; background: transparent; cursor: pointer; padding: .5rem .7rem;
  font-weight: 600; font-size: .85rem; color: var(--bs-body-color); white-space: nowrap;
}
/* Navy, not signal blue. The selected segment is a STATE, not an action - coral is the
   page's action (Check my scores) and this sat beside it as the only blue thing left. */
.eng-seg button.on { background: var(--mx-nav-ink); color: #fff; }
:root[data-bs-theme="dark"] .eng-seg button.on { background: var(--mx-teal-ink); color: #06122A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .eng-seg button.on { background: var(--mx-teal-ink); color: #06122A; }
}
.eng-scores { margin-top: .4rem; }
.eng-scores-head { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-tertiary-color); margin-bottom: .5rem; }
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.eng-skill { display: flex; flex-direction: column; gap: .3rem; }
.eng-skill > span { font-size: .74rem; color: var(--bs-secondary-color); }
.eng-second { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--bs-border-color); border-radius: var(--mx-radius); }
.eng-check { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.eng-check input { width: 1.05rem; height: 1.05rem; }
@media (max-width: 560px) {
  .eng-row { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr 1fr; }
}

.eng-result { max-width: 640px; }
.pwy-flag.is-pass { background: rgba(var(--bs-success-rgb), .16); color: var(--mx-teal-ink); border-color: transparent; }
.pwy-flag.is-fail { background: rgba(var(--bs-warning-rgb), .18); color: var(--bs-warning); border-color: transparent; }
.eng-table { margin-top: 1.2rem; }
.eng-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.eng-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-tertiary-color); padding: .4rem .6rem; }
.eng-table td { padding: .55rem .6rem; border-top: 1px solid var(--bs-border-color); }
.eng-table tr.is-short td { background: rgba(var(--bs-warning-rgb), .07); }
.eng-verdict { text-align: right; font-weight: 700; font-size: .8rem; }
.eng-table tr.is-ok .eng-verdict { color: var(--mx-teal-ink); }
.eng-table tr.is-short .eng-verdict { color: var(--bs-warning); }
.eng-notes { margin: 1.2rem 0 0; padding-left: 1.1rem; font-size: .84rem; color: var(--bs-secondary-color); }
.eng-notes li { margin: .35rem 0; }

/* ── partner directory (prt-) ────────────────────────────────────────────── */
.prt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.prt-card { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-card-bg); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.prt-card-head { display: flex; align-items: center; gap: .8rem; }
.prt-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); flex-shrink: 0; }
.prt-card-head h3 { margin: 0; font-size: 1.02rem; font-weight: 650; }
.prt-region { font-size: .78rem; color: var(--bs-tertiary-color); }
.prt-licence { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; border-radius: var(--mx-radius-sm); background: rgba(var(--bs-success-rgb), .08); }
.prt-licence-body { font-size: .78rem; font-weight: 700; color: var(--mx-teal-ink); }
.prt-licence-no { font-size: .72rem; color: var(--bs-secondary-color); }
.prt-desc { font-size: .86rem; color: var(--bs-secondary-color); }
.prt-desc p { margin: 0; }
.prt-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }

/* ── candidate's own introductions record (ADR 0003) ─────────────────────── */
.prt-mine { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-secondary-bg); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.prt-mine-title { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.prt-mine-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.prt-mine-item { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .88rem; }
.prt-mine-name { font-weight: 600; }
.prt-mine-state { font-size: .78rem; font-weight: 600; }
.prt-mine-state.is-sent { color: var(--mx-teal-ink); }
.prt-mine-state.is-requested { color: var(--mx-accent-ink); }
.prt-mine-note { font-size: .74rem; color: var(--bs-secondary-color); margin: 0; line-height: 1.5; }

/* ── partner introduction control (ADR 0003) ─────────────────────────────── */
.prt-intro { border-top: 1px solid var(--bs-border-color); padding-top: .7rem; }
.prt-intro-load { height: 2rem; }
.prt-intro-consent { font-size: .8rem; color: var(--bs-secondary-color); margin: 0 0 .5rem; line-height: 1.45; }
.prt-intro-form textarea { margin-bottom: .5rem; }
.prt-intro-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.prt-intro-state {
  display: flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; line-height: 1.35;
}
.prt-intro-state svg { width: 1.05rem; height: 1.05rem; flex: none; }
.prt-intro-state.is-requested { color: var(--mx-accent-ink); }
.prt-intro-state.is-sent { color: var(--mx-teal-ink); }
.prt-intro-withdraw { padding: .1rem 0; font-size: .78rem; color: var(--bs-secondary-color); text-decoration: underline; }

.opp-toggle { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-card-bg); padding: 1rem 1.2rem; }
.opp-switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; }
.opp-switch input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.opp-requests { display: flex; flex-direction: column; gap: .8rem; }
.opp-request { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-card-bg); padding: 1rem 1.2rem; }
.opp-request-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.opp-market { font-size: .76rem; color: var(--bs-tertiary-color); margin-left: .5rem; }
.opp-message { font-size: .9rem; color: var(--bs-secondary-color); font-style: italic; margin: .6rem 0; }
.opp-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.opp-granted { font-size: .82rem; color: var(--mx-teal-ink); font-weight: 600; }

/* ── job board (candidate, mkt dialect) + recruiter postings ──────────────── */
.job-list { display: flex; flex-direction: column; gap: .8rem; }
.job-card {
  border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-card-bg);
  padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem;
}
.job-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.job-card-head h3 { margin: 0; font-size: 1.12rem; font-weight: 650; }
.job-card-head h3 a { color: var(--bs-body-color); text-decoration: none; }
.job-card-head h3 a:hover { color: var(--bs-link-color); }
.job-org { font-size: .84rem; color: var(--bs-secondary-color); margin-top: .12rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.job-tag { font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.job-tag.is-visa { background: rgba(var(--mx-teal-rgb), .14); color: var(--mx-teal-ink); }
.job-tag.is-dest { background: rgba(var(--bs-primary-rgb), .1); color: var(--mx-accent-ink); }
.job-salary { font-weight: 650; color: var(--bs-body-color); font-size: .92rem; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; flex-wrap: wrap; }
.job-posted { font-size: .76rem; color: var(--bs-tertiary-color); }
.job-applied { font-size: .82rem; font-weight: 600; color: var(--mx-teal-ink); }
.job-empty { border: 1px dashed var(--bs-border-color); border-radius: var(--mx-radius); padding: 1.4rem; text-align: center; color: var(--bs-secondary-color); }
.job-filters { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

/* job-fit match badge (shown to signed-in candidates) */
.job-match { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.job-match.is-strong { background: rgba(var(--bs-success-rgb), .16); color: var(--mx-teal-ink); }
.job-match.is-good { background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); }
.job-match.is-ok { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.job-card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.job-matchnote { font-size: .85rem; color: var(--bs-secondary-color); margin: -.5rem 0 1.1rem; }

/* recruiter posting status pill */
.job-statuspill { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.job-statuspill.is-draft { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.job-statuspill.is-open { background: rgba(var(--bs-success-rgb), .16); color: var(--mx-teal-ink); }
.job-statuspill.is-closed { background: rgba(var(--bs-danger-rgb), .12); color: var(--bs-danger); }

/* applicant rows */
.job-applicant { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); background: var(--bs-card-bg); padding: 1rem 1.2rem; margin-bottom: .7rem; }
.job-applicant-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.job-applnote { font-size: .88rem; color: var(--bs-secondary-color); font-style: italic; margin: .4rem 0; }

/* ── admission wizard (adm-) - the "admit card" application flow ──────────── */
.adm-shell { display: grid; grid-template-columns: 250px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 860px) { .adm-shell { grid-template-columns: 1fr; } }

/* the admit card (left rail) */
.adm-card {
  position: sticky; top: 5rem;
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); padding: 1.1rem 1.2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (max-width: 860px) { .adm-card { position: static; } }
.adm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.adm-card-eyebrow { font-family: var(--mx-font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bs-tertiary-color); }
.adm-card-title { font-weight: 700; margin-top: .15rem; }
.adm-chip {
  font-family: var(--mx-font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .55rem; border-radius: 6px;
  background: rgba(var(--bs-primary-rgb), .12); color: var(--mx-accent-ink);
  border: 1px dashed rgba(var(--bs-primary-rgb), .5);
}
.adm-card-sep { border: 0; border-top: 1px dashed var(--bs-border-color); margin: .9rem 0; }
.adm-steps { display: flex; flex-direction: column; gap: .1rem; }
.adm-step {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  padding: .5rem .5rem; border: 0; background: transparent; border-radius: 9px;
  text-align: left; cursor: pointer; color: var(--bs-body-color); transition: background .12s ease;
}
.adm-step:hover { background: var(--bs-secondary-bg); }
.adm-step.is-current { background: rgba(var(--bs-primary-rgb), .07); }
.adm-step:focus-visible { outline: 0; box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .4); }
.adm-step-num {
  display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--bs-border-color); font-family: var(--mx-font-mono);
  font-size: .66rem; font-weight: 700; color: var(--bs-secondary-color); background: var(--bs-card-bg);
}
.adm-step.is-current .adm-step-num { background: var(--bs-primary); border-color: var(--bs-primary); color: var(--mx-on-primary); }
.adm-step.st-complete .adm-step-num { background: rgba(var(--mx-teal-rgb), .16); border-color: rgba(var(--mx-teal-rgb), .42); color: var(--mx-teal-ink); }
.adm-step.st-attention .adm-step-num { background: rgba(var(--bs-warning-rgb), .18); border-color: rgba(var(--bs-warning-rgb), .45); color: var(--mx-warning-ink, var(--bs-warning)); }
.adm-step.st-neutral .adm-step-num { background: var(--bs-secondary-bg); color: var(--bs-tertiary-color); }
.adm-step-body { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.adm-step-t { font-weight: 650; font-size: .86rem; line-height: 1.2; }
.adm-step.is-current .adm-step-t { color: var(--bs-heading-color); }
.adm-step-d { font-size: .72rem; color: var(--bs-tertiary-color); line-height: 1.25; }
.adm-step.st-attention .adm-step-d { color: var(--mx-warning-ink, var(--bs-warning)); font-weight: 600; }
.adm-card-note { display: flex; gap: .5rem; font-size: .7rem; color: var(--bs-tertiary-color); line-height: 1.45; margin-top: .2rem; }
.adm-card-note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: .1rem; color: var(--mx-teal-ink); }

/* the section panel (right) */
.adm-panel {
  background: var(--bs-card-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius); padding: 1.5rem 1.7rem 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.adm-panel-eyebrow { font-family: var(--mx-font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--mx-teal-ink); }
.adm-panel h2 { font-family: var(--mx-font-serif); font-size: 1.45rem; font-weight: 650; margin: .3rem 0 .25rem; }
.adm-panel-sub { color: var(--bs-secondary-color); font-size: .9rem; margin: 0 0 1.2rem; max-width: 38rem; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
@media (max-width: 640px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-field { display: flex; flex-direction: column; gap: .3rem; }
.adm-field.is-wide { grid-column: 1 / -1; }
.adm-field > label { font-weight: 650; font-size: .84rem; }
.adm-field .req { color: var(--mx-coral-ink, #c24a37); }
.adm-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.adm-error { border-left: 3px solid var(--bs-danger); background: rgba(var(--bs-danger-rgb), .08); border-radius: 8px; padding: .7rem .9rem; font-size: .88rem; margin-top: 1rem; }
.adm-empty { padding: .4rem 0; }
.adm-opt-hint { font-weight: 400; color: var(--bs-tertiary-color); }

/* inputs harmonised with the wizard's rounded, elevated field style + coral focus ring */
.adm-panel .form-control, .adm-panel .form-select, .adm-panel textarea.form-control {
  border-radius: var(--mx-radius); border: 1px solid var(--bs-border-color);
  background-color: var(--mx-paper-bg, var(--bs-body-bg)); color: var(--bs-body-color);
  font-size: .9rem; padding: .55rem .8rem; box-shadow: var(--mx-elevation-sm);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.adm-panel .form-control-sm { padding: .38rem .6rem; font-size: .84rem; }
.adm-panel .form-control:focus, .adm-panel .form-select:focus, .adm-panel textarea.form-control:focus {
  outline: 0; border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .28);
}

/* programme selection cards */
.adm-progs { display: flex; flex-direction: column; gap: 1.1rem; }
.adm-prog-group h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-tertiary-color); font-weight: 700; margin: 0 0 .5rem; }
.adm-prog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.adm-prog {
  display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--bs-border-color); border-radius: 10px; padding: .8rem .9rem;
  background: var(--mx-paper-bg, var(--bs-body-bg)); box-shadow: var(--mx-elevation-sm);
  transition: border-color .12s ease, background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.adm-prog:hover { border-color: rgba(var(--bs-primary-rgb), .5); transform: translateY(-1px); box-shadow: var(--mx-elevation); }
.adm-prog.is-on { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); }
.adm-prog:has(input:focus-visible) { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .3); }
.adm-prog input { margin-top: .2rem; flex-shrink: 0; width: 1rem; height: 1rem; accent-color: var(--bs-primary); }
.adm-prog-t { font-weight: 650; font-size: .9rem; }
.adm-prog-d { font-size: .76rem; color: var(--bs-tertiary-color); margin-top: .15rem; line-height: 1.4; }
/* Enrolment mode: the bought course's programme is fixed - it reads as a fact, not a choice. */
.adm-prog.is-locked { cursor: default; }
.adm-prog.is-locked:hover { transform: none; box-shadow: var(--mx-elevation-sm); }
.adm-prog-lock { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; font-family: var(--mx-font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .12); }

/* per-programme question sections in the Details step */
.adm-qsection { border: 1px solid var(--bs-border-color); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.adm-qsection > h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.adm-qsection > h3 .adm-qcount { font-family: var(--mx-font-mono); font-size: .66rem; color: var(--bs-tertiary-color); font-weight: 500; }
.adm-q { margin-bottom: .9rem; }
.adm-q:last-child { margin-bottom: 0; }
.adm-q-label { font-weight: 650; font-size: .86rem; margin-bottom: .35rem; }
.adm-opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.adm-opt {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .32rem .8rem;
  font-size: .84rem; background: var(--bs-body-bg); user-select: none;
  transition: border-color .12s ease, background .12s ease;
}
.adm-opt:hover { border-color: rgba(var(--bs-primary-rgb), .5); }
.adm-opt.is-on { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1); font-weight: 600; }
/* keep the control keyboard-reachable (was display:none) - hide it visually, ring the pill on focus */
.adm-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.adm-opt:has(input:focus-visible) { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .3); }
.adm-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; max-width: 32rem; }
.adm-score label { font-size: .72rem; color: var(--bs-tertiary-color); font-weight: 600; }

/* review - attention / ready banner */
.adm-alert {
  display: flex; gap: .7rem; align-items: flex-start;
  background: rgba(var(--bs-warning-rgb), .12); border: 1px solid rgba(var(--bs-warning-rgb), .32);
  border-radius: var(--mx-radius); padding: .85rem 1rem; margin-bottom: 1.3rem;
}
.adm-alert.is-ok { background: rgba(var(--mx-teal-rgb), .1); border-color: rgba(var(--mx-teal-rgb), .3); }
.adm-alert-ic {
  flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-top: .05rem;
  background: rgba(var(--bs-warning-rgb), .25); color: var(--mx-warning-ink, var(--bs-warning)); font-weight: 800; font-size: .82rem;
}
.adm-alert.is-ok .adm-alert-ic { background: rgba(var(--mx-teal-rgb), .22); color: var(--mx-teal-ink); }
.adm-alert-ic svg { width: 11px; height: 11px; }
.adm-alert-t { font-weight: 700; font-size: .9rem; color: var(--bs-heading-color); }
.adm-alert-d { font-size: .85rem; color: var(--bs-secondary-color); margin-top: .12rem; }
.adm-linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; font-weight: 600;
  color: var(--mx-accent-ink); text-decoration: underline; text-underline-offset: 2px;
}
.adm-linkbtn:hover { color: var(--bs-primary); }

/* review cards */
.adm-rv { border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius); overflow: hidden; margin-bottom: .8rem; box-shadow: var(--mx-elevation-sm); }
.adm-rv-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .95rem; background: var(--bs-secondary-bg); }
.adm-rv-head.is-attention { background: rgba(var(--bs-warning-rgb), .16); }
.adm-rv-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bs-tertiary-color); }
.adm-rv-head.is-attention .adm-rv-title { color: var(--mx-warning-ink, var(--bs-warning)); }
.adm-rv-edit { border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: .28rem; font-size: .76rem; font-weight: 600; color: var(--mx-teal-ink); }
.adm-rv-head.is-attention .adm-rv-edit { color: var(--mx-warning-ink, var(--bs-warning)); }
.adm-rv-body { padding: .5rem .95rem .7rem; }
.adm-rv-row { display: flex; gap: 1rem; font-size: .88rem; padding: .38rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.adm-rv-row:last-child { border-bottom: 0; }
.adm-rv-row > span { color: var(--bs-tertiary-color); min-width: 9.5rem; flex: none; }
.adm-rv-row > strong { font-weight: 600; color: var(--bs-heading-color); }
.adm-rv-empty { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .35rem 0; }
.adm-rv-missing { margin: 0 0 .5rem; font-size: .9rem; color: var(--mx-gold-ink, var(--bs-body-color)); }
.adm-rv-empty p { margin: 0; font-size: .87rem; color: var(--mx-warning-ink, var(--bs-warning)); max-width: 32rem; }
.adm-rv-optional { margin: 0; font-size: .85rem; color: var(--bs-tertiary-color); padding: .35rem 0; }
.adm-rv-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem 0; }
.adm-rv-chip { font-size: .8rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: rgba(var(--bs-primary-rgb), .1); color: var(--mx-accent-ink); }

/* submit + reason hint */
.adm-submit-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.adm-submit-hint { font-size: .78rem; font-weight: 600; }
.adm-submit-hint.is-block { color: var(--mx-accent-ink); }
.adm-submit-hint.is-ok { color: var(--mx-teal-ink); }

.adm-success { text-align: center; padding: 2.5rem 1rem; }
.adm-success-mark { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(var(--mx-teal-rgb), .15); color: var(--mx-teal-ink); margin-bottom: 1rem; }
.adm-success-mark svg { width: 26px; height: 26px; }
.adm-success h2 { font-family: var(--mx-font-serif); font-weight: 650; }
.adm-success .adm-ref { font-family: var(--mx-font-mono); font-size: .82rem; color: var(--bs-tertiary-color); margin: .4rem 0 1.2rem; }

/* ── landing: destination strip + journey band ── */
.mkt-dests { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.mkt-dest {
  display: flex; flex-direction: column; gap: .2rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; border-radius: var(--mx-radius);
  border: 1px solid var(--bs-border-color); background: var(--bs-card-bg);
  color: var(--bs-body-color); text-decoration: none;
  transition: border-color .12s ease, transform .12s ease;
}
.mkt-dest:hover { border-color: rgba(var(--bs-primary-rgb), .55); transform: translateY(-2px); color: var(--bs-body-color); }
.mkt-dest h3 { font-size: 1rem; font-weight: 650; margin: .35rem 0 0; }
.mkt-dest p { font-size: .78rem; color: var(--bs-tertiary-color); margin: 0; }

.mkt-journey {
  background: var(--scr-bg); border-radius: 16px; padding: 1.4rem 1.4rem 1.1rem;
  overflow-x: auto;
}
.mkt-journey-track { display: flex; min-width: 860px; }
.mkt-jstage { flex: 1; position: relative; padding: 0 .6rem 0 0; min-width: 96px; }
.mkt-jstage + .mkt-jstage { padding-left: .6rem; }
.mkt-jstage i {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--scr-mint); box-shadow: 0 0 10px rgba(111, 227, 196, .5); margin-bottom: .55rem;
}
.mkt-jstage.is-live i { background: var(--scr-coral); box-shadow: 0 0 10px rgba(232, 178, 74, .5); }
.mkt-jstage::before {
  content: ""; position: absolute; top: 5px; left: 14px; right: 0;
  border-top: 1px dashed rgba(243, 241, 232, .25);
}
.mkt-jstage:last-child::before { right: .6rem; }
.mkt-jstage strong { font-family: var(--mx-font-mono); font-size: .68rem; font-weight: 600; color: var(--scr-ink); display: block; }
.mkt-jstage span { font-size: .7rem; color: var(--scr-ink-faint); line-height: 1.45; display: block; margin-top: .2rem; }
/* Copy/selection/print friction for exam surfaces. .mex-shell is the fixed-form runner; .mex-adaptive
   is the CAT runner, which sits on the public layout (no exam shell) and so must be named explicitly or
   it leaks the paid adaptive pool as selectable text. content-guard.js keys the copy/contextmenu block
   on the same two selectors. */
.mex-shell, .mex-adaptive { user-select: none; -webkit-user-select: none; }
.mex-shell input, .mex-shell textarea,
.mex-adaptive input, .mex-adaptive textarea { user-select: text; -webkit-user-select: text; }
@media print {
  .mex-shell, .mex-adaptive { display: none !important; }
  body::after { content: "Printing is disabled for exam content."; display: block; padding: 2rem; font-family: sans-serif; }
}

/* dashboard card (WASM) */
.mx-journey-card { display: block; text-decoration: none; color: inherit; border-color: rgba(var(--bs-success-rgb), .4); }
.mx-journey-card:hover { border-color: var(--bs-primary); color: inherit; }
.mx-journey-stage { font-family: var(--mx-font-serif); font-weight: 600; font-size: 1.15rem; color: var(--bs-heading-color); margin-top: .15rem; }
.mx-journey-next { font-size: .82rem; color: var(--bs-secondary-color); }
.mx-journey-side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.mx-journey-count { font-weight: 600; font-size: 1rem; color: var(--mx-teal-ink); }
.mx-journey-open { font-size: .78rem; font-weight: 600; color: var(--bs-primary); text-decoration: none; }
.mx-journey-open:hover { text-decoration: underline; color: var(--bs-primary); }
.mx-journey-track { display: flex; gap: .3rem; margin-top: .7rem; }
.mx-journey-track i { flex: 1; height: .35rem; border-radius: 1rem; background: var(--bs-secondary-bg); }
.mx-journey-track i.on { background: var(--mx-teal, var(--bs-success)); }
.mx-journey-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.mx-journey-card.is-done { border-color: var(--mx-teal, var(--bs-success)); background: linear-gradient(180deg, rgba(var(--bs-success-rgb), .07), transparent 60%); }
.mx-journey-card.is-done .mx-journey-stage { color: var(--mx-teal-ink); }

/* Dashboard hub tiles - one-tap into OSCE, Jobs, English from the dashboard. */
.mx-hubtile {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 8.5rem;
    padding: 1rem 1.1rem;
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--mx-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}

.mx-hubtile:hover {
    border-color: rgba(var(--bs-primary-rgb), .5);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -16px rgba(var(--bs-primary-rgb), .8);
    color: inherit;
}

.mx-hubtile-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.mx-hubtile-icon { font-size: 1.1rem; line-height: 1; }
.mx-hubtile-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); }

.mx-hubtile-value {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    font-family: var(--mx-font-serif);
    font-weight: 650;
    font-size: 1.9rem;
    line-height: 1.05;
    color: var(--bs-heading-color);
}

.mx-hubtile-value--sm { font-size: 1.2rem; }
.mx-hubtile-value--empty { color: var(--bs-secondary-color); }
.mx-hubtile-band { font-family: var(--mx-font-sans, inherit); font-size: .72rem; font-weight: 700; color: var(--mx-teal-ink); }
.mx-hubtile-sub { font-size: .82rem; color: var(--bs-secondary-color); margin-top: .2rem; }
.mx-hubtile-badge { display: inline-block; margin-left: .35rem; font-size: .72rem; font-weight: 600; color: var(--mx-teal-ink); }

.mx-hubtile-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.mx-hubtile-jobs li { display: flex; flex-direction: column; line-height: 1.25; }
.mx-hubtile-jobtitle { font-weight: 600; font-size: .9rem; color: var(--bs-heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-hubtile-jobmeta { font-size: .76rem; color: var(--bs-secondary-color); }

/* ── Programme landing template (.pl-*) - the home page's vocabulary on a ProgramPage ────
   Light paper, hairline cards, small-caps sans kickers, orange for the one action, royal for
   structure and for the ONE band (the comparison). Sections auto-hide when empty. */
/* Nov 2026: the home page's hero - its pale wash, royal headline ending in an orange phrase - so a programme reads
   as the next page of the same site. Tokens live in theme-medax.css (--mx-nav-hero-wash, --mx-nav-heading). */
.pl-hero { background: var(--mx-nav-hero-wash); color: var(--bs-body-color); padding: clamp(3rem, 6.5vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.pl-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.pl-eyebrow { display: block; font-family: var(--mx-font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-nav-signal-ink); margin-bottom: 1rem; }
.pl-hero-title { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; color: var(--mx-nav-heading); margin: 0; text-wrap: balance; }
.pl-accent { color: var(--mx-nav-accent-text); }
.pl-lede { color: var(--bs-body-color); font-size: 1.05rem; line-height: 1.6; margin: 1.2rem 0 0; max-width: 50ch; }
/* A programme still being readied: waitlist in place of the selling CTAs. */
.crs-soon { padding: 1.1rem 1.2rem; border: 1px solid var(--bs-border-color); border-radius: 14px; background: var(--bs-card-bg); box-shadow: var(--mx-elevation-sm); }
.crs-soon-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mx-gold-ink); margin-bottom: .5rem; }
.crs-soon p { font-size: .92rem; color: var(--bs-secondary-color); line-height: 1.55; }
.pl-soon-form { margin-top: 1.5rem; max-width: 30rem; }
.pl-soon-alt { margin-top: 1rem; font-size: .9rem; color: var(--bs-secondary-color); }
.pl-hero-bullets { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.pl-hero-bullets li { position: relative; padding-left: 1.9rem; color: var(--bs-body-color); font-size: .96rem; line-height: 1.5; }
.pl-hero-bullets li::before { content: "✓"; position: absolute; left: 0; top: .15rem; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; background: var(--mx-nav-signal-tint); color: var(--mx-nav-signal); font-weight: 700; }
.pl-hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.pl-hero-media img { width: 100%; height: auto; border-radius: var(--mx-nav-radius); border: 1px solid var(--mx-nav-hairline); box-shadow: var(--mx-nav-shadow); }

/* Hero panel - the page's one elevated object, like the home page's report card. Built
   from the page's own bullets, so it needs no new content. */
.pl-hero-panel {
  background: var(--bs-card-bg);
  border: 1px solid var(--mx-nav-hairline);
  border-radius: 12px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 14px 34px -14px rgba(20, 48, 122, .4);
}
/* With the exam's photo: the photo sits top-right and the panel tucks under its lower-left corner - the home
   hero's cards-over-the-photo, in one column, with the photo still mostly in view. */
.pl-hero-visual { position: relative; }
.pl-hero-inner.has-photo .pl-hero-visual { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.pl-hero-photo {
  /* Only the picture part of the card art: its lower half is the navy fade the home card prints its title on. */
  grid-column: 3 / 13; grid-row: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 18%;
  border-radius: 16px; box-shadow: var(--mx-nav-card-shadow), 0 30px 60px -32px rgba(20, 48, 122, .5);
}
.pl-hero-inner.has-photo .pl-hero-panel { grid-column: 1 / 10; grid-row: 2; position: relative; z-index: 1; margin-top: -4rem; padding: 1.3rem 1.4rem; }
.pl-hero-panel-label {
  display: block; margin-bottom: 1rem;
  font-family: var(--mx-font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bs-secondary-color);
}
.pl-hero-panel .pl-hero-bullets { margin: 0; gap: .8rem; }
.pl-hero-panel-foot {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--mx-nav-hairline);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mx-font-display); font-weight: 800; font-size: 1.5rem; color: var(--bs-heading-color);
}

/* Branded pill CTAs (used on dark bands + the light CTA) */
/* The landing's two buttons are the home page's two buttons: orange for the action, a
   hairline ghost beside it. Dark ink on the orange, never white. */
.btn-signal-lg { display: inline-flex; align-items: center; gap: .45rem; background: var(--mx-nav-action); color: var(--mx-nav-on-action); border: 1.5px solid transparent; border-radius: var(--mx-nav-radius); padding: .85rem 1.6rem; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.btn-signal-lg:hover { background: var(--mx-nav-action-hover); color: var(--mx-nav-on-action); transform: translateY(-1px); }
.btn-ghost-lg { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--bs-heading-color); border: 1.5px solid var(--mx-nav-hairline-strong); border-radius: var(--mx-nav-radius); padding: .85rem 1.6rem; font-weight: 600; font-size: .98rem; text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.btn-ghost-lg:hover { border-color: var(--bs-heading-color); color: var(--bs-heading-color); background: var(--mx-nav-inset); }
/* On a band the ghost goes light. */
.pl-cta .btn-ghost-lg, .pl-sec--table .btn-ghost-lg { color: #fff; border-color: rgba(255, 255, 255, .32); }

/* Stats band - dashed dividers between figures, like the home's instrument row */
/* Proof strip, as on the home page: figures left-aligned in hairline columns. */
.pl-stats { background: var(--bs-body-bg); padding: 0 0 clamp(2rem, 4vw, 3rem); }
.pl-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mx-nav-hairline); border-bottom: 1px solid var(--mx-nav-hairline); }
.pl-stat { padding: 1.5rem 1.5rem 1.5rem 0; }
.pl-stat + .pl-stat { border-left: 1px solid var(--mx-nav-hairline); padding-left: 1.5rem; }
.pl-stat-v { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -.03em; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.pl-stat-l { margin-top: .45rem; font-size: .86rem; font-weight: 600; color: var(--bs-heading-color); }

/* ── Editorial sections - mono kicker + centred head, then a layout-specific body ── */
.pl-sec { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.pl-sec--alt { background: var(--mx-nav-paper-2); }
.pl-sec + .pl-sec:not(.pl-sec--alt):not(.pl-sec--table) { border-top: 1px solid var(--mx-nav-hairline); }
.pl-sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); }
.pl-kicker { display: block; font-family: var(--mx-font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-nav-signal-ink); margin-bottom: .75rem; }
.pl-h2 { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.12; letter-spacing: -.02em; color: var(--mx-nav-heading); margin: 0; text-wrap: balance; }
.pl-notfound { text-align: center; max-width: 560px; margin: 0 auto; }
.pl-notfound p { color: var(--bs-secondary-color); margin: .5rem 0 1.5rem; }

.pl-sec--prose .pl-sec-body { max-width: 680px; margin: 0 auto; }
.pl-prose { color: var(--bs-body-color); font-size: 1.05rem; line-height: 1.75; }
.pl-sec--grid .pl-sec-body { max-width: 1040px; margin: 0 auto; }
.pl-sec--table .pl-sec-body { max-width: 860px; margin: 0 auto; }

/* Markdown lists → a card grid (each item a card; the bold lead-in becomes its title) */
/* MarkdownView wraps content in .mkt-prose (max-width: 66ch for readable prose) - lift that
   cap for the card grid and the table so they fill the section instead of hugging the left. */
.pl-grid .mkt-prose, .pl-sec--table .mkt-prose { max-width: none; }
/* Flexbox (not grid) so a short last row CENTRES instead of orphaning to the left. */
.pl-grid .mkt-prose ul,
.pl-grid .mkt-prose ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.pl-grid .mkt-prose ol { counter-reset: plcard; }
/* Static cards: no hover lift - these are statements, not links, and a lift promises a click. */
.pl-grid .mkt-prose li { position: relative; flex: 1 1 280px; max-width: 500px; margin: 0; padding: 1.6rem 1.7rem 1.75rem; background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-card-radius); box-shadow: var(--mx-nav-card-shadow); font-size: .92rem; line-height: 1.6; color: var(--bs-secondary-color); }
/* A mono index anchors ONLY the genuinely sequential grid - the "Prepare" steps, authored as an
   <ol>. Parallel <ul> cards get no number: stamping 01/02/03 on them would invent a ranking that
   isn't real (and would double up where a title already reads "Day 1 / Day 2"). */
.pl-grid .mkt-prose ol li::before { counter-increment: plcard; content: counter(plcard, decimal-leading-zero); display: block; margin-bottom: .8rem; font-family: var(--mx-font-mono); font-size: .72rem; letter-spacing: .14em; font-weight: 500; color: var(--mx-nav-signal-ink); }
.pl-grid .mkt-prose li strong:first-child { display: block; margin-bottom: .45rem; font-family: var(--mx-font-display); font-weight: 700; font-size: 1.14rem; letter-spacing: -.015em; line-height: 1.25; color: var(--mx-nav-heading); }

/* A 4-item grid wraps 3 + 1, orphaning the last card. Narrow the track so four items
   land as a balanced 2×2 instead. (5 items still read fine as 3 + 2, centred.)
   Excludes --split: that layout is also four items but wants a WIDER track for its two
   feature cards, and `:has()` contributes its argument's specificity - (0,4,2) here -
   so without the :not() this silently overrides the split's own max-width. */
.pl-sec--grid:not(.pl-sec--split) .mkt-prose ul:has(> li:nth-child(4):last-child) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto;
}
.pl-sec--grid:not(.pl-sec--split) .mkt-prose ul:has(> li:nth-child(4):last-child) > li { max-width: none; }
@media (max-width: 720px) {
  .pl-sec--grid:not(.pl-sec--split) .mkt-prose ul:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
}

/* ── Split layout: two headline facts, then the footnotes ──────────────────
   The first two items get the weight (they are the substance); anything after
   them drops to a slim strip so it reads as a footnote, not a peer. */
.pl-sec--split .mkt-prose ul { max-width: 940px; margin-inline: auto; }
.pl-sec--split .mkt-prose li:nth-child(-n+2) {
  flex: 1 1 380px; max-width: none;
  padding: 1.9rem 2rem 2rem;
  background: linear-gradient(180deg, var(--mx-nav-signal-tint), var(--bs-card-bg) 62%);
  border-color: var(--mx-nav-hairline-strong);
}
.pl-sec--split .mkt-prose li:nth-child(-n+2) strong:first-child { font-size: 1.28rem; }
/* The metric, authored as `code` in the markdown - becomes the card's headline figure. */
.pl-sec--split .mkt-prose li code {
  display: block; margin: .1rem 0 .7rem;
  font-family: var(--mx-font-mono); font-size: 1.05rem; font-weight: 600;
  letter-spacing: -.01em; color: var(--mx-nav-signal-ink);
  background: none; padding: 0;
}
.pl-sec--split .mkt-prose li:nth-child(n+3) {
  flex: 1 1 300px; padding: 1.05rem 1.3rem; font-size: .87rem;
  background: var(--mx-nav-inset); border-style: solid;
}
.pl-sec--split .mkt-prose li:nth-child(n+3) strong:first-child { font-size: .96rem; margin-bottom: .25rem; }

/* ── Steps layout: a connected timeline for content that really is a sequence ── */
.pl-sec--steps .mkt-prose ol {
  display: flex; flex-wrap: nowrap; gap: 0;
  max-width: none; counter-reset: plstep; position: relative;
}
/* The rail, drawn behind the markers. Insets by half a column so it starts and ends
   ON the first and last marker rather than floating past them. */
.pl-sec--steps .mkt-prose ol::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%;
  height: 0; border-top: 1.5px dashed var(--mx-nav-hairline-strong);
}
.pl-sec--steps .mkt-prose li {
  flex: 1 1 0; min-width: 0; max-width: none;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0 .7rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
/* Must out-specify `.pl-grid .mkt-prose ol li::before` (0,2,3) - the mono index used by
   the ordinary numbered grids - or the step markers silently lose to it. */
.pl-sec--steps .mkt-prose ol li::before {
  counter-increment: plstep; content: counter(plstep);
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin: 0 0 1.1rem;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--mx-nav-step); color: #fff;
  box-shadow: 0 0 0 6px var(--mx-nav-step-ring);
  font-family: var(--mx-font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0;
}
/* The goal step wears the action colour, as the home journey's last step does. */
.pl-sec--steps .mkt-prose ol li:last-child::before { background: var(--mx-nav-action); color: var(--mx-nav-on-action); box-shadow: 0 0 0 6px var(--mx-nav-action-tint); }
/* A chevron on the rail between each pair of steps. */
.pl-sec--steps .mkt-prose ol li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; right: -4px; width: 8px; height: 8px;
  border-top: 1.5px solid var(--mx-nav-hairline-strong); border-right: 1.5px solid var(--mx-nav-hairline-strong); transform: rotate(45deg);
}
.pl-sec--steps .mkt-prose li strong:first-child { font-size: 1.05rem; margin-bottom: .35rem; }
@media (max-width: 820px) {
  /* Stack to a vertical timeline - five columns is unreadable on a phone. */
  .pl-sec--steps .mkt-prose ol { flex-direction: column; gap: 1.5rem; }
  .pl-sec--steps .mkt-prose ol::before { top: 0; bottom: 0; left: 26px; right: auto; width: 0; height: auto; border-top: 0; border-left: 1.5px dashed var(--mx-nav-hairline-strong); }
  .pl-sec--steps .mkt-prose ol li:not(:last-child)::after { display: none; }
  .pl-sec--steps .mkt-prose li { flex-direction: row; align-items: flex-start; gap: 1rem; text-align: left; padding: 0; }
  .pl-sec--steps .mkt-prose ol li::before { margin: 0; flex: 0 0 auto; }
}

/* FAQ accordion - <details> so it works on static SSR with no JS. */
.pl-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.pl-faq-item { background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-card-radius); box-shadow: var(--mx-nav-card-shadow); overflow: hidden; }
.pl-faq-item[open] { border-color: var(--mx-nav-hairline-strong); }
.pl-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer; list-style: none;
  font-family: var(--mx-font-display); font-weight: 700; font-size: 1rem;
  color: var(--mx-nav-heading);
}
.pl-faq-item summary::-webkit-details-marker { display: none; }
.pl-faq-item summary:hover { color: var(--mx-nav-signal-ink); }
.pl-faq-item summary:focus:not(:focus-visible) { outline: none; }
.pl-faq-chev { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s ease; color: var(--bs-secondary-color); }
.pl-faq-item[open] .pl-faq-chev { transform: rotate(180deg); }
.pl-faq-body { padding: 0 1.2rem 1.15rem; }
.pl-faq-body .mkt-prose { max-width: none; font-size: .93rem; color: var(--bs-secondary-color); }
.pl-faq-body .mkt-prose p:last-child { margin-bottom: 0; }

/* Free sample questions on a programme landing (ADR 0009 D8). */
.pl-sample-opts { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .4rem; }
.pl-sample-opts li {
  padding: .45rem .7rem; border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius-sm);
  font-size: .92rem; color: var(--bs-body-color);
}
.pl-sample-opts li.is-correct {
  border-color: var(--mx-nav-verified); background: var(--mx-nav-verified-tint);
  color: var(--bs-heading-color); font-weight: 600;
}
.pl-sample-opts li.is-correct::after { content: " ✓"; color: var(--mx-nav-verified); }
.pl-sample-expl { font-size: .9rem; color: var(--bs-secondary-color); margin: 0; }
.pl-samples-cta { margin-top: 1.25rem; text-align: center; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Practice-question SEO page (ADR 0009 D8). */
.pq-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pq-item {
  border: 1px solid var(--bs-border-color); border-radius: var(--mx-radius-lg);
  padding: var(--mx-space-5); background: var(--bs-card-bg);
}
.pq-q { white-space: pre-line; font-size: 1.05rem; margin: 0 0 .8rem; color: var(--bs-heading-color); }

/* Cross-sell - a landing page whose only exit is "Apply" is a dead end. */
/* A steady three-across grid: the old centred flex-wrap left a 4 + 2 with the short row floating mid-page. */
.pl-others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; max-width: 1040px; margin-inline: auto; }
@media (max-width: 900px) { .pl-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pl-others-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-other {
  display: flex; flex-direction: column;
  padding: 1.35rem 1.4rem; text-decoration: none;
  background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-card-radius);
  box-shadow: var(--mx-nav-card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pl-other:hover { transform: translateY(-4px); box-shadow: var(--mx-nav-shadow); border-color: var(--mx-nav-hairline-strong); }
.pl-other-title { font-family: var(--mx-font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.015em; color: var(--mx-nav-heading); }
.pl-other-desc {
  margin-top: .4rem; font-size: .88rem; line-height: 1.55; color: var(--bs-secondary-color);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-other-cta { margin-top: auto; padding-top: .9rem; font-family: var(--mx-font-sans); font-size: .88rem; font-weight: 600; color: var(--mx-nav-signal-ink); }
.pl-other--all { background: var(--mx-nav-inset); }

/* Comparison section - the page's ONE band, royal, with the instrument table on it. */
.pl-sec.pl-sec--table { background: var(--mx-nav-band-wash); color: #DCE4F5; }
.pl-sec--table .pl-kicker { color: #9FB3E6; }
.pl-sec--table .pl-h2 { color: #fff; }
.pl-sec--table table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.pl-sec--table thead th { text-align: left; padding: .7rem 1rem; font-family: var(--mx-font-sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9FB3E6; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.pl-sec--table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #DCE4F5; vertical-align: top; }
.pl-sec--table tbody tr:last-child td { border-bottom: 0; }
.pl-sec--table th:first-child, .pl-sec--table td:first-child { font-family: var(--mx-font-display); font-weight: 700; color: #fff; }
.pl-sec--table td strong { color: #fff; }

/* Closing CTA - not a second band: a hairline card on the paper, the price beside the button. */
.pl-cta { background: var(--bs-body-bg); color: var(--bs-body-color); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.pl-cta-inner { background: var(--bs-card-bg); border: 1px solid var(--mx-nav-hairline); border-radius: var(--mx-nav-card-radius); box-shadow: var(--mx-nav-card-shadow); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem); }
.pl-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.pl-cta h2 { font-family: var(--mx-font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--mx-nav-heading); margin: 0 0 .4rem; letter-spacing: -.02em; }
.pl-cta-copy p { color: var(--bs-secondary-color); margin: 0; }
.pl-cta-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.pl-price { font-family: var(--mx-font-display); font-weight: 800; font-size: 1.4rem; color: var(--bs-heading-color); letter-spacing: -.02em; }

@media (max-width: 820px) {
  .pl-hero-inner { grid-template-columns: 1fr; }
  .pl-hero-media { display: none; }
  /* Phones keep the bullets and drop the photo - the hero is already a screen tall. */
  .pl-hero-photo { display: none; }
  .pl-hero-inner.has-photo .pl-hero-visual { display: block; }
  .pl-hero-inner.has-photo .pl-hero-panel { margin-top: 0; }
  .pl-stats-grid { grid-template-columns: 1fr 1fr; }
  .pl-stat + .pl-stat { border-left: 0; padding-left: 0; }
  .pl-stat:nth-child(even) { border-left: 1px solid var(--mx-nav-hairline); padding-left: 1.25rem; }
  .pl-stat:nth-child(n+3) { border-top: 1px solid var(--mx-nav-hairline); }
}

.mx-hubtile-tier { font-weight: 700; }
.mx-hubtile-tier--strong { color: var(--mx-teal-ink); }
.mx-hubtile-tier--good { color: var(--bs-primary); }
.mx-hubtile-tier--ok { color: var(--bs-secondary-color); }

.mx-hubtile-cta { margin-top: auto; padding-top: .6rem; font-size: .82rem; font-weight: 650; color: var(--bs-primary); }

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Public-site button colours                                              ║
   ║                                                                          ║
   ║  The house rule established across the redesigned pages is CORAL = the    ║
   ║  action, TEAL = links and secondary actions. But Bootstrap's .btn-primary ║
   ║  resolves through --bs-primary, which is signal blue (#1D4ED8) and is     ║
   ║  used ~120 times for links, focus rings and accents - so it must NOT be   ║
   ║  repointed globally just to recolour buttons.                            ║
   ║                                                                          ║
   ║  Instead the two button roles are remapped here, scoped to .mkt-shell     ║
   ║  (every public page). That fixes ~90 stock-blue buttons across ~30 pages  ║
   ║  in one place, rather than hand-editing each call site - which is exactly ║
   ║  how the earlier redesigned pages drifted ahead of the rest.              ║
   ║                                                                          ║
   ║  Admin (.admin-shell) is deliberately untouched: it is a separate surface ║
   ║  with its own identity, and recolouring 30 admin pages unverified would   ║
   ║  be a change nobody asked for.                                            ║
   ║                                                                          ║
   ║  Remapped via Bootstrap's own --bs-btn-* variables so hover, active,      ║
   ║  focus and disabled all follow, instead of patching one state and         ║
   ║  leaving the others blue.                                                 ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
/* .mex-shell is the signed-in candidate app (Welcome, Drill, exam runner, classroom,
   certificates). It was missed the first time round, so eight app pages kept stock blue
   buttons while every marketing page had moved to coral. Then it drifted AGAIN: candidate
   pages in MainLayout that never wrap in .mex-shell (support, study groups, classes…)
   kept stock blue. .mx-app is MainLayout's root, so every signed-in page is covered now
   whatever inner shell it uses. And since each new shell was another chance to forget one,
   the action colour is now the DEFAULT: every primary button is orange unless it opts out.
   Only the staff (.admin-shell) and employer (.rsh-shell) tools keep Bootstrap's blue - their
   own identity, deliberately. (The style guide's "no shell" probe checks this default.) */
.btn-primary:not(.admin-shell *, .rsh-shell *) {
  --bs-btn-bg: var(--mx-action);
  --bs-btn-border-color: var(--mx-action);
  --bs-btn-color: var(--mx-action-on);
  --bs-btn-hover-bg: var(--mx-action-hover);
  --bs-btn-hover-border-color: var(--mx-action-hover);
  --bs-btn-hover-color: var(--mx-action-on);
  --bs-btn-active-bg: var(--mx-action-hover);
  --bs-btn-active-border-color: var(--mx-action-hover);
  --bs-btn-active-color: var(--mx-action-on);
  /* Disabled must NOT stay coral. Bootstrap only dims by opacity, so a full-coral disabled
     background still read as a live button - people clicked it and nothing happened. A
     disabled control has to look unavailable, not just slightly faded. */
  --bs-btn-disabled-bg: var(--bs-secondary-bg);
  --bs-btn-disabled-border-color: var(--bs-border-color);
  --bs-btn-disabled-color: var(--bs-secondary-color);
  --bs-btn-focus-shadow-rgb: 208, 64, 45;
  /* The lift was a blue glow under what is now a coral button. */
  box-shadow: 0 8px 22px -10px rgba(208, 64, 45, .5);
}
/* A disabled button is grey - it must not keep the coral lift, which left a pink halo
   under a control that is meant to look unavailable. */
.btn-primary:disabled:not(.admin-shell *, .rsh-shell *),
.btn-primary.disabled:not(.admin-shell *, .rsh-shell *) { box-shadow: none; }

/* Secondary action: a signal-blue outline that fills on hover - the same blue used for
   every link and "in flight" state, so an outline button reads as the quieter option
   rather than as a second, competing primary. Text takes the ink twin (--bs-link-color,
   6.4:1 on paper); fills take --bs-primary, which is the colour ON-PRIMARY was measured
   against. Teal is NOT used here: it now means "verified", not "secondary". */
.mkt-shell .btn-outline-primary,
.mx-app .btn-outline-primary,
.mex-shell .btn-outline-primary {
  --bs-btn-color: var(--bs-link-color);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: var(--mx-on-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-color: var(--mx-on-primary);
  --bs-btn-disabled-color: var(--bs-link-color);
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Events (/events)                                                        ║
   ║  A diary, not a card grid: the date leads as a navy figure (the same      ║
   ║  "commitment block" device used by the OSCE circuits and mock exams),     ║
   ║  because when it runs is what decides whether you can attend.             ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
.evt-list { display: flex; flex-direction: column; gap: .85rem; }

.evt-row {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: stretch; gap: 0;
  border: 1px solid var(--bs-border-color); border-radius: 14px; overflow: hidden;
  background: var(--bs-card-bg); text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.evt-row:hover {
  transform: translateY(-2px); border-color: var(--bs-primary);
  box-shadow: 0 2px 5px rgba(15, 23, 32, .06), 0 20px 40px -22px rgba(15, 23, 32, .3);
}

.evt-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--mx-nav-ink); padding: 1rem .5rem; text-align: center;
}
.evt-date-day {
  font-family: var(--mx-font-display); font-size: 1.7rem; font-weight: 600; line-height: 1;
  color: var(--mx-nav-verified-bright); font-variant-numeric: tabular-nums;
}
.evt-date-mon {
  margin-top: .15rem; font-family: var(--mx-font-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: #8FB0CE;
}

.evt-main { min-width: 0; padding: 1.05rem 1.25rem; }
.evt-title {
  font-family: var(--mx-font-display); font-weight: 600; font-size: 1.1rem;
  letter-spacing: -.01em; color: var(--bs-heading-color); margin: 0;
}
.evt-desc {
  margin: .3rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--bs-secondary-color);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.evt-meta {
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .55rem 0 0;
  font-family: var(--mx-font-mono); font-size: .68rem; letter-spacing: .03em;
  color: var(--bs-secondary-color);
}
.evt-meta > span + span::before { content: "· "; opacity: .6; }

.evt-action { display: flex; align-items: center; padding: 1.05rem 1.25rem 1.05rem 0; }
.evt-open, .evt-closed {
  font-family: var(--mx-font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  padding: .3rem .65rem; border-radius: 999px;
}
.evt-open { background: rgba(var(--bs-primary-rgb), .13); color: var(--bs-link-color); }
.evt-closed { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }

@media (max-width: 640px) {
  .evt-row { grid-template-columns: 64px minmax(0, 1fr); }
  .evt-action { grid-column: 2; padding: 0 1.25rem 1.05rem; }
}

/* An empty diary is a normal state between cohorts - so it offers what IS available
   rather than leaving the visitor at "check back soon" with nothing to click. */
.evt-empty {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: 2.5rem 1.5rem; border: 1px dashed var(--bs-border-color); border-radius: 16px;
}
.evt-empty > svg { width: 34px; height: 34px; color: var(--mx-teal-ink); opacity: .85; }
.evt-empty h2 {
  font-family: var(--mx-font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--bs-heading-color); margin: .85rem 0 .4rem;
}
.evt-empty p { color: var(--bs-secondary-color); font-size: .95rem; line-height: 1.6; margin: 0 auto; max-width: 34rem; }
.evt-empty-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.3rem 0 0; }
.evt-empty-note { margin-top: 1.1rem !important; font-size: .86rem !important; }
.evt-empty-note a { color: var(--bs-link-color); font-weight: 600; }

/* The "times are in your zone" note. Rendered hidden and revealed by local-time.js, so it
   only ever appears once a conversion has actually happened. */
.evt-tznote {
  font-family: var(--mx-font-mono); font-size: .68rem; letter-spacing: .03em;
  color: var(--bs-secondary-color); margin: 0 0 1rem;
}
/* Add-to-calendar links on an upcoming event (Google Calendar + .ics). */
.evt-addcal { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }

/* The zone qualifier beside a localized time - present so the reader knows whose clock it
   is on, quiet so it never competes with the time itself. */
.mx-lt-zone { font-size: .85em; opacity: .7; white-space: nowrap; }

/* Tells a signed-in candidate why the signup fields already have their details in them -
   without it, pre-filled values look like someone else's data or a stale cache. */
.evt-prefill {
  display: flex; align-items: center; gap: .45rem;
  margin: 0 0 1rem; padding: .5rem .8rem; border-radius: 10px;
  background: rgba(var(--mx-teal-rgb), .1); color: var(--mx-teal-ink);
  font-size: .85rem; font-weight: 500;
}
.evt-prefill svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* Blog toolbar: search on the left, live count on the right. */
.blg-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.blg-toolbar .blg-count { margin: 0 0 0 auto; }

/* Blog pager. Same shape as the admin klp-pager so paging looks the same everywhere,
   but built here because this list pages in the browser over pre-rendered cards. */
.blg-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem;
  padding-top: 1.1rem; border-top: 1px solid var(--bs-border-color);
}
.blg-pager-info { font-size: .82rem; color: var(--bs-secondary-color); }
.blg-pager-pages { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.blg-pager-btn {
  min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; cursor: pointer;
  border: 1px solid var(--bs-border-color); border-radius: 8px;
  background: var(--bs-card-bg); color: var(--bs-body-color);
  font-size: .85rem; font-weight: 600;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.blg-pager-btn:hover:not(:disabled):not(.is-current) { border-color: var(--bs-primary); color: var(--bs-link-color); }
.blg-pager-btn.is-current { background: var(--mx-nav-ink); border-color: var(--mx-nav-ink); color: #fff; cursor: default; }
.blg-pager-btn:disabled { opacity: .45; cursor: default; }
:root[data-bs-theme="dark"] .blg-pager-btn.is-current { background: var(--bs-primary); border-color: var(--bs-primary); color: #06122A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .blg-pager-btn.is-current { background: var(--bs-primary); border-color: var(--bs-primary); color: #06122A; }
}

/* FAQ toolbar: search left, live count right - same shape as the blog toolbar so the two
   list pages behave identically. */
.faq-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.faq-count { font-size: .85rem; color: var(--bs-secondary-color); margin: 0 0 0 auto; }
.faq-count b { color: var(--bs-heading-color); }
.faq-group[hidden] { display: none; }
.faq-empty { color: var(--bs-secondary-color); font-size: .95rem; margin-top: 1.4rem; }
.faq-empty a { color: var(--bs-link-color); font-weight: 600; }

/* Replaces the old "Skip" text button on the pathway date step: the date is optional and the
   primary action now always works, so this is a note, not a second competing action. */
.pwy-skip-note { font-size: .85rem; color: var(--bs-secondary-color); }

/* Save state under the plan's CTA row. */
.pwy-save-note { margin: .7rem 0 0; font-size: .82rem; color: var(--bs-secondary-color); }
.pwy-save-error { margin: .7rem 0 0; font-size: .85rem; font-weight: 500; color: var(--mx-action-hover); }
:root[data-bs-theme="dark"] .pwy-save-error { color: #FF9B87; }
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .pwy-save-error { color: #FF9B87; }
}

/* The answers rail on the finished plan. Slightly more prominent than in the wizard -
   here it is both a summary of what the plan was built from and the way to change it. */
.pwy-answers--plan {
  align-items: center;
  margin-bottom: 1.1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.pwy-answers-lede {
  font-family: var(--mx-font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bs-secondary-color); margin-right: .2rem;
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Candidate onboarding (/welcome)                                         ║
   ║  Written against the page's EXISTING markup - matched via :has() on the   ║
   ║  step numbers rather than a new class - so it applies without touching    ║
   ║  the .razor, which would need a rebuild to take effect.                   ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* The 1-2-3 row reads as a sequence, not three unrelated badges: a hairline runs between
   the circles, drawn behind them so it connects rather than crosses. Kept on ONE line -
   wrapping "3" onto its own row breaks the left-to-right reading the numbers promise. */
.mex-shell .card-body > div:has(> div > .mkt-step-n) {
  position: relative;
  display: flex; flex-wrap: nowrap; align-items: flex-start;
  gap: .5rem;
}
/* Circle ABOVE its label. Inline (circle beside label) meant the connector had to run
   straight through the words to reach the next step; stacked, it crosses only empty space. */
.mex-shell .card-body > div:has(> div > .mkt-step-n) > div {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  line-height: 1.35;
}
/* The connector sits at the circles' vertical centre (half of 2.1rem) and stops short of
   the outer two, so it links the steps instead of running past them. */
.mex-shell .card-body > div:has(> div > .mkt-step-n)::before {
  content: ""; position: absolute; z-index: 0;
  left: 17%; right: 17%; top: 1.05rem; height: 2px; margin-top: -1px;
  background: rgba(var(--mx-teal-rgb), .25);
}
/* Smaller than the marketing size: this is a compact card, and 2.75rem crowded the row. */
.mex-shell .mkt-step-n {
  width: 2.1rem; height: 2.1rem; font-size: .85rem;
  margin-bottom: .35rem !important;   /* beats the .mb-1 utility on the element */
  box-shadow: 0 4px 12px -4px rgba(var(--mx-teal-rgb), .45);
}

/* Form controls: our radius and a teal focus ring, replacing the default browser chrome.
   The native date input especially clashed with the styled select directly above it. */
.mex-shell .mfm .form-select,
.mex-shell .mfm .form-control {
  border-radius: 10px; padding: .6rem .8rem;
  border: 1px solid var(--bs-border-color); background-color: var(--bs-body-bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mex-shell .mfm .form-select:focus,
.mex-shell .mfm .form-control:focus {
  outline: none; border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}
/* Our own chevron instead of the OS one, so the select matches the rest of the card. */
.mex-shell .mfm .form-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354677A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
}
/* Tint the native calendar picker so it reads as part of the control rather than an
   OS artefact dropped into a styled form. */
.mex-shell .mfm input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; transition: opacity .15s ease;
}
.mex-shell .mfm input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: .9; }

/* The onboarding/preferences card read cream-on-cream against the page: Bootstrap's .card
   locally rebinds --bs-card-bg to --bs-body-bg, which this theme paints the near-white ground
   - so the card matched the page instead of standing off it like every other card
   (the dashboard panels, the login card). Pin it to the app's paper surface (theme-aware:
   white in light, navy in dark) and give it the same elevation + radius as those cards. */
.mex-shell .card.mfm {
  --bs-card-bg: var(--mx-paper-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  box-shadow: var(--mx-elevation);
}
.mex-shell .card.mfm > .card-body { padding: 1.7rem 1.75rem; }

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Marketing prose links + the shared notice block                         ║
   ║                                                                          ║
   ║  Blue kept coming back on new public pages, and this is why: --bs-link-  ║
   ║  color is signal blue (#12329C) and NOTHING overrode it for the public   ║
   ║  site. Every teal link on /pathway, /events, /blog was a separate one-   ║
   ║  off rule, so a page that didn't happen to write one shipped blue. Three ║
   ║  pages in a row drifted that way before the rule itself was the problem  ║
   ║  rather than the pages.                                                  ║
   ║                                                                          ║
   ║  Scoped to .mkt-body (the <main> in PublicLayout) so the header, footer  ║
   ║  and CTA bar - which all set their own link colour - are untouched, and  ║
   ║  to a:not([class]) because a link carrying a class has opted into its    ║
   ║  own treatment. Measured across /compare /faqs /blog /requirements       ║
   ║  /pricing /events /success-stories: 17 matches, every one a prose link,  ║
   ║  no false positives.                                                     ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
/* 2026-08-27 - DIRECTION REVERSED. This rule originally forced teal because blue kept
   "drifting back". The drift was the symptom: teal and blue were both claiming to be the
   primary, so the app read blue on the home page and green on the dashboard. Blue is now
   the single brand signal and teal means "verified" only (see theme-medax.css). Blue here
   is no longer a bug to chase - it is the rule. The declaration stays rather than being
   deleted so the shared weight/underline treatment survives. */
.mkt-body a:not([class]) {
  color: var(--bs-link-color);
  font-weight: 600;
  text-decoration-color: rgba(var(--bs-primary-rgb), .35);
  text-underline-offset: .18em;
}
.mkt-body a:not([class]):hover {
  color: var(--bs-link-color);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

/* The house notice block. .cmp-caveat and .rec-pending were the same idea built twice at
   slightly different tints - which is exactly how "a slightly different tan" happens. One
   class, so the next caveat that needs writing has somewhere to go. */
.mkt-notice {
  max-width: 62rem;
  margin: 0 auto 1.75rem;
  padding: .9rem 1.15rem;
  border-left: 3px solid var(--bs-warning);
  border-radius: var(--mx-radius-sm);
  background: rgba(var(--bs-warning-rgb), .1);
  color: var(--bs-body-color);
  font-size: .9rem;
  line-height: 1.6;
}
.mkt-notice strong { color: var(--bs-heading-color); font-weight: 650; }

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Compare destinations (/compare)                                         ║
   ║                                                                          ║
   ║  Lives here, not in Compare.razor.css. The scoped file is where the blue  ║
   ║  hid: it bundles into Medax.Web.styles.css, so it sits outside every      ║
   ║  shell remap AND outside the /style-guide audit, and it quietly reached   ║
   ║  for --bs-primary twice. Every other page dialect (.evt-, .blg-, .pwy-,   ║
   ║  .mres-, .careers-) is in this file; Compare was the one outlier.         ║
   ║                                                                          ║
   ║  A real <table>, because this IS tabular data and the row alignment the   ║
   ║  page depends on then comes for free rather than being re-derived with    ║
   ║  grid. It also gives screen readers real row and column headers.          ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
.cmp-scroll { overflow-x: auto; margin: 0 -0.25rem; padding: 0 .25rem .35rem; }

.cmp-table {
  width: 100%;
  min-width: 54rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp-table th, .cmp-table td { vertical-align: top; text-align: left; }
.cmp-corner { width: 12%; background: transparent; border: 0; }

/* ── Column head: chip, name, country outline, accent edge ─────────────────── */
.cmp-head {
  position: relative;
  overflow: hidden;
  width: 22%;
  padding: 1rem 1.05rem .85rem;
  background: var(--bs-card-bg);
  /* Right border omitted so adjacent heads share ONE 1px divider, matching the body
     cells below them - with a border on each side the header band drew 2px seams that
     didn't line up with the 1px seams in the table. */
  border: 1px solid var(--bs-border-color);
  border-right: 0;
  border-bottom: 0;
  font-weight: 400;
}
/* Only the outer corners round; rounding all four would notch the inner seams. */
.cmp-head:first-of-type { border-top-left-radius: 12px; }
.cmp-head:last-of-type { border-top-right-radius: 12px; border-right: 1px solid var(--bs-border-color); }

/* The country's own outline - the same shapes the /pathway destination cards draw,
   from CountryMaps. Four columns that differed only by wording now differ by SHAPE,
   which is recognised faster than any label. */
.cmp-map {
  /* Sized to read as a corner motif, not a wash: at 96px it filled an 88px-tall head
     edge to edge and the four columns started to look like tinted panels. */
  position: absolute; right: -12px; bottom: -18px;
  width: 74px; height: 74px; z-index: 0;
  fill: var(--cmp-accent); opacity: .1; pointer-events: none;
  transition: opacity .2s ease, transform .3s ease;
}
.cmp-head > .cmp-code, .cmp-head > .cmp-country { position: relative; z-index: 1; }

.cmp-code {
  display: inline-block;
  font-family: var(--mx-font-mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .45rem; border-radius: 5px;
  background: var(--mx-nav-ink); color: #F1F5FB;
}
.cmp-country {
  display: block; margin-top: .45rem;
  font-family: var(--mx-font-display); font-size: 1.12rem; font-weight: 650;
  letter-spacing: -.015em; color: var(--bs-heading-color);
  text-wrap: balance;
}
/* The accent sits on the head's bottom edge, so it reads as one rule under the name
   AND as the top edge of the column beneath it, rather than a stray underline. */
.cmp-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--cmp-accent); z-index: 2;
}

/* Identity by country, read from the shared tokens - the same values .pwy-dest-card
   uses, so clicking between the two pages feels like one product. */
.cmp-head.is-uk, .cmp-table td.is-uk { --cmp-accent: var(--mx-dest-uk); }
.cmp-head.is-au, .cmp-table td.is-au { --cmp-accent: var(--mx-dest-au); }
.cmp-head.is-nz, .cmp-table td.is-nz { --cmp-accent: var(--mx-dest-nz); }
.cmp-head.is-ca, .cmp-table td.is-ca { --cmp-accent: var(--mx-dest-ca); }

/* ── Row labels + cells ───────────────────────────────────────────────────── */
.cmp-table tbody th[scope="row"] {
  width: 12%;
  padding: .8rem 1rem .8rem 0;
  font-family: var(--mx-font-mono);
  font-size: .64rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.cmp-th-note {
  display: block; margin-top: .18rem;
  font-family: var(--mx-font-sans); font-size: .68rem;
  letter-spacing: 0; text-transform: none; font-weight: 400;
  color: var(--bs-secondary-color);
}

.cmp-table tbody td {
  padding: .8rem 1.05rem;
  font-size: .88rem; line-height: 1.5;
  color: var(--bs-body-color);
  background: var(--bs-card-bg);
  border-left: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.cmp-table tbody tr td:last-child { border-right: 1px solid var(--bs-border-color); }
/* Zebra, faint. Six rows read across four columns is exactly where the eye slips a
   line; a stripe fixes it with no hover, no JS and no colour. */
.cmp-table tbody tr:nth-child(even) td { background: var(--mx-panel-2); }

.cmp-fee { font-family: var(--mx-font-mono); font-weight: 500; color: var(--bs-heading-color); }
.cmp-none { color: var(--bs-secondary-color); font-style: italic; }

/* ── The timeline span ────────────────────────────────────────────────────────
   Four ranges on ONE shared axis. The sentence already says "9–15 months"; the bar
   says how that compares with the column beside it, which is the actual question. */
.cmp-val { display: block; }
.cmp-span {
  position: relative; display: block;
  height: 6px; margin: .55rem 0 .3rem;
  border-radius: 3px;
  background: rgba(var(--bs-secondary-rgb), .16);
  overflow: hidden;
}
.cmp-span-fill {
  position: absolute; top: 0; bottom: 0;
  border-radius: 3px;
  background: var(--cmp-accent, var(--bs-secondary-color));
}
.cmp-span-num {
  font-family: var(--mx-font-mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--bs-secondary-color); font-variant-numeric: tabular-nums;
}

/* ── Actions ──────────────────────────────────────────────────────────────────
   One primary, two secondary. Before, all three ran at identical weight with no
   separator, so "Plan this route Requirements Jobs" read as a single string. */
.cmp-actions {
  padding: .9rem 1.05rem 1.1rem;
  background: var(--bs-card-bg);
  border-left: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}
.cmp-table tfoot td.cmp-actions:nth-of-type(2) { border-bottom-left-radius: 12px; }
.cmp-table tfoot td.cmp-actions:last-of-type { border-bottom-right-radius: 12px; }
.cmp-table tfoot tr td:last-child { border-right: 1px solid var(--bs-border-color); }

.cmp-go {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .88rem; font-weight: 650;
  color: var(--bs-link-color); text-decoration: none;
}
.cmp-go-arrow { transition: transform .15s ease; }
.cmp-go:hover { color: var(--bs-link-color); text-decoration: underline; }
.cmp-go:hover .cmp-go-arrow { transform: translateX(3px); }

.cmp-sub { display: block; margin-top: .45rem; font-size: .82rem; }
.cmp-sub-link { color: var(--bs-secondary-color); text-decoration: none; }
.cmp-sub-link:hover { color: var(--bs-link-color); text-decoration: underline; }
.cmp-sub-dot { margin: 0 .4rem; color: var(--bs-tertiary-color); }

.cmp-foot { text-align: center; margin-top: 2rem; color: var(--bs-secondary-color); font-size: .92rem; }

/* ── Narrow screens ───────────────────────────────────────────────────────────
   Collapses by ATTRIBUTE, not by country: each row becomes a block with the four
   countries stacked inside it. Four separate country cards would mean scrolling
   between them to compare one fact - the desktop card problem, reproduced smaller. */
@media (max-width: 860px) {
  .cmp-scroll { overflow-x: visible; }
  .cmp-table { min-width: 0; }
  .cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table tfoot,
  .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }

  /* The head row carries the accent and the map, which belong to the desktop matrix. */
  .cmp-table thead { display: none; }
  .cmp-corner { display: none; }

  .cmp-table tbody tr, .cmp-table tfoot tr {
    margin-bottom: .9rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bs-card-bg);
  }
  .cmp-table tbody th[scope="row"] {
    width: auto; padding: .6rem .95rem;
    background: var(--bs-secondary-bg);
    border-bottom: 1px solid var(--bs-border-color);
  }
  .cmp-table tbody td, .cmp-table tfoot td {
    border-left: 0; border-right: 0;
    padding: .6rem .95rem;
    display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .2rem .8rem;
    align-items: baseline;
    border-bottom: 1px solid var(--bs-border-color-translucent);
  }
  .cmp-table tbody tr:nth-child(even) td { background: var(--bs-card-bg); }
  .cmp-table tbody td:last-child, .cmp-table tfoot td:last-child { border-bottom: 0; }

  /* The country name returns as the cell's own label, since the column head is gone. */
  .cmp-table tbody td::before, .cmp-table tfoot td::before {
    content: attr(data-label);
    font-family: var(--mx-font-mono); font-size: .62rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--bs-secondary-color);
  }
  .cmp-table tbody td > *, .cmp-table tfoot td > * { grid-column: 2; }
  .cmp-actions { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-map, .cmp-go-arrow { transition: none; }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Passers - the merged portrait figure (.pf) and the story card (.pstory)  ║
   ║                                                                          ║
   ║  The old wall card stacked a navy photo tile ON TOP OF a white caption    ║
   ║  panel. Two blocks, one seam, and when no photo had been uploaded - which ║
   ║  is most of them - the top half was simply an empty tile. Here the        ║
   ║  portrait IS the card and the caption sits on it over a scrim, so photo   ║
   ║  and words are one object either way.                                     ║
   ║                                                                          ║
   ║  Gold is the house "a win worth celebrating" colour, so the ribbon and    ║
   ║  the stars use it here exactly as they do on the navy home page - the     ║
   ║  wall and this page then need no separate skin.                          ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
.pf {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  /* The ground shows through wherever there is no photograph, so an initial-only card
     is a deliberate navy portrait rather than a blank. */
  background: radial-gradient(120% 80% at 50% 0, var(--mx-nav-ink-3), var(--mx-nav-ink));
  isolation: isolate;
}
.pf-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Faces sit in the upper third of a portrait, and the same image is cropped to a tall
     tile on desktop and a wide banner on mobile. Centring vertically decapitated people
     in the banner crop; biasing upward keeps the face in frame in both. */
  object-position: 50% 28%;
  display: block;
}
.pf-initial {
  position: absolute; inset: 0 0 22% 0;
  display: grid; place-items: center;
  font-family: var(--mx-font-display);
  font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -.03em; line-height: 1;
  color: var(--mx-nav-gold);
}

/* The scrim belongs to the CAPTION, not to a percentage of the card.
   Sized as a share of the card it was only ~0.52 opaque where the stars sit, and gold on
   a bright uniform through that measures about 1.7:1 - unreadable the first time someone
   uploads a photo with a light background. Anchored to the caption box instead, the fade
   is its top padding, so the text always sits on >=0.93 whatever the card's height. */

.pf-ribbon {
  position: absolute; top: 14px; right: -40px;
  width: 150px; z-index: 3;
  transform: rotate(38deg);
  background: var(--mx-nav-gold-grad);
  color: #2A1B03;
  text-align: center;
  padding: 5px 0;
  font-family: var(--mx-font-mono);
  font-size: .56rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}

.pf-id {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2.8rem .9rem 1rem;
  text-align: center;
  display: flex; flex-direction: column; gap: .12rem;
  /* Stops tuned by measurement, not by eye: the first line of text sits ~68% up this box,
     so the plateau has to reach past that and the whole fade has to happen inside the
     2.8rem of top padding. At the earlier .93-at-58% the stars landed on ~0.77 opacity -
     4.1:1 over a light photo. Now they sit on ~0.94, which is 7.7:1 against pure white. */
  background: linear-gradient(to top,
    rgba(5, 12, 22, .97) 0%,
    rgba(5, 12, 22, .94) 70%,
    rgba(5, 12, 22, .50) 88%,
    rgba(5, 12, 22, 0) 100%);
  /* Belt and braces for an unusually bright photo behind the fade. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
/* Was a five-star row, which said nothing true: a pass is a pass, there is no
   score out of five behind it, and stars on a result card read as a rating of
   the person. The word carries the same warmth and is actually accurate. */
.pf-cheer {
  color: var(--mx-nav-gold);
  font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1;
  margin-bottom: .38rem;
}
.pf-name {
  font-family: var(--mx-font-display);
  font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.01em;
  color: #F4F8FC;
  text-wrap: balance;
}
.pf-meta {
  font-size: .74rem; line-height: 1.35;
  color: #C6D5E6;
}
.pf-dot { margin: 0 .3rem; opacity: .6; }
/* "Aug 2026" broke across two lines in a 208px column, which read as a stray year. */
.pf-date { white-space: nowrap; }

/* ── The wall (home page teaser) ──────────────────────────────────────────────
   Flex, not a fixed 4-column grid: with two published stories a repeat(4, 1fr) grid
   left two orphans and a visibly half-empty row. Centred flex items keep any count
   looking deliberate - two cards read as a pair, eight as a wall. */
.mkt-hof {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.mkt-hof-card {
  flex: 0 1 200px;
  min-width: 168px;
  display: block;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mkt-hof-card:hover { transform: translateY(-4px); box-shadow: var(--mx-nav-shadow); }
.mkt-hof-card:focus-visible { outline: 2px solid var(--mx-nav-gold); outline-offset: 3px; }

/* ── Scroll rail (<ScrollRail>) ────────────────────────────────────────────────
   One horizontal line of cards. The TRACK does the scrolling on its own - native
   overflow plus snap points - and scroll-rail.js only adds the paddle buttons,
   and only after measuring a real overflow. So this styling has to look finished
   with no JavaScript at all, which is why nothing here depends on .mx-rail--*. */
.mx-rail { position: relative; }

.mx-rail-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* Room for the card's hover lift and focus ring, which would otherwise be clipped
     by the scroll container. */
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.mx-rail-track::-webkit-scrollbar { display: none; }
.mx-rail-track > * { flex: 0 0 auto; scroll-snap-align: start; }
/* Set by scroll-rail.js only while the auto-scroll is driving - snapping would fight a
   sub-pixel drift and pin the rail to the nearest card. */
.mx-rail-track.is-drifting { scroll-snap-type: none; }

/* The track is tabbable so the arrow keys can scroll it, which means it needs a
   focus ring of its own - a focusable element with no visible focus state is a
   keyboard trap in all but name. */
.mx-rail-track:focus-visible { outline: 2px solid var(--mx-nav-gold); outline-offset: 4px; border-radius: 10px; }

/* Fade the ends to say "there is more this way". A MASK rather than a gradient
   overlay: it fades the cards themselves to transparent, so the same rule works on
   any section background without hard-coding a colour to fade into. Only applied
   once JS confirms an overflow, and dropped at whichever end has been reached. */
.mx-rail--scrollable .mx-rail-track {
  --mx-rail-fade-start: 40px;
  --mx-rail-fade-end: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--mx-rail-fade-start), #000 calc(100% - var(--mx-rail-fade-end)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--mx-rail-fade-start), #000 calc(100% - var(--mx-rail-fade-end)), transparent 100%);
}
.mx-rail--at-start .mx-rail-track { --mx-rail-fade-start: 0px; }
.mx-rail--at-end .mx-rail-track { --mx-rail-fade-end: 0px; }

.mx-rail-paddle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--mx-border, rgba(16, 24, 40, .14));
  background: var(--bs-body-bg, #fff);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .14);
  transition: transform .15s ease, opacity .15s ease;
}
.mx-rail-paddle--prev { left: -6px; }
.mx-rail-paddle--next { right: -6px; }
.mx-rail-paddle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-rail-paddle:hover { transform: translateY(-50%) scale(1.06); }
.mx-rail-paddle:focus-visible { outline: 2px solid var(--mx-nav-gold); outline-offset: 2px; }
/* Hidden rather than greyed at the ends: a dimmed arrow still invites a click. */
.mx-rail-paddle:disabled { opacity: 0; pointer-events: none; }

/* On touch, swiping IS the control - paddles would only cover a card. */
@media (hover: none) { .mx-rail-paddle { display: none; } }

/* Card sizing per rail. Fixed widths (not flex-basis) so the snap points line up
   with the step scroll-rail.js takes from the first card. */
.mx-rail--hof .mx-rail-track > * { width: 200px; }
.mx-rail--reviews .mx-rail-track > * { width: min(340px, 80vw); margin: 0; }

/* ── Clamped review quote ─────────────────────────────────────────────────────
   One 375-character review used to set the height of every card in the row. The
   clamp is purely visual - the whole quote stays in the markup, and read-more.js
   adds the control to expand it where there is genuinely more to see. */
.mkt-review-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.mkt-review-quote.is-open {
  -webkit-line-clamp: none;
  line-clamp: none;
  overflow: visible;
}
.mx-readmore {
  align-self: flex-start;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mx-nav-signal-ink, #14307A);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mx-readmore:hover { text-decoration-thickness: 2px; }

/* The base card gives the quote flex:1 so it fills the card. In a rail that would
   strand "Read more" far below the last line of a short quote - here the quote hugs
   its text and the caption's margin-top:auto still pins itself to the bottom. The
   quote's own bottom margin goes too, so "Read more" reads as part of the quote it
   belongs to rather than as a stray link floating between two blocks. */
.mx-rail--reviews .mkt-review-quote { flex: 0 0 auto; margin-bottom: .2rem; }

/* ── Story card (/success-stories) ────────────────────────────────────────────
   The figure bleeds to the card edge rather than sitting inside padding, so the card
   reads as one object - a portrait with the story set beside it - instead of a photo
   pasted into a box. */
/* Two across from a laptop up: one narrow column of sixteen tall cards was a 5,400px scroll with empty margins. */
.pstory-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 1000px) { .pstory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pstory {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 15rem;
  overflow: hidden;
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-nav-card-radius, 14px);
  box-shadow: var(--mx-nav-card-shadow, var(--mx-elevation-sm));
  transition: box-shadow .18s ease;
}
.pstory:hover { box-shadow: var(--mx-elevation); }

/* Full-bleed inside the card: square off the figure's own corners and let it stretch. */
.pstory > .pf {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
}

.pstory-body { padding: 1.4rem 1.55rem 1.5rem; min-width: 0; }
.pstory-head {
  font-family: var(--mx-font-display);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: -.015em;
  color: var(--bs-heading-color);
  margin: 0 0 .6rem;
  text-wrap: balance;
}
/* The narrative is the person speaking, so it takes the editorial serif the rest of the
   site reserves for pull-quotes - and a rule instead of a quotation glyph, which at this
   length would sit oddly against a multi-paragraph story. */
.pstory-quote {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--mx-teal-rgb), .3);
  font-family: var(--mx-font-quote);
  font-size: 1rem; line-height: 1.65;
  color: var(--bs-body-color);
}
.pstory-quote > :first-child { margin-top: 0; }
.pstory-quote > :last-child { margin-bottom: 0; }
.pstory-quote p { margin: 0 0 .7rem; }

.pstory-foot {
  margin-top: 1.8rem; text-align: center;
  font-size: .92rem; color: var(--bs-secondary-color);
}

/* An empty wall is a normal state between cohorts - offer what IS open rather than
   leaving someone at "coming soon" with nothing to click. */
.pstory-empty {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: 2.6rem 1.5rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: 16px;
}
.pstory-empty h2 {
  font-family: var(--mx-font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--bs-heading-color); margin: 0 0 .5rem;
}
.pstory-empty p {
  color: var(--bs-secondary-color); font-size: .95rem; line-height: 1.6;
  margin: 0 auto; max-width: 34rem;
}
.pstory-empty-actions {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.3rem;
}

@media (max-width: 680px) {
  /* Stack: the figure becomes a banner across the top, caption still overlaid on it. */
  .pstory { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* 3:2, not 16:8 - a 2:1 slice of a portrait photograph throws away most of the person. */
  .pstory > .pf { aspect-ratio: 3 / 2; height: auto; }
  .pstory > .pf .pf-initial { inset: 0 0 26% 0; }
  .pstory-body { padding: 1.15rem 1.2rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-hof-card, .pstory { transition: none; }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Blazor error banner                                                     ║
   ║                                                                          ║
   ║  Global, and it has to be. These rules used to live in MainLayout.razor  ║
   ║  .css, where Blazor compiles them to `#blazor-error-ui[b-jjtfpyvy9r]` -  ║
   ║  an attribute only MainLayout's own copy of the element carries.         ║
   ║  MdxHomeLayout and StyleGuideLayout each render the same div, matched    ║
   ║  nothing, and so fell back to `display: block`: a permanent "An          ║
   ║  unhandled error has occurred" strip in normal flow at the foot of the   ║
   ║  home page, with no error having occurred.                               ║
   ║                                                                          ║
   ║  Same trap as Compare.razor.css - scoped CSS silently not reaching an    ║
   ║  element that looks identical in the markup.                             ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
#blazor-error-ui {
  color-scheme: light dark;
  background: var(--bs-card-bg);
  color: var(--bs-body-color);
  border-top: 1px solid var(--bs-border-color);
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, .1);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: .75rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: .75rem;
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  Home page header - pinned to the committed light look                   ║
   ║                                                                          ║
   ║  The home page is deliberately theme-INDEPENDENT: all 15 of its sections ║
   ║  and its footer read --mx-nav-* tokens, which theme-medax.css documents  ║
   ║  as "a committed look, theme-independent for now". Measured in both      ║
   ║  themes, not one of them changes by a single hex.                        ║
   ║                                                                          ║
   ║  <SiteHeader /> is rendered OUTSIDE .mdx-home on purpose, so the page's  ║
   ║  scoped colour rules can't bleed into it - but that also means it reads  ║
   ║  the GLOBAL tokens and was the only thing on the page that flipped. In   ║
   ║  dark mode that gave a #0A1524 header sitting on an #EAEEF2 page: one    ║
   ║  strip from a different design.                                          ║
   ║                                                                          ║
   ║  Redeclaring the tokens on the header subtree (rather than restyling     ║
   ║  each rule inside it) means the nav, the dropdowns and the auth actions  ║
   ║  all follow, and nothing in SiteHeader needs to know where it is.        ║
   ║                                                                          ║
   ║  2026-09: the home page IS theme-aware now, and so are the surface       ║
   ║  tokens below (theme-medax.css flips paper/card/text/muted on dark), so  ║
   ║  this block keeps the header on the SAME paper as the page in both       ║
   ║  themes rather than pinning it light.                                    ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
/* The document ground too, not just the header. The header is translucent
   (color-mix at 82%), so 18% of whatever is behind it shows through - and behind it is
   <body>, which still followed the global theme. That left the header a muddy
   rgb(194,199,203) against an #EAEEF2 page instead of matching it. */
body:has(.mdx-home) {
  background: var(--mx-nav-paper);
}

/* ...and not just the home page: every public page (.mkt-shell) sits on the same
   marketing paper, so a programme landing and the home page read as one site. */
body:has(.mkt-shell) { background: var(--mx-nav-paper); }

/* The signed-in app (MainLayout's .mx-app) shares that SAME paper, so the dashboard,
   CPD log, OSCE list, exam history and every candidate page read as one continuous
   site with the marketing pages - not a cooler grey "app" bolted onto a warm "site".
   Setting the token too (not just the paint) keeps any component that grounds itself
   on --bs-body-bg in step. Admin (.admin-shell) and recruiter (.rsh-shell) keep their
   own denser ground, so they are untouched. */
/* ...opening on the home hero's wash, fading to paper below the page head (Nov 2026), like the public pages. */
body:has(.mx-app) {
  background:
    linear-gradient(180deg, transparent 0, transparent 220px, var(--mx-nav-paper) 440px) top / 100% 440px no-repeat,
    var(--mx-nav-hero-wash) top / 100% 440px no-repeat,
    var(--mx-nav-paper);
}
.mx-app { --bs-body-bg: var(--mx-nav-paper); }
.mkt-shell,
body:has(.mdx-home) .mkt-header,
body:has(.mdx-home) .mkt-footer {
  --bs-body-bg: var(--mx-nav-paper);
  --bs-body-color: var(--mx-nav-text);
  --bs-heading-color: var(--mx-nav-text);
  --bs-secondary-color: var(--mx-nav-muted);
  --bs-secondary-bg: var(--mx-nav-paper-2);
  --bs-tertiary-color: var(--mx-nav-muted);
  --bs-card-bg: var(--mx-nav-card);
  --bs-border-color: var(--mx-nav-hairline);
  --bs-tertiary-bg: var(--mx-nav-inset);
  /* Bootstrap's own bright blue (#1D4ED8) was a second blue beside the logo's royal on every
     public page - links, focus edges, the package cards' featured border. Public pages use the
     royal; the signed-in app keeps its own primary. (Dark re-points these again just below.) */
  --bs-primary: #14307A; --bs-primary-rgb: 20, 48, 122;
  --bs-link-color: #14307A; --bs-link-color-rgb: 20, 48, 122; --bs-link-hover-color: #1B3D96;
  /* Headings in the logo's royal, as on the home page (flips to the light royal on dark). */
  --bs-heading-color: var(--mx-nav-heading);
}
/* Dark public pages: Bootstrap's own blue (#5B8DEF, the app's) was a third blue beside the palette's, and white
   text on it failed contrast (3.2:1). On public pages it becomes the palette's light blue, which the header menus
   also use as TEXT (7.8:1 on the ground), with dark ink on its fills (7.8:1). The signed-in app keeps its own. */
:root[data-bs-theme="dark"] .mkt-shell,
:root[data-bs-theme="dark"] body:has(.mdx-home) .mkt-header,
:root[data-bs-theme="dark"] body:has(.mdx-home) .mkt-footer {
  --bs-primary: #8FA4F0; --bs-primary-rgb: 143, 164, 240; --mx-on-primary: #0B1220;
  --bs-link-color: #A9B9F4; --bs-link-color-rgb: 169, 185, 244; --bs-link-hover-color: #C3CEF7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .mkt-shell,
  :root:not([data-bs-theme="light"]) body:has(.mdx-home) .mkt-header,
  :root:not([data-bs-theme="light"]) body:has(.mdx-home) .mkt-footer {
    --bs-primary: #8FA4F0; --bs-primary-rgb: 143, 164, 240; --mx-on-primary: #0B1220;
    --bs-link-color: #A9B9F4; --bs-link-color-rgb: 169, 185, 244; --bs-link-hover-color: #C3CEF7;
  }
}

/* Bootstrap 5.3's .card re-binds --bs-card-bg to --bs-body-bg ON THE CARD, and on this
   paper that is the ground itself - so every plain .card in the app was cream-on-cream,
   invisible but for its hairline, and each page that noticed patched it alone (the
   dashboard's .card.mfm, the course enrol box…). Pin the card surface once, for both
   shells, so a card is paper (white / navy) everywhere with no per-page fix. */
.mx-app .card,
.mkt-shell .card {
  --bs-card-bg: var(--mx-nav-card);
  --bs-card-border-color: var(--bs-border-color);
}

/* The thin CTA bar under the header and the footer follow the palette too. */
.mkt-shell .mkt-cta-bar { background: var(--mx-nav-band); color: #fff; }
.mkt-shell .mkt-cta-bar:hover { color: #fff; filter: none; }
.mkt-shell .mkt-cta-bar-btn { color: var(--mx-nav-action); }
/* A faint royal tint (paper-2) sets the footer apart from the white page and the home page's features bar. */
.mkt-shell .mkt-footer,
body:has(.mdx-home) .mkt-footer { background: var(--mx-nav-paper-2); }
/* On the home page every action is orange, so the header's own "Start free" follows -
   scoped here rather than changing the global primary, which the whole app still uses. */
body:has(.mdx-home) .mkt-header .btn-primary {
  background: var(--mx-nav-action); border-color: var(--mx-nav-action); color: var(--mx-nav-on-action);
}
body:has(.mdx-home) .mkt-header .btn-primary:hover {
  background: var(--mx-nav-action-hover); border-color: var(--mx-nav-action-hover); color: var(--mx-nav-on-action);
}

/* Enhanced nav is off (App.razor data-enhance-nav="false" - the .NET 10 freeze mitigation), so
   every navigation is a full document load. This opts those loads into the cross-document View
   Transitions API: the browser crossfades old page → new page instead of flashing, so an MPA
   click still reads as an in-app transition. Ignored by browsers without support, and the
   browser itself skips the animation under prefers-reduced-motion. */
@view-transition {
  navigation: auto;
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  WASM boot skeleton + retry (ADR 0011 Phase C, medax-wasm-dashboard-blank)║
   ║  html[data-booting] is set by blazor-boot.js while the runtime starts and  ║
   ║  cleared on success. The exam surfaces (prerender:false islands) are blank ║
   ║  until then, so they show a skeleton; a terminal boot failure shows the    ║
   ║  retry panel instead of a stuck page.                                      ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
.mx-exam-skeleton { display: none; }
:root[data-booting] .mx-exam-skeleton {
  display: block;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--mx-space-5) var(--mx-space-4);
}
.mx-sk-bar,
.mx-sk-line,
.mx-sk-opt {
  background: linear-gradient(90deg,
    var(--bs-secondary-bg) 25%, var(--bs-tertiary-bg, var(--bs-secondary-bg)) 37%, var(--bs-secondary-bg) 63%);
  background-size: 400% 100%;
  border-radius: var(--mx-radius-sm);
  animation: mx-sk-shimmer 1.4s ease-in-out infinite;
}
.mx-sk-bar { height: 2.75rem; border-radius: var(--mx-radius); margin-bottom: var(--mx-space-4); }
.mx-sk-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius-lg);
  padding: var(--mx-space-5);
  display: flex; flex-direction: column; gap: var(--mx-space-3);
}
.mx-sk-line { height: 1rem; }
.mx-sk-line--lg { height: 1.6rem; width: 80%; margin-bottom: var(--mx-space-2); }
.mx-sk-opt { height: 3rem; border-radius: var(--mx-radius); }
.mx-sk-note {
  text-align: center; margin-top: var(--mx-space-4);
  font-size: var(--mx-fs-sm); color: var(--bs-secondary-color);
}
@keyframes mx-sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-sk-bar, .mx-sk-line, .mx-sk-opt { animation: none; }
}

/* Terminal boot-failure panel - the escape hatch from a blank/stuck page. */
.mx-boot-retry {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--mx-space-4);
  background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
}
.mx-boot-retry-card {
  max-width: 26rem; width: 100%;
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--mx-radius-lg);
  padding: var(--mx-space-6);
  box-shadow: var(--mx-elevation-lg, 0 10px 40px rgba(0, 0, 0, .18));
  text-align: center;
}
.mx-boot-retry-title { font-weight: 700; font-size: var(--mx-fs-lg); color: var(--bs-heading-color); }
.mx-boot-retry-text { margin: var(--mx-space-2) 0 var(--mx-space-4); color: var(--bs-secondary-color); font-size: var(--mx-fs-sm); }
.mx-boot-retry-btn {
  border: 0; border-radius: 999px;
  background: var(--mx-action); color: var(--mx-action-on, #fff);
  padding: var(--mx-space-3) var(--mx-space-5);
  font-weight: 700; cursor: pointer;
}
.mx-boot-retry-btn:hover { background: var(--mx-action-hover, var(--mx-action)); }
.sev{ flex:0 0 auto; font-size:.66rem; font-weight:700; letter-spacing:.03em; padding:.2rem .5rem; border-radius:3px; }
.sev--high{ background:rgba(var(--md-coral-rgb, 255,106,82), .16); color:var(--mxo-coral); }
.sev--medium{ background:rgba(var(--md-amber-rgb, 224,164,59), .2); color:var(--mxo-gold); }
.sev--info{ background:rgba(var(--md-fmt-rgb, 58,86,200), .12); color:var(--mxo-blue); }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  CALLOUTS - ":::tip … :::" blocks in authored markdown                ║
   ║  Authored with markdown syntax, rendered by MedaxCalloutExtension     ║
   ║  into tokenised markup, so a note keeps its contrast in both themes   ║
   ║  instead of carrying an inline colour an author picked by eye.        ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
.mx-callout {
  border-left: 3px solid var(--bs-primary);
  border-radius: 0 10px 10px 0;
  padding: .9rem 1.15rem;
  margin: 1.35rem 0;
  background: rgba(var(--bs-primary-rgb), .06);
}
.mx-callout > :last-child { margin-bottom: 0; }
.mx-callout-label {
  font-family: var(--mx-font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 .4rem; color: var(--bs-link-color);
}

.mx-callout--tip { border-left-color: var(--mx-teal); background: rgba(var(--mx-teal-rgb), .08); }
.mx-callout--tip .mx-callout-label { color: var(--mx-teal-ink); }

.mx-callout--warning { border-left-color: var(--bs-warning); background: rgba(var(--bs-warning-rgb), .10); }
.mx-callout--warning .mx-callout-label { color: var(--bs-warning-text-emphasis); }

@media print {
  .mx-callout { background: transparent; border: 1px solid var(--bs-border-color); border-left-width: 3px; }
}

/* Theme switch reveal (medax-theme.js): the new theme is clipped in a growing circle from the switch, so the
   default cross-fade is turned off for the root while that runs. */
html.mx-theme-vt::view-transition-old(root),
html.mx-theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  mx-sidepanel - right-hand detail/compose panel (Enquiries detail,     ║
   ║  Employer recruiter invite). Fits 1440px beside the list; full width    ║
   ║  on phones. Tokens only.                                               ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
.mx-sidepanel-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .35); animation: mx-fade .12s ease; }
.mx-sidepanel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1045; width: min(36rem, 100vw);
  display: flex; flex-direction: column; background: var(--bs-body-bg); border-left: 1px solid var(--bs-border-color);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .5);
}
.mx-sidepanel-head { display: flex; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--bs-border-color); }
.mx-sidepanel-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--bs-heading-color); }
.mx-sidepanel-sub { font-size: .85rem; color: var(--bs-secondary-color); margin-top: .2rem; overflow-wrap: anywhere; }
.mx-sidepanel-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.mx-sidepanel-section h3 { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bs-tertiary-color); margin: 0 0 .45rem; }
.mx-sidepanel-dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: .35rem .8rem; margin: 0; font-size: .9rem; }
.mx-sidepanel-dl dt { font-weight: 600; color: var(--bs-secondary-color); }
.mx-sidepanel-dl dd { margin: 0; overflow-wrap: anywhere; }
.mx-sidepanel-msg { white-space: pre-wrap; background: var(--bs-tertiary-bg); border-radius: 10px; padding: .75rem .9rem; font-size: .9rem; margin: 0; }
.mx-sidepanel-history { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.mx-sidepanel-history li { display: flex; gap: .6rem; }
.mx-sidepanel-history time { color: var(--bs-tertiary-color); white-space: nowrap; min-width: 7.5rem; }
/* Close sits on the LEFT: the toast stack lives top-right and would otherwise cover it. */
.mx-sidepanel-close { flex: none; order: -1; }
.mx-outcome { border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; }
.mx-outcome--ok { background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success-text-emphasis); }
.mx-outcome--fail { background: rgba(var(--bs-danger-rgb), .1); color: var(--bs-danger-text-emphasis); }
@media (max-width: 575.98px) { .mx-sidepanel-dl { grid-template-columns: 1fr; } }

/* Quizzes list: an Edit-as-new-version draft sits next to its live quiz (same title) - set it apart. */
.exq-row-version-draft td { background: rgba(var(--bs-warning-rgb), .07); }
.exq-row-version-draft td:first-child { box-shadow: inset 3px 0 0 var(--bs-warning); }
.exq-version-tag { font-weight: 500; font-style: italic; color: var(--mx-amber-ink); margin-left: .25rem; }

/* A visually-hidden label (position:absolute) inside a scrolling table must stay inside that scroll box - otherwise
   its containing block is the page and a phone-width page scrolls sideways (e.g. the "Remove"/"Actions" headers). */
.table-responsive { position: relative; }

/* M7 / UI: on phones the cookie notice is a compact bar - short copy, buttons stacked at the side -
   not a third of the screen. */
@media (max-width: 575.98px) {
    .mx-cookie-inner { padding: .6rem 16px; gap: .5rem; flex-wrap: nowrap; align-items: center; }
    .mx-cookie-text { font-size: .75rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .mx-cookie-actions { flex-direction: column; gap: .35rem; }
    .mx-cookie-actions .btn { padding: .25rem .6rem; font-size: .75rem; white-space: nowrap; }
}
