/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    --bg: #f7f5f0;
    --bg-alt: #efebe2;
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --text: #1a1f2e;
    --text-soft: #4b5368;
    --muted: #6b7286;
    --border: #e3ddd0;
    --accent: #b8621b;
    --accent-strong: #9a4f12;
    --accent-soft: #fbeedd;
    --ink: #0f172a;
    --success: #1f7a4d;
    --star: #e59a1c;
    --header-bg: rgba(247, 245, 240, 0.82);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.16);
    --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.24);

    --container: 1180px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --header-h: 68px;

    --fs-xs: 0.78rem;
    --fs-sm: 0.88rem;
    --fs-base: 1rem;
    --fs-lg: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
    --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
    --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
}

[data-theme="dark"] {
    --bg: #0d1220;
    --bg-alt: #121a2c;
    --surface: #161f33;
    --surface-2: #1a2440;
    --text: #e8ebf3;
    --text-soft: #b6bdd0;
    --muted: #8a93ab;
    --border: #26314d;
    --accent: #f0a050;
    --accent-strong: #ffb76b;
    --accent-soft: rgba(240, 160, 80, 0.12);
    --ink: #f0a050;
    --success: #4fc28a;
    --header-bg: rgba(13, 18, 32, 0.8);
    --shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--text); }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container.narrow { max-width: 760px; }

.muted { color: var(--muted); }
.lead { font-size: var(--fs-lg); color: var(--text-soft); max-width: 62ch; }
.eyebrow {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px;
    background: var(--ink); color: #fff;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
    z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   Buttons, badges, tags
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.35rem;
    border-radius: 999px;
    font: 600 var(--fs-sm)/1 var(--font-sans);
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
[data-theme="dark"] .btn-primary { color: #1a1205; }
[data-theme="dark"] .btn-primary:hover { color: #1a1205; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .32rem .75rem;
    font-size: var(--fs-xs); font-weight: 600;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
}
.badge svg { width: 14px; height: 14px; fill: var(--star); }
.badge-lang { background: var(--ink); color: #fff; border-color: transparent; }
[data-theme="dark"] .badge-lang { color: #1a1205; }
.badge-rating { color: var(--text); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; }
.tag {
    font-size: var(--fs-xs); font-weight: 500;
    padding: .2rem .6rem;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.brand-text small { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: .3rem; }
.nav-link {
    padding: .5rem .85rem; border-radius: 999px;
    font-size: var(--fs-sm); font-weight: 500;
    color: var(--text-soft); text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }

.theme-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; margin-left: .35rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Catalog hero
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: -40% -10% auto auto;
    width: 640px; height: 640px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0;
}
.hero-stats > div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.hero-stats dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.hero-stats dd { margin: .2rem 0 0; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1.1; }

/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog { padding: 2rem 0 4.5rem; }
.catalog-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem 2rem; margin-bottom: 1.5rem;
}
.catalog-head h2 { margin-bottom: .2rem; }
.catalog-head p { margin: 0; }

.search {
    position: relative; display: flex; align-items: center;
    flex: 0 1 340px;
}
.search svg {
    position: absolute; left: 1rem; width: 18px; height: 18px;
    fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.search input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit; font-size: var(--fs-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font: 500 var(--fs-sm)/1 var(--font-sans);
    cursor: pointer;
    transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-theme="dark"] .chip.is-active { color: #1a1205; }

.result-count { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.25rem; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card[hidden] { display: none; }
.course-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.course-card-link:hover { color: inherit; }

.course-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1f2a44, #b8621b);
    overflow: hidden;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-thumb .badge-lang { position: absolute; top: .8rem; left: .8rem; box-shadow: var(--shadow); }

.thumb-fallback {
    display: none;
    position: absolute; inset: 0;
    place-items: center; text-align: center;
    padding: 1rem;
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
    color: #fff;
}
.is-fallback .thumb-fallback { display: grid; }

.course-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.course-title { font-size: 1.08rem; margin-bottom: .45rem; }
.course-tagline {
    font-size: var(--fs-sm); color: var(--text-soft);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.course-meta {
    display: flex; flex-wrap: wrap; gap: .4rem 1rem;
    margin-top: auto; padding-top: .9rem;
    border-top: 1px dashed var(--border);
    font-size: var(--fs-xs); color: var(--muted); font-weight: 500;
}
.course-meta .rating { display: inline-flex; align-items: center; gap: .25rem; color: var(--text); font-weight: 600; }
.course-meta .rating svg { width: 14px; height: 14px; fill: var(--star); }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Instructor
   ========================================================================== */
.instructor-band { padding: 0 0 4.5rem; }
.instructor-card {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-sm);
}
.instructor-band .instructor-card { max-width: calc(var(--container) - 2 * var(--gutter)); }
.instructor-card img { border-radius: 18px; flex-shrink: 0; }
.instructor-card h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.instructor-card p:last-child { margin: 0; color: var(--text-soft); }
.instructor-card .eyebrow { margin-bottom: .3rem; }

/* ==========================================================================
   Course page
   ========================================================================== */
.course-hero {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3.5rem);
    background:
        radial-gradient(900px 400px at 100% 0%, var(--accent-soft), transparent 70%),
        var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.course-hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.course-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.course-hero-media {
    position: relative; margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1f2a44, #b8621b);
    box-shadow: var(--shadow-lg);
}
.course-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { font-size: var(--fs-sm); color: var(--muted); margin-top: 1.25rem; max-width: 60ch; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: var(--fs-sm); }
.breadcrumb li { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--border); }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] {
    max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.meta-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }

.course-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 3rem;
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0 0 1.5rem; border-left: 2px solid var(--border); }
.toc a {
    display: block;
    padding: .38rem 0 .38rem 1rem; margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: var(--fs-sm); color: var(--text-soft); text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.course-content { max-width: 760px; }
.content-section { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.content-section > p { color: var(--text-soft); font-size: 1.04rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 1.5rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-soft); }
.checklist svg {
    flex-shrink: 0; width: 22px; height: 22px; padding: 4px; margin-top: 2px;
    border-radius: 50%;
    background: var(--accent-soft);
    fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
}
.timeline li { position: relative; display: flex; gap: 1.25rem; padding-bottom: 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-num {
    position: relative; z-index: 1;
    flex-shrink: 0; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700; font-size: var(--fs-sm);
}
.timeline h3 { margin: .45rem 0 .2rem; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }
.timeline p::first-letter { text-transform: uppercase; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.info-card {
    margin: 0;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.info-card h2 { font-size: 1.45rem; }
.info-card p { margin: 0; font-size: .98rem; color: var(--text-soft); }

.callout {
    padding: 1.6rem 1.75rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
}
.callout h2 { font-size: 1.6rem; }
.callout p { margin: 0; color: var(--text); }

.enroll-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #e8ebf3;
}
.enroll-card h2 { color: #fff; font-size: 1.7rem; }
.enroll-card p { color: #c5cbdc !important; }
[data-theme="dark"] .enroll-card { background: var(--surface-2); border: 1px solid var(--border); }

.instructor-inline { margin-bottom: 0; }

.related { padding: 3.5rem 0 4.5rem; background: var(--bg-alt); border-top: 1px solid var(--border); }

.mobile-cta { display: none; }

/* ==========================================================================
   404
   ========================================================================== */
.not-found { padding: clamp(4rem, 10vw, 7rem) 0; }
.not-found-list { margin-top: 3rem; }
.not-found-list h2 { font-size: 1.5rem; }
.not-found-list ul { padding-left: 1.2rem; }
.not-found-list li { margin-bottom: .4rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--text-soft); margin-top: 1rem; max-width: 40ch; }
.footer-company span { display: block; color: var(--muted); }
.footer-title { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .course-layout { grid-template-columns: 1fr; }
    .toc { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .hero-inner, .course-hero-inner { grid-template-columns: 1fr; }
    .course-hero-media { order: -1; }
    .checklist, .info-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: 1rem var(--gutter) 1.25rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-link { padding: .8rem 1rem; border-radius: var(--radius-sm); }
    .theme-toggle { margin: .5rem 0 0 1rem; }

    .page-course .site-footer { padding-bottom: 6rem; }
    .mobile-cta {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
        background: var(--header-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .search { flex-basis: 100%; }
    .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .instructor-card { flex-direction: column; }
    .hero-stats dd { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .toc, .mobile-cta, .related, .btn-row { display: none !important; }
    body { background: #fff; color: #000; }
}
