/**
 * Block editor + front-end styles for block-enabled pages.
 * Brand tokens mirror theme.json (Quicksand, heading blue #183362, body #414245).
 */

/*
 * Landings dequeue Bootstrap/main.css, so reinstate border-box (legacy gets it
 * from main.css). Without this, .ps-site-header__inner padding stacks on
 * min-height and the chrome reads taller than on legacy shell pages.
 */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.editor-styles-wrapper,
.purestretch-block-page .entry-content {
    background: #fff;
    color: #414245;
    font-family: "Quicksand", effra, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.editor-styles-wrapper .wp-block,
.purestretch-block-page .entry-content .wp-block {
    max-width: 720px;
}

/* Section rhythm — classic Sage entry-content does not inherit FSE block gap. */
.editor-styles-wrapper .is-root-container > * + *,
.purestretch-block-page .entry-content > * + * {
    margin-block-start: var(--wp--style--block-gap, 3.125rem);
    margin-top: var(--wp--style--block-gap, 3.125rem);
}

.editor-styles-wrapper .is-root-container > .section--flush-top,
.purestretch-block-page .entry-content > .section--flush-top {
    margin-block-start: 0;
    margin-top: 0;
}

.editor-styles-wrapper .alignwide,
.purestretch-block-page .entry-content .alignwide {
    max-width: min(var(--wp--style--global--wide-size, 1140px), 100%);
}

/* Top-level columns: honour theme.json content/wide sizes on the front end. */
.editor-styles-wrapper .is-root-container > .wp-block-columns:not(.alignwide):not(.alignfull),
.purestretch-block-page .entry-content > .wp-block-columns:not(.alignwide):not(.alignfull) {
    box-sizing: border-box;
    max-width: min(var(--wp--style--global--content-size, 720px), 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wp--style--root--padding-left, 1.5rem);
    padding-right: var(--wp--style--root--padding-right, 1.5rem);
    width: 100%;
}

.editor-styles-wrapper .is-root-container > .wp-block-columns.alignwide:not(.alignfull),
.purestretch-block-page .entry-content > .wp-block-columns.alignwide:not(.alignfull) {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wp--style--root--padding-left, 1.5rem);
    padding-right: var(--wp--style--root--padding-right, 1.5rem);
    width: 100%;
}

/* alignwide inside a column must stay in the column (editors sometimes add it by mistake). */
.editor-styles-wrapper .wp-block-column .alignwide,
.purestretch-block-page .entry-content .wp-block-column .alignwide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Flex columns: allow long hero text to wrap instead of clipping. */
.editor-styles-wrapper .wp-block-columns .wp-block-column,
.purestretch-block-page .entry-content .wp-block-columns .wp-block-column {
    min-width: 0;
}

.editor-styles-wrapper .alignfull,
.purestretch-block-page .entry-content .alignfull {
    max-width: none;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.purestretch-block-page .entry-content h1,
.purestretch-block-page .entry-content h2,
.purestretch-block-page .entry-content h3,
.purestretch-block-page .entry-content h4 {
    line-height: 1.15;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.purestretch-block-page .entry-content h1,
.purestretch-block-page .entry-content h2,
.purestretch-block-page .entry-content h3,
.purestretch-block-page .entry-content h4 {
    color: var(--wp--preset--color--heading-blue, #183362);
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
}

.editor-styles-wrapper h1,
.purestretch-block-page .entry-content h1 {
    line-height: 1.143;
}

.editor-styles-wrapper h2,
.purestretch-block-page .entry-content h2 {
    font-size: var(--wp--preset--font-size--section, 1.8125rem);
    letter-spacing: 0;
    line-height: 2.5rem;
    text-transform: uppercase;
}

.editor-styles-wrapper h1:not([class*="font-size"]),
.purestretch-block-page .entry-content h1:not([class*="font-size"]) {
    font-size: var(--wp--preset--font-size--banner-title, 2.1875rem);
}

.editor-styles-wrapper h2:not([class*="font-size"]),
.purestretch-block-page .entry-content h2:not([class*="font-size"]) {
    font-size: var(--wp--preset--font-size--section, 1.8125rem);
}

.editor-styles-wrapper h3:not([class*="font-size"]),
.purestretch-block-page .entry-content h3:not([class*="font-size"]) {
    font-size: var(--wp--preset--font-size--large, 1.25rem);
}

.editor-styles-wrapper .has-banner-title-font-size,
.purestretch-block-page .entry-content .has-banner-title-font-size {
    line-height: 2.5rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .editor-styles-wrapper .has-banner-title-font-size,
    .purestretch-block-page .entry-content .has-banner-title-font-size,
    .editor-styles-wrapper h1:not([class*="font-size"]),
    .purestretch-block-page .entry-content h1:not([class*="font-size"]),
    .editor-styles-wrapper .course-hero__card--yellow .wp-block-heading,
    .purestretch-block-page .entry-content .course-hero__card--yellow .wp-block-heading {
        font-size: 1.625rem;
        line-height: 2rem;
    }

    .editor-styles-wrapper h2:not([class*="font-size"]),
    .purestretch-block-page .entry-content h2:not([class*="font-size"]) {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .editor-styles-wrapper h3:not([class*="font-size"]),
    .purestretch-block-page .entry-content h3:not([class*="font-size"]) {
        font-size: 1.125rem;
        line-height: 1.35;
    }
}

/* Course price — design 2.4: PRICE £125.00 — comp 29px / 40px leading. */
.editor-styles-wrapper .course-price,
.purestretch-block-page .entry-content .course-price {
    color: var(--wp--preset--color--heading-blue, #183362) !important;
    font-family: var(--wp--preset--font-family--obviously, obviously, jaf-domus, sans-serif);
    font-size: 1.8125rem !important; /* 29px */
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 2.5rem; /* 40px */
    margin: 0;
    text-transform: uppercase;
}

.editor-styles-wrapper .course-price strong,
.purestretch-block-page .entry-content .course-price strong {
    font-weight: 600;
}

.editor-styles-wrapper .course-price .course-price__amount,
.purestretch-block-page .entry-content .course-price .course-price__amount {
    display: inline;
    font-size: 1em;
    font-weight: 600;
    line-height: inherit;
}

.editor-styles-wrapper .course-price .course-price__currency,
.purestretch-block-page .entry-content .course-price .course-price__currency {
    font-size: 0.5em;
    font-weight: 600;
    line-height: 1;
    vertical-align: baseline;
}

@media (max-width: 767px) {
    .editor-styles-wrapper .course-price,
    .purestretch-block-page .entry-content .course-price {
        font-size: 1.5rem !important; /* 24px */
        line-height: 2rem; /* 32px */
    }
}

/* Default block button — pill CTA (design 2.4 sign up). */
.editor-styles-wrapper .wp-block-button:not(.is-style-purestretch-primary) .wp-block-button__link,
.purestretch-block-page .entry-content .wp-block-button:not(.is-style-purestretch-primary) .wp-block-button__link {
    background-color: var(--wp--preset--color--button-blue, #0053c7) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #fff !important;
    display: inline-block;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    height: auto;
    letter-spacing: 0;
    line-height: 2.5rem;
    max-width: 100%;
    min-height: 2.5rem;
    padding: 0 2.25rem;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    width: auto;
}

.editor-styles-wrapper .wp-block-button:not(.is-style-purestretch-primary) .wp-block-button__link:hover,
.purestretch-block-page .entry-content .wp-block-button:not(.is-style-purestretch-primary) .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--brand-navy, #105ba9) !important;
    color: #fff !important;
}

/* Legacy .btn-primary — yellow sprite CTA; background stretches with longer labels. */
.editor-styles-wrapper .wp-block-button.is-style-purestretch-primary .wp-block-button__link,
.purestretch-block-page .entry-content .wp-block-button.is-style-purestretch-primary .wp-block-button__link {
    background-color: transparent;
    background-image: url(../images/icon-button.png), url(../images/bg-button.png);
    background-position: right 25px center, left top;
    background-repeat: no-repeat;
    background-size: auto, 100% 100%;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    color: #0559ab;
    display: inline-block;
    font-family: jaf-domus, effra, sans-serif;
    font-size: 1.40625rem;
    font-weight: 500;
    height: auto;
    line-height: 1.2;
    min-height: 63px;
    min-width: 224px;
    max-width: 100%;
    padding: 0.65rem 3.5rem 0.65rem 1.25rem;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    width: auto;
}

.editor-styles-wrapper .wp-block-button.is-style-purestretch-primary .wp-block-button__link:hover,
.purestretch-block-page .entry-content .wp-block-button.is-style-purestretch-primary .wp-block-button__link:hover {
    background-color: transparent;
    background-image: url(../images/icon-button.png), url(../images/bg-button.png);
    background-position: right 20px center, left top;
    background-size: auto, 100% 100%;
    color: #0559ab;
}

.editor-styles-wrapper a,
.purestretch-block-page .entry-content a {
    color: #105ba9;
}

.purestretch-block-page .purestretch-block-page-section {
    padding-top: 0;
    padding-bottom: 0; /* legal footer follows main — no trailing section gap */
}

body.purestretch-block-page section.page-section.purestretch-block-page-section {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.purestretch-block-page .entry-content > .wp-block-columns.alignwide,
.purestretch-block-page .entry-content > .wp-block-group.alignwide {
    margin-left: auto;
    margin-right: auto;
}

/* Learn / includes band — full-width page-band bg, content stays wide (1140px). */
.editor-styles-wrapper .course-features-band,
.purestretch-block-page .course-features-band {
    padding: 2.5rem 0;
    position: relative;
}

.editor-styles-wrapper .course-features-band::before,
.purestretch-block-page .course-features-band::before {
    background: var(--wp--preset--color--page-band, #f1fbff);
    content: "";
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
}

.editor-styles-wrapper .course-features-band > .wp-block-columns,
.purestretch-block-page .course-features-band > .wp-block-columns {
    margin-left: auto;
    margin-right: auto;
    max-width: min(var(--wp--style--global--wide-size, 1140px), 100%);
    padding-left: var(--wp--style--root--padding-left, 1.5rem);
    padding-right: var(--wp--style--root--padding-right, 1.5rem);
}

/* Feature icons — 4 columns, icon + heading + badge rule + tagline.
   Add class feature-icons-band to the Columns block (or a wrapping Group). */
.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band),
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) {
    /* Light own padding — entry-content block-gap already spaces sections. */
    padding: 0.5rem 0;
}

.editor-styles-wrapper .feature-icons-band > .wp-block-columns,
.purestretch-block-page .feature-icons-band > .wp-block-columns,
.editor-styles-wrapper .wp-block-columns.feature-icons-band,
.purestretch-block-page .wp-block-columns.feature-icons-band {
    gap: 2rem;
    margin-inline: auto;
    max-width: min(var(--wp--style--global--wide-size, 1140px), 100%);
    padding-inline: var(--wp--style--root--padding-left, 1.5rem);
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column {
    --wp--style--block-gap: 0;
    text-align: center;
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column > * + *,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column > * + * {
    margin-block-start: 0;
    margin-top: 0;
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image {
    margin-inline: auto;
    max-width: 12rem;
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image img,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image img {
    display: block;
    height: auto;
    margin-inline: auto;
    max-height: 8.5rem;
    object-fit: contain;
    width: auto;
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-heading,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-heading {
    font-size: clamp(0.8125rem, 1.35vw, 1.125rem);
    line-height: 1.15;
    margin: 0.75rem 0 0;
    margin-bottom: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-separator.is-style-badge-rule,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-separator.is-style-badge-rule {
    border: none;
    height: 3px !important;
    margin: 0.25rem auto !important;
    max-width: none;
    opacity: 1;
    width: 2.5rem; /* 40px */
}

.editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column > .wp-block-paragraph,
.purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column > .wp-block-paragraph {
    margin: 0.25rem 0 0;
}

@media (max-width: 781px) {
    .editor-styles-wrapper .feature-icons-band > .wp-block-columns,
    .purestretch-block-page .feature-icons-band > .wp-block-columns,
    .editor-styles-wrapper .wp-block-columns.feature-icons-band,
    .purestretch-block-page .wp-block-columns.feature-icons-band {
        display: grid !important;
        gap: 1.5rem 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column,
    .purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-column {
        flex-basis: auto !important;
        width: auto !important;
    }

    .editor-styles-wrapper :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image img,
    .purestretch-block-page :is(.feature-icons-band, .wp-block-columns.feature-icons-band) .wp-block-image img {
        max-height: 7.5rem;
    }
}

@media (max-width: 480px) {
    .editor-styles-wrapper .feature-icons-band > .wp-block-columns,
    .purestretch-block-page .feature-icons-band > .wp-block-columns,
    .editor-styles-wrapper .wp-block-columns.feature-icons-band,
    .purestretch-block-page .wp-block-columns.feature-icons-band {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.purestretch-block-page .entry-content .wp-block-group.has-light-blue-background-color:not(.course-price-band) {
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.purestretch-block-page .entry-content .wp-block-quote {
    border-left: 4px solid #52c3ef;
    padding-left: 1.25rem;
}

/* List — brand yellow circular bullets (design 2.4 / legacy bullet-point). */
.editor-styles-wrapper ul.wp-block-list,
.editor-styles-wrapper .wp-block-list,
.purestretch-block-page .entry-content ul.wp-block-list,
.purestretch-block-page .entry-content .wp-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-styles-wrapper ul.wp-block-list li,
.editor-styles-wrapper .wp-block-list li,
.purestretch-block-page .entry-content ul.wp-block-list li,
.purestretch-block-page .entry-content .wp-block-list li {
    font-family: var(--wp--preset--font-family--quicksand, "Quicksand", sans-serif);
    font-size: 0.9375rem;
    line-height: 2rem;
    list-style: none;
    margin: 0;
    padding-left: 1.25rem;
    position: relative;
}

.editor-styles-wrapper ul.wp-block-list > li + li,
.editor-styles-wrapper .wp-block-list > li + li,
.purestretch-block-page .entry-content ul.wp-block-list > li + li,
.purestretch-block-page .entry-content .wp-block-list > li + li {
    margin-top: 0.625rem;
}

.editor-styles-wrapper ul.wp-block-list li::before,
.editor-styles-wrapper .wp-block-list li::before,
.purestretch-block-page .entry-content ul.wp-block-list li::before,
.purestretch-block-page .entry-content .wp-block-list li::before {
    background-color: var(--wp--preset--color--brand-yellow, #f6e34c);
    border-radius: 50%;
    content: "";
    display: block;
    height: 0.5rem;
    left: 0;
    position: absolute;
    top: 0.7em;
    width: 0.5rem;
}

/* Section heading → list gap (design 2.4). */
.editor-styles-wrapper .wp-block-heading + ul.wp-block-list,
.editor-styles-wrapper .wp-block-heading + .wp-block-list,
.purestretch-block-page .entry-content .wp-block-heading + ul.wp-block-list,
.purestretch-block-page .entry-content .wp-block-heading + .wp-block-list {
    margin-top: 1.25rem;
}

.editor-styles-wrapper h2.wp-block-heading:has(+ ul.wp-block-list),
.editor-styles-wrapper h2.wp-block-heading:has(+ .wp-block-list),
.purestretch-block-page .entry-content h2.wp-block-heading:has(+ ul.wp-block-list),
.purestretch-block-page .entry-content h2.wp-block-heading:has(+ .wp-block-list) {
    margin-bottom: 0;
}

/* Block landing canvas — clean shell (base-block.php), no legacy Sage wrappers. */
body.purestretch-block-page {
    background: #fff;
    margin: 0;
}

body.purestretch-block-page .site-wrap--block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.purestretch-block-page .site-main--block {
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Stay informed is the page footer band — sit flush above navy legal block. */
.purestretch-block-page .entry-content > .stay-informed-band:last-child {
    margin-block-end: 0;
    margin-bottom: 0;
}

body.purestretch-block-page .entry-content > .wp-block:first-child {
    margin-top: 0;
}

body.purestretch-block-page .entry-content > .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* -------------------------------------------------------------------------
   Block page header (templates/header-block.php) — comp ref: design 2.4 artboard
   Fonts: Obviously for display text (fallbacks retained for resilience).
   ------------------------------------------------------------------------- */

.ps-site-header {
    --ps-header-height: 5rem;
    background: #fff;
    /* Hairline + soft lift so sticky white bar stays distinct over page content. */
    border-bottom: 1px solid rgba(24, 51, 98, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(24, 51, 98, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (min-width: 783px) {
    body.admin-bar .ps-site-header {
        top: 32px;
    }
}

@media (max-width: 782px) {
    /*
     * Logged-in mobile / device emulation: WP reserves 46px for #wpadminbar
     * (html margin + sticky offset) but the bar often isn't visible in the
     * viewport — content then sits in a dead gap above the sticky header.
     * Hide the bar on small front-end viewports and drop the reserved space.
     */
    body.admin-bar.purestretch-block-page #wpadminbar {
        display: none !important;
    }

    html:has(body.admin-bar.purestretch-block-page) {
        margin-top: 0 !important;
    }

    body.admin-bar.purestretch-block-page .ps-site-header {
        top: 0;
    }
}

.ps-site-header__inner {
    align-items: center;
    box-sizing: border-box;
    column-gap: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    margin: 0 auto;
    max-width: 1140px;
    min-height: var(--ps-header-height);
    padding: 1.125rem 1.5rem;
}

.ps-site-header__brand {
    grid-column: 1;
    line-height: 0;
}

.ps-site-header__brand img {
    display: block;
    height: 2.625rem; /* comp 13.751mm @ ~1140px artboard scale */
    max-width: 13.625rem; /* comp 70.765mm */
    width: auto;
}

.ps-site-header__toggle {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    box-sizing: border-box;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    grid-column: 2;
    height: 2.25rem;
    justify-content: center;
    justify-self: end;
    /* Horizontal pad so focus ring isn’t flush with the bars. */
    padding: 0.25rem 0.375rem;
    width: auto;
}

.ps-site-header__toggle-bar {
    background: #414245;
    border-radius: 1px;
    display: block;
    height: 2px;
    width: 1.5rem;
}

/* Explicit focus — plugins often zero out button outlines on live.
 * box-shadow follows border-radius (outline alone looks square in Chrome). */
.ps-site-header__toggle:focus,
.ps-site-header__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--wp--preset--color--button-blue, #0053c7);
}

.ps-site-header__nav {
    align-self: stretch;
    display: flex;
    grid-column: 2;
    justify-self: center;
}

.ps-site-header__menu {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 0.9375rem; /* 15px */
    font-weight: 400;
    gap: 0 0.9375rem; /* 15px between nav items — comp */
    height: 100%;
    justify-content: center;
    letter-spacing: 0;
    line-height: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.ps-site-header__menu > li {
    display: flex;
    align-items: center;
    position: relative;
}

.ps-site-header__menu a {
    color: #031a41;
    display: inline-block;
    line-height: inherit;
    text-decoration: none;
}

.ps-site-header__menu a:hover,
.ps-site-header__menu .current-menu-item > a,
.ps-site-header__menu .current-menu-ancestor > a {
    color: #105ba9;
}

.ps-site-header__menu .sub-menu {
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 8px 24px rgba(24, 51, 98, 0.12);
    display: none;
    left: 0;
    line-height: 1.35; /* don’t inherit the 2.5rem top-level nav line-height */
    list-style: none;
    margin: 0;
    min-width: 12rem;
    padding: 0.375rem 0;
    position: absolute;
    /* Flush to parent — any visual gap must stay hoverable (see ::before). */
    top: 100%;
    z-index: 20;
}

/* Invisible bridge so a slow mouse path into the panel doesn’t drop :hover. */
.ps-site-header__menu .sub-menu::before {
    content: "";
    height: 0.75rem;
    left: 0;
    position: absolute;
    right: 0;
    top: -0.75rem;
}

.ps-site-header__menu .sub-menu a {
    display: block;
    font-size: 0.8125rem; /* 13px — child items slightly smaller than 15px parent */
    letter-spacing: 0.04em;
    line-height: 1.35;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ps-site-header__menu li:hover > .sub-menu,
.ps-site-header__menu li:focus-within > .sub-menu {
    display: block;
}

.ps-site-header__menu-placeholder {
    font-size: 0.875rem;
    margin: 0;
    text-transform: none;
}

.ps-site-header__menu-placeholder a {
    color: #105ba9;
}

.ps-site-header__actions {
    grid-column: 3;
    justify-self: end;
}

/* Injected Login/Dashboard — desktop uses the CTA pill; mobile drawer shows this. */
.ps-site-header__account-item {
    display: none !important;
}

.ps-site-header__cta {
    align-items: center;
    background: var(--wp--preset--color--button-blue, #0053c7);
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff !important;
    display: inline-flex;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    height: auto;
    justify-content: center;
    letter-spacing: 0;
    line-height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 2.25rem;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.ps-site-header__cta:hover,
.ps-site-header__cta:focus,
.ps-site-header__cta:active {
    background: var(--wp--preset--color--brand-navy, #105ba9);
    color: #fff !important;
    /* Beat Bootstrap a:hover { text-decoration: underline } on legacy pages. */
    text-decoration: none;
}

@media (max-width: 991px) {
    /*
     * Mobile drawer: abspos against the sticky header (full viewport width).
     * Keep __inner static so the nav is NOT positioned inside the hamburger’s
     * narrow grid track (that was shoving the panel off the right edge).
     */
    .ps-site-header {
        --ps-header-height: 3.5rem; /* tighter sticky bar on phone/tablet */
        position: sticky; /* containing block for the open nav */
    }

    .ps-site-header__inner {
        align-items: center;
        grid-template-columns: 1fr auto;
        min-height: var(--ps-header-height);
        padding-block: 0.625rem;
        padding-inline: 1.25rem;
        position: static;
    }

    .ps-site-header__brand {
        align-self: center;
        display: flex;
        align-items: center;
    }

    .ps-site-header__brand img {
        height: 2rem;
        max-width: 10.5rem;
    }

    .ps-site-header__toggle {
        align-items: stretch;
        align-self: center;
        display: flex; /* not inline-flex — avoids baseline shift vs the logo */
        gap: 5px;
        grid-column: 2;
        height: 2rem; /* match logo image height */
        justify-content: center;
        padding: 0.2rem 0.35rem;
        /* Wordmark sits slightly high in the SVG box; nudge bars to match optically. */
        transform: translateY(-0.0625rem);
        width: auto;
    }

    .ps-site-header__toggle-bar {
        width: 1.375rem;
    }

    /* Login/Dashboard lives in the nav menu on mobile — not a separate button. */
    .ps-site-header__actions {
        display: none;
    }

    .ps-site-header__account-item {
        display: flex !important;
    }

    .ps-site-header__nav {
        background: #fff;
        border-top: 1px solid rgba(24, 51, 98, 0.08);
        box-shadow: 0 8px 24px rgba(24, 51, 98, 0.08);
        box-sizing: border-box;
        display: none;
        grid-column: 1 / -1;
        inset: 100% 0 auto 0; /* top / right / bottom / left — full header width */
        justify-self: stretch;
        padding: 0.5rem 1.25rem 0.875rem;
        position: absolute;
        width: auto; /* with left+right; avoids content-box 100% + padding overflow */
        z-index: 1001;
    }

    .ps-site-header__nav.is-open {
        display: block;
    }

    .ps-site-header__menu {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .ps-site-header__menu > li {
        align-items: stretch;
        border-bottom: 2px solid #d9f2fc;
        flex-direction: column;
        width: 100%;
    }

    .ps-site-header__menu > li:last-child {
        border-bottom: 0;
    }

    .ps-site-header__menu a {
        display: block;
        padding: 0.5rem 0;
    }

    .ps-site-header__menu .sub-menu {
        border-radius: 0;
        box-shadow: none;
        display: block;
        padding: 0 0 0.375rem 1rem;
        position: static;
        width: 100%;
    }

    .ps-site-header__menu .sub-menu::before {
        content: none;
    }

    .ps-site-header__menu .sub-menu a {
        padding: 0.375rem 0;
    }
}

@media (max-width: 767px) {
    .ps-site-header__brand img {
        height: 1.875rem;
        max-width: 9.75rem;
    }
}

/* -------------------------------------------------------------------------
   Block page legal footer (templates/footer-block.php) — comp: dark navy band
   ------------------------------------------------------------------------- */

.ps-site-footer {
    background: var(--wp--preset--color--footer-blue, #253667);
    color: #fff;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ps-site-footer__inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1140px;
    /* Match Bootstrap .container / shell chrome padding */
    padding: 2.5rem 15px 3rem;
    width: 100%;
}

.ps-site-footer__legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0 0 1.25rem;
}

.ps-site-footer__legal-nav a {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.ps-site-footer__legal-nav a:hover {
    color: #d9f2fc;
}

.ps-site-footer__company {
    font-family: var(--wp--preset--font-family--quicksand, "Quicksand", sans-serif);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.5rem;
    margin: 0;
    max-width: 42rem;
}

.ps-site-footer__company p {
    margin: 0;
}

@media (max-width: 781px) {
    .ps-site-footer__inner {
        padding: 2rem 1.25rem 2.5rem;
    }

    .ps-site-footer__legal-nav {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .ps-site-footer__legal-nav a {
        font-size: 0.6875rem; /* 11px */
        line-height: 0.875rem;
    }

    .ps-site-footer__company {
        font-size: 0.8125rem; /* 13px */
        line-height: 1.25rem;
    }
}

/* Wide/full hero images: keep editor canvas in sync with saved aspect ratio. */
.editor-styles-wrapper .wp-block-image.alignwide img[style*="aspect-ratio"],
.editor-styles-wrapper .wp-block-image.alignfull img[style*="aspect-ratio"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------------------
   Course hero banner (RB landing) — Group + Columns overlay on photo.
   Classes: course-hero, course-hero__columns, course-hero__col--left/right,
   course-hero__card--yellow/--blue, course-hero__badge
   ------------------------------------------------------------------------- */

.editor-styles-wrapper .course-hero,
.purestretch-block-page .entry-content .course-hero {
    /* Comp ~435px; grow on wide viewports so the photo doesn’t feel cropped short. */
    --course-hero-height: clamp(27.1875rem, 28vw, 34rem);
    --course-hero-inline-pad: clamp(1rem, 3vw, 2.5rem);
    --course-hero-slope: 14%;
    /*
     * Stretch-band badge — design cap ~174×174px, with ≥15px clearance
     * above the banner bottom edge.
     */
    --course-hero-badge-size: 10.875rem; /* 174px */
    --course-hero-badge-bottom-pad: 0.9375rem; /* 15px */
    background-position: center right !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-sizing: border-box;
    height: var(--course-hero-height);
    max-height: var(--course-hero-height);
    min-height: 0;
    overflow: hidden;
    /* Lock top inset (~30px) even if the Group has block padding set. */
    padding: 1.875rem var(--course-hero-inline-pad) 0 !important;
    position: relative;
}

.editor-styles-wrapper .course-hero .course-hero__columns,
.purestretch-block-page .entry-content .course-hero .course-hero__columns {
    gap: 1rem;
    height: 100%;
    margin-bottom: 0;
    min-height: 0;
}

.editor-styles-wrapper .course-hero__col--left,
.purestretch-block-page .entry-content .course-hero__col--left {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Comp: badge sits almost flush under the yellow card. */
    gap: 0.5rem;
    height: 100%;
    justify-content: flex-start;
    padding-bottom: var(--course-hero-badge-bottom-pad);
}

.editor-styles-wrapper .course-hero__col--right,
.purestretch-block-page .entry-content .course-hero__col--right {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.editor-styles-wrapper .course-hero__card--yellow,
.purestretch-block-page .entry-content .course-hero__card--yellow {
    /* Comp: left vertical; top horizontal; right ↘; bottom ↗ (blue box is the mirror). */
    align-self: flex-start;
    clip-path: polygon(
        0 0,
        calc(100% - var(--course-hero-slope)) 0,
        100% calc(100% - var(--course-hero-slope)),
        0 100%
    );
    margin: 0;
    max-width: 36rem;
    padding: 1.5rem 2.5rem 1.5rem 2rem !important;
    width: 100%;
}

.editor-styles-wrapper .course-hero__card--yellow .wp-block-heading,
.purestretch-block-page .entry-content .course-hero__card--yellow .wp-block-heading {
    color: #031a41;
    font-size: clamp(1.625rem, 1.2vw + 1.1rem, 2.1875rem) !important;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem;
    margin-top: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    text-transform: uppercase;
}

.editor-styles-wrapper .course-hero__card--yellow .wp-block-paragraph,
.purestretch-block-page .entry-content .course-hero__card--yellow .wp-block-paragraph {
    margin-bottom: 0;
    margin-top: 0;
}

.editor-styles-wrapper .course-hero__card--blue,
.purestretch-block-page .entry-content .course-hero__card--blue {
    /* Comp: slanted left + slanted bottom (right edge vertical). */
    align-self: flex-end;
    box-sizing: border-box;
    clip-path: polygon(
        var(--course-hero-slope) 0,
        100% 0,
        100% 100%,
        0 calc(100% - var(--course-hero-slope))
    );
    margin: 0;
    margin-left: auto;
    max-width: 28rem;
    padding: 1.25rem 2rem 2.25rem 4rem !important;
    width: 100%;
}

/* Desktop: pin blue to bottom-right of the full-bleed hero (Patrick-style flush). */
@media (min-width: 782px) {
    .editor-styles-wrapper .course-hero__card--blue,
    .purestretch-block-page .entry-content .course-hero__card--blue {
        bottom: 0;
        margin-left: 0;
        max-width: 28rem;
        position: absolute;
        right: 0;
        width: min(28rem, 50%);
        z-index: 2;
    }
}

.editor-styles-wrapper .course-hero__card--blue .wp-block-paragraph,
.purestretch-block-page .entry-content .course-hero__card--blue .wp-block-paragraph {
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

.editor-styles-wrapper .course-hero__badge,
.editor-styles-wrapper .course-hero__col--left > .wp-block-image:not(.course-hero__photo),
.purestretch-block-page .entry-content .course-hero__badge,
.purestretch-block-page .entry-content .course-hero__col--left > .wp-block-image:not(.course-hero__photo) {
    flex: 0 0 auto;
    margin: 0;
    max-width: var(--course-hero-badge-size);
    width: var(--course-hero-badge-size);
}

.editor-styles-wrapper .course-hero__badge img,
.editor-styles-wrapper .course-hero__col--left > .wp-block-image:not(.course-hero__photo) img,
.purestretch-block-page .entry-content .course-hero__badge img,
.purestretch-block-page .entry-content .course-hero__col--left > .wp-block-image:not(.course-hero__photo) img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

/* Hero photo block — hidden on desktop (group background used instead). */
.editor-styles-wrapper .course-hero__photo,
.purestretch-block-page .entry-content .course-hero__photo,
.editor-styles-wrapper .course-hero__mobile-photo,
.purestretch-block-page .entry-content .course-hero__mobile-photo {
    display: none;
}

@media (max-width: 781px) {
    .editor-styles-wrapper .course-hero,
    .purestretch-block-page .entry-content .course-hero {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible;
        /* Must beat desktop `padding: … !important` or mobile keeps top/side inset. */
        padding: 0 !important;
        position: relative;
    }

    /* Hide full-hero bg on mobile — photo lives in one 16rem strip only. */
    .editor-styles-wrapper .course-hero--has-mobile-bg,
    .purestretch-block-page .entry-content .course-hero--has-mobile-bg {
        background-image: none !important;
    }

    .editor-styles-wrapper .course-hero .course-hero__columns,
    .editor-styles-wrapper .course-hero .course-hero__columns.alignwide,
    .purestretch-block-page .entry-content .course-hero .course-hero__columns,
    .purestretch-block-page .entry-content .course-hero .course-hero__columns.alignwide {
        background: transparent;
        display: grid !important;
        flex-wrap: nowrap !important;
        gap: 0;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto;
        margin-inline: 0 !important;
        max-width: none !important;
        padding-inline: 0 !important;
        position: relative;
        width: 100% !important;
        z-index: 1;
    }

    .editor-styles-wrapper .course-hero .course-hero__columns > .wp-block-column,
    .editor-styles-wrapper .course-hero__col--left,
    .editor-styles-wrapper .course-hero__col--right,
    .purestretch-block-page .entry-content .course-hero .course-hero__columns > .wp-block-column,
    .purestretch-block-page .entry-content .course-hero__col--left,
    .purestretch-block-page .entry-content .course-hero__col--right {
        display: contents !important;
        flex-basis: auto !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        width: auto !important;
    }

    .editor-styles-wrapper .course-hero__mobile-photo,
    .purestretch-block-page .entry-content .course-hero__mobile-photo {
        background-position: 55% 18%;
        background-repeat: no-repeat;
        background-size: cover;
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        height: 16rem;
        min-height: 16rem;
        width: 100%;
        z-index: 0;
    }

    .editor-styles-wrapper .course-hero--has-mobile-bg .course-hero__columns::after,
    .purestretch-block-page .entry-content .course-hero--has-mobile-bg .course-hero__columns::after {
        content: none;
        display: none;
    }

    .editor-styles-wrapper .course-hero .course-hero__photo,
    .purestretch-block-page .entry-content .course-hero .course-hero__photo {
        position: relative;
        z-index: 2;
    }

    .editor-styles-wrapper .course-hero:has(.course-hero__photo),
    .purestretch-block-page .entry-content .course-hero:has(.course-hero__photo) {
        background-image: none !important;
    }

    .editor-styles-wrapper .course-hero__photo,
    .purestretch-block-page .entry-content .course-hero__photo {
        display: block;
        grid-row: 2;
        margin: 0;
        width: 100%;
    }

    .editor-styles-wrapper .course-hero__photo img,
    .purestretch-block-page .entry-content .course-hero__photo img {
        aspect-ratio: 4 / 3;
        display: block;
        height: auto;
        object-fit: cover;
        object-position: 55% 12%;
        width: 100%;
    }

    .editor-styles-wrapper .course-hero__card--yellow,
    .purestretch-block-page .entry-content .course-hero__card--yellow {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }

    .editor-styles-wrapper .course-hero__card--blue,
    .purestretch-block-page .entry-content .course-hero__card--blue {
        bottom: auto;
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 0;
        max-width: none;
        position: static;
        right: auto;
        width: 100%;
    }

    .editor-styles-wrapper .course-hero__badge,
    .editor-styles-wrapper .course-hero__col--left > .wp-block-image:not(.course-hero__photo),
    .purestretch-block-page .entry-content .course-hero__badge,
    .purestretch-block-page .entry-content .course-hero__col--left > .wp-block-image:not(.course-hero__photo) {
        align-self: start;
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin: 0.75rem 0 0 1rem;
        max-width: 10.875rem;
        position: relative;
        width: 10.875rem;
        z-index: 2;
    }

    .editor-styles-wrapper .course-hero__badge img,
    .editor-styles-wrapper .course-hero__col--left > .wp-block-image:not(.course-hero__photo) img,
    .purestretch-block-page .entry-content .course-hero__badge img,
    .purestretch-block-page .entry-content .course-hero__col--left > .wp-block-image:not(.course-hero__photo) img {
        max-width: 100%;
    }

    .editor-styles-wrapper .course-hero__card--yellow,
    .editor-styles-wrapper .course-hero__card--blue,
    .purestretch-block-page .entry-content .course-hero__card--yellow,
    .purestretch-block-page .entry-content .course-hero__card--blue {
        clip-path: none;
        max-width: none;
        padding: 1.5rem 2rem !important;
    }
}

/* -------------------------------------------------------------------------
   Course price band — Patrick photo + light-blue panel (design 2.4).
   Masked photo: add class masked-photo to any Image block (swap src in editor).
   Legacy: group background-image still works; composite class for full PNG export.
   ------------------------------------------------------------------------- */

/* Reusable clip — traced from Illustrator clipping path (tune via CSS vars). */
.editor-styles-wrapper .masked-photo img,
.purestretch-block-page .entry-content .masked-photo img {
    --masked-photo-top: 16%;
    --masked-photo-left: 75%;
    --masked-photo-bottom: 50%;
    clip-path: polygon(
        var(--masked-photo-top) 0,
        100% 0,
        100% 100%,
        var(--masked-photo-bottom) 100%,
        0 var(--masked-photo-left)
    );
}

.editor-styles-wrapper .course-price-band,
.purestretch-block-page .entry-content .course-price-band {
    background-color: var(--wp--preset--color--light-blue, #d9f2fc);
    margin-block: 2rem;
    min-height: 28rem;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
}

/* Legacy: Patrick as group background (until page is migrated to Image block). */
.editor-styles-wrapper .course-price-band:not(.course-price-band--masked-photo),
.purestretch-block-page .entry-content .course-price-band:not(.course-price-band--masked-photo) {
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-size: auto 100% !important;
}

.editor-styles-wrapper .course-price-band:not(.course-price-band--masked-photo):not(.course-price-band--composite)[style*="background-image"],
.purestretch-block-page .entry-content .course-price-band:not(.course-price-band--masked-photo):not(.course-price-band--composite)[style*="background-image"] {
    background-position: right center !important;
    background-size: auto 100% !important;
}

/* Legacy wave panel — only when not using masked photo column. */
.editor-styles-wrapper .course-price-band:not(.course-price-band--masked-photo):not(.course-price-band--composite)::before,
.purestretch-block-page .entry-content .course-price-band:not(.course-price-band--masked-photo):not(.course-price-band--composite)::before {
    background: url(../images/course-price-band-wave.svg) no-repeat right center;
    background-size: 100% 100%;
    content: "";
    height: 100%;
    left: 0;
    max-width: 34rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: min(42%, 34rem);
    z-index: 1;
}

.editor-styles-wrapper .course-price-band .course-price-band__columns,
.purestretch-block-page .entry-content .course-price-band .course-price-band__columns {
    margin-bottom: 0;
    min-height: 28rem;
    position: relative;
    z-index: 2;
}

.editor-styles-wrapper .course-price-band__col--content,
.purestretch-block-page .entry-content .course-price-band__col--content {
    background-color: transparent;
    clip-path: none;
    display: flex;
    flex-basis: 48% !important;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
    max-width: 36rem;
    padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem clamp(1.25rem, 4vw, 3rem);
    position: relative;
    width: 48%;
    z-index: 2;
}

/* Desktop split: photo owns the right ~58vw (flush right); content stays left of the diagonal. */
@media (min-width: 901px) {
    .editor-styles-wrapper .course-price-band--masked-photo .course-price-band__columns,
    .purestretch-block-page .entry-content .course-price-band--masked-photo .course-price-band__columns,
    .editor-styles-wrapper .course-price-band:has(.course-price-band__photo.masked-photo) .course-price-band__columns,
    .purestretch-block-page .entry-content .course-price-band:has(.course-price-band__photo.masked-photo) .course-price-band__columns {
        position: static;
    }

    .editor-styles-wrapper .course-price-band__col--content,
    .purestretch-block-page .entry-content .course-price-band__col--content {
        max-width: min(36rem, calc(46vw - 2rem));
        width: min(48%, calc(46vw - 2rem));
    }

    .editor-styles-wrapper .course-price-band__col--photo,
    .purestretch-block-page .entry-content .course-price-band__col--photo,
    .editor-styles-wrapper .course-price-band .course-price-band__columns > .wp-block-column:has(.course-price-band__photo),
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns > .wp-block-column:has(.course-price-band__photo) {
        bottom: 0;
        flex-basis: auto !important;
        height: auto;
        left: auto;
        margin: 0;
        max-width: none;
        min-height: 28rem;
        padding: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 58vw;
        z-index: 1;
    }
}

.editor-styles-wrapper .course-price-band--composite::before,
.purestretch-block-page .entry-content .course-price-band--composite::before {
    content: none;
}

.editor-styles-wrapper .course-price-band--composite,
.purestretch-block-page .entry-content .course-price-band--composite {
    background-position: center center !important;
    background-size: cover !important;
}

.editor-styles-wrapper .course-price-band__col--content > .wp-block-group,
.purestretch-block-page .entry-content .course-price-band__col--content > .wp-block-group {
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0;
    width: 100%;
}

.editor-styles-wrapper .course-price-band__col--content .wp-block-buttons,
.purestretch-block-page .entry-content .course-price-band__col--content .wp-block-buttons {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    width: auto;
}

.editor-styles-wrapper .course-price-band__col--content .wp-block-button,
.purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button,
.editor-styles-wrapper .course-price-band__col--content .wp-block-button.has-custom-width,
.purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button.has-custom-width {
    max-width: none;
    width: auto !important;
}

.editor-styles-wrapper .course-price-band__col--content .wp-block-button .wp-block-button__link,
.purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button .wp-block-button__link {
    box-sizing: border-box;
    display: inline-block;
    padding-inline: 1.75rem;
    text-align: center;
    width: auto;
}

.editor-styles-wrapper .course-price-band__col--content .wp-block-image img,
.purestretch-block-page .entry-content .course-price-band__col--content .wp-block-image img {
    height: auto;
    max-height: 8.75rem; /* ~140px — closer to artboard badge scale */
    width: auto;
}

.editor-styles-wrapper .course-price-band__columns > .wp-block-column:last-child:not(.course-price-band__col--photo):not(:has(.course-price-band__photo)),
.purestretch-block-page .entry-content .course-price-band__columns > .wp-block-column:last-child:not(.course-price-band__col--photo):not(:has(.course-price-band__photo)) {
    flex-basis: 60% !important;
    min-height: 28rem;
}

.editor-styles-wrapper .course-price-band__photo,
.purestretch-block-page .entry-content .course-price-band__photo {
    height: 100%;
    margin: 0;
    max-width: none;
    width: 100%;
}

.editor-styles-wrapper .course-price-band__photo img,
.purestretch-block-page .entry-content .course-price-band__photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.editor-styles-wrapper .course-price-band__columns > .wp-block-column:last-child:empty,
.purestretch-block-page .entry-content .course-price-band__columns > .wp-block-column:last-child:empty,
.editor-styles-wrapper .course-price-band__columns > .wp-block-column:last-child > p:empty,
.purestretch-block-page .entry-content .course-price-band__columns > .wp-block-column:last-child > p:empty {
    margin: 0;
    min-height: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .editor-styles-wrapper .masked-photo img,
    .purestretch-block-page .entry-content .masked-photo img {
        clip-path: none;
    }

    .editor-styles-wrapper .course-price-band,
    .purestretch-block-page .entry-content .course-price-band {
        min-height: 0;
        overflow: visible;
    }

    .editor-styles-wrapper .course-price-band:not(.course-price-band--masked-photo)::before,
    .purestretch-block-page .entry-content .course-price-band:not(.course-price-band--masked-photo)::before {
        max-width: none;
        opacity: 0.96;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band .course-price-band__columns,
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns,
    .editor-styles-wrapper .course-price-band .course-price-band__columns.alignwide,
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns.alignwide {
        display: flex !important;
        flex-direction: column;
        margin-inline: 0 !important;
        max-width: none !important;
        min-height: 0;
        padding-inline: 0 !important;
        width: 100% !important;
    }

    .editor-styles-wrapper .course-price-band__col--content,
    .purestretch-block-page .entry-content .course-price-band__col--content,
    .editor-styles-wrapper .course-price-band .course-price-band__columns > .wp-block-column:first-child,
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns > .wp-block-column:first-child {
        align-items: stretch;
        box-sizing: border-box;
        flex-basis: 100% !important;
        max-width: 100%;
        min-width: 0;
        order: 1;
        padding: 1.75rem 1.5rem 1.5rem;
        text-align: left;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--content > .wp-block-group,
    .purestretch-block-page .entry-content .course-price-band__col--content > .wp-block-group {
        flex-wrap: nowrap;
        gap: 0.75rem;
        justify-content: space-between;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--content .wp-block-image,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-image {
        flex: 1 1 0;
        margin: 0;
        max-width: calc(50% - 0.375rem);
    }

    .editor-styles-wrapper .course-price-band__col--content .wp-block-image img,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-image img {
        height: auto;
        max-height: 7rem;
        object-fit: contain;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--content .course-price,
    .purestretch-block-page .entry-content .course-price-band__col--content .course-price {
        margin: 0.25rem 0 0;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--content .wp-block-buttons,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-buttons {
        box-sizing: border-box;
        display: block;
        margin-top: 0.5rem;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--content .wp-block-button,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button,
    .editor-styles-wrapper .course-price-band__col--content .wp-block-button.has-custom-width,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button.has-custom-width {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        width: 100% !important;
    }

    .editor-styles-wrapper .course-price-band__col--content .wp-block-button .wp-block-button__link,
    .purestretch-block-page .entry-content .course-price-band__col--content .wp-block-button .wp-block-button__link {
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        padding-inline: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__col--photo,
    .purestretch-block-page .entry-content .course-price-band__col--photo,
    .editor-styles-wrapper .course-price-band .course-price-band__columns > .wp-block-column:has(.course-price-band__photo),
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns > .wp-block-column:has(.course-price-band__photo),
    .editor-styles-wrapper .course-price-band .course-price-band__columns > .wp-block-column:last-child,
    .purestretch-block-page .entry-content .course-price-band .course-price-band__columns > .wp-block-column:last-child {
        display: block !important;
        flex-basis: 100% !important;
        height: auto;
        left: auto;
        max-width: none;
        min-height: 0;
        order: 2;
        position: static;
        right: auto;
        top: auto;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__photo,
    .purestretch-block-page .entry-content .course-price-band__photo {
        height: auto;
        margin: 0;
        width: 100%;
    }

    .editor-styles-wrapper .course-price-band__photo img,
    .purestretch-block-page .entry-content .course-price-band__photo img {
        display: block;
        height: auto;
        max-height: 20rem;
        object-fit: cover;
        object-position: center top;
        width: 100%;
    }

    /* Only hide an empty trailing column — never the Patrick photo column. */
    .editor-styles-wrapper .course-price-band__columns > .wp-block-column:last-child:not(.course-price-band__col--photo):not(:has(.course-price-band__photo)):empty,
    .purestretch-block-page .entry-content .course-price-band__columns > .wp-block-column:last-child:not(.course-price-band__col--photo):not(:has(.course-price-band__photo)):empty {
        display: none;
    }
}

/* Stay informed — Mailchimp form + social row (design 2.4).
   Structure: full-bleed Group (background) → wide Columns (content).
   Scoped to editor / in-content only — chrome band uses block-shell.css. */
.editor-styles-wrapper .stay-informed-band,
.purestretch-block-page .entry-content .stay-informed-band {
    padding-block: 2.5rem;
    padding-inline: var(--wp--style--root--padding-left, 1.5rem);
}

.editor-styles-wrapper .stay-informed-band .wp-block-columns,
.purestretch-block-page .entry-content .stay-informed-band .wp-block-columns {
    gap: 2rem;
}

.editor-styles-wrapper .stay-informed-band .wp-block-heading,
.purestretch-block-page .entry-content .stay-informed-band .wp-block-heading {
    color: #253667;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.9375rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.editor-styles-wrapper .stay-informed-band p,
.purestretch-block-page .entry-content .stay-informed-band p {
    margin: 0;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form {
    margin: 0;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form-fields,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form-fields {
    margin: 0;
    width: 100%;
}

/* Design 2.4 — fused pill: outer border, flat seam, oval button flush right. */
.editor-styles-wrapper .stay-informed-band .stay-informed-form,
.editor-styles-wrapper .stay-informed-band .form-inline,
.purestretch-block-page .entry-content .stay-informed-band .stay-informed-form,
.purestretch-block-page .entry-content .stay-informed-band .form-inline {
    align-items: stretch;
    background-color: #fff;
    border: 2px solid var(--wp--preset--color--button-blue, #0053c7);
    border-radius: 999px;
    box-sizing: border-box;
    display: flex;
    isolation: isolate;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.editor-styles-wrapper .stay-informed-band .form-group,
.purestretch-block-page .entry-content .stay-informed-band .form-group {
    display: flex;
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="email"],
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="email"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
    color: var(--wp--preset--color--brand-dark, #414245);
    display: block;
    flex: 1 1 auto;
    font-family: var(--wp--preset--font-family--quicksand, "Quicksand", sans-serif);
    font-size: 1rem;
    height: auto;
    line-height: 1.4;
    margin: 0 !important;
    min-height: 3rem;
    min-width: 0;
    outline: none;
    padding: 0.85rem 0.75rem 0.85rem 1.25rem;
    width: 100%;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="email"]::placeholder,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="email"]::placeholder {
    color: #8a8b8e;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="email"]:focus,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="email"]:focus {
    outline: none;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form button[type="submit"],
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form button[type="submit"],
.editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="submit"],
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    align-self: stretch;
    background-color: var(--wp--preset--color--button-blue, #0053c7) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    flex: 0 0 auto;
    font-family: var(--wp--preset--font-family--obviously, obviously, "Quicksand", sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    height: auto;
    letter-spacing: 0;
    line-height: 2.5rem;
    margin: 0 0 0 -1rem !important;
    min-height: 2.5rem;
    padding: 0 1.5rem 0 1.75rem !important;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-form button[type="submit"]:hover,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-form button[type="submit"]:hover {
    background-color: var(--wp--preset--color--brand-navy, #105ba9);
    color: #fff;
}

.editor-styles-wrapper .stay-informed-band .mc4wp-response,
.purestretch-block-page .entry-content .stay-informed-band .mc4wp-response {
    flex: 1 1 100%;
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.editor-styles-wrapper .stay-informed-band .stay-informed-band__social,
.purestretch-block-page .entry-content .stay-informed-band .stay-informed-band__social {
    gap: 0.75rem;
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 991px) {
    /* Tablet: stack so the email pill isn’t squeezed between copy + social. */
    .editor-styles-wrapper .stay-informed-band .wp-block-columns,
    .purestretch-block-page .entry-content .stay-informed-band .wp-block-columns {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .editor-styles-wrapper .stay-informed-band .wp-block-column,
    .purestretch-block-page .entry-content .stay-informed-band .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    /* Keep fused pill as one row — stacking breaks the oval into a tall capsule. */
    .editor-styles-wrapper .stay-informed-band .stay-informed-form,
    .editor-styles-wrapper .stay-informed-band .form-inline,
    .purestretch-block-page .entry-content .stay-informed-band .stay-informed-form,
    .purestretch-block-page .entry-content .stay-informed-band .form-inline {
        flex-wrap: nowrap;
        max-width: 28rem;
    }

    .editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="email"],
    .purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="email"] {
        flex: 1 1 auto;
        font-size: 0.9375rem;
        min-height: 2.75rem;
        padding: 0.7rem 0.5rem 0.7rem 1rem;
    }

    .editor-styles-wrapper .stay-informed-band .mc4wp-form button[type="submit"],
    .purestretch-block-page .entry-content .stay-informed-band .mc4wp-form button[type="submit"],
    .editor-styles-wrapper .stay-informed-band .mc4wp-form input[type="submit"],
    .purestretch-block-page .entry-content .stay-informed-band .mc4wp-form input[type="submit"] {
        border-radius: 999px !important;
        flex: 0 0 auto;
        font-size: 0.8125rem;
        line-height: 2.25rem;
        margin: 0 0 0 -0.75rem !important;
        min-height: 2.25rem;
        padding: 0 1.15rem 0 1.35rem !important;
        width: auto;
    }

    .editor-styles-wrapper .stay-informed-band .stay-informed-band__social,
    .purestretch-block-page .entry-content .stay-informed-band .stay-informed-band__social {
        justify-content: flex-start;
    }
}

@media (max-width: 781px) {
    .editor-styles-wrapper .stay-informed-band .stay-informed-form,
    .editor-styles-wrapper .stay-informed-band .form-inline,
    .purestretch-block-page .entry-content .stay-informed-band .stay-informed-form,
    .purestretch-block-page .entry-content .stay-informed-band .form-inline {
        max-width: none;
    }
}
