/*
 * site.css — chrome (header / footer / mobile nav) on top of base.css.
 * Page-specific styles live in their own files (home.css, etc.).
 */

/* === Nav active state ============================================== */
.nav__links a[aria-current="page"] {
    color: var(--link-ink);
}

.nav__links a[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--accent);
    margin-top: 4px;
    border-radius: 2px;
}

/* Short editorial nav fits one row; drawer takes over ≤1280px. */
.nav__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.nav__logo {
    flex: 0 1 auto;
}

.nav__links {
    flex: 0 1 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.nav__actions {
    flex: 0 0 auto;
}

.nav__mobile-action,
.nav__drawer-extra,
.nav__drawer-close {
    display: none;
}

@media (max-width: 1720px) {
    .nav__logo span {
        max-width: 14ch;
    }

    .nav__links a {
        font-size: 0.84rem;
    }
}

@media (max-width: 1520px) {
    .nav__logo span {
        display: none;
    }
}

/* === Mobile nav toggle (animated hamburger → X) ===================== */
.nav__toggle {
    display: none;
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    z-index: 60;
}

.nav__toggle span {
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s var(--ease-out, ease),
        opacity 0.2s ease,
        top 0.3s var(--ease-out, ease),
        background 0.2s ease;
}

.nav__toggle span:nth-child(1) {
    top: 14px;
}

.nav__toggle span:nth-child(2) {
    top: 21px;
}

.nav__toggle span:nth-child(3) {
    top: 28px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Backdrop behind the drawer */
.nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(10, 14, 20, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease-out, ease);
}

.nav__backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1280px) {
    .nav__toggle {
        display: block;
    }

    .nav__login,
    .nav__cta {
        display: none;
    }

    /* Drawer container */
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 58;
        width: min(320px, 86vw);
        background: var(--bg-elevated);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-xl, -20px 0 60px -10px rgba(0, 0, 0, .35));
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 84px var(--space-5) var(--space-6);
        margin: 0;
        list-style: none;
        transform: translateX(100%);
        transition: transform 0.36s var(--ease-spring, cubic-bezier(0.2, 0.9, 0.25, 1.15));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav__links.nav__links--open {
        transform: translateX(0);
    }

    /* Stagger drawer items */
    .nav__links li {
        padding: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s var(--ease-out, ease),
            transform 0.3s var(--ease-out, ease);
    }

    .nav__links.nav__links--open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav__links.nav__links--open li:nth-child(1) {
        transition-delay: 0.10s;
    }

    .nav__links.nav__links--open li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .nav__links.nav__links--open li:nth-child(3) {
        transition-delay: 0.18s;
    }

    .nav__links.nav__links--open li:nth-child(4) {
        transition-delay: 0.22s;
    }

    .nav__links.nav__links--open li:nth-child(5) {
        transition-delay: 0.26s;
    }

    .nav__links.nav__links--open li:nth-child(6) {
        transition-delay: 0.30s;
    }

    .nav__links.nav__links--open li:nth-child(7) {
        transition-delay: 0.34s;
    }

    .nav__links.nav__links--open li:nth-child(8) {
        transition-delay: 0.38s;
    }

    .nav__links.nav__links--open li:nth-child(9) {
        transition-delay: 0.42s;
    }

    .nav__links.nav__links--open li:nth-child(10) {
        transition-delay: 0.46s;
    }

    .nav__links.nav__links--open li:nth-child(11) {
        transition-delay: 0.50s;
    }

    .nav__links.nav__links--open li:nth-child(12) {
        transition-delay: 0.54s;
    }

    .nav__links.nav__links--open li:nth-child(13) {
        transition-delay: 0.58s;
    }

    .nav__links a {
        display: block;
        padding: var(--space-3) 0;
        font-size: var(--fs-3);
        font-weight: 500;
        border-bottom: 1px solid var(--border);
    }

    .nav__links a::after {
        display: none;
    }

    .nav__links a[aria-current="page"] {
        color: var(--link-ink);
    }

    .nav__mobile-action,
    .nav__drawer-extra {
        display: block;
    }

    /* An explicit close in the drawer's empty top band (visual review
       10 Oct, V5): the drawer covers the hamburger. */
    .nav__drawer-close {
        display: block;
        position: absolute;
        top: var(--space-4);
        right: var(--space-4);
    }

    .nav__close {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: transparent;
        color: var(--text);
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
    }

    .nav__close:hover {
        background: var(--accent-soft);
    }

    .nav__close:focus-visible {
        outline: 2px solid var(--accent-strong);
        outline-offset: 2px;
    }

    .nav__links .nav__mobile-login,
    .nav__links .nav__mobile-cta {
        display: flex;
        justify-content: center;
        margin-top: var(--space-3);
        padding: 13px var(--space-4);
        border: 1px solid rgba(226, 83, 47, 0.46);
        border-radius: var(--radius-pill);
        font-size: var(--fs-2);
        font-weight: 800;
        text-align: center;
    }

    .nav__links .nav__mobile-login {
        color: var(--link-ink);
        background: var(--accent-soft);
    }

    .nav__links .nav__mobile-cta {
        color: var(--text-on-accent);
        background: var(--accent);
        border-color: var(--accent);
    }

    /* Lock body scroll when drawer open */
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    .nav__logo span {
        max-width: 46vw;
    }

    .nav__inner {
        gap: var(--space-3);
    }
}

@media (prefers-reduced-motion: reduce) {

    .nav__links,
    .nav__links li,
    .nav__toggle span,
    .nav__backdrop {
        transition: none !important;
    }
}

/* === Footer polish ================================================== */
.footer__about {
    color: #cbd5e1;
    max-width: 40ch;
    margin: 0;
}

.footer__legal a {
    color: #cbd5e1;
}

.footer__legal a:hover {
    color: #fff;
}

/* === Page stub (in-migration placeholder) =========================== */
.page-stub {
    padding: var(--space-8) 0;
    background: var(--bg);
    min-height: 60vh;
}

.page-stub__hero {
    background: var(--bg-secondary);
    padding: var(--space-8) 0 var(--space-7);
    border-bottom: 1px solid var(--border);
}

.page-stub__eyebrow {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--link-ink);
    font-size: var(--fs-1);
    margin-bottom: var(--space-3);
}

.page-stub h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, var(--fs-7));
    line-height: 1.1;
    margin: 0 0 var(--space-4) 0;
    color: var(--text);
}

.page-stub__lead {
    font-size: var(--fs-3);
    max-width: 60ch;
    color: var(--text-muted);
    margin: 0 0 var(--space-5) 0;
}

.page-stub__notice {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-sm);
    margin: var(--space-6) 0;
    color: var(--text);
}

.page-stub__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* === Editorial program pages ======================================== */
.program-page {
    background: var(--bg);
}

.program-hero {
    position: relative;
    min-height: min(760px, calc(100vh - 72px));
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--bg-dark);
}

.program-hero--congress {
    min-height: min(700px, calc(100vh - 72px));
}

.program-hero--congress::after,
.practice-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: min(52vw, 720px);
    aspect-ratio: 1;
    right: -10vw;
    bottom: -64%;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(255,255,255,.035),
        0 0 0 73px rgba(255,255,255,.12);
    pointer-events: none;
}

.program-hero--congress .program-hero__media {
    object-position: center 38%;
    filter: saturate(.82) contrast(1.06);
}

.program-hero--congress .program-hero__shade {
    background:
        linear-gradient(90deg, rgba(7,17,34,.97) 0%, rgba(7,17,34,.78) 44%, rgba(7,17,34,.1) 82%),
        linear-gradient(0deg, rgba(7,17,34,.88) 0%, transparent 58%);
}

.congress-gallery {
    position: relative;
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.congress-gallery__track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px;
}

.congress-gallery__track::-webkit-scrollbar { display: none; }

.congress-gallery__slide {
    flex: 0 0 min(66%, 760px);
    aspect-ratio: 3 / 2;
    scroll-snap-align: center;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--bg-dark);
    box-shadow: var(--shadow-md);
}

.congress-gallery__slide picture,
.congress-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.congress-gallery__slide img {
    object-fit: cover;
    filter: saturate(.86) contrast(1.04);
    transition: transform 700ms cubic-bezier(.22,1,.36,1), filter 250ms ease;
}

.congress-gallery__slide:hover img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.06);
}

.congress-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(7,17,34,.9);
    color: #fff;
    font: 700 1.2rem/1 var(--font-display);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.congress-gallery__arrow--prev { left: -18px; }
.congress-gallery__arrow--next { right: -18px; }
.congress-gallery__arrow:hover { background: var(--accent); }

.program-hero--congress .program-hero__content,
.practice-hero__content {
    max-width: 1280px;
    background: transparent !important;
}

/* Every program hero's text sits on its photo. Only the congress hero had
   this, so the dark theme's `.container` panel covered the Video Platform
   photo edge to edge (30 Sep 2026). */
.program-hero .program-hero__content {
    background: transparent !important;
}

.program-hero--congress .program-hero__content::before,
.practice-hero__content::before {
    content: "";
    position: absolute;
    left: 0;
    top: var(--space-9);
    bottom: var(--space-8);
    width: 2px;
    background: var(--accent);
}

.program-hero--congress .program-hero__content > *,
.practice-hero__content > * {
    margin-left: clamp(18px, 2.5vw, 38px);
}

.program-hero--video {
    min-height: min(680px, calc(100vh - 72px));
}

.program-hero--video .program-hero__media {
    object-position: center;
}

.program-hero--video .program-hero__shade {
    background:
        linear-gradient(90deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.78) 44%, rgba(10, 14, 20, 0.22) 100%),
        linear-gradient(0deg, rgba(10, 14, 20, 0.70) 0%, rgba(10, 14, 20, 0.04) 50%);
}

.program-hero__media,
.program-hero--academy .program-hero__media {
    object-position: center 72%;
}

.program-hero__shade {
    position: absolute;
    inset: 0;
}

.program-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The photo is a background layer, as in .practice-hero. The <picture> was an
   ordinary grid child, so the image took its own ~960px row and pushed the
   title below the first screen (visual review 10 Oct, V1). */
.program-hero > picture,
.program-hero > .program-hero__media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.program-hero__shade {
    background:
        linear-gradient(90deg, rgba(10, 14, 20, 0.94) 0%, rgba(10, 14, 20, 0.76) 46%, rgba(10, 14, 20, 0.28) 100%),
        linear-gradient(0deg, rgba(10, 14, 20, 0.70) 0%, rgba(10, 14, 20, 0.04) 46%);
}

.program-hero__content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-9);
    padding-bottom: var(--space-8);
    color: #fff;
}

.program-hero__eyebrow {
    color: var(--accent-gold);
    font-size: var(--fs-1);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.program-hero h1 {
    max-width: 860px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5.75rem);
    line-height: 0.98;
    margin: 0 0 var(--space-5);
}

.program-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-3);
    margin: 0;
}

.program-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.program-countdown {
    max-width: 640px;
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.program-countdown__label {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-0);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.program-countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: var(--space-3);
}

.program-countdown__grid span {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(17, 24, 39, 0.46);
    backdrop-filter: blur(10px);
}

.program-countdown__grid strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1;
}

.program-countdown__grid em {
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--fs-0);
    font-style: normal;
    font-weight: 700;
}

.program-facts {
    background: var(--bg-dark);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.program-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.program-facts__grid div {
    background: var(--bg-dark);
    padding: var(--space-5);
}

.program-facts strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--fs-5);
    line-height: 1;
}

.program-facts span {
    display: block;
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-section {
    padding: var(--space-8) 0;
}

.program-body {
    margin-top: var(--space-7);
}

.program-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: var(--space-7);
    align-items: start;
}

.program-intro .prose h2 {
    font-size: var(--fs-5);
    margin-top: var(--space-3);
}

.academy-film {
    margin-top: var(--space-8);
}

.academy-film video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #05080d;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.academy-story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 240px 240px; gap: clamp(.65rem, 1.3vw, 1.1rem); margin-top: clamp(1rem, 2vw, 1.75rem); }
.academy-story__item { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-card); background: #101722; }
.academy-story__item--wide { grid-column: span 2; grid-row: span 2; }
.academy-story__item--tall { grid-row: span 2; }
.academy-story__item picture,
.academy-story__item img { display: block; width: 100%; height: 100%; }
.academy-story__item img { object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.academy-story__item--wide img { object-position: 50% 48%; }
.academy-story__item--tall img { object-position: 42% 50%; }
.academy-story__item::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .13); border-radius: inherit; box-shadow: inset 0 -70px 80px rgba(3, 7, 13, .16); }

@media (hover: hover) {
    .academy-story__item:hover img { transform: scale(1.035); filter: saturate(1.06) contrast(1.02); }
}

@media (max-width: 820px) {
    .academy-story { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 230px 190px; }
    .academy-story__item--wide { grid-column: span 2; grid-row: auto; }
    .academy-story__item--tall { grid-row: auto; }
}

@media (max-width: 520px) {
    .academy-story { grid-template-rows: 210px 155px; }
    .academy-story__item:last-child { grid-column: span 2; height: 190px; }
}

/* Forest "year card" — survey heritage (see docs/VISUAL_STANDARDS.md). */
.program-panel {
    position: sticky;
    top: 88px;
    background: #171717;
    color: #f4f3f0;
    border: 0;
    border-radius: var(--radius-card);
    padding: var(--space-6);
}

.program-panel__label {
    display: block;
    color: var(--link-ink);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.program-panel strong {
    display: block;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: var(--fs-4);
    line-height: 1.25;
}

.program-panel p {
    color: #c9c6bd;
    margin: var(--space-3) 0 var(--space-5);
}

.program-panel dl {
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.program-panel dl div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: var(--space-3);
}

.program-panel dt {
    color: #a8a49a;
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-panel dd {
    color: #f4f3f0;
    margin: var(--space-1) 0 0;
    font-weight: 650;
}

.program-panel dd a {
    color: var(--link-ink);
}

.program-panel .btn {
    width: 100%;
    margin-top: var(--space-5);
}

.video-platform-page {
    background: var(--bg);
}

.video-platform-section {
    padding: var(--space-8) 0;
}

.video-platform-section--alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.video-platform-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: var(--space-7);
    align-items: start;
}

.video-platform-intro .prose h2 {
    font-size: var(--fs-5);
    margin-top: var(--space-3);
}

.video-platform-panel {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #141a24 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: 0 24px 70px rgba(10, 14, 20, 0.22);
    color: #fff;
}

.video-platform-panel strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--fs-4);
    line-height: 1.25;
}

.video-platform-panel p {
    color: rgba(255, 255, 255, 0.76);
    margin: var(--space-3) 0 var(--space-5);
}

.video-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.video-platform-grid article {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.video-platform-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: var(--space-4);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: var(--fs-1);
}

.video-platform-grid h3 {
    margin-bottom: var(--space-3);
}

.video-platform-grid p {
    color: var(--text-muted);
    margin: 0;
}

/* Numbered module cards — orange leading-zero counters (survey heritage). */
.modules--cards {
    list-style: none;
    counter-reset: module;
    padding-left: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modules--cards li {
    counter-increment: module;
    display: flex;
    gap: var(--space-4);
    align-items: baseline;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    font-weight: 600;
}

.modules--cards li::before {
    content: counter(module, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-1);
    color: var(--link-ink);
}

@media (max-width: 820px) {
    .program-hero,
    .program-hero--congress,
    .program-hero--video {
        min-height: 620px;
    }

    .program-hero__shade {
        background: linear-gradient(0deg, rgba(10, 14, 20, 0.94) 0%, rgba(10, 14, 20, 0.64) 70%);
    }

    .program-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-intro {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .video-platform-intro,
    .video-platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .program-hero,
    .program-hero--congress,
    .program-hero--video {
        min-height: 560px;
    }

    .program-hero__content {
        padding-right: var(--space-8);
        overflow: hidden;
    }

    .program-hero h1 {
        max-width: 320px;
        font-size: clamp(2.15rem, 11vw, 3.15rem);
    }

    .program-hero p {
        max-width: 320px;
        overflow-wrap: anywhere;
    }

    .program-hero__actions {
        max-width: 320px;
    }

    .program-hero__actions .btn {
        width: 100%;
    }

    .program-countdown {
        max-width: 320px;
    }

    .program-countdown__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-facts__grid {
        grid-template-columns: 1fr;
    }
}

/* === Practice Weeks editorial pilot ================================= */
.practice-page {
    background: var(--bg);
}

.practice-hero {
    position: relative;
    min-height: min(760px, calc(100vh - 72px));
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--bg-dark);
}

.practice-hero__media,
.practice-hero__shade {
    position: absolute;
    inset: 0;
}

.practice-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.82) contrast(1.08);
}

.practice-hero__shade {
    background:
        linear-gradient(90deg, rgba(7,17,34,.97) 0%, rgba(7,17,34,.78) 44%, rgba(7,17,34,.18) 100%),
        linear-gradient(0deg, rgba(7,17,34,.82) 0%, rgba(7,17,34,.04) 50%);
}

@media (prefers-reduced-motion: no-preference) {
    .program-hero--congress .program-hero__media,
    .practice-hero__media {
        animation: editorial-hero-drift 18s ease-in-out alternate infinite;
    }

    @keyframes editorial-hero-drift {
        from { transform: scale(1.015) translate3d(0, 0, 0); }
        to { transform: scale(1.075) translate3d(-1%, -.8%, 0); }
    }
}

.practice-hero__content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-9);
    padding-bottom: var(--space-8);
    color: #fff;
}

.practice-hero__eyebrow {
    color: var(--accent-gold);
    font-size: var(--fs-1);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.practice-hero h1 {
    max-width: 820px;
    color: #fff;
    font-size: clamp(2.75rem, 6vw, 5.75rem);
    letter-spacing: 0;
    line-height: 0.98;
    margin-bottom: var(--space-5);
}

.practice-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-3);
}

.practice-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.practice-hero .btn--ghost,
.hero .btn--ghost,
.hero-slide .btn--ghost,
.btn--ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(10, 14, 20, 0.54);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.practice-hero .btn--ghost:hover,
.hero .btn--ghost:hover,
.hero-slide .btn--ghost:hover,
.btn--ghost-light:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(226, 83, 47, 0.88);
}

.practice-facts {
    background: var(--bg-dark);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.practice-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0;
}

.practice-facts__grid div {
    background: var(--bg-dark);
    padding: var(--space-5);
}

.practice-facts strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--fs-5);
    line-height: 1;
}

.practice-facts span {
    display: block;
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.practice-section {
    padding: var(--space-8) 0;
}

.practice-section--alt {
    background: var(--bg-secondary);
    border-block: 1px solid var(--border);
}

.practice-section--cta {
    background: var(--bg-dark);
}

.practice-intro,
.practice-details,
.practice-apply {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: var(--space-7);
    align-items: start;
}

.practice-intro__copy p,
.practice-apply__copy p {
    color: var(--text-muted);
    font-size: var(--fs-3);
    line-height: var(--lh-body);
}

.practice-intro__panel {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: var(--bg-elevated);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.practice-intro__panel h3 {
    margin-bottom: var(--space-3);
}

.practice-intro__panel p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.practice-journey {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.practice-journey article {
    border-top: 3px solid var(--accent);
    background: var(--bg-elevated);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.practice-journey span {
    color: var(--link-ink);
    font-weight: 800;
    font-size: var(--fs-1);
    letter-spacing: 0.1em;
}

.practice-journey h3 {
    font-size: var(--fs-3);
    margin: var(--space-2) 0 var(--space-2);
}

.practice-journey p {
    color: var(--text-muted);
    margin: 0;
}

.practice-apply__copy {
    color: #fff;
}

.practice-apply__copy h2,
.practice-apply__copy .section__eyebrow {
    color: #fff;
}

.practice-apply__copy p {
    color: rgba(255, 255, 255, 0.76);
}

.register-form--compact {
    max-width: none;
    margin: 0;
    border-radius: var(--radius-md);
}

@media (max-width: 820px) {
    .practice-hero {
        min-height: 680px;
    }

    .practice-hero__shade {
        background: linear-gradient(0deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.74) 64%, rgba(10, 14, 20, 0.34) 100%);
    }

    .program-hero--congress .program-hero__content::before,
    .practice-hero__content::before {
        left: var(--space-4);
    }

    .program-hero--congress::after,
    .practice-hero::after {
        width: 92vw;
        right: -46vw;
        bottom: -22vw;
    }

    .program-hero--congress .program-hero__media { object-position: 58% center; }

    .congress-gallery__slide { flex-basis: 88%; }
    .congress-gallery__arrow { width: 44px; height: 44px; }
    .congress-gallery__arrow--prev { left: 6px; }
    .congress-gallery__arrow--next { right: 6px; }

    .practice-facts__grid,
    .practice-intro,
    .practice-details,
    .practice-apply,
    .practice-journey {
        grid-template-columns: 1fr;
    }

    .practice-section {
        padding: var(--space-7) 0;
    }
}

/* === Prose blocks ==================================================== */
.prose {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
    font-size: var(--fs-3);
    line-height: 1.7;
}

.prose p {
    margin: 0 0 var(--space-5) 0;
}

.prose a {
    color: var(--link-ink);
    text-decoration: underline;
}

.prose .section__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.muted {
    color: var(--text-muted);
}

/* === Contact grid ==================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.contact-card h2 {
    margin: var(--space-3) 0 var(--space-3) 0;
    font-size: var(--fs-4);
}

.contact-card p {
    margin: 0 0 var(--space-3) 0;
}

.contact-card a {
    color: var(--link-ink);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.application-card {
    margin-top: var(--space-7);
    padding: clamp(24px, 4vw, 42px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6);
    align-items: center;
    background:
        linear-gradient(135deg, rgba(226, 83, 47, 0.14), rgba(10, 14, 20, 0.28)),
        var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.application-card__eyebrow {
    margin: 0 0 var(--space-2);
    color: var(--link-ink);
    font-size: var(--fs-1);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.application-card h2 {
    margin-bottom: var(--space-3);
}

.application-card p:last-child {
    margin-bottom: 0;
}

.application-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-3);
}

@media (max-width: 760px) {
    .application-card {
        grid-template-columns: 1fr;
    }

    .application-card__actions {
        justify-content: flex-start;
    }
}

/* === Member grid (coaches.html) ====================================== */
.member-grid {
    list-style: none;
    padding: 0;
    margin: var(--space-7) 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.member-grid li {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    aspect-ratio: 310 / 397;
}

.member-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 350ms ease;
}

.member-grid li:hover img {
    transform: scale(1.04);
}

/* === Management grid (management.html) =============================== */
.mgmt-grid {
    list-style: none;
    padding: 0;
    margin: var(--space-7) 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
}

.mgmt-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding-bottom: var(--space-5);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.mgmt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mgmt-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.mgmt-card h3 {
    margin: var(--space-5) 0 var(--space-1) 0;
    font-size: var(--fs-3);
}

.mgmt-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: var(--fs-1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* === News list (news.html) =========================================== */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-5);
    max-width: 880px;
    margin: 0 auto;
}

.news-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.news-item__date {
    font-size: var(--fs-1);
    letter-spacing: 0.08em;
    color: var(--link-ink);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.news-item__title {
    font-size: var(--fs-4);
    margin: 0 0 var(--space-3) 0;
    color: var(--text);
    line-height: 1.3;
}

.news-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* === News editorial layout (news.html) ============================== */
.page-stub__hero--compact {
    padding: var(--space-7) 0 var(--space-6);
}

.news-section {
    padding: var(--space-7) 0 var(--space-8);
    display: grid;
    gap: var(--space-7);
}

.news-feature {
    display: contents;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease-out, ease),
        transform 0.25s var(--ease-out, ease);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.news-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.news-card__media img {
    width: 100%;
    height: 100%;
    /* The whole picture, letterboxed: news images are logos (1:1), posters
       (4:5) and photos; "cover" cut the text off half of them -- the FLBB
       logo lost "HEAD COACHES BOARD" (owner, 9 Oct). */
    object-fit: contain;
    display: block;
    transition: transform 0.5s var(--ease-out, ease);
}

.news-card:hover .news-card__media img {
    transform: scale(1.04);
}

.news-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.news-card__date {
    font-size: var(--fs-1);
    letter-spacing: 0.08em;
    color: var(--link-ink);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.news-card__title {
    font-size: var(--fs-4);
    line-height: var(--lh-snug, 1.35);
    margin: 0;
    color: var(--text);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.3s var(--ease-out, ease);
}

.news-card__title a:hover {
    background-size: 100% 1px;
    color: var(--link-ink);
}

.news-card__lead {
    color: var(--text-muted);
    margin: 0;
    line-height: var(--lh-body, 1.65);
    font-size: var(--fs-2);
}

/* Featured card — image left, content right */
.news-card--featured {
    flex-direction: row;
    grid-column: 1 / -1;
}

.news-card--featured .news-card__media {
    flex: 1.4;
    aspect-ratio: auto;
    min-height: 320px;
}

.news-card--featured .news-card__body {
    flex: 1;
    padding: var(--space-7);
    justify-content: center;
}

.news-card--featured .news-card__title {
    font-size: var(--fs-5);
}

.news-card--featured .news-card__lead {
    font-size: var(--fs-3);
}

/* Grid for the rest */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-5);
}

@media (max-width: 720px) {
    .news-card--featured {
        flex-direction: column;
    }

    .news-card--featured .news-card__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .news-card--featured .news-card__body {
        padding: var(--space-5);
    }

    .news-card--featured .news-card__title {
        font-size: var(--fs-4);
    }

    .news-card--featured .news-card__lead {
        font-size: var(--fs-2);
    }
}

/* === Language switcher (parity item #13) ============================= */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill, 999px);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.lang-switcher__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: var(--fs-1);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 7px 10px;
    border-radius: var(--radius-pill, 999px);
    cursor: pointer;
    line-height: 1;
}

.lang-switcher__btn[aria-current="true"] {
    background: var(--accent);
    color: var(--text-on-accent);
}

@media (max-width: 1280px) {
    .lang-switcher {
        display: none;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--link-ink);
}

.theme-toggle__icon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
    display: inline;
}

:root:not([data-theme="dark"]) .theme-toggle__icon--moon {
    display: inline;
}

/* === Agenda (Congress timeline) ====================================== */
.agenda__title {
    text-align: center;
    margin: var(--space-8) 0 var(--space-6) 0;
    font-size: var(--fs-5);
}

.agenda {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.agenda__day {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.agenda__day:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.agenda__day-head h3 {
    margin: var(--space-1) 0 var(--space-4) 0;
    font-size: var(--fs-4);
}

.agenda__date {
    font-size: var(--fs-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--link-ink);
    font-weight: 600;
}

.agenda__slots {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.agenda__slots li {
    color: var(--text);
    font-size: var(--fs-2);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: var(--space-3);
}

.agenda__slots li:first-child {
    border-top: 0;
    padding-top: 0;
}

.agenda__time {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--link-ink);
    font-size: var(--fs-1);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* === Practice Weeks destinations ===================================== */
.destinations {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}

.destination {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.destination:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.destination__flag {
    font-size: 36px;
    margin-bottom: var(--space-3);
}

.destination h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-3);
}

.destination p {
    color: var(--text-muted);
    font-size: var(--fs-1);
    margin: 0;
    line-height: 1.5;
}

/* === Register page =================================================== */
.register-tracks {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-7) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.register-track {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.register-track h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--fs-3);
    color: var(--text);
}

.register-track p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-1);
    line-height: 1.5;
}

.register-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    box-shadow: var(--shadow-sm);
    max-width: 880px;
    margin: 0 auto;
}

.register-form h2 {
    margin: 0 0 var(--space-3) 0;
}

.register-form__intro {
    margin-top: calc(-1 * var(--space-2));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
    color: var(--text);
}

.field>span {
    font-size: var(--fs-1);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    appearance: none;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font: inherit;
    font-size: var(--fs-2);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--text);
    font-size: var(--fs-2);
    margin: var(--space-4) 0;
}

.checkbox input {
    margin-top: 4px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-5);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .register-form {
        padding: var(--space-5);
    }
}

/* === Dark mode tweaks for legacy components ========================== */
:root[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .nav,
:root[data-theme="dark"] .site-footer {
    background: var(--bg);
    border-color: var(--border);
}

:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .nav__logo span {
    color: var(--text);
}

:root[data-theme="dark"] .pillar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .agenda__day,
:root[data-theme="dark"] .destination,
:root[data-theme="dark"] .register-track,
:root[data-theme="dark"] .register-form,
:root[data-theme="dark"] .news-item,
:root[data-theme="dark"] .mgmt-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .about-block__media {
    background: var(--bg-elevated);
    border-color: var(--border);
}

:root[data-theme="dark"] .pillar__icon {
    /* Icons already have an orange disc + white glyph; no tint needed in dark mode either. */
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border-strong);
}

:root[data-theme="dark"] .btn--ghost {
    color: var(--text);
    border-color: var(--border-strong);
}

:root[data-theme="dark"] .btn--ghost:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === Practice Weeks calendar ========================================= */
.practice-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0 var(--space-7);
}

.practice-week-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: var(--space-5);
    background:
        linear-gradient(160deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.9) 62%, rgba(226, 83, 47, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.practice-week-card::before {
    content: "";
    position: absolute;
    inset: auto -24px -52px auto;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.practice-week-card::after {
    content: attr(data-status);
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    color: rgba(255, 255, 255, 0.24);
    font-size: var(--fs-1);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.practice-week-card:not([data-status])::after {
    content: "event";
}

.practice-week-card--past {
    background:
        linear-gradient(160deg, rgba(71, 85, 105, 0.9) 0%, rgba(30, 41, 59, 0.88) 100%);
    border-color: rgba(148, 163, 184, 0.36);
    color: rgba(255, 255, 255, 0.78);
}

.practice-week-card--past::before {
    border-color: rgba(203, 213, 225, 0.16);
}

.practice-week-card--past .practice-week-card__date,
.practice-week-card--past h3,
.practice-week-card--past p {
    color: rgba(255, 255, 255, 0.62);
}

.practice-week-card--past .practice-week-card__date {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.38);
}

/* Host club confirmed, dates not announced. Six of the eleven 2026/27 weeks
   are in this state, so it has to look intentional rather than like a card
   that failed to load its date. */
.practice-week-card--tba {
    border-style: dashed;
}

.practice-week-card__date--tba {
    font-style: italic;
    letter-spacing: 0.04em;
    opacity: 0.82;
}

.practice-week-card--current {
    border-color: rgba(226, 83, 47, 0.72);
}

.practice-week-card--upcoming {
    border-color: rgba(255, 255, 255, 0.14);
}

.practice-week-card__date {
    color: var(--accent-gold);
    font-size: var(--fs-1);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.practice-week-card h3 {
    color: #fff;
    font-size: var(--fs-4);
    margin: var(--space-5) 0 var(--space-2);
    max-width: 14ch;
}

.practice-week-card p {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 700px) {
    .practice-calendar {
        grid-template-columns: 1fr;
    }

    .practice-week-card {
        min-height: 150px;
    }
}

/* === Stats grid (Academy by-the-numbers) ============================= */
.stats {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 var(--space-7);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.stats li {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.stats li strong {
    font-size: var(--fs-5);
    color: var(--link-ink);
    line-height: 1.1;
}

.stats li span {
    color: var(--text-muted);
    font-size: var(--fs-2);
}

/* === Modules ordered list ============================================ */
.modules {
    margin: var(--space-5) 0 var(--space-7);
    padding-left: var(--space-6);
    display: grid;
    gap: var(--space-3);
    color: var(--text);
}

.modules li::marker {
    color: var(--link-ink);
    font-weight: 700;
}

/* === Highlights bullet list ========================================== */
.highlights {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 var(--space-7);
    display: grid;
    gap: var(--space-3);
}

.highlights li {
    position: relative;
    padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 22px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
}

.highlights li::before {
    content: "";
    position: absolute;
    left: var(--space-5);
    top: calc(var(--space-4) + 6px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* === Pricing tiers =================================================== */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin: var(--space-5) 0 var(--space-6);
}

.price-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    position: relative;
}

.price-card--featured {
    border-color: var(--accent);
}

.price-card__badge {
    position: absolute;
    top: -10px;
    left: var(--space-5);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.price-card h3 {
    margin: 0;
    font-size: var(--fs-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-card__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-2);
}

.price-card__price {
    margin-top: var(--space-3);
    font-size: var(--fs-6);
    font-weight: 800;
    color: var(--link-ink);
    line-height: 1;
}

/* === FAQ details ===================================================== */
.faq {
    margin: var(--space-5) 0 var(--space-7);
    display: grid;
    gap: var(--space-3);
}

.faq details {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::after {
    content: "+";
    font-size: var(--fs-4);
    color: var(--link-ink);
    font-weight: 400;
    margin-left: var(--space-3);
    transition: transform 200ms ease;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: var(--space-3) 0 0;
    color: var(--text-muted);
}

.faq details a {
    color: var(--link-ink);
}

/* === Dark mode hardening (apply to ALL surfaces) ===================== */
:root[data-theme="dark"] body {
    background: var(--bg) !important;
    color: var(--text);
}

:root[data-theme="dark"] .section,
:root[data-theme="dark"] main,
:root[data-theme="dark"] .page-stub,
:root[data-theme="dark"] .programs,
:root[data-theme="dark"] .news-strip,
:root[data-theme="dark"] .partners {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .section--alt,
:root[data-theme="dark"] .pillars,
:root[data-theme="dark"] .page-stub__hero {
    background: var(--bg-secondary);
    color: var(--text);
}

:root[data-theme="dark"] .schedule,
:root[data-theme="dark"] .stats li,
:root[data-theme="dark"] .highlights li,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] .faq details {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text);
}

:root[data-theme="dark"] .schedule__row {
    border-color: var(--border);
}

:root[data-theme="dark"] .schedule__row--head {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .agenda__title,
:root[data-theme="dark"] .page-stub h1 {
    color: var(--text);
}

:root[data-theme="dark"] .muted {
    color: var(--text-muted);
}

/* === Disabled / contrast fixes for buttons + form fields ============= */
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: saturate(0.6);
}

.btn--primary {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.btn--primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn--ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

:root[data-theme="dark"] .btn--primary {
    color: #fff;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* === Dark mode bulletproof overrides (load last) ===================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #0a0e14 !important;
    color: #f1f5f9;
}

html[data-theme="dark"] .pillars,
html[data-theme="dark"] .section--alt,
html[data-theme="dark"] .page-stub__hero,
html[data-theme="dark"] .partners-strip,
html[data-theme="dark"] .news-strip {
    background: #141a24 !important;
    color: #f1f5f9;
}

html[data-theme="dark"] .partners,
html[data-theme="dark"] .programs,
html[data-theme="dark"] .page-stub,
html[data-theme="dark"] main {
    background: #0a0e14 !important;
}

html[data-theme="dark"] .pillar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .agenda__day,
html[data-theme="dark"] .destination,
html[data-theme="dark"] .schedule,
html[data-theme="dark"] .stats li,
html[data-theme="dark"] .highlights li,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .register-track,
html[data-theme="dark"] .register-form,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .mgmt-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .about-block__media {
    background: #141a24 !important;
    border-color: #2a3548 !important;
    color: #f1f5f9;
}

html[data-theme="dark"] .news-card__media {
    background: linear-gradient(135deg, #141a24, #2a3548) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .pillar__title,
html[data-theme="dark"] .agenda__title,
html[data-theme="dark"] .page-stub h1,
html[data-theme="dark"] .card h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .pillar__desc,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-stub__lead {
    color: #cbd5e1;
}

html[data-theme="dark"] .nav,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .footer {
    background: #060a10 !important;
    border-color: #2a3548;
}

html[data-theme="dark"] .nav a,
html[data-theme="dark"] .nav__logo span {
    color: #f1f5f9;
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav__links a:hover {
    color: var(--link-ink);
}

html[data-theme="dark"] .pillar:hover {
    border-color: var(--accent) !important;
}

/* Smooth theme transitions */
body,
.pillars,
.section,
.section--alt,
.pillar,
.card,
.nav,
.footer,
.page-stub,
.page-stub__hero,
.news-card,
.schedule,
.price-card,
.faq details {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

/* === Subtle interactivity polish ===================================== */
.card {
    cursor: default;
}

.card.card--link,
a.card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card.card--link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link-ink);
    font-weight: 600;
    margin-top: var(--space-3);
    transition: gap 180ms ease, color 180ms ease;
}

.card__more:hover {
    gap: 12px;
    color: var(--link-ink);
}

html[data-theme="dark"] .card__more {
    color: #fb923c;
}

.theme-toggle__icon--sun {
    display: none;
}

.theme-toggle__icon--moon {
    display: inline;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
    display: inline;
    color: #fbbf24;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle {
    border-color: #475569;
    color: #f1f5f9;
    background: var(--bg-elevated);
}

html[data-theme="dark"] .nav__login {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border-strong);
}

html[data-theme="dark"] .lang-switcher {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
}

/* =====================================================================
   DARK THEME — final override (overrides everything above; keep at bottom)
   Colors mirror lib/core/theme/tokens.dart dark family (bgDark/cardDark).
   ===================================================================== */
html[data-theme="dark"] {
    --bg: #0a0e14;
    --bg-secondary: #0f1420;
    --bg-elevated: #141a24;
    --text: #ffffff;
    --text-soft: #d5dae4;
    --text-muted: #b4bcd0;
    --border: #2a3548;
    --border-strong: #3a465c;
    --accent: #e2532f;
    --accent-strong: #f0744b;
    /* slightly brighter strong state for legibility on dark bg */
    --accent-soft: rgba(226, 83, 47, 0.16);
    color-scheme: dark;
}

/* Force dark surfaces — explicit, no inherit games */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .page-stub,
html[data-theme="dark"] .programs,
html[data-theme="dark"] .news-strip,
html[data-theme="dark"] .partners,
html[data-theme="dark"] .members,
html[data-theme="dark"] .about-block,
html[data-theme="dark"] section.section,
html[data-theme="dark"] .container {
    background-color: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] .pillars,
html[data-theme="dark"] .section--alt,
html[data-theme="dark"] .page-stub__hero {
    background-color: var(--bg-secondary);
    color: var(--text);
}

/* Card-likes use elevated surface */
html[data-theme="dark"] .pillar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .agenda__day,
html[data-theme="dark"] .destination,
html[data-theme="dark"] .schedule,
html[data-theme="dark"] .stats li,
html[data-theme="dark"] .highlights li,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .faq details,
html[data-theme="dark"] .register-track,
html[data-theme="dark"] .register-form,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .mgmt-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .about-block__media {
    background-color: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .schedule__row {
    border-color: var(--border);
}

html[data-theme="dark"] .schedule__row--head {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

html[data-theme="dark"] .news-card__media {
    background: linear-gradient(135deg, #1e2b47, #18223a);
}

/* Headings + body copy — explicit, no relying on cascade */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .pillar__title,
html[data-theme="dark"] .agenda__title,
html[data-theme="dark"] .page-stub h1,
html[data-theme="dark"] .about-block__body h2,
html[data-theme="dark"] .card h3 {
    color: var(--text);
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .pillar__desc,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-stub__lead,
html[data-theme="dark"] .about-block__body p {
    color: var(--text-muted);
}

/* Eyebrows / accents — brighter orange so they're readable on dark */
html[data-theme="dark"] .section__eyebrow,
html[data-theme="dark"] .page-stub__eyebrow,
html[data-theme="dark"] .card__more,
html[data-theme="dark"] .schedule__row>div:first-child,
html[data-theme="dark"] .stats li strong,
html[data-theme="dark"] .price-card__price {
    color: var(--link-ink);
}

/* Nav + footer */
html[data-theme="dark"] .nav,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .footer {
    background-color: #060b18;
    border-color: var(--border);
    color: var(--text);
}

html[data-theme="dark"] .nav__inner {
    background-color: rgba(6, 11, 24, 0.92);
}

html[data-theme="dark"] .nav a,
html[data-theme="dark"] .nav__logo span,
html[data-theme="dark"] .nav__links a {
    color: var(--text);
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav__links a:hover {
    color: var(--link-ink);
}

html[data-theme="dark"] .footer a {
    color: #cbd5e1;
}

html[data-theme="dark"] .footer a:hover {
    color: #fff;
}

/* Inputs */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
    background-color: #0b1220;
    color: var(--text);
    border-color: var(--border-strong);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

/* Cross-sell band is ALWAYS dark navy — same in light and dark themes. */
.cta {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: var(--band-y) 0;
    text-align: center;
}

.cta .section__eyebrow,
html[data-theme="dark"] .cta .section__eyebrow {
    color: var(--link-ink);
}

.cta h2,
html[data-theme="dark"] .cta h2 {
    color: var(--text-on-dark);
}

.cta p,
html[data-theme="dark"] .cta p {
    color: var(--text-on-dark-muted);
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn--primary,
html[data-theme="dark"] .cta .btn--primary {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}

.cta .btn--primary:hover {
    background: var(--accent-strong);
}

.cta .btn--ghost,
html[data-theme="dark"] .cta .btn--ghost {
    background: transparent;
    color: var(--text-on-dark);
    border-color: var(--hairline-on-dark);
}

.cta .btn--ghost:hover {
    border-color: var(--accent);
    color: var(--link-ink);
}

/* Hero slider caption is ALWAYS white — protect it too */
.hero-slider__title,
html[data-theme="dark"] .hero-slider__title {
    color: #fff;
}

.hero-slider__lead,
html[data-theme="dark"] .hero-slider__lead {
    color: #e2e8f0;
}

.hero-slider__eyebrow,
html[data-theme="dark"] .hero-slider__eyebrow {
    color: var(--link-ink);
}

/* Buttons consistent across themes */
.btn--primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn--primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

html[data-theme="dark"] .btn--primary {
    background: var(--accent);
    color: #fff;
}

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}

html[data-theme="dark"] ::selection {
    background: var(--accent);
    color: #fff;
}

/* Smooth theme switch */
body,
.pillars,
.section,
.section--alt,
.pillar,
.card,
.nav,
.footer,
.page-stub,
.page-stub__hero,
.news-card,
.schedule,
.price-card,
.faq details,
.about-block,
.programs,
.partners,
.members {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

/* ------------------------------------------------------------------ */
/*  Profile / bio / auction / news cards (Commit A — content parity)  */
/* ------------------------------------------------------------------ */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin: var(--space-7) 0 var(--space-5);
    color: var(--text);
    letter-spacing: -0.015em;
}

.profile-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5);
}

.directory-tools {
    margin: var(--space-6) 0 var(--space-7);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
    gap: var(--space-4);
    align-items: end;
}

.directory-tools__field {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.directory-tools input,
.directory-tools select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
}

.directory-tools input:focus,
.directory-tools select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.directory-tools__count {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .directory-tools {
        grid-template-columns: 1fr;
    }

    .directory-tools__count {
        margin: 0;
    }
}

.profile-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.profile-card__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-secondary);
}

.profile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.profile-card__link:hover .profile-card__name {
    color: var(--link-ink);
}

.profile-card__body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-card__pill {
    align-self: flex-start;
    background: var(--accent-soft);
    color: var(--link-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

.profile-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0;
    color: var(--text);
}

.profile-card__meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* bio cards (management) */
.bio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-6);
}

.bio-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
}

@media (max-width: 720px) {
    .bio-card {
        grid-template-columns: 1fr;
    }
}

.bio-card__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
}

.bio-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-card__body h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
}

.bio-card__title {
    margin: 0 0 4px;
    color: var(--link-ink);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.bio-card__meta {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bio-card__body p {
    color: var(--text-muted);
    margin: 0 0 var(--space-3);
    line-height: 1.65;
}

/* foundation auction cards */
.auction-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.auction-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auction-card__photo {
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    overflow: hidden;
}

.auction-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auction-card__body {
    padding: var(--space-4);
}

.auction-card__body h3 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
}

.auction-card__body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* news list */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-5);
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .news-item {
        grid-template-columns: 1fr;
    }
}

.news-item__thumb {
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.news-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item__date {
    margin: 0 0 6px;
    color: var(--link-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-item__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 var(--space-2);
    color: var(--text);
    line-height: 1.3;
}

.news-item__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* single price-card variant for ambassador / video pages */
.price-card--single {
    max-width: 480px;
    margin: var(--space-5) auto 0;
}

/* ------------------------------------------------------------------ */
/*  Coach detail page                                                 */
/* ------------------------------------------------------------------ */

.coach-detail__header {
    padding: var(--space-6) 0 var(--space-5);
}

.coach-detail__back {
    display: inline-block;
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.coach-detail__back:hover {
    color: var(--link-ink);
}

.coach-detail__top {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: center;
}

@media (max-width: 720px) {
    .coach-detail__top {
        grid-template-columns: 1fr;
    }
}

.coach-detail__photo {
    aspect-ratio: 4 / 5;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.coach-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coach-detail__intro h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 var(--space-3);
    color: var(--text);
    letter-spacing: 0;
    line-height: 1.05;
}

.coach-detail__pill {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--link-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 8px;
    margin: 0 0 var(--space-3);
}

.coach-detail__meta,
.coach-detail__club {
    margin: 0 0 var(--space-2);
    color: var(--text-muted);
    max-width: 760px;
}

.coach-detail__club strong {
    color: var(--text);
}

.coach-detail__body {
    padding: var(--space-5) 0 var(--space-7);
    display: grid;
    gap: var(--space-6);
}

.coach-detail__bio p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 var(--space-3);
    max-width: 900px;
}

.coach-detail__blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-4);
}

.coach-detail__block {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-4);
}

.coach-detail__block h3 {
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
}

.coach-detail__records {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.coach-detail__records li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.coach-detail__records li:last-child {
    border-bottom: 0;
}

.coach-detail__record-label {
    color: var(--text);
    font-weight: 500;
    min-width: 0;
}

.coach-detail__record-value {
    color: var(--text-muted);
    text-align: right;
}

.coach-detail__videos ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.coach-detail__videos a {
    color: var(--link-ink);
    text-decoration: none;
}

.coach-detail__videos a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/*  Form submission status (Commit B)                                 */
/* ------------------------------------------------------------------ */

.form-status {
    margin-top: var(--space-4);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
}

.form-status[data-kind="error"] {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    color: #fca5a5;
}

.form-status[data-kind="success"] {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.08);
    color: #6ee7b7;
}

.form-status[data-kind="info"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--link-ink);
}


/* ============================================================
   Coach modal + flip card (Polish pass) — uses live tokens so
   light + dark themes both stay legible.
   ============================================================ */
.coach-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 32px);
    background: rgba(10, 14, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

:root[data-theme="dark"] .coach-modal {
    background: rgba(2, 6, 23, 0.75);
}

.coach-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.flip-card {
    position: relative;
    width: min(900px, 100%);
    height: min(82vh, 720px);
    perspective: 1600px;
    transform: scale(.92) translateY(8px);
    opacity: 0;
    transition:
        transform .42s cubic-bezier(.2, .9, .25, 1.15),
        opacity .28s ease;
}

.coach-modal.is-open .flip-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Slide transitions during prev/next */
.flip-card--leaving-next {
    transform: translateX(-40px) scale(.96);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.flip-card--leaving-prev {
    transform: translateX(40px) scale(.96);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.flip-card--entering-next {
    transform: translateX(40px) scale(.96);
    opacity: 0;
    transition: none;
}

.flip-card--entering-prev {
    transform: translateX(-40px) scale(.96);
    opacity: 0;
    transition: none;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.7, 0, .3, 1);
    will-change: transform;
}

.flip-card__inner.is-flipped {
    transform: rotateY(180deg);
}

.flip-card__face {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 30px 80px -20px rgba(10, 14, 20, .35);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

:root[data-theme="dark"] .flip-card__face {
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
}

.flip-card__face--front {
    display: grid;
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
}

@media (min-width: 720px) {
    .flip-card__face--front {
        grid-template-rows: 1fr;
        grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    }
}

.flip-card__photo {
    background: var(--bg-secondary);
    overflow: hidden;
}

.flip-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .8s ease;
}

.flip-card:hover .flip-card__photo img {
    transform: scale(1.06);
}

.flip-card__intro {
    padding: clamp(20px, 3.5vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.flip-card__pill {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--link-ink);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.flip-card__name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
    color: var(--text);
}

.flip-card__meta {
    margin: 0;
    color: var(--text-muted);
}

.flip-card__flip {
    align-self: flex-start;
    margin-top: 8px;
}

.flip-card__face--back {
    transform: rotateY(180deg);
    display: grid;
    grid-template-rows: auto 1fr;
}

.flip-card__back-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 56px;
    /* leave room for the floating close (×) on the right */
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.flip-card__back-head h3 {
    margin: 0;
    font-size: 1.05rem;
    text-align: center;
    font-family: var(--font-display);
    color: var(--text);
}

.flip-card__back-btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .9rem;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.flip-card__back-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--link-ink);
}

/* Floating chrome — close + nav arrows live OUTSIDE .flip-card__inner */
.flip-card__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(10, 14, 20, .55);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .18s, transform .18s, border-color .18s;
}

.flip-card__close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.06);
}

.flip-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 24px -10px rgba(10, 14, 20, .4);
    transition: background .18s, color .18s, transform .18s, border-color .18s;
}

.flip-card__nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-50%) scale(1.08);
}

.flip-card__nav--prev {
    left: -24px;
}

.flip-card__nav--next {
    right: -24px;
}

@media (max-width: 640px) {
    .flip-card__nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .flip-card__nav--prev {
        left: 6px;
    }

    .flip-card__nav--next {
        right: 6px;
    }
}

.flip-card__back-body {
    padding: clamp(18px, 3vw, 28px);
    overflow-y: auto;
    display: grid;
    gap: 22px;
    scrollbar-width: thin;
    color: var(--text);
}

.flip-card__bio p {
    margin: 0 0 .65em;
    line-height: 1.65;
    color: var(--text);
}

.flip-card__blocks {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .flip-card__blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.flip-card__block h4 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--link-ink);
}

.flip-card__records {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.flip-card__records li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
    color: var(--text);
}

.flip-card__record-label {
    color: var(--text-muted);
}

.flip-card__record-value {
    font-weight: 600;
    text-align: right;
    color: var(--text);
}

.flip-card__videos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.flip-card__videos a {
    color: var(--link-ink);
    text-decoration: none;
}

.flip-card__videos a:hover {
    text-decoration: underline;
}

.flip-card__deeplink {
    margin: 4px 0 0;
    font-size: .9rem;
    text-align: right;
}

.flip-card__deeplink a {
    color: var(--text-muted);
    text-decoration: none;
}

.flip-card__deeplink a:hover {
    color: var(--link-ink);
}

/* Subtle lift on the source card */
.profile-card__link {
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
}

.profile-card__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -22px rgba(10, 14, 20, .35);
}

@media (prefers-reduced-motion: reduce) {

    .coach-modal,
    .flip-card,
    .flip-card__inner,
    .flip-card__photo img,
    .profile-card__link {
        transition: none !important;
    }
}

/* === News article (per-article slug pages) ============================ */
.news-article {
    padding: var(--space-6) 0 var(--space-8);
}

.news-article .breadcrumbs {
    font-size: var(--fs-1);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.news-article .breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.news-article .breadcrumbs a:hover {
    color: var(--link-ink);
    text-decoration: underline;
}

.news-article__head {
    max-width: 760px;
    margin: 0 auto var(--space-5);
    text-align: center;
}

.news-article__date {
    font-size: var(--fs-1);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 var(--space-3);
}

.news-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
    line-height: 1.18;
    margin: 0;
}

.news-article__hero {
    margin: 0 auto var(--space-6);
    max-width: 960px;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-xl);
}

.news-article__hero img {
    display: block;
    width: 100%;
    height: auto;
    /* Whole picture, as on the news cards: logos and posters were cropped. */
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

.news-article__body {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--fs-3, 1.05rem);
    line-height: 1.7;
}

.news-article__body img,
.news-article__body iframe {
    max-width: 100%;
}

.news-article__body img {
    height: auto;
}

.news-article__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: var(--space-6) auto;
    max-width: 720px;
}

.news-article__nav a {
    flex: 1 1 260px;
}

.news-article__continue {
    max-width: 720px;
    margin: var(--space-6) auto 0;
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-elevated);
    text-align: center;
}

.news-article__continue .muted {
    margin: var(--space-3) 0 0;
    font-size: var(--fs-1);
    color: var(--text-muted);
}

.news-share {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.news-article__pager {
    max-width: 960px;
    margin: var(--space-7) auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.news-article__nav-link {
    display: block;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.news-article__nav-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -22px rgba(10, 14, 20, .35);
    text-decoration: none;
}

.news-article__nav-link--next {
    text-align: right;
    grid-column: 2;
}

@media (max-width: 640px) {
    .news-article__pager {
        grid-template-columns: 1fr;
    }

    .news-article__nav-link--next {
        grid-column: 1;
        text-align: left;
    }
}

/* === Verify-certificate form ========================================== */
.verify-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.verify-form__row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.verify-form__input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 12px 14px;
    font: inherit;
    font-size: var(--fs-3, 1rem);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md, 10px);
    background: var(--bg);
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.verify-form__input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.verify-result {
    margin-top: var(--space-5);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-elevated);
}

.verify-result--loading {
    color: var(--text-muted);
    text-align: center;
}

.verify-result--valid {
    border-color: #10b981;
    background: color-mix(in srgb, #10b981 8%, var(--bg-elevated));
}

.verify-result--invalid {
    border-color: #ef4444;
    background: color-mix(in srgb, #ef4444 8%, var(--bg-elevated));
}

.verify-result--pending {
    border-color: #f59e0b;
    background: color-mix(in srgb, #f59e0b 8%, var(--bg-elevated));
}

.verify-result__icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    background: var(--bg);
    margin: 0 auto var(--space-3);
    font-size: 28px;
    font-weight: 700;
}

.verify-result--valid .verify-result__icon {
    color: #10b981;
}

.verify-result--invalid .verify-result__icon {
    color: #ef4444;
}

.verify-result__title {
    text-align: center;
    margin: 0 0 var(--space-4);
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
}

.verify-result__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.verify-result__meta>div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.verify-result__meta dt {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--fs-1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verify-result__meta dd {
    margin: 0;
    font-weight: 600;
}

/* === Handoff prominence pass =========================================
   Product pages keep email options, but the app is the primary path for
   applications, purchases, payment state, and tickets. */
.nav__actions {
    gap: 10px;
}

.nav__login,
.nav__cta {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 800;
}

.nav__login {
    color: #fff;
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(10, 14, 20, 0.16);
}

.nav__login:hover {
    color: #fff;
    background: #243044;
    border-color: rgba(226, 83, 47, 0.72);
}

.nav__cta {
}

.btn {
    min-height: 46px;
}

.btn--primary {
    color: #fff;
    border-color: var(--accent);
}

.btn--primary:hover {
    color: #fff;
    border-color: var(--accent-strong);
}

.btn--ghost,
.btn--ghost-light {
    font-weight: 700;
}

.btn--ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(10, 14, 20, 0.58);
}

.btn--ghost-light:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.94);
    background: rgba(226, 83, 47, 0.92);
}

.page-stub__hero .page-stub__actions {
    margin-top: var(--space-6);
}

.application-card,
.inquiry-form {
    box-shadow: 0 18px 50px rgba(10, 14, 20, 0.08);
}

.inquiry-form {
    border-color: rgba(148, 163, 184, 0.24);
}

.inquiry-form .application-card__eyebrow {
    margin: 0 0 var(--space-2);
}

@media (max-width: 1280px) {
    .nav__links .nav__mobile-login {
        color: #fff;
        background: var(--bg-dark);
        border-color: var(--bg-dark);
    }
}

/* Optional dark image hero for page-stub pages (reusable modifier). */
.page-stub__hero--media {
    position: relative;
    background-size: cover;
    background-position: center;
    border-bottom: none;
}
.page-stub__hero--media {
    padding: clamp(120px, 18vw, 220px) 0 var(--space-7);
}
.page-stub__hero--media::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Light at the top so the photo reads, dark behind the title. At
       0.74-0.88 the (dark) hero photos were invisible. */
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.20) 0%, rgba(10, 14, 20, 0.55) 55%, rgba(10, 14, 20, 0.88) 100%);
    z-index: 0;
}
/* The photo comes in as --hero-image. An inline background-image lost to
   `html[data-theme="dark"] .page-stub__hero { background: ... !important }`,
   so no media hero had ever shown its picture in the dark theme. */
html .page-stub__hero.page-stub__hero--media,
html[data-theme="dark"] .page-stub__hero.page-stub__hero--media {
    background-image: var(--hero-image) !important;
    background-size: cover !important;
    background-position: center !important;
}
/* The dark theme paints every `.container`; here it covered the photo. */
.page-stub__hero--media .container {
    position: relative;
    z-index: 1;
    background: transparent !important;
}
.page-stub__hero--media .page-stub__eyebrow { color: var(--accent-gold, #d4af58); }
.page-stub__hero--media h1,
.page-stub__hero--media .page-stub__lead { color: #fff; }

/* Video Platform — playable teaser clips */
.video-platform-grid--teasers video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md, 12px);
    background: #000;
    margin-bottom: var(--space-3, .75rem);
    display: block;
}

/* ---- Ambassador roster -------------------------------------------------
   Generated from /public/ambassadors by scripts/generate_static_content.py.
   Cards rather than a list because each one carries a biography and a career;
   a bulleted list of thirteen paragraphs is not a list, it is a wall. */
.ambassador-grid {
  display: grid;
  gap: var(--space-4, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin: var(--space-5, 1.5rem) 0;
}

.ambassador-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #e3e3e0);
  border-radius: 18px;
  padding: 0 0 var(--space-5, 1.25rem);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

/* The portraits' own shape (310 x 397, as on the Members page): a 16:10 box
   cut every ambassador's head off (owner, 9 Oct). */
.ambassador-card__portrait { aspect-ratio: 310 / 397; background: var(--bg-secondary); overflow: hidden; margin-bottom: var(--space-5, 1.25rem); }
.ambassador-card__portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.ambassador-card__portrait--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(235,94,54,.72), transparent 29%),
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(255,255,255,.045) 43px 44px),
    #14243b;
  color: rgba(255,255,255,.94);
}
.ambassador-card__portrait--placeholder span {
  font: 700 clamp(2.5rem, 6vw, 4.5rem)/1 var(--font-display);
  letter-spacing: -.06em;
}
.ambassador-card > :not(.ambassador-card__portrait) { margin-left: var(--space-5, 1.25rem); margin-right: var(--space-5, 1.25rem); }

.ambassador-card h3 {
  margin: 0 0 .15rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

:root[data-theme="dark"] .ambassador-card { background: #14243b; border-color: rgba(255,255,255,.12); color: #eef3fb; }
:root[data-theme="dark"] .ambassador-card h3 { color: #fff; }
:root[data-theme="dark"] .ambassador-card__meta,
:root[data-theme="dark"] .ambassador-card__facts dt { color: #aebbd0; }

.ambassador-card__meta {
  margin: 0 0 .7rem;
  font-size: .82rem;
  color: var(--text-muted, #6b6b66);
}

.ambassador-card p {
  font-size: .92rem;
  line-height: 1.55;
}

.ambassador-card__details {
  display: grid;
  gap: .75rem;
}

.ambassador-card--collapsible:not(.ambassador-card--expanded) .ambassador-card__details > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ambassador-card--collapsible:not(.ambassador-card--expanded) .ambassador-card__facts {
  display: none;
}

.ambassador-card__toggle {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--link-ink);
  cursor: pointer;
  font: 700 .76rem/1.3 var(--font-body);
  letter-spacing: .08em;
  margin-top: .8rem;
  padding: .25rem 0;
  text-transform: uppercase;
}

.ambassador-card__toggle:hover,
.ambassador-card__toggle:focus-visible {
  color: var(--text-primary, #111827);
}

:root[data-theme="dark"] .ambassador-card__toggle:hover,
:root[data-theme="dark"] .ambassador-card__toggle:focus-visible {
  color: #fff;
}

.ambassador-card__facts {
  margin: .9rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--border, #e3e3e0);
  font-size: .84rem;
}

.ambassador-card__facts > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .5rem;
  margin-bottom: .35rem;
}

.ambassador-card__facts dt {
  color: var(--text-muted, #6b6b66);
  font-weight: 500;
}

.ambassador-card__facts dd {
  margin: 0;
}

/* Academy faculty (University of Belgrade) -- generated by
   scripts/regen_people_pages.py between <!-- faculty:start/end -->. */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4, 1rem);
  margin: var(--space-5, 1.5rem) 0 var(--space-6, 2rem);
}
.faculty-card { text-align: left; }
.faculty-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md, 12px);
  background: var(--bg-secondary);
  margin-bottom: var(--space-2, .5rem);
}
.faculty-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faculty-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.faculty-card__rank, .faculty-card__subject { margin: 0; font-size: .85rem; color: var(--text-muted); }
.faculty-card__subject { color: var(--link-ink); font-weight: 600; }

/* === Partner strip =================================================== */
.partners {
    padding: var(--band-y-tight) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.partners__title {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-5) 0;
}

/* Flex, not grid: 11 logos into an auto-fill grid leaves the last row
   left-aligned against a wide gap. Wrapping flex items centre instead, so an
   uneven count still reads as a deliberate strip. */
.partners__strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-5) var(--space-6);
}

.partners__strip img {
    /* A fixed height alone makes a wide wordmark tower over a compact crest.
       Capping width too gives every mark the same optical weight. */
    max-height: 52px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 200ms ease, opacity 200ms ease;
}

.partners__strip img:hover {
    filter: none;
    opacity: 1;
}

/* A linked logo (Congress partners) sizes like a bare one. */
.partners__strip a { display: inline-flex; }

/* Dark theme: many partner marks are dark-on-transparent and vanish on navy;
   a light tile gives every logo the same ground, whatever its own colours. */
:root[data-theme="dark"] .partners__strip img {
  background: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 6px);
  opacity: .85;
}

/* === Accessible action fills (visual review 10 Oct, V2) ================
   Every fill that carries a white label uses --action-fill, in both themes.
   These rules repeat the selectors that set `background: var(--accent)`
   earlier (base.css and site.css define buttons more than once), so being
   last is what makes them win. Hover went to --accent-strong, which the dark
   theme brightens to #f0744b: white on it was under 3:1. */
.nav__cta,
.btn--primary,
:root[data-theme="dark"] .btn--primary,
html[data-theme="dark"] .btn--primary,
.cta .btn--primary,
html[data-theme="dark"] .cta .btn--primary,
.nav__links .nav__mobile-cta,
.lang-switcher__btn[aria-current="true"],
.price-card__badge,
.video-platform-grid span,
.guide__steps button[aria-current="step"],
.flip-card__nav:hover {
    background: var(--action-fill);
    border-color: var(--action-fill);
    color: var(--text-on-action);
}

.nav__cta:hover,
.btn--primary:hover,
html[data-theme="dark"] .btn--primary:hover,
.cta .btn--primary:hover,
.btn--ghost:hover,
:root[data-theme="dark"] .btn--ghost:hover {
    background: var(--action-fill-hover);
    border-color: var(--action-fill-hover);
    color: var(--text-on-action);
}

/* Dark navy bands keep the bright ink: --link-ink's light value (#bc4223)
   is only 3.63:1 on #0a0e14, #f0744b is 6.73:1. */
.footer,
.members,
.program-hero,
.program-facts,
.practice-hero,
.practice-facts,
.practice-section--cta,
.cta,
.program-panel,
.home-hero {
    --link-ink: #f0744b;
}

/* ...but a white card or form inside one of those bands is light again
   (light theme only: in the dark theme the forms are navy too). */
:root:not([data-theme="dark"]) .register-form,
:root:not([data-theme="dark"]) .application-card {
    --link-ink: #bc4223;
}

/* The President / Vice President pills: --accent-strong on --accent-soft
   was 4.32:1 (light) and #f0744b on the dark tint 4.25:1. Now 5.39:1 and
   5.70:1. */
.profile-card__pill {
    color: var(--action-fill-hover);
}
:root[data-theme="dark"] .profile-card__pill {
    color: #f59a7a;
}

/* Light-theme bands on --bg-secondary (#ebe9e4) are a shade darker than
   paper: --link-ink there was 4.39:1, #a3391e is 5.48:1. Dark-theme values
   come from tokens.css and are untouched. */
:root:not([data-theme="dark"]) .section--alt,
:root:not([data-theme="dark"]) .page-stub__hero,
:root:not([data-theme="dark"]) .foundation-banner,
:root:not([data-theme="dark"]) .video-platform-section--alt,
:root:not([data-theme="dark"]) .practice-section--alt,
:root:not([data-theme="dark"]) .register-track {
    --link-ink: #a3391e;
}
