/* =====================================================================
   John Lewis Partnership Building Happier Futures Virtual Work Experience
   — single stylesheet. Structure from talentxp-website; palette + type
   from the live BHF site (TP-GLOBAL/JLPBHFCore): Gill Sans Nova for JL,
   Partnership green #003936, gold #f1b472, mint #e2f3ea, cream #fbf2ea,
   peach #ffe1dd, salmon #ffb3ab, emerald #04b084, off-white #f5f4f2.
   BHF page components are at the end of the file.
   ===================================================================== */

@font-face {
    font-family: "Gill Sans Nova JL";
    src: url("../fonts/GillSansNovaforJL-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gill Sans Nova JL";
    src: url("../fonts/GillSansNovaforJL-Medium.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gill Sans Nova JL";
    src: url("../fonts/GillSansNovaforJL-SemiBold.woff2") format("woff2");
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* JLP brand */
    --green: #003936;
    --green-2: #0b4f4a;
    --gold: #f1b472;
    --gold-strong: #e0954a;
    --mint: #b7e0cb;
    --stone: #f5f4f2;
    --teal: #05b084;
    --emerald: #04b084;
    --mint-light: #e2f3ea;
    --cream: #fbf2ea;
    --peach: #ffe1dd;
    --salmon: #ffb3ab;
    --mustard: #f3b974;
    --ink: #1b1b1b;

    /* Semantic tokens — names kept from talentxp-website so the shared account markup carries over. */
    --bg: #ffffff;
    --surface: var(--stone);
    --surface-2: #ebe7e1;
    --line: #d8d2c8;
    --text: var(--green);
    --muted: #4a6563;
    --lime: var(--green);          /* primary action background */
    --lime-ink: var(--gold);       /* text on a primary action (the legacy green + gold button) */
    --lime-hover: var(--green-2);
    --purple: var(--gold);         /* secondary accent */
    --purple-strong: var(--gold-strong);
    --purple-text: #8a5216;        /* gold-family text that passes AA on white */
    --paper: var(--mint);
    --paper-ink: var(--green);
    --paper-muted: #2f5552;
    --danger: #b3261e;

    --font-display: "Gill Sans Nova JL", "Gill Sans", "Gill Sans MT", Arial, sans-serif;
    --font-body: "Gill Sans Nova JL", "Gill Sans", "Gill Sans MT", Arial, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 20px;
    --pill: 999px;

    --gutter: 16px;
    --container: 1200px;
    --section: clamp(48px, 7vw, 96px);
    --shadow: 0 16px 40px rgba(0, 57, 54, .14);
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--teal);
}

@media (min-width: 768px) {
    :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .5) var(--section); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); margin-top: 12px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
@media (max-width: 767px) { .hide-sm { display: none !important; } }

/* ---------- Type ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.12;
    /* break-word, not anywhere: words only split if they truly can't fit, never by choice.
       Sizes below are set so the longest words (OPPORTUNITIES, PROGRAMMES) fit their columns. */
    overflow-wrap: break-word;
}
.display--xl { font-size: clamp(1.8rem, 5vw, 4rem); }
.display--lg { font-size: clamp(1.6rem, 3.6vw, 2.75rem); }
.display--md { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.eyebrow {
    margin: 0 0 14px;
    color: var(--purple-text);
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow--dark { color: var(--paper-ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; margin-top: 20px; }
.lead--narrow { max-width: 62ch; }
.h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; margin: 40px 0 16px; }
.h2:first-child { margin-top: 0; }
.h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.section-head { margin-bottom: 28px; }

.prose { color: var(--text); }
.prose p, .prose li { max-width: 72ch; }
.prose a { color: var(--lime); }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1em; }
.prose h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.prose img { border-radius: var(--radius-sm); margin-block: 1em; }

/* ---------- Buttons / links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px;
    border-radius: var(--pill); border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn--dark { background: var(--paper-ink); color: #fff; }
.btn--dark:hover { background: var(--green-2); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); }
.btn--disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.btn--disabled:hover { transform: none; }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: 6px 16px; font-size: .875rem; }
.btn--block { width: 100%; margin-top: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--purple-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover { color: var(--lime); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: none; border: 0; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.circle-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--purple); background: none; color: var(--purple-text); cursor: pointer; }
.circle-btn:hover { background: var(--purple); color: #fff; }

.pill-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--pill);
    background: var(--lime); color: var(--lime-ink);
    font-family: var(--font-body); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
}
.pill-cta:hover { background: var(--lime-hover); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border: 1.5px solid currentColor; border-radius: var(--pill);
    font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.chip--solid { background: var(--lime-ink); color: var(--lime); border-color: var(--lime-ink); }
.chips--dark .chip { border-color: var(--line); color: var(--text); background: var(--surface); }
.chip--link { text-decoration: none; }
.chip--link:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; flex: none; }
.logo { display: block; width: auto; }
@media (max-width: 767px) { .site-header .logo { height: 42px !important; } }
@media (max-width: 360px) { .site-header .logo { height: 34px !important; } }

/* ---------- Wordmark (text fallback, unused while the logo image is in place) ---------- */
.wordmark {
    font-family: var(--font-body); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em;
    color: var(--text); text-decoration: none; line-height: 1;
}
.wordmark span { color: var(--lime); }
.wordmark--sm { font-size: 1rem; }

/* ---------- Header (BHF: mint logo band / green nav band) ---------- */
.site-header { position: relative; z-index: 50; background: var(--green); color: #fff; }
.hdr-top { height: 24px; background: var(--green); }
.hdr-brand { background: var(--mint-light); color: var(--green); }
.hdr-brand__bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px; padding-block: 16px; }

.site-nav { background: var(--green); border-bottom: 4px solid var(--emerald); }
.site-nav ul { list-style: none; }
.site-nav a { text-decoration: none; color: #fff; }

/* Wide: links centred in the bar, account controls pushed to the right edge. */
.site-nav__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.site-nav__links { grid-column: 2; display: flex; }
.site-nav__links a {
    position: relative; display: flex; align-items: center; height: 100%;
    padding: 12px clamp(16px, 2.6vw, 40px); font-size: 1.05rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.site-nav__links a:hover { background: rgba(255, 255, 255, .08); }
.site-nav__links a[aria-current="page"] { background: var(--cream); color: var(--green); }
.site-nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--gold); }

.site-nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; padding-block: 6px; }
.site-nav__login { padding: 8px 14px; font-weight: 500; white-space: nowrap; }
.site-nav__login:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.site-nav__register { padding: 8px 22px; border-radius: var(--pill); background: var(--salmon); color: var(--green) !important; font-weight: 600; white-space: nowrap; }
.site-nav__register:hover { background: var(--peach); }
.site-nav__account { display: flex; align-items: center; gap: 6px; }
.site-nav__account-list { display: none; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* Medium: not enough room to centre — links left, actions right. */
@media (min-width: 960px) and (max-width: 1199px) {
    .site-nav__bar { display: flex; justify-content: space-between; gap: 16px; }
    .site-nav .usermenu__hi { display: none; }
}

/* Narrow: menu button in the logo band; the nav opens as a stacked panel. */
@media (max-width: 959px) {
    .hdr-brand__bar { justify-content: flex-start; min-height: 76px; padding-right: 56px; }
    .nav-toggle { display: inline-grid; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); color: var(--green); }
    .nav-toggle:hover { background: rgba(0, 57, 54, .08); }
    .site-nav { display: none; }
    .nav-open .site-nav { display: block; }
    .nav-open .nav-toggle__open { display: none; }
    .nav-open .nav-toggle__close { display: block; }

    .site-nav__bar { display: block; padding-inline: 0; }
    .site-nav__links { display: block; }
    .site-nav__links a, .site-nav__account-list a {
        display: block; height: auto; padding: 14px var(--gutter);
        border-top: 1px solid rgba(255, 255, 255, .12); font-size: 1.05rem;
    }
    .site-nav__links li:first-child a { border-top: 0; }
    .site-nav__links a[aria-current="page"]::after { display: none; }
    .site-nav__links a[aria-current="page"], .site-nav__account-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }

    .site-nav__actions { display: block; padding: 0; }
    .site-nav__account { display: none; }
    .site-nav__account-list { display: block; }
    .site-nav__account-list a:hover { background: rgba(255, 255, 255, .08); }

    /* Signed out: Log in + Register side by side at the foot of the panel. */
    .site-nav__login, .site-nav__register { display: inline-flex; margin: 14px 0 18px; }
    .site-nav__login { margin-left: var(--gutter); border: 2px solid #fff; border-radius: var(--pill); padding: 8px 22px; }
    .site-nav__login:hover { background: #fff; color: var(--green); text-decoration: none !important; }
    .site-nav__register { margin-left: 8px; }
    .site-nav__actions:has(.site-nav__login) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---------- Decorative squiggles ---------- */
.squiggle { position: absolute; width: 56px; height: 56px; color: var(--lime); pointer-events: none; }

/* ---------- Programme rail + tiles ---------- */
.progs-head { display: grid; gap: 20px; align-items: end; margin-bottom: 36px; }
@media (min-width: 1024px) { .progs-head { grid-template-columns: 1.5fr 1fr auto; gap: 32px; } }
.progs-head__title { position: relative; }
.progs-head__spark { right: -10px; top: 18px; }
@media (max-width: 1023px) { .progs-head__spark { display: none; } }
.progs-head__text { color: var(--text); margin: 0; max-width: 40ch; }
.progs-head__nav { display: flex; align-items: center; gap: 14px; }

.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(88vw, 400px); gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-block: 4px 12px;
}
.rail::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; display: flex; }
@media (min-width: 1240px) { .rail { grid-auto-columns: calc((var(--container) - 36px) / 3); } }

.tile-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.ptile {
    --tile-bg: var(--lime); --tile-ink: var(--lime-ink);
    position: relative; display: grid; grid-template-columns: 1fr 42%;
    width: 100%; min-height: 230px; padding: 30px 0 0 22px;
    color: var(--tile-ink); text-decoration: none; isolation: isolate;
    border-radius: var(--radius-lg);
    transition: transform .2s;
}
/* The folder tab: a raised notch along the top-right edge. */
.ptile::before {
    content: ""; position: absolute; inset: 22px 0 0 0; z-index: -1;
    background: var(--tile-bg); border-radius: var(--radius-lg);
}
.ptile::after {
    content: ""; position: absolute; top: 0; right: 0; width: 58%; height: 44px; z-index: -1;
    background: var(--tile-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.ptile:hover { transform: translateY(-4px); }
.ptile:focus-visible { box-shadow: var(--focus); border-radius: var(--radius-lg); }
.ptile--purple { --tile-bg: var(--purple); --tile-ink: #0a0a0c; }
.ptile--paper { --tile-bg: var(--paper); --tile-ink: var(--paper-ink); }
.ptile__arrow { position: absolute; top: 8px; right: 16px; }
.ptile__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 22px; min-width: 0; }
.ptile__logo { display: inline-flex; align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.ptile__logo img { height: 26px; width: auto; max-width: 110px; object-fit: contain; }
.ptile__employer { font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; }
.ptile__title { font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.05; overflow-wrap: anywhere; }
.ptile .chips { margin-top: auto; }
.ptile__media { position: relative; margin-top: 22px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; overflow: hidden; }
.ptile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptile__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--tile-bg) 0%, transparent 35%); }

/* ---------- "More than just experience" ---------- */
.more { overflow: hidden; }
.more__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .more__grid { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.more__art { position: relative; min-height: 420px; display: grid; place-items: center; }
.more__shape, .split__art .more__shape {
    position: absolute; left: -10%; right: 10%; top: 18%; bottom: 8%;
    background: var(--purple); transform: skewY(-14deg); border-radius: 24px;
}
.more__trophy { position: absolute; top: 4%; right: 6%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 18px; background: var(--lime); color: var(--lime-ink); transform: rotate(8deg); }
.more__spark { right: 0; bottom: 18%; }
.more__copy { position: relative; }
.more__swoosh { right: 0; top: 40px; }
@media (max-width: 959px) { .more__swoosh { display: none; } }

.benefits { list-style: none; display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefits h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.benefits p { color: var(--muted); font-size: .92rem; margin: 0; }
.benefits__icon { color: var(--lime); }
.benefits li:nth-child(3) .benefits__icon { color: var(--purple-text); }
.benefits--cards li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .benefits--four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Paper band (educators etc.) ---------- */
.educators { margin-bottom: var(--section); }
.paper-band {
    position: relative; display: grid; gap: 28px; overflow: hidden;
    padding: 36px 24px; border-radius: var(--radius-lg);
    background: var(--paper); color: var(--paper-ink);
}
@media (min-width: 1024px) { .paper-band { grid-template-columns: 1.25fr 1fr auto; align-items: center; padding: 44px; gap: 36px; } }
.paper-band--simple { grid-template-columns: 1fr; }
.paper-band__copy { position: relative; }
.paper-band__copy p { color: var(--paper-muted); max-width: 52ch; margin-top: 14px; }
.paper-band__copy .display { color: var(--paper-ink); }
.educators__swoosh { right: 0; top: 24px; color: var(--purple-strong); }
@media (max-width: 1023px) { .educators__swoosh { display: none; } }
.paper-band__art { position: relative; min-height: 200px; display: grid; place-items: center; }
.paper-band__shape { position: absolute; inset: 0 10%; background: var(--lime); border-radius: 24px; transform: skewX(-10deg); }
.paper-band__icon { position: relative; color: var(--paper-ink); }
@media (max-width: 1023px) { .paper-band__art { display: none; } }
.checklist-card { list-style: none; display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(0,57,54,.08); font-size: .9rem; font-weight: 500; }
.checklist-card li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* ---------- Inner page heroes ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 48px); }
.page-hero--compact { padding-bottom: 8px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.2fr 1fr; } .split--even { grid-template-columns: 1fr 1fr; align-items: start; } }
.split__art { position: relative; min-height: 440px; display: grid; place-items: center; }
@media (max-width: 959px) { .page-hero--split .split__art { display: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* Search + filters */
.search-bar {
    display: flex; align-items: center; gap: 10px; margin-top: 32px; max-width: 680px;
    padding: 6px 6px 6px 18px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line);
}
.search-bar .icon { color: var(--muted); flex: none; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; padding: 10px 0; }
.search-bar input:focus { outline: none; }
.search-bar:focus-within { border-color: var(--lime); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fchip { padding: 7px 16px; border-radius: var(--pill); border: 1.5px solid var(--line); text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--text); }
.fchip:hover { border-color: var(--text); }
.fchip[aria-current="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.result-count a { color: var(--lime); }

.empty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line); }
.empty-card .icon { color: var(--lime); }
.empty-card p { margin: 0; max-width: 60ch; color: var(--text); }
.empty-card a:not(.btn) { color: var(--lime); }

/* ---------- Programme detail ---------- */
.prog-hero { padding-block: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.prog-hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .prog-hero__grid { grid-template-columns: 1.2fr 1fr; } }
.prog-hero__employer { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; font-weight: 600; color: var(--purple-text); }
.prog-hero__employer:hover { color: var(--lime); }
.logo-chip { display: inline-flex; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.logo-chip img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.prog-hero .chips { margin-top: 24px; }
.prog-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.prog-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.prog-hero__media::after { content: ""; position: absolute; inset: auto -10% -18% 40%; height: 40%; background: var(--lime); transform: rotate(-10deg); z-index: -1; }

.prog-body { display: grid; gap: 40px; }
@media (min-width: 960px) { .prog-body { grid-template-columns: 1fr 360px; gap: 56px; align-items: start; } .prog-body__side { position: sticky; top: 100px; } }
.prog-body__side { display: grid; gap: 18px; }
.facts { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts .chips { margin-bottom: 18px; }
.facts .h3 + .chips { margin-top: 0; }

.modules { list-style: none; counter-reset: mod; display: grid; gap: 12px; }
.modules li {
    counter-increment: mod; display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.modules li::before {
    content: counter(mod, decimal-leading-zero); flex: none;
    font-family: var(--font-display); font-size: .9rem; color: var(--lime); padding-top: 2px; min-width: 2.2em;
}
.modules li > div { flex: 1; min-width: 0; }
.modules h3 { font-size: 1rem; margin-bottom: 4px; }
.modules p { margin: 0; color: var(--muted); font-size: .9rem; }
.modules .chip { border-color: var(--line); color: var(--muted); }

.badge-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.badge-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.badge-grid img { width: 64px; height: 64px; object-fit: contain; }
.badge-grid .icon { color: var(--lime); }
.badge-grid small { color: var(--muted); font-weight: 400; }

/* ---------- Generic feature grids ---------- */
.feature-grid { list-style: none; display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-grid li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-grid h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.feature-grid__icon { color: var(--lime); }

.steps { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.steps__item { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps__item .icon { color: var(--lime); }
.steps__num { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-size: 2rem; color: var(--surface-2); -webkit-text-stroke: 1px var(--line); }
.steps__item h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.steps__item p { margin: 0; color: var(--muted); font-size: .93rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 28px; border-radius: var(--radius-lg); background: var(--lime); color: var(--lime-ink); }
@media (min-width: 768px) { .cta-band { padding: 44px; } }
.cta-band p { margin: 10px 0 0; max-width: 52ch; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq__item[open] { border-color: var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--lime); transform: translate(-50%, -50%); transition: transform .2s; }
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 22px 20px; color: var(--text); }
.faq__answer p:last-child { margin-bottom: 0; }
.ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 1em; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--lime); flex: none; margin-top: 3px; }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.contact-card:hover, .contact-card--focus { border-color: var(--lime); }
.contact-card .icon { color: var(--lime); }
.contact-card .h3 { margin: 8px 0 0; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card .link-arrow { margin-top: auto; padding-top: 10px; overflow-wrap: anywhere; }

/* HTML site map */
.sitemap { display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sitemap ul { list-style: none; display: grid; gap: 8px; }
.sitemap a { color: var(--text); text-decoration: none; }
.sitemap a:hover { color: var(--lime); text-decoration: underline; }
.sitemap .h3 { color: var(--purple-text); }

/* Legal */
.legal .table-wrap { overflow-x: auto; margin-bottom: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); background: var(--surface); }

/* Account */
.enrol-list { list-style: none; display: grid; gap: 14px; }
.enrol { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 720px) { .enrol { grid-template-columns: 140px 1fr auto; } }
.enrol__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.enrol__employer { margin: 0 0 4px; color: var(--purple-text); font-size: .85rem; font-weight: 600; }
.enrol h3 { font-size: 1.05rem; }
.enrol h3 a { text-decoration: none; }
.enrol h3 a:hover { color: var(--lime); }
.bar { height: 8px; border-radius: var(--pill); background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: 56px 28px; background: var(--green); color: var(--mint-light); }
.site-footer__top { display: grid; gap: 40px; }
@media (min-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1.2fr; } }
.site-footer__brand p { color: var(--mint-light); max-width: 44ch; margin: 20px 0 0; }
.site-footer__logo { height: auto; width: min(100%, 240px); }
.site-footer__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:not(.btn) { text-decoration: none; color: var(--gold); font-size: .95rem; }
.site-footer a:not(.btn):hover { color: var(--peach); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: var(--mint-light); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__bottom a, .site-footer__bottom .linklike { color: var(--gold); font-size: .85rem; }

/* ---------- Cookie consent ---------- */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 16px; box-shadow: 0 -10px 40px rgba(0,57,54,.12); }
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-consent p { margin: 0; font-size: .9rem; max-width: 70ch; }
.cookie-consent a { color: var(--lime); }

/* ---------- Signed-in header: avatar + user menu (sitewide) ---------- */
.avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold);
    color: var(--green); font-weight: 700; font-size: .9rem; letter-spacing: .02em;
}
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.bell { position: relative; }
.bell__badge {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: var(--pill);
    background: var(--gold); color: var(--green); font-size: .68rem; font-weight: 800; line-height: 1;
    box-shadow: 0 0 0 2px var(--green);
}
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: var(--pill); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--surface-2); }
.site-header .usermenu summary { color: #fff; }
.site-header .usermenu summary:hover { background: rgba(255, 255, 255, .1); }
.site-header .icon-btn.bell { color: #fff; width: 40px; height: 40px; }
.site-header .usermenu__hi { color: #fff; }
.site-header .icon-btn.bell:hover { background: rgba(255, 255, 255, .1); }
.site-header .avatar { width: 32px; height: 32px; font-size: .8rem; background: var(--salmon); }
.usermenu__hi { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.usermenu[open] .usermenu__chev { transform: rotate(180deg); }
.usermenu__list {
    list-style: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px;
    padding: 8px; border-radius: var(--radius); background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* The colour is set here because .site-nav a (white, for the green bar) otherwise reaches into the white dropdown. */
.usermenu__list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .92rem; }
.usermenu__list a:hover { background: var(--surface); color: var(--lime); }

/* =====================================================================
   BHF components — the Building Happier Futures design language.
   ===================================================================== */

body { font-weight: 400; line-height: 1.55; }
h1, h2, h3, h4 { font-weight: 600; }

/* Buttons kept from the shared account markup */
.btn { font-weight: 600; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--green); }
.btn--gold:hover { background: #f6c896; }
.upper { text-transform: uppercase; letter-spacing: .14em; }

/* Section heading: upper-case, wide tracking (BHF .feature-title / .modules-title) */
.bhf-title {
    font-size: clamp(1.45rem, 1.8vw + 1rem, 2rem); line-height: 1.25;
    text-transform: uppercase; letter-spacing: .14em; color: var(--green);
    margin-bottom: 18px; overflow-wrap: break-word;
}
.bhf-title--peach { color: var(--peach); }
.bhf-eyebrow { margin: 0 0 10px; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #0a6b55; }
.chevrons { display: block; width: min(100%, 380px); height: auto; margin-top: 28px; pointer-events: none; }

.bhf-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
    text-decoration-color: var(--gold);
}
.bhf-link:hover { text-decoration-color: var(--green); }

/* Pill button with a round white knob (BHF .cta-btn) */
.knob-btn {
    display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 22px);
    padding: 8px 8px 8px clamp(22px, 2.6vw, 34px); border-radius: var(--pill);
    background: var(--green); color: #fff; text-decoration: none;
    font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08); transition: transform .12s, filter .12s;
}
.knob-btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.knob-btn__knob { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green); flex: none; }
@media (max-width: 420px) { .knob-btn { font-size: .85rem; letter-spacing: .08em; } .knob-btn__knob { width: 44px; height: 44px; } }

/* ---------- Hero: off-white, copy left, photo flush to the right edge ---------- */
.bhf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--stone); overflow: hidden; }
.bhf-hero__body {
    position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(32px, 6vw, 72px) var(--gutter);
}
.bhf-hero__title {
    font-size: clamp(2rem, 2.6vw + 1.2rem, 3.1rem); line-height: 1.12;
    text-transform: uppercase; letter-spacing: .15em; color: var(--green); overflow-wrap: break-word;
}
.bhf-hero--careers .bhf-hero__title { font-size: clamp(1.7rem, 2vw + 1.1rem, 2.6rem); }
.bhf-hero__kicker { margin: 16px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1vw + .8rem, 1.25rem); color: var(--ink); }
.bhf-hero .cta-row { align-items: center; gap: 18px 28px; }
.bhf-hero__media { position: relative; }
.bhf-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bhf-hero__confetti { position: absolute; top: 12px; right: 12px; width: min(70%, 420px); height: auto; pointer-events: none; }
@media (min-width: 960px) {
    .bhf-hero { grid-template-columns: minmax(0, 1fr) min(42vw, 640px); min-height: clamp(420px, 52vh, 620px); }
    .bhf-hero__body { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: 40px; }
    .bhf-hero__confetti { top: 0; right: auto; left: -40%; width: 45vw; max-width: 760px; }
}

/* ---------- Feature: photo flush left, copy right ---------- */
.bhf-feature { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.bhf-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.bhf-feature__body { padding: clamp(32px, 5vw, 64px) var(--gutter); align-self: center; }
.bhf-feature__body p { color: var(--ink); max-width: 62ch; }
.bhf-feature__note { margin: 24px 0 0; }
.bhf-feature__note a { color: var(--green); font-weight: 600; }
@media (min-width: 960px) {
    .bhf-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(420px, 56vh, 680px); }
    .bhf-feature__body { padding-inline: clamp(32px, 4vw, 64px) max(var(--gutter), calc((100vw - var(--container)) / 2)); }
}

/* Careers destinations */
.path-cards { list-style: none; display: grid; gap: 16px; }
.path-card { padding: 22px 24px; background: var(--cream); border-left: 6px solid var(--gold); }
.path-card .icon { color: var(--green); }
.path-card h3 { font-size: 1.15rem; margin: 10px 0 6px; color: var(--green); }
.path-card p { margin: 0 0 12px; }

/* ---------- Modules: salmon icon strip + peach panel ---------- */
.bhf-modules { position: relative; overflow: hidden; background: var(--stone); padding-block: clamp(40px, 6vw, 64px); border-bottom: 4px solid var(--gold); }
.bhf-modules__rail { position: absolute; left: -60px; top: 0; bottom: 0; width: 130px; height: 100%; object-fit: cover; pointer-events: none; }
@media (max-width: 1279px) { .bhf-modules__rail { display: none; } }
.bhf-modules .container { position: relative; }
.bhf-modules__sub { margin: 0 0 4px; color: #333; }
.bhf-modules__hint { margin: 0 0 18px; font-weight: 600; }

/* Without JS the strip is hidden and every panel shows in order. */
.bhf-mods__strip { display: none; }
.tabs-ready .bhf-mods__strip {
    display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
    background: var(--salmon); border-radius: 8px 8px 0 0; overflow: hidden;
}
.bhf-mods__tab {
    position: relative; display: grid; place-items: center; height: 84px; min-width: 0; padding: 0;
    border: 0; border-right: 2px solid rgba(0, 0, 0, .06); background: rgba(255, 255, 255, .25); cursor: pointer;
    transition: background .18s;
}
.bhf-mods__tab:last-child { border-right: 0; }
.bhf-mods__tab:hover { background: rgba(255, 255, 255, .45); }
.bhf-mods__tab[aria-selected="true"] { background: var(--peach); }
.bhf-mods__tab img { width: clamp(22px, 3.4vw, 44px); height: auto; max-height: 60%; object-fit: contain; }
.bhf-mods__num { position: absolute; top: 6px; left: 8px; font-size: .72rem; font-weight: 600; color: var(--green); opacity: .7; }
.bhf-mods__tab:focus-visible { box-shadow: inset 0 0 0 3px var(--green); border-radius: 0; }
@media (max-width: 640px) {
    .tabs-ready .bhf-mods__strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .bhf-mods__tab { height: 64px; border-bottom: 2px solid rgba(0, 0, 0, .06); }
}
.bhf-mods__panel { background: var(--peach); padding: clamp(20px, 3vw, 32px); }
.bhf-mods__panel + .bhf-mods__panel { border-top: 2px solid #fff; }
.tabs-ready .bhf-mods__panel { border-radius: 0 0 8px 8px; border-top: 0; }
.bhf-mods__count { margin: 0 0 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #0a6b55; }
.bhf-mods__panel h3 { font-size: clamp(1.2rem, 1.4vw + .8rem, 1.6rem); color: var(--green); margin-bottom: 10px; }
.bhf-mods__panel p { max-width: 80ch; color: #333; }
.bhf-mods__panel p:last-child { margin-bottom: 0; }
.bhf-mods__panel .bhf-mods__detail { font-weight: 600; color: var(--green); }

/* ---------- "A programme designed for you": mustard bubbles ---------- */
.bhf-designed { background: #fff; padding-block: clamp(40px, 6vw, 64px); border-bottom: 4px solid var(--green); }
.bhf-designed__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.bhf-designed__grid p { color: var(--ink); max-width: 46ch; }
@media (min-width: 960px) { .bhf-designed__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.bubbles { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 28px); }
.bubble {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
    width: clamp(220px, 24vw, 290px); aspect-ratio: 1; border-radius: 50%; padding: 26px;
    background: var(--mustard); color: var(--green);
}
.bubble img { width: clamp(48px, 5vw, 64px); height: auto; margin: 4px 0; }
.bubble strong { text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; line-height: 1.3; }
.bubble span { max-width: 22ch; line-height: 1.35; }
.bubble__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }

/* ---------- Support + Kim's story: green band, photo right, salmon rule ---------- */
.bhf-story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--green); color: #fff; overflow: hidden; }
.bhf-story::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--salmon); }
.bhf-story__body { position: relative; z-index: 2; padding: clamp(36px, 5vw, 64px) var(--gutter) calc(clamp(36px, 5vw, 64px) + 26px); }
.bhf-story__lead { max-width: 60ch; }
.bhf-story a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }
.bhf-story a:hover { color: #fff; }
.bhf-story .chevrons { margin-top: 8px; }
.bhf-story__quote { margin: 28px 0 0; }
.bhf-story__quote blockquote { margin: 0; }
.bhf-story__headline { font-size: clamp(1.2rem, 1.2vw + .9rem, 1.6rem); font-weight: 600; line-height: 1.35; color: var(--salmon); }
.bhf-story__quote p { max-width: 68ch; }
.bhf-story__quote figcaption { color: var(--salmon); }
.bhf-story__quote figcaption strong { display: block; font-size: 1.3rem; }
.bhf-story__media { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; }
.bhf-story__media img { position: relative; z-index: 1; width: min(86%, 520px); height: auto; margin-bottom: 26px; }
@media (min-width: 960px) {
    .bhf-story { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); min-height: clamp(420px, 56vh, 660px); }
    .bhf-story__body { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: 32px; }
    .bhf-story__media img { width: 100%; max-width: 560px; }
}

/* ---------- "Ready to get started?": cream band, pattern top, photo right ---------- */
.bhf-cta { position: relative; background: var(--cream); overflow: hidden; }
.bhf-cta__pattern { position: absolute; top: 0; left: 0; z-index: 2; width: min(85%, 900px); height: auto; pointer-events: none; }
.bhf-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.bhf-cta__body { position: relative; z-index: 3; padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(32px, 5vw, 64px); align-self: center; }
.bhf-cta__body p { color: var(--ink); max-width: 46ch; margin-bottom: 26px; }
.bhf-cta__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
    .bhf-cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(360px, 52vh, 560px); }
    .bhf-cta__body { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: 40px; }
}

/* ---------- Inner page banner (programme, contact, legal, site map) ---------- */
.page-banner {
    display: flex; align-items: center; min-height: clamp(160px, 20vw, 240px);
    padding-block: 32px; background: var(--stone); border-bottom: 4px solid var(--emerald);
}
.page-banner h1 { font-size: clamp(1.7rem, 2.2vw + 1.2rem, 2.6rem); color: var(--green); margin: 0; }
.page-banner h1::after { content: ""; display: block; width: min(100%, 300px); height: 25px; margin-top: 20px; background: url("../img/bhf/chevrons-green.png") no-repeat left center / auto 100%; }
.page-banner .crumbs, .page-banner .crumbs a { color: var(--green); }

/* Centred intro block under a banner */
.intro { text-align: center; padding-block: clamp(40px, 6vw, 72px) 8px; }
.intro h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .12em; }
.intro p { max-width: 70ch; margin-inline: auto; }
.intro .cta-row { justify-content: center; }

/* ---------- Programme cards (API programmes) ---------- */
.jprog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.jprog {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
    background: #fff; border: 3px solid var(--green); border-radius: 8px; transition: transform .15s, box-shadow .15s;
}
.jprog:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.jprog__media { aspect-ratio: 16 / 9; background: var(--mint-light); }
.jprog__media img { width: 100%; height: 100%; object-fit: cover; }
.jprog__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.jprog__title { font-size: 1.3rem; }
.jprog__summary { color: var(--muted); margin: 0; }
.jprog__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--green); color: var(--gold); font-weight: 600; }

.launch-note { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 20px 22px; background: var(--cream); border-left: 6px solid var(--gold); }
.launch-note p { margin: 0; }
.launch-note .icon { color: var(--green); flex: none; margin-top: 2px; }
