/**
 * Members area styles.
 *
 * Standalone rather than sharing the marketing site's stylesheet: this is a
 * reading-and-watching app, not a landing page, and it wants a calmer, denser
 * layout than the sales pages do.
 *
 * The tokens below are the marketing site's v3 palette verbatim (see
 * public_html/assets/templates/v3/assets/tailwind.config.js), so a student
 * moving from nataliesusi.com into a lesson never changes visual worlds. The
 * v3 component styles this file mirrors - .btn-gold, .card-v2, .eyebrow,
 * .nav-main, .footer-v2 - are hand-ported rather than pulled from the compiled
 * Tailwind build, because that build is purged against the v3 template folder
 * and knows nothing about this docroot's markup.
 */

:root {
    /* Brand: teal and gold on warm paper. */
    --ink: #003338;
    --teal: #005F69;
    --teal-deep: #004950;
    --gold: #C7A252;
    --gold-dark: #B08C3E;
    --gold-soft: #D8B968;
    --paper: #FAF7F1;
    --paper-dim: #F1ECE2;
    --text: #22302E;
    --text-dim: #5C6B69;
    --line: #E3DCCD;
    --muted: #93A3A1;
    --nav-text: #C9D4D2;
    --nav-muted: #7E8E8C;
    --surface: #ffffff;

    --font-body: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-feat: 20px;

    --shadow: 0 1px 2px rgba(0, 51, 56, .04), 0 10px 30px -14px rgba(0, 51, 56, .16);
    --shadow-lift: 0 2px 4px rgba(0, 51, 56, .05), 0 18px 44px -18px rgba(0, 51, 56, .24);
    --shadow-btn: 0 6px 24px rgba(199, 162, 82, .35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.015em;
    font-weight: 600;
    margin: 0;
}

img { max-width: 100%; display: block; }

/* One focus treatment everywhere: gold on light, and never on mouse clicks. */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
}

kbd {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 6px;
    color: var(--text-dim);
}

/* ------------------------------------------------------------- typography */

/* The site's uppercase gold kicker. Teal when it sits on paper, so it does
   not fight the gold used for actions. */
.eyebrow {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--teal);
    margin: 0 0 12px;
}

.gold-rule {
    width: 52px;
    height: 2px;
    background: var(--gold);
    border: 0;
    margin: 20px 0;
}

/* ------------------------------------------------------------------ header */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-inner--wide { max-width: 1440px; }

/* Wordmark, matching the marketing nav: Fraunces with the surname in gold
   italic. No logo file involved, same as the public site. */
.brand {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand:hover { color: var(--ink); }
.brand em { font-style: italic; color: var(--gold-dark); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14.5px;
    font-weight: 600;
}

.header-nav a {
    position: relative;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--text-dim);
    transition: color .15s, background-color .15s;
}

.header-nav a:hover { color: var(--ink); background: var(--paper-dim); }

.header-nav a.is-active { color: var(--ink); }

.header-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.header-nav-quiet { color: var(--muted) !important; font-weight: 500; }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs-bar { background: var(--surface); border-bottom: 1px solid var(--line); }

.crumbs {
    max-width: 1120px;
    margin: 0 auto;
    padding: 11px 20px;
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.crumbs--wide { max-width: 1440px; }
.crumb { color: var(--teal); font-weight: 500; }
.crumb:hover { color: var(--ink); }
.crumb.is-current { color: var(--muted); font-weight: 400; }
.crumb-sep { color: var(--line); }

/* --------------------------------------------------------------- structure */

.site-main { min-height: 60vh; }

.shell { max-width: 1120px; margin: 0 auto; padding: 44px 20px 80px; }
.shell--narrow { max-width: 680px; }

.page-head { margin-bottom: 34px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.page-head-sub { margin: 10px 0 0; color: var(--text-dim); font-size: 17px; }

.site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 40px 20px 34px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.site-footer p { margin: 0 auto 8px; max-width: 620px; }
.site-footer a { color: var(--nav-text); text-decoration: underline; text-decoration-color: rgba(201, 212, 210, .4); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-fineprint { font-size: 12.5px; color: var(--nav-muted); }

.footer-mark {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0 !important;
}

.footer-mark em { font-style: italic; color: var(--gold); }

.footer-rule {
    width: 52px;
    height: 2px;
    background: var(--gold);
    border: 0;
    margin: 16px auto 20px;
}

/* ----------------------------------------------------------------- buttons */

/* Pill buttons in Fraunces, mirroring .btn-gold / .btn-teal on the site. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}

.btn--primary {
    background: var(--gold);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal-deep);
}

.btn--outline:hover { background: var(--teal); color: #fff; }

.btn--quiet {
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 18px;
}

.btn--quiet:hover { color: var(--ink); background: var(--paper-dim); }

.btn--block { width: 100%; }
.btn--lg { padding: 15px 34px; font-size: 18px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ------------------------------------------------------------------ alerts */

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid transparent;
}

.alert--info {
    background: rgba(0, 95, 105, .06);
    border-color: rgba(0, 95, 105, .18);
    color: var(--teal-deep);
}

.alert--error {
    background: #fdf1ec;
    border-color: #f0cdbd;
    color: #9a4b28;
}

/* -------------------------------------------------------------------- auth */

.page-auth { background: var(--paper); }
.page-auth .site-main { display: grid; place-items: center; padding: 56px 20px 90px; }

/* The artwork sits beside the form rather than above it, so the page is only
   as tall as the taller column and the sign-in button always clears the fold.
   Stacked it costs 212px, which is more headroom than a phone has. */
.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 52px;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.auth-art { margin: 0; }

.auth-art img {
    display: block;
    width: 100%;
    /* Never past its natural width: the source is 591px and stretching it
       further just makes the book covers mushy. */
    max-width: 591px;
    height: auto;
    margin-left: auto;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    box-shadow: var(--shadow);
    padding: 44px 36px;
    text-align: center;
}

.auth-card h1 { font-size: 28px; }
.auth-card .eyebrow { margin-bottom: 10px; }
.auth-card .gold-rule { margin: 18px auto 0; }
.auth-lede { color: var(--text-dim); margin: 14px 0 26px; font-size: 16px; }

/* Gold-tinted glyph instead of an emoji, which renders differently on every
   platform and never matches the brand. */
.auth-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(199, 162, 82, .16);
    color: var(--gold-dark);
}

.auth-badge svg { width: 27px; height: 27px; fill: currentColor; }
.auth-fineprint { font-size: 13.5px; color: var(--text-dim); margin: 22px 0 0; }
.auth-fineprint a { color: var(--teal); text-decoration: underline; }

.auth-form { text-align: left; }

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.auth-form input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    margin-bottom: 18px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.auth-form input[type="email"]:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 95, 105, .12);
}

/* --------------------------------------------------------- progress rings */

.ring {
    --pct: 0;
    position: relative;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--paper-dim) 0) border-box;
    flex: none;
}

.ring::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--surface);
}

.ring--sm { width: 36px; height: 36px; }
.ring--md { width: 54px; height: 54px; }
.ring--lg { width: 96px; height: 96px; }

.ring--sm::before { inset: 4px; }
.ring--md::before { inset: 6px; }
.ring--lg::before { inset: 9px; }

.ring--done { background: conic-gradient(var(--teal) 100%, var(--teal) 0); }

.ring-label {
    position: relative;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.ring--lg .ring-label { font-size: 22px; }
.ring--done .ring-label { color: var(--teal-deep); }

/* ------------------------------------------------------------- course rail */

/* Every course in the library is the same horizontal row - cover art left,
   one action right - so a library of one reads exactly like a library of ten
   and nothing looks like a different kind of thing. */
.course-rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 16px 22px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .18s, border-color .18s, transform .18s;
}

.course-row:hover {
    box-shadow: var(--shadow-lift);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

/* The course they are part-way through keeps the same footprint as the rest
   and earns a gold frame instead of extra size. */
.course-row--resume {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.course-row-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 60%, var(--ink) 100%);
}

.course-row-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.course-row-art .course-card-initials { font-size: 30px; }

/* Play glyph only on the resume row, where the click really does drop them
   straight back into a video. */
.course-row--resume .course-row-art::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(250, 247, 241, .93) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003338'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 19px 19px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .18s;
}

.course-row--resume:hover .course-row-art::after { transform: translate(-50%, -50%) scale(1.08); }

.course-row-flag {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(250, 247, 241, .95);
    color: var(--teal-deep);
    font-size: 13px;
    font-weight: 700;
}

.course-row-body { min-width: 0; }

.course-row-eyebrow {
    margin: 0 0 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.course-row--resume .course-row-eyebrow { color: var(--teal); }

.course-row-body h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.course-row-body h2 a { color: var(--ink); }
.course-row-body h2 a:hover { color: var(--teal); }

/* Which lesson the button opens, so they know where they are landing before
   they commit to the click. */
.course-row-next {
    margin: 7px 0 0;
    font-size: 14.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-row-next span {
    margin-right: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
}

.course-row-progress { display: flex; align-items: center; gap: 12px; margin-top: 13px; }

.course-row-meter {
    flex: 0 1 200px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 51, 56, .1);
    overflow: hidden;
}

.course-row-meter span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

.course-row-meta {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}

.course-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 152px;
}

.course-row-actions .btn { width: 100%; }

/* Shared with the course page hero, which draws the same art treatment. */
.course-card-initials {
    font-family: var(--font-head);
    color: rgba(250, 247, 241, .9);
    font-size: 38px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.course-card-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(0, 51, 56, .35);
}

.course-card-bar span { display: block; height: 100%; background: var(--gold); }

/* ----------------------------------------------------------- locked shelf */

/* Courses the student hasn't bought. Portrait cards in a grid, so they never
   get mistaken for the rows above them: the library is a list of work, this is
   a shelf of things to pick up. The art is shown rather than blurred - hiding
   the product to prove it's locked only makes it look like less. */
.locked-section { margin-top: 52px; }

.locked-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.locked-section-head h2 { margin: 0; font-size: 23px; }

.locked-section-note {
    margin: 5px 0 0;
    font-size: 14.5px;
    color: var(--text-dim);
}

.locked-section-more {
    flex: none;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--teal);
    white-space: nowrap;
}

.locked-section-more:hover { color: var(--teal-deep); }

.locked-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.locked-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s, transform .18s;
}

.locked-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.locked-card-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 60%, var(--ink) 100%);
}

.locked-card-art img { width: 100%; height: 100%; object-fit: cover; }

.locked-card-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    /* Reads on top of any cover art, which we don't control. */
    background: rgba(0, 51, 56, .82);
    backdrop-filter: blur(4px);
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.locked-icon { width: 13px; height: 13px; fill: currentColor; flex: none; }

.locked-card-body { padding: 18px 20px 6px; flex: 1; }

/* Sentence case, unlike the eyebrows elsewhere: this line carries a duration,
   and "1H 44M" in caps reads like shouting a train time. */
.locked-card-meta {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--teal);
}

.locked-card-dot { color: var(--muted); margin: 0 3px; }

.locked-card-body h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.locked-card-body h3 a { color: var(--ink); }
.locked-card-body h3 a:hover { color: var(--teal); }

.locked-card-sub {
    margin: 7px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-dim);
}

/* The part that actually sells: proof there is something specific behind the
   price. Locked lesson titles, not marketing copy. */
.locked-card-peek {
    list-style: none;
    margin: 15px 0 0;
    padding: 14px 0 0;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 8px;
}

.locked-card-peek li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-dim);
}

/* Long lesson titles wrap to a second line instead of being cut off. A title
   is the whole reason the peek is here, and half a title sells nothing.
   min-width: 0 is what lets a flex item wrap at all. */
.locked-card-peek li span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Nudged down to sit on the first line of a wrapped title. */
.locked-card-peek .locked-icon { color: var(--muted); margin-top: 3px; }

.locked-card-peek-more {
    font-weight: 600;
    color: var(--muted);
    padding-left: 21px;
}

.locked-card-foot {
    padding: 16px 20px 20px;
    display: grid;
    gap: 11px;
}

.locked-card-price {
    margin: 0;
    font-family: var(--font-head);
    font-size: 25px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.locked-card-price s {
    margin-left: 7px;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    text-decoration-thickness: 1.5px;
}

.catalog-owned { margin-top: 52px; }

/* ------------------------------------------------------------- course page */

.course-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.course-hero-art {
    position: relative;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 60%, var(--ink) 100%);
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 18px;
}

/* Covers are designed as whole 16:9 artwork with their own type on them, so
   they get shown complete rather than cropped to fill the panel. */
.course-hero-art img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.course-hero-art .course-card-initials { font-size: 46px; }

.course-hero-text { padding: 34px 36px; min-width: 0; }
.course-hero-text h1 { font-size: clamp(26px, 3.4vw, 34px); }
.course-hero-sub { margin: 12px 0 0; color: var(--text-dim); font-size: 17px; }

.course-hero-stats {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 13.5px;
    color: var(--text-dim);
}

.course-hero-stats li { display: flex; align-items: center; gap: 7px; }
.course-hero-stats strong { color: var(--ink); font-weight: 700; }

.course-hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.course-hero-done { color: var(--teal-deep); font-weight: 700; margin: 0; font-family: var(--font-head); }

.course-hero-ring { display: flex; align-items: center; gap: 12px; flex: none; }
.course-hero-ring p { margin: 0; font-size: 12.5px; color: var(--text-dim); font-weight: 600; max-width: 90px; }

.course-hero-next {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    color: var(--text-dim);
}

.course-hero-next strong { color: var(--ink); font-weight: 700; }

.course-about {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-bottom: 30px;
    color: var(--text-dim);
    font-size: 16.5px;
}

/* ------------------------------------------------------------- curriculum */

.curriculum { display: flex; flex-direction: column; gap: 20px; }

.module {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.module.is-locked { opacity: .74; }

.module-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.module-index {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--teal-deep);
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
}

.module-headings { flex: 1; min-width: 0; }
.module-head h2 { font-size: 18px; }
.module-desc { margin: 5px 0 0; font-size: 14.5px; color: var(--text-dim); }

/* Per-module progress, so a long course shows where the work actually is. */
.module-progress {
    flex: none;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
}

.module-meter {
    width: 58px;
    height: 5px;
    border-radius: 999px;
    background: var(--paper-dim);
    overflow: hidden;
}

.module-meter span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.module-progress.is-done { color: var(--teal-deep); }
.module-progress.is-done .module-meter span { background: var(--teal); }

.lock-pill {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gold-dark);
    background: rgba(199, 162, 82, .14);
    border: 1px solid rgba(199, 162, 82, .3);
    border-radius: 999px;
    padding: 4px 11px;
}

.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-row + .lesson-row { border-top: 1px solid var(--paper-dim); }

.lesson-row-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 26px;
    color: var(--text);
    transition: background-color .14s;
}

a.lesson-row-inner:hover { background: var(--paper); color: var(--ink); }

.lesson-check {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface);
    transition: background-color .14s, border-color .14s, color .14s;
}

.lesson-row.is-done .lesson-check {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

a.lesson-row-inner:hover .lesson-check { border-color: var(--gold); color: var(--gold-dark); }
.lesson-row.is-done a.lesson-row-inner:hover .lesson-check { border-color: var(--teal); color: #fff; }

.lesson-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; }
.lesson-note { flex: none; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lesson-row.is-locked .lesson-check { border: none; background: transparent; font-size: 14px; }
.lesson-row.is-locked .lesson-title { color: var(--text-dim); }

/* ---------------------------------------------------------- lesson player */

.page-lesson { background: var(--paper); }
.page-lesson .site-main { padding-bottom: 60px; }

.lesson-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.lesson-main { min-width: 0; }

.player-placeholder {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    padding: 60px 32px;
    text-align: center;
}

.player-placeholder h2 { font-size: 20px; margin-bottom: 10px; }
.player-placeholder p { margin: 0 auto; max-width: 460px; color: var(--text-dim); font-size: 15px; }

.spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 20px;
    border: 3px solid var(--paper-dim);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lesson-head { margin: 30px 0 0; }

.lesson-eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--teal);
}

.lesson-head h1 { font-size: clamp(24px, 3vw, 31px); }

.lesson-runtime { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* Reading measure for CMS body copy: long lines are the main reason course
   text feels like a wall. */
.lesson-body {
    margin-top: 22px;
    max-width: 70ch;
    font-size: 17.5px;
    line-height: 1.72;
    color: var(--text);
}

.lesson-body h2 { font-size: 23px; margin: 34px 0 10px; }
.lesson-body h3 { font-size: 19px; margin: 28px 0 8px; }
.lesson-body p { margin: 0 0 18px; }
.lesson-body ul, .lesson-body ol { margin: 0 0 18px; padding-left: 24px; }
.lesson-body li { margin-bottom: 7px; }
.lesson-body a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.lesson-body a:hover { color: var(--ink); }
.lesson-body img { border-radius: var(--radius-sm); margin: 22px 0; }
.lesson-body strong { color: var(--ink); font-weight: 700; }

.lesson-body blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--gold);
    font-family: var(--font-head);
    font-style: italic;
    font-size: 19px;
    color: var(--teal-deep);
}

.lesson-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* --------------------------------------------------------------- downloads */

/* A lesson's attachments are often the whole point of the lesson (the download
   products have nothing else), so the list is built to be unmistakable: a
   document icon in the file type's own colour, the kind and weight spelled out,
   and a button that says Download rather than a hint that whispers it. */
.lesson-files { margin-top: 38px; }

.lesson-files h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    margin-bottom: 4px;
}

.lesson-files-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--paper-dim);
    color: var(--teal);
}

.lesson-files-icon svg { width: 17px; height: 17px; fill: currentColor; }

.lesson-files-note {
    margin: 0 0 16px;
    font-size: 14.5px;
    color: var(--text-dim);
}

.lesson-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.file-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
}

/* Per-family colour for the icon. Red for PDF and blue for Word are worth
   borrowing from the desktop even though they are outside the brand palette:
   they are what "this is a PDF" looks like to everyone already. */
.file-thumb {
    --file-color: var(--teal-deep);
    position: relative;
    flex: none;
    width: 44px;
    height: 55px;
}

.file-thumb--pdf { --file-color: #C0442B; }
.file-thumb--doc { --file-color: #2E5AAC; }
.file-thumb--sheet { --file-color: #1F7A4D; }
.file-thumb--slides { --file-color: #C4761F; }
.file-thumb--audio { --file-color: #6E4AA6; }
.file-thumb--video { --file-color: #A3455F; }
.file-thumb--image { --file-color: #0F7A86; }
.file-thumb--zip { --file-color: var(--gold-dark); }

.file-thumb svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 51, 56, .12));
}

.file-thumb-page { fill: #fff; stroke: var(--file-color); stroke-width: 1.5; stroke-opacity: .45; }
.file-thumb-fold { fill: var(--file-color); fill-opacity: .16; }
.file-thumb-rule { fill: var(--file-color); fill-opacity: .28; }
.file-thumb-band { fill: var(--file-color); }

/* Sits over the band, so the type reads as a label printed on the file. */
.file-thumb-ext {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 37%;
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
}

.file-label { flex: 1; min-width: 0; }

.file-name {
    display: block;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.file-meta {
    display: block;
    margin-top: 3px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
}

.file-dot { color: var(--muted); margin: 0 2px; }

.file-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--paper-dim);
    color: var(--teal-deep);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    transition: background-color .15s, color .15s;
}

.file-cta svg { width: 17px; height: 17px; fill: currentColor; }

.file-card:hover .file-cta { background: var(--gold); color: #fff; }

/* ------------------------------------------------------------- lesson nav */

/* Finishing a lesson and starting the next one is the single most repeated
   action in the product, so it gets a card of its own rather than a text link
   in a row of text links. */
.lesson-actions {
    margin-top: 44px;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.lesson-done-flag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-deep);
}

.lesson-done-flag[hidden] { display: none; }

.lesson-done-check {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
}

/* The lesson's own action. Still the biggest button in the members area, but
   sized to sit inside its card rather than fill it. */
.btn--xl {
    padding: 14px 32px;
    font-size: 17px;
    min-height: 50px;
}

.btn-arrow { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* The click still lands; dimming just says the save is in flight. */
.btn.is-busy { opacity: .75; pointer-events: none; }

#complete-undo[hidden] { display: none; }

/* Prev/next name the lesson they lead to, and are big enough to hit on a
   phone without aiming. */
.lesson-pager {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s, transform .15s, background-color .15s;
}

.pager-link:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--ink);
}

.pager-link.is-locked {
    opacity: .62;
    cursor: default;
    pointer-events: none;
}

.pager-link.is-locked:hover {
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.pager-link--next { text-align: right; justify-content: flex-end; }

.pager-arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--paper-dim);
    color: var(--teal-deep);
    transition: background-color .15s, color .15s;
}

.pager-arrow svg { width: 20px; height: 20px; fill: currentColor; }
.pager-link:hover .pager-arrow { background: var(--gold); color: var(--ink); }

.pager-text { min-width: 0; }

.pager-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 3px;
}

.pager-title {
    display: block;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------ action dock */

.lesson-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 20px;
    background: rgba(250, 247, 241, .93);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(0, 51, 56, .1);
}

.lesson-dock[hidden] { display: none; }

.lesson-dock-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lesson-dock-back {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--teal-deep);
    transition: border-color .15s, color .15s;
}

.lesson-dock-back:hover { border-color: var(--gold); color: var(--ink); }
.lesson-dock-back svg { width: 21px; height: 21px; fill: currentColor; }

.lesson-dock-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-dock .btn { flex: none; min-height: 46px; }

/* -------------------------------------------------------- lesson sidebar */

.lesson-sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 124px);
    display: flex;
    flex-direction: column;
}

.sidebar-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    flex: none;
}

.sidebar-head a { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.sidebar-head a:hover { color: var(--teal); }

.sidebar-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
}

.sidebar-meter {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: var(--paper-dim);
    overflow: hidden;
}

.sidebar-meter span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

.sidebar-scroll { overflow-y: auto; flex: 1; }

.sidebar-module { padding: 16px 0 8px; }
.sidebar-module + .sidebar-module { border-top: 1px solid var(--paper-dim); }

.sidebar-module h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    padding: 0 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-module-count { color: var(--line); font-weight: 700; }
.sidebar-module ol { list-style: none; margin: 0; padding: 0; }

.sidebar-lesson {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    transition: background-color .14s;
}

a.sidebar-lesson:hover { background: var(--paper); }

.sidebar-lesson-text { flex: 1; min-width: 0; }

.sidebar-lesson-time {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    margin-top: 1px;
}

.sidebar-check {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
}

.sidebar-module li.is-done .sidebar-check { background: var(--teal); border-color: var(--teal); color: #fff; }

.sidebar-module li.is-current { background: var(--paper-dim); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-module li.is-current .sidebar-lesson { font-weight: 700; color: var(--ink); }
.sidebar-module li.is-locked .sidebar-lesson { color: var(--muted); }
.sidebar-module li.is-locked .sidebar-check { border: none; }

/* ------------------------------------------------------------ 1:1 sessions */

/* A purchased call is the one thing in the library with a deadline attached,
   so it sits above the shelf and reads as an appointment rather than a
   product: teal ground, gold rule, no thumbnail to compete with the courses
   underneath it. */
.session-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #00565F 0%, var(--teal-deep) 100%);
    border: 1px solid var(--teal-deep);
    box-shadow: var(--shadow);
    color: #fff;
}

/* Minutes before the call, the join button is the only thing that matters. */
.session-card.is-live {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-lift);
}

.session-card--completed {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
    box-shadow: none;
}

.session-card-mark {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--gold-soft);
}

.session-card-mark svg { width: 24px; height: 24px; fill: currentColor; }

.session-card--completed .session-card-mark {
    background: var(--paper-dim);
    color: var(--teal);
}

.session-card-body { min-width: 0; }

.session-card-eyebrow {
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.session-card--completed .session-card-eyebrow { color: var(--muted); }

.session-card h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    color: inherit;
}

.session-card-when {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.session-card-when--past { color: var(--text-dim); font-weight: 500; font-size: 15px; }

.session-card-sub {
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.session-card-meta {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

.session-card--completed .session-card-meta { color: var(--muted); }

.session-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 168px;
}

/* On teal, the gold primary still carries and the quiet button has to be
   re-tuned: its default grey vanishes against this ground. */
.session-card .btn--outline {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.session-card .btn--outline:hover { background: #fff; color: var(--teal-deep); }
.session-card .btn--quiet { color: rgba(255, 255, 255, .75); }
.session-card .btn--quiet:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------ booking page */

/* The booking page spends its vertical space on the calendar rather than on
   breathing room: anything above the widget is a pixel the first available
   slot moves down by. */
.page-booking .shell { padding-top: 28px; }

.page-head--tight { margin-bottom: 20px; }
.page-head--tight h1 { font-size: clamp(26px, 3.2vw, 32px); }
.page-head--tight .page-head-sub { font-size: 15.5px; margin-top: 6px; }

.booking-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.booking-note {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: var(--text-dim);
    text-align: center;
}

.booking-note a { color: var(--teal); text-decoration: underline; }

.booking-confirmed {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 34px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.booking-confirmed-when {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: var(--ink);
}

.booking-confirmed-meta { margin: 8px 0 0; font-size: 14.5px; color: var(--text-dim); }

.booking-confirmed-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.booking-confirmed .booking-note { margin-top: 18px; }

.booking-calendar {
    margin: 18px 0 0;
    font-size: 13.5px;
    color: var(--text-dim);
    text-align: center;
}

.booking-calendar a { color: var(--teal); font-weight: 600; text-decoration: underline; }
.booking-calendar a:hover { color: var(--ink); }
.booking-calendar span { color: var(--line); margin: 0 4px; }

/* ----------------------------------------------------------- panels, misc */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-bottom: 22px;
}

.panel h2 { font-size: 19px; margin-bottom: 16px; }
.panel p { margin: 0 0 16px; font-size: 15px; color: var(--text-dim); }
.panel-note { font-size: 13.5px !important; margin-bottom: 0 !important; }
.panel-note a { color: var(--teal); text-decoration: underline; }

.detail-list { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; font-size: 15px; }
.detail-list dt { color: var(--text-dim); }
.detail-list dd { margin: 0; font-weight: 600; color: var(--ink); }

.access-list { list-style: none; margin: 0; padding: 0; }

.access-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
}

.access-list li + li { border-top: 1px solid var(--paper-dim); }
.access-list a { font-weight: 700; color: var(--teal); }
.access-list a:hover { color: var(--ink); }
.access-since { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-feat);
    padding: 64px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-icon { font-size: 38px; margin-bottom: 14px; }
.empty-state .auth-badge { width: 64px; height: 64px; margin-bottom: 20px; }
.empty-state .auth-badge svg { width: 30px; height: 30px; }
.empty-state h1, .empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { margin: 0 auto 10px; max-width: 470px; color: var(--text-dim); font-size: 16px; }
.empty-state .btn { margin-top: 20px; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
    .course-row { grid-template-columns: 176px minmax(0, 1fr) auto; gap: 20px; }
    .course-row-actions { min-width: 132px; }
    .course-hero { grid-template-columns: 260px minmax(0, 1fr); }
    .locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .lesson-shell { grid-template-columns: minmax(0, 1fr); }
    .lesson-sidebar { position: static; max-height: none; order: 2; }
    .sidebar-scroll { overflow: visible; }
}

/* Below this the two columns get too narrow to hold both, so the split
   collapses and the artwork has to earn its vertical space. */
@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: minmax(0, 460px);
        justify-content: center;
        gap: 26px;
        max-width: 460px;
    }

    .auth-art img { margin: 0 auto; }

    /* Artwork after the form: signing in never moves, and the collage is the
       first thing a scroll reveals. */
    .auth-split--m-below .auth-art { order: 2; }

    .auth-split--m-hide .auth-art { display: none; }

    /* A crop rather than the whole collage - the full image is 212px tall
       here, and there are only 99px to spare above the fold. */
    .auth-split--m-band .auth-art img {
        height: 110px;
        object-fit: cover;
        object-position: 50% 42%;
        border-radius: var(--radius);
    }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .header-inner { padding: 0 16px; height: 60px; }
    .brand { font-size: 18px; }
    .header-nav { gap: 0; font-size: 13.5px; }
    .header-nav a { padding: 7px 9px; }
    .crumbs { padding: 9px 16px; font-size: 12px; }
    .shell { padding: 28px 16px 60px; }
    .lesson-shell { padding: 20px 16px 0; gap: 26px; }

    /* Art stays on the left down to the narrowest phone - the row shape is
       the point - but the buttons drop under the text where they have room
       to stay tappable. */
    .course-row {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .course-row-actions {
        grid-column: 2;
        flex-direction: row;
        min-width: 0;
        margin-top: 12px;
    }

    .course-row-body h2 { font-size: 18px; }
    .course-row-next { font-size: 14px; }
    .course-row-progress { flex-wrap: wrap; gap: 8px; }
    .course-row-meter { flex: 1 1 100%; }

    /* The icon keeps its column so the card still reads as an appointment;
       the button goes full width underneath, where a thumb expects it. */
    .session-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 18px 16px;
    }

    .session-card-mark { width: 40px; height: 40px; }
    .session-card-mark svg { width: 20px; height: 20px; }
    .session-card h2 { font-size: 18px; }
    .session-card-when { font-size: 15px; }

    .session-card-actions {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        margin-top: 14px;
    }

    .booking-confirmed { padding: 26px 18px; }
    .booking-confirmed-actions .btn { width: 100%; }

    /* One card per row on a phone. Two would put the price and the button in
       a 170px column. */
    .locked-section { margin-top: 40px; }
    .locked-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .locked-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .locked-section-head h2 { font-size: 21px; }
    .catalog-owned { margin-top: 40px; }

    .course-hero { grid-template-columns: minmax(0, 1fr); }
    .course-hero-art { aspect-ratio: 16 / 9; min-height: 0; }
    .course-hero-text { padding: 26px 22px; }
    .course-hero-cta { flex-direction: column; align-items: stretch; gap: 16px; }
    .course-hero-cta .btn { width: 100%; }

    .module-head { padding: 18px 16px; flex-wrap: wrap; }
    .module-progress { width: 100%; padding-left: 46px; }
    .lesson-row-inner { padding: 14px 16px; gap: 12px; }
    .lesson-note { display: none; }

    .lesson-body { font-size: 16.5px; }

    /* The Download button drops to its own full-width row rather than shrinking
       into the corner: on a phone it is the only thing on the card to tap. */
    .file-card { flex-wrap: wrap; row-gap: 12px; padding: 14px; gap: 13px; }
    .file-name { font-size: 16px; }
    .file-cta { width: 100%; justify-content: center; }

    .lesson-actions { padding: 22px 18px; margin-top: 34px; }
    .lesson-actions .btn--xl { width: 100%; padding: 15px 18px; font-size: 16.5px; }

    /* Stacked, so each target keeps its full 80px height instead of two
       cramped columns on a 390px screen. */
    .lesson-pager { grid-template-columns: 1fr; }

    /* Stacked, both cards read arrow-then-title. row-reverse flips the visual
       order, so packing toward the left edge is flex-end, not flex-start. */
    .pager-link--next {
        flex-direction: row-reverse;
        justify-content: flex-end;
        text-align: left;
    }

    .lesson-dock { padding: 8px 12px; }
    .lesson-dock-title { display: none; }
    .lesson-dock .btn { flex: 1; font-size: 15px; padding: 12px 16px; }

    .auth-card { padding: 32px 22px; }
    .panel { padding: 22px 20px; }
    .detail-list { grid-template-columns: 1fr; gap: 2px; }
    .detail-list dd { margin-bottom: 12px; }
}
