/* ==========================================================================
   Voluntary Medicare Society - design system
   1 fonts  2 tokens  3 base  4 type  5 buttons  6 header/nav  7 hero
   8 sections  9 footer  10 mobile CTA  11 motion  12 responsive
   Editorial + human-centred: few cards, large type, generous rhythm.
   ========================================================================== */

/* ---------- 1. fonts: Google Fonts, self-hosted (latin) ----------
   Poppins Bold (700) = every headline.  Figtree Regular (400) = every paragraph; the same variable
   file also supplies the 500-700 weights used by buttons, navigation and labels. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/figtree-400-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. tokens ---------- */
:root {
    /* colour: deep = primary actions, footer, impact band. royal = links/icons/emphasis. mist = alternate sections. */
    --deep: #34196b;
    --royal: #4b2a91;
    --mist: #f5f1fc;
    --mist-2: #e9e1f8;
    --ink: #1b1838;
    --muted: #46435f;             /* secondary text: >= 7:1 (AAA) on white, mist and mist-2 */
    --line: #e2dcef;
    --white: #fff;
    --on-deep: #ffffff;
    --on-deep-muted: #d6d0f0;
    --scrim: 40, 18, 80;          /* rgb of the purple overlay on the desktop hero photo */
    --brand-rgb: 52, 25, 107;     /* rgb of --deep: shadows and soft washes */
    --band-end: #44228a;          /* far end of the dark gradient bands (impact, about) */
    --scrim-text-alpha: .8;       /* overlay strength behind the hero copy: keeps white text >= 7:1 on ANY photo */

    /* type: Poppins Bold for headlines, Figtree Regular for paragraphs */
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', 'Figtree', system-ui, sans-serif;
    --fs-h1: clamp(2.25rem, 1.2rem + 3.1vw, 3.5rem);        /* 36 -> 56 (Poppins Bold is wide) */
    --fs-h2: clamp(1.75rem, 1.1rem + 1.7vw, 2.375rem);      /* 28 -> 38 */
    --fs-h3: clamp(1.25rem, 1rem + .7vw, 1.5rem);           /* 20 -> 24 */
    --fs-h4: 1.125rem;                                    /* 18 */
    --fs-body: 1.0625rem;                                 /* 17 */
    --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);   /* 17 -> 20 */
    --fs-sm: 1rem;                                        /* 16: card text, captions, lists */
    --fs-xs: .9375rem;                                    /* 15: smallest running text (breadcrumbs, notes) */
    --fs-ui: .9375rem;                                    /* 15: navigation and buttons (kept compact so the desktop menu fits) */
    --fs-eyebrow: .8125rem;                               /* 13: small capitals stay readable on phones */
    --fs-stat: clamp(1.75rem, 1.2rem + 1.5vw, 2.375rem);   /* 28 -> 38 */

    /* spacing scale (4px base) - use these, not one-off margins */
    --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 7.5rem;
    --section-y: clamp(4rem, 3rem + 5vw, 7rem);           /* 64 -> 112 */
    --gutter: 1.5rem;

    --radius: 24px;        /* photos, tinted panels and feature blocks */
    --radius-card: 20px;   /* every card: white, 1px line border, soft shadow */
    --radius-sm: 14px;     /* rows and small boxes inside a card */
    --shadow-sm: 0 6px 18px -10px rgba(var(--brand-rgb), .3);
    --shadow: 0 18px 40px -20px rgba(var(--brand-rgb), .35);
    --header-h: 76px;
    --header-h-compact: 64px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2b. colour themes ----------
   The tokens above are the ALL-PURPLE version (data-theme="purple"; a copy of the whole stylesheet as it was on 2026-10-26 is in
   resources/archive/). The default theme "blend" uses the first design's indigo (#211b5f) for what holds the page up and the
   disability-awareness purple for what draws the eye:
     indigo (--deep)  primary buttons, the footer, the dark bands, hero overlay, table heads, dark text on light chips
     purple (--royal) links, icons, eyebrows, focus rings, borders on quotes and cards, hover states, the far end of the bands
   Staff switch it in /admin (Page content > Colour theme); a signed-in staff member can preview the other with ?theme=purple. */
:root[data-theme="blend"] {
    --deep: #211b5f;
    --ink: #17133f;
    --scrim: 24, 19, 78;
    --brand-rgb: 33, 27, 95;
    --band-end: #4b2a91;
    --on-deep-muted: #d4d1f2;
}

/* ---------- 3. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute always wins over a component's display */
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
.impact :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-3); top: -4rem; z-index: 100; background: var(--deep); color: #fff; padding: var(--s-3) var(--s-4); border-radius: 8px; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xs { width: .85em; height: .85em; }
.section { padding-block: var(--section-y); }
.tint { background: var(--mist); }

/* ---------- 4. typography ---------- */
h1, h2, h3, .h2, .stat-num, .pillar-num, .footer-h, .brand-text { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.025em; }
.h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.02em; }
.h2-sm { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.accent { color: var(--royal); }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); margin-bottom: var(--s-4); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
p.eyebrow + p.eyebrow { margin-top: 0; }

/* ---------- 5. buttons: primary / secondary / text ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-6); border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: var(--fs-ui); line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--royal); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-secondary:hover { background: var(--deep); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 var(--s-5); }
.btn-lg { min-height: 56px; padding: 0 var(--s-7); font-size: 1rem; }
.btn-text, .btn.btn-text { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--royal); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.btn-text:hover { text-decoration: underline; transform: none; background: none; color: var(--deep); }
.btn-text .icon { width: 1em; height: 1em; }
.btn.btn-text { white-space: normal; text-align: left; justify-content: flex-start; } /* text links wrap; only real buttons stay on one line */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.icon-btn, .round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--deep); transition: background .2s, color .2s, border-color .2s; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; }
.round-btn .icon, .icon-btn .icon { width: 20px; height: 20px; }
.round-btn:hover, .icon-btn:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

/* ---------- 6. header + navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .2s, box-shadow .2s; }
.site-header.is-compact { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(var(--brand-rgb), .5); }
/* Overlay mode (pages that open with a hero): transparent over the hero, fixed, turns solid once scrolled */
.site-header--overlay { position: fixed; left: 0; right: 0; }
.site-header--overlay:not(.is-compact) { background: transparent; }
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); transition: height .25s var(--ease); }
.is-compact .header-inner { height: var(--header-h-compact); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--deep); flex: none; }
.brand-mark { height: 46px; width: auto; transition: height .25s var(--ease); }
.brand-mark--light { display: none; }
.is-compact .brand-mark { height: 40px; }
.brand-text { display: flex; flex-direction: column; font-size: .7rem; letter-spacing: .15em; line-height: 1.25; text-transform: uppercase; }
.brand-light { color: #fff; }

.primary-nav { margin-left: auto; }
.drawer-head, .drawer-cta { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3); border: 0; background: none; border-radius: 10px; font-size: var(--fs-ui); font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--royal); background: var(--mist); }
.nav-link.is-active { color: var(--royal); font-weight: 600; }
.nav-link.is-active::after { content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-link-help { margin-inline: var(--s-2); padding-inline: var(--s-4); border: 1.5px solid var(--royal); border-radius: 999px; color: var(--royal); font-weight: 600; }
.nav-link-help.is-active::after { display: none; }
.nav-link-help.is-active { background: var(--mist); }
.has-menu { position: relative; }
.has-menu > .nav-link .icon { transition: transform .2s; }
.has-menu.open > .nav-link .icon { transform: rotate(180deg); }
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: var(--s-2); display: none; }
.has-menu.open > .submenu { display: block; }
.submenu a { color: var(--ink); display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: 8px; font-size: var(--fs-sm); text-decoration: none; }
.submenu a:hover { background: var(--mist); color: var(--royal); }
.submenu a[aria-current='page'] { color: var(--royal); font-weight: 600; background: var(--mist); }
@media (hover: hover) and (min-width: 1025px) {
    /* Hover dropdowns that survive the trip from the button to the panel:
       1. the panel stays rendered but invisible, and hides only after a short delay, so a diagonal move that
          clips the edge does not snap it shut (opening is instant);
       2. an invisible bridge (part of the panel, so it keeps .has-menu:hover) spans the gap above it. */
    .submenu { display: block; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .2s; transition-delay: .2s; }
    .has-menu:hover > .submenu, .has-menu.open > .submenu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; z-index: 2; }
    .submenu::before { content: ''; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 16px; }
}
.header-actions { margin-left: var(--s-2); }
.nav-toggle { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20, 15, 60, .55); }

/* ---------- 7. hero ----------
   Phones/tablets: copy on a light background with the photo stacked underneath (text never sits on a photo).
   Desktop (>=1025px): full-bleed photo behind the copy, under a purple scrim that guarantees text contrast. */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); }
.hero-inner { position: relative; z-index: 1; order: 1; padding-block: var(--s-8) var(--s-6); }
.has-overlay-header .hero-inner { padding-top: calc(var(--header-h) + var(--s-6)); } /* header is fixed, so reserve its height */
.hero-copy { max-width: 700px; }
.hero h1 { margin-bottom: var(--s-5); font-size: clamp(2rem, 1rem + 2.7vw, 3.25rem); } /* three short sentences: kept to three lines */
.hero h1 .accent { display: inline; }
.hero .lead { max-width: 25em; margin-bottom: var(--s-6); color: #45415f; }
.hero-tagline { margin: calc(var(--s-2) * -1) 0 var(--s-4); font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.3; color: var(--royal); }
.hero-tagline strong { font-weight: 700; }
.hero-media { order: 2; height: clamp(14rem, 58vw, 28rem); }
.hero-media .photo { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto !important; }
.watch { display: none; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-5) var(--s-2) var(--s-2); border-radius: 999px; background: rgba(var(--scrim), .78); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.watch-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--deep); }
.watch-btn .icon { width: 18px; height: 18px; margin-left: 2px; }
.watch:hover .watch-btn { background: var(--mist-2); }

/* photo + placeholder */
.photo { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.photo-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--mist) 0%, #ddd2f3 55%, #cdbfeb 100%); overflow: hidden; }
.photo-placeholder img { width: 44%; max-width: 260px; height: auto; opacity: .2; }
.hero-media .photo-placeholder { border-radius: 0; }
.hero-media .photo-placeholder img { width: 36%; max-width: 380px; }

/* ---------- 8. sections ---------- */
/* stats: numbers carry the weight, no icons or boxes */
.stats-band { padding-block: var(--s-7) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: var(--s-1); padding: 0 var(--s-5); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-size: var(--fs-stat); line-height: 1.1; letter-spacing: -.02em; color: var(--deep); }
.stat-label { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.stats-band + .section { padding-top: var(--s-9); }

.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: end; margin-bottom: var(--s-8); }
.split-head-side p { color: var(--muted); margin-bottom: var(--s-3); max-width: 34em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-7); }
.section-head .lead { margin-top: var(--s-4); max-width: 36em; }
.section-head.stack { display: block; max-width: 820px; }

/* pillars: numbered, editorial */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; }
.pillar-media { width: 100%; overflow: hidden; border-radius: var(--radius); }
.pillar-media .photo { transition: transform .6s var(--ease); }
.pillar:hover .pillar-media .photo { transform: scale(1.03); }
.pillar-num { font-size: 2.75rem; line-height: 1; color: #6f56b8; margin: var(--s-5) 0 var(--s-2); }
.pillar h3 { margin-bottom: var(--s-3); }
.pillar p:not(.pillar-num) { color: var(--muted); margin-bottom: var(--s-3); flex: 1; }
.pillar p + p { margin-top: 0; }

/* stories */
.stories { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
.story-photo .photo { width: 100%; border-radius: var(--radius); }
.stories-body .h2 { margin-bottom: var(--s-6); }
.story h3 { margin-bottom: var(--s-4); }
.story p:not(.story-by) { font-size: var(--fs-lead); color: var(--text-soft, #3a3757); max-width: 34em; }
.story .story-by { margin-block: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.carousel-ctrl { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.counter { margin-right: auto; font-size: var(--fs-sm); letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
html:not(.js) .carousel-ctrl { display: none; }
html:not(.js) .story + .story { margin-top: var(--s-7); }
html:not(.js) .story-photo + .story-photo { margin-top: var(--s-4); }

/* programmes: one feature + list */
.programmes { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: start; }
.prog-feature-media { overflow: hidden; border-radius: var(--radius); margin-bottom: var(--s-5); }
.prog-feature h3 { margin-bottom: var(--s-3); }
.prog-feature p { color: var(--muted); margin-bottom: var(--s-3); max-width: 34em; }
.prog-list li + li { border-top: 1px solid var(--line); }
.prog-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5); align-items: center; padding: var(--s-5) var(--s-3); margin-inline: calc(var(--s-3) * -1); border-radius: var(--radius-sm); text-decoration: none; transition: background .2s, box-shadow .2s; }
.prog-list li:first-child .prog-row { padding-top: var(--s-3); }
.prog-row:hover { background: var(--mist); }
.prog-row-media .photo { border-radius: var(--radius-sm); }
.prog-row h3 { font-size: var(--fs-h4); line-height: 1.3; margin-bottom: var(--s-2); }
.prog-row:hover h3 { color: var(--royal); }
.prog-row-body > span { display: block; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }

/* impact band */
.impact { background: linear-gradient(120deg, var(--deep) 0%, var(--band-end) 100%); color: var(--on-deep); padding-block: var(--s-9); }
.impact-inner { display: grid; grid-template-columns: 1fr 2.3fr; gap: var(--s-8); align-items: center; }
.impact h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.02em; max-width: 12em; }
.impact-lead { margin-top: var(--s-4); color: var(--on-deep-muted); font-size: var(--fs-sm); max-width: 28em; }
.stats-dark .stat { border-color: rgba(255, 255, 255, .22); }
.stats-dark .stat-num { color: var(--on-deep); }
.stats-dark .stat-label { color: var(--on-deep-muted); }

/* support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; }
.support-lead .h2 { margin-bottom: var(--s-4); }
.support-lead .lead { margin-bottom: var(--s-6); max-width: 30em; }
.support-list li { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.support-list li:last-child { border-bottom: 1px solid var(--line); }
.support-list h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.support-list p { color: var(--muted); max-width: 34em; }

/* leadership */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-7) var(--s-6); }
.leader { border-top: 2px solid var(--deep); padding-top: var(--s-5); }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-4); border-radius: 50%; background: #fff; color: var(--royal); font-weight: 700; font-size: 1.125rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1.5px var(--mist-2); }
.avatar-photo { object-fit: cover; }
.leader h3 { font-size: 1.0625rem; letter-spacing: 0; line-height: 1.35; margin-bottom: var(--s-1); }
.leader .role { font-size: var(--fs-sm); font-weight: 600; color: var(--royal); margin-bottom: var(--s-3); }
.leader .bio { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }

/* centres */
.founder-message { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-6); align-items: start; margin: 0; padding: var(--s-7); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.founder-message-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.founder-message h3 { margin-bottom: var(--s-3); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.founder-message blockquote { margin: 0; }
.founder-message blockquote p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); max-width: 46em; }
.founder-message figcaption { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
.founder-message figcaption strong { color: var(--deep); }
@media (max-width: 600px) {
    .founder-message { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
    .founder-message-photo { width: 88px; height: 88px; }
}
.centres { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
.centre-main { padding: var(--s-7); border-radius: var(--radius); background: var(--mist); }
.centre-main h3 { margin-bottom: var(--s-5); }
.centre-main address { margin-bottom: var(--s-6); }
.centre-main address p { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0 0 var(--s-3); }
.centre-main address .icon { margin-top: .3em; color: var(--royal); }
.centre-main a:not(.btn) { color: var(--ink); text-decoration-color: var(--royal); }
.centre-list li { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.centre-list li:first-child { padding-top: 0; border-top: 0; }
.centre h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.centre address p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }
.centre-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); margin-top: var(--s-2) !important; }
.centre-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--royal); font-weight: 600; text-decoration: none; }
.centre-links a:hover { text-decoration: underline; }
.centre-links .icon { width: 1.05em; height: 1.05em; }

.directory { margin-top: var(--s-8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.directory summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; cursor: pointer; list-style: none; font-weight: 600; }
.directory summary::-webkit-details-marker { display: none; }
.directory summary .icon { color: var(--royal); transition: transform .2s; }
.directory[open] summary .icon { transform: rotate(45deg); }
.directory dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s-7); padding-bottom: var(--s-5); }
.directory dl > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-1) 0; border-bottom: 1px solid var(--line); }
.directory dt { font-size: var(--fs-sm); font-weight: 500; }
.directory dt span { color: var(--muted); font-weight: 400; }
.directory dd a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--royal); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.directory dd a:hover { text-decoration: underline; }

/* faq accordion */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-9); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.faq-intro .lead { margin: var(--s-4) 0 var(--s-3); }
.accordion-item { border-bottom: 1px solid #d8cfee; }
.accordion-item:first-child { border-top: 1px solid #d8cfee; }
.accordion-item h3 { font: inherit; letter-spacing: 0; }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); width: 100%; min-height: 64px; padding: var(--s-4) 0; border: 0; background: none; text-align: left; font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.accordion-trigger:hover { color: var(--royal); }
.accordion-trigger .icon { color: var(--royal); transition: transform .25s var(--ease); }
.accordion-trigger[aria-expanded='true'] .icon { transform: rotate(45deg); }
.accordion-panel { padding-bottom: var(--s-5); }
.accordion-panel p { color: var(--text-soft, #3a3757); max-width: 40em; }
html:not(.js) .accordion-panel[hidden] { display: block; }

/* final CTA: three journeys */
.cta .h2 { margin-bottom: var(--s-8); }
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); }
.journey { display: flex; flex-direction: column; align-items: flex-start; padding: 0 var(--s-6); border-left: 1px solid var(--line); }
.journey:first-child { padding-left: 0; border-left: 0; }
.journey p:not(.eyebrow) { flex: 1; margin-bottom: var(--s-5); font-size: var(--fs-lead); line-height: 1.5; }
.cta-more { margin-top: var(--s-8); text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.cta-more a { display: inline-block; padding: var(--s-2) var(--s-1); color: var(--royal); font-weight: 600; }

/* ---------- 9. footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-top: var(--s-9); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1.15fr 1fr 1.5fr; gap: var(--s-7); padding-bottom: var(--s-8); }
.footer-brand p { margin: var(--s-5) 0; max-width: 32em; font-size: var(--fs-sm); line-height: 1.65; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: var(--s-4); }
.site-footer a { color: var(--on-deep-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer nav a, .footer-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.footer-contact p { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0 0 var(--s-3); font-size: 1rem; line-height: 1.55; }
.footer-contact .icon { width: 1.1em; height: 1.1em; margin-top: .35em; color: #b9aef0; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 32px; }
.social { display: flex; gap: var(--s-3); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.social a:hover { background: #fff; color: var(--deep); }
.social .icon { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-5) 0 var(--s-6); border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-xs); }

/* ---------- 10. mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- 11. motion: restrained reveal, only once JS is confirmed running ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
/* AOS-style element animations (public/js/vms.js). Hidden only under .reveal-ready; data-aos is removed after the
   animation, so these rules never fight hover transforms. Horizontal slides become fade-up below 1025px (no sideways scroll). */
.reveal-ready [data-aos] { opacity: 0; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal-ready [data-aos='fade-up'] { transform: translateY(24px); }
.reveal-ready [data-aos='fade-down'] { transform: translateY(-24px); }
.reveal-ready [data-aos='fade-left'] { transform: translateX(28px); }
.reveal-ready [data-aos='fade-right'] { transform: translateX(-28px); }
.reveal-ready [data-aos='zoom-in'] { transform: scale(.94); }
.reveal-ready [data-aos].is-visible { opacity: 1; transform: none; }
main { overflow-x: clip; } /* belt and braces: a mid-animation slide can never widen the page */
@media (max-width: 1024px) {
    .reveal-ready [data-aos='fade-left'], .reveal-ready [data-aos='fade-right'] { transform: translateY(24px); }
}
@media print {
    .reveal-ready [data-reveal], .reveal-ready [data-aos] { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal-ready [data-reveal], .reveal-ready [data-aos] { opacity: 1 !important; transform: none !important; }
    /* no fade or slide, but keep the dropdown's close delay: a delay is not motion */
    .submenu { transition: visibility 0s linear .2s !important; }
    .has-menu:hover > .submenu, .has-menu.open > .submenu { transition-delay: 0s !important; }
}

/* ---------- desktop (>=1025px): full-bleed hero + transparent header ---------- */
@media (min-width: 1025px) {
    .hero { display: block; background: var(--deep); color: #fff; }
    .hero-media { position: absolute; inset: 0; height: auto; }
    .hero-media::after { content: ''; position: absolute; inset: 0; background:
        linear-gradient(180deg, rgba(var(--scrim), .75) 0, rgba(var(--scrim), .35) 120px, rgba(var(--scrim), 0) 240px),
        linear-gradient(90deg, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), var(--scrim-text-alpha)) 50%, rgba(var(--scrim), .45) 100%); }
    .hero h1, .hero .lead, .hero .eyebrow, .site-header--overlay:not(.is-compact) .nav-link { text-shadow: 0 1px 3px rgba(12, 8, 40, .45); }
    .hero-inner { display: flex; align-items: center; min-height: clamp(36rem, 50vw, 46rem); padding-block: var(--s-8); }
    .has-overlay-header .hero-inner { padding-top: calc(var(--header-h) + var(--s-8)); }
    .hero .eyebrow, .hero h1, .hero-tagline { color: #fff; }
    .hero-tagline { text-shadow: 0 1px 3px rgba(12, 8, 40, .45); }
    .hero h1 .accent { color: #d0c2ff; }
    .hero .lead { color: #f0edfb; }
    .hero .btn-primary { background: #fff; color: var(--deep); }
    .hero .btn-primary:hover { background: var(--mist-2); }
    .hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
    .hero .btn-secondary:hover { background: #fff; color: var(--deep); }
    .hero :focus-visible { outline-color: #fff; }
    .watch { display: inline-flex; position: absolute; right: var(--gutter); bottom: var(--s-7); }
    /* no photo yet: dark branded panel with a white watermark so the white copy is still readable */
    .hero-media .photo-placeholder { place-items: center end; padding-right: 9%; background: linear-gradient(120deg, var(--band-end) 0%, #4e2899 60%, #4b2a91 100%); }
    .hero-media .photo-placeholder img { width: 30%; max-width: 380px; opacity: .1; filter: brightness(0) invert(1); }

    /* header while transparent over the hero */
    .site-header--overlay:not(.is-compact) .brand { color: #fff; }
    .site-header--overlay:not(.is-compact) .brand-mark--dark { display: none; }
    .site-header--overlay:not(.is-compact) .brand-mark--light { display: block; }
    .site-header--overlay:not(.is-compact) .nav-link,
    .site-header--overlay:not(.is-compact) .nav-link.is-active { color: #fff; }
    .site-header--overlay:not(.is-compact) .nav-link:hover,
    .site-header--overlay:not(.is-compact) .has-menu.open > .nav-link { background: rgba(255, 255, 255, .16); color: #fff; }
    .site-header--overlay:not(.is-compact) .nav-link-help { border-color: #fff; }
    .site-header--overlay:not(.is-compact) .nav-link-help.is-active { background: rgba(255, 255, 255, .18); }
    .site-header--overlay:not(.is-compact) .header-actions .btn-primary { background: #fff; color: var(--deep); }
    .site-header--overlay:not(.is-compact) .header-actions .btn-primary:hover { background: var(--mist-2); }
    .site-header--overlay:not(.is-compact) :focus-visible { outline-color: #fff; }
}

/* ---------- 12. responsive ---------- */
@media (max-width: 1180px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .leaders { grid-template-columns: repeat(2, 1fr); }
    .nav-link { padding-inline: var(--s-2); }
}

/* below 1025px the nav becomes an accessible drawer */
@media (max-width: 1024px) {
    :root { --gutter: 1.25rem; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: inline-grid; }
    .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(92vw, 400px); margin: 0; padding: 0 var(--gutter) var(--s-5); background: #fff; overflow-y: auto; overscroll-behavior: contain; box-shadow: -24px 0 48px -24px rgba(20, 15, 60, .5); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
    .primary-nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
    html.nav-open { overflow: hidden; }
    .drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); }
    .drawer-title { font-weight: 600; }
    .nav-list { display: block; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-link { width: 100%; justify-content: space-between; min-height: 56px; padding-inline: 0; border-radius: 0; font-size: var(--fs-h4); }
    .nav-link:hover { background: none; }
    .nav-link.is-active::after { left: 0; right: auto; width: 28px; bottom: 8px; }
    .nav-link-help { margin: 0; border: 0; border-radius: 0; background: none !important; }
    .nav-link-help.is-active::after { display: block; }
    .submenu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 var(--s-3) var(--s-4); }
    .submenu a { min-height: 48px; font-size: 1rem; }
    .drawer-cta { display: block; margin-top: auto; padding-top: var(--s-6); }
    .drawer-cta .btn { width: 100%; min-height: 56px; }

    .split-head, .stories, .programmes, .support-grid, .centres, .faq-grid { grid-template-columns: 1fr; }
    .split-head { gap: var(--s-4); margin-bottom: var(--s-7); }
    .stories, .programmes { gap: var(--s-6); }
    .support-grid, .faq-grid { gap: var(--s-7); }
    .faq-intro { position: static; }
    .impact-inner { grid-template-columns: 1fr; gap: var(--s-6); }
    .impact h2 { max-width: none; }
    .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .pillars { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
    .pillar:last-child { grid-column: 1 / -1; }
    .directory dl { grid-template-columns: 1fr 1fr; }
    .journeys { grid-template-columns: 1fr; row-gap: var(--s-6); }
    .journey, .journey:first-child { padding: 0 0 var(--s-6); border-left: 0; border-bottom: 1px solid var(--line); }
    .journey:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; --header-h-compact: 60px; --gutter: 1rem; }
    .header-actions { display: none; }
    .nav-toggle { margin-left: auto; }
    .brand-mark { height: 40px; }
    .brand-text { font-size: .66rem; }
    .btn-row .btn { flex: 1 1 100%; }
    .stats-band + .section { padding-top: var(--s-8); }
    .stat, .stat:first-child { padding-inline: var(--s-3); }
    .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .pillars { grid-template-columns: 1fr; }
    .prog-row { grid-template-columns: 112px 1fr; gap: var(--s-4); }
    .centre-main { padding: var(--s-6) var(--s-5); }
    .leaders { grid-template-columns: 1fr; gap: 0; }
    .leader { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
    .leader:first-child { border-top: 2px solid var(--deep); }
    .leader .avatar { grid-row: span 3; width: 56px; height: 56px; margin: 0; }
    .directory dl { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
    .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    body { padding-bottom: 5rem; }
    .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -10px 28px -14px rgba(var(--brand-rgb), .4); }
    .mobile-cta .btn { min-height: 48px; padding: 0 var(--s-2); gap: var(--s-2); font-size: .9375rem; white-space: nowrap; }
    .mobile-cta .btn .icon { width: 1.1em; height: 1.1em; flex: none; }
    html.nav-open .mobile-cta { display: none; }
}

/* ==========================================================================
   13. inner-page hero + governing body page
   ========================================================================== */
.breadcrumb { margin-bottom: var(--s-6); font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) 0; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '›'; margin-inline: var(--s-2); color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--royal); text-decoration: underline; }
.breadcrumb [aria-current='page'] { color: var(--ink); font-weight: 600; }

.page-hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); padding-block: var(--s-7) var(--s-8); }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s-8); align-items: center; }
.page-hero h1 { margin-bottom: var(--s-5); }
.page-hero .lead { max-width: 30em; }
.page-hero + .section { padding-top: var(--s-8); }
.page-hero-media { position: relative; display: flex; overflow: hidden; border-radius: var(--radius); min-height: 300px; background: var(--mist-2); }
.page-hero-media .photo { flex: 1; width: 100%; height: 100%; min-height: 300px; border-radius: 0; object-fit: cover; aspect-ratio: auto !important; }
.hero-quote { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; display: flex; align-items: center; margin: 0; padding: var(--s-6); background: linear-gradient(160deg, var(--deep) 0%, var(--royal) 100%); color: #fff; }
.hero-quote blockquote { margin: 0; }
.hero-quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, .9rem + .8vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; }
.hero-quote p::after { content: ''; display: block; width: 44px; height: 3px; margin-top: var(--s-4); border-radius: 3px; background: #d0c2ff; }

.section-close { padding-block: 0 var(--section-y); }
.closing { display: grid; grid-template-columns: 1.1fr 1fr .9fr; align-items: center; background: var(--mist); border-radius: var(--radius); padding: var(--s-7) var(--s-7); }
.closing > * { padding-inline: var(--s-6); }
.closing > * + * { border-left: 1px solid #d8cfee; }
.closing > :first-child { padding-left: 0; }
.closing > :last-child { padding-right: 0; }
.closing .h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.closing p:not(.eyebrow) { color: var(--text-soft, #3a3757); margin: 0; }
.closing-tags { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); text-align: center; }
.closing-tags .icon { width: 56px; height: 56px; color: var(--royal); }
.closing-tags p { font-weight: 600; color: var(--deep); font-size: var(--fs-sm); }
.closing-tags p span { margin-inline: var(--s-2); color: var(--muted); }
.closing-tags b { font-weight: inherit; white-space: nowrap; }

@media (max-width: 1024px) {
    .page-hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
    .closing { grid-template-columns: 1fr; padding: var(--s-6); row-gap: var(--s-5); }
    .closing > *, .closing > :first-child, .closing > :last-child { padding-inline: 0; }
    .closing > * + * { border-left: 0; border-top: 1px solid #d8cfee; padding-top: var(--s-5); }
    .closing-tags { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
    .page-hero { padding-block: var(--s-6) var(--s-7); }
    .page-hero-media { flex-direction: column; min-height: 0; }
    .page-hero-media .photo { min-height: 200px; flex: none; height: 200px; }
    .hero-quote { position: static; width: auto; padding: var(--s-5); }
}

/* =========================================================
   GOVERNING BODY
   ========================================================= */

.governing-members {
    overflow: hidden;
}

.governing-members-head {
    margin-bottom: 3rem;
}

/* =========================================================
   GRID
   ========================================================= */

/*
 * Desktop: 3 columns
 * Tablet (<= 900px): 2 columns
 * Mobile (<= 600px): 1 column
 */

.members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-card-wrap {
    min-width: 0;
}

/* =========================================================
   CARD
   ========================================================= */

.member-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(92, 64, 170, 0.14);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(35, 28, 76, 0.06);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(92, 64, 170, 0.28);
    box-shadow: 0 18px 40px rgba(35, 28, 76, 0.12);
}

.member-card:focus-within {
    border-color: rgba(92, 64, 170, 0.4);
}

/* =========================================================
   IMAGE
   ========================================================= */

.member-card-media {
    position: relative;
    aspect-ratio: 4 / 4.8;
    overflow: hidden;
    background: #f3f1f8;
}

.member-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1);
    transition:
        transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.member-card:hover .member-card-image,
.member-card:focus-within .member-card-image {
    transform: scale(1.035);
}

.member-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: #5b3ca4;
    background: #f3f1f8;
}

/* =========================================================
   HOVER / FOCUS OVERLAY
   ========================================================= */

.member-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    background:
        linear-gradient(
            to top,
            rgba(25, 18, 54, 0.94) 0%,
            rgba(35, 25, 70, 0.78) 32%,
            rgba(35, 25, 70, 0.18) 68%,
            rgba(35, 25, 70, 0) 100%
        );
    opacity: 0;
    transition: opacity 220ms ease;
}

.member-card:hover .member-card-overlay,
.member-card:focus-within .member-card-overlay {
    opacity: 1;
}

.member-card-overlay-content {
    width: 100%;
    transform: translateY(12px);
    transition: transform 220ms ease;
}

.member-card:hover .member-card-overlay-content,
.member-card:focus-within .member-card-overlay-content {
    transform: translateY(0);
}

.member-card-summary {
    max-width: 34rem;
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* =========================================================
   VIEW PROFILE CTA
   ========================================================= */

.member-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.member-card-arrow {
    display: inline-block;
    transition: transform 180ms ease;
}

.member-card:hover .member-card-arrow,
.member-card:focus-within .member-card-arrow {
    transform: translateX(3px);
}

/* the button sits on a dark overlay: default purple focus ring would vanish */
.member-card-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* =========================================================
   CARD INFORMATION
   ========================================================= */

.member-card-info {
    min-height: 105px;
    padding: 1.15rem 1.2rem 1.25rem;
}

.member-card-info h3 {
    margin: 0 0 0.35rem;
    color: #1b1230;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

.member-card-info .role {
    margin: 0;
    color: #5b3ca4;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
}

/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1200px) {

    .members {
        gap: 1.35rem;
    }

    .member-card-info {
        min-height: 100px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .governing-members-head {
        margin-bottom: 2.25rem;
    }

    .members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .member-card-media {
        aspect-ratio: 4 / 4.7;
    }

    .member-card-info {
        min-height: 96px;
        padding: 1rem 1.1rem 1.15rem;
    }

    .member-card-info h3 {
        font-size: 1.05rem;
    }
}

/* =========================================================
   TOUCH DEVICES
   Details remain visible without hover.
   ========================================================= */

@media (hover: none) {

    .member-card {
        transform: none;
    }

    .member-card-overlay {
        position: relative;
        inset: auto;
        display: block;
        padding: 1rem 1.1rem;
        opacity: 1;
        background: #241545;
    }

    .member-card-overlay-content {
        transform: none;
    }

    .member-card-summary {
        margin-bottom: 0.85rem;
    }

    .member-card-image {
        transform: none;
    }

    /*
     * The overlay is now an ordinary block UNDER the photo. The photo therefore must not sit in a
     * fixed-ratio, overflow-clipped box (that clipped the summary and the View Profile button away, so
     * phones could not open any profile). The ".member-card" prefix beats the later per-breakpoint
     * aspect-ratio rules on .member-card-media; the card itself still clips the rounded corners.
     */
    .member-card .member-card-media {
        aspect-ratio: auto;
        overflow: visible;
    }

    .member-card .member-card-image,
    .member-card .member-card-placeholder {
        height: auto;
        aspect-ratio: 4 / 4.6;
    }

    .member-card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(35, 28, 76, 0.06);
    }

    .member-card:hover .member-card-image {
        transform: none;
    }

    .member-card:hover .member-card-overlay-content {
        transform: none;
    }

    .member-card:hover .member-card-arrow {
        transform: none;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .governing-members-head {
        margin-bottom: 1.75rem;
    }

    .members {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .member-card-media {
        aspect-ratio: 4 / 4.6;
    }

    .member-card-info {
        min-height: auto;
        padding: 1rem 1.1rem 1.15rem;
    }

    .member-card-info h3 {
        font-size: 1.1rem;
    }

    .member-card-info .role {
        font-size: 0.88rem;
    }

    .member-card-overlay {
        padding: 1rem 1.1rem;
    }

    .member-card-summary {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .member-card-media {
        aspect-ratio: 4 / 4.5;
    }

    .member-card-info {
        padding: 0.9rem 1rem 1rem;
    }

    .member-card-overlay {
        padding: 0.9rem 1rem;
    }

    .member-card-summary {
        font-size: 0.84rem;
    }

    .member-card-action {
        font-size: 0.875rem;
    }
}

/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

@media (hover: hover) {

    .member-card:focus-within {
        transform: translateY(-5px);
    }

    .member-card:focus-within .member-card-overlay {
        opacity: 1;
    }

    .member-card:focus-within .member-card-overlay-content {
        transform: translateY(0);
    }

    .member-card:focus-within .member-card-image {
        transform: scale(1.035);
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .member-card,
    .member-card-image,
    .member-card-overlay,
    .member-card-overlay-content,
    .member-card-arrow {
        transition: none;
    }

    .member-card:hover,
    .member-card:focus-within {
        transform: none;
    }

    .member-card:hover .member-card-image,
    .member-card:focus-within .member-card-image {
        transform: none;
    }

    .member-card-overlay-content {
        transform: none;
    }

    .member-card:hover .member-card-arrow,
    .member-card:focus-within .member-card-arrow {
        transform: none;
    }
}

/* =========================================================
   PROFILE MODAL
   ========================================================= */

body.profile-modal-open {
    overflow: hidden;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* visibility flips at the END when closing (so the fade-out is seen) ... */
    transition:
        opacity 220ms ease,
        visibility 0s linear 220ms;
}

.profile-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* ...but IMMEDIATELY when opening, otherwise the dialog is still "hidden" when the script
       moves focus into it and the browser silently ignores focus() */
    transition:
        opacity 220ms ease,
        visibility 0s;
}

/* Backdrop */

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 38, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Dialog */

.profile-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 3rem));
    max-height: min(760px, calc(100dvh - 3rem));
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(92, 64, 170, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(20, 14, 50, 0.28);
    transform: translateY(16px) scale(0.98);
    transition: transform 220ms ease;
}

.profile-modal.is-open .profile-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Close button */

.profile-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;

    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;

    color: #241545;
    font-size: 1.65rem;
    line-height: 1;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(92, 64, 170, 0.15);
    border-radius: 50%;

    cursor: pointer;

    box-shadow: 0 5px 18px rgba(20, 14, 50, 0.12);
}

.profile-modal-close:hover {
    color: #5b3ca4;
    background: #fff;
}

.profile-modal-close:focus-visible {
    outline: 3px solid var(--royal);
    outline-offset: 3px;
}

/* Layout */

.profile-modal-grid {
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
}

/* Photo */

.profile-modal-photo {
    min-height: 480px;
    overflow: hidden;
    background: #f3f1f8;
}

.profile-modal-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center top;
}

.profile-modal-placeholder {
    display: grid;
    width: 100%;
    min-height: 480px;
    place-items: center;

    color: #5b3ca4;
    font-size: 4rem;
    font-weight: 700;

    background: #f3f1f8;
}

/* Content */

.profile-modal-content {
    padding: 3.5rem 3rem 3rem;
}

.profile-modal-eyebrow {
    margin: 0 0 0.65rem;

    color: #5b3ca4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.profile-modal-content h2 {
    max-width: 600px;
    margin: 0;

    color: #1b1230;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.profile-modal-tagline {
    margin: 1rem 0 1.75rem;

    color: #5b3ca4;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Biography */

.profile-modal-bio {
    display: grid;
    gap: 0.9rem;

    margin: 1.75rem 0 0;
    padding: 0;

    list-style: none;
}

.profile-modal-bio li {
    position: relative;
    padding-left: 1.25rem;

    color: #4f4b68;
    font-size: 0.96rem;
    line-height: 1.65;
}

.profile-modal-bio li::before {
    position: absolute;
    top: 0.65em;
    left: 0;

    width: 5px;
    height: 5px;

    content: "";

    background: #5b3ca4;
    border-radius: 50%;
}

/* Email */

.profile-modal-email {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;

    margin-top: 2rem;
    padding-top: 1.25rem;

    color: #5b3ca4;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;

    border-top: 1px solid rgba(92, 64, 170, 0.12);
}

.profile-modal-email:hover {
    text-decoration: underline;
}

.profile-modal-email svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   MODAL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .profile-modal {
        padding: 1rem;
    }

    .profile-modal-dialog {
        max-height: calc(100vh - 2rem);
    }

    .profile-modal-grid {
        grid-template-columns: 1fr;
    }

    .profile-modal-photo {
        min-height: 300px;
        max-height: 360px;
    }

    .profile-modal-photo img {
        min-height: 300px;
        max-height: 360px;
    }

    .profile-modal-placeholder {
        min-height: 300px;
    }

    .profile-modal-content {
        padding: 2rem 1.75rem 2.25rem;
    }
}

/* =========================================================
   MODAL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .profile-modal {
        padding: 0.65rem;
    }

    .profile-modal-dialog {
        max-height: calc(100vh - 1.3rem);
        border-radius: var(--radius-card);
    }

    .profile-modal-close {
        top: 0.7rem;
        right: 0.7rem;

        width: 44px;
        height: 44px;
    }

    .profile-modal-photo {
        min-height: 260px;
        max-height: 300px;
    }

    .profile-modal-photo img {
        min-height: 260px;
        max-height: 300px;
    }

    .profile-modal-placeholder {
        min-height: 260px;
    }

    .profile-modal-content {
        padding: 1.75rem 1.25rem 2rem;
    }

    .profile-modal-content h2 {
        font-size: 1.8rem;
    }

    .profile-modal-bio {
        gap: 0.75rem;
        margin-top: 1.35rem;
    }

    .profile-modal-bio li {
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .profile-modal,
    .profile-modal-dialog {
        transition: none;
    }
}
/* ==========================================================================
   14. About page (built from the same tokens as the homepage / Governing Body)
   ========================================================================== */
.section-sm { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.who { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: center; }
.who-copy .h2 { margin-bottom: var(--s-5); }
.who-copy p { color: var(--text-soft, #3a3757); }
.who-copy .btn { margin-top: var(--s-4); }
.who-media .photo { border-radius: var(--radius); aspect-ratio: 3 / 4 !important; height: auto; }
.aims { margin: var(--s-4) 0; }
.aims li { position: relative; padding: 0 0 var(--s-3) var(--s-6); color: var(--text-soft, #3a3757); }
.aims li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--royal); border-bottom: 3px solid var(--royal); transform: rotate(-45deg) translateY(-30%); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6) var(--s-6); margin: var(--s-6) 0 0; }
.facts > div { padding-top: var(--s-4); border-top: 2px solid var(--deep); }
.facts dt { margin-bottom: var(--s-2); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.facts dd { font-weight: 600; line-height: 1.45; color: var(--ink); }
.facts a { color: var(--royal); text-underline-offset: 3px; overflow-wrap: anywhere; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-7) var(--s-6); margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--mist-2); }
.timeline li::before { content: ''; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px #fff; }
.timeline-year { margin: 0 0 var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-stat); line-height: 1.1; color: var(--deep); }
.timeline h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.timeline li p:not(.timeline-year) { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.timeline-today { max-width: 46em; margin: var(--s-8) 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-soft, #3a3757); }

.objectives { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.objectives li, .service { padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.objective-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--mist); color: var(--royal); }
.objective-icon .icon { width: 26px; height: 26px; }
.objectives h3, .service h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.objectives p, .service p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }

.founder { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; grid-template-areas: 'photo copy' 'photo welcome'; gap: var(--s-6) var(--s-8); align-items: start; }
.founder-photo { grid-area: photo; margin: 0; }
.founder-photo img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.founder-photo figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.founder-placeholder { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius); background: var(--mist-2); color: var(--royal); font: 700 3rem var(--font-display); }
.founder-copy { grid-area: copy; align-self: end; }
.founder-copy .h2 { margin-bottom: var(--s-5); }
.founder-copy p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.welcome { grid-area: welcome; padding: var(--s-6) var(--s-7); border-radius: var(--radius); background: linear-gradient(140deg, var(--deep) 0%, var(--royal) 100%); color: #fff; }
.welcome h3 { margin-bottom: var(--s-3); font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: #d0c2ff; } /* still a heading, so Poppins Bold from the base rule */
.welcome p { font-size: 1.25rem; font-weight: 500; line-height: 1.55; }

.campus { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.campus-copy .h2 { margin-bottom: var(--s-5); }
.campus-copy p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.campus-copy .btn { margin-top: var(--s-4); }
.campus-media .photo { border-radius: var(--radius); }
.section-sm + .impact { margin-top: var(--s-7); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.service { display: flex; flex-direction: column; align-items: flex-start; }
.service p { flex: 1; margin-bottom: var(--s-3); }

.src-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; }
.src-copy .h2 { margin-bottom: var(--s-5); }
.src-copy p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.src-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.src-figure { margin: 0; }
.src-figure .photo { border-radius: var(--radius-sm); }
.src-figure figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }
.video-card { position: relative; display: block; align-self: start; overflow: hidden; border-radius: var(--radius-sm); text-decoration: none; }
.video-card .photo { border-radius: 0; transition: transform .5s var(--ease); }
.video-card:hover .photo { transform: scale(1.03); }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; color: var(--deep); box-shadow: 0 10px 30px -10px rgba(20, 15, 60, .6); }
.video-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video-label { position: absolute; left: var(--s-3); bottom: var(--s-3); padding: var(--s-2) var(--s-4); border-radius: 999px; background: rgba(var(--scrim), .82); color: #fff; font-size: var(--fs-sm); font-weight: 600; }

.units-title { margin: var(--s-8) 0 var(--s-5); font-size: var(--fs-h3); }
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.unit { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.unit:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.unit:focus-within { outline: 3px solid var(--royal); outline-offset: 3px; }
.unit-media .photo { border-radius: 0; }
.unit h3 { margin: var(--s-4) var(--s-5) var(--s-2); font-size: var(--fs-h4); line-height: 1.3; }
.unit p { margin: 0 var(--s-5) var(--s-5); font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.unit-link { color: inherit; text-decoration: none; }
.unit-link::after { content: ''; position: absolute; inset: 0; }
.unit-link:focus-visible { outline: none; }
.unit:hover .unit-link { color: var(--royal); }

.schools { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
.school { display: flex; flex-direction: column; align-items: flex-start; }
.school-media { width: 100%; margin-bottom: var(--s-5); }
.school-media .photo { border-radius: var(--radius); }
.school h3 { margin-bottom: var(--s-3); }
.school p { margin-bottom: var(--s-3); color: var(--muted); }

.legal { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: var(--s-7); align-items: center; padding: var(--s-6) var(--s-7); border-radius: var(--radius); background: var(--mist); }
.legal .eyebrow { margin-bottom: var(--s-2); }
.legal p { margin: 0; color: var(--text-soft, #3a3757); }

.about-cta .h2 { margin-bottom: var(--s-4); }
.cta-lead { max-width: 36em; margin: 0 auto var(--s-6); }
.cta-buttons { justify-content: center; }

@media (max-width: 1024px) {
    .who, .campus, .src-intro, .schools { grid-template-columns: 1fr; gap: var(--s-6); }
    .who-media .photo { max-width: 420px; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .objectives { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: 1fr; }
    .founder { grid-template-columns: 1fr; grid-template-areas: 'copy' 'photo' 'welcome'; }
    .founder-photo { max-width: 420px; }
    .founder-copy { align-self: start; }
    .units { grid-template-columns: repeat(3, 1fr); }
    .legal { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5); }
}
@media (max-width: 900px) {
    .units { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .facts, .objectives, .units { grid-template-columns: 1fr; }
    .who-media .photo { aspect-ratio: 4 / 3 !important; object-position: center 25%; max-width: none; }
    .src-media { grid-template-columns: 1fr; }
    .welcome { padding: var(--s-5); }
    /* timeline becomes a vertical line down the left */
    .timeline { grid-template-columns: 1fr; gap: var(--s-6); }
    .timeline li { padding: 0 0 0 var(--s-6); border-top: 0; border-left: 2px solid var(--mist-2); }
    .timeline li::before { top: 4px; left: -8px; }
}

/* ==========================================================================
   15. Mission & Vision page (same tokens as About / Governing Body; classes prefixed mv-)
   ========================================================================== */
.mv-hero-photo { object-position: 50% 32%; } /* keep the child and the teacher in frame when the 4:3 photo is cropped wide */
.mv-purpose .split-head { margin-bottom: 0; align-items: start; }
.mv-purpose .split-head-side p { max-width: 38em; color: var(--text-soft, #3a3757); }
.mv-jump { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }
.mv-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--deep); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease); }
.mv-jump a:hover { background: var(--mist); border-color: var(--royal); }

.mv-panels-section { padding-top: 0; }
.mv-panels { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-6); align-items: start; }
.mv-panel { min-width: 0; padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 88px; }
.mv-panel--mission { background: #fff; }
.mv-panel--vision { background: var(--mist); border-color: var(--mist-2); box-shadow: none; }
@media (min-width: 1025px) { .mv-panel--vision { position: sticky; top: calc(var(--header-h-compact) + var(--s-5)); } } /* stays in view while the longer Mission card scrolls */
.mv-panel-head { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-6); }
.mv-panel-head .objective-icon { flex: none; width: 64px; height: 64px; margin: 0; }
.mv-panel-head .objective-icon .icon { width: 30px; height: 30px; }
.mv-panel--vision .objective-icon { background: #fff; }
.mv-panel-head .eyebrow { margin-bottom: var(--s-1); }
.mv-panel-head .h2::after { content: ''; display: block; width: 44px; height: 3px; margin-top: var(--s-3); border-radius: 3px; background: var(--royal); }
.mv-statement { margin-bottom: var(--s-5); font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }

.mv-list li { position: relative; padding: var(--s-4) 0 var(--s-4) calc(24px + var(--s-4)); color: var(--text-soft, #3a3757); }
.mv-list li:first-child { padding-top: 0; }
.mv-list li:last-child { padding-bottom: 0; }
.mv-list li + li { border-top: 1px solid var(--line); }
.mv-panel--vision .mv-list li + li { border-color: #d8cfee; }
.mv-list--ruled li:first-child { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mv-list li::before { content: ''; position: absolute; left: 0; top: calc(var(--s-4) + 2px); width: 24px; height: 24px; border-radius: 50%; background: var(--mist-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b2a91' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.mv-list li:first-child::before { top: 2px; }
.mv-list--ruled li:first-child::before { top: calc(var(--s-4) + 2px); }
.mv-panel--vision .mv-list li::before { background-color: #fff; }

.mv-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.mv-plan { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); }
.mv-plan .objective-icon { margin-bottom: 0; }
.mv-plan-body p { font-weight: 500; line-height: 1.5; color: var(--ink); }
.mv-plan abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.mv-sub { display: grid; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.mv-sub li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.mv-sub li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); }

.mv-today { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid #d8cfee; }
.mv-today-label { margin: 0; font-weight: 600; color: var(--deep); }
.mv-today ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }

.mv-cta { display: grid; grid-template-columns: 340px minmax(0, 1fr) 280px; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.mv-cta-media { display: flex; min-height: 280px; }
.mv-cta-media .photo { flex: 1; width: 100%; height: 100%; border-radius: 0; object-fit: cover; aspect-ratio: auto !important; }
.mv-cta-photo { object-position: center 30%; }
.mv-cta-copy { padding: var(--s-7); align-self: center; }
.mv-cta-copy .h2 { margin-bottom: var(--s-4); }
.mv-cta-copy .lead { max-width: 30em; margin-bottom: var(--s-6); }
.mv-cta-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-4); padding: var(--s-6); border-left: 1px solid #d8cfee; }
.mv-cta-side .icon { width: 52px; height: 52px; color: var(--royal); }
.mv-cta-side p { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; color: var(--deep); }

@media (max-width: 1024px) {
    .mv-panels { grid-template-columns: 1fr; }
    .mv-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mv-cta { grid-template-columns: 260px minmax(0, 1fr); }
    .mv-cta-media { min-height: 0; }
    .mv-cta-photo { object-position: center 15%; }
    .mv-cta-copy { padding: var(--s-6); }
    .mv-cta-side { grid-column: 1 / -1; flex-direction: row; align-items: center; border-left: 0; border-top: 1px solid #d8cfee; }
    .mv-cta-side .icon { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
    .mv-panel { padding: var(--s-5); }
    .mv-panel-head { gap: var(--s-4); margin-bottom: var(--s-5); }
    .mv-panel-head .objective-icon { width: 52px; height: 52px; }
    .mv-panel-head .objective-icon .icon { width: 26px; height: 26px; }
    .mv-plans { grid-template-columns: 1fr; }
    .mv-cta { grid-template-columns: 1fr; }
    .mv-cta-media { height: 220px; }
    .mv-cta-copy { padding: var(--s-5); }
    .mv-cta-side { padding: var(--s-5); }
}

/* ==========================================================================
   16. Legal Status page (classes prefixed ls-) + the shared "related links" strip
   ========================================================================== */
.ls-note { display: block; margin-top: var(--s-1); font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }

.ls-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.ls-table { width: 100%; border-collapse: collapse; text-align: left; }
.ls-table thead th { padding: var(--s-4) var(--s-6); background: var(--deep); color: #fff; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ls-table tbody th, .ls-table td { padding: var(--s-5) var(--s-6); vertical-align: top; border-top: 1px solid var(--line); }
.ls-table tbody tr:first-child th, .ls-table tbody tr:first-child td { border-top: 0; }
.ls-table tbody tr:nth-child(even) { background: var(--mist); }
.ls-table tbody th { width: 58%; font-weight: 400; }
.ls-table tbody tr:target { outline: 3px solid var(--royal); outline-offset: -3px; }
.ls-name { display: block; font-weight: 600; color: var(--ink); }
.ls-ref { display: block; margin-top: var(--s-1); font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.ls-number { font-weight: 600; font-size: 1.0625rem; letter-spacing: .02em; color: var(--deep); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }

.ls-donors { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; padding: var(--s-7); border-radius: var(--radius); background: var(--mist); }
.ls-donors .objective-icon { width: 64px; height: 64px; margin: 0; background: #fff; }
.ls-donors-copy .eyebrow { margin-bottom: var(--s-2); }
.ls-donors-copy .h2 { margin-bottom: var(--s-3); }
.ls-donors-copy p:not(.eyebrow) { max-width: 40em; color: var(--text-soft, #3a3757); }

.related { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.related-title { margin: 0; font-size: 1rem; line-height: 1.3; letter-spacing: 0; color: var(--deep); }
.related ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }

@media (max-width: 1024px) {
    .ls-donors { grid-template-columns: auto minmax(0, 1fr); padding: var(--s-6); }
    .ls-donors .btn-row { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .ls-donors { grid-template-columns: 1fr; padding: var(--s-5); }
    /* the table becomes one stacked card per registration */
    .ls-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ls-table, .ls-table tbody, .ls-table tr, .ls-table tbody th, .ls-table td { display: block; width: auto; }
    .ls-table tbody th { padding: var(--s-4) var(--s-5) var(--s-1); }
    .ls-table td { padding: 0 var(--s-5) var(--s-4); border-top: 0; }
}

/* ==========================================================================
   17. Contact page (classes prefixed ct-; centres + directory reuse the homepage's)
   ========================================================================== */
.ct-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.ct-way { display: flex; flex-direction: column; align-items: flex-start; padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.ct-way h3 { margin-bottom: var(--s-3); font-size: 1.25rem; }
.ct-way p { margin: 0 0 var(--s-2); }
.ct-way address p { color: var(--text-soft, #3a3757); }
.ct-big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--deep); text-decoration: none; overflow-wrap: anywhere; }
.ct-big:hover { color: var(--royal); text-decoration: underline; }
.ct-meta { font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.ct-meta a { color: var(--royal); font-weight: 600; overflow-wrap: anywhere; }
.ct-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--royal); font-weight: 600; font-size: var(--fs-sm); }

.ct-main { background: #fff; }
.ct-photo { margin: 0 0 var(--s-8); }
.ct-photo .photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ct-directory { margin-top: 0; }

.ct-social-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding: var(--s-6) var(--s-7); border-radius: var(--radius); background: var(--mist); }
.ct-social { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ct-social a { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-5); border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-sm); text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.ct-social a:hover { border-color: var(--royal); background: var(--mist-2); }
.ct-social .icon { color: var(--royal); }
.ct-social strong { font-weight: 600; color: var(--deep); }

@media (max-width: 1024px) {
    .ct-ways { grid-template-columns: 1fr 1fr; }
    .ct-ways li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .ct-ways { grid-template-columns: 1fr; }
    .ct-way { padding: var(--s-5); }
    .ct-big { font-size: 1.0625rem; } /* keeps info@voluntarymedicare.com on one line at 360px+ */
    .ct-social-band { padding: var(--s-5); }
    .ct-social, .ct-social li, .ct-social a { width: 100%; }
}

/* ==========================================================================
   18-21. Shared pieces for Our Work, kept from the first versions of those pages and used by the service
          directory (section 22): lists, highlights, stats, partner rows, status badge, phone line, service cards
   ========================================================================== */
.page-hero-media .rh-hero-photo { aspect-ratio: 4 / 3 !important; height: auto; object-position: center 45%; } /* square original: keep the hero no taller than its text */
.page-hero .mv-jump { margin-bottom: 0; }
.page-hero .mv-jump a { min-height: 40px; padding-inline: var(--s-4); }
:target { scroll-margin-top: 88px; }

.rh-highlight { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border-left: 4px solid var(--royal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--mist); font-weight: 500; color: var(--ink); }
.rh-stat { margin-top: var(--s-4); color: var(--muted); }
.rh-stat strong { display: block; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; color: var(--deep); }

.rh-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-5); margin-top: var(--s-5); }
.rh-list { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; }
.rh-list li { position: relative; padding-left: var(--s-5); font-size: var(--fs-sm); line-height: 1.55; color: var(--text-soft, #3a3757); }
.rh-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--royal); }

.rh-stats { margin: 0 0 var(--s-8); }
.rh-stats .stat:first-child { padding-left: 0; border-left: 0; }
.rh-stats .stat-label { color: var(--muted); }
.stats.rh-stats { grid-template-columns: repeat(3, 1fr); }

.rh-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); margin-top: var(--s-6); }
.rh-partners li { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-4); border-top: 2px solid var(--deep); }
.rh-partners strong { color: var(--ink); line-height: 1.4; }
.rh-partners span { font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 1024px) {
    .rh-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .rh-partners { grid-template-columns: 1fr; }
    .stats.rh-stats { grid-template-columns: 1fr; gap: var(--s-4); }
    .rh-stats .stat { padding-left: 0; border-left: 0; }
}

.hc-call { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.hc-call .icon { color: var(--royal); }
.hc-call a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--royal); font-variant-numeric: tabular-nums; }

.hc-status { display: inline-flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: 999px; background: #fff4dc; color: #6b4600; font-weight: 600; font-size: var(--fs-sm); }
.hc-status span { padding: 2px var(--s-3); border-radius: 999px; background: #6b4600; color: #fff; font-size: var(--fs-eyebrow); letter-spacing: .08em; text-transform: uppercase; }

.pg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.pg-item { position: relative; display: flex; flex-direction: column; padding: var(--s-5); padding-right: calc(var(--s-5) + 28px); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.pg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.pg-item:focus-within { outline: 3px solid var(--royal); outline-offset: 3px; }
.pg-item h3 { margin-bottom: var(--s-2); font-size: var(--fs-h4); line-height: 1.3; }
.pg-item p { font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.pg-item > .icon { position: absolute; top: var(--s-5); right: var(--s-5); color: var(--royal); transition: transform .25s var(--ease); }
.pg-item:hover > .icon { transform: translateX(3px); }

@media (max-width: 1024px) {
    .pg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .pg-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   22. Service directory: Our Work menu panel, finder, service cards, service page (classes mega-, finder-, needs-, sv-)
       Journey the layout serves: need -> service -> centre -> contact. Practical actions sit at the top.
   ========================================================================== */

/* ---- header: two actions, and the wide Our Work panel ---- */
@media (min-width: 641px) { .header-actions { display: flex; align-items: center; gap: var(--s-2); } } /* on phones these two actions live in the bottom bar */
.header-inner { position: relative; }
.mega-col { min-width: 0; }
.mega a { text-decoration: none; }
.mega-title { display: block; margin: 0 0 var(--s-2); font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--deep); }
.submenu a.mega-title, .submenu a.mega-title[aria-current='page'] { display: block; min-height: 0; padding: 0; background: none; font-size: 1rem; }
.submenu a.mega-title[aria-current='page'] { color: var(--royal); }
a.mega-title:hover { color: var(--royal); text-decoration: underline; }
.mega ul a { display: flex; align-items: center; min-height: 40px; padding: 6px var(--s-3); line-height: 1.35; margin-inline: calc(var(--s-3) * -1); border-radius: 8px; font-size: var(--fs-sm); color: var(--ink); }
.mega ul a:hover { background: var(--mist); color: var(--royal); }
.mega a[aria-current='page'] { color: var(--royal); font-weight: 600; }
.mega .mega-all { font-weight: 600; color: var(--royal); }
/* "Not sure where to start?": a strip under the three columns, so its heading and sentence each stay on one line.
   Its link is a button; the selectors out-rank the generic .submenu link states (hover, current page), which
   would otherwise recolour its text to match its background. */
.mega-help p:not(.mega-title) { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.mega-help p.mega-title { display: block; min-height: 0; margin: 0 0 2px; }
.submenu.mega .mega-help a.mega-all { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-5); border-radius: 12px; background: var(--deep); color: #fff; font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; transition: background-color .15s var(--ease); }
.submenu.mega .mega-help a.mega-all:hover { background: var(--royal); color: #fff; }
@media (min-width: 1025px) {
    .has-mega { position: static; } /* the panel spans the header, not just its button */
    .submenu.mega { left: var(--gutter); right: var(--gutter); top: calc(100% - 6px); min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding: var(--s-6); border-radius: var(--radius-sm); }
    .has-menu.open > .submenu.mega { display: grid; }
    .mega-help { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--radius-sm); background: var(--mist); }
    .mega-help p { grid-column: 1; }
    .mega-help a.mega-all { grid-column: 2; grid-row: 1 / span 2; }
}
@media (hover: hover) and (min-width: 1025px) {
    .submenu.mega { display: grid; }
    .submenu.mega::before { height: 24px; } /* bridge from the button down to the panel */
}
@media (max-width: 1024px) {
    .submenu.mega { padding: 0 0 var(--s-3) var(--s-4); }
    .has-menu.open > .submenu.mega { display: grid; gap: var(--s-4); }
    .mega-title, .submenu a.mega-title, .submenu a.mega-title[aria-current='page'] { min-height: 44px; display: flex; align-items: center; margin: 0; }
    .mega ul a { min-height: 48px; font-size: 1rem; }
    .mega-help { padding: var(--s-2) var(--s-4) 0 0; }
    .mega-help p.mega-title { margin-bottom: var(--s-1); }
    .mega-help p:not(.mega-title) { margin-bottom: var(--s-3); }
    .submenu.mega .mega-help a.mega-all { min-height: 48px; }
    .drawer-cta { display: grid; gap: var(--s-3); }
}

/* ---- directory page: finder and need shortcuts ---- */
.pg-find { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); padding-block: var(--s-7) var(--s-6); scroll-margin-top: 88px; }
.pg-find h1 { margin-bottom: var(--s-4); }
.pg-find .lead { max-width: 40em; margin-bottom: var(--s-6); }
.finder { max-width: 760px; }
html:not(.js) .finder { display: none; } /* the list below is complete without it */
.finder-label { display: block; margin-bottom: var(--s-2); font-weight: 600; color: var(--deep); }
.finder-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); border: 2px solid var(--deep); border-radius: 14px; background: #fff; }
.finder-row:focus-within { outline: 3px solid var(--royal); outline-offset: 3px; }
.finder-row > .icon { color: var(--royal); }
.finder-input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; font: inherit; font-size: 1.0625rem; color: var(--ink); }
.finder-input:focus { outline: none; }
.finder-input::placeholder { color: var(--muted); opacity: 1; }
.finder-status { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.needs { margin-top: var(--s-6); }
.needs-title { margin-bottom: var(--s-3); font-size: var(--fs-h4); line-height: 1.3; }
.needs-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.needs-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--deep); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background .2s var(--ease), border-color .2s var(--ease); }
.needs-list a:hover { background: var(--mist); border-color: var(--royal); }
.pg-area { padding-block: var(--s-6); }
.pg-area + .pg-area { border-top: 1px solid var(--line); }
.pg-area-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; margin-bottom: var(--s-5); }
.pg-area-head .objective-icon { margin: 0; }
.pg-area-head p { color: var(--muted); max-width: 46em; }
.finder-empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.pg-close { padding-top: var(--s-6); }

/* ---- service cards (landing pages, directory, parent services) ---- */
.sv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.sv-cards--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-card { min-height: 100%; }
.sv-chip { align-self: flex-start; margin-top: var(--s-3); padding: 2px var(--s-3); border-radius: 999px; background: var(--mist); color: var(--deep) !important; font-size: var(--fs-xs) !important; font-weight: 600; }
.sv-chip--status { background: #fff4dc; color: #6b4600 !important; }
.sv-also { margin-top: var(--s-2); font-size: var(--fs-xs) !important; color: var(--muted); }
.sv-thin { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s-7); align-items: center; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.sv-thin:not(:has(.sv-thin-media)) { grid-template-columns: minmax(0, 1fr); }
.sv-thin-media .photo { border-radius: var(--radius-sm); }
.sv-thin-copy { display: grid; gap: var(--s-4); justify-items: start; }
.sv-thin-copy > p { color: var(--text-soft, #3a3757); max-width: 46em; }
.sv-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-partners a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--royal); }

/* ---- service page ---- */
.sv-hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); padding-block: var(--s-6) var(--s-7); }
.sv-hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s-8); align-items: center; }
.sv-hero-copy { min-width: 0; }
.sv-hero h1 { margin-bottom: var(--s-4); }
.sv-hero .lead { max-width: 34em; color: var(--text-soft, #3a3757); }
.sv-hero-media .photo { border-radius: var(--radius); aspect-ratio: 4 / 3 !important; object-fit: cover; width: 100%; height: auto; }
.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.sv-call { gap: var(--s-3); }
.sv-call .icon { width: 1.15em; height: 1.15em; }
.btn.sv-call:hover .icon { transform: none; }

.sv-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); align-items: start; padding-block: var(--s-7) var(--section-y); }
.sv-side { position: sticky; top: calc(var(--header-h-compact) + var(--s-5)); }
.sv-menu { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.sv-menu summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-4); cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; color: var(--deep); }
.sv-menu summary::-webkit-details-marker { display: none; }
.sv-menu summary .icon { transition: transform .2s; }
.sv-menu[open] summary .icon { transform: rotate(180deg); }
.sv-menu nav { padding: 0 var(--s-2) var(--s-3); border-top: 1px solid var(--line); }
.sv-menu ul { margin: 0; padding: 0; list-style: none; }
.sv-menu nav > ul { padding-top: var(--s-2); }
.sv-menu a { display: flex; align-items: center; min-height: 40px; padding: var(--s-1) var(--s-3); border-radius: 8px; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink); text-decoration: none; }
.sv-menu a:hover { background: var(--mist); color: var(--royal); }
.sv-menu a[aria-current='page'] { background: var(--mist-2); color: var(--deep); font-weight: 600; }
.sv-menu ul ul a { padding-left: var(--s-6); color: var(--muted); }
.sv-menu ul ul a[aria-current='page'] { color: var(--deep); }

.sv-main { min-width: 0; display: grid; gap: var(--s-8); }
.sv-block > .h2 { margin-bottom: var(--s-4); }
.sv-block > p { max-width: 46em; color: var(--text-soft, #3a3757); }
.sv-block > .btn { margin-top: var(--s-3); }
.sv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; }
.sv-facts > div { padding: var(--s-5); border-radius: var(--radius-sm); background: var(--mist); }
.sv-facts dt { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.sv-facts dt .icon { width: 1.35em; height: 1.35em; }
.sv-facts dd { margin: 0; font-weight: 500; line-height: 1.5; color: var(--ink); }
.sv-line { display: block; }
.sv-facts--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); width: 100%; }
.sv-facts--compact > div { padding: var(--s-4); }
.sv-provides { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); margin-top: 0; }
.sv-provides li { font-size: 1rem; }
.sv-centres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.sv-centres li { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.sv-centres h3 { margin-bottom: var(--s-1); font-size: 1.125rem; }
.sv-centres p { font-size: var(--fs-sm); color: var(--muted); }
.sv-centres a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; color: var(--royal); text-decoration: none; font-variant-numeric: tabular-nums; }
.sv-items { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; }
.sv-items > div { padding: var(--s-4) var(--s-5); border-radius: var(--radius-sm); background: var(--mist); }
.sv-items dt { margin-bottom: var(--s-1); font-weight: 600; color: var(--deep); }
.sv-items dd { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-soft, #3a3757); }
.sv-stats { margin: var(--s-5) 0 0; }
.sv-list-title { margin: 0 0 var(--s-2); font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.sv-inside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 88px; }
.sv-inside:has(.sv-inside-photo) { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
.sv-inside:target { outline: 3px solid var(--royal); outline-offset: 3px; }
.sv-inside-photo { border-radius: var(--radius-sm); }
.sv-inside .h2 { margin-bottom: var(--s-3); }
.sv-inside p { color: var(--text-soft, #3a3757); max-width: 46em; }
.sv-story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.sv-story-media .photo { border-radius: var(--radius-sm); }
.sv-story .eyebrow { margin-bottom: var(--s-2); }
.sv-story .h2 { margin-bottom: var(--s-3); }
.sv-story p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.sv-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.sv-pn a { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--deep); font-weight: 600; text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.sv-pn a:hover { border-color: var(--royal); background: var(--mist); }
.sv-pn small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.sv-pn-prev { justify-content: flex-start; }
.sv-pn-next { justify-content: flex-end; text-align: right; }
.sv-pn .icon { color: var(--royal); }

@media (max-width: 1024px) {
    .sv-hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
    .sv-hero-media { order: 2; }
    .sv-layout { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-5); }
    .sv-side { position: static; }
    .sv-cards--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-thin { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
    .pg-area-head { grid-template-columns: auto minmax(0, 1fr); }
    .pg-area-head .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
    .sv-actions .btn:not(.btn-text), .sv-thin .btn, .finder-empty .btn { width: 100%; white-space: normal; height: auto; min-height: 52px; padding-block: var(--s-3); text-align: center; }
    .sv-facts, .sv-provides, .sv-centres, .sv-cards, .sv-cards--wide, .sv-partners, .sv-pn { grid-template-columns: 1fr; }
    .sv-inside:has(.sv-inside-photo), .sv-story { grid-template-columns: 1fr; }
    .sv-inside, .sv-story, .sv-thin { padding: var(--s-5); }
    .sv-main { gap: var(--s-7); }
    /* phones: one "back to parent" link instead of a five-level trail, and a shorter photo so key facts come sooner */
    .sv-hero .breadcrumb li { display: none; }
    .sv-hero .breadcrumb li:nth-last-child(2) { display: block; }
    .sv-hero .breadcrumb li:nth-last-child(2)::before { content: '‹'; margin-inline: 0 var(--s-2); color: var(--muted); }
    .sv-hero .breadcrumb { margin-bottom: var(--s-4); }
    .sv-hero-media .photo { aspect-ratio: 16 / 9 !important; }
    .sv-hero { padding-bottom: var(--s-5); }
    .needs-list a { white-space: normal; padding-block: var(--s-2); }
}

/* ==========================================================================
   23. Home page, service-first order (classes help-, pillar-services, prog-where, story-links, centre-note, trust-links)
   ========================================================================== */

/* ---- "How can we help?": the first thing after the hero. Each row goes straight to one service page. ---- */
.help { padding-block: var(--s-8); }
.help-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.help-intro .lead { margin-top: var(--s-4); max-width: 26em; }
.help-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.help-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 64px; height: 100%; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--deep); font-weight: 600; line-height: 1.35; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.help-list a .icon { flex: none; color: var(--royal); transition: transform .15s var(--ease); }
.help-list a:hover { background: var(--mist); border-color: var(--royal); }
.help-list a:hover .icon { transform: translateX(3px); }

/* ---- pillars: a few representative services under each ---- */
.pillar .pillar-services { align-self: stretch; margin: 0 0 var(--s-4); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pillar-services li { border-bottom: 1px solid var(--line); }
.pillar-services a { display: flex; align-items: center; min-height: 44px; padding: var(--s-2) 0; color: var(--deep); font-weight: 600; line-height: 1.35; text-decoration: none; }
.pillar-services a:hover { color: var(--royal); text-decoration: underline; }

/* ---- featured services: where the service is, when VMS states it ---- */
.prog-where { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--deep) !important; font-weight: 600; }
.prog-row-body > .prog-where { display: flex; }
.prog-where .icon { flex: none; margin-top: .2em; color: var(--royal); }

/* ---- stories: the story, then the service it is about ---- */
.story-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; }

/* ---- centres and trust ---- */
.centre-note { margin: 0 0 var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); color: var(--muted); }
.trust-links { margin-top: var(--s-7); color: var(--muted); font-size: var(--fs-sm); }
.trust-links a { display: inline-block; padding: var(--s-2) var(--s-1); color: var(--royal); font-weight: 600; }
.leader .role { margin-bottom: 0; }

@media (max-width: 1024px) {
    .help-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}
@media (max-width: 640px) {
    .help { padding-block: var(--s-7); }
    .help-list { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
    .help-list a { min-height: 56px; }
    .help-actions .btn { width: 100%; justify-content: center; }
    .prog-where { font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
    .help-list a, .help-list a .icon { transition: none; }
}


/* ==========================================================================
   24. Stories: list and story page (classes st-). A story always shows the service it is about.
   ========================================================================== */
.st-hero .lead { max-width: 38em; }
.st-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-8); align-items: center; }
.st-hero-media .photo { width: 100%; border-radius: var(--radius); }
.st-meta { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-6) 0 0; }
.st-meta dt, .st-service-facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-meta dd, .st-service-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--deep); }
.st-meta dd { max-width: 22em; }
.st-meta a { color: var(--royal); }
.stories-all { margin-top: var(--s-6); }

/* ---- list ---- */
.st-list-section { padding-top: var(--s-7); }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.st-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.st-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.st-card-media .photo { width: 100%; border-radius: 0; }
.st-card-body { display: flex; flex: 1; flex-direction: column; padding: var(--s-5); }
.st-card-service { align-self: flex-start; margin-bottom: var(--s-3); padding: 2px var(--s-3); border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 600; }
.st-card h3 { margin-bottom: var(--s-3); font-size: var(--fs-h4); line-height: 1.3; }
.st-card h3 a { color: var(--deep); text-decoration: none; }
.st-card h3 a::after { content: ''; position: absolute; inset: 0; } /* the whole card opens the story */
.st-card:focus-within { outline: 3px solid var(--royal); outline-offset: 3px; }
.st-card h3 a:focus-visible { outline: none; }
.st-card-body > p:not([class]) { flex: 1; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.st-card-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin: var(--s-4) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; }
.st-card-read { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--royal); }
.st-card-service-link { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; color: var(--deep); } /* above the card link */
.st-card-service-link:hover { color: var(--royal); }

/* ---- story page ---- */
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s-8); align-items: start; }
.st-body > .h2 { margin-bottom: var(--s-5); }
.st-body > p { max-width: 42em; margin-bottom: var(--s-4); color: var(--text-soft, #3a3757); font-size: 1.0625rem; line-height: 1.7; }
.st-quote { max-width: 42em; margin: var(--s-6) 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--royal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--mist); }
.st-quote blockquote { margin: 0; }
.st-quote blockquote p { color: var(--ink); font-size: 1.0625rem; line-height: 1.7; }
.st-quote figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--deep); }
.st-video { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); color: var(--muted); font-size: var(--fs-sm); }
.st-service { position: sticky; top: 104px; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.st-service .eyebrow { margin-bottom: var(--s-2); }
.st-service .h2 { margin-bottom: var(--s-3); }
.st-service > p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.st-service-facts { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; }
.st-service-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.st-service-actions .btn { justify-content: center; white-space: normal; text-align: center; }
.sv-story-more { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.sv-story-more a { display: inline-block; padding: var(--s-2) 2px; color: var(--royal); font-weight: 600; }

@media (max-width: 1024px) {
    .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-hero-inner, .st-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
    .st-hero-media { max-width: 480px; }
    .st-service { position: static; }
}
@media (max-width: 640px) {
    .st-cards { grid-template-columns: minmax(0, 1fr); }
    .st-meta { gap: var(--s-3) var(--s-6); }
    .st-video .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .st-card { transition: none; }
}

/* ==========================================================================
   25. Contact paths and questions (phase 5): classes ct-find, ct-campus-services, accordion-more, fq-
   ========================================================================== */
.ct-find { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-5); padding: var(--s-5) var(--s-6); border-radius: var(--radius); background: var(--mist); }
.ct-find p { margin: 0; max-width: 44em; color: var(--text-soft, #3a3757); }
.ct-find strong { color: var(--deep); }
.ct-campus-services { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.ct-campus-services h4 { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: 1rem; line-height: 1.3; color: var(--deep); }
.ct-campus-services ul { margin: 0 0 var(--s-2); padding: 0; list-style: none; columns: 2; column-gap: var(--s-5); }
.ct-campus-services li { break-inside: avoid; }
.ct-campus-services li a { display: inline-flex; align-items: center; min-height: 40px; padding-block: var(--s-1); font-size: var(--fs-sm); line-height: 1.35; }
.ct-directory dt a { color: var(--deep); text-decoration-color: var(--royal); }
.ct-directory dt a:hover { color: var(--royal); }
.accordion-more { margin-top: var(--s-2); font-size: var(--fs-sm); }
.accordion-more a { display: inline-block; padding-block: var(--s-2); color: var(--royal); font-weight: 600; }
.fq-group { padding-block: var(--s-8); scroll-margin-top: 96px; }
.page-hero .mv-jump { list-style: none; padding: 0; }
@media (max-width: 640px) {
    .ct-campus-services ul { columns: 1; }
    .ct-find .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   26. Phone pass (phase 6). Order of priority on a small screen: find a service, call, location, the
       service itself, related services, stories, institutional detail.
   ========================================================================== */
/* where the service is, on the first screen with its name and phone button */
.sv-where { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-4); font-weight: 600; line-height: 1.45; color: var(--deep); }
.sv-where .icon { flex: none; margin-top: .15em; color: var(--royal); }

/* touch targets: anything tapped on its own gets 44px; links inside running text are left alone */
@media (max-width: 1024px) {
    .brand { min-height: 44px; }
    .breadcrumb a, .footer-contact a, .centre-main address a, .ct-campus-services li a, .page-hero .mv-jump a,
    .ct-meta a, .ct-big, .ct-directory dt a, .st-meta dd a, .facts dd a, .accordion-more a,
    .trust-links a, .cta-more a, .sv-story-more a, .st-card-service-link { display: inline-flex; align-items: center; min-height: 44px; }
    .ct-meta a, .ct-directory dt a, .trust-links a, .cta-more a, .sv-story-more a { padding-block: 0; }
    .sv-menu a { min-height: 44px; }
}
@media (max-width: 640px) {
    /* photos stay, but no hero photo pushes the page's content off the first screens */
    .page-hero-media .rh-hero-photo { aspect-ratio: 16 / 9 !important; }
    .st-hero-media .photo { aspect-ratio: 16 / 9 !important; object-fit: cover; }
    .page-hero .sv-actions { margin-top: var(--s-5); }
    .page-hero .sv-actions .btn, .sv-hero .sv-actions .btn:not(.btn-text) { width: 100%; justify-content: center; }
    .sv-where { margin-top: var(--s-3); font-size: var(--fs-sm); }
}

/* ==========================================================================
   27. Consistency (phase 7). One system, so a new block can copy an existing one:
       CARD        white, 1px var(--line), var(--radius-card), var(--shadow-sm); padding --s-5 (list) or --s-6 (feature).
                   A card that is one link (.pg-item, .unit, .st-card) lifts 3px, gains var(--shadow) and a royal
                   border on hover, and shows the focus ring on the whole card.
       ROW LINK    (.help-list a, .sv-pn a, .prog-row) var(--radius-sm); hover = mist background, royal border.
       PANEL       var(--mist), no border, var(--radius).
       CARD TITLE  var(--fs-h4), line-height 1.3.
       BUTTONS     primary (one per group), secondary, text link; 48px tall, 44px small, 56px large; radius 12px.
       SECTIONS    .section (full rhythm), .section-sm, and --s-8 top and bottom for compact blocks (.help, .fq-group).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .unit, .pg-item, .st-card { transition: none; }
    .unit:hover, .pg-item:hover, .st-card:hover { transform: none; }
}


/* ==========================================================================
   28. Formatted text in page sections (App\Support\Html::paragraph). Plain text stays a bare <p>;
       text an editor formatted (lists, links, sub-headings, quotes) comes wrapped in .rich.
   ========================================================================== */
.rich { max-width: 46em; color: var(--text-soft, #3a3757); }
.st-body > .rich { max-width: 42em; margin-bottom: var(--s-4); font-size: 1.0625rem; line-height: 1.7; }
.rich > * + * { margin-top: var(--s-3); }
.rich h3, .rich h4 { color: var(--ink, #21195f); font-weight: 700; line-height: 1.3; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: var(--s-2); }
.rich a { color: var(--royal); text-decoration: underline; text-underline-offset: .15em; }
.rich blockquote { border-left: 4px solid var(--royal); padding-left: var(--s-4); font-style: italic; }

/* ---------- 29. Facebook page feed (service pages listed in config('vms.facebook_feed')) ---------- */
.sv-fb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); align-items: start; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.sv-fb .eyebrow { margin-bottom: var(--s-2); }
.sv-fb .h2 { margin-bottom: var(--s-3); }
.sv-fb p:not(.eyebrow) { color: var(--text-soft, #3a3757); }
.sv-fb-frame { width: 100%; max-width: 340px; height: 500px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
@media (max-width: 900px) {
    .sv-fb { grid-template-columns: 1fr; padding: var(--s-5); }
}

/* Story + Facebook feed: two equal columns when a service has both, each stacked; one full-width block otherwise */
.sv-pair { display: grid; gap: var(--s-5); }
.sv-pair-item { min-width: 0; }
.sv-pair--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.sv-pair--two .sv-story, .sv-pair--two .sv-fb { grid-template-columns: 1fr; align-content: start; height: 100%; }
.sv-pair--two .sv-fb-frame { max-width: none; }
.sv-pair--two .sv-story { align-items: start; }
@media (max-width: 900px) {
    .sv-pair--two { grid-template-columns: 1fr; }
}
.sv-story-links { display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.sv-story-links a { display: block; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); text-decoration: none; color: var(--deep); }
.sv-story-links a:hover { border-color: var(--royal); }
.sv-story-links strong, .sv-story-links span { display: block; }
.sv-story-links span { font-size: var(--fs-sm); color: var(--muted); }
.sv-story-list { grid-template-columns: 1fr; }

/* Home: sport panel (photo + short text + link to the Sports Club page) */
.sport { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.sport-media .photo, .sport-media img { border-radius: var(--radius); }
.sport-body .lead { margin-bottom: var(--s-4); }
.sport-list { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.sport-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.sport-list .icon { flex: none; margin-top: .35em; color: var(--royal); }
@media (max-width: 900px) {
    .sport { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* About: approach, values */
.ab-list { display: grid; gap: var(--s-3); margin: var(--s-5) 0; padding: 0; list-style: none; }
.ab-list li { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.ab-list strong { display: block; color: var(--deep); font-family: var(--font-display); }
.ab-list span { color: var(--muted); }
.ab-narrow { max-width: 46em; }
.ab-narrow p + p { margin-top: var(--s-4); }
.ab-narrow .h2 { margin-bottom: var(--s-4); }

/* Mission & Vision: the two supplied statements */
.mv-statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-6) 0; }
.mv-statement-card { padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.mv-statement-card h3 { margin-bottom: var(--s-3); font-size: var(--fs-h4); color: var(--deep); }
.mv-statement-card blockquote { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.mv-closing { max-width: 40em; color: var(--muted); font-style: italic; }
@media (max-width: 900px) {
    .mv-statements { grid-template-columns: 1fr; }
}

/* Services & Programmes: the six areas on /programmes */
.pg-six .section-head .lead + .lead { margin-top: var(--s-3); }

/* Six areas of work (work/programme.blade.php) */
.pr-section .pr-subtitle { margin-bottom: var(--s-4); font-weight: 600; color: var(--deep); }
.pr-section p + p { margin-top: var(--s-4); }
.pr-sub { margin-top: var(--s-5); }
.pr-sub h3 { margin-bottom: var(--s-3); font-size: var(--fs-h4); color: var(--deep); }
.pr-sub p + p { margin-top: var(--s-3); }
.pr-sub .ab-list { margin-top: var(--s-3); }
.sv-block > p + p { margin-top: var(--s-4); }

/* Home hero: three ways in (from website content.pdf) */
.hero-lead2 { margin-top: calc(var(--s-3) * -1); }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.hero-tiles a { display: grid; gap: 2px; justify-items: center; min-height: 44px; padding: var(--s-3) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .96); color: var(--deep); text-align: center; text-decoration: none; }
.hero-tiles a:hover { border-color: var(--royal); }
.hero-tiles .icon { color: var(--royal); }
.hero-tiles strong { font-size: var(--fs-sm); line-height: 1.25; }
.hero-tiles span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
@media (max-width: 640px) {
    .hero-tiles { grid-template-columns: 1fr; }
}

/* ---------- 30. seven-menu navigation (2026-10-21) ---------- */
.submenu-back { display: none; }
.sm-icon { display: inline-grid; place-items: center; flex: none; width: 44px; min-width: 44px; height: 44px; border-radius: 12px; background: #ece8fb; color: var(--royal); }
.sm-icon .icon { width: 22px; height: 22px; }
.sm-icon--rose { background: #fde8ee; color: #c2184b; }
.sm-icon--green { background: #e3f5ec; color: #14724a; }
.sm-icon--orange { background: #fdeede; color: #b45309; }
.sm-icon--blue { background: #e4eefc; color: #1d4ed8; }
.sm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-title { font-weight: 600; color: var(--deep); line-height: 1.3; }
.sm-line { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; font-weight: 400; }

@media (min-width: 1025px) {
    .header-inner.container { max-width: 1480px; }
    .brand-mark { height: 58px; }
    .is-compact .brand-mark { height: 46px; }
    .primary-nav { flex: 1; margin-left: var(--s-6); }
    .nav-list { justify-content: flex-start; }
    .nav-link { padding: 0 10px; gap: 5px; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
    .nav-link.is-active::after { left: 10px; right: 10px; }
    .header-inner { gap: var(--s-4); }
    .header-actions .btn-secondary { display: none; } /* "Find a Service" is the first item of the last menu */
    .brand-text { display: none; }
    .nav-link > .icon { display: none; } /* chevrons return once there is room (below) */

    /* the wide Our Services panel: two columns of icon + name + one line */
    .submenu--panel { width: min(760px, calc(100vw - 2 * var(--gutter))); padding: var(--s-4); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: var(--s-1) var(--s-4); border-radius: 14px; }
    .has-menu.open > .submenu--panel { display: grid; }
    .submenu--panel a { align-items: flex-start; gap: var(--s-3); min-height: 0; padding: var(--s-3); border-radius: 12px; }
    .submenu--panel .sm-title { font-size: var(--fs-sm); }
}
@media (hover: hover) and (min-width: 1025px) { .submenu--panel { display: grid; } }
@media (min-width: 1280px) {
    .brand-text { display: flex; }
}
@media (min-width: 1380px) {
    .nav-link > .icon { display: inline-block; }
}

/* phone drawer: a main list with a chevron on each row; a menu opens as its own screen with a back row */
@media (max-width: 1024px) {
    .nav-link > .icon { transform: rotate(-90deg); }
    .has-menu.open > .nav-link .icon { transform: rotate(-90deg); }
    .nav-list:has(.has-menu.open) > .nav-item:not(.open) { display: none; }
    .nav-item.open > .nav-link { display: none; }
    .nav-item.open { border-bottom: 0; }
    .submenu .submenu-back { display: block; }
    .submenu-back button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: var(--fs-h4); font-weight: 600; color: var(--deep); text-align: left; }
    .submenu { padding-left: 0; }
    .submenu li:not(.submenu-back) a { border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; min-height: 56px; gap: var(--s-3); justify-content: flex-start; }
    .submenu li:not(.submenu-back) a::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
    .submenu--panel li a { padding-block: var(--s-2); align-items: center; }
    .sm-line { display: none; } /* the phone screen lists names only */
    .sm-title { font-weight: 500; color: var(--ink); }
}

/* ---------- 31. About page: registration table (2026-10-21) ---------- */
.ab-table-wrap { margin-block: var(--s-6); overflow-x: auto; }
.ab-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: #fff; }
.ab-table th, .ab-table td { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ab-table thead th { background: var(--mist); color: var(--deep); font-weight: 600; letter-spacing: .04em; }
.ab-table tbody th { font-weight: 500; color: var(--ink); }
.ab-table td { font-weight: 600; color: var(--deep); }
/* the registration-details column is as wide as its longest value and never wraps; the statutes and laws column takes the rest and wraps instead */
.ab-table th:last-child, .ab-table td:last-child { width: 1%; white-space: nowrap; overflow-wrap: normal; }
.ab-table tbody th { overflow-wrap: break-word; }
.page-hero blockquote, .ab-narrow blockquote { margin: 0 0 var(--s-5); padding-left: var(--s-5); border-left: 3px solid var(--royal); }
.ab-narrow h3 { margin: var(--s-6) 0 var(--s-3); }

/* ---------- 32. About page layout (2026-10-21): columns, icon cards, a quote band ---------- */
.abx-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); }
.abx-card p { margin: 0; color: var(--ink); }
.abx-card strong { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.3; color: var(--deep); }
.abx-card > span:not(.abx-icon) { color: var(--muted); }
.abx-icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: #ece8fb; color: var(--royal); }
.abx-icon .icon { width: 24px; height: 24px; }
.abx-icon--light { background: rgba(255, 255, 255, .16); color: #fff; }
.abx-sub { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); color: var(--royal); margin-bottom: var(--s-5); }
.abx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.abx-split--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.abx-split--table { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } /* the table gets the wider side */
.abx-side { display: flex; flex-direction: column; gap: var(--s-3); }
.abx-side .photo { margin-top: var(--s-4); border-radius: var(--radius); }
@media (min-width: 901px) { .abx-side--sticky { position: sticky; top: calc(var(--s-8) * 2); } } /* the heading stays beside the long history */
.abx-side > .abx-icon { margin-bottom: var(--s-2); }
.abx-steps { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.abx-steps li { position: relative; padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-left: 4px solid var(--royal); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); }
.abx-steps p { margin: 0; }
.abx-intro { max-width: 70em; }
.abx-lead { margin: 0 0 var(--s-6); padding-left: var(--s-5); border-left: 4px solid var(--royal); font-size: var(--fs-lead); line-height: 1.6; color: var(--deep); }
.abx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
.abx-cols p { margin: 0; }
.abx-band { background: linear-gradient(120deg, var(--deep) 0%, var(--band-end) 100%); color: var(--on-deep); padding-block: var(--s-9); }
.abx-band-head { max-width: 44em; margin: 0 auto var(--s-7); text-align: center; }
.abx-band-head h2 { font-size: var(--fs-h2); line-height: 1.18; margin-bottom: var(--s-4); }
.abx-band-head p { color: var(--on-deep-muted); }
.abx-band-head .abx-tagline { margin-top: var(--s-5); font-family: var(--font-display); font-size: var(--fs-lead); font-weight: 600; color: #fff; }
.abx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.abx-quote { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-7); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-card); background: rgba(255, 255, 255, .08); }
.abx-quote h3 { color: #fff; font-size: var(--fs-h3); }
.abx-quote p { margin: 0; font-size: var(--fs-lead); line-height: 1.6; color: #fff; }
.abx-closing { max-width: 44em; margin: var(--s-7) auto 0; text-align: center; font-style: italic; color: var(--on-deep-muted); }
.abx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.abx-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-7); }
.abx-grid .abx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.abx-grid--three .abx-card:last-child:nth-child(odd) { grid-column: auto; }
.abx-note { max-width: 52em; margin: var(--s-7) auto 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--royal); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.abx-founder { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.abx-portrait img, .abx-portrait-fallback { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.abx-portrait-fallback { display: grid; place-items: center; aspect-ratio: 1; background: var(--mist-2); color: var(--royal); font: 700 3rem var(--font-display); }
.abx-center { max-width: 40em; margin: 0 auto; text-align: center; }
@media (max-width: 1024px) {
    .abx-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abx-split, .abx-split--wide, .abx-split--table { grid-template-columns: 1fr; gap: var(--s-6); }
    .abx-grid--three .abx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .abx-grid, .abx-grid--three, .abx-pair { grid-template-columns: 1fr; }
    .abx-founder { grid-template-columns: 1fr; gap: var(--s-5); }
    .abx-portrait { max-width: 260px; }
    .abx-steps li { padding: var(--s-5); }
    .abx-cols { grid-template-columns: 1fr; gap: var(--s-4); }
    .abx-quote, .abx-card { padding: var(--s-5); }
}

/* ==========================================================================
   33. IMPACT, PROJECTS AND PARTNERS (2026-10-25)
   /impact (figures), /projects and /projects/<slug>, and the partner logo wall shared by the first two.
   ========================================================================== */
.im-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.im-group { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); }
.im-group-title { margin-bottom: var(--s-4); font-size: var(--fs-h4); color: var(--deep); }
.im-figures { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.im-figure { display: grid; gap: var(--s-1); padding-left: var(--s-4); border-left: 4px solid var(--royal); }
.im-num { font-family: var(--font-display); font-size: var(--fs-stat); line-height: 1.1; letter-spacing: -.02em; color: var(--deep); }
.im-label { font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.im-detail { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.im-achievement { margin-top: var(--s-7); padding: var(--s-6); border-left: 4px solid var(--royal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; }
.im-achievement h3 { margin-bottom: var(--s-3); color: var(--deep); }
.im-achievement p + p { margin-top: var(--s-3); }


.pj-by { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.pj-implemented { margin: var(--s-4) 0 0; font-weight: 600; color: var(--deep); }
.pj-partner { margin: var(--s-4) 0 0; }
.pj-partner img { display: block; width: auto; max-width: 180px; height: 64px; object-fit: contain; }
.pj-list { display: grid; gap: var(--s-2); margin: var(--s-4) 0; padding-left: var(--s-6); list-style: disc; }
.pj-list li::marker { color: var(--royal); }
.pj-tagline { margin: 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--royal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--mist); font-family: var(--font-display); font-weight: 600; color: var(--deep); }
@media (max-width: 900px) {
    .im-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .im-group { padding: var(--s-5); }
    .pt-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 33. Latest Events (2026-10-26): a large first event, cards, and a write-up beside or under its photo ---------- */
.ev-hero .lead { max-width: 38em; }
.ev-hero h1 { max-width: 24em; }
.ev-meta { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 2px var(--s-3) 2px var(--s-2); border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 600; }
.ev-meta .icon { width: 16px; height: 16px; color: var(--royal); }
.ev-meta--hero { margin: var(--s-2) 0 0; background: #fff; border: 1px solid var(--line); }
.ev-lead-section { padding-block: 0; }
.ev-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.ev-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.ev-lead:focus-within { outline: 3px solid var(--royal); outline-offset: 3px; }
.ev-lead-media .photo { width: 100%; height: 100%; min-height: 100%; border-radius: 0; object-fit: cover; object-position: center 30%; aspect-ratio: auto !important; }
.ev-lead-body { display: flex; flex-direction: column; justify-content: center; padding: var(--s-7); }
.ev-lead-body .h2 { margin-bottom: var(--s-4); line-height: 1.25; }
.ev-lead-body .h2 a { color: var(--deep); text-decoration: none; }
.ev-lead-body .h2 a::after { content: ''; position: absolute; inset: 0; } /* the whole panel opens the event */
.ev-lead-body .h2 a:focus-visible { outline: none; }
.ev-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.ev-lead-body .ev-summary { -webkit-line-clamp: 6; font-size: 1.0625rem; line-height: 1.7; }
.ev-read { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); color: var(--royal); font-weight: 600; }
.ev-list-section { padding-top: var(--s-8); }
.ev-list-title { margin-bottom: var(--s-6); }
.ev-cards { align-items: stretch; }
.ev-photo { display: block; }
.ev-photo-full { display: block; }
.ev-card-media .photo { aspect-ratio: 4 / 3 !important; object-fit: cover; object-position: center top; }
.ev-card .ev-meta { align-self: flex-start; }
.ev-card .st-card-links { margin-top: auto; }
.ev-card .ev-summary { margin-bottom: var(--s-4); }
.ev-more-section { background: var(--mist); }
/* the event page: a portrait poster sits beside the text, a landscape photo above it */
.ev-layout { display: grid; gap: var(--s-8); align-items: start; }
.ev-layout--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.ev-layout--portrait .ev-figure { order: 2; position: sticky; top: 104px; }
.ev-layout--wide { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.ev-figure { margin: 0; }
.ev-figure .photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ev-body .rich { max-width: 42em; }
.ev-body .rich p, .ev-body .rich ul, .ev-body .rich ol { margin-bottom: var(--s-4); color: var(--text-soft, #3a3757); font-size: 1.0625rem; line-height: 1.7; }
.ev-body .rich ul, .ev-body .rich ol { padding-left: 1.4em; }
.ev-body .rich h3, .ev-body .rich h4 { margin: var(--s-6) 0 var(--s-3); color: var(--deep); font-size: var(--fs-h4); line-height: 1.35; }
.ev-body .rich > :first-child { margin-top: 0; }
.ev-body .rich blockquote { margin: var(--s-6) 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--royal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--mist); }
.ev-body .rich blockquote p { margin: 0; color: var(--ink); }
@media (max-width: 1024px) {
    .ev-lead { grid-template-columns: minmax(0, 1fr); }
    .ev-lead-media .photo { aspect-ratio: 16 / 9 !important; }
    .ev-lead-body { padding: var(--s-6); }
    .ev-layout--portrait { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
    .ev-layout--portrait .ev-figure { order: 0; position: static; max-width: 420px; }
}
@media (max-width: 640px) {
    .ev-lead-body { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
    .ev-lead { transition: none; }
    .ev-lead:hover { transform: none; }
}

/* ---------- 34. Project photographs (2026-10-26): side by side at one height, whatever their proportions ---------- */
.pj-photos { display: flex; gap: var(--s-4); align-items: flex-start; }
.pj-photos figure { flex: var(--r, 1) 1 0; min-width: 0; margin: 0; }
.pj-photos .photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pj-photos--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-photos--grid figure { flex: none; }
.pj-photos--grid .is-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .pj-photos { flex-direction: column; }
    .pj-photos figure { flex: none; width: 100%; }
    .pj-photos--grid { display: flex; }
}

/* ---------- 35. Partners and collaborators page (2026-10-26): a larger logo wall, one name under each logo ---------- */
.pt-more { margin: var(--s-5) 0 0; }
.pt-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.pt-lead { max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .pt-tile { transition: none; } .pt-tile:hover { transform: none; } }

/* ---------- 36. Media Gallery (2026-10-26): grouped thumbnails and a lightbox ---------- */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.gl-item { margin: 0; }
.gl-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius-card); background: var(--mist-2); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gl-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gl-thumb:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.gl-thumb .photo { display: block; width: 100%; aspect-ratio: 4 / 3 !important; border-radius: 0; object-fit: cover; object-position: center 30%; transition: transform .4s var(--ease); }
.gl-thumb:hover .photo { transform: scale(1.04); }
.gl-zoom { position: absolute; right: var(--s-3); bottom: var(--s-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--brand-rgb), .86); color: #fff; opacity: 0; transition: opacity .2s var(--ease); }
.gl-thumb:hover .gl-zoom, .gl-thumb:focus-visible .gl-zoom { opacity: 1; }
.gl-zoom .icon { width: 20px; height: 20px; }
.gl-caption { margin: var(--s-3) 0 0; color: var(--deep); font-size: var(--fs-sm); font-weight: 600; }
.gl-dialog { width: min(96vw, 1100px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #14102e; color: #fff; overflow: hidden; }
.gl-dialog::backdrop { background: rgba(20, 16, 46, .82); }
.gl-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gl-dialog-bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3); padding: var(--s-3); }
.gl-count { margin: 0 auto 0 var(--s-2); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.gl-pause-icon { display: none; }
.gl-dialog.is-playing .gl-pause-icon { display: block; }
.gl-dialog.is-playing .gl-play-icon { display: none; }
.gl-dialog [hidden] { display: none !important; }
.gl-dialog.is-single { width: min(96vw, 640px); }
.gl-dialog-figure { display: grid; justify-items: center; align-content: center; gap: var(--s-3); margin: 0; padding: 0 var(--s-8) var(--s-5); min-height: 0; }
.gl-dialog-figure img { max-width: 100%; max-height: calc(94vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.gl-dialog-figure figcaption { font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.gl-dialog-nav { position: absolute; inset: 50% var(--s-3) auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.gl-dialog-nav .gl-btn { pointer-events: auto; }
.gl-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.gl-btn:hover { background: rgba(255, 255, 255, .26); }
.gl-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
    .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
    .gl-dialog-figure { padding: 0 var(--s-3) var(--s-4); }
    .gl-dialog-nav { inset: auto var(--s-3) var(--s-3); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .gl-thumb, .gl-thumb .photo, .gl-zoom { transition: none; } .gl-thumb:hover, .gl-thumb:hover .photo { transform: none; } }

/* ---------- 37. Partner With Us and Enquiries (2026-10-26): four options, the form, and ways to reach us ---------- */
.eq-options-section { padding-block: 0 var(--s-6); }
.eq-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.eq-option { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); min-height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); color: var(--deep); font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.eq-option:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.eq-option:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.eq-option[aria-current="page"] { border-color: var(--royal); background: var(--mist); }
.eq-option .objective-icon { margin: 0; }
.eq-option > .icon { margin-top: auto; color: var(--royal); }
.eq-option-label { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.3; }
.eq-first { padding-top: 0; }
.eq-main { min-width: 0; }
.eq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-8); align-items: start; }
.eq-form-wrap > .h2 { margin-bottom: var(--s-5); }
.eq-form { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.eq-note { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.eq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.eq-field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.eq-field label { color: var(--deep); font-weight: 600; }
.eq-field input, .eq-field select, .eq-field textarea { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid #8b87a8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; }
.eq-field textarea { min-height: 160px; resize: vertical; }
.eq-field input:focus-visible, .eq-field select:focus-visible, .eq-field textarea:focus-visible { outline: 3px solid var(--royal); outline-offset: 1px; border-color: var(--royal); }
.eq-field [aria-invalid="true"] { border-color: #a11d2e; background: #fff7f8; }
.eq-field legend { padding: 0; margin-bottom: var(--s-2); color: var(--deep); font-weight: 600; }
fieldset.eq-field { border: 0; margin: 0; padding: 0; }
.eq-choice { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; }
.eq-field .eq-choice input { width: 22px; min-height: 22px; flex: none; margin-top: 2px; accent-color: var(--royal); }
.eq-hint { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.eq-error { margin: 0; color: #8a1424; font-size: var(--fs-sm); font-weight: 600; }
.eq-errors { margin-bottom: var(--s-5); padding: var(--s-4) var(--s-5); border-left: 4px solid #a11d2e; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff7f8; color: #5c0f1a; }
.eq-errors-title { margin: 0 0 var(--s-2); font-weight: 700; }
.eq-errors ul { margin: 0; padding-left: 1.2em; }
.eq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eq-actions { display: flex; justify-content: flex-start; }
.eq-sent { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.eq-sent .objective-icon { margin: 0; background: #fff; flex: none; }
.eq-sent p { margin: 0; }
.eq-sent-title { color: var(--deep); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 700; }
.eq-side { position: sticky; top: 104px; padding: var(--s-6); border-radius: var(--radius); background: var(--mist); }
.eq-side .h2 { margin-bottom: var(--s-4); }
.eq-reach { display: grid; gap: var(--s-4); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.eq-reach li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-soft, #3a3757); }
.eq-reach .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--royal); }
.eq-reach a { color: var(--deep); font-weight: 600; word-break: break-word; }
@media (max-width: 1024px) {
    .eq-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eq-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
    .eq-side { position: static; }
}
@media (max-width: 640px) {
    .eq-options { grid-template-columns: minmax(0, 1fr); }
    .eq-row { grid-template-columns: minmax(0, 1fr); }
    .eq-form { padding: var(--s-5); }
    .eq-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .eq-option { transition: none; } .eq-option:hover { transform: none; } }

/* =========================================================
   35b. OUR TEAM (About > Our Team)
   Same cards as the Governing Body page, 5 to a row on wide screens, grouped by department.
   ========================================================= */

.team-note { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border-left: 4px solid var(--royal); background: var(--mist); color: var(--deep); border-radius: var(--radius-sm); }
.team-empty { color: var(--muted); max-width: 40em; }
.team-filter { margin-bottom: var(--s-7); padding: var(--s-4) var(--s-5); background: var(--mist); border-radius: var(--radius-card); }
.team-filter ul { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.team-chip { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 var(--s-4) 0 var(--s-5); border: 1.5px solid transparent; border-radius: 999px; background: #fff; color: var(--royal); font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(35, 28, 76, .08); transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.team-chip:hover { border-color: var(--royal); box-shadow: 0 4px 12px rgba(35, 28, 76, .14); }
.team-chip:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.team-chip.is-active { background: var(--deep); color: #fff; }
.team-chip-count { display: inline-grid; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; place-items: center; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 700; }
.team-chip.is-active .team-chip-count { background: rgba(255, 255, 255, .22); color: #fff; }
.team-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); border-bottom: 2px solid rgba(92, 64, 170, .18); }
.team-tab { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-6); margin-bottom: -2px; border-bottom: 4px solid transparent; color: var(--royal); font-weight: 700; font-size: 1.05rem; text-decoration: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: background 160ms ease, color 160ms ease; }
.team-tab:hover { background: var(--mist); }
.team-tab:focus-visible { outline: 3px solid var(--royal); outline-offset: -3px; }
.team-tab.is-active { color: var(--deep); border-bottom-color: var(--royal); background: var(--mist); }
.team-panel[hidden] { display: none; }
@media (max-width: 480px) { .team-tab { flex: 1 1 auto; justify-content: center; padding: 0 var(--s-4); } }
.team-group { scroll-margin-top: 96px; }
.team-group:not([hidden]) ~ .team-group:not([hidden]) { margin-top: var(--s-8); } /* space only between groups that are both showing */
.team-group-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin: 0 0 var(--s-2); padding-bottom: var(--s-3); border-bottom: 2px solid rgba(92, 64, 170, .18); }
.team-group-title { margin: 0; padding-left: var(--s-4); border-left: 6px solid var(--royal); color: var(--deep); font-size: 1.6rem; line-height: 1.2; }
.team-group-count { flex: none; padding: .3rem .85rem; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 700; }
.team-group-note { margin: 0 0 var(--s-6); color: var(--muted); max-width: 44em; }
.team-group .members { margin-top: var(--s-6); }
.members--team .member-card { border-top: 4px solid var(--royal); height: 100%; }
.members--team .member-card-media { aspect-ratio: 4 / 4.4; }
.members--team .member-card-placeholder { background: linear-gradient(145deg, #ece7f9, #d9d0f2); color: var(--royal); font-size: 2.6rem; letter-spacing: .04em; }
.members--team .member-card-wrap:nth-child(3n+2) .member-card-placeholder { background: linear-gradient(145deg, #e3eefb, #cfe0f6); }
.members--team .member-card-wrap:nth-child(3n) .member-card-placeholder { background: linear-gradient(145deg, #fbe9ee, #f4d3dc); }
.members--team .member-card-info { min-height: 0; padding: 1rem 1rem 1.15rem; text-align: center; }
.members--team .member-card-info h4 { margin: 0 0 .3rem; color: #1b1230; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.members--team .role { font-size: .9rem; }
.members--team .qualification { display: inline-block; margin: .6rem 0 0; padding: .2rem .7rem; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .team-chip, .team-tab { transition: none; } }
.members.members--team { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.members--team .member-card-info { min-height: 0; padding: 1rem 1rem 1.1rem; }
.members--team .member-card-info h4 { margin: 0 0 0.3rem; color: #1b1230; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.members--team .qualification { margin: 0.25rem 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }

@media (max-width: 1280px) {
    .members.members--team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .members.members--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .members.members--team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

@media (max-width: 420px) {
    .members.members--team { grid-template-columns: 1fr; }
}

/* =========================================================
   35c. ACHIEVEMENTS (Our Impact > Achievements)
   Text, with an optional photo beside it from 1025px.
   ========================================================= */

.achievements { display: grid; gap: var(--s-6); max-width: 46rem; }
.achievements-text p { margin: 0 0 var(--s-5); font-size: 1.1rem; line-height: 1.7; }
.achievements-text p:last-child { margin-bottom: 0; }


/* the highlight, award and certificate cards */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: var(--s-6); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.ach-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.ach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.ach-media { overflow: hidden; background: var(--mist); }
.ach-media img { display: block; width: 100%; height: auto; } /* the photo's own shape: nothing cropped */
.ach-body { padding: var(--s-5) var(--s-5) var(--s-6); }
.ach-body h3 { margin: 0 0 var(--s-2); color: var(--deep); font-size: 1.15rem; line-height: 1.3; }
.ach-body p { margin: 0; color: var(--muted); }
.ach-meta { margin-bottom: var(--s-2) !important; color: var(--royal) !important; font-size: var(--fs-xs); font-weight: 600; }
.ach-panel { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; color: var(--royal); background: linear-gradient(145deg, var(--mist), var(--mist-2)); }
.ach-panel .icon { width: 3rem; height: 3rem; }
.ach-award { flex-direction: row; align-items: flex-start; }
.ach-award-icon { display: grid; flex: none; place-items: center; width: 3.25rem; height: 3.25rem; margin: var(--s-5) 0 0 var(--s-5); border-radius: 50%; background: var(--mist); color: var(--royal); }
.ach-award-icon .icon { width: 1.6rem; height: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .ach-card { transition: none; } .ach-card:hover { transform: none; } }

/* Achievements hero: a drawn composition of icon tiles round a seal (used when no photo is set) */
.ach-hero-visual { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, var(--mist-2), var(--mist) 60%, #fff); border: 1px solid var(--line); }
.ach-orb { position: absolute; border-radius: 50%; background: var(--royal); opacity: .08; }
.ach-orb--a { width: 260px; height: 260px; top: -70px; right: -60px; }
.ach-orb--b { width: 180px; height: 180px; bottom: -60px; left: -40px; background: var(--deep); }
.ach-seal { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 130px; height: 130px; transform: translate(-50%, -50%); border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--royal), var(--deep)); box-shadow: 0 0 0 10px rgba(var(--brand-rgb), .08), 0 0 0 22px rgba(var(--brand-rgb), .05), var(--shadow); }
.ach-seal .icon { width: 3.4rem; height: 3.4rem; }
.ach-hero-tile { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem .6rem .7rem; border-radius: 999px; background: #fff; color: var(--deep); font-weight: 600; font-size: var(--fs-xs); box-shadow: var(--shadow-sm); border: 1px solid var(--line); animation: ach-float 6s ease-in-out infinite; }
.ach-hero-tile .icon { box-sizing: content-box; width: 1.35rem; height: 1.35rem; padding: .45rem; border-radius: 50%; background: var(--mist); color: var(--royal); }
.ach-hero-tile--1 { top: 12%; left: 8%; }
.ach-hero-tile--2 { top: 16%; right: 8%; animation-delay: -1.5s; }
.ach-hero-tile--3 { bottom: 14%; right: 10%; animation-delay: -3s; }
.ach-hero-tile--4 { bottom: 18%; left: 9%; animation-delay: -4.5s; }
@keyframes ach-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ach-hero-tile { animation: none; } }
@media (max-width: 1024px) { .ach-hero-visual { min-height: 300px; } }
@media (max-width: 480px) {
    .ach-hero-visual { min-height: 260px; }
    .ach-seal { width: 96px; height: 96px; }
    .ach-seal .icon { width: 2.4rem; height: 2.4rem; }
    .ach-hero-tile { padding-right: .8rem; }
    .ach-hero-tile--1 { left: 4%; } .ach-hero-tile--2 { right: 4%; } .ach-hero-tile--3 { right: 4%; } .ach-hero-tile--4 { left: 4%; }
}
.page-hero-media .ach-hero-photo { aspect-ratio: 16 / 10 !important; height: auto; object-position: center 40%; }

/* Partner logos: every card is the same size and the same 3:2 shape, whatever the logo's own proportions */
.pt-logos, .pt-wall { --pt-cols: 4; --pt-gap: var(--s-5); display: grid; grid-template-columns: repeat(var(--pt-cols), minmax(0, 1fr)); gap: var(--pt-gap); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.pt-wall { margin: 0; }
.pt-logo, .pt-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.pt-tile:hover, .pt-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.pt-logo { aspect-ratio: 3 / 2; align-items: center; justify-content: center; padding: var(--s-5); }
.pt-tile-logo { display: grid; place-items: center; aspect-ratio: 3 / 2; width: 100%; padding: var(--s-5); }
.pt-logo img, .pt-tile-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pt-tile-name { display: grid; place-items: center; flex: 1; margin: 0; padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); color: var(--deep); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; text-align: center; min-height: 4.2rem; }
@media (max-width: 1024px) { .pt-logos, .pt-wall { --pt-cols: 3; } }
@media (max-width: 760px) { .pt-logos, .pt-wall { --pt-cols: 2; --pt-gap: var(--s-4); } .pt-logo, .pt-tile-logo { padding: var(--s-4); } }
@media (prefers-reduced-motion: reduce) { .pt-logo, .pt-tile { transition: none; } .pt-tile:hover, .pt-logo:hover { transform: none; } }

/* =========================================================
   36. PHOTO FRAMING: every photo keeps its own shape, so nothing is cropped and nothing is letterboxed
   x-vms.photo draws each photo at its real proportions (inline aspect-ratio) and marks it data-shape="wide" (over 1.9:1), "tall" (under 1.1:1)
   or "standard". Frames therefore follow the photo instead of forcing 4:3 or 16:9 on it: heroes and cards take the photo's height, the
   gallery lays photos out in justified rows (equal row height, full width), and the lead event stacks a landscape photo above its text.
   Do not force `aspect-ratio ... !important` or a fixed height on a frame that holds a photo of people.
   ========================================================= */

.sv-hero-media .photo,
.st-hero-media .photo,
.page-hero-media .photo,
.mv-cta-media .photo,
.ev-card-media .photo,
.ev-lead-media .photo { aspect-ratio: auto !important; width: 100%; height: auto; min-height: 0; max-height: none; object-fit: cover; }
.page-hero-media { align-items: flex-start; }
.mv-cta-media { align-self: start; }

/* the gallery: justified rows. Each item grows in proportion to its photo's ratio, so every photo in a row has the same height
   and the row fills the width; the empty ::after keeps a short last row from stretching */
.gl-grid { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.gl-grid::after { content: ''; flex-grow: 1000000; }
.gl-item { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 190px); min-width: 0; }
.gl-thumb .photo { aspect-ratio: auto !important; height: auto; object-fit: cover; object-position: center; }
.gl-thumb:hover .photo { transform: scale(1.02); }
/* a gallery inside a page column: the caption lies over the foot of its photo. With a mouse it appears on hover or keyboard
   focus; touch screens have no hover, so there it is always shown. A long word wraps inside a narrow upright photo */
.gl-grid--page .gl-item { position: relative; align-self: flex-start; }
.gl-grid--page .gl-caption { position: absolute; inset: auto 0 0 0; margin: 0; padding: var(--s-6) var(--s-4) var(--s-3); border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .65) 60%, rgba(0, 0, 0, 0)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); overflow-wrap: anywhere; pointer-events: none; }
.gl-grid--page .gl-thumb:hover { transform: none; }
@media (hover: hover) {
    .gl-grid--page .gl-caption { opacity: 0; transition: opacity .25s var(--ease); }
    .gl-grid--page .gl-item:hover .gl-caption, .gl-grid--page .gl-item:focus-within .gl-caption { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .gl-grid--page .gl-caption { transition: none; } }
@media print { .gl-grid--page .gl-caption { position: static; opacity: 1; padding: var(--s-2) 0 0; background: none; color: var(--deep); text-shadow: none; } }

/* service-page photo galleries (three or more photos): justified rows like the Media Gallery; the first wide photo spans the full width */
@media (min-width: 761px) {
    .pj-photos--grid { display: flex; flex-wrap: wrap; align-items: flex-start; }
    .pj-photos--grid::after { content: ''; flex-grow: 1000000; }
    .pj-photos--grid figure { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 200px); }
    .pj-photos--grid .is-wide { flex: 1 1 100%; }
}

/* the lead event: a landscape photo sits above its text (full width, whole), a poster stays beside it */
.ev-lead:has(.photo:not([data-shape="tall"])) { grid-template-columns: minmax(0, 1fr); }
.ev-lead:has(.photo[data-shape="tall"]) .ev-lead-media { max-height: 560px; overflow: hidden; }
.ev-lead:has(.photo[data-shape="tall"]) .ev-lead-media .photo { height: 100%; object-fit: contain; }
.ev-lead-media { background: var(--mist-2); }
/* the event cards flow in columns (masonry): each card is as tall as its photo and text need, so no column has gaps under it */
.ev-cards { display: block; column-count: 3; column-gap: var(--s-6); }
.ev-cards > .ev-card { display: flex; margin: 0 0 var(--s-6); break-inside: avoid; }
@media (max-width: 1024px) { .ev-cards { column-count: 2; } }
@media (max-width: 640px) { .ev-cards { column-count: 1; } }

@media (max-width: 640px) {
    .page-hero-media { flex-direction: column; min-height: 0; }
    .page-hero-media .photo { flex: none; height: auto; min-height: 0; }
    .gl-grid { gap: var(--s-3); }
    .gl-item { flex-basis: calc(var(--r, 1.5) * 120px); }
}

/* =========================================================
   37. INFRASTRUCTURE & FACILITIES (About > Infrastructure & Facilities)
   Cards for the buildings, a table for the machines. Photos are shown whole (see section 36).
   ========================================================= */

.infra-jump { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.infra-intro { max-width: 40em; margin: 0 0 var(--s-6); color: var(--muted); }
.infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s-6); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.infra-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.infra-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--royal); }
.infra-media { overflow: hidden; background: var(--mist-2); }
.infra-media .photo { display: block; width: 100%; height: auto; aspect-ratio: auto !important; border-radius: 0; object-fit: cover; } /* its own shape: whole photo, no bars */
.infra-media-empty { aspect-ratio: 3 / 2; }
.infra-media-empty { display: grid; place-items: center; width: 100%; color: var(--royal); background: linear-gradient(145deg, var(--mist), var(--mist-2)); }
.infra-media-empty .icon { width: 3rem; height: 3rem; }
.infra-body { padding: var(--s-5) var(--s-5) var(--s-6); }
.infra-body h3 { margin: 0 0 var(--s-2); color: var(--deep); font-size: 1.15rem; line-height: 1.3; }
.infra-body p { margin: 0; color: var(--muted); }
.infra-list { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; color: var(--ink); }
.infra-list li { position: relative; padding-left: 1.1rem; line-height: 1.45; }
.infra-list li::before { content: ''; position: absolute; top: .55em; left: 0; width: .45rem; height: .45rem; border-radius: 50%; background: var(--royal); }
#infrastructure .infra-grid { align-items: start; } /* a short facility list does not stretch to match a long one */
@media (min-width: 1025px) { .infra-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* posters on the programme pages: whole, with a line saying they open full size */
.pr-poster { margin: var(--s-5) 0 0; }
.pr-poster a { display: block; }
.pr-poster .photo { display: block; width: 100%; height: auto; aspect-ratio: auto !important; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.pr-poster-open { display: inline-flex; align-items: center; min-height: 44px; color: var(--royal); font-weight: 600; text-decoration: underline; }
.pr-poster-top { max-width: 68rem; padding-top: var(--s-5); }

.fac-wrap { margin-top: var(--s-6); overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.fac-table { width: 100%; border-collapse: collapse; text-align: left; }
.fac-table th, .fac-table td { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: middle; }
.fac-table thead th { background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fac-table tbody th { color: var(--deep); font-weight: 600; }
.fac-table tbody tr:last-child th, .fac-table tbody tr:last-child td { border-bottom: 0; }
.fac-table tbody tr:hover { background: var(--mist); }
.fac-table th:last-child, .fac-table td:last-child { width: 11rem; }
.fac-photo .photo { display: block; width: 8.5rem; height: auto; aspect-ratio: auto !important; border-radius: var(--radius-sm); }

/* phones: each machine becomes a small card with its labelled values */
@media (max-width: 640px) {
    .fac-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
    .fac-table, .fac-table tbody, .fac-table tr, .fac-table th, .fac-table td { display: block; width: auto; }
    .fac-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .fac-table tbody tr { margin-bottom: var(--s-4); padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
    .fac-table th, .fac-table td { padding: var(--s-2) 0; border: 0; }
    .fac-table tbody th { font-size: 1.1rem; }
    .fac-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
    .fac-table th:last-child, .fac-table td:last-child { width: auto; }
    .fac-photo .photo { width: 100%; max-width: 16rem; margin-top: var(--s-2); }
}
@media (prefers-reduced-motion: reduce) { .infra-card { transition: none; } .infra-card:hover { transform: none; } }

/* =========================================================
   38. CAREERS (Our Projects > Careers)
   One card per posting: title and last date, description, then roles and eligibility side by side.
   ========================================================= */

.job-list { display: grid; gap: var(--s-6); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.job-card { padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--royal); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-4); }
.job-head h3 { margin: 0; color: var(--deep); font-size: 1.5rem; line-height: 1.25; }
.job-date { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; padding: .35rem .9rem; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: var(--fs-xs); font-weight: 700; }
.job-date .icon { width: 1.1rem; height: 1.1rem; color: var(--royal); }
.job-date.is-closed { background: #f1f1f4; color: var(--muted); }
.job-desc { max-width: 52em; margin: 0 0 var(--s-5); font-size: 1.0625rem; line-height: 1.7; }
.job-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.job-cols h4 { margin: 0 0 var(--s-3); color: var(--royal); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.job-cols ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.job-cols li::marker { color: var(--royal); }
.job-cols li { margin-bottom: var(--s-2); line-height: 1.6; }
.job-apply { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.job-apply p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.job-empty { max-width: 40em; color: var(--muted); }
@media (max-width: 760px) { .job-cols { grid-template-columns: 1fr; gap: var(--s-5); } .job-card { padding: var(--s-5); } }

/* =========================================================
   39. SERVICE AREA PAGES: a photo beside the section or sub-section it illustrates
   Two columns from 900px (text, then a photo of its own shape, never cropped); stacked on smaller screens.
   ========================================================= */

.pr-row { display: block; }
.pr-figure { margin: var(--s-4) 0 0; }
.pr-figure .photo { display: block; width: 100%; height: auto; aspect-ratio: auto !important; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
@media (min-width: 900px) {
    .pr-row--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem); gap: var(--s-6); align-items: start; }
    .pr-row--photo .pr-figure { margin: 0; }
    .pr-row--photo .pr-text > :first-child { margin-top: 0; }
    /* a wide photo (over 1.9:1, such as the Digital Literacy Lab) gets a wider column so it is not a thin strip */
    .pr-row--photo:has(.photo[data-shape="wide"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
}
/* the text column of a section keeps the spacing and colour the section's direct children used to get */
.pr-text > .h2 { margin-bottom: var(--s-4); }
.pr-text > p { max-width: 46em; color: var(--text-soft, #3a3757); }
.pr-text > p + p { margin-top: var(--s-4); }
.pr-sub .pr-text > p { color: inherit; max-width: none; }

.sv-story--text { grid-template-columns: 1fr; } /* a story card without its photo */

/* =========================================================
   40. PROVISIONAL PAGES (content-page.blade.php, config/vms_pages.php)
   A review banner, ordinary sections, and a highlighted "VMS to confirm" box wherever VMS must still decide or supply something.
   ========================================================= */

.cp-banner-wrap { margin-top: calc(var(--s-5) * -1); padding-top: var(--s-5); }
.cp-banner { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); border: 1px solid #e6c85a; border-left: 6px solid #c99a00; border-radius: var(--radius-sm); background: #fff8dc; color: #4a3a00; }
.cp-banner strong { color: #3a2d00; }
/* a quiet illustration at the right of a text-only hero; only where it cannot reach the heading */
.cp-hero .container { position: relative; }
.cp-hero-art { position: absolute; right: var(--s-5); top: 50%; width: min(26vw, 340px); height: auto; transform: translateY(-50%); color: var(--royal); opacity: .35; pointer-events: none; }
@media (max-width: 1024px) { .cp-hero-art { display: none; } }
.cp-section > p { max-width: 46em; color: var(--text-soft, #3a3757); }
.cp-section > p + p { margin-top: var(--s-4); }
.cp-list { max-width: 46em; margin: var(--s-4) 0 0; padding-left: 1.3em; list-style: disc; }
.cp-list li { margin-bottom: var(--s-2); line-height: 1.6; }
.cp-list li::marker { color: var(--royal); }
.cp-cards { margin-top: var(--s-5); }
.cp-cta { margin-top: var(--s-3) !important; color: var(--royal) !important; font-weight: 600; font-size: var(--fs-sm); }
.cp-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4); max-width: 60em; margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.cp-contacts li { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.cp-contacts li > span { color: var(--deep); font-weight: 600; }
.cp-contacts a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--royal); font-weight: 700; text-decoration: none; }
.cp-contacts .icon { width: 1.1rem; height: 1.1rem; }
.cp-confirm { max-width: 46em; margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border: 1px dashed #c99a00; border-radius: var(--radius-sm); background: #fff8dc; color: #4a3a00; }
.cp-confirm-label { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); color: #3a2d00; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-confirm-label .icon { width: 1.1rem; height: 1.1rem; }
.cp-confirm ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.cp-confirm li { margin-bottom: var(--s-2); line-height: 1.55; }
.cp-confirm li:last-child { margin-bottom: 0; }
.cp-section > .h2 { margin-bottom: var(--s-4); }
.cp-section .ev-cards { margin-top: var(--s-5); margin-bottom: var(--s-6); }
.cp-section .ev-cards + .cp-cards { margin-top: 0; }

/* case studies on a content page: each one is a <details> that opens on its own */
.cp-studies { max-width: 52em; margin-top: var(--s-5); border-top: 1px solid #d8cfee; }
.cp-study { border-bottom: 1px solid #d8cfee; }
.cp-study summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none; }
.cp-study summary::-webkit-details-marker { display: none; }
.cp-study summary:hover .cp-study-title { color: var(--royal); }
.cp-study-head { display: flex; flex-direction: column; gap: var(--s-1); }
.cp-study-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.cp-study-meta { font-size: var(--fs-sm); color: var(--muted); }
.cp-study summary .icon { flex: none; color: var(--royal); transition: transform .25s var(--ease); }
.cp-study[open] summary .icon { transform: rotate(45deg); }
.cp-study-body { padding-bottom: var(--s-5); }
.cp-study-body p { max-width: 46em; color: var(--text-soft, #3a3757); }
.cp-study-body p + p { margin-top: var(--s-4); }
.section-close .btn-row { padding-block: var(--s-6); }

/* phones: tighter cells so the statutes table fits the screen with the registration details still on one line */
@media (max-width: 480px) {
    .ab-table { font-size: .875rem; }
    .ab-table th, .ab-table td { padding: var(--s-3) var(--s-2); }
    .ab-table thead th { letter-spacing: 0; font-size: .8rem; }
}

/* >>> nav-collapsed (generated by scripts/build-nav-collapsed-css.php; do not edit between the markers) */
    html.nav-collapsed .header-actions { margin-left: auto; }
    html.nav-collapsed .nav-toggle { display: inline-grid; }
    html.nav-collapsed .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(92vw, 400px); margin: 0; padding: 0 var(--gutter) var(--s-5); background: #fff; overflow-y: auto; overscroll-behavior: contain; box-shadow: -24px 0 48px -24px rgba(20, 15, 60, .5); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
    html.nav-collapsed .primary-nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
    html.nav-open { overflow: hidden; }
    html.nav-collapsed .drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); }
    html.nav-collapsed .drawer-title { font-weight: 600; }
    html.nav-collapsed .nav-list { display: block; }
    html.nav-collapsed .nav-item { border-bottom: 1px solid var(--line); }
    html.nav-collapsed .nav-link { width: 100%; justify-content: space-between; min-height: 56px; padding-inline: 0; border-radius: 0; font-size: var(--fs-h4); }
    html.nav-collapsed .nav-link:hover { background: none; }
    html.nav-collapsed .nav-link.is-active::after { left: 0; right: auto; width: 28px; bottom: 8px; }
    html.nav-collapsed .nav-link-help { margin: 0; border: 0; border-radius: 0; background: none !important; }
    html.nav-collapsed .nav-link-help.is-active::after { display: block; }
    html.nav-collapsed .submenu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 var(--s-3) var(--s-4); }
    html.nav-collapsed .submenu a { min-height: 48px; font-size: 1rem; }
    html.nav-collapsed .drawer-cta { display: block; margin-top: auto; padding-top: var(--s-6); }
    html.nav-collapsed .drawer-cta .btn { width: 100%; min-height: 56px; }
    html.nav-collapsed .submenu.mega { padding: 0 0 var(--s-3) var(--s-4); }
    html.nav-collapsed .has-menu.open > .submenu.mega { display: grid; gap: var(--s-4); }
    html.nav-collapsed .submenu.mega .mega-help a.mega-all { min-height: 48px; }
    html.nav-collapsed .drawer-cta { display: grid; gap: var(--s-3); }
    html.nav-collapsed .nav-link > .icon { transform: rotate(-90deg); }
    html.nav-collapsed .has-menu.open > .nav-link .icon { transform: rotate(-90deg); }
    html.nav-collapsed .nav-list:has(.has-menu.open) > .nav-item:not(.open) { display: none; }
    html.nav-collapsed .nav-item.open > .nav-link { display: none; }
    html.nav-collapsed .nav-item.open { border-bottom: 0; }
    html.nav-collapsed .submenu .submenu-back { display: block; }
    html.nav-collapsed .submenu-back button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: var(--fs-h4); font-weight: 600; color: var(--deep); text-align: left; }
    html.nav-collapsed .submenu { padding-left: 0; }
    html.nav-collapsed .submenu li:not(.submenu-back) a { border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; min-height: 56px; gap: var(--s-3); justify-content: flex-start; }
    html.nav-collapsed .submenu li:not(.submenu-back) a::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
    html.nav-collapsed .submenu--panel li a { padding-block: var(--s-2); align-items: center; }
    html.nav-collapsed .sm-line { display: none; }
    html.nav-collapsed .sm-title { font-weight: 500; color: var(--ink); }
    html.nav-collapsed .nav-link { white-space: normal; text-align: left; gap: var(--s-3); }
    html.nav-collapsed .nav-link > .icon { flex: none; }
/* <<< nav-collapsed */

/* what the collapsed menu must undo: styles that only exist at 1025px and wider (the desktop menu, the hover dropdowns, the transparent
   header over the home hero). Hand-written; the drawer rules themselves are generated above. */
html.nav-collapsed .submenu { display: none; visibility: visible; opacity: 1; transform: none; transition: none; width: auto; }
html.nav-collapsed .has-menu.open > .submenu { display: block; }
html.nav-collapsed .has-menu.open > .submenu--panel { display: block; }
html.nav-collapsed .submenu--panel { width: auto; padding: 0 0 var(--s-3); display: none; grid-template-columns: none; border-radius: 0; }
html.nav-collapsed .submenu::before { display: none; }
html.nav-collapsed .nav-link > .icon { display: inline-block; }
html.nav-collapsed .nav-link { font-weight: 600; }
html.nav-collapsed .nav-link.is-active { color: var(--royal); }
html.nav-collapsed .primary-nav { margin-left: 0; color: var(--ink); }
html.nav-collapsed .header-inner { gap: var(--s-4); }

/* the transparent home header: the menu button and Donate stay readable on the hero, the drawer itself is a white panel with dark links */
html.nav-collapsed .site-header--overlay:not(.is-compact) .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
html.nav-collapsed .site-header--overlay:not(.is-compact) .nav-toggle:hover { background: #fff; color: var(--deep); }
html.nav-collapsed .site-header--overlay .primary-nav .nav-link,
html.nav-collapsed .site-header--overlay .primary-nav .nav-link.is-active,
html.nav-collapsed .site-header--overlay:not(.is-compact) .primary-nav .nav-link,
html.nav-collapsed .site-header--overlay:not(.is-compact) .primary-nav .nav-link.is-active { color: var(--ink); text-shadow: none; background: none; }
html.nav-collapsed .site-header--overlay .primary-nav .nav-link.is-active,
html.nav-collapsed .site-header--overlay:not(.is-compact) .primary-nav .nav-link.is-active { color: var(--royal); }
html.nav-collapsed .site-header--overlay .primary-nav .nav-link-help { border: 0; }
html.nav-collapsed .site-header--overlay .primary-nav :focus-visible { outline-color: var(--royal); }

/* =========================================================
   41. ACCESSIBILITY: text size, high contrast, the accessibility panel, forced colours
   The panel (partials/accessibility-panel.blade.php) and its script (last module of vms.js) set data-text="1|2|3" (112.5% / 125% / 150%)
   and data-contrast="high" on <html>. Every size in this stylesheet is in rem, so a larger root size scales the whole page; when the desktop
   menu no longer fits, the script adds html.nav-collapsed and the slide-out menu is used (generated section above).
   ========================================================= */

html[data-text="1"] { font-size: 112.5%; }
html[data-text="2"] { font-size: 125%; }
html[data-text="3"] { font-size: 150%; }

/* a hero photo takes its own height: no tinted band under it */
.page-hero-media { min-height: 0; background: transparent; }

/* the panel */
.a11y { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 45; }
.a11y-toggle { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-4) 0 var(--s-3); border: 2px solid var(--deep); border-radius: 999px; background: #fff; color: var(--deep); font: 600 var(--fs-ui) var(--font-body); box-shadow: var(--shadow); cursor: pointer; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--deep); color: #fff; }
.a11y-toggle .icon { width: 1.5rem; height: 1.5rem; }
.a11y-panel { position: absolute; right: 0; bottom: calc(100% + var(--s-3)); width: min(21rem, calc(100vw - 2 * var(--s-4))); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); color: var(--ink); }
.a11y-title { margin: 0 0 var(--s-4); color: var(--deep); font-size: 1.125rem; line-height: 1.3; }
.a11y-label { margin: 0 0 var(--s-2); font-size: var(--fs-sm); font-weight: 600; }
.a11y-size { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.a11y-btn { min-width: 3rem; min-height: 3rem; border: 2px solid var(--deep); border-radius: 12px; background: #fff; color: var(--deep); font: 700 1.125rem var(--font-body); cursor: pointer; }
.a11y-btn:hover:not(:disabled) { background: var(--deep); color: #fff; }
.a11y-btn:disabled { opacity: .45; cursor: not-allowed; }
.a11y-value { min-width: 4.5rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.a11y-switch { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; margin-bottom: var(--s-4); font-weight: 600; cursor: pointer; }
.a11y-switch input { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--deep); cursor: pointer; }
.a11y-reset { min-height: 44px; padding: 0 var(--s-4); border: 1.5px solid var(--deep); border-radius: 12px; background: #fff; color: var(--deep); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.a11y-reset:hover { background: var(--deep); color: #fff; }
.a11y-more { display: inline-flex; align-items: center; min-height: 44px; margin-left: var(--s-4); color: var(--royal); font-weight: 600; font-size: var(--fs-sm); }
html.nav-open .a11y { display: none; }
@media (max-width: 640px) { .a11y { right: var(--s-3); bottom: calc(5rem + var(--s-3)); } } /* above the Find a Service / Call / Donate bar */
@media print { .a11y { display: none; } }

/* high contrast: black on white, strong borders, underlined links, no tints or shadows */
:root[data-contrast="high"], :root[data-contrast="high"][data-theme] {
    --text-soft: #000; --ink: #000; --muted: #000; --deep: #000; --royal: #0a0aa8; --line: #000;
    --mist: #fff; --mist-2: #fff; --white: #fff;
    --on-deep: #fff; --on-deep-muted: #fff; --band-end: #000; --scrim: 0, 0, 0; --scrim-text-alpha: .92; --brand-rgb: 0, 0, 0;
}
:root[data-contrast="high"] body { background: #fff; color: #000; }
:root[data-contrast="high"] * { box-shadow: none !important; text-shadow: none !important; }
:root[data-contrast="high"] main a:not(.btn):not(.nav-link), :root[data-contrast="high"] .site-footer a:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
:root[data-contrast="high"] :focus-visible { outline: 4px solid #000; outline-offset: 3px; }
:root[data-contrast="high"] .site-footer :focus-visible, :root[data-contrast="high"] .impact :focus-visible, :root[data-contrast="high"] .hero :focus-visible { outline-color: #fff; }
:root[data-contrast="high"] .btn, :root[data-contrast="high"] .icon-btn, :root[data-contrast="high"] .a11y-toggle, :root[data-contrast="high"] .a11y-btn { border-width: 2px; border-color: #000; }
:root[data-contrast="high"] .site-footer .btn, :root[data-contrast="high"] .impact .btn { border-color: #fff; }
:root[data-contrast="high"] .cp-banner, :root[data-contrast="high"] .cp-confirm, :root[data-contrast="high"] .team-note { background: #fff; border-color: #000; color: #000; }
:root[data-contrast="high"] .demo-badge, :root[data-contrast="high"] .cp-confirm-label { color: #000; }

/* the device's own "increase contrast" setting: stronger text and borders, without the underlines and shadow changes above */
@media (prefers-contrast: more) {
    :root { --ink: #000; --muted: #111; --line: #555; }
    :root[data-theme] { --ink: #000; --muted: #111; }
    :focus-visible { outline-width: 4px; }
}

/* Windows high-contrast (forced colours): keep every control, card and focus ring visible in the system colours */
@media (forced-colors: active) {
    :focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
    .btn, .icon-btn, .a11y-toggle, .a11y-btn, .a11y-reset, .nav-toggle { border: 2px solid ButtonText; }
    .nav-link.is-active, .nav-link-help.is-active { text-decoration: underline; }
    .nav-link.is-active::after { display: none; }
    .job-card, .sv-card, .st-card, .ach-card, .infra-card, .unit, .pt-tile, .pt-logo, .member-card, .cp-contacts li, .eq-form-wrap, .a11y-panel { border: 1px solid CanvasText; }
    .cp-banner, .cp-confirm { border: 2px solid CanvasText; }
    .team-chip, .team-tab, .job-date { border: 1px solid ButtonText; }
    .ab-table th, .ab-table td, .fac-table th, .fac-table td { border: 1px solid CanvasText; }
    .a11y-switch input { forced-color-adjust: auto; }
}

/* menu labels may wrap in the slide-out menu (large text, narrow screens); the arrow keeps its size.
   The collapsed-menu twin of this rule is generated (php scripts/build-nav-collapsed-css.php). */
@media (max-width: 1024px) { .nav-link { white-space: normal; text-align: left; gap: var(--s-3); } .nav-link > .icon { flex: none; } }

/* an optional "Read more" link at the foot of an Achievements card (a blog post) */
.ach-recipient { margin-bottom: var(--s-3) !important; color: var(--deep) !important; }
.ach-recipient strong { font-weight: 700; }
.ach-grid--awards { display: block; column-width: 21rem; column-gap: var(--s-6); } /* masonry: cards of any height stack in each column with no gaps (reads down each column) */
.ach-grid--awards > .ach-card { display: flex; margin: 0 0 var(--s-6); break-inside: avoid; -webkit-column-break-inside: avoid; }
.ach-summary { margin: 0; }
.ach-more { margin-top: var(--s-4); }
.ach-more summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--royal); font-weight: 600; cursor: pointer; list-style: none; }
.ach-more summary::-webkit-details-marker { display: none; }
.ach-more summary::after { content: "\203A"; margin-left: .5rem; font-size: 1.3em; line-height: 1; transition: transform .2s var(--ease); }
.ach-more[open] summary::after { transform: rotate(90deg); }
.ach-more summary:hover { text-decoration: underline; }
.ach-more summary:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: var(--radius-sm); }
.ach-more-close, .ach-more[open] .ach-more-open { display: none; }
.ach-more[open] .ach-more-close { display: inline; }
.ach-more-body { margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ach-more-body p { margin: 0 0 var(--s-3); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ach-more summary::after { transition: none; } }
.ach-list { margin: var(--s-3) 0 0; padding-left: 1.25rem; color: var(--muted); list-style: disc; }
.ach-list li { margin-top: var(--s-2); }
.ach-link { margin-top: var(--s-4) !important; }
.ach-link a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--royal); font-weight: 600; text-decoration: none; }
.ach-link a:hover { text-decoration: underline; }
.ach-link .icon { width: 1.1rem; height: 1.1rem; flex: none; }

/* Our Partners: a partner without a logo shows an icon; optional category, description and website under the name */
.pt-tile-icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--mist); color: var(--royal); }
.pt-tile-icon .icon { width: 2.4rem; height: 2.4rem; }
.pt-tile-text { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid var(--line); }
.pt-tile-text .pt-tile-name { flex: none; border-top: 0; min-height: 0; padding-bottom: var(--s-1); }
.pt-tile-cat { margin: 0; padding: 0 var(--s-4); color: var(--royal); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.pt-tile-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: var(--s-2) 0 0; padding: 0 var(--s-4); color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; text-align: center; }
.pt-tile-link { margin: var(--s-2) 0 var(--s-3); text-align: center; }
.pt-tile-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--royal); font-weight: 600; font-size: var(--fs-sm); }
.pt-empty { color: var(--muted); }

/* a tribute / portrait notice beside a service section (Shafaqat "How the center began"): wider column, because the image carries small text */
@media (min-width: 900px) {
    .pr-row--tribute { grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem); }
}
.pr-figure a { display: block; }
.pr-row--tribute .pr-figure .photo { border-radius: var(--radius-card); }

/* downloads: a tidy grid of document cards. Each preview (cover or first page) sits whole, never cropped, in an equal frame; the text and link follow below. */
.cp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s-5); }
.cp-docs .sv-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); }
.cp-thumb-frame { display: block; aspect-ratio: 4 / 3; margin-bottom: var(--s-3); border-radius: var(--radius-sm); background: var(--tint, #f3f1fb); overflow: hidden; }
.cp-thumb { display: block; width: 100%; height: 100%; padding: .75rem; box-sizing: border-box; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(var(--brand-rgb), .25)); }
.cp-docs .sv-card > p { margin: 0; }
.cp-docs .sv-card .cp-cta { margin-top: auto !important; padding-top: var(--s-2); padding-right: 2rem; }
.cp-docs .sv-card > .icon { top: auto; bottom: var(--s-4); right: var(--s-4); inset-block-start: auto; }

/* partner logos: every logo is fitted inside the same frame (whole, never cropped), so a tall or square logo can no longer stretch its tile */
.pt-tile-logo { --pt-pad: var(--s-5); position: relative; }
.pt-tile-logo img { position: absolute; inset: var(--pt-pad); width: calc(100% - 2 * var(--pt-pad)); height: calc(100% - 2 * var(--pt-pad)); max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 760px) { .pt-tile-logo { --pt-pad: var(--s-4); } }

/* ---------- WhatsApp button (2026-11-30): bottom left, a dark enough green for the white icon to read ---------- */
.wa-button { position: fixed; left: var(--s-4); bottom: var(--s-4); z-index: 45; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid #fff; border-radius: 50%; background: #107c41; color: #fff; box-shadow: var(--shadow); }
.wa-button:hover { background: #0b5f31; }
.wa-button svg { width: 2rem; height: 2rem; }
html.nav-open .wa-button { display: none; }
@media (max-width: 640px) { .wa-button { left: var(--s-3); bottom: calc(5rem + var(--s-3)); } } /* above the Find a Service / Call / Donate bar */
@media (forced-colors: active) { .wa-button { border-color: ButtonText; } }
@media print { .wa-button { display: none; } }

/* ---------- Our Team, Departmental Teams (2026-11-30): group photos two to a row, each at its own shape ---------- */
.team-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-items: start; margin: 0; padding: 0; list-style: none; }
.team-depts figure { margin: 0; }
.team-depts a { display: block; }
.team-depts .photo { width: 100%; height: auto; border-radius: var(--radius-card); }
.team-depts figcaption { margin-top: var(--s-3); color: var(--deep); font-weight: 600; text-align: center; }
@media (max-width: 800px) { .team-depts { grid-template-columns: minmax(0, 1fr); } }

/* Patient Enquiry: sub-centre cards side by side, long email addresses may wrap */
.cp-centres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); column-gap: var(--s-8); max-width: 60em; margin-top: var(--s-4); }
.cp-section .cp-centres li:nth-child(2) { padding-top: 0; border-top: 0; }
.cp-centres .centre-links a { overflow-wrap: anywhere; }
@media (max-width: 860px) { .cp-section .cp-centres li:nth-child(2) { padding-top: var(--s-5); border-top: 1px solid var(--line); } }
.cp-section .directory { margin-top: 0; }

/* Home "What We Do" heading: the purple second line stays on its own line; balance the first so "from" is not left alone on phones. */
#pillars-title { text-wrap: balance; }
#pillars-title .accent { display: block; }

/* ==========================================================================
   41. Cookie choices (partials/cookie-banner.blade.php, public/js/consent.js)
   A small floating card in the bottom-left corner, just above the WhatsApp button (and above the phone bottom bar). Accept and
   Reject are the same button on purpose. Without JavaScript the card stays hidden and no optional tag runs.
   ========================================================================== */
.cc { position: fixed; left: var(--s-4); bottom: calc(var(--s-4) + 3.5rem + var(--s-3)); z-index: 80; width: min(24rem, calc(100vw - 2 * var(--s-4))); max-height: calc(100vh - 3.5rem - 2 * var(--s-4) - var(--s-3) - var(--header-h)); overflow-y: auto; padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--royal); border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--ink); }
.cc[hidden] { display: none; }
.cc-title { margin: 0 0 var(--s-2); font: 700 1rem var(--font-display); color: var(--deep); }
.cc-text { margin: 0 0 var(--s-3); font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.cc-text a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.cc-panel { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); }
.cc-row { display: grid; gap: var(--s-2); padding: var(--s-3); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cc-row-title { margin: 0 0 2px; font-size: var(--fs-xs); font-weight: 700; color: var(--deep); }
.cc-row-text { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.cc-switch { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-size: var(--fs-xs); font-weight: 700; color: var(--deep); cursor: pointer; }
.cc-switch input { width: 1.375rem; height: 1.375rem; accent-color: var(--royal); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cc-actions .btn { min-height: 44px; padding: 0 var(--s-2); font-size: .875rem; white-space: normal; text-align: center; line-height: 1.2; }
.cc-actions .btn:last-child, .cc-actions [data-cc-manage] { grid-column: 1 / -1; }
.cc-actions .btn[hidden] { display: none; }
.cc-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-open:hover { text-decoration-thickness: 2px; }
.footer-bottom .cc-open { font-size: var(--fs-xs); }
.cc-open { display: none; }
.js .cc-open { display: inline-flex; }
.sv-fb-note { margin: 0; padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--muted); }
.sv-fb-note[hidden] { display: none; }
.sv-fb .sv-fb-note .cc-open { color: var(--royal); }
@media (max-width: 640px) { .cc { left: var(--s-3); bottom: calc(5rem + var(--s-3) + 3.5rem + var(--s-3)); width: calc(100vw - 2 * var(--s-3)); max-height: calc(100vh - 5rem - 3.5rem - 3 * var(--s-3) - var(--header-h)); } } /* above the WhatsApp button, which sits above the bottom bar */
html.nav-open .cc { display: none; }
@media print { .cc, .cc-open, .sv-fb-note { display: none !important; } }
:root[data-contrast="high"] .cc { border-top-color: #000; }
:root[data-contrast="high"] .cc-row { border-color: #000; }
