/* ============================================
   StoryBrand Page Styles - Code Blue Training
   The family stylesheet for every StoryBrand page,
   loaded by templates/layouts/story.html. Sections
   follow the StoryBrand narrative flow. This file is
   the canonical visual reference for marketing pages.

   Shared cards, tiles and pills live in
   _components.css (glow-card, icon-ring, status-pill,
   format-badge, program-tile).
   ============================================ */

/* ===== PAGE ACCENT =====
   layouts/story.html renders <main class="story" data-accent="...">.
   Components read the accent through --cc (an R, G, B triplet).
   Values live only in _tokens.css. */

.story { --cc: var(--accent-red-rgb); }
.story[data-accent="blue"]   { --cc: var(--accent-blue-rgb); }
.story[data-accent="gold"]   { --cc: var(--accent-gold-rgb); }
.story[data-accent="green"]  { --cc: var(--accent-green-rgb); }
.story[data-accent="purple"] { --cc: var(--accent-purple-rgb); }
.story[data-accent="cyan"]   { --cc: var(--accent-cyan-rgb); }

/* ===== 1. HERO SECTION ===== */

.hero {
    position: relative;
    background-color: var(--color-midnight-950);
    overflow: hidden;
    padding-block: var(--space-16) 6rem;
}

/* Brand pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("/static/images/patterns/Code_Blue_Training_Pattern_Update_5-02.66f68157fc33.png");
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.06;
    pointer-events: none;
}

/* Radial glow - red left */
.hero::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(193, 0, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Blue glow right */
.hero__glow-blue {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(68, 120, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}


/* 2-column grid layout */
.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (max-width: 64em) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.hero__content {
    position: relative;
}

.hero__subheading {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-cb-blue-400);
    margin-block-end: var(--space-4);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-block-end: var(--space-6);
}

.hero__title-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-400);
    max-width: 38ch;
    margin-block-end: var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ── Hero Visual: Success State Card ── */

.hero__visual {
    display: flex;
    justify-content: center;
}

@media (max-width: 64em) {
    .hero__visual {
        max-width: 24rem;
        margin-inline: auto;
    }
}

.hero-card {
    background-color: var(--color-midnight-800);
    border: 2px solid rgb(16, 185, 129);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    width: 100%;
    max-width: 22rem;
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
    transition: transform var(--duration-slow) var(--ease-default),
                box-shadow var(--duration-slow) var(--ease-default),
                background-color var(--duration-slow) var(--ease-default);
    box-shadow:
        0 0 40px rgba(16, 185, 129, 0.25),
        0 0 80px rgba(16, 185, 129, 0.08);
}

.hero-card:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
    background-color: var(--color-midnight-700);
    box-shadow:
        0 0 60px rgba(16, 185, 129, 0.45),
        0 0 120px rgba(16, 185, 129, 0.15);
}

/* Notification banner */
.hero-card__notification {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background-color: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-success-600);
    font-weight: var(--weight-medium);
    margin-block-end: var(--space-5);
}

/* Progress ring */
.hero-card__ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-inline: auto;
    margin-block-end: var(--space-5);
}

.hero-card__ring {
    width: 100%;
    height: 100%;
}

.hero-card__ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-card__ring-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    line-height: 1;
}

.hero-card__ring-text {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-block-start: var(--space-1);
}

/* Mini stats row */
.hero-card__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-top: 1px solid var(--color-midnight-700);
    border-bottom: 1px solid var(--color-midnight-700);
    margin-block-end: var(--space-4);
}

.hero-card__stat {
    text-align: center;
}

.hero-card__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    line-height: 1;
}

.hero-card__stat-value--success {
    font-size: var(--text-sm);
    color: var(--color-success-600);
}

.hero-card__stat-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    margin-block-start: var(--space-1);
}

.hero-card__stat-divider {
    width: 1px;
    height: 28px;
    background-color: var(--color-midnight-700);
}

/* Recent activity list */
.hero-card__activity {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.hero-card__activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    padding: var(--space-2) var(--space-2);
    border-radius: var(--radius-sm);
    transition: background-color var(--duration-fast) var(--ease-default);
}

.hero-card__activity-item:hover {
    background-color: var(--color-midnight-900);
}

.hero-card__activity-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.hero-card__activity-dot--blue  { background-color: var(--color-cb-blue); }
.hero-card__activity-dot--green { background-color: var(--color-success-600); }
.hero-card__activity-dot--red   { background-color: var(--color-cb-red); }

.hero-card__activity-hours {
    margin-left: auto;
    color: var(--color-success-600);
    font-weight: var(--weight-medium);
    font-size: var(--text-xs);
}

/* ===== 2. THE PROBLEM (StoryBrand: 3-Layer Problem) ===== */

.problem {
    padding-block: 6rem;
    background-color: var(--color-midnight-950);
}

.problem__lead {
    color: var(--color-slate-400);
    max-width: 50ch;
    margin-inline: auto;
    text-align: center;
    line-height: var(--leading-relaxed);
    margin-block-start: var(--space-4);
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    margin-block-start: var(--space-20);
    align-items: stretch;
}

@media (max-width: 64em) {
    .problem__grid {
        grid-template-columns: 1fr;
        max-width: 32rem;
        margin-inline: auto;
    }
}

/* Middle card floats above the other two */
.problem__grid > :nth-child(2) {
    position: relative;
    top: -2.5rem;
    z-index: 2;
}

@media (max-width: 64em) {
    .problem__grid > :nth-child(2) {
        top: 0;
    }
}

.problem__card {
    background-color: var(--color-midnight-800);
    border: 2px solid var(--color-cb-red);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    box-shadow: 0 0 50px rgba(193, 0, 0, 0.3), 0 0 100px rgba(193, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--duration-normal) var(--ease-default),
                border-color var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default),
                background-color var(--duration-normal) var(--ease-default);
}

/* Per-card default colors */
.problem__card[data-layer="internal"] {
    border-color: var(--neon-blue);
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.3),
        0 0 100px rgba(59, 130, 246, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.4);
}

.problem__card[data-layer="philosophical"] {
    border-color: var(--neon-gold);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.3), 0 0 100px rgba(245, 158, 11, 0.1);
}

/* Hover: lift, scale, intensified glow, lighter background */
.problem__card:hover {
    transform: translateY(-8px) scale(1.03);
    background-color: var(--color-midnight-700);
    box-shadow: 0 0 80px rgba(193, 0, 0, 0.5), 0 0 140px rgba(193, 0, 0, 0.2);
}

.problem__card[data-layer="internal"]:hover {
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.5), 0 0 140px rgba(59, 130, 246, 0.2);
}

.problem__card[data-layer="philosophical"]:hover {
    box-shadow: 0 0 80px rgba(245, 158, 11, 0.5), 0 0 140px rgba(245, 158, 11, 0.2);
}

.problem__icon-wrap {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    margin-block-end: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-midnight-800);
    border: 2px solid rgb(193, 0, 0);
    border-radius: var(--radius-full);
    box-shadow: 0 0 30px rgba(193, 0, 0, 0.35), 0 0 60px rgba(193, 0, 0, 0.12);
    animation: icon-pulse-red 3s ease-in-out infinite;
}

@keyframes icon-pulse-red {
    0%, 100% {
        box-shadow: 0 0 30px rgba(193, 0, 0, 0.35), 0 0 60px rgba(193, 0, 0, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 45px rgba(193, 0, 0, 0.55), 0 0 90px rgba(193, 0, 0, 0.25);
        transform: scale(1.06);
    }
}

.problem__icon {
    width: 32px;
    height: 32px;
    color: rgb(193, 0, 0);
}

/* Match icon colors to card accent */
[data-layer="internal"] .problem__icon-wrap {
    border-color: rgb(59, 130, 246);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.12);
    animation: icon-pulse-blue 3s ease-in-out infinite;
}

@keyframes icon-pulse-blue {
    0%, 100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 45px rgba(59, 130, 246, 0.55), 0 0 90px rgba(59, 130, 246, 0.25);
        transform: scale(1.06);
    }
}

[data-layer="internal"] .problem__icon {
    color: var(--neon-blue);
}

[data-layer="philosophical"] .problem__icon-wrap {
    border-color: rgb(245, 158, 11);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.35), 0 0 60px rgba(245, 158, 11, 0.12);
    animation: icon-pulse-orange 3s ease-in-out infinite;
}

@keyframes icon-pulse-orange {
    0%, 100% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.35), 0 0 60px rgba(245, 158, 11, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 45px rgba(245, 158, 11, 0.55), 0 0 90px rgba(245, 158, 11, 0.25);
        transform: scale(1.06);
    }
}

[data-layer="philosophical"] .problem__icon {
    color: var(--neon-gold);
}

@media (prefers-reduced-motion: reduce) {
    .problem__icon-wrap {
        animation: none;
    }
}

.problem__layer-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-cb-red-400);
    margin-block-end: var(--space-3);
}

.problem__headline {
    font-size: var(--text-xl);
    color: var(--color-white);
    margin-block-end: var(--space-3);
}

.problem__description {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
    max-width: 30ch;
    margin-inline: auto;
    flex-grow: 1;
}

/* ===== 3. THE GUIDE (StoryBrand: Empathy + Authority) ===== */

.guide {
    padding-block: 6rem;
    background-color: var(--surface-dark);
}

.guide__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 64em) {
    .guide__layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.guide__empathy-text {
    font-size: var(--text-lg);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
    font-style: italic;
    border-inline-start: 3px solid;
    border-image: var(--gradient-brand-vertical) 1;
    padding-inline-start: var(--space-6);
}

.guide__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.guide__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
    padding: var(--space-6);
    background-color: var(--color-midnight-800);
    border: 2px solid var(--color-cb-red);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(193, 0, 0, 0.25), 0 0 80px rgba(193, 0, 0, 0.08);
    transition: transform var(--duration-normal) var(--ease-default),
                border-color var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default),
                background-color var(--duration-normal) var(--ease-default);
}

/* Per-card accent colors */
.guide__stat:nth-child(2) {
    border-color: var(--neon-blue);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.25), 0 0 80px rgba(59, 130, 246, 0.08);
}

.guide__stat:nth-child(3) {
    border-color: var(--neon-gold);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), 0 0 80px rgba(245, 158, 11, 0.08);
}

.guide__stat:nth-child(4) {
    border-color: #10b981;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.25), 0 0 80px rgba(16, 185, 129, 0.08);
}

/* Hover: lift + intensified glow */
.guide__stat:hover {
    transform: translateY(-6px) scale(1.03);
    background-color: var(--color-midnight-700);
    box-shadow: 0 0 60px rgba(193, 0, 0, 0.45), 0 0 120px rgba(193, 0, 0, 0.15);
}

.guide__stat:nth-child(2):hover {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.45), 0 0 120px rgba(59, 130, 246, 0.15);
}

.guide__stat:nth-child(3):hover {
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.45), 0 0 120px rgba(245, 158, 11, 0.15);
}

.guide__stat:nth-child(4):hover {
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.45), 0 0 120px rgba(16, 185, 129, 0.15);
}

/* Per-card icon colors */
.guide__stat-icon {
    width: 28px;
    height: 28px;
    color: var(--color-cb-red-400);
}

.guide__stat:nth-child(2) .guide__stat-icon {
    color: var(--neon-blue);
}

.guide__stat:nth-child(3) .guide__stat-icon {
    color: var(--neon-gold);
}

.guide__stat:nth-child(4) .guide__stat-icon {
    color: #10b981;
}

.guide__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    line-height: 1;
}

.guide__stat-label {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

.guide__logos {
    margin-block-start: var(--space-16);
    text-align: center;
}

.guide__logos-label {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-block-end: var(--space-6);
}

.guide__logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

/* guide__logo-img moved to _components.css (shared across pages) */

/* ===== 4. THE PLAN (StoryBrand: Simple 3-Step Process) ===== */

.plan {
    padding-block: 6rem;
    background-color: var(--color-midnight-950);
    overflow: hidden;
}

/* ── Progress track (desktop only) ── */
.plan__track {
    display: none;
}

@media (min-width: 64em) {
    .plan__track {
        display: block;
        position: absolute;
        /* 40px = centre of the 80px icon circles */
        top: 40px;
        left: calc(100% / 6);
        right: calc(100% / 6);
        height: 2px;
        z-index: 0;
        transform: translateY(-50%);
    }

    .plan__track-line {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, var(--color-cb-red), var(--neon-blue), var(--neon-gold));
        border-radius: 2px;
        opacity: 0.6;
    }

    .plan__track-glow {
        position: absolute;
        inset: -4px 0;
        background: linear-gradient(90deg, var(--color-cb-red), var(--neon-blue), var(--neon-gold));
        border-radius: 8px;
        filter: blur(8px);
        opacity: 0.4;
        animation: plan-track-pulse 3s ease-in-out infinite;
    }
}

@keyframes plan-track-pulse {
    0%, 100% { opacity: 0.25; filter: blur(8px); }
    50%      { opacity: 0.6;  filter: blur(12px); }
}

/* ── Step grid ── */
.plan__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 64em) {
    .plan__steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
        max-width: 100%;
        position: relative;
    }
}

/* ── Individual step ── */
.plan__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 24rem;
}

/* ── Icon wrap (ring + number badge) ── */
.plan__step-icon-wrap {
    position: relative;
    margin-block-end: var(--space-5);
    z-index: 1;
}

.plan__step-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--color-midnight-800);
    border: 2px solid var(--step-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px color-mix(in srgb, var(--step-color) 30%, transparent),
        0 0 60px color-mix(in srgb, var(--step-color) 10%, transparent);
    transition: transform var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default);
}

.plan__step-icon svg {
    width: 36px;
    height: 36px;
    color: var(--step-color);
}

.plan__step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--step-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ── Mobile connector ── */
.plan__connector-mobile {
    width: 2px;
    height: 40px;
    margin-block: var(--space-2);
    position: relative;
}

.plan__connector-mobile svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--step-color) 50%, transparent));
}

.plan__connector-line {
    stroke: var(--step-color);
    stroke-dasharray: 6 4;
    opacity: 0.5;
}

@media (min-width: 64em) {
    .plan__connector-mobile {
        display: none;
    }
}

/* ── Step card ── */
.plan__step-card {
    background-color: var(--color-midnight-800);
    border: 2px solid var(--step-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    width: 100%;
    flex-grow: 1;
    box-shadow:
        0 0 40px color-mix(in srgb, var(--step-color) 25%, transparent),
        0 0 80px color-mix(in srgb, var(--step-color) 8%, transparent);
    transition: transform var(--duration-normal) var(--ease-default),
                border-color var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default),
                background-color var(--duration-normal) var(--ease-default);
}

.plan__step-card:hover {
    transform: translateY(-6px) scale(1.03);
    background-color: var(--color-midnight-700);
    box-shadow:
        0 0 60px color-mix(in srgb, var(--step-color) 45%, transparent),
        0 0 120px color-mix(in srgb, var(--step-color) 15%, transparent);
}

.plan__step-card:hover ~ .plan__step-icon-wrap .plan__step-icon,
.plan__step:hover .plan__step-icon {
    transform: scale(1.1);
    box-shadow:
        0 0 50px color-mix(in srgb, var(--step-color) 45%, transparent),
        0 0 90px color-mix(in srgb, var(--step-color) 18%, transparent);
}

.plan__step-title {
    font-size: var(--text-lg);
    color: var(--color-white);
    margin-block-end: var(--space-2);
    font-weight: var(--weight-semibold);
}

.plan__step-description {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
}

/* ── Desktop: equal-height cards ── */
@media (min-width: 64em) {
    .plan__steps {
        align-items: stretch;
    }

    .plan__step-card {
        flex-grow: 1;
    }
}

/* ── Plan CTA button ── */
.plan__cta {
    text-align: center;
    margin-block-start: var(--space-16);
    position: relative;
    z-index: 2;
}

/* ===== 5. SUCCESS (StoryBrand: Transformation Outcome) ===== */

.success {
    padding-block: 6rem;
    background-color: var(--surface-dark);
}

.success__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 64em) {
    .success__layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

.success__copy h2 {
    color: var(--color-white);
    margin-block-end: var(--space-6);
}

.success__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-block-end: var(--space-6);
}

.success__list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-slate-300);
    line-height: var(--leading-relaxed);
}

.success__check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-block-start: 2px;
}

/* Mock window (shared with dashboard) */
.mock-window {
    background-color: var(--color-midnight-800);
    border: 2px solid rgb(16, 185, 129);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform var(--duration-slow) var(--ease-default),
                box-shadow var(--duration-slow) var(--ease-default),
                background-color var(--duration-slow) var(--ease-default);
    box-shadow:
        0 0 40px rgba(16, 185, 129, 0.25),
        0 0 80px rgba(16, 185, 129, 0.08);
}

.mock-window:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
    background-color: var(--color-midnight-700);
    box-shadow:
        0 0 60px rgba(16, 185, 129, 0.45),
        0 0 120px rgba(16, 185, 129, 0.15);
}

.mock-window__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-midnight-900);
    border-bottom: 1px solid var(--color-midnight-700);
    position: relative;
}

/* Gradient top accent removed — clashed with the window border */

.mock-window__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.mock-window__dot--red    { background-color: #FF5F57; }
.mock-window__dot--yellow { background-color: #FEBC2E; }
.mock-window__dot--green  { background-color: #28C840; }

.mock-window__body {
    padding: var(--space-6);
}

/* Dashboard stats inside the mock */
.mock-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-block-end: var(--space-6);
}

.mock-stat {
    background-color: var(--color-midnight-900);
    border: 1px solid var(--color-midnight-700);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.mock-stat__label {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-block-end: var(--space-2);
}

.mock-stat__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    line-height: 1;
}

.mock-stat__trend {
    font-size: var(--text-xs);
    color: var(--color-success-600);
    margin-block-start: var(--space-1);
}

/* Progress bars inside mock */
.mock-progress {
    margin-block-end: var(--space-4);
}

.mock-progress__header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-block-end: var(--space-2);
}

.mock-progress__label {
    color: var(--color-slate-300);
}

.mock-progress__value {
    color: var(--color-cb-blue);
    font-weight: var(--weight-semibold);
}

.mock-progress__track {
    height: 8px;
    background-color: var(--color-midnight-700);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mock-progress__fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    width: 0;
    transition: width 1.5s var(--ease-out);
}

.mock-progress__fill--success {
    background: var(--color-success-600);
}

/* ===== 6. FAILURE (StoryBrand: Stakes Comparison) ===== */

.failure {
    padding-block: 6rem;
    background-color: var(--color-midnight-950);
    /* The columns slide in from the sides; clip them so phones never get a
       sideways scroll before the reveal plays. */
    overflow-x: clip;
}

.failure__comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

@media (max-width: 48em) {
    .failure__comparison {
        grid-template-columns: 1fr;
    }
}

.failure__column {
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    background-color: var(--color-midnight-800);
    transition: transform var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default),
                background-color var(--duration-normal) var(--ease-default);
}

.failure__column:hover {
    transform: translateY(-6px) scale(1.03);
    background-color: var(--color-midnight-700);
}

.failure__column--without {
    border: 2px solid var(--color-cb-red);
    box-shadow:
        0 0 40px rgba(193, 0, 0, 0.25),
        0 0 80px rgba(193, 0, 0, 0.08);
}

.failure__column--without:hover {
    box-shadow:
        0 0 60px rgba(193, 0, 0, 0.45),
        0 0 120px rgba(193, 0, 0, 0.15);
}

.failure__column--with {
    border: 2px solid rgb(16, 185, 129);
    box-shadow:
        0 0 40px rgba(16, 185, 129, 0.25),
        0 0 80px rgba(16, 185, 129, 0.08);
}

.failure__column--with:hover {
    box-shadow:
        0 0 60px rgba(16, 185, 129, 0.45),
        0 0 120px rgba(16, 185, 129, 0.15);
}

.failure__column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-block-end: var(--space-6);
    padding-block-end: var(--space-4);
    border-bottom: 1px solid var(--color-midnight-700);
}

.failure__column-header h3 {
    color: var(--color-white);
    font-size: var(--text-lg);
}

.failure__column-header-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.failure__column--without .failure__column-header-icon {
    color: var(--color-cb-red-400);
}

.failure__column--with .failure__column-header-icon {
    color: var(--color-success-600);
}

.failure__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: background-color var(--duration-fast) var(--ease-default);
}

.failure__item:hover {
    background-color: var(--color-midnight-900);
}

.failure__item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-block-start: 2px;
}

.failure__item-icon--negative {
    color: var(--color-cb-red-400);
}

.failure__item-icon--positive {
    color: var(--color-success-600);
}

.failure__item-title {
    font-size: var(--text-base);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
    margin-block-end: var(--space-1);
}

.failure__item-desc {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
}

/* ===== 7. TESTIMONIALS ===== */
/* Marquee styles moved to _components.css (shared with pricing page) */

/* ===== 8. COURSE CATEGORIES — 3D Flip Cards ===== */

.featured-courses {
    padding-block: 6rem;
    background-color: var(--color-midnight-950);
}

/* ── Grid (3×2 desktop, 2-col tablet, 1-col mobile) ── */
.courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 64em) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 30em) {
    .courses__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card wrapper (perspective) ── */
.courses__card-wrap {
    --cc: 68, 120, 204; /* fallback, overridden by inline style */
    perspective: 1000px;
    min-height: 360px;
}

/* ── Card (3D flip container) ── */
.courses__card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.courses__card-wrap:hover .courses__card,
.courses__card-wrap.is-flipped .courses__card {
    transform: rotateY(180deg);
}

/* ── Shared face styles ── */
.courses__card-front,
.courses__card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background-color: var(--color-midnight-800);
    border: 2px solid rgb(var(--cc));
    box-shadow:
        0 0 40px rgba(var(--cc), 0.25),
        0 0 80px rgba(var(--cc), 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    transition: box-shadow var(--duration-slow) ease;
}

.courses__card-wrap:hover .courses__card-front,
.courses__card-wrap:hover .courses__card-back {
    box-shadow:
        0 0 60px rgba(var(--cc), 0.45),
        0 0 120px rgba(var(--cc), 0.15);
}

/* ── FRONT FACE ── */
.courses__card-front {
    text-align: center;
    justify-content: center;
    gap: var(--space-3);
}

/* Icon ring — large, glowing, pulsing */
.courses__card-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    border: 2px solid rgb(var(--cc));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--cc));
    box-shadow:
        0 0 30px rgba(var(--cc), 0.35),
        0 0 60px rgba(var(--cc), 0.12);
    margin-block-end: var(--space-3);
    /* @keyframes icon-pulse is in _components.css (ICON RING) */
    animation: icon-pulse 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .courses__card-icon-ring {
        animation: none;
    }
}

/* Category title */
.courses__card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
}

/* Tagline */
.courses__card-tagline {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
    max-width: 22ch;
}

/* Course count */
.courses__card-count {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-block-start: var(--space-2);
}

.courses__card-count-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    color: rgb(var(--cc));
    line-height: 1;
}

.courses__card-count-label {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hint text */
.courses__card-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    margin-block-start: auto;
}

.courses__card-hint svg {
    color: rgba(var(--cc), 0.6);
}

.courses__card-hint--back {
    display: none;
}

/* ── BACK FACE ── */
.courses__card-back {
    transform: rotateY(180deg);
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-3);
    background-color: var(--color-midnight-900);
}

.courses__card-back-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: rgb(var(--cc));
    font-weight: var(--weight-semibold);
    letter-spacing: -0.01em;
}

.courses__card-back-desc {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    line-height: var(--leading-relaxed);
}

/* Topic list */
.courses__card-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
}

.courses__card-topics li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-slate-300);
}

.courses__card-topics svg {
    color: rgb(var(--cc));
    flex-shrink: 0;
}

/* Browse button */
.courses__card-enroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    background-color: rgb(var(--cc));
    border: 1px solid rgb(var(--cc));
    color: var(--color-white);
    font-family: inherit;
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, filter var(--duration-normal) ease;
    margin-block-start: auto;
}

.courses__card-enroll:hover {
    background-color: rgb(var(--cc));
    box-shadow: 0 0 24px rgba(var(--cc), 0.5);
    filter: brightness(1.15);
}

/* ── Touch devices: show back hint, hide front hint ── */
@media (hover: none) {
    .courses__card-hint:not(.courses__card-hint--back) {
        display: none;
    }
    .courses__card-hint--back {
        display: flex;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .courses__card {
        transition: none;
    }
}

/* ── Featured CE course tiles (below the flip cards) ── */
.featured-courses__tiles {
    margin-block-start: var(--space-16);
}

.featured-courses__tiles-title {
    margin-block-end: var(--space-8);
    text-align: center;
    color: var(--color-white);
}

/* ===== COURSE TILE GRID (program and CE course tiles) ===== */
/* Same 3 / 2 / 1 columns as the flip cards */
.tiles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 64em) {
    .tiles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 30em) {
    .tiles__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 9. CTA SECTION ===== */
/* CTA styles moved to _components.css (shared across pages) */


/* ===== SECTION BLENDING ===== */
/* Smooth gradient transitions between alternating 950/900 backgrounds.
   Each section names the background of the section below it:
   data-blend="900" fades its bottom edge into midnight-900 (--surface-dark),
   data-blend="950" into midnight-950. */

[data-blend] {
    position: relative;
}

/* → 900: bottom fades into lighter */
[data-blend="900"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--surface-dark));
    pointer-events: none;
    z-index: 0;
}

/* → 950: bottom fades into darker (the shared CTA always sits above the
   950 footer) */
[data-blend="950"]::after,
.story .cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-midnight-950));
    pointer-events: none;
    z-index: 0;
}

/* Sections that need position:relative for the blend pseudo-elements */
.problem,
.guide,
.plan,
.success,
.failure,
.testimonials,
.featured-courses {
    position: relative;
}

/* ===== SHARED SECTION STYLES ===== */

.section-header {
    text-align: center;
    margin-block-end: var(--space-16);
    max-width: 48rem;
    margin-inline: auto;
}

.section-header h2 {
    color: var(--color-white);
}

.section-header .subheading {
    display: block;
    text-align: center;
}

/* Gradient line divider */
.gradient-divider {
    height: 4px;
    background: var(--gradient-brand);
}

/* GSAP animation initial states */
.gs-hidden {
    opacity: 0;
}

/* ===== HERO CARD: ACCENT MODIFIER + LABELS (home and program pages) =====
   .hero-card--accent recolours the card to its --cc accent; the company
   home uses green, program pages their own colour. */

.hero-card--accent {
    border-color: rgb(var(--cc));
    box-shadow:
        0 0 40px rgba(var(--cc), 0.25),
        0 0 80px rgba(var(--cc), 0.08);
}

.hero-card--accent:hover {
    box-shadow:
        0 0 60px rgba(var(--cc), 0.45),
        0 0 120px rgba(var(--cc), 0.15);
}

.hero-card__title,
.hero-card__activity-title {
    margin: 0;
    max-width: none;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.hero-card__title {
    margin-block-end: var(--space-3);
    text-align: center;
}

.hero-card__activity-title {
    margin-block-end: var(--space-1);
}

/* ===== PROGRAMS GRID (home page, id="programs") ===== */

.programs {
    padding-block: 6rem;
    background-color: var(--surface-dark);
}

.programs__lead,
.formats__lead,
.tiles__lead,
.faq__lead {
    margin: var(--space-4) auto 0;
    max-width: 40rem;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 64em) {
    .programs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 36em) {
    .programs__grid {
        grid-template-columns: 1fr;
    }
}

/* Career path rail above the program cards: three numbered stages joined
   by a dashed connector. Markers run red, purple, blue (the brand
   progression); program links keep their own colours. No gradient lines. */
.pathway {
    --pathway-marker: 3.5rem;
    --pathway-gap: var(--space-8);
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--pathway-gap);
    margin: 0 0 var(--space-16);
    padding: 0;
    list-style: none;
}

.pathway::before {
    content: '';
    position: absolute;
    top: calc(var(--pathway-marker) / 2 - 1px);
    left: calc((100% - 2 * var(--pathway-gap)) / 6);
    right: calc((100% - 2 * var(--pathway-gap)) / 6);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-slate-500) 0 8px, transparent 8px 16px);
}

.pathway__stage {
    --cc: var(--accent-red-rgb);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}

.pathway__stage--advanced {
    --cc: var(--accent-purple-rgb);
}

.pathway__stage--recert {
    --cc: var(--accent-blue-rgb);
}

.pathway__marker {
    display: grid;
    place-items: center;
    width: var(--pathway-marker);
    height: var(--pathway-marker);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    background-color: var(--color-midnight-800);
    border: 2px solid rgb(var(--cc));
    border-radius: var(--radius-full);
    box-shadow:
        0 0 30px rgba(var(--cc), 0.35),
        0 0 60px rgba(var(--cc), 0.12);
    animation: icon-pulse 3s ease-in-out infinite;
}

.pathway__title {
    margin: var(--space-2) 0 0;
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
    color: var(--color-white);
}

.pathway__desc {
    max-width: 22rem;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.pathway__programs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
    margin: var(--space-1) 0 0;
    padding: 0;
    list-style: none;
}

.pathway__program {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-slate-200);
    text-decoration: none;
    text-underline-offset: 4px;
}

.pathway__program:hover,
.pathway__program:focus-visible {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgb(var(--cc));
}

.pathway__program:hover .navbar__dot {
    box-shadow: 0 0 14px rgba(var(--cc), 0.9);
}

/* Phones: a vertical path, markers on the left */
@media (max-width: 48em) {
    .pathway {
        --pathway-gap: var(--space-8);
        grid-template-columns: 1fr;
        margin-block-end: var(--space-12);
    }

    /* One dashed segment per gap, from each marker down to the next, so
       the line never runs past the last step. */
    .pathway::before {
        content: none;
    }

    .pathway__stage:not(:last-child)::after {
        content: '';
        position: absolute;
        top: var(--pathway-marker);
        bottom: calc(-1 * var(--pathway-gap));
        left: calc(var(--pathway-marker) / 2 - 1px);
        width: 2px;
        background: repeating-linear-gradient(180deg, var(--color-slate-500) 0 8px, transparent 8px 16px);
    }

    .pathway__stage {
        display: grid;
        grid-template-columns: var(--pathway-marker) 1fr;
        column-gap: var(--space-4);
        row-gap: var(--space-2);
        align-items: start;
        text-align: start;
    }

    .pathway__marker {
        grid-row: 1 / span 3;
    }

    .pathway__title {
        margin-block-start: var(--space-3);
    }

    .pathway__programs {
        justify-content: flex-start;
    }
}

.program-card {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    height: 100%;
    padding: var(--space-8) var(--space-6) var(--space-6);
    color: inherit;
    text-decoration: none;
}

.program-card:focus-visible {
    outline: 2px solid rgb(var(--cc));
    outline-offset: 4px;
}

.program-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
}

.program-card .icon-ring {
    width: 64px;
    height: 64px;
}

.program-card .icon-ring svg {
    width: 28px;
    height: 28px;
}

/* Course counter, top right of every card */
.program-card__count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
}

.program-card__count-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--cc-text);
    text-shadow: 0 0 24px rgba(var(--cc), 0.45);
}

.program-card__count-label {
    margin-block-start: var(--space-1);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-slate-300);
}

.program-card__title {
    margin: 0;
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
    color: var(--color-white);
}

.program-card__desc {
    flex-grow: 1;
    max-width: none;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

/* A status line under the description (IBSC: application pending) */
.program-card__note {
    max-width: none;
    margin: calc(var(--space-2) * -1) 0 0;
    font-size: var(--text-xs);
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: var(--cc-text);
}

.feature-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-card__chips li {
    padding: 2px var(--space-3);
    font-size: var(--text-xs);
    color: var(--cc-text);
    background: rgba(var(--cc), 0.08);
    border: 1px solid rgba(var(--cc), 0.35);
    border-radius: var(--radius-full);
}

.program-card__footer {
    display: flex;
    align-items: center;
    width: 100%;
    padding-block-start: var(--space-4);
    border-top: 1px solid var(--color-midnight-700);
}

.program-card__more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-inline-start: auto;
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
}

.program-card__more svg,
.feature-card__cta svg {
    transition: transform var(--duration-fast) var(--ease-default);
}

.program-card:hover .program-card__more svg,
.feature-card__cta:hover svg {
    transform: translateX(4px);
}

/* 'Not sure where to start?' with two buttons */
.programs__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-block-start: var(--space-12);
    text-align: center;
}

.programs__prompt {
    margin: 0;
    max-width: none;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-slate-200);
}

.programs__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ===== FORMATS (where we train: home and program pages) ===== */

.formats {
    padding-block: 6rem;
    background-color: var(--surface-dark);
}

/* Cards wrap and centre, so five formats read 3 + 2 on desktop */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.feature-card {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    flex: 1 1 20rem;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

/* Exactly four cards (the AHA page's formats and course options) read 2 + 2
   instead of 3 + 1: a half-width basis leaves room for two per row. */
@media (min-width: 48em) {
    .feature-grid:has(> .feature-card:nth-child(4):last-child) > .feature-card {
        flex-basis: calc(50% - var(--space-6));
        max-width: 30rem;
    }
}

.feature-card .icon-ring {
    margin-block-end: var(--space-2);
}

.feature-card__title {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--color-white);
}

.feature-card__desc,
.feature-card__address {
    max-width: none;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.feature-card__best {
    max-width: none;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-400);
}

.feature-card__best-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--cc-text);
}

.feature-card__chips {
    justify-content: center;
}

.feature-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-block-start: auto;
    padding-block-start: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
    text-decoration: none;
}

.feature-card__cta:hover {
    color: var(--color-white);
}

/* ===== REQUEST MODAL ('Request a Date' / 'Request Training') ===== */

.request-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.request-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: color-mix(in srgb, var(--color-midnight-950) 80%, transparent);
    backdrop-filter: blur(4px);
}

.request-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 40rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--text-primary);
    background-color: var(--color-midnight-800);
    border: 2px solid var(--color-cb-red);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 40px rgba(var(--accent-red-rgb), 0.25),
        0 0 80px rgba(var(--accent-red-rgb), 0.08),
        var(--depth-3);
}

.request-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-6) 0;
}

.request-modal__title {
    margin: 0;
    font-size: var(--text-2xl);
    color: var(--color-white);
}

.request-modal__close {
    display: inline-flex;
    padding: var(--space-2);
    color: var(--color-slate-400);
    background: none;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-default), background-color var(--duration-fast) var(--ease-default);
}

.request-modal__close:hover {
    color: var(--color-white);
    background-color: var(--color-midnight-700);
}

.request-modal__body {
    padding: var(--space-4) var(--space-6) var(--space-6);
}

.request-form__intro {
    max-width: none;
    margin: 0 0 var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-slate-300);
}

/* The course a tile preselected ('Request a Date' on a course tile). */
.request-form__course {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    max-width: none;
    margin: calc(-1 * var(--space-2)) 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: rgba(var(--cc), 0.10);
    border: 1px solid rgba(var(--cc), 0.30);
    border-radius: var(--radius-md);
}

.request-form__course-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.request-form__course-title {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
}

.request-form__alert {
    margin-block-end: var(--space-4);
}

.request-form__alert:focus {
    outline: 2px solid var(--color-cb-red-300);
    outline-offset: 2px;
}

.request-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.request-form__grid .form-group {
    margin: 0;
}

.request-form__full {
    grid-column: 1 / -1;
}

@media (max-width: 36em) {
    .request-form__grid {
        grid-template-columns: 1fr;
    }
}

.request-modal .form-label {
    color: var(--color-slate-300);
}

.request-modal .form-input {
    color: var(--color-white);
    background-color: var(--color-midnight-900);
    /* slate-500: 3:1 against the dialog, so the fields are visible */
    border-color: var(--color-slate-500);
}

.request-modal .form-error {
    color: var(--color-cb-red-300);
}

.request-modal .form-input:focus {
    border-color: var(--color-cb-red-400);
    box-shadow: 0 0 0 3px rgba(var(--accent-red-rgb), 0.35);
    outline: none;
}

.request-modal .form-input[aria-invalid="true"] {
    border-color: var(--color-cb-red-400);
}

/* Honeypot: off-screen for people, still in the form for bots */
.request-form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.request-form__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-block-start: var(--space-6);
}

.request-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-6);
    text-align: center;
}

.request-success__icon {
    color: var(--accent-green);
}

.request-success__title {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--color-white);
}

.request-success__title:focus {
    outline: none;
}

.request-success__text {
    max-width: none;
    margin: 0 0 var(--space-3);
    color: var(--color-slate-300);
}

@media (prefers-reduced-motion: reduce) {
    .program-card__more svg,
    .feature-card__cta svg,
    .request-modal__close {
        transition: none;
    }

    .pathway__marker {
        animation: none;
    }
}


/* ===== PROGRAM PAGES (/training/<program>/, programs/program.html) =====
   Hero in the program colour with the next available dates, course tiles
   grouped by category, and the FAQ section. Section backgrounds alternate
   with the neighbours: tiles 950, FAQ 900 (see SECTION BLENDING). */

/* Hero: the left glow takes the page accent instead of CAPCE red. */
.hero--program::after {
    background: radial-gradient(ellipse, rgba(var(--cc), 0.10) 0%, transparent 70%);
}

/* Program badge(s) above the title. Carries .hero__subheading so the hero
   timeline animates it; the pills set their own type. */
.hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ── Status note (IBSC: the pending review-course application) ──
   A gold notice at the foot of the hero; stacks on phones. */

.status-note {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 56rem;
    margin: var(--space-12) auto 0;
    padding: var(--space-6);
}

@media (min-width: 48em) {
    .status-note {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-5);
        padding: var(--space-6) var(--space-8);
    }
}

.status-note .icon-ring {
    flex-shrink: 0;
}

.status-note__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-xl);
    color: var(--color-white);
}

.status-note__text,
.status-note__disclaimer {
    max-width: none;
    margin: 0;
    line-height: var(--leading-relaxed);
}

.status-note__text {
    color: var(--color-slate-300);
}

.status-note__disclaimer {
    margin-block-start: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

.status-note__details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    margin: var(--space-3) 0 0;
}

.status-note__details dt {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--cc-text);
}

.status-note__details dd {
    margin: 0;
    color: var(--color-white);
}

.status-note__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-block-start: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
    text-decoration: none;
}

.status-note__link:hover {
    color: var(--color-white);
}

/* ── Hero card: next available dates ── */

.hero-card--dates {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    max-width: 26rem;
}

.hero-card__dates {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card__date-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-3);
    background-color: var(--color-midnight-900);
    border: 1px solid var(--color-midnight-700);
    border-radius: var(--radius-md);
}

.hero-card__date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3.25rem;
    padding-block: var(--space-2);
    background: rgba(var(--cc), 0.12);
    border: 1px solid rgba(var(--cc), 0.35);
    border-radius: var(--radius-md);
}

.hero-card__date-month {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--cc-text);
}

.hero-card__date-day {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    line-height: 1;
    color: var(--color-white);
}

.hero-card__date-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    min-width: 0;
}

.hero-card__date-course {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-white);
}

.hero-card__date-meta {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

.hero-card__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-4);
    text-align: center;
}

.hero-card__empty-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
}

.hero-card__empty-text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

/* ── Course tiles (id="courses") ── */

.tiles {
    padding-block: var(--space-24);
    background-color: var(--color-midnight-950);
    scroll-margin-top: var(--space-24);
}

.tiles__subheading {
    color: var(--color-cb-red-400);
}

/* Program course durations run long ('16 hours · 2 days, or hybrid...'),
   so the duration takes its own line and every tile ends with the price on
   the left and the button on the right. */
.tiles .program-tile__meta {
    flex-basis: 100%;
}

.tiles__group + .tiles__group {
    margin-block-start: var(--space-16);
}

.tiles__group-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-block-end: var(--space-6);
}

.tiles__group-title {
    margin: 0;
    font-size: var(--text-2xl);
    color: var(--color-white);
}

.tiles__group-desc {
    max-width: 40rem;
    margin: var(--space-1) 0 0;
    font-size: var(--text-base);
    color: var(--color-slate-400);
}

.tiles__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: 36rem;
    margin-inline: auto;
    padding: var(--space-10) var(--space-8);
    text-align: center;
    outline: 1px dashed rgba(var(--cc), 0.4);
    outline-offset: -8px;
}

.tiles__empty-title {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--color-white);
}

.tiles__empty-text {
    margin: 0;
    color: var(--color-slate-400);
}

/* ── FAQ ── */

.faq {
    padding-block: var(--space-24);
    background-color: var(--surface-dark);
}


/* ===== COURSE PAGES (/training/<program>/<slug>/, programs/course.html) =====
   Hero with breadcrumbs and a facts row, the overview beside its 'At a
   Glance' card, the date list (id="sessions") and more courses from the
   program. Backgrounds alternate: hero 950, overview 900, dates 950, FAQ
   900, related 950. No gradient strip on any card's top edge. */

.hero--course {
    padding-block-start: var(--space-8);
}

.course-hero__crumbs {
    position: relative;
    z-index: 2;
    margin-block-end: var(--space-6);
}

.course-hero__crumbs .breadcrumbs {
    flex-wrap: wrap;
    padding-block: 0;
    color: var(--color-slate-300);
}

.course-hero__crumbs .breadcrumbs a {
    color: var(--color-slate-400);
}

.course-hero__crumbs .breadcrumbs a:hover {
    color: var(--color-white);
}

.course-hero__crumbs .breadcrumbs__separator {
    color: var(--color-midnight-700);
}

/* Course titles run long ('... (DICO-C) Refresher Course'), so the hero
   title is a step smaller than on the program pages. */
.course-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.hero--course .hero__pills {
    align-items: center;
}

/* Duration, credential and price under the buttons. */
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    margin: var(--space-8) 0 0;
    padding: var(--space-4) 0 0;
    list-style: none;
    border-top: 1px solid var(--color-midnight-800);
}

.hero__meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    color: var(--color-slate-300);
}

.hero__meta-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-block-start: 1px;
    color: rgb(var(--cc));
}

/* The price with its card and bank prices and their note (review stop 13c
   v2, components/_price_pair.html): the item takes the row's width on a
   phone, and the note wraps under the prices. */
.hero__meta-item--prices {
    flex: 1 1 16rem;
    min-width: 0;
}

.hero__meta-prices {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
}

/* ── Overview and the 'At a Glance' card ── */

/* clip, not hidden: the aside slides in from the right without widening
   the page, and a clip keeps position: sticky working. */
.course-detail {
    padding-block: var(--space-24);
    background-color: var(--surface-dark);
    overflow-x: clip;
}

.course-detail__layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-10);
}

@media (min-width: 64em) {
    .course-detail__layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: var(--space-16);
    }

    /* Below the two-row sticky header (_navigation.css ANCHOR OFFSET). */
    .course-detail__aside {
        position: sticky;
        top: calc(var(--space-24) + var(--space-12));
        align-self: start;
    }
}

.course-detail__title {
    margin: 0 0 var(--space-4);
    color: var(--color-white);
}

.course-detail__heading {
    margin: var(--space-10) 0 var(--space-4);
    font-size: var(--text-xl);
    color: var(--color-white);
}

.course-detail__prose p,
.course-detail__text {
    max-width: 65ch;
    margin: 0 0 var(--space-4);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.course-detail__list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-detail__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    max-width: 65ch;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.course-detail__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-block-start: 1px;
}

.course-detail__check circle {
    fill: rgba(var(--cc), 0.14);
}

.course-detail__check path {
    stroke: rgb(var(--cc));
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Prerequisites: a plain bulleted list in the page accent. */
.course-detail__list--plain .course-detail__item::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-block-start: 0.6em;
    border-radius: var(--radius-full);
    background: rgb(var(--cc));
    box-shadow: 0 0 8px rgba(var(--cc), 0.6);
}

/* Course Instructors: one card per person at the end of the overview,
   photo (or initials) beside name, credentials, job title and bio. One
   column on a phone, as many 18rem columns as fit above. The border and
   glow come from glow-card; no strip on the top edge. */
.instructor-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.instructor-chip {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
}

@media (min-width: 36em) {
    .instructor-chip {
        padding: var(--space-5);
    }
}

/* The size of .avatar--lg, in the page accent. */
.instructor-chip__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 2px solid rgba(var(--cc), 0.4);
    border-radius: var(--radius-full);
    background-color: var(--color-midnight-900);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
}

.instructor-chip__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-chip__text {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
}

/* Name, title and bio each take overflow-wrap: anywhere (the reset gives
   every p break-word), so a long name or a link in a bio wraps rather than
   widening the overview column on a phone. */
.instructor-chip__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-white);
    overflow-wrap: anywhere;
}

.instructor-chip__creds {
    font-weight: var(--weight-regular);
    color: var(--cc-text);
}

.instructor-chip__title {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-slate-300);
    overflow-wrap: anywhere;
}

.instructor-chip__bio {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-400);
    overflow-wrap: anywhere;
}

.course-glance {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-6);
}

@media (min-width: 36em) {
    .course-glance {
        padding: var(--space-8);
    }
}

.course-glance__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.course-glance__credential {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding-block-end: var(--space-6);
    border-bottom: 1px solid var(--color-midnight-700);
}

.course-glance__credential .icon-ring {
    flex-shrink: 0;
}

.course-glance__credential-label {
    margin: 0 0 var(--space-1);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--cc-text);
}

.course-glance__credential-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-white);
}

.course-glance__credential-body {
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

.course-glance__facts {
    display: grid;
    gap: var(--space-4);
    margin: 0;
}

.course-glance__fact {
    display: grid;
    gap: var(--space-1);
}

.course-glance__fact dt {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.course-glance__fact dd {
    margin: 0;
    color: var(--color-slate-200);
}

.course-glance__price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
}

/* The Price fact with its card and bank prices under it (review stop 13c
   v2). */
.course-glance__fact dd > .course-glance__price {
    display: block;
}

.course-glance__fact dd > .price-pair-block {
    margin-block-start: var(--space-2);
}

.course-glance__formats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-1) 0 0;
    padding: 0;
    list-style: none;
}

.course-glance__cta {
    justify-content: center;
    width: 100%;
}

/* ── Upcoming dates (id="sessions") ── */

.course-dates {
    padding-block: var(--space-24);
    background-color: var(--color-midnight-950);
    scroll-margin-top: var(--space-24);
}

.course-dates .container {
    position: relative;
    z-index: 1;
}

.course-dates__lead {
    margin: var(--space-4) auto 0;
    max-width: 40rem;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-slate-300);
}

.session-list {
    display: grid;
    gap: var(--space-4);
    max-width: 56rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Date | details | price and button. Stacks on phones. */
.session-row {
    --cc-text: color-mix(in srgb, rgb(var(--cc)) 40%, var(--color-white));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-5);
}

@media (min-width: 48em) {
    .session-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-6);
        padding: var(--space-5) var(--space-6);
    }
}

.session-row__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    width: 3.5rem;
    padding-block: var(--space-2);
    background: rgba(var(--cc), 0.12);
    border: 1px solid rgba(var(--cc), 0.35);
    border-radius: var(--radius-md);
}

.session-row__month {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--cc-text);
}

.session-row__day {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    line-height: 1;
    color: var(--color-white);
}

.session-row__info {
    display: grid;
    gap: var(--space-1);
    min-width: 0;
}

.session-row__label {
    margin: 0;
    max-width: none;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-white);
}

.session-row__when {
    margin: 0;
    max-width: none;
    color: var(--color-slate-300);
}

.session-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
    margin: var(--space-1) 0 0;
    max-width: none;
    font-size: var(--text-sm);
    color: var(--color-slate-400);
}

.session-row__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-2) 0 0;
}

/* Lab time: the visitor's own booked times in this block. */
.session-row__mine {
    margin: var(--space-2) 0 0;
    max-width: none;
    font-size: var(--text-sm);
    color: var(--color-slate-300);
}

.session-row__mine a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* An unpaid card hold among them: its Pay Now. */
.session-row__mine .session-row__pay {
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.session-row__side {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block-start: var(--space-4);
    border-top: 1px solid var(--color-midnight-700);
}

@media (min-width: 48em) {
    .session-row__side {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        padding-block-start: 0;
        border-top: 0;
    }
}

.session-row__price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--cc-text);
    white-space: nowrap;
}

/* The date's price with its card and bank prices (review stop 13c v2):
   under each other at the start of the row on a phone, right-aligned
   beside the button from tablets up. The note shows once under the
   list. */
.session-row__prices {
    display: grid;
    justify-items: start;
    gap: var(--space-1);
    min-width: 0;
}

@media (min-width: 48em) {
    .session-row__prices {
        justify-items: end;
        text-align: end;
    }

    .session-row__prices .price-pair {
        justify-content: flex-end;
    }
}

.session-list__more {
    max-width: 56rem;
    margin: var(--space-6) auto 0;
    text-align: center;
}

.session-list__more-toggle {
    list-style: none;
    cursor: pointer;
}

.session-list__more-toggle::-webkit-details-marker {
    display: none;
}

/* The toggle stays in place (and keeps focus) and reads Show Fewer once
   open. */
.session-list__fewer-label,
.session-list__more[open] .session-list__more-label {
    display: none;
}

.session-list__more[open] .session-list__fewer-label {
    display: inline;
}

.session-list__more[open] > .session-list {
    margin-block-start: var(--space-6);
}

.session-list__more .session-list {
    text-align: start;
}

.course-dates__note {
    max-width: 56rem;
    margin: var(--space-6) auto 0;
    font-size: var(--text-sm);
    text-align: center;
    color: var(--color-slate-400);
}

.course-dates__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: 36rem;
    margin-inline: auto;
    padding: var(--space-10) var(--space-8);
    text-align: center;
    outline: 1px dashed rgba(var(--cc), 0.4);
    outline-offset: -8px;
}

.course-dates__empty-title {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--color-white);
}

.course-dates__empty-text {
    margin: 0;
    color: var(--color-slate-400);
}

/* ── More courses in the program ── */

.tiles--related .tiles__grid {
    position: relative;
    z-index: 1;
}

.tiles__all {
    position: relative;
    z-index: 1;
    margin: var(--space-10) 0 0;
    max-width: none;
    text-align: center;
}
