/**
 * CPD Academy — site styles.
 *
 * Written entirely against the custom properties the child theme declares, with
 * a fallback baked into each var() so the plugin still renders sensibly if it
 * is ever activated alongside a different theme. No brand colour is hardcoded
 * here; re-branding is a theme-only change.
 *
 * Layout is the Educavo reference — full-bleed hero, card grids, navy bands,
 * a five-column footer — carried out in CPD's own blue and gold.
 */

/* =========================================================================
   Tokens & primitives
   ====================================================================== */

.cpd {
    --cpd-c-blue: var(--cpd-blue, #3A7BC8);
    --cpd-c-blue-dark: var(--cpd-blue-dark, #2C5F9E);
    --cpd-c-blue-deep: var(--cpd-blue-deep, #17395F);
    --cpd-c-blue-tint: var(--cpd-blue-tint, #EAF2FB);
    --cpd-c-navy-bar: var(--cpd-navy-bar, #273C66);
    --cpd-c-gold: var(--cpd-gold, #F8B618);
    --cpd-c-gold-dark: var(--cpd-gold-dark, #D9990A);
    --cpd-c-ink: var(--cpd-ink, #17253A);
    --cpd-c-body: var(--cpd-body, #4A5768);
    --cpd-c-muted: var(--cpd-muted, #7C8798);
    --cpd-c-border: var(--cpd-border, #E3EAF2);
    --cpd-c-bg: var(--cpd-bg, #F5F8FC);

    --cpd-r: var(--cpd-radius, 4px);
    --cpd-r-lg: var(--cpd-radius-lg, 5px);
    --cpd-sh: var(--cpd-shadow, 0 2px 10px rgba(23, 37, 58, .06));
    --cpd-sh-lg: var(--cpd-shadow-lg, 0 18px 40px rgba(23, 37, 58, .12));

    --cpd-f-head: var(--cpd-font-head, Georgia, serif);
    --cpd-f-body: var(--cpd-font-body, system-ui, sans-serif);

    /* Measured from the reference: 1270px container with 15px gutters, a 30px
       grid gap and 100px of vertical air per section. */
    --cpd-gap: 30px;
    --cpd-shell: 1270px;
}

/* The editor canvas is not inside body.cpd, so the tokens need a second home
   or every block previews grey-on-grey. Same values, one extra selector. */
.editor-styles-wrapper,
.block-editor-writing-flow {
    --cpd-c-blue: var(--cpd-blue, #3A7BC8);
    --cpd-c-blue-dark: var(--cpd-blue-dark, #2C5F9E);
    --cpd-c-blue-deep: var(--cpd-blue-deep, #17395F);
    --cpd-c-blue-tint: var(--cpd-blue-tint, #EAF2FB);
    --cpd-c-navy-bar: var(--cpd-navy-bar, #273C66);
    --cpd-c-gold: var(--cpd-gold, #F8B618);
    --cpd-c-gold-dark: var(--cpd-gold-dark, #D9990A);
    --cpd-c-ink: var(--cpd-ink, #17253A);
    --cpd-c-body: var(--cpd-body, #4A5768);
    --cpd-c-muted: var(--cpd-muted, #7C8798);
    --cpd-c-border: var(--cpd-border, #E3EAF2);
    --cpd-c-bg: var(--cpd-bg, #F5F8FC);
    --cpd-r: 10px;
    --cpd-r-lg: 18px;
    --cpd-sh: 0 2px 10px rgba(23, 37, 58, .06);
    --cpd-sh-lg: 0 18px 40px rgba(23, 37, 58, .12);
    --cpd-f-head: var(--cpd-font-head, Georgia, serif);
    --cpd-f-body: var(--cpd-font-body, system-ui, sans-serif);
    --cpd-gap: 30px;
    --cpd-shell: 1270px;
}

.cpd-shell {
    width: 100%;
    max-width: var(--cpd-shell);
    margin-inline: auto;
    padding-inline: 15px;
}

/* Bands own the site's vertical rhythm. Every section is one, so spacing is
   consistent by construction rather than by remembering to add a margin. */
.cpd-band {
    padding-block: 100px;
}

.cpd-band-tight { padding-block: 60px; }
.cpd-band-loose { padding-block: 130px; }

.cpd-band-white { background: #fff; }
.cpd-band-grey { background: var(--cpd-c-bg); }
.cpd-band-alt { background: #F4F6F5; }
.cpd-band-tint { background: var(--cpd-c-blue-tint); }

.cpd-band-navy {
    background: var(--cpd-c-blue-deep);
    color: rgba(255, 255, 255, .82);
}

.cpd-band-navy .cpd-section-title,
.cpd-band-navy h2,
.cpd-band-navy h3 { color: #fff; }

.cpd-band-navy .cpd-section-intro { color: rgba(255, 255, 255, .78); }

/* ---- Section headers -------------------------------------------------- */

.cpd-section-head {
    max-width: 700px;
    margin-bottom: 45px;
}

.cpd-align-center { margin-inline: auto; text-align: center; }
.cpd-align-left { text-align: left; }

/* The reference's eyebrow is a substantial 18px gold line, not the 13px
   letter-spaced micro-label this had. That difference alone changed the
   proportion of every section header on the site. */
.cpd-eyebrow {
    margin: 0 0 20px;
    font-family: var(--cpd-f-body);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--cpd-c-gold);
}

.cpd-eyebrow-light { color: var(--cpd-c-gold); }

.cpd-section-title {
    margin: 0;
    font-family: var(--cpd-f-head);
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.25rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--cpd-c-ink);
}

.cpd-section-intro {
    margin: 18px 0 0;
    font-size: 1.125rem;
    line-height: 1.56;
    color: var(--cpd-c-body);
}

/* ---- Buttons ---------------------------------------------------------- */

.cpd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--cpd-f-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.cpd-btn:hover { transform: translateY(-1px); }
.cpd-btn:focus-visible { outline: 3px solid var(--cpd-c-gold); outline-offset: 2px; }

.cpd-btn-primary { background: var(--cpd-c-blue); color: #fff; }
.cpd-btn-primary:hover { background: var(--cpd-c-blue-dark); color: #fff; }

.cpd-btn-accent { background: var(--cpd-c-gold); color: var(--cpd-c-ink); }
.cpd-btn-accent:hover { background: var(--cpd-c-gold-dark); color: var(--cpd-c-ink); }

.cpd-btn-navy { background: var(--cpd-c-blue-deep); color: #fff; }
.cpd-btn-navy:hover { background: var(--cpd-c-ink); color: #fff; }

.cpd-btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.cpd-btn-ghost:hover { background: #fff; color: var(--cpd-c-ink); border-color: #fff; }

.cpd-btn-outline { border-color: var(--cpd-c-border); color: var(--cpd-c-blue); background: #fff; }
.cpd-btn-outline:hover { border-color: var(--cpd-c-blue); background: var(--cpd-c-blue); color: #fff; }

.cpd-btn-block { display: flex; width: 100%; }

.cpd-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--cpd-c-blue);
    text-decoration: none;
}

.cpd-link-arrow:hover { color: var(--cpd-c-blue-dark); }
.cpd-link-arrow .cpd-icon { transition: transform .18s ease; }
.cpd-link-arrow:hover .cpd-icon { transform: translateX(3px); }

.cpd-icon { flex: none; vertical-align: middle; }

/* ---- Chips ------------------------------------------------------------ */

.cpd-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cpd-c-blue-tint);
    color: var(--cpd-c-blue-dark);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
}

a.cpd-chip:hover { background: var(--cpd-c-blue); color: #fff; }
.cpd-chip-solid { background: var(--cpd-c-gold); color: var(--cpd-c-ink); }
.cpd-chip-more { background: var(--cpd-c-border); color: var(--cpd-c-body); }

.cpd-chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.cpd-empty {
    margin: 0;
    padding: 32px;
    border: 1px dashed var(--cpd-c-border);
    border-radius: var(--cpd-r);
    background: var(--cpd-c-bg);
    color: var(--cpd-c-muted);
    text-align: center;
}

/* =========================================================================
   Header
   ====================================================================== */

/* 200, not 60. `.site-header` opens a stacking context, so every z-index inside
   it — including the sticky nav's — is measured against *this* number, not
   against the page. At 60 the hero tile row (z-index: 111) painted straight
   over the stuck header. Chrome belongs above page content, so the header wins;
   the drawer sits higher still, at body level. */
.site-header { position: relative; z-index: 200; }

/* Search affordance in the nav. */
.cpd-nav-search {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--cpd-c-ink);
    transition: background-color .18s ease, color .18s ease;
}

.cpd-nav-search:hover { background: var(--cpd-c-blue-tint); color: var(--cpd-c-blue); }

.cpd-nav {
    background: #fff;
    border-bottom: 1px solid var(--cpd-c-border);
}

/* Keep the single-row header compact. The former asymmetric top padding made
   the logo and navigation look as though they had dropped down the page. */
.cpd-nav-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 76px;
    padding-block: 8px;
}

/* Sticky is applied by JS once the topbar has scrolled away, rather than
   position:sticky on load — a bar that is already stuck at the top of the
   document has nowhere to animate from and reads as a rendering glitch. */
/* Once stuck the bar is a persistent strip rather than a landing header, so it
   trades its generous top air and full-size logo for compactness — that is the
   whole point of it reappearing. The logo transitions rather than jumping. */
.cpd-nav.is-stuck {
    position: fixed;
    inset: 0 0 auto;
    z-index: 90;
    box-shadow: var(--cpd-sh);
    animation: cpd-drop .25s ease;
}

.cpd-nav.is-stuck .cpd-nav-inner,
.cpd-has-hero .cpd-nav.is-stuck .cpd-nav-inner {
    min-height: 76px;
    padding-block: 8px;
}

.cpd-nav.is-stuck .cpd-logo-img { max-height: 52px; }
.cpd-logo-img { transition: max-height .22s ease; }

@keyframes cpd-drop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.cpd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.cpd-logo-img { max-height: 52px; width: auto; }

/* Both marks ship in the DOM; the transparent header swaps which one shows.
   `display:none` rather than opacity so the hidden one is never announced
   twice to a screen reader — the white copy is aria-hidden as well. */
.cpd-logo-img-white { display: none; }

.cpd-logo-text {
    font-family: var(--cpd-f-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cpd-c-ink);
    line-height: 1;
}

.cpd-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--cpd-c-blue);
    color: #fff;
    font-size: 1rem;
    letter-spacing: .02em;
}

.cpd-primary { margin-inline-start: auto; }

.cpd-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpd-menu > li { position: relative; display: flex; align-items: center; }

/* Uppercase 15px/600 with 18px of trailing space, as measured on the
   reference. The lowercase 15px/600 this had read as a blog nav, not a
   university one. */
.cpd-menu > li > a {
    display: block;
    padding: 12px 0;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--cpd-c-ink);
    text-decoration: none;
}

.cpd-menu > li > a:hover,
.cpd-menu > li.current-menu-item > a,
.cpd-menu > li.current-menu-ancestor > a { color: var(--cpd-c-blue); }

.cpd-submenu-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    margin-inline-start: 6px;
    border: 0;
    background: none;
    color: currentColor;
    cursor: pointer;
}

.cpd-submenu-toggle svg { transition: transform .18s ease; }
.cpd-has-children.is-open > .cpd-submenu-toggle svg { transform: rotate(180deg); }

/* Dropdown panel — matched to the reference build.
 *
 * The reference unrolls the panel from its top edge (transform-origin: top,
 * scaleY 0 → 1) over 0.3s ease-in-out rather than sliding it, and the panel
 * itself is a square-cornered, borderless white sheet with generous internal
 * padding. Hidden with opacity + visibility rather than display:none so the
 * transition can run, and so a keyboard user tabbing into it trips
 * :focus-within before it is unfocusable. */
.cpd-submenu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 20;
    min-width: 250px;
    padding: 30px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, .15);

    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top center;
    transition: opacity .3s ease-in-out, transform .3s ease-in-out, visibility .3s ease-in-out;
}

.cpd-has-children:hover > .cpd-submenu,
.cpd-has-children:focus-within > .cpd-submenu,
.cpd-has-children.is-open > .cpd-submenu {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.cpd-submenu a {
    display: block;
    padding: 10px 18px 10px 30px;
    border-radius: 0;
    font-size: .9375rem;
    font-weight: 400;
    text-transform: capitalize;
    color: var(--cpd-c-ink);
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.cpd-submenu a:hover,
.cpd-submenu a:focus-visible { color: var(--cpd-c-blue); }

/* Respect a reduced-motion preference: the panel still appears, it just does
   not unroll. */
@media (prefers-reduced-motion: reduce) {
    .cpd-submenu { transform: none; transition: opacity .01ms, visibility .01ms; }
    .cpd-has-children:hover > .cpd-submenu,
    .cpd-has-children:focus-within > .cpd-submenu,
    .cpd-has-children.is-open > .cpd-submenu { transform: none; }
}

.cpd-nav-actions { display: flex; align-items: center; gap: 28px; }
.cpd-nav-cta { padding: 12px 32px; font-size: .9375rem; }
.cpd-burger { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.cpd-burger-bars { display: block; width: 24px; }
.cpd-burger-bars i { display: block; height: 2px; margin: 5px 0; background: var(--cpd-c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.cpd-burger[aria-expanded="true"] .cpd-burger-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cpd-burger[aria-expanded="true"] .cpd-burger-bars i:nth-child(2) { opacity: 0; }
.cpd-burger[aria-expanded="true"] .cpd-burger-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile drawer ---------------------------------------------------- */

/* Opens from the right, which is the side the button lives on — a panel that
   flies in from the opposite corner to the control that summoned it reads as
   unrelated to it. It also means the open panel covers the burger, so there is
   one close control on screen (the panel's own ×) instead of two. */
.cpd-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 320;
    width: min(340px, 88vw);
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: var(--cpd-sh-lg);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.cpd-drawer[hidden] { display: block; }
.cpd-drawer.is-open { transform: translateX(0); }

.cpd-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cpd-drawer-close { border: 0; background: none; font-size: 1.75rem; line-height: 1; color: var(--cpd-c-ink); cursor: pointer; }

.cpd-drawer-menu, .cpd-drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.cpd-drawer-menu a { display: block; padding: 12px 4px; font-weight: 600; color: var(--cpd-c-ink); text-decoration: none; border-bottom: 1px solid var(--cpd-c-border); }
.cpd-drawer-menu ul a { padding-inline-start: 18px; font-weight: 400; font-size: .9rem; color: var(--cpd-c-body); }
.cpd-drawer-cta { margin-top: 22px; width: 100%; }
.cpd-drawer-contact { margin: 22px 0 0; padding: 0; list-style: none; font-size: .875rem; }
.cpd-drawer-contact a { color: var(--cpd-c-blue); text-decoration: none; }

/* The closed scrim must not swallow clicks.
 *
 * `pointer-events: none` used to hang off the `[hidden]` attribute — but
 * initDrawer() strips `hidden` on load to hand the animation over to CSS. From
 * that moment the scrim was a full-viewport, z-index 310, fully transparent
 * layer with pointer events *enabled*, sitting above the header and every link
 * on the page. Nothing was clickable; the hamburger was simply the first thing
 * anyone tried. Basing it on the state class instead means the closed scrim is
 * inert no matter which way it was hidden. */
.cpd-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 310;
    background: rgba(23, 37, 58, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.cpd-drawer-scrim[hidden] { display: block; }
.cpd-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---- Back to top ------------------------------------------------------- */

/* z-index sits below the drawer and its scrim on purpose, so an open menu
   covers it rather than leaving a button floating over the overlay. */
.cpd-to-top {
    position: fixed;
    inset-block-end: 26px;
    inset-inline-end: 26px;
    z-index: 300;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cpd-c-gold);
    color: var(--cpd-c-ink);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(23, 37, 58, .22);

    /* Hidden by default and revealed by JS past a scroll threshold. visibility
       rather than display so it can transition, and so it is genuinely out of
       the tab order while hidden. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .18s ease;
}

.cpd-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cpd-to-top:hover { background: var(--cpd-c-gold-dark); }
.cpd-to-top:focus-visible { outline: 3px solid var(--cpd-c-blue); outline-offset: 3px; }

@media (max-width: 640px) {
    .cpd-to-top { inset-block-end: 18px; inset-inline-end: 18px; width: 44px; height: 44px; }
}

/* Same reasoning for the panel: off-canvas it should be untouchable, so a
   stray swipe or tab never lands in a menu the visitor cannot see. */
.cpd-drawer { pointer-events: none; }
.cpd-drawer.is-open { pointer-events: auto; }

/* ---- Transparent header over a hero ------------------------------------
   Applied only on pages whose content opens with a hero block (the
   `cpd-has-hero` body class, set server-side in inc/chrome.php). The header
   is taken out of flow so the hero starts at the top of the viewport and the
   nav floats over it; every other page keeps the solid white bar.

   `position: absolute` rather than `fixed`: the header should scroll away with
   the hero, and the separate `.is-stuck` state — added by JS once the hero is
   behind you — is what brings it back as a solid fixed bar. Two different
   behaviours, two different states, no compromise between them. */

.cpd-has-hero .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 200;
}

.cpd-has-hero .cpd-nav {
    background: transparent;
    border-bottom: 0;
}

.cpd-has-hero .cpd-nav .cpd-menu > li > a,
.cpd-has-hero .cpd-nav-search,
.cpd-has-hero .cpd-submenu-toggle { color: #fff; }

/* The transparent variant uses the same compact rhythm. A small amount of
   extra room keeps it legible over photography without creating a blank band. */
.cpd-has-hero .cpd-nav-inner { min-height: 76px; padding-block: 8px; }

.cpd-has-hero .cpd-nav .cpd-menu > li > a:hover,
.cpd-has-hero .cpd-nav .cpd-menu > li.current-menu-item > a,
.cpd-has-hero .cpd-nav .cpd-menu > li.current-menu-ancestor > a { color: var(--cpd-c-gold); }

.cpd-has-hero .cpd-nav-search:hover { background: rgba(255, 255, 255, .14); color: var(--cpd-c-gold); }
.cpd-has-hero .cpd-burger-bars i { background: #fff; }

/* Use the same full-colour brand mark in the transparent hero header and the
   sticky header. The white alternate remains in the markup for compatibility
   with existing installs, but is not displayed in either header state. */
.cpd-has-hero .cpd-nav .cpd-logo-img { display: block; }
.cpd-has-hero .cpd-nav .cpd-logo-img-white { display: none; }
.cpd-has-hero .cpd-nav .cpd-logo-text, .cpd-has-hero .cpd-nav .cpd-logo-word { color: #fff; }

/* Submenus stay solid white even over the hero — a translucent dropdown over a
   photograph is unreadable, and the panel is a surface, not chrome. */
/* The panel is white in every header state, so its links stay dark even while
   the top-level nav is reversed out over the hero. */
.cpd-has-hero .cpd-submenu a { color: var(--cpd-c-ink); }
.cpd-has-hero .cpd-submenu a:hover,
.cpd-has-hero .cpd-submenu a:focus-visible { color: var(--cpd-c-blue); }

/* Once stuck, the header is a normal solid bar again, so every override above
   has to be undone. Scoped to `.is-stuck` on the nav itself. */
.cpd-has-hero .cpd-nav.is-stuck { background: #fff; }
.cpd-has-hero .cpd-nav.is-stuck .cpd-menu > li > a,
.cpd-has-hero .cpd-nav.is-stuck .cpd-nav-search,
.cpd-has-hero .cpd-nav.is-stuck .cpd-submenu-toggle { color: var(--cpd-c-ink); }
.cpd-has-hero .cpd-nav.is-stuck .cpd-menu > li > a:hover { color: var(--cpd-c-blue); }
.cpd-has-hero .cpd-nav.is-stuck .cpd-burger-bars i { background: var(--cpd-c-ink); }
.cpd-has-hero .cpd-nav.is-stuck .cpd-logo-img { display: block; }
.cpd-has-hero .cpd-nav.is-stuck .cpd-logo-img-white { display: none; }

/* =========================================================================
   Hero
   ====================================================================== */

.cpd-hero { position: relative; overflow: hidden; background: var(--cpd-c-blue-deep); }

/* Slides stack in a single named grid cell rather than sliding along a flex
   track. The track then takes the height of the tallest slide, no slide can
   cause a horizontal scrollbar mid-transition, and "moving" is a class swap
   with nothing to measure. */
.cpd-hero-track { display: grid; grid-template-areas: "slide"; }

.cpd-hero-slide {
    position: relative;
    grid-area: slide;
    display: flex;
    align-items: center;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
}

.cpd-hero-slide.is-active { opacity: 1; }

/* With JS off, the first slide is the page. Without this the whole hero is
   invisible to anyone who never runs the script. */
.cpd-hero-slide:first-child { opacity: 1; }
.cpd-hero[data-ready="1"] .cpd-hero-slide:first-child:not(.is-active) { opacity: 0; }

.cpd-hero-medium .cpd-hero-slide { min-height: 460px; }

/* Viewport-relative height. `min-height` rather than `height` so a slide whose
   copy runs long grows instead of clipping — 80vh is the floor, not a cage.
   `svh` first where supported: on mobile browsers `vh` is measured against the
   viewport *without* the collapsing address bar, so a plain 80vh hero is
   noticeably taller than 80% of what the user can actually see on load. */
.cpd-hero-viewport .cpd-hero-slide { min-height: 90vh; }

@supports (height: 90svh) {
    .cpd-hero-viewport .cpd-hero-slide { min-height: 90svh; }
}

/* The reference banner carries no scrim at all — the photograph is shown as
   shot and the headline sits over its darker left-hand side. A heavy gradient
   here was burying the image the client picked.

   The scrim is kept as an opt-in because it is a real accessibility lever: the
   moment someone swaps in a bright photograph, 90px of white type over it can
   fall below contrast minimums, and `Darken image` in the block sidebar is the
   fix. Default is none, matching the reference. */
/* Decorative and aria-hidden, so it must never intercept a tap. It sits below
   .cpd-hero-inner today, but a scrim that accepts pointer events is exactly the
   bug that made the drawer unclickable — no reason to leave a second one. */
.cpd-hero-overlay { position: absolute; inset: 0; pointer-events: none; }

.cpd-hero-slide.cpd-scrim-light .cpd-hero-overlay {
    background: linear-gradient(100deg, rgba(23, 57, 95, .55) 0%, rgba(23, 57, 95, .30) 55%, rgba(23, 57, 95, .05) 100%);
}

.cpd-hero-slide.cpd-scrim-medium .cpd-hero-overlay {
    background: linear-gradient(100deg, rgba(23, 57, 95, .82) 0%, rgba(23, 57, 95, .62) 45%, rgba(23, 57, 95, .28) 100%);
}

/* Top padding clears the overlaid header (topbar + nav ≈ 126px) and the bottom
   padding leaves room for the tiles that overlap the hero's lower edge. Both
   only apply when the header is actually transparent. */
.cpd-hero-inner { position: relative; z-index: 2; padding-block: 90px; color: #fff; }
/* Top padding clears the overlaid header, bottom padding clears the tiles that
   overlap the banner's lower edge; the flex centring then balances the copy in
   what is left, the way the reference does. */
.cpd-has-hero .cpd-hero-inner { padding-block: 172px 150px; }
/* The inner element *is* the shell, so it carries `margin-inline: auto`.
   Narrowing its max-width to 720px therefore centred the whole copy block in
   the viewport rather than left-aligning it inside the container — which is
   where the phantom left padding came from. The shell keeps its full width and
   the measure is constrained on the text itself instead. */
.cpd-hero-inner.cpd-align-left { max-width: var(--cpd-shell); }
.cpd-hero-inner.cpd-align-left .cpd-hero-eyebrow,
.cpd-hero-inner.cpd-align-left .cpd-hero-title { max-width: 900px; }
.cpd-hero-inner.cpd-align-left .cpd-hero-text { max-width: 640px; }

.cpd-hero-inner.cpd-align-center { max-width: 820px; text-align: center; }

/* In the reference this line is 48px of regular-weight white type sitting
   directly above the 90px headline — a two-line statement, not a label. It was
   built here as a 13px letter-spaced gold eyebrow, which is why the hero read
   as a generic banner rather than the reference's. */
.cpd-hero-eyebrow {
    margin: 0 0 10px;
    font-family: var(--cpd-f-head);
    font-size: clamp(1.25rem, .8rem + 1.6vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

.cpd-hero-title {
    margin: 0;
    font-family: var(--cpd-f-head);
    font-size: clamp(2rem, 1rem + 3.4vw, 3.75rem);
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
}

.cpd-hero-text {
    margin: 24px 0 0;
    max-width: 640px;
    font-size: 1.125rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, .88);
}

.cpd-hero-inner.cpd-align-center .cpd-hero-text { margin-inline: auto; }
.cpd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.cpd-hero-inner.cpd-align-center .cpd-hero-actions { justify-content: center; }

.cpd-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cpd-hero-arrow:hover { background: var(--cpd-c-gold); border-color: var(--cpd-c-gold); color: var(--cpd-c-ink); }
.cpd-hero-prev { inset-inline-start: 24px; }
.cpd-hero-next { inset-inline-end: 24px; }

.cpd-hero-dots {
    position: absolute;
    inset-block-end: 28px;
    inset-inline: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cpd-hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.cpd-hero-dot.is-active { width: 30px; border-radius: 6px; background: var(--cpd-c-gold); }

/* ---- Inner page banner ------------------------------------------------ */

.cpd-page-hero {
    position: relative;
    background: var(--cpd-c-blue-deep) center/cover;
}

.cpd-page-hero .cpd-hero-overlay {
    background: linear-gradient(100deg, rgba(23, 57, 95, .95) 0%, rgba(23, 57, 95, .78) 100%);
}

.cpd-page-hero-inner { position: relative; z-index: 2; padding-block: 76px; color: #fff; }
.cpd-page-hero-title { margin: 0; font-family: var(--cpd-f-head); font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; color: #fff; }
.cpd-page-hero-text { margin: 14px 0 0; max-width: 720px; font-size: 1.0625rem; color: rgba(255, 255, 255, .85); }

.cpd-breadcrumb { margin-top: 22px; font-size: .875rem; }
.cpd-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cpd-breadcrumb li { color: rgba(255, 255, 255, .7); }
.cpd-breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(255, 255, 255, .4); }
.cpd-breadcrumb a { color: #fff; text-decoration: none; }
.cpd-breadcrumb a:hover { color: var(--cpd-c-gold); }

/* =========================================================================
   Cards
   ====================================================================== */

.cpd-cards {
    display: grid;
    gap: var(--cpd-gap);
    grid-template-columns: repeat(var(--cpd-n, 3), minmax(0, 1fr));
}

.cpd-cols-2 { --cpd-n: 2; }
.cpd-cols-3 { --cpd-n: 3; }
.cpd-cols-4 { --cpd-n: 4; }

.cpd-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    box-shadow: var(--cpd-sh);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cpd-card:hover { transform: translateY(-4px); box-shadow: var(--cpd-sh-lg); border-color: transparent; }

.cpd-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cpd-c-blue-tint); }
.cpd-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cpd-card:hover .cpd-card-media img { transform: scale(1.05); }

.cpd-card-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 28px 28px 0;
    border-radius: 14px;
    background: var(--cpd-c-blue-tint);
    color: var(--cpd-c-blue);
}

.cpd-card-icon .cpd-icon { width: 26px; height: 26px; }

.cpd-card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; }
.cpd-card-title { margin: 0; font-family: var(--cpd-f-head); font-size: 1.375rem; line-height: 1.3; font-weight: 700; color: var(--cpd-c-ink); }
.cpd-card-title a { color: inherit; text-decoration: none; }
.cpd-card-title a:hover { color: var(--cpd-c-blue); }
.cpd-card-text { margin: 0; font-size: .9375rem; line-height: 1.73; color: var(--cpd-c-body); }
.cpd-card .cpd-link-arrow { margin-top: auto; padding-top: 4px; }

/* ---- Navy hero tiles ---------------------------------------------------
   The four-up row that overlaps the bottom of the hero in the reference
   layout. Square corners, no gap between the tile and its neighbour's shadow,
   gold line icons on navy. */

.cpd-band-pull {
    position: relative;
    z-index: 111;
    margin-top: -150px;
    padding-block: 0 0;
    background: transparent;
}

.cpd-band-pull + .cpd-band { padding-top: 100px; }

.cpd-cards-tile { gap: 30px; }

.cpd-cards-tile .cpd-card {
    align-items: center;
    padding: 44px 28px 38px;
    border: 0;
    border-radius: 5px;
    background: var(--cpd-c-blue-deep);
    box-shadow: 0 20px 45px rgba(23, 37, 58, .22);
    text-align: center;
}

.cpd-cards-tile .cpd-card:hover { transform: translateY(-6px); background: var(--cpd-c-blue-dark); }

.cpd-cards-tile .cpd-card-icon {
    width: 74px;
    height: 74px;
    margin: 0 0 18px;
    border-radius: 0;
    background: transparent;
    color: var(--cpd-c-gold);
}

.cpd-cards-tile .cpd-card-icon { width: 80px; height: 80px; margin-bottom: 24px; }
.cpd-cards-tile .cpd-card-icon .cpd-icon { width: 68px; height: 68px; stroke-width: 1.1; }
.cpd-cards-tile .cpd-card-icon img { width: 80px; height: 80px; object-fit: contain; }
.cpd-cards-tile .cpd-card-body { align-items: center; padding: 0; gap: 10px; }
/* Reserve two lines for every tile title so the descriptions below them start
   at the same height across the row. Without it "International Faculty" wraps
   to one line and "AHPC-Accredited Courses" to two, and the four paragraphs
   staircase. min-height rather than a fixed height, so a third line still fits
   if the client writes a longer title. */
.cpd-cards-tile .cpd-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.3;
}
.cpd-cards-tile .cpd-card-title a { color: #fff; }
.cpd-cards-tile .cpd-card-title a:hover { color: var(--cpd-c-gold); }
.cpd-cards-tile .cpd-card-text { color: rgba(255, 255, 255, .78); font-size: .875rem; line-height: 1.65; }
.cpd-cards-tile .cpd-link-arrow { color: var(--cpd-c-gold); }

.cpd-cards-plain .cpd-card { border: 0; box-shadow: none; background: transparent; }
.cpd-cards-plain .cpd-card:hover { transform: none; }
.cpd-cards-plain .cpd-card-body { padding-inline: 0; }

/* ---- Events ----------------------------------------------------------- */

.cpd-events + .cpd-events { margin-top: 70px; }
.cpd-events .cpd-section-title { margin-bottom: 34px; }

.cpd-event-datechip {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-start: 14px;
    padding: 7px 13px;
    border-radius: 8px;
    background: var(--cpd-c-gold);
    color: var(--cpd-c-ink);
    font-size: .8125rem;
    font-weight: 700;
}

.cpd-event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.cpd-event-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--cpd-c-muted); }
.cpd-event-meta li { display: inline-flex; align-items: center; gap: 6px; }
.cpd-event-meta .cpd-icon { width: 15px; height: 15px; color: var(--cpd-c-blue); }

.cpd-event-list { display: flex; flex-direction: column; gap: 18px; }

.cpd-event-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.cpd-event-row:hover { box-shadow: var(--cpd-sh-lg); border-color: transparent; }

.cpd-event-date {
    display: grid;
    place-items: center;
    align-content: center;
    height: 92px;
    border-radius: var(--cpd-r);
    background: var(--cpd-c-blue-tint);
    color: var(--cpd-c-blue-dark);
}

.cpd-event-date strong { font-family: var(--cpd-f-head); font-size: 1.875rem; line-height: 1; }
.cpd-event-date span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.cpd-event-row-body { display: flex; flex-direction: column; gap: 10px; }
.cpd-event-row-title { margin: 0; font-family: var(--cpd-f-head); font-size: 1.1875rem; line-height: 1.35; }
.cpd-event-row-title a { color: var(--cpd-c-ink); text-decoration: none; }
.cpd-event-row-title a:hover { color: var(--cpd-c-blue); }

/* ---- Disciplines ------------------------------------------------------ */


/* =========================================================================
   Category cards — the reference's "Study With Us" treatment
   ====================================================================== */

/* Photograph on top, a white card beneath it, and a navy circle straddling the
   join. The circle is positioned against the card rather than the photo so it
   keeps its overlap whatever height the image ends up. */
.cpd-cards-category { gap: 30px; }

.cpd-category {
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}

.cpd-category:hover { transform: translateY(-6px); }

.cpd-category-media { overflow: hidden; border-radius: 4px 4px 0 0; }

.cpd-category-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .5s ease;
}

.cpd-category:hover .cpd-category-media img { transform: scale(1.06); }

.cpd-category-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 70px 30px 30px 40px;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .18);
}

.cpd-category-icon {
    position: absolute;
    inset-block-start: -44px;
    inset-inline: 0;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--cpd-c-blue-deep);
    color: var(--cpd-c-gold);
    box-shadow: 0 0 50px #eee;
}

.cpd-category-icon .cpd-icon { width: 35px; height: 35px; }

.cpd-category-title {
    margin: 0 0 17px;
    font-family: var(--cpd-f-head);
    font-size: 1.5625rem;
    line-height: 2rem;
    font-weight: 700;
}

/* The whole card is the hover target, not just the words in the title.
 *
 * The card already lifts and reveals its button on :hover, so the title going
 * gold only when the pointer happens to be over the text itself reads as a
 * glitch — two parts of one control responding to different things. Keying the
 * colour to the card (and to :focus-within, so a keyboard user tabbing to the
 * link sees the same state) makes the card behave as a single unit. */
.cpd-category-title a {
    color: #101010;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.cpd-category:hover .cpd-category-title a,
.cpd-category:focus-within .cpd-category-title a,
.cpd-category-title a:hover,
.cpd-category-title a:focus-visible { color: var(--cpd-c-gold); }

.cpd-category-text { margin: 0; padding-inline-end: 30px; font-size: 1rem; line-height: 1.7; color: var(--cpd-c-body); }
.cpd-category-count { margin: 14px 0 0; font-size: .875rem; font-weight: 600; color: var(--cpd-c-blue); }

/* The reference reveals this button on hover, half-overlapping the card's
   bottom edge. Kept visible-on-focus too, so it is reachable by keyboard
   rather than being a mouse-only affordance. */
.cpd-category-action {
    position: absolute;
    inset-block-end: -22px;
    inset-inline: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s;
}

.cpd-category:hover .cpd-category-action,
.cpd-category:focus-within .cpd-category-action { opacity: 1; visibility: visible; }

.cpd-category-action a {
    display: inline-block;
    padding: 13px 35px;
    border-radius: 30px;
    background: var(--cpd-c-gold);
    color: var(--cpd-c-blue-deep);
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

.cpd-category-action a:hover { background: var(--cpd-c-blue-deep); color: #fff; }

/* =========================================================================
   News beside courses
   ====================================================================== */

/* The two columns are independent stacks, so their cards drifted out of step —
   a news item and a course item are never the same height, and the gap
   compounded down the page. Making each column a grid with `grid-auto-rows: 1fr`
   splits the column's height into equal rows, and because the parent stretches
   both columns to the same height, row 1 lines up with row 1 and so on.
   `1fr` rather than a fixed height so the tallest card still sets the rhythm. */
.cpd-news-events { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: stretch; }

/* `grid-template-rows: auto` sizes the first row — the header — to its content;
   only the implicit rows after it take an equal 1fr share. Relying on
   grid-auto-rows alone gave the heading a full equal row too, which is what
   opened the large gap between the title and the first card. */
.cpd-news-col,
.cpd-events-col {
    display: grid;
    grid-template-rows: auto;
    grid-auto-rows: 1fr;
    gap: 30px;
}

.cpd-news-events .cpd-section-head { margin-bottom: 10px; max-width: none; }

.cpd-news-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe9eb;
    border-radius: 3px;
}

.cpd-news-media { overflow: hidden; height: 100%; }
.cpd-news-media img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform .5s ease; }
.cpd-news-item:hover .cpd-news-media img { transform: scale(1.06); }

.cpd-news-body { padding: 10px 20px 10px 30px; }
.cpd-news-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 11px; font-size: 1rem; color: var(--cpd-c-body); }
.cpd-news-meta .cpd-icon { width: 15px; height: 15px; color: var(--cpd-c-gold); }

.cpd-news-title { margin: 0 0 14px; font-family: var(--cpd-f-head); font-size: 1.5rem; line-height: 2.125rem; font-weight: 700; }
.cpd-news-title a { color: #101010; text-decoration: none; }
.cpd-news-title a:hover { color: var(--cpd-c-gold); }
.cpd-news-text { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--cpd-c-body); }

.cpd-event-short {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 30px 30px 25px;
    background: #fff;
    border: 1px solid #dfe9eb;
    border-radius: 3px;
}


.cpd-event-short-date {
    flex: none;
    min-width: 100px;
    padding: 11px 0 18px;
    border-radius: 3px;
    background: var(--cpd-c-blue-deep);
    text-align: center;
    transition: transform .5s ease;
}

.cpd-event-short:hover .cpd-event-short-date { transform: translateY(-10px); }
.cpd-event-short-month { display: block; margin-bottom: 10px; color: #fff; font-size: .9375rem; text-transform: uppercase; }
.cpd-event-short-day { display: block; font-family: var(--cpd-f-head); font-size: 3.125rem; line-height: 1; font-weight: 700; color: var(--cpd-c-gold); }

.cpd-event-short-cat { margin: 0 0 4px; font-size: .9375rem; color: var(--cpd-c-body); }
.cpd-event-short-title { margin: 0 0 6px; font-family: var(--cpd-f-head); font-size: 1.375rem; line-height: 1.5; font-weight: 700; }
.cpd-event-short-title a { color: #101010; text-decoration: none; }
.cpd-event-short-title a:hover { color: var(--cpd-c-gold); }

/* =========================================================================
   Video band and split CTA
   ====================================================================== */

.cpd-video-band {
    position: relative;
    padding-block: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cpd-video-overlay { position: absolute; inset: 0; background: rgba(23, 37, 58, .32); }
.cpd-video-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; text-align: center; }

.cpd-video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cpd-c-gold);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(248, 182, 24, .55);
    animation: cpd-pulse 2.4s infinite;
}

.cpd-video-play::before {
    content: "";
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent var(--cpd-c-blue-deep);
    margin-inline-start: 6px;
}

.cpd-video-title { margin: 0; max-width: 720px; font-family: var(--cpd-f-head); font-size: 2.25rem; line-height: 1.25; color: #fff; }

.cpd-cta-split { position: relative; padding-block: 100px; }

/* Two halves painted behind the content. `left/right: 50%` means the seam
   lands at the middle of the viewport rather than the middle of the container,
   which is what makes the effect read as a full-bleed split. */
.cpd-cta-photo,
.cpd-cta-panel { position: absolute; inset-block: 0; width: 50%; z-index: 0; }
.cpd-cta-photo { inset-inline-start: 0; background-size: cover; background-position: center; }
.cpd-cta-panel { inset-inline-end: 0; background: var(--cpd-c-blue-deep); }

.cpd-cta-split-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; }
.cpd-cta-copy { grid-column: 2; padding-inline-start: 90px; }
.cpd-cta-copy .cpd-section-title { color: #fff; padding-inline-end: 40px; }
.cpd-cta-copy .cpd-section-intro { color: rgba(255, 255, 255, .82); margin-bottom: 40px; }
.cpd-cta-copy .cpd-eyebrow { color: var(--cpd-c-gold); }

.cpd-discipline-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }

/* =========================================================================
   Split (image + text)
   ====================================================================== */

.cpd-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: center;
}

/* `order` swaps the visual side without reordering the DOM, so the heading
   still comes before the picture for a screen reader either way. */
.cpd-split-right .cpd-split-media { order: 2; }
.cpd-split-left .cpd-split-media { order: 0; }

.cpd-split-media { position: relative; }

/* No frame, no crop. The artwork is a composed PNG with its own transparent
   margins — a border-radius and shadow here would frame empty pixels. */
.cpd-split-img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 742; }

.cpd-split-badge {
    position: absolute;
    inset-block-end: -22px;
    inset-inline-start: -22px;
    display: grid;
    gap: 2px;
    padding: 20px 26px;
    border-radius: var(--cpd-r);
    background: var(--cpd-c-gold);
    color: var(--cpd-c-ink);
    box-shadow: var(--cpd-sh-lg);
}

.cpd-split-badge strong { font-family: var(--cpd-f-head); font-size: 1.75rem; line-height: 1; }
.cpd-split-badge span { font-size: .8125rem; font-weight: 600; }

/* The reference indents the text column by 100px from the image rather than
   using a grid gap, so the picture keeps the full half-width it was composed
   for. Matching that rhythm: eyebrow 20px, heading 40px, copy 50px, button. */
.cpd-split-left .cpd-split-body { padding-inline-start: 100px; }
.cpd-split-right .cpd-split-body { padding-inline-end: 100px; }

.cpd-split-body .cpd-section-head { margin-bottom: 0; max-width: none; }
.cpd-split-body .cpd-section-title { margin-bottom: 40px; }
.cpd-split-body > p { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.56; color: var(--cpd-c-body); }
.cpd-split-body > p:last-of-type { margin-bottom: 50px; }
.cpd-split-body > ul { margin-bottom: 50px; }
.cpd-split-body > ul { padding-inline-start: 0; list-style: none; display: grid; gap: 12px; }

.cpd-split-body > ul > li {
    position: relative;
    padding-inline-start: 30px;
    color: var(--cpd-c-body);
}

.cpd-split-body > ul > li::before {
    content: "";
    position: absolute;
    inset-block-start: .55em;
    inset-inline-start: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cpd-c-blue-tint);
    box-shadow: inset 0 0 0 4px var(--cpd-c-blue);
}

/* =========================================================================
   Counters, testimonials, logos
   ====================================================================== */

.cpd-counter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }

.cpd-counter { display: grid; gap: 6px; }
.cpd-counter-value { font-family: var(--cpd-f-head); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--cpd-c-gold); }
.cpd-counter-suffix { display: none; }
.cpd-counter-label { font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.cpd-band-tint .cpd-counter-label, .cpd-band-white .cpd-counter-label { color: var(--cpd-c-body); }
.cpd-band-tint .cpd-counter-value, .cpd-band-white .cpd-counter-value { color: var(--cpd-c-blue); }

/* Portrait collage left, quote right beneath an oversized gold quote mark. */
.cpd-quote-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 65px; align-items: center; }
/* aspect-ratio reserves the box before the lazily-loaded file arrives. Without
   it the image contributes zero height until it decodes and the whole section
   jumps when it does — a Cumulative Layout Shift hit on a below-the-fold image
   that is otherwise correctly deferred. 681×698 is the file's own ratio. */
.cpd-quote-collage { display: block; width: 100%; height: auto; aspect-ratio: 681 / 698; }
.cpd-quote-mark { display: block; width: 110px; height: auto; margin-bottom: 30px; }

.cpd-testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cpd-gap); }
.cpd-testimonials-slider { position: relative; }
.cpd-quote-track { display: grid; grid-template-areas: "quote"; }
.cpd-testimonials-slider .cpd-testimonial { grid-area: quote; opacity: 0; transition: opacity .4s ease; }
.cpd-testimonials-slider .cpd-testimonial:first-child { opacity: 1; }
.cpd-testimonials-slider[data-ready="1"] .cpd-testimonial:first-child:not(.is-active) { opacity: 0; }
.cpd-testimonials-slider .cpd-testimonial.is-active { opacity: 1; }

.cpd-testimonial {
    position: relative;
    margin: 0;
    padding: 40px 40px 34px;
    background: #fff;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    box-shadow: var(--cpd-sh);
}

/* Inside the split layout the quote is bare type — the gold mark above it is
   the decoration, so a bordered card here would be a second frame. */
.cpd-quote-split .cpd-testimonial { padding: 0; background: none; border: 0; box-shadow: none; }
.cpd-quote-split .cpd-testimonial::before { content: none; }
.cpd-quote-split .cpd-testimonial blockquote { font-size: 1.5625rem; line-height: 2.8125rem; font-style: italic; color: var(--cpd-c-ink); }
.cpd-quote-split .cpd-testimonial figcaption { margin-top: 34px; padding-top: 0; border-top: 0; }
.cpd-quote-split .cpd-testimonial-who strong { font-size: 1.5rem; line-height: 1.6rem; text-transform: uppercase; color: var(--cpd-c-ink); }
.cpd-quote-split .cpd-testimonial-who span { font-size: 1.375rem; font-weight: 500; color: var(--cpd-c-body); }
.cpd-quote-split .cpd-quote-dots { justify-content: flex-start; margin-top: 34px; }

.cpd-testimonial::before {
    content: "“";
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 28px;
    font-family: var(--cpd-f-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--cpd-c-blue-tint);
}

.cpd-testimonial blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.8; color: var(--cpd-c-body); }
.cpd-testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cpd-c-border); }
.cpd-testimonial-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cpd-testimonial-who { display: grid; }
.cpd-testimonial-who strong { font-family: var(--cpd-f-head); color: var(--cpd-c-ink); }
.cpd-testimonial-who span { font-size: .8125rem; color: var(--cpd-c-muted); }

.cpd-quote-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.cpd-quote-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--cpd-c-border); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.cpd-quote-dot.is-active { width: 26px; border-radius: 5px; background: var(--cpd-c-blue); }

.cpd-logos .cpd-eyebrow { margin-bottom: 28px; }
.cpd-logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 56px; }
.cpd-logo-item { display: grid; place-items: center; min-width: 130px; opacity: .68; transition: opacity .2s ease; }
.cpd-logo-item:hover { opacity: 1; }
.cpd-logo-item img { max-height: 52px; width: auto; }
.cpd-logo-fallback { font-family: var(--cpd-f-head); font-size: 1.0625rem; color: var(--cpd-c-muted); }

/* =========================================================================
   Video, CTA, newsletter, contact, FAQ
   ====================================================================== */

.cpd-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; }

.cpd-video-poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--cpd-r-lg);
    background: none;
    cursor: pointer;
    box-shadow: var(--cpd-sh-lg);
}

.cpd-video-poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cpd-video-poster.is-static { cursor: default; }

.cpd-video-play {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--cpd-c-gold);
    box-shadow: 0 0 0 0 rgba(248, 182, 24, .55);
    animation: cpd-pulse 2.4s infinite;
}

.cpd-video-play::before {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--cpd-c-ink);
}

@keyframes cpd-pulse {
    70% { box-shadow: 0 0 0 22px rgba(248, 182, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 182, 24, 0); }
}

.cpd-video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--cpd-r-lg); }

.cpd-cta { padding-block: 66px; }
.cpd-cta-navy { background: var(--cpd-c-blue-deep); }
.cpd-cta-gold { background: var(--cpd-c-gold); }
.cpd-cta-card { padding-block: 0; }

.cpd-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cpd-cta-title { margin: 0; font-family: var(--cpd-f-head); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.25; }
.cpd-cta-text { margin: 10px 0 0; max-width: 620px; }

.cpd-cta-navy .cpd-cta-title { color: #fff; }
.cpd-cta-navy .cpd-cta-text { color: rgba(255, 255, 255, .82); }
.cpd-cta-gold .cpd-cta-title, .cpd-cta-gold .cpd-cta-text { color: var(--cpd-c-ink); }

.cpd-cta-card .cpd-cta-inner {
    padding: 48px 52px;
    background: var(--cpd-c-blue-tint);
    border-radius: var(--cpd-r-lg);
}

/* Gold band overlapping the footer, as in the reference. The card is pulled
   down by half its own height with a negative bottom margin and the footer is
   given matching top padding, so the two overlap without either leaving flow. */
.cpd-newsletter { position: relative; z-index: 3; padding-block: 0; margin-bottom: -90px; background: transparent; }

.cpd-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 45px 60px;
    border-radius: 5px;
    background: var(--cpd-c-gold);
    box-shadow: 0 10px 40px rgba(23, 37, 58, .18);
}

/* Ink on gold, not white. White on #F8B618 measures about 1.9:1 — well under
   the 4.5:1 minimum, and thin at 15px it was genuinely hard to read. Near-black
   on the same gold is around 11:1. */
.cpd-newsletter-title { margin: 0 0 6px; font-family: var(--cpd-f-head); font-size: 2rem; line-height: 1.2; color: var(--cpd-c-ink); }
.cpd-newsletter-copy p { margin: 0; color: var(--cpd-c-ink); }
.cpd-newsletter-form input { color: var(--cpd-c-ink); }
.cpd-newsletter .cpd-btn-accent { background: var(--cpd-c-ink); color: #fff; }
.cpd-newsletter .cpd-btn-accent:hover { background: var(--cpd-c-blue-deep); color: #fff; }

/* Only pages that end with a newsletter need the extra room, so :has() scopes
   it — an inner page's footer keeps its normal top edge. */
body:has(.cpd-newsletter) .site-footer { padding-top: 90px; }
.cpd-newsletter-form { display: flex; gap: 10px; }

.cpd-newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 16px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: .9375rem;
}

.cpd-contact-cards .cpd-contact-card { flex-direction: row; align-items: center; gap: 18px; padding: 26px 28px; text-decoration: none; }
.cpd-contact-card .cpd-card-icon { margin: 0; flex: none; }
.cpd-contact-card .cpd-card-body { padding: 0; gap: 4px; }
.cpd-contact-card .cpd-card-title { font-size: 1.0625rem; }

/* Short answer.
   Deliberately unframed: no background, no border, no badge. The box treatment
   made a supporting paragraph compete with the section heading directly above
   it, which is the opposite of what an answer-first summary is for — it should
   read as the section's opening statement, not as a callout beside it. The
   `speakable` structured data still points at .cpd-answer-body, so it is no
   less machine-readable for being visually quiet. */
.cpd-answer {
    max-width: 860px;
    margin: 0 auto 50px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
}

.cpd-answer-badge {
    margin: 0 0 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cpd-c-blue);
}

.cpd-answer-question {
    margin: 0 0 14px;
    font-family: var(--cpd-f-head);
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--cpd-c-ink);
    text-align: center;
}

.cpd-answer-body { font-size: 1.125rem; line-height: 1.75; color: var(--cpd-c-body); }
.cpd-answer-body > *:first-child { margin-top: 0; }
.cpd-answer-body > *:last-child { margin-bottom: 0; }

.cpd-band-navy .cpd-answer-question { color: #fff; }
.cpd-band-navy .cpd-answer-body { color: rgba(255, 255, 255, .84); }

/* On an event page the answer sits in a left-aligned column of prose, where a
   centred paragraph would break the reading rhythm. */
.cpd-single-body .cpd-answer,
.cpd-align-left + .cpd-answer { margin-inline: 0; text-align: start; }
.cpd-single-body .cpd-answer-question { text-align: start; }

.cpd-faq { display: grid; gap: 14px; }
.cpd-faq .cpd-section-title { margin-bottom: 20px; }

.cpd-faq-item { border: 1px solid var(--cpd-c-border); border-radius: var(--cpd-r); background: #fff; }
/* Flex rather than a float for the +/– marker: a float would drop out of flow
   and let a two-line question run underneath it. */
.cpd-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--cpd-f-head);
    font-size: 1.0625rem;
    color: var(--cpd-c-ink);
    cursor: pointer;
    list-style: none;
}

.cpd-faq-item summary::-webkit-details-marker { display: none; }
.cpd-faq-item summary::after { content: "+"; flex: none; color: var(--cpd-c-blue); font-size: 1.375rem; line-height: 1; }
.cpd-faq-item[open] summary::after { content: "\2013"; }
.cpd-faq-answer { padding: 0 22px 20px; color: var(--cpd-c-body); }
.cpd-faq-answer > *:first-child { margin-top: 0; }

/* =========================================================================
   Single event / course
   ====================================================================== */

.cpd-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }

.cpd-single-body { font-size: 1.0625rem; line-height: 1.85; color: var(--cpd-c-body); }
.cpd-single-body h2 { margin: 44px 0 16px; font-size: 1.625rem; }
.cpd-single-body h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.cpd-single-body > *:first-child { margin-top: 0; }
.cpd-single-body ul, .cpd-single-body ol { padding-inline-start: 22px; }
.cpd-single-body li { margin-bottom: 8px; }

.cpd-notice { padding: 16px 20px; border-radius: var(--cpd-r); font-size: .9375rem; }
.cpd-notice-past { background: var(--cpd-c-bg); border: 1px solid var(--cpd-c-border); color: var(--cpd-c-muted); }

/* The aside tracks the reader down a long syllabus. Bounded by the header
   height plus a little air so it never hides under the sticky nav. */
.cpd-single-aside { position: sticky; top: 104px; display: grid; gap: 22px; }

.cpd-event-details, .cpd-aside-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    box-shadow: var(--cpd-sh);
}

.cpd-event-details-title, .cpd-aside-title { margin: 0 0 18px; font-family: var(--cpd-f-head); font-size: 1.125rem; color: var(--cpd-c-ink); }

.cpd-detail-list { display: grid; gap: 16px; margin: 0; }
.cpd-detail { display: grid; gap: 3px; }
.cpd-detail dt { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cpd-c-muted); }
.cpd-detail dt .cpd-icon { width: 15px; height: 15px; color: var(--cpd-c-blue); }
.cpd-detail dd { margin: 0; font-size: .9375rem; color: var(--cpd-c-ink); }

.cpd-detail-note { margin: 16px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--cpd-c-muted); }
.cpd-detail-status { margin: 12px 0 0; font-size: .8125rem; text-align: center; color: var(--cpd-c-muted); }
.cpd-detail-status-past { text-align: start; }
.cpd-event-details .cpd-btn { margin-top: 22px; }

.cpd-aside-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cpd-aside-list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--cpd-r); background: var(--cpd-c-bg); text-decoration: none; }
.cpd-aside-list a:hover { background: var(--cpd-c-blue-tint); }
.cpd-aside-list strong { color: var(--cpd-c-ink); font-size: .9375rem; }
.cpd-aside-list span { font-size: .8125rem; color: var(--cpd-c-muted); }

/* =========================================================================
   Footer
   ====================================================================== */

.site-footer { background: var(--cpd-c-blue-deep); color: rgba(255, 255, 255, .75); }

.cpd-footer-main { padding-block: 72px 56px; }

.cpd-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr;
    gap: 40px;
}

.cpd-footer-col p { margin: 18px 0 0; font-size: .9375rem; line-height: 1.75; }
.cpd-footer-about .cpd-logo-text { color: #fff; }
.cpd-footer-about .cpd-logo-word { color: #fff; }

/* The brand mark is blue-on-transparent, which disappears against the navy
   footer. Rather than filtering it to a white silhouette — which would throw
   away the gold and leave the two brand colours inconsistent across the page —
   it sits on a white chip, the way a logo is normally placed on dark stock. */
.cpd-footer-about .cpd-logo:has(.cpd-logo-img) {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: var(--cpd-r);
    background: #fff;
}

.cpd-footer-about .cpd-logo-img { max-height: 58px; }

.cpd-footer-title {
    margin: 0 0 20px;
    font-family: var(--cpd-f-head);
    font-size: 1.0625rem;
    color: #fff;
}

.cpd-footer-title h3 { margin: 0; font-family: inherit; font-size: inherit; color: inherit; font-weight: 700; }

/* The link columns are <details>, so collapsing costs no JavaScript. On desktop
   the disclosure is inert: no marker, no pointer, always open. */
.cpd-footer-acc > summary { list-style: none; cursor: default; }
.cpd-footer-acc > summary::-webkit-details-marker { display: none; }
.cpd-footer-acc > summary::marker { content: ''; }

.cpd-footer-menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.cpd-footer-menu a { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: rgba(255, 255, 255, .75); text-decoration: none; }
.cpd-footer-menu a:hover { color: var(--cpd-c-gold); }
.cpd-footer-menu .cpd-icon { width: 15px; height: 15px; color: var(--cpd-c-gold); }

.cpd-footer-social { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }

.cpd-footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.cpd-footer-social a:hover { background: var(--cpd-c-gold); color: var(--cpd-c-ink); }

.cpd-pagination { display: flex; justify-content: center; margin-top: 48px; }
.cpd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }

.cpd-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 12px;
    border: 1px solid var(--cpd-c-border);
    border-radius: 8px;
    background: #fff;
    color: var(--cpd-c-body);
    text-decoration: none;
}

.cpd-pagination .page-numbers:hover { border-color: var(--cpd-c-blue); color: var(--cpd-c-blue); }
.cpd-pagination .page-numbers.current { background: var(--cpd-c-blue); border-color: var(--cpd-c-blue); color: #fff; }

.cpd-footer-bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.cpd-footer-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.cpd-footer-bar p { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .6); }

.cpd-footer-affiliate a { color: rgba(255, 255, 255, .8); }

.cpd-footer-credit a {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    text-decoration: none;
    border-block-end: 1px solid rgba(255, 255, 255, .3);
    transition: color .3s ease-in-out, border-color .3s ease-in-out;
}

.cpd-footer-credit a:hover,
.cpd-footer-credit a:focus-visible { color: var(--cpd-c-gold); border-color: var(--cpd-c-gold); }

/* =========================================================================
   Featured course
   ====================================================================== */

/* A full-bleed conversion panel for one course.
 *
 * Ordered the way the decision is actually made: what it is, who teaches it,
 * the four facts that disqualify most people in one glance, the price, and one
 * gold button. The secondary route to the course page is a text link rather
 * than a second button on purpose — two buttons of equal weight split the click
 * between them, and the course page is the slower path to a registration. */
.cpd-featured {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--cpd-c-blue-deep) 0%, var(--cpd-c-navy-bar) 62%, var(--cpd-c-blue-dark) 100%);
    color: #fff;
}

/* Two soft light sources rather than a flat fill: the panel has to read as a
   deliberate object on a page of white cards, not as a coloured rectangle. */
.cpd-featured::before,
.cpd-featured::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cpd-featured::before {
    inset-block-start: -180px;
    inset-inline-end: -140px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(248, 182, 24, .18) 0%, rgba(248, 182, 24, 0) 70%);
}

.cpd-featured::after {
    inset-block-end: -220px;
    inset-inline-start: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(58, 123, 200, .35) 0%, rgba(58, 123, 200, 0) 70%);
}

.cpd-featured-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 60px;
    align-items: center;
    padding-block: 80px;
}

.cpd-featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 16px 7px 12px;
    border-radius: 100px;
    background: rgba(248, 182, 24, .14);
    border: 1px solid rgba(248, 182, 24, .38);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cpd-c-gold);
}

/* A live dot, not a flame emoji. It says "open now" without shouting. */
.cpd-featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cpd-c-gold);
    box-shadow: 0 0 0 0 rgba(248, 182, 24, .7);
    animation: cpd-pulse 2.4s ease-out infinite;
}

@keyframes cpd-pulse {
    70%  { box-shadow: 0 0 0 10px rgba(248, 182, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 182, 24, 0); }
}

.cpd-featured-title {
    margin: 0 0 14px;
    font-family: var(--cpd-f-head);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.22;
    font-weight: 800;
    color: #fff;
}

.cpd-featured-speaker {
    margin: 0 0 20px;
    font-size: .9375rem;
    color: rgba(255, 255, 255, .72);
}

.cpd-featured-speaker strong { color: #fff; font-weight: 700; }
.cpd-featured-speaker span { display: block; margin-top: 2px; font-size: .8125rem; color: rgba(255, 255, 255, .55); }

.cpd-featured-text {
    margin: 0 0 28px;
    max-width: 58ch;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .82);
}

.cpd-featured-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.cpd-featured-facts li { display: flex; align-items: flex-start; gap: 12px; }

.cpd-featured-fact-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--cpd-c-gold);
}

.cpd-featured-fact-icon .cpd-icon { width: 19px; height: 19px; }

.cpd-featured-fact-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.cpd-featured-fact-value {
    display: block;
    margin-top: 3px;
    font-size: .9375rem;
    font-weight: 600;
    color: #fff;
}

/* The price and the button share a row and a top rule: the eye lands on the
   number and travels straight into the click. */
.cpd-featured-act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.cpd-featured-price { margin: 0; }

.cpd-featured-price-value {
    display: block;
    font-family: var(--cpd-f-head);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.cpd-featured-price-note {
    display: block;
    margin-top: 4px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--cpd-c-gold);
}

.cpd-featured-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.cpd-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 40px;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(248, 182, 24, .28);
}

.cpd-featured-cta .cpd-icon { width: 18px; height: 18px; transition: transform .3s ease-in-out; }
.cpd-featured-cta:hover .cpd-icon { transform: translateX(4px); }

.cpd-featured-secondary {
    font-size: .9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .3s ease-in-out;
}

.cpd-featured-secondary:hover,
.cpd-featured-secondary:focus-visible { color: var(--cpd-c-gold); }

.cpd-featured-reassurance {
    margin: 18px 0 0;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .55);
}

.cpd-featured-media,
.cpd-featured-media-visual { position: relative; }

.cpd-featured-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--cpd-r-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* Days remaining, computed server-side from the real start date and simply
   absent once it passes. Nothing here counts down to a deadline that does not
   exist. */
.cpd-featured-countdown {
    position: absolute;
    inset-block-start: -22px;
    inset-inline-start: -22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--cpd-c-gold);
    color: var(--cpd-c-blue-deep);
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.cpd-featured-countdown-num {
    font-family: var(--cpd-f-head);
    font-size: 2.125rem;
    line-height: 1;
    font-weight: 800;
}

.cpd-featured-countdown-word {
    margin-top: 2px;
    max-width: 74px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cpd-featured-scarcity {
    position: absolute;
    inset-block-end: -18px;
    inset-inline-end: -12px;
    margin: 0;
    padding: 11px 22px;
    border-radius: 100px;
    background: #fff;
    color: var(--cpd-c-blue-deep);
    font-size: .8125rem;
    font-weight: 700;
    box-shadow: var(--cpd-sh-lg);
}

.cpd-featured.is-past .cpd-featured-dot { animation: none; }

/* =========================================================================
   Registration dialog and form
   ====================================================================== */

/* A native <dialog>, not a div pretending to be one.
 *
 * showModal() gives the focus trap, the inert background, Escape-to-close and
 * the top-layer stacking for free — and the top layer is the part that matters
 * here, because it sits above every stacking context on the page rather than
 * competing with them. The header at z-index 200 has already caused this exact
 * class of bug twice on this site. */
.cpd-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--cpd-r-lg);
    background: #fff;
    color: var(--cpd-c-body);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    overflow: visible;
}

.cpd-modal::backdrop {
    background: rgba(23, 37, 58, .62);
    backdrop-filter: blur(2px);
}

.cpd-modal[open] { animation: cpd-modal-in .24s ease-out; }
.cpd-modal[open]::backdrop { animation: cpd-fade-in .24s ease-out; }

@keyframes cpd-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

@keyframes cpd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cpd-modal-inner {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 40px 44px 44px;
    border-radius: var(--cpd-r-lg);
}

/* The page behind must not scroll while the dialog is open. <dialog> blocks
   interaction but not the scroll chain. */
body.cpd-modal-open { overflow: hidden; }

.cpd-modal-close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--cpd-c-blue-tint);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--cpd-c-blue-deep);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cpd-modal-close:hover { background: var(--cpd-c-blue); color: #fff; }

.cpd-modal-head { margin-bottom: 26px; padding-inline-end: 44px; }

.cpd-modal-title {
    margin: 6px 0 8px;
    font-family: var(--cpd-f-head);
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--cpd-c-ink);
}

.cpd-modal-sub { margin: 0; font-size: .9375rem; color: var(--cpd-c-muted); }

/* ---- The course summary strip ------------------------------------- */

.cpd-regform-summary {
    margin: 0 0 24px;
    padding: 16px 20px;
    border-inline-start: 3px solid var(--cpd-c-gold);
    border-radius: 0 var(--cpd-r) var(--cpd-r) 0;
    background: var(--cpd-c-blue-tint);
}

.cpd-regform-summary-title {
    margin: 0;
    font-family: var(--cpd-f-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cpd-c-ink);
}

.cpd-regform-summary-meta {
    margin: 4px 0 0;
    font-size: .875rem;
    font-weight: 600;
    color: var(--cpd-c-blue-dark);
}

/* ---- Fields --------------------------------------------------------- */

.cpd-regform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.cpd-field { margin: 0; grid-column: 1 / -1; }
.cpd-field-half { grid-column: span 1; }

.cpd-field label {
    display: block;
    margin-bottom: 7px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--cpd-c-ink);
}

.cpd-req { margin-inline-start: 2px; color: var(--cpd-c-gold-dark); }

.cpd-field input,
.cpd-field select,
.cpd-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r);
    background: #fff;
    font-family: inherit;
    font-size: .9375rem;
    color: var(--cpd-c-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cpd-field select {
    appearance: none;
    padding-inline-end: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23505050' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.cpd-field textarea { resize: vertical; min-height: 84px; }

.cpd-field input:focus,
.cpd-field select:focus,
.cpd-field textarea:focus {
    outline: 0;
    border-color: var(--cpd-c-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 200, .18);
}

.cpd-field-help { display: block; margin-top: 6px; font-size: .75rem; color: var(--cpd-c-muted); }

.cpd-field-error input,
.cpd-field-error select,
.cpd-field-error textarea { border-color: #C0392B; }

.cpd-field-msg { display: block; margin-top: 6px; font-size: .75rem; font-weight: 600; color: #C0392B; }

/* ---- Consent -------------------------------------------------------- */

.cpd-regform-consents { margin-top: 26px; }

.cpd-consent { margin: 0 0 14px; }

.cpd-consent label {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--cpd-c-body);
    cursor: pointer;
}

.cpd-consent input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--cpd-c-blue);
}

.cpd-consent a { color: var(--cpd-c-blue); }
.cpd-consent.cpd-field-error span { color: #C0392B; }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields that are display:none specifically to avoid this trick. */
.cpd-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Submit --------------------------------------------------------- */

.cpd-regform-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--cpd-c-border);
}

.cpd-regform-submit { padding: 16px 40px; font-size: 1rem; }
.cpd-regform-submit.is-busy { opacity: .6; cursor: progress; }
.cpd-regform-submit:disabled { cursor: not-allowed; }

.cpd-regform-note { margin: 0; flex: 1 1 240px; font-size: .8125rem; color: var(--cpd-c-muted); }

.cpd-regform-status { margin-top: 16px; font-size: .875rem; font-weight: 600; }
.cpd-regform-status:empty { margin-top: 0; }
.cpd-regform-status.is-bad { color: #C0392B; }
.cpd-regform-status.is-ok { color: #1E7A46; }

/* ---- Done ----------------------------------------------------------- */

.cpd-regdone { padding: 20px 0 8px; text-align: center; }

.cpd-regdone-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--cpd-c-blue-tint);
    font-size: 1.75rem;
    color: var(--cpd-c-blue);
}

.cpd-regdone p { margin: 0 auto 26px; max-width: 46ch; line-height: 1.7; }

/* ---- On the page (no-JS fallback) ----------------------------------- */

.cpd-regblock {
    max-width: 760px;
    margin-inline: auto;
    padding: 40px;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    background: #fff;
    box-shadow: var(--cpd-sh);
}

.cpd-notice {
    margin: 0 0 24px;
    padding: 16px 20px;
    border-radius: var(--cpd-r);
    font-weight: 600;
}

.cpd-notice p { margin: 0; }
.cpd-notice-ok { background: #E8F6EE; color: #1E7A46; }
.cpd-notice-bad { background: #FDECEA; color: #C0392B; }

@media (prefers-reduced-motion: reduce) {
    .cpd-modal[open],
    .cpd-modal[open]::backdrop { animation: none; }
}

/* =========================================================================
   Contact panel
   ====================================================================== */

.cpd-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.cpd-contact-form {
    padding: 44px;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    background: #fff;
    box-shadow: var(--cpd-sh);
}

.cpd-contact-form-title {
    margin: 0 0 10px;
    font-family: var(--cpd-f-head);
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--cpd-c-ink);
}

.cpd-contact-form-intro { margin: 0 0 28px; font-size: 1rem; line-height: 1.7; color: var(--cpd-c-body); }

/* The aside is navy so the eye reads it as a different kind of thing — a set of
   direct routes to a person, not more of the form. */
.cpd-contact-aside {
    position: relative;
    overflow: hidden;
    padding: 40px 36px;
    border-radius: var(--cpd-r-lg);
    background: linear-gradient(150deg, var(--cpd-c-blue-deep) 0%, var(--cpd-c-navy-bar) 100%);
    color: rgba(255, 255, 255, .8);
}

.cpd-contact-aside::after {
    content: "";
    position: absolute;
    inset-block-start: -120px;
    inset-inline-end: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 182, 24, .16) 0%, rgba(248, 182, 24, 0) 70%);
    pointer-events: none;
}

.cpd-contact-aside-title {
    position: relative;
    margin: 0 0 10px;
    font-family: var(--cpd-f-head);
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
}

.cpd-contact-aside-text { position: relative; margin: 0 0 26px; font-size: .9375rem; line-height: 1.7; }

.cpd-contact-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpd-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-block: 18px;
    border-block-end: 1px solid rgba(255, 255, 255, .14);
}

.cpd-contact-list li:first-child { padding-block-start: 0; }
.cpd-contact-list li:last-child { border-block-end: 0; }

.cpd-contact-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--cpd-c-gold);
}

.cpd-contact-icon .cpd-icon { width: 19px; height: 19px; }

.cpd-contact-label {
    display: block;
    margin-bottom: 3px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.cpd-contact-list a {
    font-size: .9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.cpd-contact-list a:hover { color: var(--cpd-c-gold); }
.cpd-contact-value { display: block; font-size: .875rem; line-height: 1.6; }

.cpd-contact-social { position: relative; margin-top: 26px; }
.cpd-contact-social .cpd-contact-label { margin-bottom: 12px; }

.cpd-contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .3s ease-in-out, color .3s ease-in-out;
}

.cpd-contact-social a:hover { background: var(--cpd-c-gold); color: var(--cpd-c-blue-deep); }
.cpd-contact-social .cpd-icon { width: 17px; height: 17px; }

/* =========================================================================
   Process steps
   ====================================================================== */

.cpd-steps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cpd-step;
}

.cpd-step {
    position: relative;
    counter-increment: cpd-step;
    padding-block-start: 8px;
}

/* The connector runs between the numbers, not under the cards, and stops
   before the last one so the sequence reads as finished rather than cut off. */
.cpd-step::after {
    content: "";
    position: absolute;
    inset-block-start: 34px;
    inset-inline-start: 62px;
    width: calc(100% - 32px);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--cpd-c-border) 0 8px, transparent 8px 16px);
}

.cpd-step:last-child::after { display: none; }

.cpd-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--cpd-c-blue-tint);
    font-family: var(--cpd-f-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cpd-c-blue-dark);
}

.cpd-step-num::before { content: counter(cpd-step, decimal-leading-zero); }

.cpd-step-title {
    margin: 0 0 10px;
    font-family: var(--cpd-f-head);
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--cpd-c-ink);
}

.cpd-step-text { margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--cpd-c-body); }

/* A checklist that reads as reassurance rather than as body copy.
 *
 * Applied to any plain list inside a split section as well as to .cpd-ticks,
 * because the seeded content builds those lists with the core list block and a
 * row of default bullets undersells a list of things somebody else does for
 * you. */
.cpd-ticks,
.cpd-split-body .wp-block-list { margin: 0 0 26px; padding: 0; list-style: none; }

.cpd-ticks li,
.cpd-split-body .wp-block-list > li {
    position: relative;
    margin-bottom: 14px;
    padding-inline-start: 34px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cpd-c-body);
}

.cpd-ticks li::before,
.cpd-split-body .wp-block-list > li::before {
    content: "";
    position: absolute;
    inset-block-start: 5px;
    inset-inline-start: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cpd-c-blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.7 9 10 3.2' fill='none' stroke='%233A7BC8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

/* =========================================================================
   Article tables
   ====================================================================== */

/* Wide reference tables inside a post. The horizontal scroll is deliberate:
   an eight-row, four-column table cannot be made to fit a phone by shrinking
   the type, and squeezing it there is how a useful table becomes unreadable. */
.wp-block-table { margin: 0 0 30px; overflow-x: auto; }

.wp-block-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.wp-block-table th,
.wp-block-table td {
    padding: 14px 16px;
    border: 1px solid var(--cpd-c-border);
    text-align: start;
    vertical-align: top;
    line-height: 1.6;
}

.wp-block-table thead th {
    background: var(--cpd-c-blue-tint);
    font-family: var(--cpd-f-head);
    font-weight: 700;
    color: var(--cpd-c-ink);
    white-space: nowrap;
}

.wp-block-table tbody tr:nth-child(even) { background: #FAFBFD; }
.wp-block-table td { color: var(--cpd-c-body); }

.cpd-entry code,
.cpd-prose code {
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--cpd-c-blue-tint);
    font-size: .875em;
    color: var(--cpd-c-blue-dark);
}

/* =========================================================================
   Floating action dock
   ====================================================================== */

/* Two persistent routes to the two things people came for: talk to somebody,
 * or book a place. Revealed on the same scroll threshold as the back-to-top
 * button rather than on load — a bar floating over the hero is clutter at the
 * exact moment the header's own buttons are still visible.
 *
 * It sits bottom-left on desktop because bottom-right already belongs to
 * back-to-top, and two overlapping floating controls in one corner is how you
 * get a mis-tap. */
.cpd-dock {
    position: fixed;
    inset-block-end: 26px;
    inset-inline-start: 26px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.cpd-dock.is-visible { opacity: 1; visibility: visible; transform: none; }

.cpd-dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px 13px 16px;
    border-radius: 100px;
    font-family: var(--cpd-f-body);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(23, 37, 58, .26);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.cpd-dock-btn:hover,
.cpd-dock-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 37, 58, .32);
}

.cpd-dock-btn:focus-visible { outline: 3px solid var(--cpd-c-blue); outline-offset: 3px; }

.cpd-dock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.cpd-dock-icon .cpd-icon { width: 22px; height: 22px; }

/* WhatsApp keeps its own green. It is one of the few colours a visitor reads
   as a specific product rather than as decoration, and recolouring it to the
   brand palette costs the recognition that makes the button work. */
.cpd-dock-whatsapp { background: #25D366; color: #FFFFFF; }
.cpd-dock-whatsapp:hover { background: #1DA851; }

.cpd-dock-register { background: var(--cpd-c-gold); color: var(--cpd-c-ink); }
.cpd-dock-register:hover { background: var(--cpd-c-gold-dark); }

/* The third route: the partner library. Theme blue, so the row reads as three
   distinct destinations rather than as one control repeated — WhatsApp green
   for the person, gold for the booking, blue for the catalogue. */
.cpd-dock-online { background: var(--cpd-c-blue); color: #FFFFFF; }
.cpd-dock-online:hover { background: var(--cpd-c-blue-dark); }

/* Labels come in two lengths. "Other Online courses" is right on desktop and
   impossible at a third of a phone's width, so each button carries both and
   the media query picks. */
.cpd-dock-short { display: none; }

/* A wide dialog for the library. The panel scrolls internally and the search
   and filters stay pinned at the top of it, because scrolling seventy-nine
   cards back up to change a filter is the one thing that would make the
   dialog worse than the page it replaces. */
.cpd-modal-wide {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.cpd-modal-wide .cpd-modal-inner {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 36px 40px 40px;
    border-radius: 0;
}
.cpd-modal-wide .cpd-modal-close { inset-block-start: 20px; inset-inline-end: 20px; }
.cpd-modal-promo { display: none; }

/* The controls hold still and the results scroll under them — as a real
 * scroll region, not as sticky positioning.
 *
 * Sticky was the wrong tool here. A sticky element only paints its own box, so
 * cards scrolling past showed through the container's padding above it and
 * through the seam between the two sticky rows, and the second row's offset
 * had to be hand-guessed from the first row's height — which changes with the
 * viewport. Making the panel a flex column with one overflowing child gives
 * the same behaviour with nothing to bleed through and nothing to measure. */
.cpd-modal-wide .cpd-modal-inner {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cpd-modal-wide .cpd-partner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
}

.cpd-modal-wide .cpd-modal-head,
.cpd-modal-wide .cpd-partner-tools,
.cpd-modal-wide .cpd-partner-filters { flex: 0 0 auto; }

.cpd-modal-wide .cpd-partner-filters { margin-bottom: 0; padding-bottom: 18px; }

/* min-height: 0 is what actually lets this shrink. A flex item defaults to
   min-height: auto, which refuses to go below its content height — so without
   it the results never overflow and the whole dialog scrolls instead. */
.cpd-modal-wide .cpd-partner-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-block-start: 26px;
    overscroll-behavior: contain;
}

.cpd-modal-wide .cpd-partner-group { margin-bottom: 34px; }
.cpd-modal-wide .cpd-partner-group:last-of-type { margin-bottom: 8px; }
.cpd-modal-wide .cpd-partner-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (prefers-reduced-motion: reduce) {
    .cpd-dock { transition: opacity .01ms, visibility .01ms; transform: none; }
    .cpd-dock.is-visible { transform: none; }
    .cpd-dock-btn:hover { transform: none; }
}

/* ---- Mobile: a fixed bottom bar, two halves --------------------------- */

@media (max-width: 640px) {
    .cpd-dock {
        inset-block-end: 0;
        inset-inline: 0;
        flex-direction: row;
        gap: 0;
        align-items: stretch;
        transform: translateY(100%);
    }

    .cpd-dock.is-visible { transform: none; }

    .cpd-dock-btn {
        flex: 1 1 0;
        justify-content: center;
        gap: 9px;
        min-width: 0;
        min-height: 56px;
        padding: 0 10px;
        border-radius: 0;
        font-size: .9375rem;
        box-shadow: none;
    }

    /* The library button lifts out of the bar and floats above it as a pill on
       the left. Taking it out of flow leaves WhatsApp and Register to split the
       bar in half, which is the split the bar was designed around — three
       equal thirds gave every label a third of a phone's width and none of
       them fitted. Out of flow it also gets its full label back. */
    .cpd-dock-online {
        position: absolute;
        inset-block-end: calc(100% + 12px);
        inset-inline-start: 12px;
        flex: none;
        width: auto;
        min-height: 46px;
        padding: 0 20px;
        border-radius: 100px;
        font-size: .875rem;
        box-shadow: 0 8px 22px rgba(23, 37, 58, .28);
    }

    /* Two in the bar and one floating pill — every label has room now. */
    .cpd-dock-long { display: inline; }
    .cpd-dock-short { display: none; }
    .cpd-dock-icon { width: 22px; height: 22px; }
    .cpd-dock-icon .cpd-icon { width: 20px; height: 20px; }

    /* No lift on touch — but each button keeps its own shadow, or the pill
       would flatten into the page the moment it took focus. */
    .cpd-dock-btn:hover,
    .cpd-dock-btn:focus-visible { transform: none; }

    .cpd-dock-whatsapp,
    .cpd-dock-register { box-shadow: 0 -4px 18px rgba(23, 37, 58, .18); }

    /* Reserve the bar's height at the foot of the document. Without it the bar
       covers the last rows of the footer, which is where the contact details
       and the privacy link live. Keyed to the class the script sets when the
       bar appears, so a short page that never reveals it does not carry a
       56px gap under its footer for nothing. */
    body.cpd-has-dock { padding-block-end: 56px; }

    /* And lift back-to-top clear of the bar rather than letting the two
       overlap in the corner. */
    body.cpd-has-dock .cpd-to-top { inset-block-end: 70px; }
}

/* =========================================================================
   Partner course library
   ====================================================================== */

.cpd-partner { margin-top: 8px; }

/* The disclosure sits above everything, inside the same component as the
   links it discloses — so it cannot be deleted by accident while the links
   survive. Styled as a quiet note rather than a warning: it is a fact about
   the page, not a hazard. */
.cpd-partner-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 30px;
    padding: 16px 20px;
    border-inline-start: 3px solid var(--cpd-c-gold);
    border-radius: 0 var(--cpd-r) var(--cpd-r) 0;
    background: var(--cpd-c-blue-tint);
    font-size: .875rem;
    line-height: 1.7;
    color: var(--cpd-c-body);
}

.cpd-partner-disclosure-icon { flex: 0 0 auto; color: var(--cpd-c-gold-dark); }
.cpd-partner-disclosure-icon .cpd-icon { width: 18px; height: 18px; margin-block-start: 3px; }
.cpd-partner-disclosure a { color: var(--cpd-c-blue); }

.cpd-partner-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.cpd-partner-count { margin: 0; font-size: .9375rem; color: var(--cpd-c-muted); }
.cpd-partner-count strong { color: var(--cpd-c-ink); }

.cpd-partner-search { position: relative; flex: 1 1 320px; max-width: 420px; }

.cpd-partner-search-icon {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: var(--cpd-c-muted);
    pointer-events: none;
}

.cpd-partner-search-icon .cpd-icon { width: 18px; height: 18px; display: block; }

.cpd-partner-search input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1px solid var(--cpd-c-border);
    border-radius: 100px;
    background: #fff;
    font-family: inherit;
    font-size: .9375rem;
    color: var(--cpd-c-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cpd-partner-search input:focus {
    outline: 0;
    border-color: var(--cpd-c-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 200, .18);
}

/* ---- Topic chips ----------------------------------------------------- */

.cpd-partner-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-block-end: 1px solid var(--cpd-c-border);
}

.cpd-partner-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--cpd-c-border);
    border-radius: 100px;
    background: #fff;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: var(--cpd-c-body);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cpd-partner-chip:hover { border-color: var(--cpd-c-blue); color: var(--cpd-c-blue-dark); }

.cpd-partner-chip.is-on {
    background: var(--cpd-c-blue-deep);
    border-color: var(--cpd-c-blue-deep);
    color: #fff;
}

.cpd-partner-chip-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--cpd-c-blue-tint);
    font-size: .6875rem;
    font-weight: 700;
    color: var(--cpd-c-blue-dark);
}

.cpd-partner-chip.is-on .cpd-partner-chip-n { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---- Groups and cards ------------------------------------------------ */

.cpd-partner-group { margin-bottom: 42px; }
.cpd-partner-group[hidden] { display: none; }

.cpd-partner-group-title {
    margin: 0 0 18px;
    font-family: var(--cpd-f-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cpd-c-ink);
}

.cpd-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpd-partner-item[hidden] { display: none; }

.cpd-partner-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--cpd-c-border);
    border-radius: var(--cpd-r-lg);
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cpd-partner-card:hover,
.cpd-partner-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--cpd-c-blue);
    box-shadow: var(--cpd-sh-lg);
}

.cpd-partner-card-title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--cpd-f-head);
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--cpd-c-ink);
}

.cpd-partner-card-hours {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--cpd-c-blue-tint);
    font-size: .75rem;
    font-weight: 700;
    color: var(--cpd-c-blue-dark);
}

.cpd-partner-card-go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cpd-c-blue);
}

.cpd-partner-card-go .cpd-icon { width: 15px; height: 15px; transition: transform .2s ease; }
.cpd-partner-card:hover .cpd-partner-card-go .cpd-icon { transform: translateX(3px); }

.cpd-partner-empty {
    margin: 0;
    padding: 40px 0;
    text-align: center;
    font-size: 1rem;
    color: var(--cpd-c-muted);
}

@media (prefers-reduced-motion: reduce) {
    .cpd-partner-card:hover { transform: none; }
    .cpd-partner-card:hover .cpd-partner-card-go .cpd-icon { transform: none; }
}

@media (max-width: 640px) {
    .cpd-partner-grid { grid-template-columns: 1fr; }
    .cpd-partner-tools { flex-direction: column; align-items: stretch; }

    /* `flex: 1 1 320px` sets a basis on the *main* axis, and the main axis
       here is now vertical — so the search wrapper was 320px tall, the input
       sat at the top of it and the absolutely centred magnifier landed 160px
       below in open space. Basis has to go once the row becomes a column. */
    .cpd-partner-search { flex: 0 0 auto; max-width: none; }
    .cpd-partner-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
    .cpd-partner-filters::-webkit-scrollbar { display: none; }
    .cpd-partner-chip { flex: 0 0 auto; }
}

/* =========================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1080px) {
    .cpd-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cpd-single-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cpd-single-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpd-cols-4 { --cpd-n: 2; }
}

@media (max-width: 900px) {
    .cpd-contact-panel { grid-template-columns: 1fr; }
    .cpd-contact-form { padding: 28px 22px; }
    .cpd-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cpd-step:nth-child(2n)::after { display: none; }
}

@media (max-width: 900px) {
    .cpd-featured-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 60px; }
    .cpd-featured-media { order: -1; }
    .cpd-featured-countdown { inset-block-start: -18px; inset-inline-start: auto; inset-inline-end: -10px; width: 92px; height: 92px; }
    .cpd-featured-countdown-num { font-size: 1.75rem; }
    .cpd-featured-scarcity { inset-inline-end: auto; inset-inline-start: 0; }
}

@media (max-width: 900px) {
    .cpd-band { padding-block: 64px; }

    /* The overlap only works when the hero is tall enough to give it back.
       On a phone the hero is barely taller than its own text, so the tiles
       return to normal flow rather than covering the headline. */
    .cpd-band-pull { margin-top: 0; padding-block: 48px 0; }
    .cpd-has-hero .cpd-hero-inner { padding-block: 150px 90px; }
    .cpd-band-loose { padding-block: 80px; }

    /* The desktop menu and the drawer swap here. Both exist in the DOM at all
       times, so this is purely a display switch — no markup is duplicated. */
    .cpd-primary { display: none; }
    .cpd-burger { display: block; }
    .cpd-nav-cta { display: none; }
    .cpd-nav-inner,
    .cpd-has-hero .cpd-nav-inner,
    .cpd-nav.is-stuck .cpd-nav-inner,
    .cpd-has-hero .cpd-nav.is-stuck .cpd-nav-inner { min-height: 68px; padding-block: 7px; }
    .cpd-logo-img,
    .cpd-nav.is-stuck .cpd-logo-img { max-height: 46px; }
    .cpd-has-hero .cpd-hero-inner { padding-block: 130px 90px; }
    .cpd-nav-inner { min-height: 68px; justify-content: space-between; }


    .cpd-cols-3, .cpd-cols-4 { --cpd-n: 2; }
    .cpd-news-events { grid-template-columns: minmax(0, 1fr); gap: 60px; }
    .cpd-news-col, .cpd-events-col { grid-auto-rows: auto; }
    .cpd-video-band { padding-block: 180px; }
    .cpd-cta-photo { inset-block-end: auto; width: 100%; height: 260px; }
    .cpd-cta-panel { inset-inline: 0; width: 100%; inset-block-start: 260px; }
    .cpd-cta-split { padding-block: 0 70px; }
    .cpd-cta-split-inner { grid-template-columns: minmax(0, 1fr); padding-top: 300px; }
    .cpd-cta-copy { grid-column: 1; padding-inline-start: 0; }
    .cpd-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cpd-split-right .cpd-split-media, .cpd-split-left .cpd-split-media { order: 0; }
    .cpd-split-right .cpd-split-body, .cpd-split-left .cpd-split-body { padding-inline: 0; }
    .cpd-video-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .cpd-counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
    .cpd-newsletter-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cpd-testimonials-grid { grid-template-columns: minmax(0, 1fr); }
    .cpd-quote-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cpd-quote-split .cpd-testimonial blockquote { font-size: 1.25rem; line-height: 2.125rem; }
    .cpd-quote-mark { width: 78px; margin-bottom: 20px; }
    .cpd-hero-tall .cpd-hero-slide { min-height: 520px; }
    .cpd-hero-arrow { display: none; }
}

@media (max-width: 900px) {
    /* Below the breakpoint each column collapses. Four stacked link lists is a
       lot of scrolling to get past on a phone; collapsed, the whole footer is a
       short menu of headings. */
    .cpd-footer-acc { border-bottom: 1px solid rgba(255, 255, 255, .14); }

    .cpd-footer-acc > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        padding-block: 16px;
        cursor: pointer;
    }

    .cpd-footer-acc > summary::after {
        content: '+';
        flex: none;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--cpd-c-gold);
    }

    .cpd-footer-acc[open] > summary::after { content: '\2013'; }
    .cpd-footer-acc > *:not(summary) { padding-bottom: 20px; }
    .cpd-footer-grid { gap: 0; }
    .cpd-footer-about { margin-bottom: 26px; }
}

@media (max-width: 640px) {
    .cpd-featured-facts { grid-template-columns: 1fr; }
    .cpd-featured-act { flex-direction: column; align-items: flex-start; }
    .cpd-featured-buttons { width: 100%; flex-direction: column; align-items: stretch; }
    .cpd-featured-cta { justify-content: center; width: 100%; }
    .cpd-featured-secondary { text-align: center; }
}

@media (max-width: 640px) {
    .cpd-modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; }
    .cpd-modal-inner { max-height: 100vh; padding: 32px 20px 40px; border-radius: 0; }
    #cpd-courses-modal .cpd-modal-inner { padding: 12px 16px 14px !important; }
    #cpd-courses-modal .cpd-modal-close { inset-block-start: 6px; inset-inline-end: 16px; }
    .cpd-modal-wide .cpd-modal-sub { display: none; }
    #cpd-courses-modal .cpd-modal-head { margin-bottom: 6px !important; }
    #cpd-courses-modal .cpd-modal-head .cpd-eyebrow { margin-bottom: 4px; }
    .cpd-modal-wide .cpd-partner-results { padding-block-start: 18px; }

    /* The desktop discount note is intentionally detailed. On phones it
       becomes one compact ticker so the course catalogue starts higher. */
    #cpd-courses-modal .cpd-modal-sub::after { content: none !important; }
    #cpd-courses-modal .cpd-modal-promo {
        display: block;
        width: calc(100% + 42px);
        max-width: none;
        margin-top: 8px;
        margin-inline-end: -42px;
        overflow: hidden;
        border-inline-start: 4px solid var(--cpd-c-gold);
        border-radius: 4px;
        background: #fff7dc;
        color: var(--cpd-c-blue-deep);
        font-size: .75rem;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }
    #cpd-courses-modal .cpd-modal-promo-track {
        display: flex;
        width: max-content;
        padding-block: 10px;
        will-change: transform;
        animation: cpd-promo-marquee 24s linear infinite;
    }
    #cpd-courses-modal .cpd-modal-promo-track > span {
        flex: 0 0 auto;
        padding-inline-end: 56px;
    }

    /* Hidden from sight, not from the accessibility tree.
     *
     * The dialog's aria-labelledby points at this heading, so display:none
     * would leave the whole panel with no accessible name — a screen reader
     * would announce "dialog" and nothing else. Clipping it keeps the name and
     * gives the phone back the ~60px the results need more. */
    .cpd-modal-wide .cpd-modal-title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    .cpd-regform-grid { grid-template-columns: 1fr; }
    .cpd-field-half { grid-column: 1 / -1; }
    .cpd-regform-submit { width: 100%; }
    .cpd-regblock { padding: 24px 18px; }
}

@keyframes cpd-promo-marquee {
    to { transform: translateX(-50%); }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    #cpd-courses-modal .cpd-modal-promo { overflow-x: auto; }
    #cpd-courses-modal .cpd-modal-promo-track { animation: none; }
}

@media (max-width: 640px) {
    .cpd-steps-list { grid-template-columns: 1fr; gap: 22px; }
    .cpd-step::after { display: none; }
    .cpd-contact-aside { padding: 30px 22px; }
}

@media (max-width: 640px) {
    .cpd-cols-2, .cpd-cols-3, .cpd-cols-4 { --cpd-n: 1; }
    .cpd-news-item { grid-template-columns: minmax(0, 1fr); }
    .cpd-news-body { padding: 24px 26px 28px; }
    .cpd-event-short { flex-direction: column; gap: 18px; }
    .cpd-video-band { padding-block: 130px; }
    .cpd-single-aside { grid-template-columns: minmax(0, 1fr); }
    .cpd-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .cpd-hero-tall .cpd-hero-slide { min-height: 460px; }
    .cpd-hero-slide { background-position: 72% center; }
    .cpd-hero-inner { padding-block: 64px; }
    .cpd-event-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cpd-event-date { width: 92px; }
    .cpd-cta-inner { flex-direction: column; align-items: flex-start; }
    .cpd-cta-card .cpd-cta-inner { padding: 32px 26px; }
    .cpd-newsletter-form { flex-direction: column; }
    .cpd-newsletter-inner { padding: 32px 26px; }
    .cpd-newsletter { margin-bottom: -60px; }
    body:has(.cpd-newsletter) .site-footer { padding-top: 80px; }
    .cpd-split-badge { inset-inline-start: 16px; inset-block-end: -16px; padding: 16px 20px; }
}

/* ======================================================================
   Dedicated FAQ page
   ====================================================================== */

body:has(.cpd-faq-page) { overflow-x: clip; }
body:has(.cpd-faq-page) .site-main { padding: 0; overflow-x: clip; }
body:has(.cpd-faq-page) .entry-header { display: none; }
body:has(.cpd-faq-page) .entry-content { margin: 0; }
body:has(.cpd-faq-page) .site-main > .cpd-band { padding: 0; }
body:has(.cpd-faq-page) .site-main > .cpd-band > .mw-container { width: 100%; max-width: none; padding: 0; }
body:has(.cpd-faq-page) article > .cpd-section-title { display: none; }
body:has(.cpd-faq-page) .entry-content.cpd-single-body { margin: 0; }
.cpd-faq-page { color: var(--cpd-c-body); overflow: clip; }
.cpd-faq-page h1,
.cpd-faq-page h2 { color: var(--cpd-c-blue-deep); }

.cpd-faq-hero {
    position: relative;
    overflow: hidden;
    background: var(--cpd-c-blue-deep);
}
.cpd-faq-hero::after {
    content: '?';
    position: absolute;
    inset-inline-end: clamp(24px, 8vw, 140px);
    inset-block-start: 50%;
    translate: 0 -52%;
    color: rgba(255, 255, 255, .055);
    font: 700 clamp(16rem, 30vw, 29rem)/1 var(--cpd-f-head);
    pointer-events: none;
}
.cpd-faq-hero-inner { position: relative; z-index: 1; padding-block: clamp(90px, 10vw, 150px); }
.cpd-faq-hero .cpd-eyebrow { color: var(--cpd-c-gold); }
.cpd-faq-hero h1 { max-width: 850px; margin: 0; color: #fff; font: 700 clamp(2.75rem, 6vw, 5rem)/1 var(--cpd-f-head); letter-spacing: -.035em; }
.cpd-faq-intro { max-width: 700px; margin: 26px 0 0; color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.cpd-faq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cpd-faq-hero .cpd-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }

.cpd-faq-jumps { position: sticky; z-index: 30; top: 76px; width: 100%; max-width: 100vw; overflow: hidden; background: #fff; border-bottom: 1px solid var(--cpd-c-border); box-shadow: 0 8px 24px rgba(23, 57, 95, .06); }
.cpd-faq-jumps .cpd-shell { display: flex; width: 100%; max-width: 100%; gap: 8px; overflow-x: auto; padding-block: 13px; box-sizing: border-box; scrollbar-width: thin; }
.cpd-faq-jumps a { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--cpd-c-blue-tint); color: var(--cpd-c-blue-deep); text-decoration: none; font-size: .82rem; font-weight: 800; }
.cpd-faq-jumps a:hover,
.cpd-faq-jumps a:focus-visible { background: var(--cpd-c-blue); color: #fff; }

.cpd-faq-main { padding-block: clamp(70px, 9vw, 120px); background: var(--cpd-c-bg); }
.cpd-faq-heading { max-width: 760px; margin-bottom: 52px; }
.cpd-faq-heading h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.25rem)/1.08 var(--cpd-f-head); }
.cpd-faq-groups { display: grid; gap: 72px; }
.cpd-faq-group { min-width: 0; scroll-margin-top: 155px; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cpd-faq-group > h2 { position: sticky; top: 165px; margin: 0; font: 700 clamp(1.5rem, 2.5vw, 2.15rem)/1.15 var(--cpd-f-head); }
.cpd-faq-list { min-width: 0; display: grid; gap: 12px; }
.cpd-faq-list details { min-width: 0; border: 1px solid var(--cpd-c-border); border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(23, 57, 95, .035); }
.cpd-faq-list summary { position: relative; padding: 21px 58px 21px 24px; color: var(--cpd-c-blue-deep); font-size: 1.02rem; font-weight: 800; line-height: 1.4; cursor: pointer; list-style: none; }
.cpd-faq-list summary::-webkit-details-marker { display: none; }
.cpd-faq-list summary::after { content: '+'; position: absolute; inset-inline-end: 22px; inset-block-start: 50%; translate: 0 -50%; color: var(--cpd-c-blue); font-size: 1.55rem; font-weight: 500; }
.cpd-faq-list details[open] summary::after { content: '\2212'; }
.cpd-faq-list details[open] summary { border-bottom: 1px solid var(--cpd-c-border); }
.cpd-faq-list details > div { padding: 20px 24px 24px; }
.cpd-faq-list details p { max-width: 760px; margin: 0; line-height: 1.75; }

.cpd-faq-contact { padding-block: clamp(55px, 7vw, 85px); background: var(--cpd-c-blue); }
.cpd-faq-contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cpd-faq-contact .cpd-eyebrow { color: var(--cpd-c-gold); }
.cpd-faq-contact h2 { margin: 0 0 10px; color: #fff; font: 700 clamp(2rem, 4vw, 3rem)/1.08 var(--cpd-f-head); }
.cpd-faq-contact p:not(.cpd-eyebrow) { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .86); }
.cpd-faq-contact .cpd-btn { flex: none; }

@media (max-width: 900px) {
    .cpd-faq-jumps { top: 68px; }
    .cpd-faq-group { grid-template-columns: 1fr; gap: 20px; scroll-margin-top: 140px; }
    .cpd-faq-group > h2 { position: static; }
}

@media (max-width: 640px) {
    .cpd-faq-hero-inner { padding-block: 76px; }
    .cpd-faq-hero::after { inset-inline-end: -28px; font-size: 18rem; }
    .cpd-faq-actions { align-items: stretch; flex-direction: column; }
    .cpd-faq-actions .cpd-btn { justify-content: center; width: 100%; }
    .cpd-faq-jumps .cpd-shell { padding-inline: 18px; }
    .cpd-faq-main { padding-block: 58px; }
    .cpd-faq-heading { margin-bottom: 40px; }
    .cpd-faq-groups { gap: 56px; }
    .cpd-faq-list summary { padding: 18px 50px 18px 18px; }
    .cpd-faq-list details > div { padding: 18px; }
    .cpd-faq-contact-inner { align-items: stretch; flex-direction: column; }
    .cpd-faq-contact .cpd-btn { justify-content: center; width: 100%; }
}

/* Respect a stated preference for less motion — the hero cross-fade, the
   card lift and the play-button pulse are all decorative. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .cpd-card:hover { transform: none; }
}
