/*
 * Storefront — the public /store pages.
 *
 * The college colour arrives as custom properties in a <style> block the
 * layout writes (BrandPalette::cssVariables): --sf-accent, --sf-accent-strong,
 * --sf-accent-soft, --sf-accent-tint, --sf-on-accent. Everything here is
 * written against those, so a college gets its own storefront without a
 * stylesheet of its own. Fonts are self-hosted (OFL, public/fonts/storefront);
 * this file makes no third-party request.
 */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/storefront/fraunces-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/storefront/inter-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Fallbacks; the layout's palette block overrides the --sf-accent family. */
    --sf-accent: #23344a;
    --sf-accent-strong: #1b2939;
    --sf-accent-soft: #e9ebed;
    --sf-accent-tint: #c9ced5;
    --sf-on-accent: #ffffff;
    --sf-field: var(--sf-accent);
    --sf-field-strong: var(--sf-accent-strong);
    --sf-on-field: var(--sf-on-accent);

    --ink: #172030;
    --ink-2: #4f5a6b;
    --line: #dde2e9;
    --paper: #ffffff;
    --wash: #f3f5f8;
    --raised: #ffffff;
    --good: #1c6b43;
    --good-soft: #e3f3ea;
    --bad: #a3261c;
    --bad-soft: #fbe9e7;
    --warn-ink: #6b4500;
    --warn-soft: #fff1d6;

    --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
    --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.36rem);
    --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem);
    --step-3: clamp(1.9rem, 1.45rem + 2vw, 3rem);
    --step-4: clamp(2.3rem, 1.55rem + 3.6vw, 4.5rem);
    --step-5: clamp(2.7rem, 1.4rem + 6.4vw, 7rem);

    --gutter: clamp(16px, 4vw, 40px);
    --radius-lg: 20px;
    --radius: 12px;
    --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 8px 24px -12px rgb(16 24 40 / 0.18);
    --shadow-lift: 0 2px 4px rgb(16 24 40 / 0.06), 0 22px 40px -18px rgb(16 24 40 / 0.35);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e8ecf2;
        --ink-2: #a8b2c1;
        --line: #2b323d;
        --paper: #12161c;
        --wash: #0d1015;
        --raised: #181d25;
        --good: #7fd6a5;
        --good-soft: #13291e;
        --bad: #ff9d92;
        --bad-soft: #321614;
        --warn-ink: #ffd489;
        --warn-soft: #2e2410;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
        --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.4), 0 22px 44px -18px rgb(0 0 0 / 0.85);
    }
}

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

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

body.sf {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
body.sf > main { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: var(--sf-accent-strong); text-underline-offset: 0.18em; }

:focus-visible {
    outline: 3px solid var(--sf-accent-strong);
    outline-offset: 3px;
    border-radius: 4px;
}

.sf-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sf-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sf-skip {
    position: absolute; left: 12px; top: 12px; z-index: 50;
    background: var(--paper); color: var(--ink);
    padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow);
    transform: translateY(-200%);
}
.sf-skip:focus { transform: none; }

main:focus { outline: none; }

.sf-muted { color: var(--ink-2); margin: 0; }
.sf-currency { font-size: 0.62em; font-weight: 500; letter-spacing: 0.02em; opacity: 0.75; }

.sf-hero__count strong, .sf-card__price, .sf-buy__price, .sf-status__amount, .sf-step__num, .sf-cover__initials {
    font-variant-numeric: lining-nums tabular-nums;
}

/* ---------------------------------------------------------------- top bar */

.sf-top {
    background: #ffffff;
    border-bottom: 1px solid #e3e7ed;
    position: relative;
    z-index: 5;
}
.sf-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.sf-brand { display: inline-flex; align-items: center; color: #172030; text-decoration: none; min-width: 0; }
.sf-brand__logo { display: block; max-height: 42px; max-width: min(220px, 60vw); width: auto; object-fit: contain; }
.sf-brand__name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.sf-top__label { color: #4f5a6b; font-size: var(--step--1); white-space: nowrap; }
@media (max-width: 480px) { .sf-top__label { display: none; } }
.sf-top__end { display: flex; align-items: center; gap: 18px; min-width: 0; }

/* Account control. The top bar is always white (the college logo is drawn
   for white), so these colours are fixed rather than theme tokens. */
.sf-login {
    color: #172030; font-weight: 600; font-size: var(--step--1); text-decoration: none;
    padding: 9px 16px; min-height: 40px; display: inline-flex; align-items: center;
    border: 1.5px solid #cfd6df; border-radius: 999px;
}
.sf-login:hover { border-color: #172030; }
.sf-me { position: relative; }
.sf-me__toggle {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 4px 10px 4px 4px; min-height: 40px; border-radius: 999px;
    color: #172030; font-weight: 600; font-size: var(--step--1);
    border: 1.5px solid transparent;
}
.sf-me__toggle::-webkit-details-marker { display: none; }
.sf-me__toggle:hover, .sf-me[open] > .sf-me__toggle { border-color: #cfd6df; }
.sf-me__mono {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--sf-accent); color: var(--sf-on-accent);
    font-family: var(--display); font-variation-settings: "opsz" 36; font-weight: 640; font-size: 0.98rem;
}
.sf-me__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-me__chev { color: #4f5a6b; transition: transform 160ms; }
.sf-me[open] .sf-me__chev { transform: rotate(180deg); }
.sf-me__menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
    min-width: 212px; padding: 6px;
    background: var(--raised); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
}
.sf-me__form { margin: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.sf-me__item {
    display: flex; align-items: center; width: 100%; min-height: 42px; padding: 8px 12px;
    font: inherit; font-size: 0.97rem; font-weight: 520; text-align: left;
    color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.sf-me__item:hover { background: var(--sf-accent-soft); }
.sf-me__item[aria-current="page"] { font-weight: 660; box-shadow: inset 3px 0 0 var(--sf-accent); }
.sf-me__item--out { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .sf-me__item:hover { background: color-mix(in srgb, var(--sf-accent) 24%, transparent); } }
@media (max-width: 400px) { .sf-me__name { display: none; } .sf-me__toggle { padding-right: 8px; } }

/* ---------------------------------------------------------------- headings */

.sf-h2 {
    font-family: var(--display);
    font-variation-settings: "opsz" 72;
    font-weight: 560;
    font-size: var(--step-2);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0;
}

/* ------------------------------------------------------------ catalogue hero */

.sf-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--sf-field);
    color: var(--sf-on-field);
    padding-block: clamp(56px, 9vw, 128px) clamp(52px, 7vw, 96px);
}
/* A single soft light across the colour field, so the hero reads as a surface
   rather than a flat fill. Derived from the accent itself. */
.sf-hero::before {
    content: "";
    position: absolute; inset: -30% -10% auto auto;
    width: min(70vw, 900px); aspect-ratio: 1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--sf-on-field) 12%, transparent), transparent);
    z-index: -1;
}
.sf-hero__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.sf-hero--image { color: #ffffff; }
.sf-hero--image::before {
    inset: 0; width: auto; aspect-ratio: auto;
    background:
        linear-gradient(90deg, rgb(8 12 20 / 0.86) 0%, rgb(8 12 20 / 0.66) 55%, rgb(8 12 20 / 0.58) 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--sf-accent-strong) 55%, transparent), transparent 70%);
}
.sf-hero__title {
    font-family: var(--display);
    font-variation-settings: "opsz" 110;
    font-weight: 620;
    font-size: var(--step-5);
    line-height: 0.98;
    letter-spacing: -0.022em;
    margin: 0;
    max-width: 14ch;
    text-wrap: balance;
    animation: sf-rise 700ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.sf-hero__tagline {
    margin: clamp(18px, 2.4vw, 28px) 0 0;
    font-size: var(--step-1);
    line-height: 1.45;
    max-width: 38ch;
    opacity: 0.94;
}
.sf-hero__count {
    margin: clamp(24px, 3vw, 40px) 0 0;
    display: inline-flex; align-items: baseline; gap: 0.45em;
    font-size: var(--step-0);
    padding-top: 14px;
    border-top: 2px solid color-mix(in srgb, currentColor 40%, transparent);
}
.sf-hero__count strong {
    font-weight: 700;
    font-size: var(--step-1);
    line-height: 1;
}

.sf-hero__inner {
    display: grid; gap: clamp(32px, 5vw, 64px);
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}
.sf-hero :focus-visible { outline-color: currentColor; }

@keyframes sf-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- catalogue */

.sf-catalogue { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.sf-catalogue__head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 32px);
}
.sf-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip {
    font: inherit; font-size: var(--step--1); font-weight: 550;
    border: 1.5px solid var(--line);
    background: var(--raised); color: var(--ink);
    padding: 7px 16px; border-radius: 999px; cursor: pointer;
    transition: background-color 150ms, border-color 150ms, color 150ms;
}
.sf-chip:hover { border-color: var(--sf-accent-strong); }
.sf-chip[aria-pressed="true"] {
    background: var(--sf-accent); border-color: var(--sf-accent); color: var(--sf-on-accent);
}

.sf-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.sf-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--raised);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 220ms;
}
.sf-card[hidden] { display: none; }
.sf-card:hover, .sf-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sf-card__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.sf-card__price {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--paper); color: var(--ink);
    font-family: var(--display); font-variation-settings: "opsz" 36;
    font-weight: 620; font-size: 1.08rem; line-height: 1;
    padding: 9px 13px; border-radius: 999px;
    box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.45);
}
.sf-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.sf-card__title {
    margin: 0;
    font-family: var(--display); font-variation-settings: "opsz" 48;
    font-weight: 580; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em;
    text-wrap: balance;
}
.sf-card__link { color: var(--ink); text-decoration: none; }
.sf-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sf-card__link:focus-visible { outline: none; }
.sf-card:has(.sf-card__link:focus-visible) { outline: 3px solid var(--sf-accent-strong); outline-offset: 3px; }
.sf-card__summary {
    margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sf-card__meta {
    margin: auto 0 0; padding-top: 6px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
    color: var(--ink-2); font-size: var(--step--1);
}
.sf-date {
    color: var(--ink); font-weight: 600;
    background: var(--sf-accent-soft);
    padding: 3px 10px; border-radius: 999px;
}

/* The generated cover: the college colour, lit from a different place for
   each program, with the program's initials set large. */
.sf-cover {
    position: absolute; inset: 0;
    display: block;
    background:
        radial-gradient(120% 90% at var(--cv-x, 30%) var(--cv-y, 30%),
            color-mix(in srgb, var(--sf-on-field) var(--cv-glow, 24%), transparent) 0%, transparent 58%),
        linear-gradient(var(--cv-a, 135deg),
            color-mix(in srgb, var(--sf-field) calc(100% - var(--cv-deep, 0%)), #0b1220) 0%,
            color-mix(in srgb, var(--sf-field-strong) calc(100% - var(--cv-deep, 0%)), #0b1220) 100%);
    background-color: var(--sf-field);
    overflow: hidden;
}
.sf-cover::after {
    /* a faint ruled texture, like a printed prospectus cover */
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(var(--cv-a, 135deg),
        color-mix(in srgb, var(--sf-on-field) 7%, transparent) 0 1px, transparent 1px 14px);
    mix-blend-mode: normal;
}
.sf-cover--dots::after {
    background: radial-gradient(color-mix(in srgb, var(--sf-on-field) 14%, transparent) 1.2px, transparent 1.6px) 0 0 / 16px 16px;
}
.sf-cover--right .sf-cover__initials { left: auto; right: -0.02em; padding-left: 0; padding-right: 0.06em; }
.sf-cover__initials {
    position: absolute; left: -0.04em; bottom: -0.2em;
    font-family: var(--display); font-variation-settings: "opsz" 144;
    font-weight: 700; font-size: clamp(5.5rem, 40cqw, 12rem);
    line-height: 1; letter-spacing: -0.06em;
    color: var(--sf-on-field); opacity: 0.9;
    padding-left: 0.12em;
}

/* A real cover photo sits on top of the generated cover. A broken image still
   renders its ::after, so a photo that fails to load paints the generated
   cover (its parent's background, inherited through the <img>) and the
   initials back over the broken-image icon. A loaded image never renders
   ::after, so this costs nothing when the photo is fine. */
.sf-cover__photo {
    position: absolute; inset: 0; z-index: 1;
    display: block; width: 100%; height: 100%; object-fit: cover;
    background: inherit; color: transparent;
}
.sf-cover__photo::after {
    content: attr(data-initials);
    position: absolute; inset: 0;
    background: inherit;
    display: flex; align-items: flex-end;
    padding-left: 0.08em;
    font-family: var(--display); font-variation-settings: "opsz" 144;
    font-weight: 700; font-size: clamp(5.5rem, 40cqw, 12rem); line-height: 0.8; letter-spacing: -0.06em;
    color: var(--sf-on-field); overflow: hidden;
}
.sf-cover--wide .sf-cover__photo::after { color: transparent; }
.sf-hero__img::after {
    content: ""; position: absolute; inset: 0; background: var(--sf-field);
}

/* ---------------------------------------------------------------- empty */

.sf-empty {
    background: var(--raised);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 56px);
    max-width: 720px;
}
.sf-empty p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.sf-empty .sf-empty__title {
    font-family: var(--display); font-variation-settings: "opsz" 48;
    font-weight: 560; font-size: var(--step-1); color: var(--ink); margin-bottom: 8px;
}
.sf-empty--filtered { margin-top: 12px; }
.sf-empty--filtered .sf-btn { margin-top: 14px; width: auto; }

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

.sf-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    font: inherit; font-weight: 620; font-size: 1.02rem;
    padding: 14px 20px; min-height: 50px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--sf-accent); color: var(--sf-on-accent);
    text-decoration: none; text-align: center;
    transition: filter 150ms, transform 150ms;
}
.sf-btn:hover { filter: brightness(1.08) saturate(1.05); }
.sf-btn:active { transform: translateY(1px); }
.sf-btn--quiet { background: transparent; color: var(--sf-accent-strong); border: 1.5px solid currentColor; display: inline-flex; }

/* ---------------------------------------------------------------- product */

.sf-preview { background: var(--warn-soft); color: var(--warn-ink); font-weight: 600; padding-block: 12px; font-size: var(--step--1); }

.sf-phead {
    position: relative; isolation: isolate; overflow: hidden;
    color: var(--sf-on-field);
    background: var(--sf-field);
    min-height: clamp(360px, 52vh, 560px);
    display: flex; align-items: flex-end;
}
.sf-phead .sf-cover { z-index: -2; }
.sf-cover--wide .sf-cover__initials {
    left: auto; right: -0.04em; bottom: -0.22em;
    font-size: clamp(12rem, 36vw, 30rem); opacity: 0.16;
}
.sf-phead--image { color: #ffffff; }
.sf-phead--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(0deg, rgb(8 12 20 / 0.9) 0%, rgb(8 12 20 / 0.55) 45%, rgb(8 12 20 / 0.12) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--sf-accent-strong) 45%, transparent), transparent 70%);
}
.sf-phead__inner { padding-block: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 64px); }
.sf-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: inherit; text-decoration: none; font-size: var(--step--1); font-weight: 550;
    padding: 6px 12px 6px 8px; margin-left: -8px; border-radius: 999px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    margin-bottom: clamp(28px, 6vw, 72px);
}
.sf-back:hover { background: color-mix(in srgb, currentColor 20%, transparent); }
.sf-phead__title {
    font-family: var(--display); font-variation-settings: "opsz" 144;
    font-weight: 610; font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.018em;
    margin: 0; max-width: 18ch; text-wrap: balance;
    animation: sf-rise 700ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.sf-phead__summary { margin: 18px 0 0; font-size: var(--step-1); line-height: 1.45; max-width: 46ch; opacity: 0.94; }
.sf-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sf-stat {
    display: inline-flex; align-items: baseline; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
    font-weight: 600; font-size: var(--step--1);
}
.sf-stat__label { font-weight: 450; opacity: 0.82; }

.sf-product {
    display: grid; gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: start;
    padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 112px);
}
.sf-section + .sf-section { margin-top: clamp(40px, 5vw, 64px); }
.sf-section > .sf-h2 { margin-bottom: 16px; }
.sf-lede { color: var(--ink-2); margin: -4px 0 24px; max-width: 62ch; }

.sf-prose { max-width: 68ch; overflow-wrap: anywhere; font-size: 1.04rem; line-height: 1.72; }
.sf-prose > :first-child { margin-top: 0; }
.sf-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.sf-prose h1, .sf-prose h2, .sf-prose h3 { font-family: var(--display); font-weight: 580; line-height: 1.2; letter-spacing: -0.01em; }
.sf-prose h1 { font-size: var(--step-2); }
.sf-prose h2 { font-size: var(--step-1); }
.sf-prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--sf-accent); color: var(--ink-2); }

/* Curriculum: a numbered timeline — the courses really are taken in order. */
.sf-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.sf-timeline::before {
    content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
    background: linear-gradient(var(--sf-accent-tint), var(--line));
}
.sf-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.sf-step + .sf-step { margin-top: 12px; }
.sf-step__num {
    position: relative; z-index: 1;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper); color: var(--sf-accent-strong);
    border: 2px solid var(--sf-accent);
    font-weight: 700; font-size: 0.98rem;
}
.sf-course { background: var(--raised); border-radius: var(--radius); box-shadow: var(--shadow); }
.sf-course__summary {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
    padding: 14px 18px; min-height: 44px; border-radius: var(--radius);
}
.sf-course__summary::-webkit-details-marker { display: none; }
.sf-course__name { font-weight: 620; font-size: 1.04rem; line-height: 1.35; }
.sf-course__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: var(--step--1); }
.sf-course__chev { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-2); transition: transform 200ms; }
.sf-course[open] > .sf-course__summary .sf-course__chev { transform: rotate(180deg); }
.sf-course[open] { box-shadow: var(--shadow-lift); }
.sf-step:has(.sf-course[open]) .sf-step__num { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-course__body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.sf-course__body > .sf-muted { padding-top: 12px; }

.sf-outline { list-style: none; margin: 0; padding: 0; }
.sf-course__body > .sf-outline > .sf-outline__module { padding-top: 14px; }
.sf-course__body > .sf-outline > .sf-outline__module + .sf-outline__module { border-top: 1px dashed var(--line); margin-top: 14px; }
.sf-outline__title { display: block; font-weight: 620; }
.sf-outline .sf-outline { margin: 8px 0 0 14px; padding-left: 14px; border-left: 2px solid var(--sf-accent-soft); }
.sf-outline .sf-outline .sf-outline__title { font-weight: 560; font-size: 0.97rem; }
.sf-outline__lessons { list-style: none; margin: 6px 0 0; padding: 0; }
.sf-outline__lesson {
    position: relative; padding: 3px 0 3px 18px;
    color: var(--ink-2); font-size: 0.96rem; line-height: 1.5;
}
.sf-outline__lesson::before {
    content: ""; position: absolute; left: 2px; top: 0.78em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sf-accent-tint);
}

/* Purchase card: sticky beside the content on wide screens. */
.sf-buy { position: sticky; top: 24px; }
.sf-buy__card {
    background: var(--raised); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: 30px 26px 26px;
    position: relative; overflow: hidden;
}
.sf-buy__card::before, .sf-status::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--sf-accent);
}
.sf-buy__price {
    margin: 0;
    font-family: var(--display); font-variation-settings: "opsz" 96;
    font-weight: 620; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em;
}
.sf-buy__starts { margin: 10px 0 20px; color: var(--ink-2); }
.sf-buy__help { margin: 12px 0 0; color: var(--ink-2); font-size: var(--step--1); }
.sf-buy__facts {
    list-style: none; margin: 22px 0 0; padding: 18px 0 0;
    border-top: 1px solid var(--line);
    display: grid; gap: 8px; font-size: var(--step--1); color: var(--ink-2);
}
.sf-buy__facts li { display: flex; gap: 10px; align-items: center; }
.sf-buy__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sf-accent); flex: none; }
.sf-buy__short { display: none; }

.sf-note {
    margin: 0; padding: 14px 16px; border-radius: var(--radius);
    background: var(--wash); color: var(--ink); font-size: 0.97rem; line-height: 1.5;
    border-left: 4px solid var(--ink-2);
}
.sf-note--good { background: var(--good-soft); border-left-color: var(--good); }
.sf-note--error { background: var(--bad-soft); color: var(--ink); border-left-color: var(--bad); margin-bottom: 14px; }

/* Phones: the purchase card becomes a bar pinned to the bottom. */
@media (max-width: 759.98px) {
    .sf-product { grid-template-columns: 1fr; }
    /* Room for the pinned bar, so the footer and anything focused are never
       hidden under it; more when the bar also carries an error message. */
    .sf-page-product { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
    .sf-page-product:has(.sf-buy .sf-note--error) { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }
    html:has(body.sf-page-product) { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
    html:has(body.sf-page-product .sf-buy .sf-note--error) { scroll-padding-bottom: calc(228px + env(safe-area-inset-bottom)); }
    .sf-buy { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 20; }
    .sf-buy__card {
        display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px;
        border-radius: 18px 18px 0 0;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 30px -12px rgb(16 24 40 / 0.35);
    }
    .sf-buy__price { font-size: 1.6rem; grid-column: 1; }
    .sf-buy__starts { grid-column: 1; grid-row: 2; margin: 0; font-size: 0.78rem; white-space: nowrap; }
    .sf-buy__card > .sf-btn, .sf-buy__card > form, .sf-buy__card > .sf-note:not(.sf-note--error) { grid-column: 2; grid-row: 1 / span 2; }
    .sf-buy__card > .sf-note--error { grid-column: 1 / -1; grid-row: auto; margin: 0 0 6px; order: -1; }
    .sf-buy__help, .sf-buy__facts, .sf-buy__long { display: none; }
    .sf-buy__short { display: inline; }
    .sf-buy__card .sf-note { padding: 10px 12px; text-align: center; font-weight: 600; font-size: 0.92rem; }
    .sf-buy__card .sf-btn { min-height: 48px; padding: 12px 14px; }
    .sf-timeline::before { left: 17px; }
    .sf-step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
    .sf-step__num { width: 36px; height: 36px; font-size: 0.95rem; }
    .sf-course__summary { padding: 12px 14px; }
    .sf-course__body { padding: 4px 14px 16px; }
}

/* ---------------------------------------------------------------- status */

.sf-status-wrap { padding-block: clamp(36px, 7vw, 96px); }
.sf-status {
    max-width: 680px; margin-inline: auto;
    background: var(--raised); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 48px) clamp(24px, 5vw, 48px);
    position: relative; overflow: hidden;
}
.sf-status--good::before { background: var(--good); }
.sf-status--problem::before { background: var(--bad); }
.sf-status--quiet::before { background: var(--ink-2); }
.sf-status__order { margin: 0 0 24px; color: var(--ink-2); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sf-status__title {
    font-family: var(--display); font-variation-settings: "opsz" 96;
    font-weight: 600; font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.015em;
    margin: 32px 0 12px; text-wrap: balance;
}
.sf-status__body { margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.sf-status__live { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: var(--step--1); color: var(--ink-2); }
.sf-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sf-accent); animation: sf-pulse 1.6s ease-in-out infinite; }
@keyframes sf-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
.sf-status__item {
    margin: 32px 0 0; padding: 18px 20px; border-radius: var(--radius);
    background: var(--wash);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
}
.sf-status__item p { margin: 0; }
.sf-status__product { font-weight: 620; }
.sf-status__amount { font-family: var(--display); font-weight: 620; font-size: var(--step-1); }
.sf-status .sf-btn { margin-top: 24px; }

.sf-tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-tracker__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sf-tracker__step::after {
    /* connector to the next step */
    content: ""; position: absolute; top: 17px; left: 44px; right: 8px; height: 3px; border-radius: 3px;
    background: var(--line);
}
.sf-tracker__step:last-child::after { display: none; }
.sf-tracker__step--done::after { background: var(--sf-accent); }
.sf-tracker__dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums;
    background: var(--paper); color: var(--ink-2); border: 2px solid var(--line);
}
.sf-tracker__label { font-weight: 600; font-size: var(--step--1); color: var(--ink-2); }
.sf-tracker__step--done .sf-tracker__dot { background: var(--sf-accent); color: var(--sf-on-accent); border-color: var(--sf-accent); }
.sf-tracker__step--done .sf-tracker__label { color: var(--ink); }
.sf-tracker__step--current .sf-tracker__dot { border-color: var(--sf-accent); color: var(--sf-accent-strong); box-shadow: 0 0 0 5px var(--sf-accent-soft); }
.sf-tracker__step--current .sf-tracker__label { color: var(--ink); }
.sf-tracker__step--attention .sf-tracker__dot { background: var(--warn-soft); border-color: var(--warn-ink); color: var(--warn-ink); }
.sf-tracker__step--attention .sf-tracker__label { color: var(--warn-ink); }
.sf-status--attention::before { background: var(--warn-ink); }
.sf-tracker__step--problem .sf-tracker__dot { background: var(--bad); border-color: var(--bad); color: var(--paper); }
.sf-tracker__step--problem .sf-tracker__label { color: var(--bad); }
.sf-status--good .sf-tracker__step--done .sf-tracker__dot { background: var(--good); border-color: var(--good); color: var(--paper); }
.sf-status--good .sf-tracker__step--done::after { background: var(--good); }

/* ---------------------------------------------------------------- account */

.sf-account { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.sf-who {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px;
    padding-bottom: clamp(22px, 3vw, 32px); margin-bottom: clamp(28px, 4vw, 44px);
    border-bottom: 2px solid var(--sf-accent);
}
.sf-who__kicker { margin: 0 0 6px; color: var(--ink-2); font-weight: 600; font-size: var(--step--1); }
.sf-who__name {
    margin: 0; font-family: var(--display); font-variation-settings: "opsz" 110;
    font-weight: 600; font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.018em;
    overflow-wrap: anywhere; text-wrap: balance;
    animation: sf-rise 700ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.sf-who__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; min-width: 0; }
.sf-who__facts div { min-width: 0; }
.sf-who__facts dt { color: var(--ink-2); font-size: var(--step--1); }
.sf-who__facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sf-num { font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.02em; }

.sf-account__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.sf-empty__cta { margin-top: 18px; width: auto; }

.sf-bought { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sf-bought__item {
    display: grid; align-items: center; gap: 16px 22px;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    background: var(--raised); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 14px 22px 14px 14px;
}
.sf-bought__cover {
    position: relative; inset: auto; aspect-ratio: 16 / 10; width: 100%;
    border-radius: var(--radius); container-type: inline-size;
}
.sf-bought__cover .sf-cover__initials, .sf-bought__cover .sf-cover__photo::after { font-size: clamp(2.6rem, 44cqw, 4.4rem); }
.sf-bought__body { min-width: 0; display: grid; gap: 4px; }
.sf-bought__name {
    margin: 0; font-family: var(--display); font-variation-settings: "opsz" 48;
    font-weight: 580; font-size: var(--step-1); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance;
}
.sf-bought__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-2); font-size: var(--step--1); }
.sf-bought__paid {
    margin: 2px 0 0; font-family: var(--display); font-variation-settings: "opsz" 36;
    font-weight: 620; font-size: 1.05rem; font-variant-numeric: lining-nums tabular-nums;
}
.sf-bought__side { display: grid; justify-items: end; gap: 12px; }
.sf-bought__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; }

.sf-state {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 10px; border-radius: 999px;
    font-size: var(--step--1); font-weight: 620; line-height: 1.3; text-align: left;
}
.sf-state__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sf-state--good { background: var(--good-soft); color: var(--good); }
.sf-state--working { background: var(--sf-accent-soft); color: var(--ink); }
.sf-state--working .sf-state__dot { background: var(--sf-accent); animation: sf-pulse 1.6s ease-in-out infinite; }
.sf-state--attention { background: var(--warn-soft); color: var(--warn-ink); }

.sf-btn--small { width: auto; min-height: 42px; padding: 10px 18px; font-size: 0.96rem; }
.sf-link { font-weight: 600; font-size: 0.96rem; min-height: 42px; display: inline-flex; align-items: center; }

.sf-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.sf-pager__link {
    font-weight: 600; text-decoration: none; padding: 9px 18px; min-height: 42px; display: inline-flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: 999px; color: var(--sf-accent-strong); background: var(--raised);
}
.sf-pager__link[aria-disabled="true"] { color: var(--ink-2); opacity: 0.55; }

@media (max-width: 719.98px) {
    .sf-bought__item { grid-template-columns: 84px minmax(0, 1fr); padding: 12px; gap: 12px 14px; align-items: start; }
    .sf-bought__cover { aspect-ratio: 1; }
    .sf-bought__cover .sf-cover__initials, .sf-bought__cover .sf-cover__photo::after { font-size: 2.9rem; }
    .sf-bought__side { grid-column: 1 / -1; justify-items: start; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
    .sf-bought__actions { justify-content: flex-start; width: 100%; }
    .sf-bought__actions .sf-btn--small { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- footer */

.sf-foot { border-top: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: var(--step--1); }
.sf-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .sf-card:hover, .sf-card:focus-within { transform: none; }
}

/* Buy without signing in: name + email on the product page. */
.sf-guest { display: grid; gap: 6px; margin: 4px 0 0; }
.sf-guest__label { font-size: var(--step--1); font-weight: 600; color: var(--ink); margin-top: 6px; }
.sf-guest__input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.sf-guest__input:focus { outline: 3px solid var(--sf-accent-tint); outline-offset: 1px; border-color: var(--sf-accent); }
.sf-guest__error { margin: 0; color: var(--bad); font-size: var(--step--1); }
.sf-guest .sf-btn { margin-top: 10px; }
.sf-guest__trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Store v2 — test mode bar (mai first). */
.sf-testbar { background: #fff4d6; color: #5c3d00; text-align: center; padding: 9px 16px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid #f0d58a; }
.sf-testbar strong { font-weight: 700; }
@media (prefers-color-scheme: dark) { .sf-testbar { background: #3a2d0a; color: #ffe08a; border-bottom-color: #5c4712; } }
.sf-chip-test { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff4d6; color: #5c3d00; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Store v2 — Featured label on a catalogue card. */
.sf-card__featured { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--sf-accent); color: var(--sf-on-accent); font-size: 13px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* Store v2 — discount codes. */
.sf-was { color: var(--ink-2); font-weight: 400; font-size: .6em; margin-right: .3em; text-decoration-thickness: 1px; }
.sf-code-chip { display: inline-block; margin: 2px 0 10px; padding: 4px 10px; border-radius: 999px; background: var(--sf-accent-soft); color: var(--sf-accent-strong); font-size: 13px; font-weight: 600; }
.sf-code { margin-top: 14px; }
.sf-code__toggle { cursor: pointer; font-size: 14px; color: var(--sf-accent-strong); font-weight: 600; }
.sf-code__form { display: flex; gap: 8px; margin-top: 10px; }
.sf-code__form .sf-code__input { flex: 1 1 auto; width: auto; min-width: 9ch; margin: 0; text-transform: uppercase; }
.sf-code__form .sf-btn { flex: 0 0 auto; width: auto; padding-left: 18px; padding-right: 18px; }
.sf-code__msg { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.sf-code__msg--error { color: var(--bad); }

/* Store v2, phones: the buy box stays in the page (it holds the name, email and
   code fields); a slim bar pinned to the bottom carries the price and a button
   that brings the box into view. Hidden while the box itself is on screen. */
.sf-buybar { display: none; }
@media (max-width: 759.98px) {
    .sf-v2 .sf-buy { position: static; }
    .sf-v2 .sf-buy__card { display: block; border-radius: var(--radius-lg); padding: 22px var(--gutter) 24px; box-shadow: var(--shadow-lift); }
    .sf-v2 .sf-buy__price { font-size: 2rem; }
    .sf-v2 .sf-buy__starts { margin: 4px 0 14px; font-size: inherit; white-space: normal; }
    .sf-v2 .sf-buy__help, .sf-v2 .sf-buy__facts { display: block; }
    .sf-v2 .sf-buy__long { display: inline; }
    .sf-v2 .sf-buy__short { display: none; }
    .sf-v2.sf-page-product, .sf-v2.sf-page-product:has(.sf-buy .sf-note--error) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    html:has(body.sf-v2.sf-page-product) { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .sf-buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        background: var(--raised); border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 30px -12px rgb(16 24 40 / 0.35);
        transition: transform 200ms ease;
    }
    .sf-buybar.is-hidden { transform: translateY(115%); }
    .sf-buybar__price { font-family: var(--display); font-weight: 620; font-size: 1.35rem; line-height: 1.1; }
    .sf-buybar__price .sf-was { display: block; font-size: .6em; }
    .sf-buybar__btn { width: auto; flex: 0 0 auto; min-height: 48px; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sf-buybar { transition: none; } }

/* Store v2 — the college's thank-you message on the order page. */
.sf-thanks { margin: 4px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--sf-accent-soft); color: var(--ink); white-space: pre-line; line-height: 1.5; }

/* Store v2 — the shop widget on a college's own website (/store/embed). */
.sf-embed { background: transparent; padding: 4px; }
.sf-embed .sf-grid { margin: 0; }
.sf-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.sf-embed__more { text-align: center; margin: 18px 0 8px; }
.sf-embed__more .sf-btn { width: auto; display: inline-flex; padding-left: 22px; padding-right: 22px; }
.sf-embed__empty { text-align: center; color: var(--ink-2); padding: 24px; }

/* ================= Store v2 — B: theme system (mai first) ================= */
/* Extra self-hosted OFL fonts (public/fonts/storefront). A face downloads only when a theme uses it. */
@font-face { font-family: "Playfair Display"; src: url("../fonts/storefront/playfair-display-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/storefront/lora-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/storefront/space-grotesk-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/storefront/bricolage-grotesque-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/storefront/outfit-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/storefront/manrope-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/storefront/figtree-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/storefront/nunito-sans-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/storefront/source-sans-3-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/storefront/dm-sans-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

/* B3 — logo size */
[data-sf-logo="s"] .sf-brand__logo { max-height: 30px; }
[data-sf-logo="l"] .sf-brand__logo { max-height: 60px; max-width: min(280px, 64vw); }

/* B3 — header: title and photo side by side */
.sf-hero--split .sf-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.sf-hero__side { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; }
.sf-hero__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 759.98px) { .sf-hero--split .sf-hero__inner { grid-template-columns: 1fr; } .sf-hero__side { order: -1; aspect-ratio: 16 / 9; } }

/* B4 — program cards: one per row, and which facts show */
[data-sf-cards="list"] .sf-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) {
    [data-sf-cards="list"] .sf-card { flex-direction: row; }
    [data-sf-cards="list"] .sf-card__cover { flex: 0 0 min(38%, 360px); aspect-ratio: auto; min-height: 210px; }
    [data-sf-cards="list"] .sf-card__body { justify-content: center; padding: 24px 28px; }
}
[data-sf-hide~="summary"] .sf-card__summary,
[data-sf-hide~="length"] [data-f="length"],
[data-sf-hide~="courses"] [data-f="courses"],
[data-sf-hide~="hours"] [data-f="hours"] { display: none; }

/* B1 — themes. Classic is the stylesheet as it was. Colours stay the college's. */
[data-sf-theme="modern"] { --radius-lg: 12px; --radius: 8px; }
[data-sf-theme="modern"] .sf-card { box-shadow: none; border: 1px solid var(--line); }
[data-sf-theme="modern"] .sf-card:hover, [data-sf-theme="modern"] .sf-card:focus-within { box-shadow: var(--shadow); }
[data-sf-theme="modern"] .sf-hero__title { letter-spacing: -0.035em; font-weight: 650; max-width: 16ch; }
[data-sf-theme="modern"] .sf-card__title, [data-sf-theme="modern"] .sf-h2 { letter-spacing: -0.02em; }
[data-sf-theme="modern"] .sf-btn { border-radius: 10px; }
[data-sf-theme="modern"] .sf-card__price { border-radius: 8px; }

[data-sf-theme="bold"] { --radius-lg: 28px; --radius: 16px; }
[data-sf-theme="bold"] .sf-hero__title { font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
[data-sf-theme="bold"] .sf-card__title, [data-sf-theme="bold"] .sf-h2 { font-weight: 750; }
[data-sf-theme="bold"] .sf-card__price { background: var(--sf-accent); color: var(--sf-on-accent); font-weight: 800; }
[data-sf-theme="bold"] .sf-date { background: var(--sf-accent); color: var(--sf-on-accent); }
[data-sf-theme="bold"] .sf-btn { font-weight: 750; }

[data-sf-theme="minimal"] { --radius-lg: 6px; --radius: 4px; --shadow: none; --shadow-lift: none; }
[data-sf-theme="minimal"] .sf-card { border: 1px solid var(--line); }
[data-sf-theme="minimal"] .sf-card:hover, [data-sf-theme="minimal"] .sf-card:focus-within { transform: none; border-color: var(--ink-2); }
[data-sf-theme="minimal"] .sf-hero__title { font-weight: 600; letter-spacing: -0.03em; }
[data-sf-theme="minimal"] .sf-card__title { font-weight: 600; }
[data-sf-theme="minimal"] .sf-btn { border-radius: 6px; }
[data-sf-theme="minimal"] .sf-card__price { box-shadow: none; border: 1px solid var(--line); border-radius: 4px; }
@media (prefers-color-scheme: light) {
    [data-sf-theme="minimal"] { --wash: #ffffff; }
    [data-sf-theme="minimal"][data-sf-header="colour"] .sf-hero:not(.sf-hero--image) { --sf-field: #ffffff; --sf-on-field: var(--ink); border-bottom: 1px solid var(--line); }
    [data-sf-theme="minimal"][data-sf-header="colour"] .sf-hero:not(.sf-hero--image)::before { display: none; }
}

[data-sf-theme="warm"] { --radius-lg: 22px; --radius: 14px; }
[data-sf-theme="warm"] .sf-hero__title { font-weight: 600; letter-spacing: -0.01em; }
[data-sf-theme="warm"] .sf-card__title { font-weight: 600; }
@media (prefers-color-scheme: light) {
    [data-sf-theme="warm"] { --wash: #f7f1e8; --raised: #fffdf9; --line: #e8dfd1; --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 10px 26px -14px rgb(60 40 20 / 0.22); }
}

/* The embed sits on the college's own page: no grey behind it. */
body.sf.sf-embed { background: transparent; min-height: 0; }

/* Store v2 — B5: full footer and policy pages. */
.sf-foot--full { padding-top: 8px; }
.sf-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; padding-block: 28px 8px; }
.sf-foot__col p { margin: 0 0 6px; }
.sf-foot__name { font-family: var(--display); font-weight: 620; font-size: var(--step-1); color: var(--ink); }
.sf-foot__address { white-space: pre-line; }
.sf-foot__head { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.sf-foot a { color: var(--ink-2); }
.sf-foot a:hover { color: var(--sf-accent-strong); }
.sf-agree { margin-top: 10px; }
.sf-policy { max-width: 760px; padding-block: clamp(32px, 6vw, 72px); }
.sf-policy__title { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; margin: 22px 0 18px; }
.sf-prose { line-height: 1.7; }
.sf-prose h2, .sf-prose h3 { font-family: var(--display); margin: 1.6em 0 .5em; }

/* Store v2 — B7: announcement bar, in the college's colour. */
.sf-announce { background: var(--sf-accent); color: var(--sf-on-accent); }
.sf-announce__inner { margin: 0 auto; padding-block: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.4; }
.sf-announce__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Store v2 — C2: waitlist */
.sf-wait__state { margin: 0 0 6px; font-weight: 700; color: var(--ink); }

/* Store v2 — C4: category chips and search */
.sf-filters2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.sf-filters2 .sf-filters { flex-wrap: wrap; }
.sf-search { min-width: min(260px, 100%); padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.sf-search:focus { outline: 3px solid var(--sf-accent-tint); outline-offset: 1px; border-color: var(--sf-accent); }
@media (max-width: 759.98px) { .sf-filters2 { justify-content: flex-start; width: 100%; } .sf-search { flex: 1 1 100%; } }

/* Store v2 — C1: pay in parts */
.sf-plan-note { margin: -6px 0 14px; color: var(--ink-2); font-size: 14px; }
.sf-plan { border: 0; margin: 12px 0 4px; padding: 0; display: grid; gap: 8px; }
.sf-plan__opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 15px; line-height: 1.35; }
.sf-plan__opt:has(input:checked) { border-color: var(--sf-accent); background: var(--sf-accent-soft); }
.sf-plan__opt input { margin-top: 3px; accent-color: var(--sf-accent); }
