/* ============================================================
   Program sales page, design version C ("Quiet menu"), Nov 2026.

   Loaded after pages/programs.css on course_trajectory singles of kind
   "program" only (inc/program-sales.php). It restyles the .sf-pdp page of
   programs.css into version C and adds the new parts: quiet section menu
   (.sd-subnav) and phone jump bar (.sd-jump), intro video (.sd-film, .sd-vc,
   .sd-cinema), timeline (.sd-flow), closing block (.sd-close), enroll window
   (.sd-enroll) and the floating phone / tablet bar (.sf-pdp-bar).

   Colours come from tokens.css only. A navy SURFACE or overlay uses
   --player-dark and text on it --on-navy (both stay the same in dark mode;
   --ink and --white flip there). Alpha shades are color-mix() of a token.
   Mask gradients use black/transparent: they are alpha masks, not colours.
   Behaviour: assets/js/program-sales.js and program-intro-video.js.
   ============================================================ */

/* --- Page ----------------------------------------------------------- */
body,
#sf-main,
.sf-pdp {
    background: var(--page);
}

.sf-pdp-lede {
    margin-bottom: 32px;
}

/* Column split as on the course page: 1200 boxed, price box 340px. */
@media (min-width: 961px) {
    .sf-pdp {
        --pdp-rail: 340px;
        --pdp-gap: 36px;
        --pdp-pad: max(24px, calc((100vw - var(--container-browse)) / 2 + 24px));
        padding-inline: max(24px, calc((100% - var(--container-browse)) / 2 + 24px));
    }
}

@media (max-width: 960px) {
    /* The bottom bar steps aside at the closing block, so no room is kept for it. */
    .sf-pdp {
        padding-bottom: 0;
    }
}

/* The section menu's change into a full-width bar follows the scroll
   position of the take-away card (a named view timeline, see below). */
@supports (animation-timeline: view()) {
    body {
        timeline-scope: --sd-summary;
    }
}

/* One page colour: no tinted bands, no slanted edges. */
.sf-pdp-band::before {
    display: none;
}

.sf-pdp-section {
    padding: 35px 0;
}

.sf-pdp-h2 {
    scroll-margin-top: 150px;
    font-size: clamp(27px, 2.5vw, 33px);
}

.sf-icon.sf-icon--solid {
    fill: currentColor;
    stroke: none;
}

/* --- Hero ------------------------------------------------------------ */
.sf-pdp .sf-pdp__hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 0;
    padding: 36px 0 48px;
    color: var(--on-navy);
}

/* The photo carries the hero; the band of programs.css is not drawn. */
.sf-pdp .sf-pdp__hero::before {
    display: block;
    background: none;
    clip-path: none;
    z-index: -1;
}

/* No hero photo and no cover image: a plain navy band. */
.sf-pdp .sf-pdp__hero.sf-pdp__hero--plain::before {
    background: var(--player-dark);
}

.sf-pdp__hero .sf-pdp-stage {
    display: contents;
}

.sf-pdp__hero .sf-pdp-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 0;
    order: 0;
    grid-column: 1;
    grid-row: auto;
    width: auto;
    max-width: none;
    height: calc(100% + 110px);
    height: round(up, calc(100% + 110px), 1px);
    margin: 0;
    margin-left: var(--pdp-bleed-left);
    margin-right: var(--pdp-bleed-right);
    border-radius: 0;
    overflow: hidden;
    /* The photo fades out to transparent, so the page shows through: no visible end. */
    -webkit-mask-image: linear-gradient(180deg, black calc(100% - 320px), color-mix(in srgb, black 99.5%, transparent) calc(100% - 293px), color-mix(in srgb, black 96.5%, transparent) calc(100% - 267px), color-mix(in srgb, black 89.6%, transparent) calc(100% - 240px), color-mix(in srgb, black 79%, transparent) calc(100% - 213px), color-mix(in srgb, black 65.3%, transparent) calc(100% - 187px), color-mix(in srgb, black 50%, transparent) calc(100% - 160px), color-mix(in srgb, black 34.7%, transparent) calc(100% - 133px), color-mix(in srgb, black 21%, transparent) calc(100% - 107px), color-mix(in srgb, black 10.4%, transparent) calc(100% - 80px), color-mix(in srgb, black 3.5%, transparent) calc(100% - 53px), color-mix(in srgb, black 0.5%, transparent) calc(100% - 27px), transparent 100%);
    mask-image: linear-gradient(180deg, black calc(100% - 320px), color-mix(in srgb, black 99.5%, transparent) calc(100% - 293px), color-mix(in srgb, black 96.5%, transparent) calc(100% - 267px), color-mix(in srgb, black 89.6%, transparent) calc(100% - 240px), color-mix(in srgb, black 79%, transparent) calc(100% - 213px), color-mix(in srgb, black 65.3%, transparent) calc(100% - 187px), color-mix(in srgb, black 50%, transparent) calc(100% - 160px), color-mix(in srgb, black 34.7%, transparent) calc(100% - 133px), color-mix(in srgb, black 21%, transparent) calc(100% - 107px), color-mix(in srgb, black 10.4%, transparent) calc(100% - 80px), color-mix(in srgb, black 3.5%, transparent) calc(100% - 53px), color-mix(in srgb, black 0.5%, transparent) calc(100% - 27px), transparent 100%);
}

.sf-pdp__hero .sf-pdp-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 40%;
    border-radius: 0;
    box-shadow: none;
    filter: brightness(.78);
}

.sf-pdp__hero .sf-pdp-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--player-dark) 45%, transparent) 0, transparent 140px),
        linear-gradient(90deg, color-mix(in srgb, var(--player-dark) 72%, transparent) 0, color-mix(in srgb, var(--player-dark) 50%, transparent) 30%, color-mix(in srgb, var(--player-dark) 18%, transparent) 50%, transparent 68%),
        linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--player-dark) 2%, transparent) 47%, color-mix(in srgb, var(--player-dark) 7%, transparent) 52%, color-mix(in srgb, var(--player-dark) 16%, transparent) 56%, color-mix(in srgb, var(--player-dark) 26%, transparent) 61%, color-mix(in srgb, var(--player-dark) 38%, transparent) 66%, color-mix(in srgb, var(--player-dark) 50%, transparent) 71%, color-mix(in srgb, var(--player-dark) 62%, transparent) 76%, color-mix(in srgb, var(--player-dark) 74%, transparent) 81%, color-mix(in srgb, var(--player-dark) 84%, transparent) 86%, color-mix(in srgb, var(--player-dark) 93%, transparent) 90%, color-mix(in srgb, var(--player-dark) 98%, transparent) 95%, var(--player-dark) 100%);
    background-color: color-mix(in srgb, var(--player-dark) 30%, transparent);
}

.sf-pdp__hero .sf-pdp-crumbs {
    position: relative;
    z-index: 1;
    order: 0;
    grid-row: auto;
    grid-column: auto;
    margin: 0 0 28px;
    padding-top: 0;
}

.sf-pdp__hero .sf-pdp-crumbs a {
    color: var(--on-navy-tint);
}

.sf-pdp__hero .sf-pdp-crumbs a:hover {
    color: var(--on-navy);
}

.sf-pdp__hero .sf-pdp-crumbs__sep {
    color: var(--on-navy-strong);
}

.sf-pdp__hero .sf-pdp-title {
    position: relative;
    z-index: 1;
    order: 1;
    grid-row: auto;
    grid-column: auto;
    max-width: 640px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--on-navy);
    font-size: clamp(34px, 4.4vw, 50px);
    line-height: 1.05;
    letter-spacing: normal;
    text-shadow: 0 2px 24px color-mix(in srgb, var(--player-dark) 50%, transparent);
}

.sf-pdp-intro {
    font-size: 17px;
    line-height: 1.45;
}

.sf-pdp__hero .sf-pdp-intro {
    position: relative;
    z-index: 1;
    order: 2;
    grid-row: auto;
    grid-column: auto;
    max-width: 560px;
    margin: 0 0 24px;
    padding: 0;
    color: var(--on-navy);
    font-size: 17px;
    line-height: 1.45;
    text-shadow: 0 1px 12px color-mix(in srgb, var(--player-dark) 60%, transparent);
}

.sf-pdp__hero .sf-pdp-proof {
    position: relative;
    z-index: 1;
    order: 3;
    grid-row: auto;
    margin: 5px 0 24px;
}

.sf-pdp__hero .sf-pdp-proof__who,
.sf-pdp__hero .sf-pdp-proof__who:hover .sf-pdp-proof__name,
.sf-pdp__hero .sf-pdp-proof__rating,
.sf-pdp__hero .sf-pdp-proof__rating strong {
    color: var(--on-navy);
}

.sf-pdp__hero .sf-pdp-proof__label {
    color: var(--on-navy-tint);
}

.sf-pdp__hero .sf-pdp-proof__meta {
    color: var(--on-navy);
    border-left-color: color-mix(in srgb, var(--on-navy) 25%, transparent);
}

.sf-pdp__hero .sf-pdp-facts {
    position: relative;
    z-index: 1;
    order: 4;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: none;
    box-shadow: none;
}

.sf-pdp__hero .sf-pdp-facts__item,
.sf-pdp__hero .sf-pdp-facts__item + .sf-pdp-facts__item {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border: 1px solid color-mix(in srgb, var(--on-navy) 25%, transparent);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--player-dark) 45%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sf-pdp__hero .sf-pdp-facts__icon {
    width: 20px;
    height: 20px;
    margin: 0;
    background: color-mix(in srgb, var(--on-navy) 14%, transparent);
    color: var(--on-navy);
}

.sf-pdp__hero .sf-pdp-facts .sf-icon {
    width: 18px;
    height: 18px;
    color: var(--on-navy);
    stroke: currentColor;
}

.sf-pdp__hero .sf-pdp-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-navy);
}

@media (min-width: 641px) {
    .sf-pdp__hero .sf-pdp-proof {
        flex-wrap: nowrap;
        column-gap: 18px;
    }

    .sf-pdp__hero .sf-pdp-proof__meta {
        padding-left: 18px;
        white-space: nowrap;
    }

    .sf-pdp__hero .sf-pdp-proof__who {
        flex: none;
        white-space: nowrap;
    }
}

@media (min-width: 961px) and (max-width: 1060px) {
    .sf-pdp__hero .sf-pdp-proof {
        column-gap: 10px;
    }

    .sf-pdp__hero .sf-pdp-proof__meta {
        padding-left: 10px;
        font-size: 14px;
    }

    .sf-pdp__hero .sf-pdp-proof__label {
        font-size: 12px;
    }

    .sf-pdp__hero .sf-pdp-proof .sf-pdp-avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 960px) {
    .sf-pdp .sf-pdp__hero {
        padding: 24px 0 32px;
    }

    /* Tablet and phone: the photo is darkened evenly, the text gets a soft shadow. */
    .sf-pdp .sf-pdp__hero .sf-pdp-cover img {
        filter: brightness(.58) saturate(.9);
    }

    .sf-pdp__hero :is(.sf-pdp-crumbs, .sf-pdp-title, .sf-pdp-intro, .sf-pdp-proof) {
        text-shadow: 0 1px 10px color-mix(in srgb, var(--navy-shade) 45%, transparent);
    }

    .sf-pdp__hero .sf-pdp-proof .sf-pdp-avatar {
        text-shadow: none;
    }
}

@media (max-width: 640px) {
    .sf-pdp .sf-pdp-title {
        font-size: 32px;
    }

    .sf-pdp__hero .sf-pdp-cover::after {
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--player-dark) 45%, transparent) 0, transparent 110px),
            linear-gradient(180deg, transparent 18%, color-mix(in srgb, var(--player-dark) 20%, transparent) 28%, color-mix(in srgb, var(--player-dark) 45%, transparent) 38%, color-mix(in srgb, var(--player-dark) 66%, transparent) 50%, color-mix(in srgb, var(--player-dark) 82%, transparent) 64%, color-mix(in srgb, var(--player-dark) 93%, transparent) 80%, var(--player-dark) 100%);
        background-color: color-mix(in srgb, var(--player-dark) 30%, transparent);
    }

    .sf-pdp__hero .sf-pdp-proof {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 8px;
    }

    .sf-pdp__hero .sf-pdp-proof__who {
        flex: 0 0 100%;
    }

    .sf-pdp__hero .sf-pdp-proof__meta {
        padding-left: 8px;
        border-left: 1px solid color-mix(in srgb, var(--on-navy) 25%, transparent);
        font-size: 13px;
        white-space: nowrap;
    }

    .sf-pdp__hero .sf-pdp-proof__who + .sf-pdp-proof__meta {
        padding-left: 0;
        border-left: 0;
    }

    .sf-pdp__hero .sf-pdp-proof__meta .sf-icon {
        width: 15px;
        height: 15px;
    }

    .sf-pdp__hero .sf-pdp-facts__item,
    .sf-pdp__hero .sf-pdp-facts__item + .sf-pdp-facts__item {
        gap: 6px;
        padding: 6px 11px 6px 8px;
        font-size: 13px;
    }

    .sf-pdp__hero .sf-pdp-facts__item .sf-icon,
    .sf-pdp__hero .sf-pdp-facts__icon {
        width: 15px;
        height: 15px;
    }

    .sf-pdp__hero .sf-pdp-facts dd {
        font-size: 13px;
    }
}

@media (max-width: 389px) {
    .sf-pdp__hero .sf-pdp-proof__meta .sf-icon {
        display: none;
    }
}

@media (max-width: 339px) {
    .sf-pdp__hero .sf-pdp-proof__meta {
        flex: 0 0 100%;
        padding-left: 0;
        border-left: 0;
    }
}

/* --- Price box (desktop rail) --------------------------------------- */
.sf-pdp .sf-pdp__rail {
    position: relative;
    z-index: 30;
}

.sf-pdp-rail {
    z-index: 30;
}

/* Sticks under the section menu (141px with the 75px desktop header). */
.sf-pdp .sf-pdp-rail {
    top: calc(var(--sf-nav-h, 75px) + 66px);
}

@media (max-width: 960px) {
    /* Phone and tablet: no price box; the bottom bar and the enroll window take over. */
    .sf-pdp__rail {
        display: none;
    }
}

.sf-pdp__rail .sf-icon--sm {
    width: 16px;
    height: 16px;
}

.sf-pdp-box__status {
    font-size: 13px;
}

.sf-pdp-box__trust {
    background: var(--blue-tint);
}

.sf-pdp-price__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}

.sf-pdp-price__amount {
    font-size: 34px;
}

.sf-pdp-price__note {
    font-size: 14px;
}

.sf-pdp-price__vat,
.sd-vat {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
}

.sd-vat {
    margin-left: 6px;
}

.sf-pdp-field-label {
    margin-bottom: 10px;
}

.sf-pdp-pay,
.sf-pdp-dates,
.sd-opts .sf-pdp-pick {
    margin-top: 14px;
}

.sf-pdp-pay__opt {
    padding: 9px 34px 9px 9px;
}

.sf-pdp-pay__opt::after {
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
}

.sf-pdp-pay__name {
    margin-bottom: 1px;
    font-size: 12px;
}

.sf-pdp-pay__amount {
    font-size: 16px;
}

.sf-pdp-pay__opt .sf-pdp-pay__unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.sf-pdp-date__opt {
    min-height: 44px;
    gap: 10px;
    padding: 8px 10px 8px 8px;
}

.sf-pdp-date__opt .sf-pdp-date__tile {
    width: 36px;
    height: 36px;
}

.sf-pdp-date__day {
    font-size: 15px;
}

.sf-pdp-date__label {
    font-size: 13.5px;
}

.sf-pdp-date__meta {
    font-size: 12px;
}

.sf-pdp-date__seats {
    font-size: 11.5px;
}

.sf-pdp-dates__more {
    min-height: 40px;
    margin-bottom: -10px;
}

.sf-pdp-phase--final,
.sf-pdp-today {
    background: var(--white);
}

.sf-pdp-box__cta {
    margin-top: -10px;
}

/* Payment terms and other start dates fold away behind one link. */
.sd-opts {
    margin: 0 0 8px;
}

.sd-opts > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-blue);
    list-style: none;
    cursor: pointer;
}

.sd-opts > summary::-webkit-details-marker {
    display: none;
}

.sd-opts > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s;
}

.sd-opts[open] > summary::after {
    transform: rotate(225deg) translate(-2px, 0);
}

.sd-opts[open] > summary {
    margin-bottom: 14px;
}

.sd-opts > summary:focus-visible {
    outline: 3px solid var(--blue-hover);
    outline-offset: 3px;
    border-radius: 4px;
}

.sd-opts + .sf-pdp-box__cta {
    margin-top: 0;
}

/* --- What you'll walk away with (light glass card) + skills --------- */
.sf-pdp .sf-pdp-outcomes {
    position: relative;
    z-index: 1;
    margin-top: 45px;
    margin-bottom: 15px;
    border: 1px solid color-mix(in srgb, var(--blue-hover) 20%, transparent);
    background: linear-gradient(140deg, color-mix(in srgb, var(--white) 92%, transparent) 0%, color-mix(in srgb, var(--page) 88%, transparent) 60%, color-mix(in srgb, color-mix(in srgb, var(--blue-fill) 80%, var(--white)) 90%, transparent) 100%);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--navy-shade) 4%, transparent), 0 8px 22px color-mix(in srgb, var(--blue-hover) 7%, transparent);
}

/* No outcomes and no skills: an empty marker that still carries the timeline. */
.sf-pdp .sf-pdp-outcomes.sf-pdp-outcomes--empty {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

@supports (animation-timeline: view()) {
    .sf-pdp-outcomes {
        view-timeline: --sd-summary block;
        view-timeline-inset: calc(75px + 96px) 0;
    }

    @media (max-width: 640px) {
        .sf-pdp-outcomes {
            view-timeline-inset: calc(64px + 96px) 0;
        }
    }
}

.sf-course-skills-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--blue-border);
}

/* Skills without outcomes: the block is the card's only content. */
.sf-course-skills-block:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.sf-course-skills-block__label {
    margin: 5px 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.sf-course-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-course-skill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 16px;
    border-radius: var(--r-btn);
    background: var(--blue-fill);
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.sf-course-skill-chip:hover {
    background: var(--blue);
    color: var(--on-navy);
}

.sf-course-skill-chip:focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
}

/* --- Quiet section menu (tablet and desktop) ------------------------ */
.sf-pdp .sd-subnav {
    position: sticky;
    top: var(--sf-nav-h, 75px);
    z-index: 40;
    display: flex;
    /* 20px, not the design's 24px: with Reviews the Dutch menu has seven
       items and must still fit the column inside the app shell at 1440. */
    gap: 20px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--card-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.sf-pdp .sd-subnav::-webkit-scrollbar {
    display: none;
}

.sf-pdp .sd-subnav a {
    flex: none;
    padding: 14px 0 12px;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted-ink);
    text-decoration: none;
    white-space: nowrap;
}

.sf-pdp .sd-subnav a:hover,
.sf-pdp .sd-subnav a[aria-current] {
    color: var(--ink);
}

.sf-pdp .sd-subnav a[aria-current] {
    border-bottom-color: var(--blue-hover);
}

.sf-pdp .sd-subnav a:focus-visible {
    outline: 3px solid var(--blue-hover);
    outline-offset: -3px;
    border-radius: 4px;
}

/* The white full-width bar it turns into once it sticks. */
.sf-pdp .sd-subnav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-border);
}

@supports (animation-timeline: view()) {
    .sf-pdp .sd-subnav::before {
        animation: sd-subnav-bg linear both;
        animation-timeline: --sd-summary;
        animation-range: exit 0% exit 25%;
    }

    @media (min-width: 961px) {
        .sf-pdp .sd-subnav {
            animation: sd-subnav-wide linear both;
            animation-timeline: --sd-summary;
            animation-range: exit 0% exit 25%;
        }
    }

    @media (max-width: 960px) {
        .sf-pdp .sd-subnav {
            animation: sd-subnav-wide-sm linear both;
            animation-timeline: --sd-summary;
            animation-range: exit 0% exit 25%;
        }
    }
}

/* Static version for browsers without scroll-driven animations: the script
   sets .is-stuck once the menu sticks (program-sales.js). */
@supports not (animation-timeline: view()) {
    .sf-pdp .sd-subnav::before {
        transition: opacity .2s ease;
    }

    .sf-pdp .sd-subnav.is-stuck::before {
        opacity: 1;
    }

    .sf-pdp .sd-subnav.is-stuck {
        margin-left: var(--pdp-bleed-left);
        margin-right: var(--pdp-bleed-right);
        padding-left: var(--pdp-pad);
    }

    @media (max-width: 960px) {
        .sf-pdp .sd-subnav.is-stuck {
            padding-right: var(--pdp-pad);
        }
    }
}

@media (max-width: 640px) {
    .sf-pdp .sd-subnav {
        display: none;
    }
}

/* --- Jump bar (phones) ---------------------------------------------- */
.sd-jump {
    display: none;
}

@media (max-width: 640px) {
    .sd-jump {
        display: block;
        position: sticky;
        top: var(--sf-nav-h, 65px);
        z-index: 40;
        margin: 0 var(--pdp-bleed-right, -20px) 12px var(--pdp-bleed-left, -20px);
        background: var(--white);
        border-bottom: 1px solid var(--card-border);
    }

    .sd-jump__btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        border: 0;
        background: none;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .sd-jump__k {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sd-jump__n {
        overflow: hidden;
        font-size: 15px;
        font-weight: 800;
        color: var(--ink);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .sd-jump__btn .sf-icon {
        flex: none;
        margin-left: auto;
        color: var(--deep-blue);
        stroke-width: 2;
        transition: transform .2s ease;
    }

    .sd-jump.is-open .sd-jump__btn .sf-icon {
        transform: rotate(180deg);
    }

    .sd-jump__bar {
        display: block;
        height: 3px;
        background: var(--blue-fill);
    }

    .sd-jump__fill {
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--blue), var(--blue-hover));
        transform: scaleX(0);
        transform-origin: left;
    }

    .sd-jump__list {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin: 0;
        padding: 6px 0;
        list-style: none;
        background: var(--white);
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 14px 28px color-mix(in srgb, var(--navy-shade) 14%, transparent);
    }

    .sd-jump__list[hidden] {
        display: none;
    }

    .sd-jump__list a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 20px;
        font-size: 15px;
        font-weight: 700;
        color: var(--ink);
        text-decoration: none;
    }

    .sd-jump__list a::before {
        content: "";
        flex: none;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--card-border);
    }

    .sd-jump__list a.is-done::before {
        background: var(--blue);
    }

    .sd-jump__list a.is-current {
        color: var(--deep-blue);
        background: var(--blue-fill);
    }

    .sd-jump__list a.is-current::before {
        background: var(--deep-blue);
    }
}

@media (max-width: 599px) {
    .sd-jump {
        top: 59px;
    }
}

/* --- Sections ------------------------------------------------------- */
#curriculum {
    padding-bottom: 60px;
}

/* --- Curriculum (template-parts/program/program-curriculum.php) ------
   The numbered rows (.sf-pdp-route, .sf-pdp-phase) come from programs.css.
   Here: what the built content adds to them.
     .sf-pdp-route--phases    the rows are phases, each opening to its chapters
     .sf-pdp-route--chapters  no phases: the rows are the chapters
     .sf-pdp-route--long      a long chapter list that folds out
   -------------------------------------------------------------------- */

/* A step that does not open (an intermediate assignment, a course-level
   quiz): the box of a row, without a chevron. */
.sf-pdp-phase--step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 18px;
}

/* The closing step without a final assignment: the certificate alone, not a link. */
.sf-pdp-phase--certificate {
    cursor: default;
}

/* Phases: the one-line description under the phase title. */
.sf-pdp-phase__desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

/* Phases: the chapters inside an open phase; a chapter opens to its lessons. */
.sf-pdp-phase__chapters {
    margin: 0;
    padding: 0 18px 10px 72px;
    list-style: none;
}

.sf-pdp-phase__chapters > li {
    border-top: 1px solid var(--card-border);
}

.sf-pdp-chapter {
    display: block;
}

.sf-pdp-chapter > summary,
.sf-pdp-chapter--step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 0;
    list-style: none;
}

.sf-pdp-chapter > summary {
    cursor: pointer;
}

.sf-pdp-chapter > summary::-webkit-details-marker {
    display: none;
}

.sf-pdp-chapter > summary:focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
    border-radius: var(--r-btn);
}

.sf-pdp-chapter--step > .sf-icon {
    flex: none;
    color: var(--muted-2);
}

.sf-pdp-chapter__title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}

.sf-pdp-chapter__meta {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.sf-pdp-chapter__chev {
    display: grid;
    place-items: center;
    flex: none;
    color: var(--muted);
    transition: transform .2s;
}

.sf-pdp-chapter[open] > summary .sf-pdp-chapter__chev {
    transform: rotate(180deg);
}

/* The lessons of a chapter inside a phase: no second indent. */
.sf-pdp-chapter > .sf-pdp-phase__items {
    padding: 0 0 6px;
}

/* Long chapter list (.sf-pdp-route--long, more chapters than
   soofos_program_sales_curriculum_visible()): the first chapters, then "Show
   all N chapters" in the look of "Show more" in the price box; the closing
   step stays under it. Without script every chapter shows (noscript rule in
   single-course_trajectory.php). */
.sf-pdp-route--long.is-folded .sf-pdp-route__phase--extra {
    display: none;
}

.sf-pdp-route__more {
    position: relative;
    padding-left: 72px; /* in line with the row titles */
}

.sf-pdp-route__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--deep-blue);
    font: 800 14px var(--font);
    cursor: pointer;
}

.sf-pdp-route__toggle:hover span {
    text-decoration: underline;
}

.sf-pdp-route__toggle:focus-visible {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
    border-radius: var(--r-btn);
}

.sf-pdp-route__toggle .sf-icon {
    transition: transform .2s;
}

.sf-pdp-route__toggle[aria-expanded="true"] .sf-icon {
    transform: rotate(180deg);
}

@media (max-width: 720px) {
    .sf-pdp-phase--step {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 14px;
    }

    .sf-pdp-phase__chapters {
        padding: 0 14px 8px;
    }

    .sf-pdp-chapter > summary,
    .sf-pdp-chapter--step {
        flex-wrap: wrap;
        gap: 2px 10px;
    }

    .sf-pdp-chapter__title {
        flex-basis: calc(100% - 34px);
    }

    .sf-pdp-chapter__meta {
        order: 3;
        flex-basis: 100%;
    }

    .sf-pdp-route__more {
        padding-left: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-pdp-route__toggle .sf-icon,
    .sf-pdp-chapter__chev {
        transition: none;
    }
}

/* Your supervisor: a white band over the full width; the text keeps its width. */
.sf-pdp #instructor {
    position: relative;
    isolation: isolate;
    padding: 59px 0 60px;
}

.sf-pdp #instructor::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pdp-bleed-left);
    right: var(--pdp-bleed-right);
    z-index: -1;
    background: var(--white);
    clip-path: none;
}

#how-it-works {
    padding-top: 60px;
}

.sf-pdp #faq {
    padding-top: 40px;
    padding-bottom: 20px;
}

#sf-pdp-faq-title {
    margin-bottom: 15px;
}

/* --- How it works: one timeline -------------------------------------- */
.sd-flow-section {
    --flow-node: 52px;
    --flow-blue: var(--blue-hover);
    --flow-deep: var(--deep-blue);
    --flow-classic: var(--blue);
    --flow-light: var(--blue-fill);
    --flow-bg: var(--page);
    --flow-ink: var(--ink);
}

.sd-flow {
    --flow-fill: linear-gradient(180deg, var(--flow-classic) 4%, var(--flow-blue) 100%);
    position: relative;
    display: grid;
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

/* The light track (ends in a small dot where the certificate icon appears)
   and, over it, the line that fills in the logo gradient while scrolling. */
.sd-flow::before,
.sd-flow::after {
    content: "";
    position: absolute;
    top: var(--line-top, 0);
    left: calc(var(--flow-node) / 2 - 1.5px);
    width: 3px;
    border-radius: 3px;
}

.sd-flow::before {
    left: calc(var(--flow-node) / 2 - 5px);
    width: 10px;
    height: calc(var(--line-len, 0px) + 5px);
    border-radius: 0;
    background:
        radial-gradient(circle at 50% calc(100% - 5px), var(--flow-track) 4px, transparent 4.6px),
        linear-gradient(var(--flow-track), var(--flow-track)) 50% 0 / 3px calc(100% - 5px) no-repeat;
}

.sd-flow::after {
    height: calc(var(--line-len, 0px) * var(--flow-progress, 0));
    background: var(--flow-line, var(--flow-blue)) 0 0 / 100% var(--line-len, 100%) no-repeat;
}

/* Without script: a plain line from the first icon to the last. */
.sd-flow:not(.has-js) .sd-flow__step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -20px;
    left: calc(var(--flow-node) / 2 - 1.5px);
    width: 3px;
    background: var(--flow-track-static);
}

.sd-flow:not(.has-js) .sd-flow__step:first-child::before {
    top: 50%;
}

.sd-flow:not(.has-js) .sd-flow__step:last-child::before {
    bottom: 50%;
}

.sd-flow__step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--flow-node) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.sd-flow__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--flow-node);
    height: var(--flow-node);
    border-radius: 50%;
    background: var(--white);
    color: var(--flow-blue);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--player-dark) 8%, transparent);
    transition: background .35s ease, color .35s ease, box-shadow .35s ease, opacity .12s linear, transform .12s linear;
}

.sd-flow__node .sf-icon {
    width: 22px;
    height: 22px;
}

/* The ring that runs round the icon (anticlockwise from the top) as the line passes. */
.sd-flow__node::before {
    --ring-deg: calc(var(--ring, 0) * 360deg);
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--flow-fill);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px)), conic-gradient(transparent 0deg calc(360deg - var(--ring-deg)), black calc(360deg - var(--ring-deg)) 360deg);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px)), conic-gradient(transparent 0deg calc(360deg - var(--ring-deg)), black calc(360deg - var(--ring-deg)) 360deg);
    mask-composite: intersect;
}

.sd-flow:not(.has-js) .sd-flow__node::before {
    display: none;
}

.sd-flow__node::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.sd-flow__step.is-reached .sd-flow__node {
    background: var(--flow-fill);
    color: var(--on-navy);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--blue-hover) 25%, transparent);
}

.sd-flow__card {
    padding: 22px 26px 24px;
    border: 1px solid var(--flow-card-border);
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--player-dark) 5%, transparent), 0 10px 28px color-mix(in srgb, var(--player-dark) 6%, transparent);
}

.sd-flow__kicker {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--flow-deep);
}

.sd-flow__title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--flow-ink);
    scroll-margin-top: 140px;
}

.sd-flow__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
}

/* An authored brief (older programs) can hold paragraphs and lists. */
.sd-flow__text > :first-child {
    margin-top: 0;
}

.sd-flow__text > :last-child {
    margin-bottom: 0;
}

.sd-flow__text :is(p, ul, ol) {
    margin: 0 0 .7em;
}

.sd-flow__text :is(h3, h4) {
    margin: 1em 0 .4em;
    font-size: 16px;
    font-weight: 800;
    color: var(--flow-ink);
}

.sd-flow__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.sd-flow__facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--flow-light);
    border-radius: var(--r-pill);
    background: var(--flow-bg);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--chip-ink);
}

.sd-flow__facts .sf-icon {
    flex: none;
    color: var(--flow-blue);
}

.sd-flow__step.is-live .sd-flow__card {
    position: relative;
    border-color: var(--flow-live-border);
    background: linear-gradient(135deg, var(--flow-live-fill) 0%, var(--white) 70%);
}

.sd-flow__live {
    position: absolute;
    top: 20px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 9px;
    border-radius: var(--r-pill);
    background: var(--red-fill);
    font-size: 13px;
    font-weight: 800;
    color: var(--red-ink);
}

.sd-flow__live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent);
    animation: sd-flow-pulse 2.4s ease-out infinite;
}

.sd-flow__more {
    margin: 14px 0 0;
}

.sd-flow__more > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    color: var(--flow-deep);
    list-style: none;
    cursor: pointer;
}

.sd-flow__more > summary::-webkit-details-marker {
    display: none;
}

.sd-flow__more > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 0 3px 2px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s;
}

.sd-flow__more[open] > summary::after {
    margin: 3px 0 0 2px;
    transform: rotate(225deg);
}

.sd-flow__more > summary:focus-visible {
    outline: 3px solid var(--flow-classic);
    outline-offset: 3px;
    border-radius: 4px;
}

.sd-flow__criteria {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.sd-flow__criteria li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--body);
}

.sd-flow__criteria .sf-icon {
    flex: none;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-fill);
    color: var(--green);
}

.sd-flow__step.is-final .sd-flow__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    column-gap: 28px;
    align-items: center;
}

.sd-flow__step.is-final .sd-flow__card > :not(.sd-flow__certfig) {
    grid-column: 1;
}

.sd-flow__certfig {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
}

.sd-flow__certfig .sf-pdp-cert__title {
    font-size: 15px;
}

/* Cards and icons appear with the line (--in 0 to 1, set by the script). */
@media (prefers-reduced-motion: no-preference) {
    .sd-flow.has-js .sd-flow__card {
        opacity: var(--in, 0);
        transform: translateY(calc((1 - var(--in, 0)) * 32px));
        transition: opacity .12s linear, transform .12s linear;
    }

    .sd-flow.has-js .sd-flow__node {
        opacity: var(--in, 0);
        transform: scale(calc(.6 + .4 * var(--in, 0)));
    }

    .sd-flow.has-js .sd-flow__step.is-in.is-reached .sd-flow__node {
        animation: sd-node-pop .45s ease-out both;
    }

    .sd-flow__step.is-reached .sd-flow__node::after {
        animation: sd-node-ring .9s ease-out both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-flow__live::before {
        animation: none;
    }
}

@media (max-width: 640px) {
    .sd-flow-section {
        --flow-node: 40px;
    }

    .sd-flow {
        gap: 14px;
        margin-top: 28px;
    }

    .sd-flow__step {
        gap: 14px;
    }

    .sd-flow__node .sf-icon {
        width: 18px;
        height: 18px;
    }

    .sd-flow__card {
        padding: 18px 18px 20px;
    }

    .sd-flow__title {
        font-size: 19px;
    }

    .sd-flow__step.is-final .sd-flow__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-flow__certfig {
        grid-column: 1;
        grid-row: auto;
        max-width: 260px;
        margin-top: 16px;
    }

    .sd-flow:not(.has-js) .sd-flow__step::before {
        bottom: -14px;
    }

    .sd-flow__live {
        top: 16px;
        right: 16px;
    }
}

/* --- FAQ: course / learning path / program table ---------------------- */
.sf-pdp-faq__a:has(.sd-cmp3) {
    max-width: none;
}

.sf-pdp-faq__a:has(.sd-cmp3) > p {
    max-width: 70ch;
}

.sd-cmp3 {
    margin: 4px 0 14px;
    background: var(--white);
}

.sd-cmp3 .sf-pdp-compare {
    font-size: 14px;
    line-height: 1.35;
}

.sd-cmp3 .sf-pdp-compare th,
.sd-cmp3 .sf-pdp-compare td {
    padding: 11px 14px;
}

.sd-cmp3 .sf-pdp-compare thead th {
    width: 20%;
}

.sd-cmp3 .sf-pdp-compare thead th:first-child {
    width: 40%;
}

.sd-cmp3 .sd-cmp-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--chip-ink);
}

@media (max-width: 640px) {
    .sf-pdp-faq {
        min-width: 0;
    }

    .sd-cmp3 .sf-pdp-compare {
        width: 100%;
        table-layout: fixed;
        font-size: 12.5px;
    }

    .sd-cmp3 .sf-pdp-compare th,
    .sd-cmp3 .sf-pdp-compare td {
        padding: 9px 4px;
        overflow-wrap: anywhere;
    }

    .sd-cmp3 .sf-pdp-compare th:first-child,
    .sd-cmp3 .sf-pdp-compare td:first-child {
        padding-left: 10px;
    }

    .sd-cmp3 .sf-pdp-compare thead th {
        width: 22%;
        font-size: 12px;
        overflow-wrap: normal;
    }

    .sd-cmp3 .sf-pdp-compare thead th:first-child {
        width: 34%;
    }

    .sd-cmp3 .sd-cmp-text {
        font-size: 12px;
    }
}

/* --- Closing block ---------------------------------------------------- */
.sf-pdp .sf-pdp-section--cta.sd-close {
    padding: 30px 0 47px;
}

.sd-close__band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 32px 48px;
    max-width: 100%;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: var(--r-card-lg);
    background: var(--player-dark);
    color: var(--on-navy);
    isolation: isolate;
    overflow: hidden;
}

.sd-close__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: brightness(.7);
}

.sd-close__band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--player-dark) 0, color-mix(in srgb, var(--player-dark) 92%, transparent) 38%, color-mix(in srgb, var(--player-dark) 55%, transparent) 70%, color-mix(in srgb, var(--player-dark) 35%, transparent) 100%);
}

.sd-close__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--on-navy) 12%, transparent);
    font-size: 14px;
    font-weight: 800;
    color: var(--on-navy);
}

.sd-close__title {
    max-width: 520px;
    margin: 0 0 14px;
    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--on-navy);
    text-wrap: balance;
}

.sd-close__lead {
    max-width: 520px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-navy-tint);
}

.sd-close__checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0 0 24px;
}

.sd-close__checks li {
    font-size: 14px;
    font-weight: 600;
    color: var(--on-navy);
}

.sd-close .sf-pdp-checks__mark {
    background: var(--green);
    color: var(--on-navy);
}

.sd-close__who {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--on-navy) 18%, transparent);
    font-size: 14px;
    color: var(--on-navy-tint);
    text-decoration: none;
}

.sd-close__who strong {
    color: var(--on-navy);
}

.sd-close__who:hover strong {
    text-decoration: underline;
}

.sd-close__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--deep-blue);
    font-size: 17px;
    font-weight: 900;
    object-fit: cover;
}

.sd-close__card {
    --cp-t: 22px;
    --cp-r: 22px;
    --cp-b: 22px;
    --cp-l: 22px;
    display: grid;
    gap: 6px;
    padding: 0 var(--cp-r) var(--cp-b) var(--cp-l);
    border-radius: var(--r-card-lg);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--player-dark) 45%, transparent);
    overflow: hidden;
}

/* A card without the start-date strip keeps its top padding. */
.sd-close__card > :first-child:not(.sd-close__sub) {
    margin-top: var(--cp-t);
}

.sd-close__sub {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 calc(-1 * var(--cp-r)) var(--cp-t) calc(-1 * var(--cp-l));
    padding: 10px var(--cp-l);
    background: var(--blue-fill);
    color: var(--deep-blue);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.sd-close__sub .sf-icon {
    flex: none;
    width: 16px;
    height: 16px;
}

.sd-close__price {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.sd-close__note {
    margin: 4px 0 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--muted-2);
}

.sd-close__btn {
    width: 100%;
    min-height: 56px;
    padding: 12px 22px;
    font-size: 17px;
}

.sd-close__more {
    display: grid;
    gap: 2px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--blue-border);
}

.sd-close__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--deep-blue);
    font: 800 13.5px var(--font);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.sd-close__link:hover span {
    text-decoration: underline;
}

.sd-close__ask {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted-2);
}

@media (max-width: 1024px) {
    .sd-close__band {
        grid-template-columns: minmax(0, 1fr);
        padding: 48px 40px 40px;
    }
}

/* Tablet: the card lies across the full width of the band. */
@media (min-width: 641px) and (max-width: 1024px) {
    .sd-close__card {
        --cp-t: 22px;
        --cp-r: 28px;
        --cp-b: 26px;
        --cp-l: 28px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 28px;
        row-gap: 0;
        max-width: none;
        padding: 0 var(--cp-r) var(--cp-b) var(--cp-l);
    }

    .sd-close__sub {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .sd-close__price {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
    }

    .sd-close__note {
        grid-column: 1;
        grid-row: 3;
        align-self: start;
        margin: 8px 0 0;
    }

    .sd-close__btn {
        grid-column: 2;
        grid-row: 2 / 4;
        width: auto;
        min-width: 230px;
    }

    .sd-close__more {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 28px;
        margin-top: 18px;
        padding-top: 10px;
    }

    .sd-close__ask {
        grid-column: 1 / -1;
        grid-row: 5;
        margin-top: 4px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .sd-close__band {
        gap: 28px;
        padding: 36px 20px 20px;
        border-radius: var(--r-card);
    }

    .sd-close__band::after {
        background: linear-gradient(180deg, color-mix(in srgb, var(--player-dark) 70%, transparent) 0, var(--player-dark) 45%);
    }

    .sd-close__checks {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .sd-close__card {
        --cp-t: 20px;
        --cp-r: 20px;
        --cp-l: 20px;
        max-width: none;
        padding: 0 var(--cp-r) var(--cp-b) var(--cp-l);
    }

    .sd-close__sub {
        gap: 6px;
        padding: 9px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* --- Enroll window ---------------------------------------------------- */
.sd-enroll {
    width: min(480px, calc(100vw - 32px));
}

.sd-enroll__inner {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 28px 28px 0;
}

.sd-enroll__title {
    margin: 0 48px 0 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.sd-enroll__body {
    display: grid;
    gap: 22px;
}

.sd-enroll__body fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sd-enroll .sf-pdp-pay__grid {
    grid-template-columns: minmax(0, 1fr);
}

.sd-enroll .sf-pdp-pay__opt {
    position: relative;
}

.sd-enroll__total {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-2);
    white-space: nowrap;
}

.sd-enroll__foot {
    position: sticky;
    bottom: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 0 18px;
    background: var(--white);
}

.sd-enroll__go {
    width: 100%;
    min-height: 56px;
    padding: 12px 22px;
    font-size: 17px;
}

.sd-enroll__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
}

.sd-enroll__quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 0;
    background: none;
    color: var(--deep-blue);
    font: 800 13.5px var(--font);
    cursor: pointer;
}

.sd-enroll__quote:hover span {
    text-decoration: underline;
}

.sd-enroll__quote[hidden] {
    display: none;
}

@media (max-width: 640px) {
    /* Floats 12px from the screen edges, the same on all four sides. */
    .sd-enroll {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        height: auto;
        max-height: calc(100% - 24px);
        margin: auto;
        border-radius: 18px;
    }

    .sd-enroll__inner {
        padding: 22px 20px 0;
    }

    .sd-enroll__title {
        font-size: 22px;
    }

    .sd-enroll__foot {
        margin: 0;
        padding: 6px 0 calc(14px + env(safe-area-inset-bottom));
    }
}

/* --- Floating bottom bar (phone and tablet) -------------------------- */
@media (max-width: 960px) {
    .sf-pdp-bar {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        row-gap: 10px;
        padding: 12px 12px 12px 16px;
        border: 1px solid var(--card-border);
        border-radius: 18px;
        background: var(--white);
        box-shadow: 0 14px 36px color-mix(in srgb, var(--navy-shade) 20%, transparent), 0 2px 6px color-mix(in srgb, var(--navy-shade) 6%, transparent);
        overflow: hidden;
        cursor: pointer;
        visibility: hidden;
        transform: translateY(calc(100% + 28px));
        transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
    }

    /* Slides in after a small scroll, steps aside at the closing block. */
    body .sf-pdp-bar.sd-bar-on {
        visibility: visible;
        transform: none;
    }

    .sf-pdp-bar__strip {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 6px;
        margin: -12px -12px 0 -16px;
        padding: 7px 16px;
        background: var(--blue-fill);
        font-size: 12px;
        font-weight: 800;
        color: var(--deep-blue);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sf-pdp-bar__strip .sf-icon {
        flex: none;
        width: 14px;
        height: 14px;
    }

    .sf-pdp-bar__info {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .sf-pdp-bar .sf-pdp-bar__price {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 8px;
    }

    .sf-pdp-bar__usps {
        margin: 3px 0 0;
        font-size: 12px;
        font-weight: 500;
        color: var(--muted);
        white-space: nowrap;
    }

    .sf-pdp-bar__usps .is-wide {
        display: none;
    }

    .sf-pdp-bar .sf-pdp-bar__cta {
        min-height: 52px;
        padding-inline: 24px;
    }
}

.sf-pdp-bar__usp .sf-icon {
    display: none;
}

@media (min-width: 641px) and (max-width: 960px) {
    .sf-pdp-bar {
        left: 24px;
        right: 24px;
        max-width: 520px;
        margin-inline: auto;
        padding: 16px 14px 16px 22px;
        row-gap: 14px;
    }

    .sf-pdp-bar__strip {
        margin: -16px -14px 0 -22px;
        padding: 9px 22px;
        font-size: 13px;
    }

    .sf-pdp-bar .sf-pdp-bar__price strong {
        font-size: 23px;
    }

    .sf-pdp-bar .sf-pdp-bar__price span {
        font-size: 13.5px;
    }

    .sf-pdp-bar__usps,
    .sf-pdp-bar__usps .is-wide {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 12.5px;
    }

    .sf-pdp-bar__sep {
        display: none;
    }

    .sf-pdp-bar__usp {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .sf-pdp-bar__usp .sf-icon {
        display: block;
        flex: none;
        width: 15px;
        height: 15px;
        color: var(--muted-2);
    }

    .sf-pdp-bar .sf-pdp-bar__cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 54px;
        padding-inline: 26px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .sf-pdp-bar .sf-pdp-bar__cta {
        padding-inline: 16px;
    }
}

@media (max-width: 349px) {
    .sf-pdp-bar__usps {
        white-space: normal;
    }
}

/* Tablet: a light navy fade behind the bar, so it sits on a calm surface. */
.sd-bar-scrim {
    display: none;
}

@media (min-width: 641px) and (max-width: 960px) {
    .sd-bar-scrim {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 39;
        height: 220px;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--player-dark) 0.1%, transparent) 8%, color-mix(in srgb, var(--player-dark) 0.4%, transparent) 17%, color-mix(in srgb, var(--player-dark) 1%, transparent) 25%, color-mix(in srgb, var(--player-dark) 2.1%, transparent) 33%, color-mix(in srgb, var(--player-dark) 3.5%, transparent) 42%, color-mix(in srgb, var(--player-dark) 5%, transparent) 50%, color-mix(in srgb, var(--player-dark) 6.5%, transparent) 58%, color-mix(in srgb, var(--player-dark) 7.9%, transparent) 67%, color-mix(in srgb, var(--player-dark) 9%, transparent) 75%, color-mix(in srgb, var(--player-dark) 9.6%, transparent) 83%, color-mix(in srgb, var(--player-dark) 9.9%, transparent) 92%, color-mix(in srgb, var(--player-dark) 10%, transparent) 100%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, black 1.9%, transparent) 8%, color-mix(in srgb, black 12.2%, transparent) 17%, color-mix(in srgb, black 31.7%, transparent) 25%, color-mix(in srgb, black 56.2%, transparent) 33%, color-mix(in srgb, black 79%, transparent) 42%, color-mix(in srgb, black 94.2%, transparent) 50%, color-mix(in srgb, black 99.7%, transparent) 58%, black 67%, black 75%, black 83%, black 92%, black 100%);
        mask-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, black 1.9%, transparent) 8%, color-mix(in srgb, black 12.2%, transparent) 17%, color-mix(in srgb, black 31.7%, transparent) 25%, color-mix(in srgb, black 56.2%, transparent) 33%, color-mix(in srgb, black 79%, transparent) 42%, color-mix(in srgb, black 94.2%, transparent) 50%, color-mix(in srgb, black 99.7%, transparent) 58%, black 67%, black 75%, black 83%, black 92%, black 100%);
        opacity: 0;
        transition: opacity .5s ease;
    }

    .sd-bar-scrim.is-on {
        opacity: 1;
    }
}

/* --- Inside the program: intro video ---------------------------------- */
.sd-film {
    --p: 1;
    position: relative;
    isolation: isolate;
    padding: 45px 0 35px;
    border: 0;
    color: var(--ink);
}

#learn > * {
    transition: opacity .4s ease;
}

.sd-film__stage {
    position: relative;
    margin: 22px 0 32px;
}

/* A wide, light blue glow that blooms in while the video scrolls through view. */
.sd-lv__glow {
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -22%;
    right: -22%;
    z-index: -1;
    background: radial-gradient(ellipse 58% 58% at 50% 50%, var(--glow-blue) 0, color-mix(in srgb, var(--glow-blue) 62%, transparent) 38%, color-mix(in srgb, var(--glow-blue) 24%, transparent) 68%, transparent 100%);
    opacity: .85;
    pointer-events: none;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .sd-lv__glow {
            animation: sd-lv-bloom linear both;
            animation-timeline: view(block);
            animation-range: cover 0% cover 100%;
        }
    }
}

@media (max-width: 960px) {
    .sd-lv__glow {
        left: var(--pdp-bleed-left);
        right: var(--pdp-bleed-right);
    }
}

.sd-film__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--r-card);
    background: var(--video-bg);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--deep-blue) 22%, transparent);
    overflow: hidden;
    transform-origin: 50% 0;
    will-change: transform;
    cursor: default;
}

.sd-film__frame:fullscreen {
    border-radius: 0;
}

.sd-film__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.sd-film__frame:hover img {
    transform: scale(1.03);
}

.sd-film__video,
.sd-film__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--video-bg);
    object-fit: cover;
}

.sd-film__video[hidden],
.sd-film__embed[hidden] {
    display: none;
}

.sd-film__poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: opacity .35s ease, visibility .35s;
}

.sd-film__poster:focus-visible,
.sd-film__resume:focus-visible {
    outline: 3px solid var(--on-navy);
    outline-offset: -6px;
}

.sd-film__frame.is-playing .sd-film__poster {
    opacity: 0;
    visibility: hidden;
}

.sd-film__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-hover));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--deep-blue) 35%, transparent);
    color: var(--on-navy);
    transition: transform .2s ease;
}

.sd-film__play .sf-icon,
.sd-film__resume-disc .sf-icon {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.sd-film__frame:hover .sd-film__play {
    transform: scale(1.06);
}

.sd-film__len {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--veil) 72%, transparent);
    color: var(--on-navy);
    font: 800 13px var(--font);
}

/* Paused halfway: a play button with "Continue · 0:42 left". */
.sd-film__resume {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: color-mix(in srgb, var(--veil) 25%, transparent);
    color: var(--on-navy);
    cursor: pointer;
    animation: sd-fade-in .25s ease;
}

.sd-film__resume[hidden] {
    display: none;
}

.sd-film__resume-disc {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-hover));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--veil) 35%, transparent);
    transition: transform .2s ease;
}

.sd-film__resume:hover .sd-film__resume-disc {
    transform: scale(1.06);
}

.sd-film__resume-label {
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--veil) 72%, transparent);
    font: 800 13px var(--font);
    font-variant-numeric: tabular-nums;
}

.sd-film__status {
    position: absolute;
    left: 50%;
    bottom: 56px;
    z-index: 3;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--veil) 72%, transparent);
    color: var(--on-navy);
    font: 700 13px var(--font);
    text-align: center;
    transform: translateX(-50%);
}

.sd-film__status[hidden] {
    display: none;
}

/* Own controls: shown while paused and for 2.5 s after any movement. */
.sd-vc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 28px 12px 10px;
    background: linear-gradient(0deg, color-mix(in srgb, var(--veil) 78%, transparent), transparent);
    color: var(--on-navy);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.sd-vc[hidden] {
    display: none;
}

.sd-film__frame.is-ui .sd-vc,
.sd-film__frame.is-paused .sd-vc {
    opacity: 1;
    pointer-events: auto;
}

.sd-film__frame.is-playing:not(.is-ui):not(.is-paused) {
    cursor: none;
}

.sd-vc__btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.sd-vc__btn[hidden] {
    display: none;
}

.sd-vc__btn:hover,
.sd-vc__btn[aria-pressed="true"] {
    background: color-mix(in srgb, var(--on-navy) 14%, transparent);
}

.sd-vc__btn .sf-icon {
    stroke-width: 2;
}

.sd-vc__btn .sf-icon--solid {
    stroke-width: 0;
}

.sd-vc__btn:focus-visible,
.sd-vc__bar:focus-visible {
    outline: 2px solid var(--on-navy);
    outline-offset: 2px;
}

.sd-vc__i-play,
.sd-film__frame.is-paused .sd-vc__i-pause,
.sd-vc__i-mute,
.sd-film__frame.is-muted .sd-vc__i-vol {
    display: none;
}

.sd-film__frame.is-paused .sd-vc__i-play,
.sd-film__frame.is-muted .sd-vc__i-mute,
.sd-vc__i-pause,
.sd-vc__i-vol {
    display: grid;
}

.sd-vc__time {
    flex: none;
    min-width: 86px;
    padding: 0 6px;
    font: 700 13px var(--font);
    font-variant-numeric: tabular-nums;
}

.sd-vc__bar {
    position: relative;
    flex: 1;
    height: 22px;
    cursor: pointer;
    touch-action: none;
}

.sd-vc__bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 4px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--on-navy) 30%, transparent);
}

.sd-vc__fill {
    position: absolute;
    left: 0;
    top: 9px;
    width: 0;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-hover));
}

.sd-vc__fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--on-navy);
    box-shadow: 0 1px 4px color-mix(in srgb, var(--veil) 40%, transparent);
    transform: scale(0);
    transition: transform .15s ease;
}

.sd-vc__bar:hover .sd-vc__fill::after,
.sd-vc__bar:focus-visible .sd-vc__fill::after {
    transform: scale(1);
}

/* End screen: next start, Enroll now, brochure, Watch again. */
.sd-film__end {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 16px;
    place-content: center;
    justify-items: center;
    padding: 20px;
    background: color-mix(in srgb, var(--end-screen) 84%, transparent);
    color: var(--on-navy);
    text-align: center;
    animation: sd-fade-in .35s ease;
}

.sd-film__end[hidden] {
    display: none;
}

.sd-film__end-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.sd-film__end-meta {
    margin: -8px 0 0;
    font: 700 14px var(--font);
    color: var(--on-navy-accent);
}

.sd-film__end-meta[hidden] {
    display: none;
}

.sd-film__end-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sd-film__end-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 44px;
}

.sd-film__end-link,
.sd-film__replay {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--on-navy) 45%, transparent);
    border-radius: var(--r-card-sm);
    background: transparent;
    color: var(--on-navy);
    font: 800 15px var(--font);
    cursor: pointer;
}

.sd-film__replay {
    min-height: 36px;
    border: 0;
    font-size: 14px;
    color: var(--on-navy-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sd-film__end-who {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 700 13px var(--font);
    color: var(--on-navy-soft);
}

.sd-film__end-av {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--white);
    color: var(--deep-blue);
    font-size: 12px;
    font-weight: 900;
    object-fit: cover;
}

@media (max-width: 640px) {
    .sd-film__play,
    .sd-film__resume-disc {
        width: 64px;
        height: 64px;
    }

    .sd-film__play {
        margin: -32px 0 0 -32px;
    }

    .sd-film__play .sf-icon,
    .sd-film__resume-disc .sf-icon {
        width: 24px;
        height: 24px;
    }

    .sd-vc {
        gap: 2px;
        padding: 22px 6px 4px;
    }

    .sd-vc__btn {
        width: 36px;
        height: 36px;
    }

    .sd-vc__time {
        min-width: 0;
        font-size: 12px;
    }

    .sd-film__end {
        gap: 10px;
    }

    .sd-film__end-title {
        font-size: 19px;
    }

    .sd-film__end-meta {
        margin-top: -4px;
        font-size: 12.5px;
    }

    .sd-film__end-cta,
    .sd-film__end-link {
        min-width: 0;
        min-height: 40px;
        font-size: 14px;
    }

    .sd-film__end-who {
        display: none;
    }
}

/* Touch screens: 44px tap targets, the seek handle always visible. */
@media (pointer: coarse) {
    .sd-vc__btn {
        width: 44px;
        height: 44px;
    }

    .sd-vc__bar {
        height: 44px;
    }

    .sd-vc__bar::before,
    .sd-vc__fill {
        top: 20px;
    }

    .sd-vc__fill::after {
        transform: scale(1);
    }

    .sd-film__end-cta,
    .sd-film__end-link,
    .sd-film__replay {
        min-height: 44px;
    }
}

/* Spotlight (tablet and desktop): the page dims around the playing video. */
.sd-cinema-dim {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: color-mix(in srgb, var(--veil) 88%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.sd-cinema .sd-cinema-dim {
    opacity: 1;
    pointer-events: auto;
}

.sd-cinema-dim--top {
    inset: auto 0;
    z-index: 100000;
}

.sd-cinema #learn {
    z-index: 901;
}

.sd-cinema #learn > :not(.sd-film__stage) {
    opacity: .18;
}

.sd-cinema .sd-lv__glow {
    opacity: 0 !important;
    animation: none !important;
    transition: opacity .3s ease;
}

/* The phone's bottom bar steps aside while the video plays. */
.sd-playing .sf-pdp-bar {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* --- Phones: one type scale (32 / 26 / 20 / 16 / 14 / 13) ------------- */
@media (max-width: 640px) {
    .sf-pdp .sf-pdp-h2,
    .sf-pdp .sd-close__title {
        font-size: 26px;
    }

    .sf-pdp .sd-flow__title {
        font-size: 20px;
    }

    .sf-pdp .sf-pdp-prose p,
    .sf-pdp .sf-pdp-prose li,
    .sf-pdp .sf-pdp-lede,
    .sf-pdp .sf-pdp-coach__bio,
    .sf-pdp .sf-pdp-phase__title,
    .sf-pdp .sf-pdp-faq > summary span,
    .sf-pdp .sd-jump__n {
        font-size: 16px;
    }

    .sf-pdp .sf-pdp-phase__item-title,
    .sf-pdp .sf-pdp-coach__roles li,
    .sf-pdp .sf-pdp-kicker,
    .sf-pdp .sd-flow__criteria li span,
    .sf-pdp .sd-flow__more > summary,
    .sf-pdp .sd-close__link span {
        font-size: 14px;
    }

    .sf-pdp .sd-flow__facts li span,
    .sf-pdp .sf-pdp-phase__meta {
        font-size: 13px;
    }
}

/* --- Animations --------------------------------------------------------- */
@supports (animation-timeline: view()) {
    @keyframes sd-subnav-bg { to { opacity: 1; } }

    @media (min-width: 961px) {
        @keyframes sd-subnav-wide { to { margin-left: var(--pdp-bleed-left); margin-right: var(--pdp-bleed-right); padding-left: var(--pdp-pad); } }
    }
}

@keyframes sd-subnav-wide-sm { to { margin-left: var(--pdp-bleed-left); margin-right: var(--pdp-bleed-right); padding-left: var(--pdp-pad); padding-right: var(--pdp-pad); } }

@keyframes sd-flow-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

@keyframes sd-node-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }

@keyframes sd-node-ring { 0% { opacity: .35; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue-hover) 35%, transparent); } 100% { opacity: 0; box-shadow: 0 0 0 9px transparent; } }

@keyframes sd-lv-bloom { 0% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: .25; transform: scale(.85); } }

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

@media (prefers-reduced-motion: reduce) {
    .sd-film__frame img,
    .sd-film__play,
    .sd-film__resume-disc,
    .sd-cinema-dim,
    #learn > *,
    .sf-pdp-bar,
    .sd-bar-scrim {
        transition: none;
    }

    .sd-film__resume,
    .sd-film__end {
        animation: none;
    }

    .sd-film__frame:hover img,
    .sd-film__frame:hover .sd-film__play {
        transform: none;
    }
}
