/* ===========================================================
   Public academy site - design system (Bootstrap 5.3.8 + Bootstrap Icons)
   Brand color comes from each Academy's own PrimaryColor/
   SecondaryColor (set --brand / --brand-2 inline per page).
   Gold and chalk are fixed across all academies for consistency.
   =========================================================== */

:root {
    --brand: #0F2B1D;      /* overridden per-academy */
    --brand-2: #1E7A46;    /* overridden per-academy */
    --chalk: #F4F5F8;
    --muted: #5f6672;
    --gold: #E8A93C;
    --ink: #14181F;
    --line: rgba(20, 24, 31, 0.11);

    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 8px 26px rgba(20, 24, 31, 0.08);
    --shadow-lift: 0 20px 44px rgba(20, 24, 31, 0.18);

    /* Mown-grass stripes - the pitch motif used behind dark bands (hero, CTA, footer). */
    --stripes: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 56px, rgba(255,255,255,0) 56px 112px);

    /* Brand-derived tints. Plain fallbacks first; browsers with color-mix() get true tints
       of whatever colors the academy configured. */
    --brand-end: var(--brand);  /* dark end of brand gradients; never lighter than ~70% brand */
    --brand-tint: rgba(15, 43, 29, 0.07);
    --brand-veil: rgba(15, 43, 29, 0.92);
    --brand-veil-mid: rgba(15, 43, 29, 0.62);
    --brand-veil-soft: rgba(15, 43, 29, 0.2);
}
@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        --brand-end: color-mix(in srgb, var(--brand) 72%, var(--brand-2));
        --brand-tint: color-mix(in srgb, var(--brand) 8%, white);
        --brand-veil: color-mix(in srgb, var(--brand) 92%, transparent);
        --brand-veil-mid: color-mix(in srgb, var(--brand) 62%, transparent);
        --brand-veil-soft: color-mix(in srgb, var(--brand) 20%, transparent);
        --chalk: color-mix(in srgb, var(--brand) 5%, #fafafa);
        --ink: color-mix(in srgb, var(--brand) 45%, #0b0d12);
        --muted: color-mix(in srgb, var(--brand) 35%, #6b7280);
        --line: color-mix(in srgb, var(--brand) 14%, transparent);
    }
}

.pub-body {
    background: var(--chalk);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pub-display {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 0.95;
}

.pub-mono {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* ---------- Nav (Bootstrap navbar, sticky) ---------- */
.pub-nav {
    background: var(--brand);
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 169, 60, 0.35);
    transition: box-shadow 0.3s ease;
    z-index: 1030;
}
.pub-nav.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.pub-nav .pub-brand {
    color: #fff;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 22px;
    margin-right: 0;
    white-space: normal;
}
.pub-nav .pub-brand:hover { color: #fff; }
.pub-brand-logo { height: 40px; width: auto; }
.pub-nav .pub-nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.pub-nav .pub-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.1); }
.pub-nav .pub-nav-link .bi { margin-right: 4px; color: var(--gold); }
.pub-nav a.pub-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--gold);
    padding: 7px 20px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}
.pub-nav a.pub-login:hover { background: var(--gold); color: var(--ink); }
.pub-nav .navbar-collapse.show,
.pub-nav .navbar-collapse.collapsing { padding-bottom: 10px; }

@media (max-width: 575px) {
    .pub-nav .pub-brand { font-size: 17px; }
    .pub-brand-logo { height: 32px; }
}

/* ---------- Buttons ---------- */
.pub-cta-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F4C163, var(--gold));
    color: var(--ink);
    border: none;
    font-weight: 700;
    padding: 15px 34px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(232, 169, 60, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-cta-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(232, 169, 60, 0.5);
    color: var(--ink);
}
.pub-cta-gold .bi { transition: transform 0.2s ease; }
.pub-cta-gold:hover .bi { transform: translateX(4px); }
.pub-cta-gold:disabled,
.pub-cta-gold.disabled {
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}
.pub-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.pub-cta-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Hero ---------- */
.pub-hero {
    position: relative;
    background: var(--brand);
    color: #fff;
    overflow: hidden;
    min-height: clamp(460px, 70vh, 640px);
    display: flex;
    align-items: center;
    padding-bottom: 64px;
}
.pub-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.1s ease;
}
.pub-hero-slide.is-active { opacity: 1; }
/* Very light mask: just enough tint to keep the heading readable; photos stay vivid. */
.pub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.52) 100%);
    pointer-events: none;
}
.pub-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 56px; padding-bottom: 24px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.pub-hero-content .pub-cta-gold,
.pub-hero-content .pub-cta-ghost { text-shadow: none; }
.pub-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(232, 169, 60, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}
.pub-hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(232, 169, 60, 0.25);
    flex: none;
}
.pub-hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.pub-hero p.lead {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 1.6vw, 20px);
    margin-bottom: 30px;
}
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pub-hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 104px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.pub-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, width 0.3s ease, border-color 0.25s ease;
}
.pub-hero-dot:hover { background: rgba(255, 255, 255, 0.5); }
.pub-hero-dot.is-active { background: var(--gold); border-color: var(--gold); width: 28px; }

/* ---------- Scoreboard: floating stat card that overlaps the hero ---------- */
.pub-scoreboard {
    position: relative;
    z-index: 5;
    margin-top: -44px;
    padding-bottom: 6px;
    scroll-margin-top: 90px;
}
.pub-scoreboard-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-end) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 4px solid var(--gold);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
}
.pub-scoreboard .stat {
    position: relative;
    padding: 14px 10px;
    text-align: center;
}
.pub-scoreboard .stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}
.pub-scoreboard .stat-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--gold);
    font-size: 16px;
}
.pub-scoreboard .stat .num {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3vw, 34px);
    color: #fff;
    line-height: 1;
}
.pub-scoreboard .stat .label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
}

/* ---------- Content sections (admin-editable) ---------- */
.pub-section {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 8vw, 100px) 0;
}
.pub-section.alt { background: #fff; }
.pub-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -220px;
    right: -180px;
    background: radial-gradient(circle, var(--brand-tint) 0, transparent 68%);
    pointer-events: none;
}
.pub-section.alt::before { right: auto; left: -200px; }
.pub-section > .container { position: relative; z-index: 1; }

.pub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand);
    font-size: 14px;
    margin-bottom: 10px;
}
.pub-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}
.pub-section-head { margin-bottom: 44px; }
.pub-section-head .pub-eyebrow::after {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}
.pub-section-head h2 { margin-bottom: 0; }

.pub-section h2 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.05;
    margin-bottom: 22px;
    color: var(--ink);
}
.pub-section h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--brand));
    margin-top: 14px;
}
.text-center h2::after { margin-left: auto; margin-right: auto; }

.pub-section .body-copy {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
}
.body-copy p:last-child { margin-bottom: 0; }
.body-copy ul { list-style: none; padding-left: 0; margin: 0; }
.body-copy ul li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.body-copy ul li::before {
    font-family: "bootstrap-icons" !important;
    content: "\f26a";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--brand);
    font-size: 20px;
    line-height: 1.4;
}
.body-copy li strong { color: var(--brand); }

/* Single-block sections: image with an offset gold frame behind it */
.pub-img-frame { position: relative; }
.pub-img-frame::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: 0;
}
.pub-img-col.dir-left .pub-img-frame::before { inset: 14px 14px -14px -14px; }
.pub-section img.side-img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 300px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

/* Multiple content blocks sharing the same SectionKey render as one row of cards that
   drifts sideways on its own (see the script in Index.cshtml) - no scrollbar. The negative
   margins/padding leave room for hover lift and shadows that overflow:auto would clip. */
.pub-card-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 14px 6px 36px;
    margin: -14px -6px -36px;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* legacy Edge/IE */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 93%, transparent 100%);
}
.pub-card-scroll::-webkit-scrollbar { display: none; }
.pub-card {
    position: relative;
    flex: 0 0 min(300px, 82vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.pub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 3;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.pub-card-img { overflow: hidden; }
.pub-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pub-card:hover img { transform: scale(1.07); }
.pub-card-num {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    padding: 3px 12px;
    border-radius: 999px;
}
.pub-card.no-img .pub-card-num {
    position: static;
    align-self: flex-start;
    margin: 24px 0 0 24px;
    color: var(--brand);
    background: var(--brand-tint);
}
.pub-card h4 {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 21px;
    line-height: 1.15;
    padding: 22px 24px 0;
    margin: 0 0 12px;
}
.pub-card.no-img h4 { padding-top: 12px; }
.pub-card .body-copy {
    padding: 0 24px 26px;
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---------- Academy picker cards (SelectAcademy) ---------- */
.pathway-stage {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.pathway-stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.pub-academy-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}
.pub-academy-initial {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: var(--brand);
    color: var(--gold);
    font-family: 'Anton', sans-serif;
    font-size: 28px;
}

/* ---------- Player of the Month ---------- */
.topper-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-end) 100%);
    color: #fff;
    border-radius: 28px;
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(232, 169, 60, 0.45);
    box-shadow: var(--shadow-lift);
}
.topper-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(232, 169, 60, 0.22) 0%, transparent 45%),
        var(--stripes);
    pointer-events: none;
}
.topper-card > .row { position: relative; z-index: 1; }
.topper-card .pub-hero-eyebrow { margin-bottom: 10px; }
.topper-card .topper-name {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
}
.topper-card .topper-score {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 22px;
}

.topper-photo-wrap {
    position: relative;
    display: inline-block;
}
.topper-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 7px rgba(232, 169, 60, 0.22), 0 14px 30px rgba(0,0,0,0.45);
}
.topper-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    color: var(--gold);
}
.topper-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 3px solid var(--brand);
    z-index: 2;
}
.topper-sparkle {
    position: absolute;
    z-index: 1;
    color: var(--gold);
    font-size: 18px;
    opacity: 0.7;
    pointer-events: none;
}
.topper-sparkle.s1 { top: 18px; left: 20%; font-size: 22px; }
.topper-sparkle.s2 { top: 60px; right: 8%; font-size: 14px; }
.topper-sparkle.s3 { bottom: 24px; left: 6%; font-size: 16px; }

.topper-score-track {
    width: 100%;
    max-width: 380px;
    height: 10px;
    background: rgba(255,255,255,0.16);
    border-radius: 5px;
    overflow: hidden;
}
.topper-score-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #fff6d8);
    border-radius: 5px;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Closing call-to-action band ---------- */
.pub-cta-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: clamp(34px, 4.5vw, 52px) 0;
    background:
        radial-gradient(circle at 88% 110%, rgba(232, 169, 60, 0.3), transparent 45%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-end) 100%);
}
.pub-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--stripes);
    pointer-events: none;
}
/* Centre-circle line, like the middle of a pitch */
.pub-cta-band::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 520px;
    height: 520px;
    max-width: 90vw;
    max-height: 90vw;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.pub-cta-band .container { position: relative; z-index: 1; }
.pub-cta-band .pub-eyebrow { color: var(--gold); }
.pub-cta-band .pub-eyebrow::after {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}
.pub-cta-band h2 {
    font-size: clamp(30px, 4.2vw, 50px);
    margin-bottom: 8px;
}
.pub-cta-band p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.pub-footer {
    background-color: var(--brand);
    background-color: color-mix(in srgb, var(--brand) 88%, #000);
    background-image: var(--stripes);
    color: rgba(255,255,255,0.72);
    padding: 56px 0 24px;
    font-size: 14.5px;
    border-top: 4px solid var(--gold);
}
.pub-footer .pub-brand-foot {
    color: #fff;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-size: 22px;
    margin-bottom: 14px;
}
.pub-foot-logo { height: 36px; width: auto; }
.pub-foot-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 14px;
}
.pub-foot-links li { margin-bottom: 10px; }
.pub-footer .bi { color: var(--gold); margin-right: 6px; }
.pub-footer a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.2s ease; }
.pub-footer a:hover { color: var(--gold); }
.pub-footer hr { border-color: rgba(255,255,255,0.15); margin: 28px 0 18px; opacity: 1; }

/* ---------- Back to top ---------- */
.pub-backtop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--ink);
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.pub-backtop.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.pub-backtop:hover { background: #fff; }

/* ---------- Forms (Register) ---------- */
.pub-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
}
.pub-body .form-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.pub-body .form-control,
.pub-body .form-select {
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    border-color: #d3dad0;
}
.pub-body .form-control:focus,
.pub-body .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(30, 122, 70, 0.18);
}

/* ---------- Thank-you steps (RegisterSuccess) ---------- */
.pub-success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--gold);
    font-size: 40px;
    box-shadow: 0 0 0 8px rgba(232, 169, 60, 0.25), var(--shadow-soft);
}
.pub-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    height: 100%;
    box-shadow: var(--shadow-soft);
}
.pub-step .bi { font-size: 26px; color: var(--brand); }
.pub-step b { display: block; margin: 8px 0 2px; }
.pub-step span { font-size: 14px; color: var(--muted); }

/* ---------- Empty-state invitations (shown to admins previewing an unfinished site) ---------- */
.pub-empty-hint {
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    color: #555;
    background: #fff;
}

@media (max-width: 767px) {
    .pub-hero { padding-bottom: 70px; }
    .pub-hero-content { padding-top: 40px; padding-bottom: 16px; }
    .pub-hero-dots { bottom: 84px; right: 16px; }
    .pub-scoreboard { margin-top: -34px; }
    .pub-scoreboard .stat + .stat::before { display: none; }
    .pub-scoreboard .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.18); }
    .pub-scoreboard .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.18); }
    .pub-scoreboard .stat { padding: 12px 6px; }
    .pub-img-frame::before,
    .pub-img-col.dir-left .pub-img-frame::before { inset: 10px -8px -10px 8px; }
    .topper-card { padding: 32px 20px; text-align: center; }
    .topper-score-track { margin: 0 auto; }
}

/* ===========================================================
   Motion - one deliberate pass, respects prefers-reduced-motion.
   Entrance animations use fill-mode "backwards" (not "forwards") so that once they finish the
   element returns to its normal styles - otherwise the held final keyframe would override the
   :hover transforms below.
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {

    html { scroll-behavior: smooth; }

    /* Hero: staggered entrance on load */
    .pub-hero .pub-hero-eyebrow, .pub-hero h1, .pub-hero p.lead, .pub-hero-actions {
        animation: heroRise 0.8s ease backwards;
    }
    .pub-hero .pub-hero-eyebrow { animation-delay: 0.05s; }
    .pub-hero h1 { animation-delay: 0.18s; }
    .pub-hero p.lead { animation-delay: 0.32s; }
    .pub-hero-actions { animation-delay: 0.46s; }

    @keyframes heroRise {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* The primary hero button breathes a soft glow to draw the eye */
    .pub-hero .pub-cta-gold { animation: ctaGlow 2.8s ease-in-out 1.6s infinite; }
    @keyframes ctaGlow {
        0%, 100% { box-shadow: 0 10px 26px rgba(232, 169, 60, 0.38); }
        50%      { box-shadow: 0 10px 38px rgba(232, 169, 60, 0.72); }
    }

    /* Hero slides: slow Ken Burns zoom while active - alternating slides pan the opposite
       direction as they zoom, so consecutive slides don't feel identical. */
    .pub-hero-slide {
        transform: scale(1);
        transition: opacity 1.1s ease, transform 6.5s ease;
    }
    .pub-hero-slide.is-active {
        transform: scale(1.08);
    }
    .pub-hero-slide.pan-b {
        transform-origin: 75% 40%;
    }
    .pub-hero-slide.pan-b.is-active {
        transform: scale(1.08) translateX(-1.5%);
    }

    /* Scoreboard stats: staggered rise, each number settling in slightly after the last */
    .pub-scoreboard .stat {
        opacity: 0;
    }
    .pub-scoreboard.is-visible .stat {
        opacity: 1;
        animation: statRise 0.6s ease backwards;
    }
    .pub-scoreboard.is-visible .stat:nth-child(1) { animation-delay: 0.05s; }
    .pub-scoreboard.is-visible .stat:nth-child(2) { animation-delay: 0.2s; }
    .pub-scoreboard.is-visible .stat:nth-child(3) { animation-delay: 0.35s; }
    .pub-scoreboard.is-visible .stat:nth-child(4) { animation-delay: 0.5s; }

    @keyframes statRise {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* A brief settle "pop" once a stat's count-up reaches its final number */
    .pub-scoreboard .stat .num.count-done {
        animation: numPop 0.35s ease;
    }
    @keyframes numPop {
        0%   { transform: scale(1); }
        40%  { transform: scale(1.18); }
        100% { transform: scale(1); }
    }

    /* Sections: fade + rise into view on scroll (class + trigger added by JS in _PublicLayout) */
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Single-block content sections: image and text glide in from opposite sides rather
       than just fading as one flat block. Direction matches which side the image sits on. */
    .pub-img-col img {
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .pub-img-col.dir-left img { transform: translateX(-36px); }
    .pub-img-col.dir-right img { transform: translateX(36px); }
    .pub-section.reveal.is-visible .pub-img-col img {
        opacity: 1;
        transform: translateX(0);
    }
    .pub-text-col {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
    }
    .pub-section.reveal.is-visible .pub-text-col {
        opacity: 1;
        transform: translateY(0);
    }

    /* Multi-card sections: cards cascade in one after another instead of appearing at once. */
    .pub-card-scroll .pub-card {
        opacity: 0;
    }
    .pub-card-scroll.is-visible .pub-card {
        opacity: 1;
        animation: cardRise 0.6s ease backwards;
    }
    .pub-card-scroll.is-visible .pub-card:nth-child(1) { animation-delay: 0.05s; }
    .pub-card-scroll.is-visible .pub-card:nth-child(2) { animation-delay: 0.15s; }
    .pub-card-scroll.is-visible .pub-card:nth-child(3) { animation-delay: 0.25s; }
    .pub-card-scroll.is-visible .pub-card:nth-child(4) { animation-delay: 0.35s; }
    .pub-card-scroll.is-visible .pub-card:nth-child(n+5) { animation-delay: 0.45s; }

    @keyframes cardRise {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Cards: lift on hover */
    .pathway-stage, .pub-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .pathway-stage:hover, .pub-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lift);
    }

    .topper-photo-wrap { animation: topperFloat 3.2s ease-in-out infinite; }
    @keyframes topperFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    .topper-sparkle { animation: topperTwinkle 2.4s ease-in-out infinite; }
    .topper-sparkle.s2 { animation-delay: 0.6s; }
    .topper-sparkle.s3 { animation-delay: 1.2s; }
    @keyframes topperTwinkle {
        0%, 100% { opacity: 0.25; transform: scale(0.85); }
        50% { opacity: 1; transform: scale(1.15); }
    }
}
