/* ============================================================================
   GoldOB — "Two Schools, One Gold" design system
   Gold carries everything shared. Red (--marian-red) and blue (--vidyalion-blue)
   appear ONLY as school identifiers, never at competing weight (Art. 12.1).
   ========================================================================== */

:root {
    --gold: #BA7517;
    --gold-deep: #8A5410;
    --gold-light: #E8A93D;
    --gold-wash: #FBF3E3;
    --marian-red: #A32D2D;      /* St. Mary's ONLY */
    --vidyalion-blue: #185FA5;  /* Kegalu ONLY */
    --ink: #1A1512;
    --ink-soft: #4A423C;
    --ink-faint: #857B72;
    --paper: #FDFAF4;
    --paper-warm: #F6EFE2;
    --rule: #E4D9C4;
    --cream: #FAEEDA;
    --card: #fff;               /* surface for cards/panels — flips in portal dark mode */
    --portal-head: 3.75rem;     /* shared height of the portal brand row + top bar */
    --radius: 2px;
    --container: 68rem;
    --shadow-sm: 0 1px 2px rgba(26, 21, 18, .05);
    --shadow: 0 8px 30px rgba(26, 21, 18, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 .6rem;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
p { margin: 0 0 1rem; }
a { color: var(--gold-deep); text-underline-offset: 3px; }

.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: inline-block;
    margin-bottom: .9rem;
}
.eyebrow.on-dark { color: var(--gold-light); }

/* ---- Accessibility ---- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-narrow { max-width: 46rem; }
main { flex: 1 0 auto; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    padding: .8rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-on-dark { background: var(--gold-light); color: var(--ink); }
.btn-on-dark:hover { background: #fff; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ============================================================================
   Header / navigation
   ========================================================================== */
/* Solid parchment bar — its own block above the hero (no overlay). "Smart sticky":
   condenses past 120px, hides on scroll-down, returns on scroll-up. */
.site-header { position: sticky; top: 0; z-index: 200; background: #F7F0E2; color: #2C1618;
    transition: box-shadow .2s ease; }
/* The 3px thirds rule under the whole bar */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: linear-gradient(90deg, #A32D2D 0 33.333%, #BA7517 33.333% 66.666%, #185FA5 66.666% 100%); }

/* Shared brand lockup (also used in the footer and portal sidebar) */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.botg-shield { display: block; filter: drop-shadow(0 2px 5px rgba(26,21,18,.2)); }
.brand-mark { width: 34px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.12rem; color: #2C1618; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #8A570F; margin-top: .12rem; white-space: nowrap; }
.brand-on-dark .brand-name { color: #fff; }
.brand-on-dark .brand-sub { color: var(--gold-light); }

/* thin divider between Contact and Log in */
.nav-divider { width: 1px; height: 18px; background: rgba(44,22,24,.16); flex-shrink: 0; align-self: center; margin: 0 -.3rem; }

/* Log in + Join now, to the right of the links (single-tier nav) */
.nav-cta { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.nav-login { display: inline-flex; align-items: center; gap: .4rem; font-size: 13px; font-weight: 500; white-space: nowrap;
    text-decoration: none; color: rgba(44,22,24,.68); }
.nav-login:hover { color: #2C1618; }

/* Join now — red for contrast on cream (gold is reserved for the underline + caption) */
.btn-join { background: #A32D2D; color: #F7F0E2; border-color: transparent; }
.btn-join:hover { background: #872525; color: #F7F0E2; }

/* --- Tier 2: main nav --- */
.nav-inner { display: flex; align-items: center; gap: 1.15rem; height: 64px; }
.nav-inner .brand { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.nav-links li { flex-shrink: 0; }
.nav-links a { position: relative; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
    padding-bottom: 5px; color: rgba(44,22,24,.68); }
.nav-links a:hover { color: #2C1618; }
.nav-links a[aria-current="page"] { color: #2C1618; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #BA7517;
    transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-join { flex-shrink: 0; white-space: nowrap; font-size: 13px !important; padding: .5rem 1.15rem !important; }
.nav-toggle { display: none; background: none; border: 0; color: #2C1618; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: .1rem .3rem; flex-shrink: 0; }
.nav-drawer { display: none; }

/* Always-visible sticky bar. It never changes height and never hides, so it can
   never reflow the page (no jump/shake) and a scrolled reader always has the nav.
   A soft shadow appears once it lifts off the very top. */
.site-header.floating { box-shadow: 0 2px 12px rgba(26,21,18,.1); }

/* --- Mobile (≤ 900px): single bar + drawer --- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-divider { display: none; }
    .nav-cta .nav-login { display: none; }   /* Log in moves into the drawer */
    .nav-cta { gap: .6rem; }
    .nav-join { font-size: 12.5px !important; padding: .45rem .9rem !important; }
    .nav-toggle { display: inline-flex; }
    .nav-inner { height: 56px; gap: .75rem; }

    .site-header .main-nav { position: relative; }
    .nav-drawer { display: block; position: absolute; top: 100%; left: 0; right: 0;
        background: #F7F0E2; border-bottom: 0.5px solid rgba(44,22,24,.1); box-shadow: 0 12px 26px rgba(26,21,18,.14);
        max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease; }
    .nav-drawer .container { padding-block: 1rem 1.3rem; }
    .site-header.drawer-open .nav-drawer { max-height: 82vh; visibility: visible; }
    .nav-drawer .lang-pill { margin-bottom: 1rem; }
    .drawer-links { list-style: none; margin: 0; padding: 0; }
    .drawer-links a { display: block; padding: .75rem 0; font-size: 1rem; color: #2C1618; text-decoration: none; border-top: 1px solid rgba(44,22,24,.1); }
    .drawer-links a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
    .drawer-foot { margin-top: 1rem; }
    .drawer-foot .nav-login { font-size: .95rem; color: #2C1618; }
}

/* ============================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #cfc6ba; margin-top: auto; }
/* 3px thirds rule at the top — echoes the nav's bottom rule (bookend) */
.footer-rule { height: 3px; background: linear-gradient(90deg, #A32D2D 0 33.333%, #BA7517 33.333% 66.666%, #185FA5 66.666% 100%); }
.site-footer .container { padding-block: 3.5rem 1.75rem; }

/* Newsletter band across the top of the footer */
.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap;
    padding-bottom: 2.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.fn-copy h3 { color: #fff; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.5rem; margin: 0 0 .35rem; }
.fn-copy p { color: #a79d90; font-size: .93rem; line-height: 1.55; margin: 0; max-width: 34rem; }
.fn-form { display: flex; gap: .6rem; flex-shrink: 0; }
.fn-form input { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
    color: #fff; padding: .72rem 1rem; font: inherit; font-size: .95rem; min-width: 16rem; }
.fn-form input:focus { border-color: var(--gold-light); background: rgba(255,255,255,.1); outline: none; }
.fn-form input::placeholder { color: #857b6f; }
.fn-submit { background: var(--gold); color: #fff; border-color: transparent; }
.fn-submit:hover { background: var(--gold-deep); color: #fff; }
.fn-status { color: var(--gold-light); font-size: .9rem; margin: -1.5rem 0 2.5rem; }
@media (max-width: 620px) {
    .footer-newsletter { align-items: stretch; }
    .fn-form { width: 100%; }
    .fn-form input { flex: 1; min-width: 0; }
}

.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1.1fr; gap: 2.5rem; align-items: start; }

.footer-brand .brand { margin-bottom: 1.15rem; }
.footer-brand p { color: #a79d90; font-size: .93rem; line-height: 1.65; max-width: 26rem; margin: 0 0 1.15rem; }
.footer-brand .footer-tagline { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-light);
    font-size: 1.05rem; margin: 0 0 .5rem; }
.footer-schools-line { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0;
    font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #a79d90; }
.footer-schools-line .fs { display: inline-flex; align-items: center; gap: .45rem; }
.footer-schools-line .dot { width: 8px; height: 8px; border-radius: 50%; }
.footer-schools-line .marians .dot { background: var(--marian-red); }
.footer-schools-line .vidyalions .dot { background: var(--vidyalion-blue); }

.footer-col h4 { color: #fff; font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .16em;
    text-transform: uppercase; font-weight: 500; margin: 0 0 1.1rem; }
.footer-col a { color: #cfc6ba; text-decoration: none; display: block; font-size: .93rem; padding: .32rem 0; width: fit-content; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col a .ext { font-size: .82em; opacity: .55; }
.footer-place { display: block; color: #857b6f; font-size: .85rem; margin-top: .55rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 2.75rem; padding-top: 1.5rem;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #857b6f; font-size: .82rem; }
.footer-mottos { font-style: italic; }
.footer-mottos .sep { font-style: normal; margin: 0 .35rem; color: var(--gold); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: .5rem; }
}

/* ============================================================================
   HERO — the signature diagonal where St Mary's red meets Kegalu blue at a gold seam
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: #1c1010; color: var(--paper); isolation: isolate; }
.hero-diagonal { position: absolute; inset: 0; z-index: 0; }
/* Maroon field (left) and deep-blue field (right) meeting at a glowing gold seam. */
.hero-diagonal::before {
    content: ""; position: absolute; inset: -2px;
    background: linear-gradient(107deg,
        #3c1616 0%, #4a1a1a 30%, #571f1c 44%,
        rgba(232,169,61,.85) 49.4%, #ffe7a6 50%, rgba(232,169,61,.85) 50.6%,
        #17335c 57%, #102847 74%, #0c1d38 100%);
}
/* atmospheric depth + bottom vignette for text contrast */
.hero-diagonal::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(80% 60% at 22% 34%, rgba(0,0,0,0) 40%, rgba(12,7,7,.42) 100%),
        linear-gradient(180deg, rgba(20,12,12,.25) 0%, rgba(14,9,9,.15) 45%, rgba(12,8,8,.55) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.75rem, 9vw, 6.5rem);
    min-height: clamp(28rem, 60vh, 42rem); display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 40rem; }

.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
    font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: #eadfce; margin: 0 0 1.6rem; }
.hero-eyebrow .s { display: inline-flex; align-items: center; gap: .45rem; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.hero-eyebrow .marians .dot { background: var(--marian-red); }
.hero-eyebrow .vidyalions .dot { background: var(--vidyalion-blue); }
.hero-eyebrow .seam { color: var(--gold-light); font-size: .7rem; }

.hero-title { font-family: 'Fraunces', serif; font-weight: 500; color: #fff;
    font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
    margin: 0 0 1.4rem; max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-title .hl { color: var(--gold-light); }
.hero-tagline { font-family: 'Fraunces', serif; font-weight: 500; font-style: italic;
    color: #f6ead2; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.2;
    margin: -0.5rem 0 1.3rem; letter-spacing: .005em; }
.hero-tagline .hl { color: var(--gold-light); font-style: normal; }
.hero-lede { color: #f1e7d7; max-width: 42ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; margin: 0 0 2rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-hero-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.hero-fee { display: flex; align-items: flex-start; gap: .6rem; margin: 1.6rem 0 0; font-size: .92rem; color: #d9ccbb; }
.hero-fee strong { color: var(--gold-light); font-weight: 600; }
.hero-fee .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(232,169,61,.16); color: var(--gold-light); font-size: .72rem; flex: none; margin-top: 2px; }

/* Countdown card — a cricket-match clock is the subject's own hero device */
.hero-countdown { position: absolute; right: 0; bottom: clamp(1rem, 4vw, 2rem); z-index: 2;
    background: rgba(16,10,10,.55); backdrop-filter: blur(6px);
    border: 1px solid rgba(232,169,61,.4); border-radius: var(--radius);
    padding: 1.1rem 1.35rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.hc-label { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold-light); display: block; margin-bottom: .7rem; }
.hc-grid { display: flex; gap: 1.4rem; }
.hc-cell { text-align: left; }
.hc-num { font-family: 'Fraunces', serif; font-weight: 500; font-size: 2.1rem; line-height: 1; color: #fff;
    font-variant-numeric: tabular-nums; display: block; }
.hc-unit { font-family: 'JetBrains Mono', monospace; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
    color: #b7a992; margin-top: .35rem; display: block; }

@media (max-width: 900px) {
    .hero-inner { min-height: 0; padding-block: clamp(3rem, 12vw, 4.5rem); }
    .hero-countdown { position: static; margin-top: 2.5rem; display: inline-block; }
    .hc-grid { gap: 1.8rem; }
}

/* ============================================================================
   PROGRAMS — three evergreen pillars
   ========================================================================== */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.pillar { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow-sm); }
.pillar-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--gold-wash); font-size: 1.4rem; margin-bottom: 1rem; }
.pillar h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin: 0 0 .4rem; }
.pillar p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   COUNTERS
   ========================================================================== */
.counters { background: var(--paper-warm); border-block: 1px solid var(--rule); }
.counter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.counter { text-align: center; }
.counter .num {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--gold-deep); line-height: 1; display: block;
}
.counter .label {
    font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-faint); margin-top: .6rem; display: block;
}
@media (max-width: 900px) { .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 620px) { .counter-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   ABOUT + the two-school equal-weight cards
   ========================================================================== */
.schools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.school-panel {
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-sm); position: relative;
}
.school-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; }
.school-panel.marians::before { background: var(--marian-red); }
.school-panel.vidyalions::before { background: var(--vidyalion-blue); }
.school-panel .school-name { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: .2rem; }
.school-panel .founded { font-family: 'JetBrains Mono', monospace; font-size: .74rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.school-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; font-size: .95rem; }
.school-panel dt { color: var(--ink-faint); }
.school-panel dd { margin: 0; color: var(--ink-soft); }
.school-panel .motto { font-style: italic; color: var(--ink-soft); margin-top: 1rem; }
@media (max-width: 620px) { .schools-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   MEMBERSHIP tiers
   ========================================================================== */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.tier-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem; }
.tier-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tier-card .tier-name { font-family: 'Fraunces', serif; font-size: 1.35rem; }
.tier-card .tier-tag { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gold-deep); }
.tier-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.tier-card li { padding: .4rem 0 .4rem 1.5rem; position: relative; color: var(--ink-soft); font-size: .95rem; }
.tier-card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   MAP
   ========================================================================== */
.map-wrap { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 16rem; gap: 1.5rem; }
#members-map { width: 100%; height: 30rem; border: 1px solid var(--rule); border-radius: var(--radius);
    background: var(--paper-warm); z-index: 0; }
.map-legend { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.map-legend h3 { font-size: 1rem; }
.map-legend ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.map-legend li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .9rem; color: var(--ink-soft); }
.map-legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.map-legend .cnt { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--ink-faint); }
.leaflet-container { font-family: 'Inter', sans-serif; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } #members-map { height: 24rem; } }

/* ============================================================================
   Generic card grids (programs / news / gallery / leadership) + empty states
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.tile .tile-body { padding: 1.5rem; }
.tile h3 { font-size: 1.2rem; }
.tile .tile-img { aspect-ratio: 16/10; background: var(--paper-warm); object-fit: cover; width: 100%; display: block; }
.empty-state {
    margin-top: 2rem; text-align: center; padding: 3rem 1.5rem;
    border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--paper-warm);
    color: var(--ink-faint);
}
.empty-state .icon { font-size: 1.8rem; opacity: .6; }
@media (max-width: 900px) { .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* Leadership */
.leader-card { text-align: center; }
.leader-card .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .8rem; background: var(--gold-wash);
    display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold-deep);
    border: 1px solid var(--rule); }
.leader-card .office { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold-deep); }

/* ============================================================================
   DONATE / NEWSLETTER (dark band)
   ========================================================================== */
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: #e6dccb; }
.band-gold { background: linear-gradient(120deg, var(--gold-deep), var(--gold)); color: #fff; }
.band-gold h2, .band-gold .lede { color: #fff; }
.inline-form { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; max-width: 30rem; }
.inline-form input { flex: 1; min-width: 12rem; padding: .8rem 1rem; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font: inherit; }
.inline-form input::placeholder { color: rgba(255,255,255,.7); }

/* ============================================================================
   Forms (directory / contact / documents)
   ========================================================================== */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink);
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--card); }
.filter-bar { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1rem; align-items: end;
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
@media (max-width: 900px) { .filter-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .filter-bar { grid-template-columns: 1fr; } }
.error { color: var(--marian-red); font-size: .8rem; margin-top: .3rem; }
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid; font-size: .95rem; }
.alert-info { background: var(--gold-wash); border-color: var(--gold-light); color: var(--gold-deep); }

/* ---- Member directory cards ---- */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.member-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.member-card .m-name { font-family: 'Fraunces', serif; font-size: 1.2rem; margin: 0; }
.member-card .m-meta { font-size: .9rem; color: var(--ink-faint); margin-top: .2rem; }
.school-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
    padding: .2rem .6rem; border-radius: 999px; margin-top: .8rem; }
.school-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.school-badge.marians { background: rgba(163,45,45,.08); color: var(--marian-red); }
.school-badge.marians .dot { background: var(--marian-red); }
.school-badge.vidyalions { background: rgba(24,95,165,.08); color: var(--vidyalion-blue); }
.school-badge.vidyalions .dot { background: var(--vidyalion-blue); }
@media (max-width: 900px) { .member-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .member-grid { grid-template-columns: 1fr; } }

/* ---- Tier / status pills ---- */
.pill { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .08em;
    text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-soft); }
.pill.financial { background: var(--gold-wash); border-color: var(--gold-light); color: var(--gold-deep); }

/* ---- Documents ---- */
.doc-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.doc-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.doc-row:last-child { border-bottom: 1px solid var(--rule); }
.doc-row .doc-icon { font-size: 1.4rem; flex: none; }
.doc-row .doc-title { font-weight: 600; }
.doc-row .doc-meta { font-size: .84rem; color: var(--ink-faint); }
.doc-row .doc-action { margin-left: auto; }
.doc-locked { color: var(--ink-faint); font-size: .85rem; display: inline-flex; align-items: center; gap: .4rem; }

/* ---- Page hero (interior pages) ---- */
.page-hero { background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.page-hero .container { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { max-width: 18ch; }

/* ---- FAQ ---- */
.faq { margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin-top: .8rem; color: var(--ink-soft); }

.prose p { max-width: 42rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2.5rem; }

/* ============================================================================
   MEMBER PORTAL
   ========================================================================== */
.portal { display: grid; grid-template-columns: 15rem 1fr; min-height: calc(100vh - 0px); }
.portal-side { background: var(--ink); color: #d8cfc4; padding: 0 1rem 1.5rem; display: flex; flex-direction: column;
    position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.portal-side .brand-mark { width: 28px; height: 33px; }
.portal-side .brand-name { font-size: 1rem; }
.portal-side .brand-sub { font-size: .54rem; }
.portal-nav-wrap { margin-top: 1.75rem; }
.portal-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
/* Brand + hamburger row. A fixed-height header whose bottom border lines up
   with the top bar's, so the two read as one continuous rule across the shell.
   The negative margin bleeds the border to the sidebar edges. */
.side-head { display: flex; align-items: center; height: var(--portal-head); margin: 0 -1rem; padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09); }
.side-toggle { display: none; background: none; border: 0; color: #d8cfc4; cursor: pointer; padding: .3rem;
    border-radius: var(--radius); line-height: 0; }
.side-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-toggle svg { width: 24px; height: 24px; display: block; }
.portal-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--radius);
    color: #d8cfc4; text-decoration: none; font-size: .95rem; }
.portal-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.portal-nav a[aria-current="page"] { background: var(--gold); color: #fff; }
.portal-nav .badge { margin-left: auto; background: var(--gold-light); color: var(--ink); font-size: .72rem;
    font-weight: 600; border-radius: 999px; padding: .05rem .45rem; }
.portal-side .side-foot { margin-top: auto; padding-top: 1rem; }
.portal-side .side-foot a { color: #a89e92; font-size: .85rem; text-decoration: none; }
.portal-main { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.portal-content { padding: clamp(1.5rem, 4vw, 3rem); }
.portal-main .p-head { margin-bottom: 2rem; }

/* Top bar — mirrors the admin: theme toggle, notifications, account menu. */
.portal-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: flex-end;
    gap: .6rem; min-height: var(--portal-head); box-sizing: border-box; padding: 0 clamp(1rem, 4vw, 2rem);
    background: var(--card); border-bottom: 1px solid var(--rule); }
.theme-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-warm); }
.theme-seg button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; background: none;
    color: var(--ink-faint); cursor: pointer; border-radius: 999px; transition: color .15s, background .15s; }
.theme-seg button:hover { color: var(--ink-soft); }
.theme-seg button svg { width: 16px; height: 16px; }
.theme-seg button[aria-pressed="true"] { background: var(--card); color: var(--gold-deep); box-shadow: var(--shadow-sm); }
.pt-bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
    color: var(--ink-soft); text-decoration: none; }
.pt-bell:hover { background: var(--paper-warm); color: var(--gold-deep); }
.pt-bell svg { width: 18px; height: 18px; }
.pt-bell-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--marian-red); border: 1.5px solid var(--card); }
.pt-user { position: relative; }
.pt-user summary { list-style: none; }
.pt-user summary::-webkit-details-marker { display: none; }
.pt-avatar-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .35rem .2rem .25rem;
    border: 1px solid var(--rule); border-radius: 999px; background: var(--card); cursor: pointer; }
.pt-avatar-btn:hover { border-color: var(--gold); }
.pt-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff;
    font-family: 'Fraunces', serif; font-weight: 600; font-size: .82rem; }
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-caret { color: var(--ink-faint); display: grid; place-items: center; transition: transform .15s; }
.pt-caret svg { width: 14px; height: 14px; }
.pt-user[open] .pt-caret { transform: rotate(180deg); }
.pt-drop { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 15rem; padding: .4rem; z-index: 50;
    background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.pt-drop-id { padding: .55rem .65rem .7rem; border-bottom: 1px solid var(--rule); margin-bottom: .3rem; }
.pt-drop-name { display: block; font-weight: 600; color: var(--ink); }
.pt-drop-mail { display: block; font-size: .8rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.pt-drop-link { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .65rem;
    border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .9rem; cursor: pointer;
    border-radius: var(--radius); text-decoration: none; }
.pt-drop-link:hover { background: var(--paper-warm); color: var(--gold-deep); }
.pt-drop-link svg { width: 16px; height: 16px; flex: none; }
.pt-drop-out { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .6rem; }
.pt-drop-badge { margin-left: auto; background: var(--marian-red); color: #fff; font-size: .72rem; font-weight: 600;
    border-radius: 999px; padding: .05rem .45rem; }

/* Portal dark mode — reuses the existing dark palette (the sidebar's ink tones)
   for dark, and the existing paper tones for light. Scoped to the portal so the
   public site is never affected. No new brand hues are introduced. data-theme is
   only ever set on portal pages, so darkening the page shell here is safe. */
[data-theme="dark"] body { background: #17120e; }
[data-theme="dark"] .portal-main {
    --paper: #17120e;
    --paper-warm: #211a13;
    --card: #221b14;
    --rule: #3a3128;
    --ink: #ece4d8;
    --ink-soft: #b8ae9f;
    --ink-faint: #8f8578;
    --gold-wash: #2a2013;
    --gold-deep: var(--gold-light);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 12px 34px rgba(0, 0, 0, .45);
    background: var(--paper);
    color: var(--ink);
}
[data-theme="dark"] .portal-main .notice.warn { background: rgba(163, 45, 45, .18); }
[data-theme="dark"] .portal-main .notice.info { background: rgba(24, 95, 165, .18); }
[data-theme="dark"] .portal-main .tier-badge.is-honorary { background: #100c09; }
[data-theme="dark"] .portal-main .status-pill.verified { background: rgba(63, 143, 79, .22); color: #7ec48a; }
[data-theme="dark"] .portal-main .status-pill.rejected { background: rgba(163, 45, 45, .22); color: #e98b8b; }
[data-theme="dark"] .portal-main .alert-info { background: var(--gold-wash); border-color: var(--gold-deep); }
@media (prefers-reduced-motion: reduce) {
    .theme-seg button, .pt-caret { transition: none; }
}

@media (max-width: 900px) {
    /* Stack the shell and pack rows at the top — otherwise a short page
       stretches the sidebar row to fill the viewport, leaving a gap. */
    .portal { grid-template-columns: 1fr; align-content: start; }
    /* Sidebar becomes a compact sticky top bar; the nav collapses behind a
       hamburger and drops down as a drawer when opened. */
    .portal-side { position: sticky; top: 0; z-index: 40; height: auto; overflow: visible;
        flex-direction: column; align-items: stretch; padding: .7rem 1rem; gap: 0; }
    .side-head { justify-content: space-between; gap: 1rem; height: auto; margin: 0; padding: 0; border-bottom: 0; }
    .side-toggle { display: inline-flex; }
    .portal-side .brand-sub { display: none; }
    .portal-nav-wrap { margin-top: .7rem; }
    .portal-nav-wrap, .portal-side .side-foot { display: none; }
    .portal-side[data-nav="open"] .portal-nav-wrap,
    .portal-side[data-nav="open"] .side-foot { display: block; }
    .portal-nav { flex-direction: column; margin: 0; gap: .1rem; }
    .portal-nav a { padding: .65rem .75rem; font-size: .95rem; }
    .portal-side .side-foot { margin: .7rem 0 0; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.09); }
    /* Only one sticky header on mobile — let the content bar scroll away. */
    .portal-top { position: static; }
}

/* Status card / badges */
.status-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.status-card.financial { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tier-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: 'JetBrains Mono', monospace;
    font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid var(--rule); color: var(--ink-soft); background: var(--paper-warm); }
.tier-badge.is-financial { background: linear-gradient(120deg, var(--gold), var(--gold-light)); color: #fff; border-color: transparent;
    box-shadow: 0 2px 12px rgba(186,117,23,.35); }
.tier-badge.is-honorary { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.active { background: #3f8f4f; } .status-dot.pending { background: var(--gold); }
.status-dot.lapsed { background: var(--marian-red); } .status-dot.cancelled { background: var(--ink-faint); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat-box { background: var(--paper-warm); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stat-box .k { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.stat-box .v { font-size: 1.15rem; margin-top: .2rem; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }

.notice { border-left: 3px solid var(--gold); background: var(--gold-wash); padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: 1.5rem; }
.notice.warn { border-color: var(--marian-red); background: #fbeaea; }
.notice.info { border-color: var(--vidyalion-blue); background: rgba(24,95,165,.06); }
.notice .n-title { font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .9rem; margin-top: 1.1rem; }
.qa { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; background: var(--card); border: 1px solid var(--rule);
    border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.qa:hover { border-color: var(--gold); box-shadow: 0 3px 14px rgba(26,21,18,.07); transform: translateY(-1px); }
.qa.primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.qa.primary:hover { background: var(--gold-deep); }
.qa .qa-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
    border-radius: var(--radius); background: var(--gold-wash); color: var(--gold-deep); }
.qa .qa-icon svg { width: 1.35rem; height: 1.35rem; }
.qa.primary .qa-icon { background: rgba(255,255,255,.18); color: #fff; }
.qa .qa-label { display: block; font-weight: 600; font-size: .95rem; line-height: 1.15; }
.qa .qa-sub { display: block; font-size: .8rem; opacity: .78; margin-top: .1rem; }

/* Dashboard two-column layout + At-a-glance aside */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.75rem; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem; margin: 2.25rem 0 0; }
.dash-main .status-card + .dash-h2 { margin-top: 2.25rem; }
.glance { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow, 0 1px 0 var(--rule)); }
.glance-item { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.glance-item:first-of-type { border-top: 0; padding-top: .4rem; }
.glance-item:hover .gi-label { color: var(--gold-deep); }
.gi-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem;
    border-radius: 50%; background: var(--paper-warm); color: var(--gold-deep); }
.gi-icon svg { width: 1.3rem; height: 1.3rem; }
.gi-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gi-label { font-weight: 600; font-size: .95rem; }
.gi-sub { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-meta { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .06em; color: var(--ink-faint); margin-top: .15rem; }
.gi-badge { flex: none; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--marian-red);
    color: #fff; font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.glance-note { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--ink-soft); }

/* Tables (payment / donation history) */
.data-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.data-table th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-faint); padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
.data-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--rule); font-size: .92rem; vertical-align: middle; }
.status-pill { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
    padding: .2rem .55rem; border-radius: 999px; }
.status-pill.verified { background: rgba(63,143,79,.12); color: #2f6f3a; }
.status-pill.pending { background: var(--gold-wash); color: var(--gold-deep); }
.status-pill.rejected { background: #fbeaea; color: var(--marian-red); }
.table-wrap { overflow-x: auto; }

/* Bank details panel */
.bank-panel { background: var(--paper-warm); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.bank-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 0; }
.bank-panel dt { color: var(--ink-faint); font-size: .85rem; }
.bank-panel dd { margin: 0; font-weight: 600; }

.card-pad { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: .3rem; }
.file-drop { border: 1px dashed var(--rule); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Ballot ---- */
.ballot-option { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem;
    border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; background: var(--paper); }
.ballot-option:hover { border-color: var(--gold); }
.ballot-option:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-wash); }
.ballot-option.disabled { cursor: default; opacity: .75; background: var(--paper-warm); }
.ballot-option.disabled:hover { border-color: var(--rule); }
.ballot-option input { margin-top: .35rem; width: auto; flex: none; }
.ballot-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
    background: var(--gold-wash); display: grid; place-items: center; font-family: 'Fraunces', serif;
    color: var(--gold-deep); font-size: 1rem; border: 1px solid var(--rule); }
.ballot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ballot-name { font-weight: 600; display: block; }
.ballot-bio { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .15rem; }
.ballot-manifesto { display: block; color: var(--ink-faint); font-size: .88rem; margin-top: .35rem; }

/* Livewire pagination (unstyled default) — keep it tidy without Tailwind */
nav[role="navigation"] .flex { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
nav[role="navigation"] span[aria-current], nav[role="navigation"] a {
    display: inline-block; padding: .4rem .7rem; border: 1px solid var(--rule);
    border-radius: var(--radius); text-decoration: none; color: var(--ink-soft); font-size: .9rem;
}
nav[role="navigation"] span[aria-current] { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ============================================================
   Auth pages (login / register / password reset / verify / restricted)
   These render inside the shared public layout (nav + footer). Everything
   below is scoped to .auth-shell so it can never affect a public page.
   Button, alert and eyebrow primitives come from the global design system.
   ============================================================ */
.auth-shell { max-width: 34rem; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; width: 100%; }
.auth-shell.wide { max-width: 44rem; }
.auth-shell h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
.auth-shell .card {
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 2rem clamp(1.1rem, 4vw, 2.25rem); box-shadow: 0 1px 0 var(--rule);
}
.auth-shell .card > .eyebrow { display: block; margin-bottom: .5rem; }
.auth-shell .lede { color: var(--ink-soft); margin-bottom: 1.75rem; }

/* Forms */
.auth-shell .field { margin-bottom: 1.15rem; }
.auth-shell .field > label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-soft); }
.auth-shell .field .hint { font-size: .78rem; color: var(--ink-faint); margin-top: .3rem; }
.auth-shell input[type=text], .auth-shell input[type=email],
.auth-shell input[type=password], .auth-shell input[type=number],
.auth-shell input[type=tel], .auth-shell select {
    width: 100%; padding: .68rem .8rem; font: inherit; color: var(--ink);
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
}
.auth-shell input:focus, .auth-shell select:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(186, 117, 23, 0.16);
}
.auth-shell .row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .auth-shell .row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* School selector — equal weight for both schools (Art. 12.1) */
.auth-shell fieldset { border: 0; margin: 0 0 1.15rem; padding: 0; }
.auth-shell fieldset > legend { font-size: .84rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink-soft); padding: 0; }
.auth-shell .school-grid { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) { .auth-shell .school-grid { grid-template-columns: 1fr; } }
.auth-shell .school-card {
    position: relative; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: .9rem 1rem; cursor: pointer; background: var(--paper); display: flex; align-items: center; gap: .6rem;
}
.auth-shell .school-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.auth-shell .school-card .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.auth-shell .school-card.marians .dot { background: var(--marian-red); }
.auth-shell .school-card.vidyalions .dot { background: var(--vidyalion-blue); }
.auth-shell .school-card:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-wash); }
.auth-shell .school-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.auth-shell .school-card .name { font-weight: 600; font-size: .92rem; }

.auth-shell .btn-block { width: 100%; }

/* Errors + secondary text (global .alert/.error primitives still apply) */
.auth-shell .errors {
    background: #fbeaea; border: 1px solid #e3b7b7; color: var(--marian-red);
    padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .88rem;
}
.auth-shell .errors ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.auth-shell .meta { font-size: .88rem; color: var(--ink-soft); margin-top: 1.5rem; text-align: center; }
.auth-shell .steps { list-style: none; margin: 0 0 1rem; padding: 0; }
.auth-shell .steps li { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.auth-shell .steps li:first-child { border-top: 0; }
.auth-shell .steps .n { font-family: 'JetBrains Mono', monospace; color: var(--gold-deep); font-weight: 500; flex: none; }

/* Password show/hide toggle (login / register / reset) */
.auth-shell .pw-wrap { position: relative; }
.auth-shell .pw-wrap input { padding-right: 3rem; }
.auth-shell .pw-toggle {
    position: absolute; top: 50%; right: .4rem; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; padding: 0; margin: 0;
    background: transparent; border: 0; border-radius: var(--radius);
    color: var(--ink-faint); cursor: pointer; transition: color .15s ease;
}
.auth-shell .pw-toggle:hover { color: var(--gold-deep); }
.auth-shell .pw-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.auth-shell .pw-toggle .pw-eye-off { display: none; }
.auth-shell .pw-toggle.is-showing .pw-eye { display: none; }
.auth-shell .pw-toggle.is-showing .pw-eye-off { display: inline; }

/* ============================================================
   Fund transparency page (/transparency) — Art. 10.7
   ============================================================ */
.year-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 2rem; }
.year-switch-label { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-faint); margin-right: .4rem; }
.year-switch a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--rule);
    border-radius: var(--radius); text-decoration: none; color: var(--ink-soft); font-size: .9rem;
    font-family: 'JetBrains Mono', monospace; }
.year-switch a:hover { border-color: var(--gold); color: var(--gold-deep); }
.year-switch a.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }

.fund-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .fund-summary { grid-template-columns: 1fr; } }
.fund-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.6rem clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--rule); }
.fund-card .eyebrow { display: block; margin-bottom: .4rem; }
.fund-total { font-family: 'Fraunces', serif; font-weight: 500; color: var(--ink);
    font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.fund-lines { margin: 0; border-top: 1px solid var(--rule); }
.fund-lines > div { display: flex; justify-content: space-between; gap: 1rem;
    padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.fund-lines dt { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.fund-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.fund-bars { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.5rem; }
.fund-bar-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem;
    font-size: .92rem; color: var(--ink-soft); }
.fund-bar-fig { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; white-space: nowrap; }
.fund-bar-fig .pct { color: var(--ink-faint); font-weight: 400; }
.fund-bar-track { height: 12px; background: var(--paper-warm); border-radius: 999px; overflow: hidden; }
.fund-bar-fill { display: block; height: 100%; border-radius: 999px; min-width: 4px; }

.fund-items { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.fund-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.fund-item-body h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.fund-item-body p { margin: 0 0 .4rem; color: var(--ink-soft); font-size: .92rem; }
.fund-item-cat { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-faint); }
.fund-item-amount { font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--gold-deep);
    font-variant-numeric: tabular-nums; white-space: nowrap; }

.fund-empty { margin-top: 2rem; padding: 1.5rem; background: var(--paper-warm);
    border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-soft); }
.fund-empty p { margin: 0; }
.fund-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
    font-size: .92rem; color: var(--ink-soft); }
.fund-note a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }

/* ============================================================
   Events + public Event Calendar (/events)
   ============================================================ */
.fixture-banner { display: block; text-decoration: none; margin-bottom: 2.5rem;
    padding: 1.4rem 1.6rem; border-radius: var(--radius); color: #fff;
    background: linear-gradient(100deg, #2C1618 0%, #8A5410 55%, #185FA5 160%);
    box-shadow: 0 2px 20px rgba(26,21,18,.18); }
.fixture-banner .fb-eyebrow { display: block; font-family: 'JetBrains Mono', monospace;
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.fixture-banner .fb-title { display: block; font-family: 'Fraunces', serif; font-size: 1.5rem;
    font-weight: 500; margin: .2rem 0; }
.fixture-banner .fb-meta { display: block; font-size: .9rem; opacity: .85; }

.cal { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.cal-head h2 { margin: 0; font-size: 1.3rem; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
    border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink-soft);
    font-size: 1.2rem; line-height: 1; }
.cal-nav:hover { border-color: var(--gold); color: var(--gold-deep); }
.cal-today { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: .8rem;
    color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid currentColor; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-wd { padding: .55rem .5rem; text-align: right; font-family: 'JetBrains Mono', monospace;
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
    background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.cal-cell { min-height: 6.2rem; padding: .35rem .4rem; border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .2rem; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-date { align-self: flex-end; font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cal-cell.is-out { background: #fcfaf5; }
.cal-cell.is-out .cal-date { color: var(--ink-faint); opacity: .55; }
.cal-cell.is-today { background: var(--gold-wash); }
.cal-cell.is-today .cal-date { color: var(--gold-deep); font-weight: 700; }
.cal-chip { display: block; font-size: .72rem; line-height: 1.25; padding: .12rem .35rem; border-radius: 2px;
    color: #fff; background: var(--chip, var(--gold-deep)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.event-list { border-top: 1px solid var(--rule); }
.event-row { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.event-date { flex: none; width: 3.4rem; text-align: center; padding-top: .2rem;
    border-top: 3px solid var(--type, var(--gold)); }
.event-date .ed-day { display: block; font-family: 'Fraunces', serif; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.event-date .ed-mon { display: block; font-family: 'JetBrains Mono', monospace; font-size: .7rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .15rem; }
.event-type { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.event-body h3 { margin: .1rem 0 .2rem; font-size: 1.15rem; }
.event-meta { margin: 0 0 .3rem; font-size: .9rem; color: var(--ink-soft); }
.event-desc { margin: 0; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 620px) {
    .cal { display: none; } /* the upcoming list is the mobile calendar */
    .fixture-banner .fb-title { font-size: 1.25rem; }
}

/* ============================================================
   News & announcements (/news, /news/{slug})
   ============================================================ */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.post-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.5rem clamp(1.2rem, 3vw, 1.75rem); box-shadow: 0 1px 0 var(--rule); }
.post-card .post-date { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-faint); }
.post-card h2, .post-card h3 { margin: .5rem 0 .5rem; font-size: 1.25rem; line-height: 1.2; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { margin: 0 0 .9rem; color: var(--ink-soft); font-size: .95rem; }
.post-more { font-weight: 600; color: var(--gold-deep); text-decoration: none; font-size: .92rem; }
.post-more:hover { text-decoration: underline; }
.post-back { display: inline-block; margin-bottom: .5rem; color: var(--ink-soft); text-decoration: none;
    font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
.post-back:hover { color: var(--gold-deep); }

/* ============================================================
   Photo gallery (/gallery, /gallery/{slug}) + lightbox
   ============================================================ */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.album-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--rule);
    border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.album-card:hover { box-shadow: 0 6px 24px rgba(26,21,18,.12); transform: translateY(-2px); }
.album-cover { display: block; aspect-ratio: 4 / 3; background: var(--paper-warm); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-meta { display: block; padding: .9rem 1.1rem 1.1rem; }
.album-title { display: block; font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); }
.album-count { display: block; margin-top: .2rem; font-family: 'JetBrains Mono', monospace;
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.photo { padding: 0; border: 0; background: var(--paper-warm); cursor: zoom-in; aspect-ratio: 1 / 1;
    overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photo:hover img { transform: scale(1.04); }
.photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    gap: .5rem; padding: 1.5rem; background: rgba(20,15,12,.92); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lb-caption { margin: .8rem 0 0; color: #f1e7d7; font-size: .9rem; text-align: center; }
.lb-btn { flex: none; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 2.4rem; height: 2.4rem; font-size: 1.5rem; }
@media (max-width: 620px) { .lb-btn.lb-prev, .lb-btn.lb-next { position: absolute; top: 50%; transform: translateY(-50%); } .lb-prev { left: .5rem; } .lb-next { right: .5rem; } }

/* Home gallery strip */
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gallery-strip-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--paper-warm); }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-strip-item:hover img { transform: scale(1.05); }

/* ============================================================
   Member portal — Meetings & minutes (/my/meetings)
   ============================================================ */
.p-section-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem;
    margin: 1.5rem 0 1rem; color: var(--ink); }
.p-muted { color: var(--ink-faint); font-size: .92rem; }
.meeting-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.4rem clamp(1.1rem, 3vw, 1.75rem); box-shadow: 0 1px 0 var(--rule); margin-bottom: 1rem; }
.meeting-card.is-upcoming { border-left: 3px solid var(--gold); }
.meeting-head { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.meeting-type { font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em;
    text-transform: uppercase; color: #fff; background: var(--mt, var(--gold-deep));
    padding: .15rem .5rem; border-radius: 2px; flex: none; }
.meeting-head h3 { margin: 0; font-size: 1.2rem; }
.meeting-when { margin: .4rem 0 .9rem; color: var(--ink-soft); font-size: .92rem; }
.meeting-block { border-top: 1px solid var(--rule); margin-top: .9rem; padding-top: .9rem; }
.meeting-block h4 { margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace; color: var(--ink-faint); }
.meeting-block p { margin: 0 0 .7rem; color: var(--ink-soft); }
.agenda-list { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.agenda-list li { margin-bottom: .3rem; }

/* ============================================================
   Fundraising appeals (/appeals) + progress bars
   ============================================================ */
.appeal-card { display: flex; gap: 2rem; align-items: flex-start; background: #fff; border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 1.6rem clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--rule); margin-bottom: 1.25rem; }
.appeal-body { flex: 1 1 auto; }
.appeal-body h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.appeal-body p { margin: 0 0 .6rem; color: var(--ink-soft); }
.appeal-ends { font-family: 'JetBrains Mono', monospace; font-size: .74rem; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink-faint); }
.appeal-side { flex: 0 0 clamp(220px, 28%, 300px); }
.appeal-figures { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.appeal-raised { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.appeal-target { color: var(--ink-soft); font-size: .9rem; }
.appeal-track { height: 12px; background: var(--paper-warm); border-radius: 999px; overflow: hidden; margin: .7rem 0 .4rem; }
.appeal-fill { display: block; height: 100%; border-radius: 999px; min-width: 4px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.appeal-pct { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--gold-deep); }

.appeal-done-list { border-top: 1px solid var(--rule); }
.appeal-done { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.appeal-done-title { font-weight: 600; color: var(--ink); }
.appeal-done-fig { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 620px) { .appeal-card { flex-direction: column; gap: 1rem; } .appeal-side { flex-basis: auto; width: 100%; } }

/* Active-appeal teaser inside the donate home section (on the gold band) */
.donate-appeals { display: grid; gap: .8rem; margin: 1.9rem 0 0; max-width: 40rem; }
.donate-appeal { display: block; text-decoration: none; padding: .95rem 1.15rem;
    background: rgba(26,21,18,.22); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
    transition: background .15s ease, border-color .15s ease; }
.donate-appeal:hover { background: rgba(26,21,18,.34); border-color: rgba(255,233,176,.5); }
.donate-appeal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.donate-appeal-head > span:first-child { color: #fff; font-weight: 600; font-size: .98rem; }
.donate-appeal-head .amt { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: #ffe9b0;
    font-variant-numeric: tabular-nums; white-space: nowrap; }
.donate-appeal-track { display: block; width: 100%; height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.donate-appeal-fill { display: block; height: 100%; min-width: 6px;
    background: linear-gradient(90deg, #E8A93D, #FBF3E3); }

/* ============================================================
   Wall of Honour (/wall-of-honour)
   ============================================================ */
.wall { list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 1.5rem; }
.wall-name { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); text-align: center;
    padding: .8rem .5rem; border-top: 1px solid var(--rule); }
.wall-anon { text-align: center; margin: 2.25rem 0 0; color: var(--ink-soft); font-style: italic; }
.wall-cta { margin-top: 2.75rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.wall-note { color: var(--ink-faint); font-size: .9rem; }

/* ============================================================
   Video gallery (/videos)
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video-card { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
    background: var(--ink); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .2s ease; }
.video-card:hover .video-thumb img { transform: scale(1.03); opacity: .85; }
.video-play { position: absolute; inset: 0; margin: auto; width: 3.4rem; height: 3.4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(26,21,18,.55); box-shadow: 0 2px 16px rgba(0,0,0,.35); transition: background .15s ease; }
.video-card:hover .video-play { background: var(--gold-deep); }
.video-card:focus-visible .video-thumb { outline: 3px solid var(--gold); outline-offset: 2px; }
.video-title { display: block; font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--ink); margin-top: .7rem; }
.video-desc { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .2rem; }

.video-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; background: rgba(20,15,12,.94); }
.video-lightbox[hidden] { display: none; }
.video-frame { width: min(1000px, 94vw); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   School songs (/school-songs) — equal weight for both schools (Art. 12.1)
   ============================================================ */
.songs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .songs-grid { grid-template-columns: 1fr; } }
.song-panel { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--gold);
    border-radius: var(--radius); padding: 1.75rem clamp(1.3rem, 3vw, 2.25rem); box-shadow: 0 1px 0 var(--rule); }
.song-panel.marians { border-top-color: var(--marian-red); }
.song-panel.vidyalions { border-top-color: var(--vidyalion-blue); }
.song-school { font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-faint); }
.song-panel.marians .song-school { color: var(--marian-red); }
.song-panel.vidyalions .song-school { color: var(--vidyalion-blue); }
.song-panel h2 { margin: .3rem 0 1rem; font-size: 1.5rem; }
.song-audio { width: 100%; margin: 0 0 1.25rem; }
.song-lyrics { white-space: pre-line; font-family: 'Fraunces', serif; font-size: 1.05rem; line-height: 1.8;
    color: var(--ink-soft); }

/* ============================================================================
   Hero dual-crest lockup
   ========================================================================== */
.crest-lockup {
    --crest-gold: #e0a53c;
    --crest-marian: #4a1414;
    --crest-vidyalion: #0e2748;
    --crest-cream: #f5efe6;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
}

.crest-lockup__panel {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(224, 165, 60, 0.28);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.crest-set {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}

/* Each medallion takes an equal share of the row and caps out, so the two
   crests always sit apart with a clear gap between them — never overlapping. */
.crest__medallion {
    flex: 1 1 0;
    min-width: 0;
    max-width: 186px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(224, 165, 60, 0.55);
    box-shadow: 0 0 0 8px rgba(224, 165, 60, 0.06),
                0 18px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.crest__medallion--marian    { background: var(--crest-marian); }
.crest__medallion--vidyalion { background: var(--crest-vidyalion); }

.crest__medallion:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 8px rgba(224, 165, 60, 0.12),
                0 24px 55px rgba(0, 0, 0, 0.55);
}

.crest__medallion img {
    object-fit: contain;
    display: block;
}

/* Optical balance: the round Marian crest and the tall Vidyalion shield need
   different scales to read as the same size. Do not equalise these. */
.crest__medallion--marian img    { width: 74%; height: 74%; }
.crest__medallion--vidyalion img { width: 64%; height: 64%; transform: translateY(-2px); }

@media (max-width: 900px) {
    .crest-lockup { padding: 1.5rem 1rem; }
    .crest-lockup__panel { padding: 1.75rem 1.25rem; }
    .crest-set { gap: clamp(1rem, 5vw, 1.6rem); }
    .crest__medallion { max-width: 132px; }
}

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

/* --- Hero placement (site-specific layout). The copy sits on the left; the
   crests and the countdown share the right column, crests above the countdown.
   The countdown moves from its absolute bottom-right pin into normal flow. --- */
.hero-inner .crest-lockup { height: auto; }
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 3vh, 2rem); }
.hero-aside .hero-countdown { position: static; right: auto; bottom: auto; }

@media (min-width: 901px) {
    .hero-inner:has(.hero-aside) {
        display: grid;
        grid-template-columns: minmax(0, 37rem) minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(1.5rem, 3vw, 2.5rem);
    }
}

@media (max-width: 900px) {
    .hero-aside { margin-top: 2.5rem; }
}
