/* =====================================================================
   ScholarHat — Self-Paced Course page
   Everything is scoped under .sp-page so it can never leak into the
   existing course/bootcamp pages. No Bootstrap dependency: grid,
   spacing and components are native CSS. Bootstrap may still be on the
   page, it just isn't required by anything here.
   ===================================================================== */

.sp-page {
    /* brand */
    --sp-brand: #26d3e4;
    --sp-brand-600: #1bb7c9;
    --sp-brand-700: #0e9aaa;
    --sp-brand-soft: rgba(38,211,228,.10);
    --sp-brand-line: rgba(38,211,228,.22);
    /* ink */
    --sp-ink: #0f172a;
    --sp-body: #334155;
    --sp-muted: #64748b;
    /* surfaces */
    --sp-bg: #ffffff;
    --sp-surface: #f5fafb;
    --sp-card: #ffffff;
    --sp-line: #e4ecf1;
    --sp-line-soft: rgba(15,23,42,.07);
    /* content-type accents (kept identical across the whole page) */
    --sp-video: #0e9aaa;
    --sp-lab: #059669;
    --sp-note: #7c3aed;
    --sp-test: #2563eb;
    --sp-qna: #d97706;
    --sp-project: #db2777;
    /* premium accent — "achievement orange" against the brand's
       "progress teal", used only where the page wants to feel like a
       reward/value moment (pricing) instead of reaching for cyan again */
    /* retuned from orange to the ScholarHat cyan family: shadow in the
       brand cyan, label/ribbon text in a deep teal that keeps 4.5:1 */
    --sp-premium: #26d3e4;
    --sp-premium-ink: #0b6f7a;
    --sp-premium-soft: rgba(38,211,228,.14);
    --sp-premium-line: rgba(38,211,228,.34);
    /* shape + depth */
    --sp-r-xs: 8px;
    --sp-r-sm: 12px;
    --sp-r-md: 16px;
    --sp-r-lg: 22px;
    --sp-r-pill: 999px;
    --sp-sh-1: 0 1px 2px rgba(15,23,42,.05);
    --sp-sh-2: 0 10px 28px rgba(15,23,42,.07);
    --sp-sh-3: 0 22px 48px rgba(15,23,42,.13);
    --sp-ring: 0 0 0 3px rgba(38,211,228,.35);
    /* --sp-accent tints icons/borders; --sp-accent-ink is the text-safe
       mix of it toward the ink, so small bold accent text keeps 4.5:1 */
    --sp-accent: var(--sp-brand-700);
    --sp-accent-ink: color-mix(in srgb, var(--sp-accent) 70%, var(--sp-ink));
    color: var(--sp-body);
    background: var(--sp-bg);
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
}

[data-bs-theme="dark"] .sp-page {
    --sp-ink: #f1f5f9;
    --sp-body: #cbd5e1;
    --sp-muted: #94a3b8;
    --sp-bg: #020817;
    --sp-surface: #070f21;
    --sp-card: #0b1628;
    --sp-line: rgba(255,255,255,.08);
    --sp-line-soft: rgba(255,255,255,.06);
    --sp-brand-soft: rgba(38,211,228,.09);
    --sp-brand-line: rgba(38,211,228,.18);
    --sp-video: #22d3ee;
    --sp-lab: #34d399;
    --sp-note: #a78bfa;
    --sp-test: #60a5fa;
    --sp-qna: #fbbf24;
    --sp-project: #f472b6;
    --sp-premium: #26d3e4;
    --sp-premium-ink: #0e9aaa;
    --sp-premium-soft: rgba(38,211,228,.12);
    --sp-premium-line: rgba(38,211,228,.3);
    --sp-sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sp-sh-2: 0 12px 30px rgba(0,0,0,.38);
    --sp-sh-3: 0 24px 50px rgba(0,0,0,.5);
    --sp-accent: var(--sp-brand);
    --sp-accent-ink: color-mix(in srgb, var(--sp-accent) 70%, var(--sp-ink));
}

.sp-page *,
.sp-page *::before,
.sp-page *::after {
    box-sizing: border-box;
}

/* ---------- layout primitives ------------------------------------ */

.sp-wrap {
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
    padding-inline: 20px;
}

.sp-wrap--narrow {
    max-width: 940px;
}

/* the col-lg-10-style reading column — every text/content section sits
   inside this so the page reads as one consistent width, not a mix of
   full-bleed and centered blocks. sp-wrap (above) stays for the hero,
   curriculum and pricing, which need the extra room for their grids. */
.sp-shell {
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
    padding-inline: 20px;
}

.sp-sec {
    padding-block: clamp(40px, 5.5vw, 76px);
}

.sp-sec__head {
    margin-bottom: clamp(10px, 1vw, 22px);
    max-width: 62ch;
}

.sp-sec__head--center {
    margin-inline: auto;
    text-align: center;
}

.sp-sec__title {
    margin: 0 0 10px;
    color: var(--sp-ink);
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
}

    .sp-sec__title::after {
        content: "";
        display: block;
        width: 34px;
        height: 3px;
        margin-top: 12px;
        border-radius: 2px;
        background: var(--sp-brand-700);
    }

[data-bs-theme="dark"] .sp-sec__title::after {
    background: var(--sp-brand);
}

.sp-sec__head--center .sp-sec__title::after {
    margin-inline: auto;
}

.sp-sec__sub {
    margin: 0;
    color: var(--sp-muted);
    font-size: .97rem;
    line-height: 1.7;
}

/* ---------- buttons ---------------------------------------------- */

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .78rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--sp-r-pill);
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

    .sp-btn:focus-visible {
        outline: none;
        box-shadow: var(--sp-ring);
    }

    .sp-btn svg {
        width: 17px;
        height: 17px;
        flex: none;
    }

.sp-btn--primary {
    color: #04222a;
    background: var(--sp-brand);
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

    .sp-btn--primary:hover {
        background: var(--sp-brand-600);
        color: #04222a;
    }

.sp-btn--ghost {
    color: var(--sp-ink);
    background: var(--sp-card);
    border-color: var(--sp-line);
    box-shadow: var(--sp-sh-1);
}

    .sp-btn--ghost:hover {
        color: var(--sp-ink);
        border-color: var(--sp-brand-line);
        background: var(--sp-brand-soft);
    }

.sp-btn--link {
    padding: .55rem .4rem;
    color: var(--sp-brand-700);
    background: none;
    font-weight: 600;
    font-size: .86rem;
}

[data-bs-theme="dark"] .sp-btn--link {
    color: var(--sp-brand);
}

.sp-btn--link:hover {
    text-decoration: underline;
}

.sp-btn--block {
    width: 100%;
}

/* soft premium pill — tinted fill instead of a solid brand-color
   block, so the one CTA that should feel like a reward doesn't just
   repeat the same cyan every other button on the page uses */
/* same hard-edged, premium-tinted language as the card it lives in:
   flat border + offset shadow that collapses as you press it in */
.sp-btn--premium {
    color: var(--sp-ink);
    background: var(--sp-premium-soft);
    border: 2px solid var(--sp-ink);
    border-radius: 10px;
    box-shadow: 4px 4px 0 0 var(--sp-ink);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

    .sp-btn--premium:hover {
        color: var(--sp-ink);
        background: color-mix(in srgb, var(--sp-premium) 26%, transparent);
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0 0 var(--sp-ink);
    }

    .sp-btn--premium:active {
        transform: translate(4px, 4px);
        box-shadow: 0 0 0 0 var(--sp-ink);
    }

[data-bs-theme="dark"] .sp-btn--premium {
    color: var(--sp-premium);
    border-color: var(--sp-premium);
    box-shadow: 4px 4px 0 0 var(--sp-premium-ink);
}

    [data-bs-theme="dark"] .sp-btn--premium:hover {
        box-shadow: 2px 2px 0 0 var(--sp-premium-ink);
    }

    [data-bs-theme="dark"] .sp-btn--premium:active {
        box-shadow: 0 0 0 0 var(--sp-premium-ink);
    }

.sp-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ---------- hero -------------------------------------------------- */
/* Deliberately its own composition — no badge pill, no gradient title,
   no boxed stat grid, no glass media card. A plain eyebrow line, flat
   surface, a slim divided meta rail instead of tiles, and a bordered
   (not glassy) preview frame with a floating caption. */

.sp-hero {
    position: relative;
    padding-block: clamp(30px, 4.5vw, 58px) clamp(34px, 4.5vw, 62px);
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-line-soft);
}

    .sp-hero::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: var(--sp-brand-700);
    }

[data-bs-theme="dark"] .sp-hero::before {
    background: var(--sp-brand);
}

.sp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: stretch;
}

.sp-hero__media {
    display: flex;
}

.sp-hero__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-hero__top {
    flex: 1;
}

.sp-hero__actions--pinned {
    margin-top: 22px;
    margin-bottom: 0;
}

/* --- elegant reveal card: shared "materialistic" hover language for
   the hero preview and the certificate card — a thin accent line that
   swaps in from a hairline on hover, plus a real lift. Works via
   :hover, :focus and :focus-within so keyboard users get it too. */
.sp-reveal-card {
    position: relative;
    background: var(--sp-card);
    border-radius: var(--sp-r-lg);
    box-shadow: var(--sp-sh-1);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}

    .sp-reveal-card::before,
    .sp-reveal-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        z-index: 2;
    }

    .sp-reveal-card::before {
        width: 0;
        background: var(--sp-brand);
        opacity: 0;
        transition: width 0s ease .4s, opacity 0s ease .4s;
    }

    .sp-reveal-card::after {
        background: var(--sp-line);
        transition: width .4s ease;
    }

    .sp-reveal-card:hover,
    .sp-reveal-card:focus,
    .sp-reveal-card:focus-within {
        transform: translateY(-6px);
        box-shadow: var(--sp-sh-3);
    }

    .sp-reveal-card:hover::before,
    .sp-reveal-card:focus::before,
    .sp-reveal-card:focus-within::before {
        width: 100%;
        opacity: 1;
        transition: width .4s ease, opacity .4s ease;
    }

    .sp-reveal-card:hover::after,
    .sp-reveal-card:focus::after,
    .sp-reveal-card:focus-within::after {
        width: 0;
        transition: width 0s ease;
    }

.sp-crumb {
    margin-bottom: 16px;
    font-size: .8rem;
}

    .sp-crumb a {
        color: var(--sp-muted);
        text-decoration: none;
    }

        .sp-crumb a:hover {
            color: var(--sp-brand-700);
        }

.sp-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--sp-brand-700);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

[data-bs-theme="dark"] .sp-hero__eyebrow {
    color: var(--sp-brand);
}

.sp-hero__eyebrow span {
    width: 18px;
    height: 2px;
    background: currentColor;
    flex: none;
}

.sp-hero__title {
    margin: 14px 0 12px;
    color: var(--sp-ink);
    font-size: clamp(1.85rem, 2.7rem, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    max-width: 17ch;
}

.sp-hero__lead {
    margin: 0 0 20px;
    max-width: 58ch;
    color: var(--sp-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

    .sp-hero__lead strong {
        color: var(--sp-ink);
        font-weight: 700;
    }

.sp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sp-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--sp-line-soft);
    font-size: .86rem;
}

    .sp-rating a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--sp-body);
        text-decoration: none;
    }

        .sp-rating a:hover {
            color: var(--sp-brand-700);
        }

    .sp-rating img {
        height: 17px;
        width: auto;
    }

    .sp-rating b {
        color: var(--sp-ink);
    }

    .sp-rating span {
        color: var(--sp-muted);
    }

/* content mix — one slim divided line, not a grid of boxed tiles */
.sp-metarail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
}

.sp-metarail__i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    border-left: 1px solid var(--sp-line);
    color: var(--sp-muted);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
}

    .sp-metarail__i:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .sp-metarail__i svg {
        width: 16px;
        height: 16px;
        flex: none;
        color: var(--sp-accent, var(--sp-brand-700));
    }

    .sp-metarail__i b {
        color: var(--sp-ink);
        font-variant-numeric: tabular-nums;
    }

/* .t-video / .t-lab / etc and --sp-accent come from the shared
   ".sp-page .t-*" rules further down — used by both the metarail
   above and the admin sp-rte blocks. */

/* hero preview — bordered frame, not a glass/glow card */
.sp-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: var(--sp-surface);
    overflow: hidden;
    cursor: pointer;
}

.sp-preview__media {
    position: relative;
    flex: 1;
    min-height: 320px;
}

    .sp-preview__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.sp-preview__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

    .sp-preview__play i {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255,255,255,.94);
        color: var(--sp-brand-700);
        box-shadow: 0 6px 20px rgba(2,20,30,.24);
        transition: transform .2s ease;
    }

    .sp-preview__play svg {
        width: 20px;
        height: 20px;
        margin-left: 3px;
    }

.sp-preview:hover .sp-preview__play i {
    transform: scale(1.06);
}

.sp-preview__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .32rem .7rem;
    border-radius: var(--sp-r-pill);
    background: rgba(2,8,23,.72);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.sp-hero__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 2px 0;
    color: var(--sp-muted);
    font-size: .82rem;
}

    .sp-hero__note svg {
        width: 15px;
        height: 15px;
        flex: none;
        color: var(--sp-brand-700);
    }

[data-bs-theme="dark"] .sp-hero__note svg {
    color: var(--sp-brand);
}

/* =====================================================================
   VS STRIP — self-paced vs. scattered free tutorials, right under the
   hero where a first-time visitor decides whether to keep scrolling
   ===================================================================== */

.sp-vs {
    padding-block: clamp(22px, 3vw, 34px);
}

.sp-vs-shell {
    padding: clamp(20px, 3vw, 30px) clamp(18px, 3.5vw, 34px);
}

.sp-vs__head {
    text-align: center;
    margin-bottom: 20px;
}

.sp-vs__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: .3rem .8rem;
/*    border-radius: var(--sp-r-pill);*/
/*    background: var(--sp-surface);*/
/*    border: 1px solid var(--sp-line);*/
    color: var(--sp-muted);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

[data-bs-theme="dark"] .sp-vs__eyebrow {
    color: var(--sp-brand);
}

.sp-vs__eyebrow svg {
    width: 13px;
    height: 13px;
}

.sp-vs__title {
    margin: 0 0 6px;
    color: var(--sp-ink);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
}

.sp-vs__title span {
    color: var(--sp-muted);
    font-weight: 600;
}

.sp-vs__sub {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--sp-muted);
    font-size: .92rem;
}

/* card grid: each feature is its own card, not a table row. Bottom
   border swaps to solid brand teal on hover — same signature move as
   a Uiverse "load card" — and the two outcomes hang off a small wired
   trace instead of two plain table cells. */
/* stat cards — soft, off-white, no borders, a single violet accent
   (reusing the --sp-note token) instead of the page's usual cyan, so
   this section reads as its own quiet, premium moment */
.sp-vs-rows {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sp-vs-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 24px 14px 20px;
    background: var(--sp-surface);
    border-radius: 37px;
}

/* each card fades/lifts in on its own beat as the section scrolls
   into view, via the shared .sp-reveal observer — fully-specific hover
   rule below so it isn't shadowed by .sp-reveal.is-visible's reset */
.sp-vs-row.sp-reveal {
    transition: opacity .5s ease, background .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}

    .sp-vs-row:nth-child(2) { transition-delay: .08s; }
    .sp-vs-row:nth-child(3) { transition-delay: .16s; }
    .sp-vs-row:nth-child(4) { transition-delay: .24s; }

    .sp-vs-row.sp-reveal.is-visible:hover {
        background: var(--sp-card);
        box-shadow: var(--sp-sh-2);
        transform: translateY(-4px);
    }

.sp-vs-row__cover {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sp-note) 14%, transparent);
    color: var(--sp-note);
    margin-bottom: 4px;
}

.sp-vs-row__cover svg {
    width: 19px;
    height: 19px;
}

.sp-vs-row__stat {
    color: var(--sp-ink);
    font-size: 1.9rem;
/*    font-weight: 800;*/
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.sp-vs-row__title {
    color: var(--sp-ink);
    font-size: .84rem;
    font-weight: 700;
}

.sp-vs-row__sub {
    color: var(--sp-muted);
    font-size: .72rem;
    line-height: 1.4;
}

/* ---------- sticky section nav ------------------------------------ */

.sp-subnav {
    position: sticky;
    top: 62px;
    z-index: 20;
    background: color-mix(in srgb, var(--sp-bg) 86%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sp-line-soft);
}

.sp-subnav__row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .sp-subnav__row::-webkit-scrollbar {
        display: none;
    }

.sp-subnav a {
    padding: .82rem .9rem;
    color: var(--sp-muted);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

    .sp-subnav a:hover {
        color: var(--sp-ink);
    }

    .sp-subnav a.is-active {
        color: var(--sp-brand-700);
        border-bottom-color: var(--sp-brand);
    }

[data-bs-theme="dark"] .sp-subnav a.is-active {
    color: var(--sp-brand);
}

/* =====================================================================
   1. ADMIN-AUTHORED CONTENT  —  CourseDetail.Value renders into .sp-rte
   Value holds CONTENT ONLY. The page supplies <section>, heading,
   container and spacing. Authoring blocks:
     .sp-list  .sp-list--check   list, auto 2-col
     .sp-cards > .sp-card        icon + h4 + p + optional .sp-pill
     .sp-steps > li              ordered roadmap, auto-numbered
     .sp-figs  > .sp-fig         stat tile: <b>number</b><span>label</span>
     .sp-vtable > .sp-vrow       label/value row (+ --total, .sp-inc)
     .sp-tags  > .sp-tag         chips
     .sp-note                    callout
   Add t-video|t-lab|t-note|t-test|t-qna|t-project to recolour a block.
   ===================================================================== */

.sp-rte {
    color: var(--sp-body);
    font-size: .97rem;
    line-height: 1.75;
}

    .sp-rte > :first-child {
        margin-top: 0;
    }

    .sp-rte > :last-child {
        margin-bottom: 0;
    }

    .sp-rte p {
        max-width: 76ch;
    }

    .sp-rte h3,
    .sp-rte h4 {
        margin: 1.5em 0 .5em;
        color: var(--sp-ink);
        font-weight: 800;
        letter-spacing: -.01em;
    }

    .sp-rte h3 {
        font-size: 1.08rem;
    }

    .sp-rte h4 {
        font-size: .98rem;
    }

    .sp-rte a {
        color: var(--sp-accent-ink);
        text-underline-offset: 2px;
    }

    .sp-rte img {
        max-width: 100%;
        height: auto;
        border-radius: var(--sp-r-sm);
    }

    .sp-rte table {
        width: 100%;
        border-collapse: collapse;
        font-size: .9rem;
    }

    .sp-rte th,
    .sp-rte td {
        padding: .6rem .75rem;
        border-bottom: 1px solid var(--sp-line);
        text-align: left;
    }

    .sp-rte th {
        color: var(--sp-ink);
    }

/* --- list ---------------------------------------------------------- */

.sp-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .sp-list li {
        position: relative;
        padding: .28rem 0 .28rem 1.6rem;
        font-size: .93rem;
    }

        .sp-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .72em;
            width: 9px;
            height: 9px;
            border-radius: 3px;
            background: color-mix(in srgb, var(--sp-accent) 14%, transparent);
            box-shadow: inset 0 0 0 2px var(--sp-accent);
        }

        .sp-list li b,
        .sp-list li strong {
            color: var(--sp-ink);
        }

/* ticked variant: circle (::before) + tick drawn with borders (::after) */
.sp-list--check li::before {
    top: .5em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: none;
    background: color-mix(in srgb, var(--sp-accent) 16%, transparent);
}

.sp-list--check li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: calc(.5em + 4px);
    width: 5px;
    height: 8px;
    border: solid var(--sp-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- eligibility cards: icon-left / content-right, four-up ---------- */

.sp-elig-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* always-dark spotlight card — same deliberate departure as the
   project cards, with a Uiverse "Cobp"-style accent bar + icon block */
/* subtle, theme-aware tint instead of a forced-dark card — the dark
   gradient read fine against Projects' own dark banners, but was too
   heavy sitting on the light page here */
.sp-elig-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .6rem;
    padding: 12px;
    border: 1px solid var(--sp-line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--sp-accent) 5%, var(--sp-card));
    box-shadow: var(--sp-sh-1);
    transition: box-shadow .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}

    .sp-elig-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--sp-accent) 35%, var(--sp-line));
        box-shadow: var(--sp-sh-2);
    }

.sp-elig-card__bar {
    width: 1.8px;
    flex: none;
    border-radius: 5px;
    background: var(--sp-accent);
    transition: margin .4s cubic-bezier(.2,.8,.2,1);
}

.sp-elig-card:hover .sp-elig-card__bar {
    margin-right: 4px;
}

.sp-elig-card__icon {
    display: grid;
    place-items: center;
    width: 56px;    
    height: 56px;
    flex: none;
    border-radius:50%;
    background: var(--sp-accent);
    color: #04141a;
    transition: transform .25s ease;
}

    .sp-elig-card:hover .sp-elig-card__icon {
        transform: scale(1.06);
    }

    .sp-elig-card__icon svg {
        width: 24px;
        height: 24px;
    }

.sp-elig-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4px;
}

/* the reference's signature move: a tiny cube that flips from the
   category label to the persona detail on hover, instead of showing
   both lines at once */
.sp-elig-card__cube {
    height: 1em;
    perspective: 240px;
    margin-bottom: 4px;
}

.sp-elig-card__cube-face {
    display: block;
    color: var(--sp-accent);
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: transform .35s ease, opacity .35s ease;
    backface-visibility: hidden;
}

.sp-elig-card__cube-face--detail {
    position: relative;
    top: -2em;
    color: var(--sp-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    transform: rotateX(90deg);
    transform-origin: bottom;
}

.sp-elig-card:hover .sp-elig-card__cube-face--tag {
    transform: rotateX(-90deg);
    transform-origin: top;
    opacity: 0;
}

.sp-elig-card:hover .sp-elig-card__cube-face--detail {
    transform: rotateX(0deg);
}

.sp-elig-card__h {
    margin: 0;
    color: var(--sp-ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
}

/* --- cards --------------------------------------------------------- */

.sp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--sp-line);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    overflow: hidden;
}

.sp-card {
    padding: 1.2rem 1.3rem;
    background: var(--sp-card);
    transition: background .18s ease;
}

    .sp-card:hover {
        background: var(--sp-surface);
    }

    .sp-card h4 {
        margin: .1rem 0 .35rem;
        color: var(--sp-ink);
        font-size: 1rem;
        font-weight: 800;
    }

    .sp-card p {
        margin: 0;
        color: var(--sp-muted);
        font-size: .88rem;
        line-height: 1.65;
    }

.sp-card__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--sp-accent);
}

    .sp-card__icon svg {
        width: 22px;
        height: 22px;
    }

.sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: .75rem;
    padding: .22rem .62rem;
    border-radius: var(--sp-r-pill);
    background: color-mix(in srgb, var(--sp-accent) 12%, transparent);
    color: var(--sp-accent-ink);
    font-size: .74rem;
    font-weight: 700;
}

/* --- premium interactive card (opt-in) -----------------------------
   Use together: <div class="sp-cards sp-cards--premium"><article
   class="sp-card sp-card--premium t-video">...</article></div>
   Independent floating cards — own radius/shadow/gap, not the hairline
   grid above. Icon, badge text and footer stat are ALL authored inside
   the Value's own markup (inline <svg>, "New" badge text, etc.) since
   they vary per course — nothing course-specific lives in this CSS. */
.sp-cards--premium {
    /* fixed 4-up, not auto-fit — 4 tiles must stay on one row and never
       spill a 5th/partial row onto a line of their own; auto-fit with a
       240px floor would drop to 3 columns before the shell runs out of
       width, so this locks the column count and lets the tiles shrink
       instead. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.sp-card--premium {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-lg);
    background: var(--sp-card);
    box-shadow: var(--sp-sh-1);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .45s ease;
}

    .sp-card--premium:hover {
        background: var(--sp-card);
        transform: translateY(-8px);
        border-color: color-mix(in srgb, var(--sp-accent) 35%, var(--sp-line));
        box-shadow: var(--sp-sh-3);
    }

    .sp-card--premium:active {
        transform: translateY(-3px) scale(.98);
    }

.sp-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: -100% 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1;
}

.sp-card--premium:hover .sp-card__shine {
    opacity: 1;
    animation: sp-card-shine 2.4s infinite;
}

@keyframes sp-card-shine {
    to { background-position: 200% 0; }
}

.sp-card__glow {
    position: absolute;
    inset: -16px 0 auto;
    height: 140px;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--sp-accent) 30%, transparent), transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.sp-card--premium:hover .sp-card__glow {
    opacity: 1;
}

.sp-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: .22rem .55rem;
    border-radius: var(--sp-r-pill);
    background: var(--sp-lab);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    transform: scale(.8);
    opacity: 0;
    transition: all .35s ease .05s;
}

.sp-card--premium:hover .sp-card__badge {
    transform: scale(1);
    opacity: 1;
}

.sp-card__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .55rem;
    padding: .95rem 1rem 1.1rem;
}

.sp-card__media {
    display: grid;
    place-items: center;
    height: 68px;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sp-accent) 65%, transparent), color-mix(in srgb, var(--sp-accent) 95%, transparent));
    color: #fff;
    transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.sp-card--premium:hover .sp-card__media {
    transform: translateY(-4px) scale(1.03);
}

.sp-card__media svg {
    width: 24px;
    height: 24px;
}

.sp-card--premium h4 {
    margin: 0;
    color: var(--sp-ink);
    font-size: .92rem;
    line-height: 1.3;
    font-weight: 800;
    transition: color .3s ease, transform .3s ease;
}

.sp-card--premium:hover h4 {
    color: var(--sp-accent-ink);
    transform: translateX(2px);
}

.sp-card--premium p {
    margin: 0;
    color: var(--sp-muted);
    font-size: .78rem;
    line-height: 1.5;
    opacity: .85;
    transition: opacity .3s ease, transform .3s ease;
}

.sp-card--premium:hover p {
    opacity: 1;
    transform: translateX(2px);
}

.sp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: .3rem;
}

.sp-card__stat {
    min-width: 0;
    color: var(--sp-muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color .3s ease, transform .3s ease;
}

.sp-card--premium:hover .sp-card__stat {
    color: var(--sp-accent-ink);
    transform: translateX(2px);
}

.sp-card__go {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--sp-accent);
    color: #fff;
    transform: scale(.85);
    transition: transform .3s ease, box-shadow .3s ease;
}

.sp-card--premium:hover .sp-card__go {
    transform: scale(1);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--sp-accent) 20%, transparent);
}

.sp-card__go svg {
    width: 14px;
    height: 14px;
}

/* --- steps --------------------------------------------------------- */

.sp-steps {
    counter-reset: sp-step;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .sp-steps li {
        counter-increment: sp-step;
        position: relative;
        padding: .9rem 1.05rem .9rem 3.3rem;
        border: 1px solid var(--sp-line);
        border-radius: var(--sp-r-md);
        background: var(--sp-card);
    }

        .sp-steps li::before {
            content: counter(sp-step);
            position: absolute;
            left: 1rem;
            top: .95rem;
            display: grid;
            place-items: center;
            width: 28px;
            height: 28px;
            border-radius: 9px;
            background: color-mix(in srgb, var(--sp-accent) 13%, transparent);
            color: var(--sp-accent-ink);
            font-size: .82rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }

    .sp-steps h4 {
        margin: 0 0 .2rem;
        font-size: .96rem;
    }

    .sp-steps p {
        margin: 0;
        color: var(--sp-muted);
        font-size: .88rem;
    }

/* --- option rows: icon-wrapper + title/description + arrow --------- */

.sp-orows {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-orow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: .8rem .95rem;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    background: var(--sp-card);
    transition: border-color .25s ease, background .25s ease;
}

    .sp-orow:hover {
        border-color: var(--sp-brand-line);
        background: var(--sp-surface);
    }

.sp-orow__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--sp-brand) 12%, transparent);
    color: var(--sp-brand-700);
    font-size: .8rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .sp-orow__icon {
    color: var(--sp-brand);
}

.sp-orow:hover .sp-orow__icon {
    background: var(--sp-brand);
    color: #04222a;
}

.sp-orow__icon svg {
    width: 19px;
    height: 19px;
}

.sp-orow__text {
    flex: 1;
    min-width: 0;
}

.sp-orow__text h4 {
    margin: 0 0 2px;
    color: var(--sp-ink);
    font-size: .94rem;
    font-weight: 700;
}

.sp-orow__text p {
    margin: 0;
    color: var(--sp-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.sp-orow__arrow {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    padding: 8px;
    border-radius: 50%;
    background: var(--sp-surface);
    color: var(--sp-muted);
    transition: background .25s ease, color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}

.sp-orow:hover .sp-orow__arrow {
    background: var(--sp-brand);
    color: #04222a;
    transform: translateX(2px);
}

/* --- figures ------------------------------------------------------- */

.sp-figs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
}

.sp-fig {
    padding: 1rem 1.05rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    background: var(--sp-card);
    box-shadow: var(--sp-sh-1);
}

    .sp-fig b {
        display: block;
        color: var(--sp-accent);
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -.02em;
        font-variant-numeric: tabular-nums;
    }

    .sp-fig span {
        display: block;
        margin-top: 4px;
        color: var(--sp-muted);
        font-size: .82rem;
        line-height: 1.5;
    }

/* --- company logo stack --------------------------------------------- */

.sp-co-label {
    margin: 0 0 12px;
    color: var(--sp-muted);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-co-stack {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-co {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-left: -14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sp-surface);
    box-shadow: var(--sp-sh-1);
    z-index: 1;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}

    .sp-co:first-child {
        margin-left: 0;
    }

    .sp-co img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

    .sp-co:hover {
        transform: translateY(-7px) scale(1.1);
        box-shadow: var(--sp-sh-2);
        border-color: var(--sp-brand);
        z-index: 5;
    }

/* --- career journey: horizontal roadmap with a wavy connector ------- */

.sp-journey {
    position: relative;
    padding-top: 26px;
}

.sp-journey__wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    color: var(--sp-line);
    pointer-events: none;
}

    .sp-journey__wave path {
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-dasharray: 5 8;
        stroke-linecap: round;
    }

.sp-journey__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sp-journey__stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sp-journey__dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--sp-card);
    border: 2px solid color-mix(in srgb, var(--sp-accent) 45%, var(--sp-line));
    color: var(--sp-accent-ink);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
}

    .sp-journey__dot svg {
        width: 15px;
        height: 15px;
    }

.sp-journey__stop:nth-child(1) .sp-journey__dot {
    transform: translateY(-12px);
}

.sp-journey__stop:nth-child(2) .sp-journey__dot {
    transform: translateY(12px);
}

.sp-journey__stop:nth-child(3) .sp-journey__dot {
    transform: translateY(-12px);
}

.sp-journey__stop:nth-child(4) .sp-journey__dot {
    transform: translateY(12px);
}

.sp-journey__stop:hover .sp-journey__dot {
    background: var(--sp-accent);
    color: #fff;
    transform: scale(1.12);
}

.sp-journey__card {
    padding: .85rem .8rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    background: var(--sp-card);
    box-shadow: var(--sp-sh-1);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}

.sp-journey__stop:hover .sp-journey__card {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--sp-accent) 35%, var(--sp-line));
    box-shadow: var(--sp-sh-2);
}

.sp-journey__yr {
    display: block;
    margin-bottom: 3px;
    color: var(--sp-accent-ink);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-journey__card h4 {
    margin: 0 0 4px;
    color: var(--sp-ink);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.3;
}

.sp-journey__card p {
    margin: 0;
    color: var(--sp-muted);
    font-size: .74rem;
    line-height: 1.45;
}

/* --- certificate showcase ------------------------------------------- */

.sp-cert-showcase {
    display: flex;
    justify-content: center;
}

/* side-by-side, not a tall stacked card: image left, everything else
   always visible to the right — no hover-reveal needed at this height */
.sp-cert-card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 52px;
    padding: 22px;
}

.sp-cert-card__media {
    flex: none;
    width: 400px;
/*    aspect-ratio: 4 / 3;*/
    border-radius: var(--sp-r-md);
    line-height: 0;
    background: var(--sp-surface);
    overflow: hidden;
}

    .sp-cert-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s cubic-bezier(.2,.8,.2,1);
    }

.sp-cert-card:hover .sp-cert-card__media img,
.sp-cert-card:focus .sp-cert-card__media img,
.sp-cert-card:focus-within .sp-cert-card__media img {
    transform: scale(1.04);
}

.sp-cert-card__body {
    padding: 0;
    text-align: left;
}

.sp-cert-card__badge {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sp-brand-700);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

[data-bs-theme="dark"] .sp-cert-card__badge {
    color: var(--sp-brand);
}

.sp-cert-card__title {
    margin: 0;
    color: var(--sp-ink);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.28;
}

.sp-cert-card__desc {
    margin: 8px 0 0;
    color: var(--sp-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.sp-cert-card__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

    .sp-cert-card__list li {
        position: relative;
        padding-left: 22px;
        color: var(--sp-body);
        font-size: .86rem;
    }

    .sp-cert-card__list li::before {
        content: "";
        position: absolute;
        left: 0;
        top: .45em;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--sp-brand) 16%, transparent);
        box-shadow: inset 0 0 0 2px var(--sp-brand-700);
    }

/* --- value table --------------------------------------------------- */

.sp-vtable {
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    overflow: hidden;
    background: var(--sp-card);
}

.sp-vrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: .68rem .95rem;
    font-size: .9rem;
}

    .sp-vrow + .sp-vrow {
        border-top: 1px solid var(--sp-line-soft);
    }

    .sp-vrow strong {
        color: var(--sp-ink);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .sp-vrow del {
        color: var(--sp-muted);
        font-variant-numeric: tabular-nums;
    }

.sp-vrow--total {
    background: var(--sp-premium-soft);
    font-weight: 700;
}

    .sp-vrow--total strong {
        color: var(--sp-premium-ink);
    }

[data-bs-theme="dark"] .sp-vrow--total strong {
    color: var(--sp-premium);
}

.sp-inc {
    padding: .18rem .55rem;
    border-radius: var(--sp-r-pill);
    background: var(--sp-premium-soft);
    color: var(--sp-premium-ink);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

[data-bs-theme="dark"] .sp-inc {
    color: var(--sp-premium);
}

/* --- tags ---------------------------------------------------------- */

.sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: .4rem .8rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-pill);
    background: var(--sp-card);
    color: var(--sp-ink);
    font-size: .84rem;
    font-weight: 600;
}

    .sp-tag img,
    .sp-tag svg {
        width: 16px;
        height: 16px;
    }

/* --- tools strip (Tools key only) -----------------------------------
   A moving strip, same idea as boot-camp.css's .tools-ticker-wrap, but
   each item is a depth tile (border/shadow/hover-lift) instead of a
   flat pill, per the reference. Value holds ONLY the .sp-tool-tile
   items — this file adds the scrolling track, JS duplicates them once
   for a seamless loop. Images/logos live in the Value, not here, since
   the tool set differs per course. */
.sp-tools-strip {
    position: relative;
    margin-top: 8px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.sp-tools-track {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: max-content;
    padding-block: 4px;
    animation: sp-tools-scroll 34s linear infinite;
}

.sp-tools-strip:hover .sp-tools-track {
    animation-play-state: paused;
}

@keyframes sp-tools-scroll {
    to {
        transform: translateX(-50%);
    }
}

.sp-tool-tile {
    display: flex;
    flex: none;
    width: 108px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1rem .6rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    background: var(--sp-card);
    box-shadow: var(--sp-sh-1);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}

    .sp-tool-tile:hover {
        transform: translateY(-5px) scale(1.06);
        border-color: var(--sp-brand-line);
        box-shadow: var(--sp-sh-2);
    }

    .sp-tool-tile img,
    .sp-tool-tile svg {
        width: 34px;
        height: 34px;
        object-fit: contain;
    }

    .sp-tool-tile span {
        color: var(--sp-muted);
        font-size: .68rem;
        font-weight: 700;
        text-align: center;
        line-height: 1.25;
        transition: color .3s ease;
    }

    .sp-tool-tile:hover span {
        color: var(--sp-ink);
    }

/* --- note ---------------------------------------------------------- */

.sp-note {
    max-width: none;
    padding: .85rem 1.05rem;
    border-left: 3px solid var(--sp-accent);
    border-radius: 0 var(--sp-r-sm) var(--sp-r-sm) 0;
    background: color-mix(in srgb, var(--sp-accent) 8%, transparent);
    color: var(--sp-ink);
    font-size: .92rem;
}

/* =====================================================================
   PROJECTS  —  slider chrome lives here; Value only ever contains the
   .sp-proj-card items (see docs/self-paced-sections.sample.sql).
   ===================================================================== */

.sp-projects {
    position: relative;
}

.sp-proj-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

    .sp-proj-track > .sp-proj-card:only-child {
        grid-column: 1 / -1;
        max-width: 560px;
        margin-inline: auto;
    }

/* ---- single project: split spotlight, cover left / story right ----
   One card has the whole row, so nothing needs hiding behind hover:
   description + stack are always open, and the interaction moves to
   the cover (zoom + a light sweep) and the chips/arrow. Same admin
   markup, no JS; stacks back to the poster card below 768px. */
@media (min-width: 768px) {
    .sp-proj-track > .sp-proj-card:only-child {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        max-width: none;
    }

        .sp-proj-card:only-child .sp-proj-card__media {
            aspect-ratio: auto;
            min-height: 300px; /* grid stretches it to the story's height */
        }

            .sp-proj-card:only-child .sp-proj-card__media::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
                transform: translateX(-100%);
                transition: transform .8s cubic-bezier(.2,.8,.2,1);
                pointer-events: none;
            }

        .sp-proj-card:only-child:hover .sp-proj-card__media::after,
        .sp-proj-card:only-child:focus-within .sp-proj-card__media::after {
            transform: translateX(100%);
        }

        .sp-proj-card:only-child .sp-proj-card__body {
            justify-content: center;
            padding: clamp(24px, 3vw, 36px);
        }

        .sp-proj-card:only-child h3,
        .sp-proj-card:only-child h4 {
            font-size: 1.4rem;
        }

        .sp-proj-card:only-child p {
            max-height: none;
            font-size: .92rem;
            color: rgba(255,255,255,.72);
        }

        .sp-proj-card:only-child .sp-proj-card__more {
            grid-template-rows: 1fr;
        }

        .sp-proj-card:only-child .sp-proj-card__stack span {
            transition: background .25s ease, color .25s ease, transform .25s ease;
        }

            .sp-proj-card:only-child .sp-proj-card__stack span:hover {
                background: color-mix(in srgb, var(--sp-brand) 22%, transparent);
                color: #fff;
                transform: translateY(-2px);
            }

        /* whole card already lifts; a split card lifting 6px reads as jumpy */
        .sp-proj-card:only-child:hover,
        .sp-proj-card:only-child:focus,
        .sp-proj-card:only-child:focus-within {
            transform: translateY(-3px);
        }
}

/* spotlight card — always-dark regardless of page theme, and image
   forward: the screenshot is the poster, the rest unfolds on hover so
   a bigger, more detailed cover doesn't have to fight a wall of text
   for space at rest. Built for the common case of one or two cards. */
.sp-proj-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: linear-gradient(160deg, #16233c, #0a1220);
    box-shadow: 0 1px 1px rgba(0,0,0,.16), 0 2px 2px rgba(0,0,0,.14), 0 4px 4px rgba(0,0,0,.12), 0 10px 20px rgba(0,0,0,.18);
    overflow: hidden;
    cursor: default;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}

    .sp-proj-card:hover,
    .sp-proj-card:focus,
    .sp-proj-card:focus-within {
        transform: translateY(-6px);
        box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 2px 2px rgba(0,0,0,.16), 0 12px 24px rgba(0,0,0,.24), 0 26px 46px color-mix(in srgb, var(--sp-brand) 22%, rgba(0,0,0,.35));
    }

    .sp-proj-card:focus-visible {
        outline: none;
        box-shadow: var(--sp-ring), 0 12px 24px rgba(0,0,0,.24);
    }

.sp-proj-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sp-brand-600), var(--sp-brand));
}

    .sp-proj-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s cubic-bezier(.2,.8,.2,1);
    }

.sp-proj-card:hover .sp-proj-card__media img,
.sp-proj-card:focus .sp-proj-card__media img,
.sp-proj-card:focus-within .sp-proj-card__media img {
    transform: scale(1.06);
}

/* decorative corner glyph over the cover — a quiet echo, not a
   control: it reacts to the card's hover/focus but implies nothing
   clickable of its own */
.sp-proj-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(10,18,32,.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
}

    .sp-proj-card__badge svg {
        width: 15px;
        height: 15px;
    }

.sp-proj-card:hover .sp-proj-card__badge,
.sp-proj-card:focus .sp-proj-card__badge,
.sp-proj-card:focus-within .sp-proj-card__badge {
    transform: rotate(18deg) scale(1.1);
    background: var(--sp-brand);
    color: #04222a;
}

.sp-proj-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.sp-proj-card__tag {
    display: block;
    margin-bottom: 4px;
    color: var(--sp-brand);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sp-proj-card h3,
.sp-proj-card h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.3;
}

.sp-proj-card p {
    margin: 0;
    overflow: hidden;
    color: rgba(255,255,255,.62);
    font-size: .86rem;
    line-height: 1.55;
    max-height: 1.55em;
    transition: max-height .4s cubic-bezier(.2,.8,.2,1);
}

.sp-proj-card:hover p,
.sp-proj-card:focus p,
.sp-proj-card:focus-within p {
    max-height: 5em;
}

/* stack chips + footer link stay collapsed at rest and unfold with
   the card on hover/focus — same 0fr -> 1fr trick the curriculum
   weeks use for their expand/collapse */
.sp-proj-card__more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1);
}

.sp-proj-card:hover .sp-proj-card__more,
.sp-proj-card:focus .sp-proj-card__more,
.sp-proj-card:focus-within .sp-proj-card__more {
    grid-template-rows: 1fr;
}

.sp-proj-card__more-inner {
    overflow: hidden;
}

.sp-proj-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
}

    .sp-proj-card__stack span {
        padding: .2rem .55rem;
        border-radius: var(--sp-r-pill);
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
        font-size: .72rem;
        font-weight: 600;
    }

.sp-proj-card__foot {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 700;
}

.sp-proj-card__foot svg {
    width: 15px;
    height: 15px;
    color: var(--sp-brand);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.sp-proj-card:hover .sp-proj-card__foot svg,
.sp-proj-card:focus .sp-proj-card__foot svg,
.sp-proj-card:focus-within .sp-proj-card__foot svg {
    transform: translateX(4px);
}

/* touch/no-hover devices can't trigger :hover at all, so nothing here
   is exclusively hidden behind it — show the full card by default */
@media (hover: none) {
    .sp-proj-card p {
        max-height: none;
    }

    .sp-proj-card__more {
        grid-template-rows: 1fr;
    }
}

.sp-proj-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.sp-proj-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sp-line);
    border-radius: 50%;
    background: var(--sp-card);
    color: var(--sp-ink);
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

    .sp-proj-arrow:hover {
        border-color: var(--sp-brand-line);
        color: var(--sp-brand-700);
    }

[data-bs-theme="dark"] .sp-proj-arrow:hover {
    color: var(--sp-brand);
}

.sp-proj-arrow svg {
    width: 16px;
    height: 16px;
}

.sp-proj-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sp-proj-dot {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--sp-line);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

    .sp-proj-dot.is-active {
        background: var(--sp-brand-700);
        transform: scale(1.35);
    }

[data-bs-theme="dark"] .sp-proj-dot.is-active {
    background: var(--sp-brand);
}

/* --- accents ------------------------------------------------------- */

.sp-page .t-video {
    --sp-accent: var(--sp-video);
    --sp-accent-ink: color-mix(in srgb, var(--sp-video) 70%, var(--sp-ink));
    color: var(--sp-video);
}

.sp-page .t-lab {
    --sp-accent: var(--sp-lab);
    --sp-accent-ink: color-mix(in srgb, var(--sp-lab) 70%, var(--sp-ink));
    color: var(--sp-lab);
}

.sp-page .t-note {
    --sp-accent: var(--sp-note);
    --sp-accent-ink: color-mix(in srgb, var(--sp-note) 70%, var(--sp-ink));
    color: var(--sp-note);
}

.sp-page .t-test {
    --sp-accent: var(--sp-test);
    --sp-accent-ink: color-mix(in srgb, var(--sp-test) 70%, var(--sp-ink));
    color: var(--sp-test);
}

.sp-page .t-qna {
    --sp-accent: var(--sp-qna);
    --sp-accent-ink: color-mix(in srgb, var(--sp-qna) 70%, var(--sp-ink));
    color: var(--sp-qna);
}

.sp-page .t-project {
    --sp-accent: var(--sp-project);
    --sp-accent-ink: color-mix(in srgb, var(--sp-project) 70%, var(--sp-ink));
    color: var(--sp-project);
}

/* =====================================================================
   2. CURRICULUM  —  week > tabs > module > lesson / item
   ===================================================================== */

.sp-curr__head {
    margin-bottom: clamp(18px, 2.4vw, 28px);
    text-align: center;
}

.sp-curr__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: .3rem .72rem;
    border: 1px solid var(--sp-brand-line);
    border-radius: var(--sp-r-pill);
    background: var(--sp-brand-soft);
    color: var(--sp-brand-700);
    font-size: .76rem;
    font-weight: 700;
}

[data-bs-theme="dark"] .sp-curr__badge {
    color: var(--sp-brand);
}

.sp-curr__badge svg {
    width: 14px;
    height: 14px;
}

.sp-curr__sum {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
/*    gap: 8px;*/
    margin-top: 14px;
}

    .sp-curr__sum .sp-meta {
        padding: .4rem .8rem;
        font-size: .82rem;
    }

/* --- week ---------------------------------------------------------- */

/* Coursera / LinkedIn-Learning style syllabus: one flat outlined list,
   hairline dividers between rows — not individually-elevated cards
   with gaps between them. */
.sp-weeks {
    display: block;
    max-width: 860px;
    margin-inline: auto;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    overflow: hidden;
    background: var(--sp-card);
}

.sp-week {
    border-bottom: 1px solid var(--sp-line);
    transition: background .2s ease;
}

    .sp-week:last-child {
        border-bottom: 0;
    }

    .sp-week:hover,
    .sp-week.is-open {
        background: var(--sp-surface);
    }

    .sp-week.is-hidden {
        display: none;
    }

/* heading wrapper keeps the accordion valid HTML without adding style */
.sp-week__h {
    margin: 0;
    font: inherit;
}

.sp-week__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: .8rem 1.1rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .sp-week__btn:focus-visible {
        outline: none;
        box-shadow: inset var(--sp-ring);
    }

/* plain outlined number, not a filled badge — the row carries its own
   weight through the title, the circle is just an index */
.sp-week__num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--sp-line);
    color: var(--sp-muted);
    font-size: 0;
    transition: border-color .2s ease, color .2s ease;
}

.sp-week.is-open .sp-week__num,
.sp-week:hover .sp-week__num {
    border-color: var(--sp-brand-700);
    color: var(--sp-brand-700);
}

[data-bs-theme="dark"] .sp-week.is-open .sp-week__num,
[data-bs-theme="dark"] .sp-week:hover .sp-week__num {
    border-color: var(--sp-brand);
    color: var(--sp-brand);
}

.sp-week__num b {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sp-week__main {
    flex: 1;
    min-width: 0;
}

.sp-week__t {
    margin: 0 0 3px;
    color: var(--sp-ink);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

.sp-week__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

/* one quiet description line, not a row of colored tags — the icon still
   tints per content type, the text itself stays neutral and calm */
.sp-page .sp-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sp-muted);
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
}

    .sp-page .sp-meta:not(:first-child)::before {
        content: "\00b7";
        margin-right: 10px;
        color: var(--sp-line);
        font-weight: 700;
    }

.sp-meta svg,
.sp-meta img {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--sp-accent-ink);
}

.sp-meta b {
    color: var(--sp-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sp-week__free {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: .26rem .66rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--sp-lab) 13%, transparent);
    color: color-mix(in srgb, var(--sp-lab) 70%, var(--sp-ink));
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

    .sp-week__free svg {
        width: 12px;
        height: 12px;
    }

/* a plain arrow, not a filled button — Coursera/LinkedIn syllabuses
   don't dress the disclosure control up, they just rotate it */
.sp-week__chev {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--sp-muted);
    transition: transform .25s ease, color .2s ease;
}

.sp-week:hover .sp-week__chev {
    color: var(--sp-ink);
}

.sp-week.is-open .sp-week__chev {
    transform: rotate(180deg);
    color: var(--sp-brand-700);
}

[data-bs-theme="dark"] .sp-week.is-open .sp-week__chev {
    color: var(--sp-brand);
}

.sp-week__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .36s cubic-bezier(.2,.8,.2,1);
}

.sp-week.is-open .sp-week__body {
    grid-template-rows: 1fr;
}

.sp-week__inner {
    overflow: hidden;
    border-top: 1px solid var(--sp-line-soft);
    background: var(--sp-surface);
}

/* --- tabs ---------------------------------------------------------- */

.sp-seg {
    display: flex;
    gap: 4px;
    padding: 10px 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .sp-seg::-webkit-scrollbar {
        display: none;
    }

    .sp-seg button {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 38px;
        padding: .5rem .9rem;
        border: 1px solid transparent;
        border-radius: var(--sp-r-pill);
        background: transparent;
        color: var(--sp-muted);
        font: inherit;
        font-size: .85rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

        .sp-seg button:hover {
            color: var(--sp-ink);
            background: var(--sp-brand-soft);
        }

        .sp-seg button:focus-visible {
            outline: none;
            box-shadow: var(--sp-ring);
        }

        .sp-seg button.is-active {
            background: var(--sp-card);
            border-color: var(--sp-brand-line);
            color: var(--sp-ink);
            box-shadow: var(--sp-sh-1);
        }

.sp-seg__n {
    padding: .08rem .42rem;
    border-radius: var(--sp-r-pill);
    background: var(--sp-line);
    color: var(--sp-muted);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.sp-seg button.is-active .sp-seg__n {
    background: var(--sp-brand-soft);
    color: var(--sp-brand-700);
}

[data-bs-theme="dark"] .sp-seg button.is-active .sp-seg__n {
    color: var(--sp-brand);
}

.sp-panel {
    padding: 12px;
}

    .sp-panel[hidden] {
        display: none;
    }

/* --- module -------------------------------------------------------- */

.sp-mod {
    position: relative;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    background: var(--sp-card);
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
}

    .sp-mod + .sp-mod {
        margin-top: 8px;
    }

    .sp-mod:hover {
        transform: translateX(2px);
        box-shadow: var(--sp-sh-1);
    }

    .sp-mod.is-open {
        border-color: var(--sp-brand-line);
    }

    /* left accent bar — same idea as the week's bottom strip, one level
       down, so open state reads consistently through the hierarchy */
    .sp-mod::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 0.5px;
        background: var(--sp-brand);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform .3s cubic-bezier(.2,.8,.2,1);
    }

    .sp-mod.is-open::before {
        transform: scaleY(1);
    }

.sp-mod__btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: .8rem 1rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}

    .sp-mod__btn:hover {
        background: var(--sp-surface);
    }

    .sp-mod__btn:focus-visible {
        outline: none;
        box-shadow: inset var(--sp-ring);
    }

.sp-mod__idx {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: var(--sp-brand-soft);
    color: var(--sp-brand-700);
    font-size: .82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

[data-bs-theme="dark"] .sp-mod__idx {
    color: var(--sp-brand);
}

.sp-mod__idx.is-done {
    background: color-mix(in srgb, var(--sp-lab) 14%, transparent);
    color: var(--sp-lab);
}

.sp-mod__idx svg {
    width: 16px;
    height: 16px;
}

.sp-mod__main {
    flex: 1;
    min-width: 0;
}

.sp-mod__t {
    color: var(--sp-ink);
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.4;
}

.sp-mod__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 3px;
}

.sp-mod__chev {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--sp-muted);
    transition: transform .28s ease;
}

.sp-mod.is-open .sp-mod__chev {
    transform: rotate(180deg);
}

.sp-mod__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1);
}

.sp-mod.is-open .sp-mod__body {
    grid-template-rows: 1fr;
}

.sp-mod__inner {
    overflow: hidden;
}

/* --- lesson -------------------------------------------------------- */

.sp-topic {
    padding: .6rem 1rem .25rem;
    color: var(--sp-muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sp-lesson {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 48px;
    padding: .55rem 1rem;
    border: 0;
    border-top: 1px solid var(--sp-line-soft);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .89rem;
    text-align: left;
}

.sp-lesson__ico {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    background: var(--sp-line);
    color: var(--sp-muted);
}

    .sp-lesson__ico svg {
        width: 13px;
        height: 13px;
    }

.sp-lesson__n {
    flex: 1;
    min-width: 0;
    color: var(--sp-body);
    overflow-wrap: anywhere;
}

.sp-lesson__d {
    color: var(--sp-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.sp-lesson--free {
    cursor: pointer;
    transition: background .2s ease;
}

    .sp-lesson--free:hover {
        background: var(--sp-brand-soft);
    }

    .sp-lesson--free:focus-visible {
        outline: none;
        box-shadow: inset var(--sp-ring);
    }

    .sp-lesson--free .sp-lesson__ico {
        background: var(--sp-brand-soft);
        color: var(--sp-brand-700);
    }

[data-bs-theme="dark"] .sp-lesson--free .sp-lesson__ico {
    color: var(--sp-brand);
}

.sp-lesson--free .sp-lesson__n {
    color: var(--sp-ink);
    font-weight: 600;
}

.sp-try {
    padding: .3rem .7rem;
    border: 1px solid var(--sp-brand-line);
    border-radius: var(--sp-r-pill);
    background: var(--sp-brand-soft);
    color: var(--sp-brand-700);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

[data-bs-theme="dark"] .sp-try {
    color: var(--sp-brand);
}

.sp-lesson--free:hover .sp-try {
    background: var(--sp-brand);
    border-color: var(--sp-brand);
    color: #04222a;
}

/* --- flat items (labs / notes / tests / q&a) ------------------------ */

.sp-group + .sp-group {
    margin-top: 16px;
}

.sp-group__t {
    margin: 0 0 8px;
    color: var(--sp-ink);
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-items {
    display: grid;
    gap: 8px;
}

.sp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: .7rem .95rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-md);
    background: var(--sp-card);
    font-size: .9rem;
    transition: border-color .2s ease, transform .2s ease;
}

    .sp-item:hover {
        border-color: color-mix(in srgb, currentColor 40%, transparent);
        transform: translateX(2px);
    }

.sp-item__ico {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

    .sp-item__ico svg {
        width: 16px;
        height: 16px;
    }

.sp-item__n {
    flex: 1;
    min-width: 0;
    color: var(--sp-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sp-item__m {
    color: var(--sp-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sp-item.is-done .sp-item__ico {
    background: color-mix(in srgb, var(--sp-lab) 14%, transparent);
    color: var(--sp-lab);
}

.sp-item.is-done .sp-item__n {
    color: var(--sp-muted);
    text-decoration: line-through;
}

.sp-empty {
    padding: 2rem 1rem;
    color: var(--sp-muted);
    text-align: center;
    font-size: .9rem;
}

/* --- footer actions ------------------------------------------------ */

.sp-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* ---------- pricing: one card, not two side-by-side columns -------- */

.sp-pricing__grid {
    display: flex;
    justify-content: center;
}

/* Pro / Plus: the same ticket card once per plan, side by side;
   each keeps its own content | price panes (they stack below 991px) */
.sp-pricing__grid--pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 32px;
    /* break out of the 900px .sp-wrap so two two-pane tickets fit */
    width: min(1180px, 100vw - 40px);
    margin-left: 50%;
    transform: translateX(-50%);
}

    /* compact scale for the pair: smaller type + tighter spacing, same widths */
    .sp-pricing__grid--pair .sp-ticket__now {
        font-size: 1.75rem;
    }

    .sp-pricing__grid--pair .sp-ticket__was {
        font-size: .95rem;
    }

    .sp-pricing__grid--pair .sp-ticket__label {
        font-size: .72rem;
    }

    .sp-pricing__grid--pair .sp-ticket__period {
        font-size: .76rem;
    }

    .sp-pricing__grid--pair .sp-include {
        padding: .48rem .6rem;
        font-size: .8rem;
    }

    .sp-pricing__grid--pair .sp-includes {
        gap: 6px;
    }

    .sp-pricing__grid--pair .sp-ticket__perf {
        margin: .85rem 0;
    }

    .sp-pricing__grid--pair .sp-btn--premium {
        padding: .68rem 1.1rem;
        font-size: .86rem;
    }

    .sp-pricing__grid--pair .sp-ticket__left,
    .sp-pricing__grid--pair .sp-ticket__right {
        padding: 1.25rem;
    }

    .sp-pricing__grid--pair .sp-includes {
        grid-template-columns: 1fr;
    }

/* ---- top plan (Pro): same ticket, subtle warm accent + badge ----
   Plus keeps the brand-cyan ticket; Pro swaps only its shadow, label,
   price-pane wash and CTA tint to a soft orange, so the pair reads as
   "standard vs recommended" without a second loud color block. */
.sp-page {
    --sp-warm: #f59e0b;
    --sp-warm-ink: #b45309;
    --sp-warm-soft: rgba(245,158,11,.08);
}

[data-bs-theme="dark"] .sp-page {
    --sp-warm: #fbbf24;
    --sp-warm-ink: #fcd34d;
    --sp-warm-soft: rgba(251,191,36,.08);
}

.sp-ticket.is-featured {
    box-shadow: 8px 8px 0 0 var(--sp-warm);
}

[data-bs-theme="dark"] .sp-ticket.is-featured {
    border-color: var(--sp-warm);
    box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--sp-warm) 55%, transparent);
}

    .sp-ticket.is-featured .sp-ticket__right {
        background: var(--sp-warm-soft);
        border-radius: 0 calc(var(--sp-r-lg) - 2px) calc(var(--sp-r-lg) - 2px) 0;
    }

@media (max-width: 991px) {
    .sp-ticket.is-featured .sp-ticket__right {
        border-radius: 0 0 calc(var(--sp-r-lg) - 2px) calc(var(--sp-r-lg) - 2px);
    }
}

    .sp-ticket.is-featured .sp-ticket__label {
        color: var(--sp-warm-ink);
    }

    .sp-ticket.is-featured .sp-btn--premium {
        background: color-mix(in srgb, var(--sp-warm) 16%, transparent);
    }

        .sp-ticket.is-featured .sp-btn--premium:hover {
            background: color-mix(in srgb, var(--sp-warm) 28%, transparent);
        }

    .sp-ticket.is-featured .sp-ticket__ribbon span {
        background: linear-gradient(135deg, var(--sp-warm-ink), color-mix(in srgb, var(--sp-warm-ink) 70%, #000));
    }

/* "Most popular" tab sitting on the card's top edge */
.sp-ticket__badge {
    position: absolute;
    top: -14px;
    left: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .28rem .7rem;
    border: 2px solid var(--sp-ink);
    border-radius: var(--sp-r-pill);
    background: #fff8eb;
    color: var(--sp-warm-ink);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .sp-ticket__badge svg {
        width: 12px;
        height: 12px;
        color: var(--sp-warm);
    }

[data-bs-theme="dark"] .sp-ticket__badge {
    border-color: var(--sp-warm);
    background: var(--sp-card);
}

/* included / not-included marks: solid disc + white glyph, sat in the
   old count slot. Rows stay full-strength; the mark alone carries the
   meaning (plus hidden "Included:" / "Not included:" text for readers). */
.sp-include__mark {
    margin-left: auto;
    flex: none;
    width: 15px !important;
    height: 15px !important;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.18)) drop-shadow(0 2px 4px color-mix(in srgb, currentColor 40%, transparent));
}

    .sp-include__mark.is-yes {
        color: #16a34a;
    }

    .sp-include__mark.is-no {
        color: #dc2626;
    }

[data-bs-theme="dark"] .sp-include__mark.is-yes {
    color: #22c55e;
}

[data-bs-theme="dark"] .sp-include__mark.is-no {
    color: #ef4444;
}

.sp-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* single fixed bundle price — no per-item picker. One unified card:
   corner ribbon + price header + value table + includes + CTA, all in
   the "achievement orange" premium accent instead of the brand teal —
   pricing is the one moment the page is allowed a second color. */
/* hard-edged premium card: flat border + hard offset shadow in the
   premium orange, not a soft blur — same graphic, minimal signature
   as the brutalist reference, just tinted to the "reward" accent
   instead of stark ink */
.sp-ticket {
    position: relative;
    width: 100%;
    max-width: 980px;
    padding: 0;
    border: 2px solid var(--sp-ink);
    border-radius: var(--sp-r-lg);
    background: var(--sp-card);
    box-shadow: 8px 8px 0 0 var(--sp-premium);
    overflow: visible;
}

/* two panes instead of one long stacked column: value/includes on the
   left, price + CTA on the right — same content, a third of the height */
.sp-ticket__cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.sp-ticket__left {
    padding: 1.5rem 1.5rem 1.6rem;
    border-right: 1px solid var(--sp-line);
}

.sp-ticket__right {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.6rem;
}

.sp-ticket__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    pointer-events: none;
}

    .sp-ticket__ribbon span {
        position: absolute;
        top: 26px;
        right: -34px;
        width: 170px;
        padding: .35rem 0;
        transform: rotate(45deg);
        background: linear-gradient(135deg, var(--sp-premium-ink), color-mix(in srgb, var(--sp-premium-ink) 70%, #000));
        color: #fff;
        text-align: center;
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .02em;
        box-shadow: 0 2px 8px rgba(0,0,0,.18);
    }

[data-bs-theme="dark"] .sp-ticket {
    border-color: var(--sp-premium);
    box-shadow: 8px 8px 0 0 var(--sp-premium-ink);
}

.sp-ticket__top {
    margin-bottom: .2rem;
}

.sp-ticket__label {
    display: block;
    margin-bottom: 6px;
    color: var(--sp-premium-ink);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

[data-bs-theme="dark"] .sp-ticket__label {
    color: var(--sp-premium);
}

.sp-ticket__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-ticket__now {
    color: var(--sp-ink);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.sp-ticket__was {
    color: var(--sp-muted);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.sp-ticket__period {
    margin: 4px 0 0;
    color: var(--sp-muted);
    font-size: .82rem;
}

.sp-ticket__perf {
    margin: 1.15rem 0;
    border-top: 2px solid var(--sp-ink);
    opacity: .12;
}

.sp-ticket__coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding: .6rem .75rem;
    border: 1px dashed var(--sp-brand-line);
    border-radius: var(--sp-r-sm);
    background: var(--sp-brand-soft);
    font-size: .82rem;
}

    .sp-ticket__coupon span {
        color: var(--sp-muted);
    }

    .sp-ticket__coupon b {
        color: var(--sp-ink);
        font-weight: 800;
        letter-spacing: .02em;
    }

    .sp-ticket__coupon button {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
        padding: .2rem .5rem;
        border: 1px solid var(--sp-brand-line);
        border-radius: var(--sp-r-pill);
        background: var(--sp-card);
        color: var(--sp-brand-700);
        font: inherit;
        font-size: .72rem;
        font-weight: 700;
        cursor: pointer;
    }

    .sp-ticket__coupon button svg {
        width: 11px;
        height: 11px;
    }

.sp-ticket__save {
    width: 100%;
    color: var(--sp-lab);
    font-weight: 700;
}

.sp-owned-tag {
    padding: .16rem .5rem;
    border-radius: var(--sp-r-pill);
    background: rgba(16,185,129,.12);
    color: var(--sp-lab);
    font-size: .7rem;
    font-weight: 700;
}

.sp-plan__foot {
    display: grid;
    gap: 8px;
    margin-top: .6rem;
    text-align: center;
}

.sp-assure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--sp-muted);
    font-size: .7rem;
    margin-top: 1rem;
}

    .sp-assure svg {
        width: 15px;
        height: 15px;
        color: var(--sp-lab);
    }

.sp-owned-box {
    display: grid;
    gap: 8px;
    text-align: center;
}

/* left column: what you get */
.sp-includes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.sp-include {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .62rem .7rem;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-r-sm);
    background: var(--sp-card);
    font-size: .86rem;
}

    .sp-include svg {
        width: 16px;
        height: 16px;
        flex: none;
    }

    .sp-include b {
        margin-left: auto;
        color: var(--sp-ink);
        font-variant-numeric: tabular-nums;
    }

.sp-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 26px;
    margin-top: clamp(24px, 3vw, 40px);
    padding-top: 20px;
    border-top: 1px solid var(--sp-line-soft);
    color: var(--sp-muted);
    font-size: .85rem;
}

    .sp-trust span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

    .sp-trust svg {
        width: 16px;
        height: 16px;
        color: var(--sp-lab);
    }

/* ---------- mobile purchase bar ----------------------------------- */

.sp-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: none;
    align-items: center;
    gap: 12px;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sp-line);
    background: color-mix(in srgb, var(--sp-card) 92%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(15,23,42,.10);
}

.sp-bar__p {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .sp-bar__p del,
    .sp-bar__p small {
        color: var(--sp-muted);
        font-size: .74rem;
    }

    .sp-bar__p b {
        color: var(--sp-ink);
        font-size: 1.05rem;
        font-variant-numeric: tabular-nums;
    }

.sp-bar .sp-btn {
    margin-left: auto;
}

/* ---------- reveal (one gentle entrance, not on every card) ------- */

.sp-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

    .sp-reveal.is-visible {
        opacity: 1;
        transform: none;
    }

/* ---------- responsive -------------------------------------------- */

@media (max-width: 991px) {
    .sp-hero__grid {
        grid-template-columns: 1fr;
    }

    .sp-hero__title {
        max-width: 100%;
    }

    .sp-preview {
        max-width: 520px;
    }

    .sp-cards--premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-ticket__cols {
        grid-template-columns: 1fr;
    }

    .sp-ticket__left {
        border-right: 0;
        border-bottom: 1px solid var(--sp-line);
    }
}

@media (max-width: 767px) {
    .sp-page {
        padding-bottom: 76px; /* room for the fixed purchase bar */
    }

    .sp-bar {
        display: flex;
    }

    .sp-subnav {
        top: 56px;
    }

    .sp-tool-tile {
        width: 88px;
        padding: .8rem .5rem;
    }

    .sp-tool-tile img,
    .sp-tool-tile svg {
        width: 28px;
        height: 28px;
    }

    .sp-hero__actions .sp-btn {
        flex: 1 1 auto;
    }

    .sp-metarail__i {
        padding-inline: 10px;
    }

    .sp-vs-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-cert-card {
        flex-direction: column;
        text-align: center;
        max-width: 320px;
    }

    .sp-cert-card__media {
        width: 100%;
    }

    .sp-cert-card__body {
        text-align: center;
    }

    .sp-cert-card__list {
        text-align: left;
    }

    .sp-cards {
        grid-template-columns: 1fr;
    }

    .sp-elig-cards {
        grid-template-columns: 1fr;
    }

    .sp-journey__wave {
        display: none;
    }

    .sp-journey {
        padding-top: 0;
    }

    .sp-journey__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sp-journey__stop {
        flex-direction: row;
        text-align: left;
    }

    .sp-journey__stop:nth-child(1) .sp-journey__dot,
    .sp-journey__stop:nth-child(2) .sp-journey__dot,
    .sp-journey__stop:nth-child(3) .sp-journey__dot,
    .sp-journey__stop:nth-child(4) .sp-journey__dot {
        transform: none;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .sp-journey__card {
        flex: 1;
    }

    .sp-co {
        width: 44px;
        height: 44px;
    }

        .sp-co img {
            width: 22px;
            height: 22px;
        }

    .sp-elig-card__icon {
        width: 48px;
        height: 48px;
    }

        .sp-elig-card__icon svg {
            width: 22px;
            height: 22px;
        }

    .sp-lesson {
        flex-wrap: wrap;
    }

    .sp-lesson__d {
        order: 3;
    }

    .sp-list {
        grid-template-columns: 1fr;
    }

    .sp-week__btn {
        gap: 10px;
        padding: .75rem .85rem;
    }

    .sp-week__num {
        width: 26px;
        height: 26px;
    }

    .sp-week__free {
        margin-left: 0;
    }

    .sp-more .sp-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-page *,
    .sp-page *::before,
    .sp-page *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }

    .sp-reveal {
        opacity: 1;
        transform: none;
    }
}

/* print: keep the curriculum readable */
@media print {
    .sp-subnav,
    .sp-bar,
    .sp-ticket,
    .sp-preview {
        display: none !important;
    }

    .sp-mod__body,
    .sp-week__body {
        grid-template-rows: 1fr !important;
    }

    .sp-week.is-hidden {
        display: block;
    }

    .sp-panel[hidden] {
        display: block;
    }
}

/* 
  TOOLS & TECHNOLOGIES
*/


/* ── header ── */
.tools-ticker-header {
    text-align: center;
    margin-bottom: 1rem;
}

.tools-ticker-eyebrow {
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bc-muted);
    margin-bottom: .55rem;
}

    .tools-ticker-eyebrow span {
        width: 20px;
        height: 1px;
        background: var(--bc-border);
        display: inline-block;
    }

.tools-ticker-title {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--bc-text);
    line-height: 1.2;
}

/* ── ticker outer wrap (clips + fades edges) ── */
.tools-ticker-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient( to right, transparent 0%, #000 7%, #000 93%, transparent 100% );
    -webkit-mask-image: linear-gradient( to right, transparent 0%, #000 7%, #000 93%, transparent 100% );
}

    /* pause both rows on hover */
    .tools-ticker-wrap:hover .tools-ticker-track-1,
    .tools-ticker-wrap:hover .tools-ticker-track-2 {
        animation-play-state: paused;
    }

/* ── row 1 — left ── */
.tools-ticker-track-1 {
    display: flex;
    gap: 10px;
    width: max-content;
    margin-bottom: 10px;
    animation: tickerLeft 38s linear infinite;
}

/* ── row 2 — right ── */
.tools-ticker-track-2 {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: tickerRight 44s linear infinite;
}

/* ── keyframes ── */
@keyframes tickerLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes tickerRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ── chip ── */
.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .52rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--bc-border);
    background: #ffffff;
    color: var(--bc-text);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    flex-shrink: 0;
    transition: border-color .2s ease, background .2s ease;
}

    .t-chip:hover {
        border-color: rgba(38,211,228,.3);
        background: rgba(38,211,228,.05);
    }

    .t-chip img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }

/* ── dark mode ── */
[data-bs-theme="dark"] .t-chip {
    background: rgba(15,23,42,.75);
    border-color: rgba(255,255,255,.07);
    color: #e2e8f0;
}

    [data-bs-theme="dark"] .t-chip:hover {
        background: rgba(38,211,228,.08);
        border-color: rgba(38,211,228,.2);
    }

/* ── mobile ── */
@media (max-width: 576px) {


    .tools-ticker-title {
        font-size: 1.25rem;
    }

    .t-chip {
        font-size: .75rem;
        padding: .45rem .85rem;
        gap: 6px;
    }

        .t-chip img {
            width: 16px;
            height: 16px;
        }
}