/* =============================================================================
   PUBLIC SITE — star8892 Class of 1992
   Editorial light theme, independent of the member app's dark/light tokens.
   Everything is scoped under .pub so it cannot leak into the member pages.
   ============================================================================= */
.pub {
    --ink: #10143a;
    --ink-2: #1c2250;
    --paper: #ffffff;
    --sand: #f6f3ec;
    --line: #e3dfd4;
    --muted: #565b7a;
    --gold: #f2b01e;
    --gold-soft: #ffe7a8;
    --violet: #5b4ae8;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

/* The login / register pages use the app's --a88-* tokens; inside the public layout
   they always take the light editorial palette, whatever theme the app is set to. */
.pub {
    --a88-bg: var(--sand);
    --a88-surface: #ffffff;
    --a88-surface-2: #efeadf;
    --a88-surface-alt: #f1ede3;
    --a88-line: var(--line);
    --a88-accent: var(--violet);
    --a88-accent-dark: #4636c9;
    --a88-accent-rgb: 91, 74, 232;
    --a88-text: var(--ink);
    --a88-text-muted: var(--muted);
    --a88-gold: var(--gold);
    --a88-gold-text: #8a5f00;
    --a88-on-gold: var(--ink);
    --a88-navy: var(--ink);
    --a88-cream: #f1ede3;
    --a88-gray-line: var(--line);
    --a88-star-a: #e0a21a;
    --a88-star-b: rgba(91, 74, 232, .35);
}

body:has(.pub) {
    background: #ffffff;
}

/* Bootstrap sets :root { scroll-behavior: smooth }, which animates long anchor jumps
   (footer -> #about) and lets them drift. Jump instantly on the public site, and stop
   anchor targets just below the sticky header. */
html:has(.pub) {
    scroll-behavior: auto;
}

.pub section[id] {
    scroll-margin-top: 84px;
}

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

:where(.pub) a {
    color: inherit;
    text-decoration: none;
}

:where(.pub) img {
    display: block;
    max-width: 100%;
}

:where(.pub) :is(h1, h2, h3) {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.12;
    margin: 0;
    color: inherit;
}

:where(.pub) h4 {
    font-family: var(--sans);
    margin: 0;
}

:where(.pub) p {
    margin: 0 0 1rem;
}

.pub :focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
}
/* Blazor's FocusOnNavigate focuses the page <h1> (tabindex="-1") for screen readers.
   It is not interactive, so it should not draw a ring. */
.pub [tabindex="-1"]:focus,
.pub [tabindex="-1"]:focus-visible {
    outline: none;
}

.pub-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons & links ─────────────────────────────────────────────────────── */
.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .15s, color .15s;
}

    .pub-btn:hover {
        transform: translateY(-1px);
    }

.pub .pub-btn--gold {
    background: var(--gold);
    color: var(--ink);
}

    .pub .pub-btn--gold:hover {
        background: #ffc43d;
        color: var(--ink);
    }

.pub .pub-btn--ghost {
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

    .pub .pub-btn--ghost:hover {
        background: #fff;
        color: var(--ink);
    }

.pub-btn--sm {
    padding: .5rem 1.2rem;
    font-size: .92rem;
}

.pub .pub-link {
    font-weight: 700;
    color: var(--violet);
}

    .pub .pub-link:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* ── Utility bar + header ────────────────────────────────────────────────── */
.pub-util {
    background: var(--ink);
    color: #c9cdf0;
    font-size: .82rem;
}

.pub-util-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.pub-util nav {
    display: flex;
    gap: 1.4rem;
}

.pub-util a:hover {
    color: #fff;
    text-decoration: underline;
}

.pub-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.pub-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 72px;
    position: relative;
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.pub-brand-logo {
    height: 48px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.pub-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .pub-brand-text strong {
        font-family: var(--serif);
        font-size: 1.25rem;
    }

    .pub-brand-text small {
        font-size: .72rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--muted);
    }

.pub-brand--light .pub-brand-text small {
    color: #aab0dd;
}

.pub-nav {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
    font-weight: 600;
    font-size: .96rem;
}

    .pub-nav a {
        padding: .4rem 0;
        border-bottom: 2px solid transparent;
    }

        .pub-nav a:hover, .pub-nav a.active {
            border-color: var(--gold);
        }

.pub-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.pub-icon-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
}

    .pub-icon-btn:hover {
        border-color: var(--ink);
        background: var(--sand);
    }

    .pub-icon-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.pub-nav-toggle, .pub-burger, .pub-nav-extra {
    display: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.pub-hero {
    position: relative;
    min-height: min(78vh, 680px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

    .pub-hero > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 100% 50%;
    }

.pub-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,12,40,.9) 0%, rgba(10,12,40,.62) 45%, rgba(10,12,40,.1) 100%), linear-gradient(0deg, rgba(10,12,40,.5), transparent 40%);
}

.pub-hero-inner {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 6.5rem;
}

.pub-eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 700;
    font-size: .8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.pub-hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    max-width: 14em;
    text-wrap: balance;
}

.pub .pub-lede {
    font-size: 1.2rem;
    max-width: 34em;
    margin: 1.3rem 0 2rem;
    color: #e6e8ff;
}

.pub-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* ── Quick links ─────────────────────────────────────────────────────────── */
.pub-quick {
    margin-top: -3.2rem;
    position: relative;
    z-index: 2;
}

.pub-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pub-quick-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    box-shadow: 0 14px 34px rgba(16,20,58,.1);
    transition: transform .15s, border-color .15s;
}

    .pub-quick-card:hover {
        transform: translateY(-3px);
        border-color: var(--gold);
    }

    .pub-quick-card svg {
        width: 28px;
        height: 28px;
        fill: none;
        stroke: var(--violet);
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        margin-bottom: .5rem;
    }

    .pub-quick-card strong {
        font-size: 1.05rem;
    }

    .pub-quick-card span {
        color: var(--muted);
        font-size: .92rem;
    }

/* ── Sections ────────────────────────────────────────────────────────────── */
.pub-section {
    padding: 5.5rem 0;
}

.pub-section--sand {
    background: var(--sand);
}

.pub-section--ink {
    background: var(--ink);
    color: #fff;
}

.pub-section h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

.pub-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    font-size: .78rem;
    color: var(--violet);
    margin-bottom: .8rem;
}

.pub-kicker--gold {
    color: var(--gold);
}

.pub-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .pub-head h2 {
        margin-bottom: 0;
    }

.pub-about {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: start;
}

    .pub-about p:not(.pub-kicker) {
        font-size: 1.08rem;
        color: #2b3060;
        max-width: 38em;
    }

    .pub-about h3 {
        font-size: 1.4rem;
        margin-bottom: .6rem;
    }

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

.pub-stat {
    background: var(--sand);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    border-left: 5px solid var(--gold);
}

    .pub-stat b {
        font-family: var(--serif);
        font-size: 2.8rem;
        line-height: 1;
        min-width: 4.2ch;
    }

    .pub-stat span {
        color: var(--muted);
    }

/* Split feature */
.pub-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pub-split-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0,0,0,.35);
}

.pub-split-copy p {
    color: #d7dbfa;
    font-size: 1.08rem;
}

.pub .pub-meta {
    color: var(--gold);
    font-size: 1rem;
}

.pub-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.6rem;
}

/* Cards */
.pub-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.pub-card, .pub-story {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

    .pub-card h3, .pub-story h3 {
        font-size: 1.35rem;
    }

    .pub-card p, .pub-story p {
        color: var(--muted);
        margin: 0;
    }

    .pub-card .pub-link {
        margin-top: auto;
        padding-top: .6rem;
    }

.pub-chip {
    align-self: flex-start;
    background: var(--gold-soft);
    color: #5a4300;
    font-weight: 700;
    font-size: .75rem;
    padding: .25rem .7rem;
    border-radius: 999px;
}

.pub-story {
    padding: 0 0 1.6rem;
    overflow: hidden;
}

    .pub-story > :not(.pub-story-art) {
        margin-left: 1.6rem;
        margin-right: 1.6rem;
    }

.pub-story-art {
    height: 150px;
    margin-bottom: .6rem;
    background: radial-gradient(circle at 20% 30%, var(--gold) 0 2px, transparent 3px), radial-gradient(circle at 75% 60%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px), linear-gradient(135deg, var(--ink), var(--ink-2));
}

.pub-story-art--b {
    background-color: #1d1b58;
    background-image: radial-gradient(circle at 60% 35%, var(--gold) 0 2px, transparent 3px), linear-gradient(135deg, #2a1f78, #5b4ae8);
}

.pub-story-art--c {
    background-image: radial-gradient(circle at 35% 65%, var(--gold) 0 2px, transparent 3px), linear-gradient(135deg, #0f3a52, #10143a);
}

/* Trio */
.pub-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2rem;
}

.pub .pub-trio-card {
    border-radius: 20px;
    padding: 2rem;
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-height: 250px;
    transition: transform .15s;
}

    .pub .pub-trio-card:nth-child(2) {
        background: var(--violet);
    }

    .pub .pub-trio-card:nth-child(3) {
        background: var(--gold);
        color: var(--ink);
    }

.pub-trio-card:hover {
    transform: translateY(-4px);
}

.pub-trio-card h3 {
    font-size: 1.8rem;
}

.pub-trio-card p {
    margin: 0;
    opacity: .9;
}

.pub .pub-trio-card .pub-link {
    margin-top: auto;
    color: inherit;
}

/* Gallery */
.pub-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

    .pub-gallery figure {
        margin: 0;
    }

    .pub-gallery img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 20px;
    }

    .pub-gallery figcaption {
        font-size: .9rem;
        color: var(--muted);
        margin-top: .6rem;
    }

/* FAQ */
.pub-faq {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
}

    .pub-faq details {
        border-bottom: 1px solid var(--line);
        padding: 1.1rem 0;
    }

    .pub-faq summary {
        cursor: pointer;
        font-weight: 700;
        font-size: 1.1rem;
        list-style: none;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

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

        .pub-faq summary::after {
            content: "+";
            font-size: 1.5rem;
            line-height: 1;
            color: var(--violet);
        }

    .pub-faq details[open] summary::after {
        content: "–";
    }

    .pub-faq details p {
        margin: .7rem 0 0;
        color: var(--muted);
    }

/* Inner-page banner */
.pub-pagehero {
    position: relative;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

    .pub-pagehero > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .pub-pagehero > img[src*="-banner"] {
            object-fit: contain;
        }

@media (max-width: 760px) {
    .pub-pagehero > img[src*="-banner"] {
        object-fit: cover;
        object-position: 88% center !important;
    }

    .pub-pagehero > img {
        object-position: 80% 24% !important;
    }

    .pub-hero > img {
        object-position: 82% 50%;
    }

    .pub-pagehero > img[src*="flags-wide"] {
        object-position: 90% 82% !important;
    }
}

.pub-pagehero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,12,40,.93) 0%, rgba(10,12,40,.68) 55%, rgba(10,12,40,.4) 100%);
}

.pub-pagehero-inner {
    position: relative;
    padding-top: 3.2rem;
    padding-bottom: 3.8rem;
}

.pub-pagehero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    max-width: 18em;
    text-wrap: balance;
}

.pub .pub-pagehero .pub-lede {
    margin: 1rem 0 0;
}

.pub-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .85rem;
    color: #c9cdf0;
    margin-bottom: 1.4rem;
}

    .pub-crumbs a:hover {
        color: #fff;
        text-decoration: underline;
    }

/* Reading column, facts bar, timeline */
.pub-prose {
    max-width: 46rem;
    margin-bottom: 2.4rem;
}

    .pub-prose p:not(.pub-kicker) {
        font-size: 1.1rem;
        color: #2b3060;
    }

.pub-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.pub-fact {
    background: var(--sand);
    border-left: 5px solid var(--gold);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
}

    .pub-fact small {
        display: block;
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: .72rem;
        font-weight: 700;
        color: var(--muted);
    }

    .pub-fact strong {
        font-family: var(--serif);
        font-size: 1.35rem;
    }

.pub-timeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    border-left: 3px solid var(--gold);
}

    .pub-timeline li {
        position: relative;
        padding: 0 0 1.6rem 1.7rem;
    }

        .pub-timeline li::before {
            content: "";
            position: absolute;
            left: -10px;
            top: .5rem;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: #fff;
            border: 3px solid var(--gold);
        }

    .pub-timeline b {
        display: block;
        font-family: var(--serif);
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .pub-timeline span {
        color: var(--muted);
    }

/* Get involved */
.pub-feature {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    padding: 2.6rem 0;
    border-top: 1px solid var(--line);
}

    .pub-feature:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .pub-feature p:not(.pub-kicker) {
        color: var(--muted);
        font-size: 1.08rem;
    }

.pub-checks {
    list-style: none;
    margin: 0;
    padding: 1.6rem 1.8rem;
    background: var(--sand);
    border-radius: 18px;
    display: grid;
    gap: .9rem;
}

    .pub-checks li {
        position: relative;
        padding-left: 2rem;
        font-weight: 600;
    }

        .pub-checks li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            width: 1.4rem;
            height: 1.4rem;
            border-radius: 50%;
            background: var(--gold);
            color: var(--ink);
            font-size: .85rem;
            display: grid;
            place-items: center;
        }

/* Closing call-to-action band */
.pub-cta {
    padding: 4rem 0;
}

.pub-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

    .pub-cta-inner h2 {
        margin-bottom: .4rem;
    }

    .pub-cta-inner p {
        margin: 0;
    }

.pub-section--ink .pub-cta-inner p {
    color: #d7dbfa;
}

/* A lone button beside a text block (Stories "Share your story", Events "Planning a meet-up?"):
   centred against the text and pushed to the right edge, like the closing banner below it. */
.pub-cta-row--start {
    margin-top: 0;
    align-self: center;
    justify-content: flex-end;
}

/* Small variants */
.pub .pub-chip--past {
    background: #e7e8f3;
    color: var(--muted);
}

.pub-gallery--stack {
    grid-template-columns: 1fr;
}

.pub-card address {
    font-style: normal;
    color: var(--muted);
}

/* Footer */
.pub-footer {
    background: #0a0d2a;
    color: #b9bfe8;
    padding-top: 3.5rem;
    font-size: .95rem;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.pub-footer h4 {
    color: #fff;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pub-footer a {
    display: block;
    padding: .2rem 0;
}

    .pub-footer a:hover {
        color: #fff;
        text-decoration: underline;
    }

.pub-footer .pub-brand {
    display: inline-flex;
    color: #fff;
    padding: 0;
}

.pub .pub-footer-note {
    margin-top: 1.2rem;
    max-width: 30em;
    font-size: .88rem;
}

.pub-footer-base {
    margin-top: 3rem;
    padding-top: 1.4rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .85rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .pub-facts {
        grid-template-columns: 1fr;
    }

    .pub-feature {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .pub-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .pub-about, .pub-split, .pub-faq {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .pub-cta-row--start {
        align-self: auto;
        justify-content: flex-start;
    }

    .pub-cards, .pub-trio {
        grid-template-columns: 1fr;
    }

    .pub-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pub-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .pub-nav-extra {
        display: block;
    }

    .pub .pub-nav-extra--cta {
        margin-top: .9rem;
        text-align: center;
        background: var(--gold);
        color: var(--ink);
        border-radius: 999px;
        border-bottom: 0;
        font-weight: 700;
    }

    .pub-nav {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .pub-util nav {
        display: none;
    }

    .pub-header-inner {
        gap: 1rem;
    }

    .pub-actions {
        margin-left: auto;
    }

    .pub-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0 10px;
        cursor: pointer;
        order: 3;
    }

        .pub-burger span {
            height: 2px;
            background: var(--ink);
            border-radius: 2px;
        }

    .pub-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: .5rem 24px 1rem;
        box-shadow: 0 18px 30px rgba(16,20,58,.12);
    }

        .pub-nav a {
            padding: .8rem 0;
            border-bottom: 1px solid var(--line);
        }

    .pub-nav-toggle:checked ~ .pub-nav {
        display: flex;
    }

    .pub-section {
        padding: 3.8rem 0;
    }

    .pub-hero-inner {
        padding-bottom: 5.5rem;
    }

    .pub-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .pub-pagehero-inner {
        padding-top: 2.2rem;
        padding-bottom: 2.6rem;
    }

    .pub-crumbs {
        margin-bottom: 1rem;
    }

    .pub-cta {
        padding: 3rem 0;
    }

    .pub-cta-row .pub-btn {
        flex: 1 1 100%;
    }

    .pub-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pub-header-inner {
        min-height: 64px;
    }

    .pub-brand-logo {
        height: 42px;
        width: auto;
    }

    .pub-brand-text strong {
        font-size: 1.1rem;
    }

    .pub-brand-text small {
        font-size: .65rem;
    }

    .pub-hero {
        min-height: 0;
    }

    .pub-hero-inner {
        padding-top: 3.2rem;
        padding-bottom: 5.2rem;
    }

    .pub-hero h1 {
        font-size: clamp(2rem, 9.2vw, 2.4rem);
    }

    .pub .pub-lede {
        font-size: 1.05rem;
    }

    .pub-hero-cta .pub-btn, .pub-cta-row .pub-btn {
        flex: 1 1 100%;
    }

    .pub-section {
        padding: 3.2rem 0;
    }

    .pub-stat {
        flex-direction: column;
        gap: .2rem;
    }

        .pub-stat b {
            font-size: 2.3rem;
        }

    .pub-trio-card {
        min-height: 0;
    }

    .pub-footer a {
        padding: .55rem 0;
    }

    .pub-footer-base {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    .pub-quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: .7rem;
    }

    .pub-quick-card {
        padding: 1rem;
    }

        .pub-quick-card strong {
            font-size: .98rem;
        }

        .pub-quick-card span {
            font-size: .84rem;
        }

    .pub-story-art {
        height: 110px;
    }

    .pub-footer-grid {
        grid-template-columns: 1fr;
    }

    .pub-actions .pub-btn {
        display: none;
    }
}

/* Very small phones (320-400px): tighten the header so logo + name + login icon + menu button fit on one row */
@media (max-width: 400px) {
    .pub-header-inner {
        gap: .5rem;
    }

    .pub-brand {
        gap: .5rem;
        min-width: 0;
    }

    .pub-brand-logo {
        height: 38px;
        width: auto;
    }

    .pub-brand-text {
        min-width: 0;
    }

        .pub-brand-text strong {
            font-size: 1rem;
        }

        .pub-brand-text small {
            font-size: .6rem;
            letter-spacing: .08em;
        }

    .pub-actions {
        gap: .4rem;
    }

    .pub-icon-btn, .pub-burger {
        width: 40px;
        height: 40px;
    }

    .pub-burger {
        padding: 0 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub * {
        transition: none !important;
    }
}

/* ── Batch milestones (Stories) ─────────────────────────────────────────── */
.pub-milestones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.pub-milestone-photo {
    margin: 0;
}

    .pub-milestone-photo img {
        width: 100%;
        aspect-ratio: 8 / 7;
        object-fit: cover;
        border-radius: 22px;
        box-shadow: 0 24px 50px rgba(16,20,58,.22);
    }

    .pub-milestone-photo figcaption {
        margin-top: .8rem;
        font-size: .92rem;
        color: var(--muted);
        text-align: center;
    }

.pub-timeline {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    border-left: 3px solid var(--gold);
}

    .pub-timeline li {
        display: flex;
        align-items: baseline;
        gap: 1.1rem;
        padding: .7rem 0 .7rem 1.3rem;
        position: relative;
    }

        .pub-timeline li::before {
            content: "";
            position: absolute;
            left: -9px;
            top: 1.15rem;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: var(--gold);
            border: 3px solid var(--sand);
        }

    .pub-timeline strong {
        font-size: 1.5rem;
        min-width: 3.4rem;
        color: var(--ink);
    }

    .pub-timeline span {
        font-size: 1.15rem;
        color: var(--muted);
    }

.pub-milestone-video {
    margin-top: 4rem;
    max-width: 920px;
    text-align: center;
}

.pub-video-head h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 1.4rem;
}

.pub-video-frame {
    position: relative;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--gold), #ffd36b 55%, var(--gold));
    box-shadow: 0 28px 60px rgba(16,20,58,.28);
}

    .pub-video-frame video {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 19px;
        background: var(--ink);
    }

.pub-video-caption {
    margin: 1rem 0 0;
    font-size: .92rem;
    color: var(--muted);
}

@media (max-width: 600px) {
    .pub-video-frame {
        padding: 6px;
        border-radius: 20px;
    }

        .pub-video-frame video {
            border-radius: 14px;
        }
}

@media (max-width: 900px) {
    .pub-milestones {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Auth screens (AuthLayout): login, register, forgot password. Only the screen, no bars. ── */

.pub-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--a88-bg);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pub-auth-top {
    padding: 1.25rem 0 0;
}

.pub-auth-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .pub-auth-main .a88-auth-shell {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

/* ── Announcements (/announcements) ── */
/* Featured notice: the newest / pinned one, on an ink panel with the same "night sky" dots as the story art. */
.pub-feat-section {
    padding-bottom: 3.5rem;
}

.pub-feat {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 22px;
    padding: 2.6rem 2.8rem 2.8rem;
    border-left: 6px solid var(--gold);
    background: radial-gradient(circle at 12% 22%, var(--gold) 0 2px, transparent 3px), radial-gradient(circle at 62% 14%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px), radial-gradient(circle at 88% 70%, rgba(255,255,255,.55) 0 1.5px, transparent 2.5px), radial-gradient(circle at 40% 88%, var(--gold) 0 1.5px, transparent 2.5px), radial-gradient(120% 140% at 100% 0%, rgba(91,74,232,.55), transparent 55%), linear-gradient(135deg, var(--ink), var(--ink-2));
    box-shadow: 0 18px 40px -22px rgba(16,20,58,.55);
}

.pub-feat--urgent {
    border-left-color: #e0594a;
}

.pub-feat-star {
    position: absolute;
    right: 1.6rem;
    top: .2rem;
    font-size: 8.5rem;
    line-height: 1;
    color: var(--gold);
    opacity: .14;
    pointer-events: none;
    user-select: none;
}

.pub-feat-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.pub-feat-date {
    color: #c9cdf0;
    font-size: .9rem;
    font-weight: 600;
}

.pub .pub-feat h2 {
    position: relative;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    max-width: 22em;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.pub-feat .pub-ann-body {
    position: relative;
    max-width: 44rem;
    margin: 0;
    font-size: 1.12rem;
    color: #e6e8ff;
}

.pub-feat:target,
.pub-ann:target .pub-ann-card {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* Priority tag (shared by the featured panel and the list) */
.pub-ann-tag {
    align-self: flex-start;
    display: inline-block;
    background: #ece8da;
    color: #4a4630;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .28rem .8rem;
    border-radius: 999px;
}

.pub-ann-tag--important {
    background: var(--gold-soft);
    color: #5a4300;
}

.pub-ann-tag--urgent {
    background: #c0392b;
    color: #fff;
}

.pub-feat .pub-ann-tag {
    background: var(--gold);
    color: var(--ink);
}

.pub-feat .pub-ann-tag--urgent {
    background: #e0594a;
    color: #fff;
}

/* Earlier notices: a date block, then the card */
.pub-ann-section .pub-head {
    margin-bottom: 2rem;
}

.pub-ann-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 56rem;
}

.pub-ann {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.4rem;
    align-items: start;
}

.pub-ann-when {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: .9rem;
    line-height: 1;
    text-align: center;
}

    .pub-ann-when strong {
        font-family: var(--serif);
        font-size: 2.3rem;
        font-weight: 700;
        color: var(--ink);
    }

    .pub-ann-when span {
        margin-top: .35rem;
        font-size: .78rem;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--violet);
    }

    .pub-ann-when small {
        margin-top: .3rem;
        font-size: .76rem;
        color: var(--muted);
    }

.pub-ann-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: transform .15s, box-shadow .15s;
}

    .pub-ann-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px -20px rgba(16,20,58,.5);
    }

    .pub-ann-card h3 {
        font-size: 1.4rem;
    }

.pub-ann--important .pub-ann-card {
    border-left-color: var(--gold);
}

.pub-ann--urgent .pub-ann-card {
    border-left-color: #c0392b;
}

.pub-ann--urgent .pub-ann-when strong {
    color: #c0392b;
}

.pub-ann-body {
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--muted);
}

.pub-ann-empty {
    color: var(--muted);
}

/* Nothing to show */
.pub-ann-none {
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
    background: var(--sand);
    border: 1px dashed #d9d3c2;
    border-radius: 22px;
    padding: 3rem 2rem;
}

    .pub-ann-none h2 {
        font-size: 1.8rem;
        margin-bottom: .6rem;
    }

    .pub-ann-none p {
        color: var(--muted);
    }

.pub-ann-none-star {
    display: block;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: .6rem;
}

@media (max-width: 640px) {
    .pub-feat {
        padding: 1.8rem 1.4rem 2rem;
        border-radius: 18px;
    }

    .pub-feat-star {
        font-size: 5.5rem;
        right: .8rem;
    }

    .pub-ann {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    .pub-ann-when {
        flex-direction: row;
        align-items: baseline;
        gap: .45rem;
        padding-top: 0;
    }

        .pub-ann-when strong {
            font-size: 1.5rem;
        }

        .pub-ann-when span, .pub-ann-when small {
            margin-top: 0;
        }

    .pub-ann-card {
        padding: 1.2rem 1.2rem 1.3rem;
    }
}

/* ── Announcement notice strip (under the header of every public page) ── */
.pub-notice {
    background: var(--gold-soft);
    border-bottom: 1px solid #f0d27a;
    color: var(--ink);
    font-size: .92rem;
}

.pub-notice--urgent {
    background: #fde8e5;
    border-bottom-color: #f2b8b1;
}

.pub-notice-inner {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 44px;
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.pub-notice-tag {
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

.pub-notice--urgent .pub-notice-tag {
    background: #c0392b;
}

.pub-notice-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: inherit;
}

    .pub-notice-text strong {
        font-weight: 800;
    }

    .pub-notice-text:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.pub-notice-links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

    .pub-notice-links a {
        color: var(--ink);
    }

        .pub-notice-links a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

@media (max-width: 720px) {
    .pub-notice-read {
        display: none;
    }
}

@media (max-width: 480px) {
    .pub-notice-tag {
        display: none;
    }
}

/* Notice strip polish: a star on the tag and a soft gold sheen, same palette as before. */
.pub-notice {
    background: linear-gradient(90deg, var(--gold-soft), #fff1c9 60%, var(--gold-soft));
}

.pub-notice--urgent {
    background: linear-gradient(90deg, #fde8e5, #fff0ee 60%, #fde8e5);
}

.pub-notice-tag::before {
    content: "\2605";
    color: var(--gold);
    margin-right: .4em;
}

.pub-notice--urgent .pub-notice-tag::before {
    color: #fff;
}

.pub-notice-read {
    color: var(--violet) !important;
}

/* ── Scrolling announcement ticker (right to left, endless) ── */
.pub-notice--normal {
    background: linear-gradient(90deg, var(--gold-soft), #fff1c9 60%, var(--gold-soft));
}

.pub-notice-label {
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .7rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

    .pub-notice-label::before {
        content: "\2605";
        color: var(--gold);
        margin-right: .4em;
    }

.pub-notice--urgent .pub-notice-label {
    background: #c0392b;
}

    .pub-notice--urgent .pub-notice-label::before {
        color: #fff;
    }

.pub-ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.pub-ticker-track {
    display: flex;
    width: max-content;
    animation: pub-ticker-slide var(--ticker-dur, 40s) linear infinite;
    will-change: transform;
}

.pub-ticker:hover .pub-ticker-track,
.pub-ticker:focus-within .pub-ticker-track {
    animation-play-state: paused;
}

.pub-ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding-left: 1.2rem;
}

.pub-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    color: var(--ink);
}

    .pub-ticker-item:hover strong,
    .pub-ticker-item:focus-visible strong {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .pub-ticker-item strong {
        font-weight: 800;
    }

    .pub-ticker-item em {
        font-style: normal;
        font-size: .66rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        padding: .1rem .5rem;
        border-radius: 999px;
        background: var(--gold);
        color: var(--ink);
    }

.pub-ticker-item--urgent em {
    background: #c0392b;
    color: #fff;
}

.pub-ticker-star {
    font-style: normal;
    color: var(--gold);
    margin: 0 1.6rem;
    font-size: .8rem;
}

.pub-notice--urgent .pub-ticker-star {
    color: #c0392b;
}

.pub-notice-all {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
    color: var(--violet);
}

    .pub-notice-all:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

@keyframes pub-ticker-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-ticker {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .pub-ticker-track {
        animation: none;
    }

    .pub-ticker-group:nth-child(2) {
        display: none;
    }
}

@media (max-width: 720px) {
    .pub-notice-all {
        display: none;
    }
}

@media (max-width: 480px) {
    .pub-notice-label {
        display: none;
    }
}
