@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Prata";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/prata-latin.woff2") format("woff2");
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: optional;
    src: url("/assets/fonts/dm-sans-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #172026;
    --muted: #665d68;
    --line: #e8dfe7;
    --soft: #faf7f0;
    --paper: #fffefd;
    --brand-gold: #d7a83d;
    --brand-gold-ink: #735710;
    --brand-teal: #2a9d8f;
    --shadow: 0 22px 60px rgba(59, 31, 53, .11);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--brand-accent) 5%, transparent), transparent 24rem),
        var(--soft);
}

.brand-mark__logo {
    display: block;
    width: auto;
    max-width: 84px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark__text strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

.brand-mark__text small {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-mark--compact .brand-mark__logo {
    max-width: 66px;
    height: 56px;
}

.guest-body {
    background:
        radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--brand-accent) 16%, transparent), transparent 28%),
        radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--brand-teal) 13%, transparent), transparent 28%),
        linear-gradient(135deg, #fffefd 0%, var(--soft) 52%, #f6eef5 100%);
}

.guest-card {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--brand-primary) 18%, white);
    box-shadow: 0 28px 75px rgba(59, 31, 53, .14);
}

.guest-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent) 58%, var(--brand-gold));
    content: "";
}

.guest-card::after {
    position: absolute;
    top: -76px;
    right: -64px;
    width: 150px;
    height: 150px;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 38%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.guest-footer {
    color: color-mix(in srgb, var(--muted) 88%, var(--brand-primary));
}

.demo-login {
    display: grid;
    gap: .28rem;
    margin: 1.15rem 0;
    padding: .9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, white);
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand-accent) 5%, white);
    color: var(--muted);
    font-size: .82rem;
}

.demo-login strong {
    color: var(--brand-primary);
    font-size: .88rem;
}

.demo-login code {
    color: var(--ink);
    font-size: .78rem;
}

.content-editor {
    gap: 1.25rem;
    padding: 0;
    overflow: hidden;
}

.editor-section {
    display: grid;
    gap: 1.15rem;
    padding: clamp(1.15rem, 3vw, 1.7rem);
    border-bottom: 1px solid var(--line);
}

.editor-section__header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.editor-section__header h2,
.editor-section__header p {
    margin: 0;
}

.editor-section__header h2 {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.35rem;
}

.editor-section__header p {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .86rem;
}

.editor-step {
    display: grid;
    flex: 0 0 2rem;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 10%, white);
    color: var(--brand-accent);
    font-weight: 850;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.field-label-row a {
    font-size: .78rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem;
    border: 1px solid #cec6d0;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: var(--soft);
}

.editor-toolbar button {
    min-height: 34px;
    padding: .35rem .65rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, white);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: .78rem;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
    border-color: var(--brand-accent);
    color: var(--brand-primary);
}

.editor-toolbar + textarea {
    border-radius: 0 0 10px 10px;
}

.editor-advanced {
    margin: 0 clamp(1.15rem, 3vw, 1.7rem);
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.editor-advanced summary {
    color: var(--brand-primary);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 800;
}

.editor-advanced[open] summary {
    margin-bottom: 1rem;
}

.editor-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.15rem, 3vw, 1.7rem) 1.35rem;
}

.editor-savebar > span {
    color: var(--muted);
    font-size: .8rem;
}

.structure-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: .85rem 0 0;
}

.structure-actions form {
    display: inline-flex;
    margin: 0;
}

.structure-actions button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.structure-actions--lesson {
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 720px) {
    .editor-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-savebar .actions,
    .editor-savebar .button {
        width: 100%;
    }

    .lesson-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .structure-actions--lesson {
        justify-content: flex-start;
        width: 100%;
        padding-left: 2.9rem;
    }
}

/* Einheitliche Passwortbedienung in Anmeldung, Konto und Administration. */
.password-control {
    position: relative;
}

.password-control input {
    padding-right: 6.4rem;
}

.password-control__toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    min-width: 5.25rem;
    min-height: 34px;
    padding: .35rem .65rem;
    transform: translateY(-50%);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, white);
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand-primary) 5%, white);
    color: var(--brand-primary);
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
}

.password-control__toggle:hover {
    background: color-mix(in srgb, var(--brand-primary) 10%, white);
}

.password-control__toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-accent) 55%, white);
    outline-offset: 2px;
}

.admin-shell,
.admin-main,
.table-wrap {
    min-width: 0;
}

.table-wrap {
    max-width: 100%;
}

@media (max-width: 720px) {
    .admin-sidebar,
    .admin-main {
        max-width: 100%;
        overflow-x: clip;
    }

    .admin-sidebar nav {
        max-width: 100%;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .admin-sidebar__bottom {
        display: flex;
        align-items: center;
        gap: .35rem;
        margin-top: .55rem;
        padding-top: .55rem;
    }

    .admin-sidebar__bottom a,
    .admin-sidebar__bottom .link-button {
        padding: .45rem .6rem;
        font-size: .78rem;
    }

    .admin-sidebar__bottom form {
        margin: 0;
    }

    .admin-sidebar__bottom small {
        display: none;
    }
}

.member-dashboard-heading {
    margin-bottom: 1.4rem;
}

.member-last-active {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}

.learning-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, .45fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.continue-card {
    position: relative;
    display: flex;
    min-height: 315px;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand-gold) 38%, transparent), transparent 11rem),
        linear-gradient(140deg, #66096b 0%, #4a074e 62%, #2f1835 100%);
    color: #fff;
    box-shadow: 0 24px 55px rgba(62, 16, 64, .18);
    isolation: isolate;
}

.continue-card::before,
.continue-card::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    content: "";
}

.continue-card::before {
    top: -45%;
    right: -8%;
    width: 48%;
    aspect-ratio: 1;
}

.continue-card::after {
    right: 10%;
    bottom: -65%;
    width: 38%;
    aspect-ratio: 1;
}

.continue-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
}

.continue-card__eyebrow {
    margin: 0;
    color: #f1d587;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.continue-card__program {
    margin: .7rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .82rem;
}

.continue-card h2 {
    max-width: 18ch;
    margin: .5rem 0 .8rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.08;
}

.continue-card__content > p:not([class]) {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, .77);
}

.continue-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.continue-card__actions .button {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(24, 8, 25, .2);
}

.continue-card__actions > span {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

.continue-card__number {
    align-self: flex-end;
    color: rgba(255, 255, 255, .1);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: .8;
}

.continue-card--complete {
    background: linear-gradient(140deg, #284f48, #17342f);
}

.learning-stats {
    display: grid;
    gap: 1rem;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 18px;
    background: #fff;
}

.stat-tile small,
.stat-tile span {
    color: var(--muted);
}

.stat-tile small {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stat-tile strong {
    margin: .15rem 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.stat-tile span {
    font-size: .75rem;
}

.member-programs {
    margin-top: 1rem;
}

.program-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.program-section-heading h2 {
    margin: .2rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.program-section-heading > span {
    color: var(--muted);
    font-size: .8rem;
}

.member-program-card {
    display: flex;
    flex-direction: column;
}

.member-program-card__cover {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.member-program-card .card__image {
    object-position: center;
    transition: transform .3s ease;
}

.member-program-card__cover:hover .card__image {
    transform: scale(1.018);
}

.member-program-card .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.program-card-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}

.program-card-kicker p {
    margin: 0;
}

.program-card-kicker span {
    padding: .2rem .55rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--brand-primary) 7%, white);
    color: var(--brand-primary);
    font-size: .68rem;
    font-weight: 800;
}

.program-card-progress {
    margin-top: auto;
    padding-top: .8rem;
}

.program-card-progress > span {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .72rem;
}

.member-program-card .card__meta strong {
    color: var(--brand-primary);
    font-size: .82rem;
}

.member-program-card h2 a {
    color: inherit;
    text-decoration: none;
}

.member-program-card h2 a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.program-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem;
}

.program-card-actions a:first-child {
    color: var(--muted);
}

.program-card-actions a:last-child {
    font-weight: 750;
}

.program-hero__continue,
.program-hero__complete {
    margin-top: .8rem;
}

.member-mobile-logout {
    display: none;
}

@media (max-width: 980px) {
    .learning-overview {
        grid-template-columns: 1fr;
    }

    .learning-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .continue-card {
        min-height: 360px;
    }

    .continue-card__number {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
    }

    .continue-card__content {
        position: relative;
        z-index: 1;
    }

    .continue-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .program-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.portal-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 12%, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 24rem),
        radial-gradient(circle at 94% 72%, color-mix(in srgb, var(--brand-teal) 10%, transparent), transparent 28rem),
        #fffdf9;
}

.portal-shell {
    width: min(calc(100% - 2rem), 1240px);
    margin: 0 auto;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

.portal-header > a:first-child {
    text-decoration: none;
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    min-height: min(720px, calc(100vh - 110px));
    padding: clamp(3rem, 8vw, 7rem) 0;
}

.portal-hero h1 {
    max-width: 12ch;
    margin: .6rem 0 1.2rem;
    color: var(--brand-primary);
    font-family: "Prata", Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.portal-hero__lead {
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-actions .button {
    min-height: 52px;
    padding-inline: 1.4rem;
}

.portal-text-link {
    color: var(--brand-primary);
    font-weight: 800;
}

.portal-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    margin: 2rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .85rem;
    list-style: none;
}

.portal-checks li::before {
    margin-right: .4rem;
    color: var(--brand-gold-ink);
    content: "✓";
    font-weight: 900;
}

.portal-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.25;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, white);
    border-radius: 46% 46% 24px 24px;
    background: color-mix(in srgb, var(--brand-accent) 8%, white);
    box-shadow: 0 35px 80px rgba(62, 24, 65, .16);
}

.portal-visual::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.portal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-visual__badge {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 32px rgba(31, 16, 32, .14);
    backdrop-filter: blur(12px);
}

.portal-visual__badge strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 2rem;
}

.portal-visual__badge span {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.3;
}

.portal-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 0 6rem;
}

.portal-benefits article {
    padding: clamp(1.3rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
}

.portal-benefits article > span {
    color: var(--brand-gold-ink);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.portal-benefits h2 {
    margin: .6rem 0;
    color: var(--brand-primary);
    font-size: 1.15rem;
}

.portal-benefits p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.portal-programs {
    margin-bottom: 5rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-radius: 30px;
    background: #f6f0f5;
}

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.portal-section-heading h2 {
    margin: .3rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
}

.portal-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal-program-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 1.5rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 16px 35px rgba(41, 19, 43, .1);
}

.portal-program-card--purple {
    background: linear-gradient(145deg, #66096b, #3d0640);
}

.portal-program-card--gold {
    background: linear-gradient(145deg, #8b681b, #5f450d);
}

.portal-program-card--ink {
    background: linear-gradient(145deg, #2d2a32, #17151a);
}

.portal-program-card small {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-program-card h3 {
    margin: .65rem 0;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.portal-program-card p {
    color: rgba(255, 255, 255, .78);
}

.portal-program-card > span {
    margin-top: auto;
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    font-weight: 800;
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
}

@media (max-width: 900px) {
    .portal-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .portal-hero__content {
        max-width: 760px;
    }

    .portal-visual {
        width: min(100%, 620px);
        aspect-ratio: 16 / 10;
        border-radius: 24px;
    }

    .portal-benefits,
    .portal-program-grid {
        grid-template-columns: 1fr;
    }

    .portal-program-card {
        min-height: 230px;
    }
}

@media (max-width: 560px) {
    .portal-shell {
        width: min(calc(100% - 1.25rem), 1240px);
    }

    .portal-header .brand-mark__text {
        display: none;
    }

    .portal-header .button {
        min-height: 38px;
        padding: .45rem .75rem;
        font-size: .8rem;
    }

    .portal-hero {
        gap: 2.2rem;
        padding: 2.5rem 0 4rem;
    }

    .portal-hero h1 {
        font-size: clamp(2.05rem, 9vw, 2.7rem);
    }

    .portal-visual {
        aspect-ratio: 4 / 4.4;
    }

    .portal-section-heading,
    .portal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-programs {
        border-radius: 22px;
    }
}

.button {
    background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 58%, var(--brand-accent)));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 18%, transparent);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.button:hover {
    box-shadow: 0 11px 25px color-mix(in srgb, var(--brand-primary) 24%, transparent);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.button:focus-visible,
.link-button:focus-visible,
a:focus-visible {
    outline-color: color-mix(in srgb, var(--brand-primary) 72%, white);
}

.button--secondary,
.button--danger {
    box-shadow: none;
}

.button--secondary {
    background: #fff;
}

.button--danger {
    background: #fff;
}

.site-header {
    border-top: 3px solid var(--brand-primary);
    border-bottom-color: color-mix(in srgb, var(--brand-primary) 13%, white);
    box-shadow: 0 10px 30px rgba(59, 31, 53, .05);
}

.site-header__nav .is-active {
    position: relative;
}

.site-header__nav .is-active::after {
    position: absolute;
    right: 0;
    bottom: -.55rem;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--brand-gold);
    content: "";
}

.page-heading h1,
.hero h1,
.lesson-main h1,
.admin-heading h1 {
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: -.025em;
}

.eyebrow {
    color: var(--brand-gold-ink);
}

.card,
.panel,
.module,
.lesson-main,
.lesson-aside,
.program-hero,
.metric,
.admin-form,
.table-wrap {
    border-color: color-mix(in srgb, var(--brand-primary) 11%, white);
}

.card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.card:hover {
    border-color: color-mix(in srgb, var(--brand-accent) 28%, white);
    box-shadow: 0 18px 45px rgba(59, 31, 53, .09);
    transform: translateY(-2px);
}

.card__image--brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .35rem;
    overflow: hidden;
    padding: clamp(1.1rem, 4vw, 2rem);
    background:
        radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--brand-gold) 60%, transparent) 0 2px, transparent 3px),
        linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 94%, black), color-mix(in srgb, var(--brand-primary) 66%, var(--brand-accent)));
    color: #fff;
    isolation: isolate;
}

.card__image--brand::before,
.card__image--brand::after {
    position: absolute;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--brand-gold) 46%, transparent);
    border-radius: 50%;
    content: "";
}

.card__image--brand::before {
    top: -35%;
    right: -8%;
    width: 64%;
    aspect-ratio: 1;
}

.card__image--brand::after {
    top: -16%;
    right: 7%;
    width: 34%;
    aspect-ratio: 1;
}

.brand-cover__eyebrow {
    color: color-mix(in srgb, var(--brand-gold) 88%, white);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.card__image--brand strong {
    max-width: 16ch;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.02;
}

.card__image--brand small {
    color: rgba(255, 255, 255, .78);
}

.progress {
    background: color-mix(in srgb, var(--brand-primary) 9%, white);
}

.progress > span {
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-gold));
}

.program-hero {
    background:
        linear-gradient(120deg, #fff 0%, #fff 58%, color-mix(in srgb, var(--brand-accent) 5%, white) 100%);
    box-shadow: 0 20px 55px rgba(59, 31, 53, .06);
}

.module[open] {
    border-color: color-mix(in srgb, var(--brand-accent) 24%, white);
    box-shadow: 0 12px 30px rgba(59, 31, 53, .045);
}

.module summary > span:last-child {
    color: var(--brand-gold-ink);
    font-size: 1.15rem;
}

.editor-step,
.empty-state__icon {
    color: var(--brand-gold-ink);
}

.lesson-row:not(.lesson-row--locked):hover {
    background: color-mix(in srgb, var(--brand-accent) 6%, white);
}

.lesson-row__number {
    background: color-mix(in srgb, var(--brand-accent) 8%, white);
    color: var(--brand-primary);
}

.lesson-aside {
    border-top: 4px solid var(--brand-gold);
}

.admin-sidebar {
    border-top: 4px solid var(--brand-primary);
    background: linear-gradient(180deg, #fff 0%, #fff 72%, color-mix(in srgb, var(--brand-accent) 4%, white));
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
}

.admin-sidebar nav a.is-active {
    box-shadow: inset 3px 0 var(--brand-accent);
}

.metric {
    position: relative;
    overflow: hidden;
}

.metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--brand-accent);
    content: "";
}

.metric:nth-child(2)::before {
    background: var(--brand-teal);
}

.metric:nth-child(3)::before {
    background: var(--brand-gold);
}

.metric:nth-child(4)::before {
    background: var(--brand-primary);
}

.metric strong {
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tabs .is-active {
    border-bottom-color: var(--brand-accent);
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .card,
    .member-program-card .card__image {
        transition: none;
    }
}

@media (max-width: 720px) {
    .brand-mark__logo {
        max-width: 68px;
        height: 58px;
    }

    .site-header__nav .is-active::after {
        bottom: -.3rem;
    }

    .card:hover,
    .button:hover {
        transform: none;
    }

    .member-program-card__cover:hover .card__image {
        transform: none;
    }
}

/* Member help center */
.help-center-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 5%, rgba(215, 168, 61, .3), transparent 13rem),
        linear-gradient(140deg, #66096b 0%, #4c0750 66%, #311b37 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(62, 16, 64, .18);
    isolation: isolate;
}

.help-center-hero::before,
.help-center-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.help-center-hero::before {
    top: -52%;
    right: -10%;
    width: 42%;
    aspect-ratio: 1;
}

.help-center-hero::after {
    right: 24%;
    bottom: -75%;
    width: 34%;
    aspect-ratio: 1;
}

.help-center-hero .eyebrow {
    color: #f2d889;
}

.help-center-hero h1 {
    max-width: 12ch;
    margin: .55rem 0 1rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.help-center-hero__copy > p:last-child {
    max-width: 54ch;
    margin: 0;
    color: rgba(255, 255, 255, .76);
}

.help-search {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.help-search label {
    display: block;
    margin-bottom: .55rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.help-search__control {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 54px;
    padding: .25rem .4rem .25rem .9rem;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.help-search__control > span {
    color: var(--brand-primary);
    font-size: 1.5rem;
    line-height: 1;
}

.help-search__control input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
}

.help-search__control button {
    padding: .55rem .65rem;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    color: var(--muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 750;
}

.help-search > p {
    margin: .55rem 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
}

.help-section-heading h2 {
    margin: .2rem 0 0;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.help-quick-actions {
    margin-bottom: 2rem;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.help-quick-card {
    display: flex;
    min-height: 155px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.help-quick-card:hover {
    border-color: color-mix(in srgb, var(--brand-accent) 34%, white);
    box-shadow: 0 16px 35px rgba(59, 31, 53, .08);
    transform: translateY(-2px);
}

.help-quick-card > span {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    margin-bottom: auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 9%, white);
    color: var(--brand-primary);
    font-size: .65rem;
    font-weight: 850;
}

.help-quick-card strong {
    margin-top: 1rem;
}

.help-quick-card small {
    margin-top: .2rem;
    color: var(--muted);
}

.help-category-nav {
    position: sticky;
    top: 76px;
    z-index: 10;
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    margin-bottom: 1.3rem;
    padding: .7rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(59, 31, 53, .05);
    backdrop-filter: blur(14px);
}

.help-category-nav a {
    flex: 0 0 auto;
    padding: .55rem .75rem;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 750;
}

.help-category-nav a:hover {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
    color: var(--brand-primary);
}

.help-category-list {
    display: grid;
    gap: 1rem;
}

.help-category {
    display: grid;
    grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 5vw, 4rem);
    scroll-margin-top: 155px;
    padding: clamp(1.3rem, 4vw, 2.2rem);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 20px;
    background: #fff;
}

.help-category[hidden],
.help-faq[hidden] {
    display: none;
}

.help-category__intro {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.help-category__intro > span {
    color: var(--brand-gold-ink);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.help-category__intro h2 {
    margin: -.15rem 0 .55rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.help-category__intro p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.help-faq-list {
    display: grid;
    align-content: start;
}

.help-faq {
    border-bottom: 1px solid var(--line);
}

.help-faq:first-child {
    border-top: 1px solid var(--line);
}

.help-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem .25rem;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.help-faq summary::-webkit-details-marker {
    display: none;
}

.help-faq summary > span:last-child {
    color: var(--brand-gold-ink);
    font-size: 1.1rem;
    transition: transform .18s ease;
}

.help-faq[open] summary > span:last-child {
    transform: rotate(45deg);
}

.help-faq > p {
    max-width: 72ch;
    margin: -.25rem 2.5rem 1.1rem .25rem;
    color: var(--muted);
    font-size: .9rem;
}

.help-empty {
    margin-top: 1rem;
    padding: 2.5rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--brand-primary) 25%, white);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.help-empty p {
    margin: .35rem 0 0;
    color: var(--muted);
}

.help-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    scroll-margin-top: 120px;
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 9%, white), #fff);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
}

.help-contact h2 {
    margin: .35rem 0 .55rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.help-contact p {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
}

.help-contact__action {
    display: flex;
    min-width: min(100%, 280px);
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
}

.help-contact__action small {
    color: var(--muted);
}

.member-help-strip,
.program-help-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 11%, white);
    border-radius: 18px;
    background: #fff;
}

.member-help-strip h2,
.program-help-callout h2 {
    margin: .25rem 0 .35rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
}

.member-help-strip p:last-child,
.program-help-callout p:last-child {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}

.member-help-strip__links {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .8rem;
    font-size: .82rem;
}

.lesson-context-help {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.lesson-context-help strong {
    display: block;
    margin: .3rem 0;
    line-height: 1.35;
}

.lesson-context-help > p:not(.eyebrow) {
    margin: .35rem 0 .65rem;
    color: var(--muted);
    font-size: .8rem;
}

.lesson-context-help a {
    font-size: .82rem;
    font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
    .help-quick-card,
    .help-faq summary > span:last-child {
        transition: none;
    }
}

@media (max-width: 980px) {
    .help-center-hero,
    .help-category {
        grid-template-columns: 1fr;
    }

    .help-center-hero h1 {
        max-width: 16ch;
    }

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

    .member-help-strip,
    .program-help-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-help-strip__links {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .help-center-hero {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .help-quick-grid {
        grid-template-columns: 1fr;
    }

    .help-quick-card {
        min-height: 130px;
    }

    .help-category-nav {
        top: 88px;
        margin-right: -1rem;
        margin-left: -1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .help-category {
        scroll-margin-top: 190px;
    }

    .help-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-contact__action,
    .help-contact__action .button {
        width: 100%;
    }

    .member-help-strip__links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .help-search__control {
        align-items: stretch;
        flex-wrap: wrap;
        padding: .6rem;
    }

    .help-search__control > span {
        display: none;
    }

    .help-search__control input {
        width: 100%;
        flex-basis: 100%;
        padding: .3rem;
    }

    .help-search__control button {
        margin-left: auto;
    }
}

/* Accessible contextual tooltips */
.tooltip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    vertical-align: middle;
}

.tooltip__trigger {
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, white);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 5%, white);
    color: var(--brand-primary);
    cursor: help;
    font-size: .67rem;
    font-weight: 850;
    line-height: 1;
}

.tooltip__trigger:hover,
.tooltip__trigger:focus-visible {
    border-color: color-mix(in srgb, var(--brand-accent) 48%, white);
    background: color-mix(in srgb, var(--brand-accent) 9%, white);
    outline: 2px solid color-mix(in srgb, var(--brand-accent) 26%, white);
    outline-offset: 2px;
}

.tooltip__bubble {
    position: absolute;
    right: auto;
    bottom: calc(100% + .65rem);
    left: 50%;
    z-index: 50;
    width: max-content;
    max-width: min(260px, calc(100vw - 2rem));
    padding: .7rem .8rem;
    border-radius: 10px;
    background: #291d2c;
    box-shadow: 0 12px 28px rgba(31, 18, 34, .2);
    color: #fff;
    font-size: .75rem;
    font-weight: 550;
    letter-spacing: 0;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transform: translate(-50%, .3rem);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    visibility: hidden;
}

.tooltip__bubble::after {
    position: absolute;
    top: 100%;
    left: 50%;
    border: .35rem solid transparent;
    border-top-color: #291d2c;
    content: "";
    transform: translateX(-50%);
}

.tooltip:hover .tooltip__bubble,
.tooltip:focus-within .tooltip__bubble {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.tooltip--left .tooltip__bubble {
    right: -.2rem;
    left: auto;
    transform: translateY(.3rem);
}

.tooltip--left .tooltip__bubble::after {
    right: .5rem;
    left: auto;
    transform: none;
}

.tooltip--left:hover .tooltip__bubble,
.tooltip--left:focus-within .tooltip__bubble {
    transform: translateY(0);
}

.label-with-tooltip,
.heading-with-tooltip,
.action-with-tooltip,
.lesson-row__state--explained {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.label-with-tooltip {
    flex-wrap: wrap;
}

.heading-with-tooltip {
    justify-content: space-between;
}

.action-with-tooltip {
    width: fit-content;
}

.action-with-tooltip form {
    display: inline-flex;
    margin: 0;
}

.lesson-row__state--explained {
    flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .tooltip__bubble {
        transition: none;
    }
}

@media (max-width: 720px) {
    .tooltip__bubble {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        transform: translateY(.4rem);
    }

    .tooltip__bubble::after,
    .tooltip--left .tooltip__bubble::after {
        display: none;
    }

    .tooltip:hover .tooltip__bubble,
    .tooltip:focus-within .tooltip__bubble,
    .tooltip--left:hover .tooltip__bubble,
    .tooltip--left:focus-within .tooltip__bubble {
        transform: translateY(0);
    }

    .lesson-row__state--explained {
        margin-left: 2.9rem;
    }
}

/* Step-by-step member guides */
.guides-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .65fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    overflow: hidden;
    margin-bottom: 1.2rem;
    padding: clamp(2rem, 6vw, 4.7rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 91% 2%, rgba(215, 168, 61, .28), transparent 13rem),
        linear-gradient(142deg, #66096b 0%, #4b0750 65%, #2d1833 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(62, 16, 64, .18);
}

.guides-hero .eyebrow {
    color: #f2d889;
}

.guides-hero h1 {
    max-width: 11ch;
    margin: .55rem 0 1rem;
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.guides-hero > div > p:not(.eyebrow) {
    max-width: 58ch;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .76);
}

.guides-hero .button {
    background: #fff;
    color: var(--brand-primary);
}

.guides-hero__checklist {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.guides-hero__checklist > span {
    color: #f2d889;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.guides-hero__checklist ol {
    display: grid;
    gap: .85rem;
    margin: 1rem 0 0;
    padding: 0;
    counter-reset: guide-checklist;
    list-style: none;
}

.guides-hero__checklist li {
    position: relative;
    display: grid;
    gap: .05rem;
    min-height: 2.3rem;
    padding-left: 3rem;
    counter-increment: guide-checklist;
}

.guides-hero__checklist li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #f2d889;
    content: counter(guide-checklist, decimal-leading-zero);
    font-size: .62rem;
    font-weight: 850;
}

.guides-hero__checklist strong {
    font-size: .84rem;
}

.guides-hero__checklist small {
    color: rgba(255, 255, 255, .65);
}

.guide-index {
    position: sticky;
    top: 76px;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .55rem;
    scroll-margin-top: 120px;
    margin-bottom: 1.2rem;
    padding: .7rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 30px rgba(59, 31, 53, .06);
    backdrop-filter: blur(14px);
}

.guide-index a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 .55rem;
    padding: .65rem;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
}

.guide-index a:hover {
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
}

.guide-index a > span {
    grid-row: 1 / 3;
    color: var(--brand-gold-ink);
    font-size: .64rem;
    font-weight: 850;
}

.guide-index strong {
    overflow: hidden;
    font-size: .79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-index small {
    overflow: hidden;
    color: var(--muted);
    font-size: .62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-list {
    display: grid;
    gap: 1.2rem;
}

.guide-detail {
    scroll-margin-top: 165px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(59, 31, 53, .045);
}

.guide-detail__header {
    display: grid;
    grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, color-mix(in srgb, var(--brand-accent) 5%, white), #fff 62%);
}

.guide-detail__header > div:first-child > span {
    display: inline-flex;
    padding: .4rem .65rem;
    border-radius: 99px;
    background: var(--brand-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.guide-detail__header > div:first-child > p {
    margin: .55rem 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.guide-detail__header h2 {
    margin: .35rem 0 .6rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.guide-detail__header > div:last-child > p:last-child {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
}

.guide-steps {
    display: grid;
    margin: 0;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    list-style: none;
}

.guide-steps > li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.guide-steps > li:last-child {
    border-bottom: 0;
}

.guide-step__number {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, white);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-accent) 7%, white);
    color: var(--brand-primary);
    font-size: .67rem;
    font-weight: 850;
}

.guide-steps h3 {
    margin: .1rem 0 .4rem;
    color: var(--ink);
    font-size: 1rem;
}

.guide-steps p {
    max-width: 76ch;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.guide-steps a:not(.button) {
    display: inline-block;
    margin-top: .65rem;
    font-size: .83rem;
    font-weight: 750;
}

.guide-example {
    display: grid;
    max-width: 430px;
    gap: .15rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--brand-primary), #351a3b);
    color: #fff;
}

.guide-example > span {
    color: #f2d889;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guide-example strong {
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
}

.guide-example small {
    margin-top: .35rem;
    color: rgba(255, 255, 255, .68);
}

.guide-example--light {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
    background: var(--soft);
    color: var(--brand-primary);
}

.guide-example--light small {
    color: var(--muted);
}

.guide-detail__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem clamp(1.5rem, 5vw, 3rem);
    border-top: 1px solid var(--line);
    background: var(--soft);
    font-size: .83rem;
}

.guides-next-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 22px;
    background: linear-gradient(130deg, color-mix(in srgb, var(--brand-accent) 9%, white), #fff);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
}

.guides-next-help h2 {
    margin: .3rem 0 .45rem;
    color: var(--brand-primary);
    font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 700;
}

.guides-next-help p:last-child {
    margin: 0;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .guide-index a {
        scroll-behavior: auto;
    }
}

@media (max-width: 980px) {
    .guides-hero,
    .guide-detail__header {
        grid-template-columns: 1fr;
    }

    .guide-index {
        display: flex;
        overflow-x: auto;
    }

    .guide-index a {
        min-width: 165px;
        flex: 1 0 165px;
    }
}

@media (max-width: 720px) {
    .guides-hero {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .guide-index {
        top: 88px;
        margin-right: -1rem;
        margin-left: -1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .guide-detail {
        scroll-margin-top: 200px;
    }

    .guide-steps > li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: .75rem;
    }

    .guide-step__number {
        width: 2.25rem;
        height: 2.25rem;
    }

    .guide-detail__footer,
    .guides-next-help {
        align-items: flex-start;
        flex-direction: column;
    }

    .guides-next-help .button {
        width: 100%;
    }

    .site-header {
        align-items: center;
        min-height: 66px;
        padding: .65rem 1rem;
        backdrop-filter: none;
    }

    .site-header__nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: .3rem .35rem max(.3rem, env(safe-area-inset-bottom));
        border-top: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -10px 30px rgba(59, 31, 53, .08);
        backdrop-filter: blur(16px);
    }

    .site-header__nav a {
        display: flex;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: .4rem .25rem;
        border-radius: 9px;
        font-size: .68rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .site-header__nav a.is-active {
        background: color-mix(in srgb, var(--brand-accent) 7%, white);
    }

    .site-header__nav .is-active::after {
        top: -.3rem;
        right: 20%;
        bottom: auto;
        left: 20%;
    }

    .site-header__nav form {
        display: none;
    }

    .page-shell {
        padding-bottom: 6.5rem;
    }

    .site-footer {
        margin-bottom: 4.3rem;
    }

    .member-mobile-logout {
        display: block;
    }

    .program-card-actions {
        gap: .55rem;
    }
}
