/* ============================================================
   Voice the Vote — Stylesheet
   Fonts (loaded via Adobe Fonts kit in <head>):
     Bobby Jones Soft  — h1, h2 (major headings)
     Proxima Nova Condensed — body, h3, h4, UI
   Self-hosted fallback for Bobby Jones Soft:
     /public_html/fonts/bobby-jones-soft-regular.woff2/.woff
   Wave background URLs are injected as CSS variables from PHP:
     --wave-hero  used on the hero section
     --wave-dark  used on dark (navy) sections
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* ── Colour ─────────────────────────────────────────────── */
    --clr-primary:       #C63D1E;   /* VTV red-orange  */
    --clr-primary-dark:  #9E2F14;
    --clr-secondary:     #1B3057;   /* deep navy       */
    --clr-accent:        #F5C800;   /* VTV yellow      */
    --clr-accent-light:  #FDF0D5;

    --clr-bg:            #F8F5F1;   /* warm off-white  */
    --clr-bg-alt:        #EDEAE3;   /* light warm grey */
    --clr-bg-dark:       #1B3057;   /* = secondary     */
    --clr-surface:       #FFFFFF;

    --clr-text:          #1A2535;
    --clr-text-muted:    #586070;
    --clr-text-invert:   #FFFFFF;

    /* ── Type ───────────────────────────────────────────────────────────────────
       --font-display: Bobby Jones Soft — major headings (h1, h2)
       --font-heading: Proxima Nova Condensed — subheadings (h3, h4), nav, UI
       --font-body:    Proxima Nova Condensed — all body copy

       Fallback chain:
         'bobby-jones-soft'      — Adobe Fonts OR self-hosted woff2/woff in /fonts/
         'proxima-nova-condensed'— Adobe Fonts (typekit kit required)
         'Arial Narrow'          — system condensed sans, near-universal
         sans-serif              — last resort
    ──────────────────────────────────────────────────────────────────────────── */
    --font-display: 'bobby-jones-soft', 'Arial Narrow', Impact, sans-serif;
    --font-heading: 'proxima-nova-condensed', 'Arial Narrow', sans-serif;
    --font-body:    'proxima-nova-condensed', 'Arial Narrow', sans-serif;

    /* ── Spacing ────────────────────────────────────────────── */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-7:  1.75rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;

    /* ── Layout ─────────────────────────────────────────────── */
    --container:  1200px;
    --gutter:     clamp(1rem, 4vw, 2rem);
    --radius:     0.5rem;
    --radius-lg:  1rem;
    --ease:       200ms ease;

    /* ── Wave URLs (overridden by inline <style> from PHP) ───── */
    --wave-hero: none;
    --wave-dark: none;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Ensure [hidden] attribute always works even when elements have explicit
   display rules (e.g. display:flex) — author display rules would otherwise
   override the UA [hidden]{display:none} and keep the element visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 115%; scroll-padding-top: 4.5rem; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-text);
    background: var(--clr-bg);
    padding-top: 4.5rem; /* site header only (admin bar hidden for guests) */
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }


/* ============================================================
   2b. SELF-HOSTED FONTS
   Bobby Jones Soft — served from /public_html/fonts/bobby-jones-soft-regular/
   ============================================================ */
@font-face {
    font-family: 'bobby-jones-soft';
    src: url('../fonts/bobby-jones-soft-regular/bobby-jones-soft-regular.otf') format('opentype');
    font-weight: 400;
    font-style:  normal;
    font-display: swap;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
/* Major headings use the display face (Bobby Jones Soft) */
h1, h2 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--clr-secondary);
}

/* Subheadings and smaller type use Proxima Nova Condensed */
h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--clr-secondary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem);   font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem);     font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p  { max-width: 70ch; font-weight: 600; }

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: var(--sp-3);
}

.lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--clr-text-muted);
    max-width: 52ch;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: start;
}

.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-4);
    max-width: 34ch;
}

.section-intro {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    margin-top: var(--sp-4);
    margin-bottom: var(--sp-10);
    max-width: 60ch;
}

/* Generic panel card used on inner pages */
.panel {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.panel h3 { margin-bottom: var(--sp-3); }
.panel p  { color: var(--clr-text-muted); font-size: 0.95rem; }
.panel ul { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.panel li { color: var(--clr-text-muted); font-size: 0.9rem; padding-left: var(--sp-4); position: relative; }
.panel li::before { content: '—'; position: absolute; left: 0; color: var(--clr-primary); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--ease), color var(--ease),
                border-color var(--ease), transform var(--ease);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
/* no lift animation on button hover */
.btn:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 3px; }

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-text-invert);
    border-color: var(--clr-primary);
}
.btn-primary:hover { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); }

.btn-secondary {
    background: transparent;
    color: var(--clr-secondary);
    border-color: var(--clr-secondary);
}
.btn-secondary:hover { background: var(--clr-secondary); color: var(--clr-text-invert); }

.btn-invert {
    background: #37C6F4;
    color: #1A2535;
    border-color: #37C6F4;
}
.btn-invert:hover {
    background: #1BADD8;
    border-color: #1BADD8;
    color: #fff;
    transform: none;
}


/* ============================================================
   6. WAVE BACKGROUND PATTERNS
   Wave assets live outside public_html and are served through
   image.php.  Their URLs are injected as CSS variables by the
   inline <style> block in index.php.

   Rules:
   • .hero-wave  — inner-page compact heroes  (--wave-hero)
   • .wave-bg    — splash-page hero           (--wave-hero)
   • .wave-dark  — dark navy sections         (--wave-dark)
   Patterns are suppressed on mobile (< 768px) to keep small
   screens clean.
   ============================================================ */

/* shared setup */
.hero-wave,
.wave-bg,
.wave-dark {
    position: relative;
    overflow: hidden;
}
.hero-wave > *,
.wave-bg > *,
.wave-dark > * { position: relative; z-index: 1; }

/* hero wave — right-aligned, 48%, 14% opacity */
.hero-wave::before,
.wave-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--wave-hero);
    background-repeat: no-repeat;
    background-position: right -4% bottom -8%;
    background-size: 48%;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

/* dark-section wave — full-cover, 8% opacity */
.wave-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--wave-dark);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}


/* ============================================================
   7. HEADER & NAVIGATION
   ============================================================ */

/* ── Admin bar (sits above main header on every page) ── */
.admin-bar {
    background: var(--clr-secondary);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 201;
}
.admin-bar-inner {
    display: flex;
    align-items: stretch;
    height: 2.75rem;
}
.admin-bar-greeting {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    padding: 0 var(--sp-5) 0 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.1);
    margin-right: var(--sp-2);
}
.admin-bar-greeting strong {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    margin-left: .35em;
}
.admin-bar-tabs {
    display: flex;
    flex: 1;
}
.admin-bar-tab {
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.admin-bar-tab:hover { color: rgba(255,255,255,.9); }
.admin-bar-tab.is-active {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}
.admin-bar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.admin-bar-signout,
.admin-bar-signin {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    text-decoration: none;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    height: 100%;
    transition: color .15s;
    white-space: nowrap;
}
.admin-bar-signout:hover,
.admin-bar-signin:hover { color: rgba(255,255,255,.85); }

/* Clickable name link replacing the static greeting */
.admin-bar-user {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    padding: 0 var(--sp-5) 0 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.1);
    margin-right: var(--sp-2);
    text-decoration: none;
    transition: color .15s;
}
.admin-bar-user:hover { color: rgba(255,255,255,.85); }
.admin-bar-user strong { color: rgba(255,255,255,.85); font-weight: 600; margin-left: .35em; }
.admin-bar-user:hover strong { color: #fff; }

.site-header {
    position: fixed;
    top: 0;   /* sits at top when no admin bar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    background: #37C6F4;
    border-bottom: none;
}

.nav-wrap {
    display: flex;
    align-items: center;
    height: 4.5rem;
    gap: var(--sp-4);
}

.brand img { height: 2.4rem; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-right: auto;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #1B3057;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius);
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #1B3057; background: rgba(27,48,87,0.12); }

.nav-cta {
    margin-left: var(--sp-4);
    padding: 0.5rem 1.25rem;
    background: #F5C800;
    color: #1B3057;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--ease);
    flex-shrink: 0;
}
.nav-cta:hover { background: #D4AC00; color: #1B3057; }

.nav-signin {
    margin-left: var(--sp-2);
    padding: 0.5rem 1rem;
    color: #1B3057;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1.5px solid rgba(27,48,87,0.30);
    transition: color var(--ease), border-color var(--ease), background var(--ease);
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-signin:hover {
    color: #1B3057;
    border-color: #1B3057;
    background: rgba(27,48,87,0.10);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: var(--sp-2);
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* When admin bar is present, push body and header down to accommodate it */
.has-admin-bar body,
body.has-admin-bar { padding-top: 7.25rem; }
.has-admin-bar .site-header { top: 2.75rem; }
.has-admin-bar { scroll-padding-top: 7.25rem; }


.content-block         { padding-block: var(--sp-20); }
.content-block.alt-bg  { background: var(--clr-bg-alt); }


/* ============================================================
   9. BLOCK 1 — HERO
   ============================================================ */
.hero {
    background: var(--clr-bg);
    padding-block: var(--sp-20) var(--sp-16);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
}

.hero-copy { max-width: 560px; }
.hero-copy h1  { margin-bottom: var(--sp-6); }
.hero-copy .lead { margin-bottom: var(--sp-8); }

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-image img {
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.10));
}

/* Compact variant used on inner pages */
.compact-hero { padding-block: var(--sp-16) var(--sp-12); }
.compact-hero .hero-image img { max-height: 380px; }

/* Centered full-width hero — used on the home splash (no character image) */
.hero--centered {
    padding-block: var(--sp-24) var(--sp-20);
}
.hero--centered .hero-copy {
    max-width: 740px;
    margin-inline: auto;
    text-align: center;
}
.hero--centered .lead {
    margin-inline: auto;
    margin-bottom: var(--sp-10);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}


/* ============================================================
   10. BLOCK 2 — WHAT IS VTV
   ============================================================ */
.block-what { background: var(--clr-surface); }

.what-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sp-16);
    align-items: start;
}

.what-header {
    /* scrolls with page — no sticky */
}
.what-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--sp-3);
    max-width: 18ch;
}
.what-header .eyebrow { margin-bottom: var(--sp-4); }

.what-prose {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}
.what-prose p {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 66ch;
    padding-left: var(--sp-6);
    border-left: 3px solid var(--clr-accent);
    line-height: 1.8;
}


/* ============================================================
   11. BLOCK 3 — WHY VTV
   ============================================================ */
.block-why { background: var(--clr-bg-alt); }

.why-statements {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
    margin-top: var(--sp-10);
}

.why-stmt {
    padding: var(--sp-8) var(--sp-8) var(--sp-8) var(--sp-10);
    border-left: 3px solid transparent;
    transition: border-color var(--ease);
}
.why-stmt:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.why-stmt:hover { border-left-color: var(--clr-primary); }

.why-stmt p {
    font-size: 1rem;
    color: var(--clr-text-muted);
    max-width: 62ch;
    line-height: 1.75;
}

/* First block: bold lead statement + supporting text */
.why-stmt--lead p:first-child {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-3);
}
.why-stmt--lead { border-left-color: var(--clr-primary); }

/* Closing statement: accent colour */
.why-stmt--closing p {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--clr-primary);
}
.why-stmt--closing { border-left-color: var(--clr-primary); }


/* ============================================================
   12. BLOCK 4 — TACTICS
   ============================================================ */
.block-tactics {
    background: var(--clr-bg-alt);
    padding-block: var(--sp-20);
}
.block-tactics .eyebrow { color: var(--clr-primary); }
.block-tactics h2       { color: var(--clr-secondary); margin-bottom: var(--sp-12); }

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}

.tactic-card {
    background: var(--clr-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 4px solid var(--clr-primary);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-10);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow var(--ease), transform var(--ease);
}
.tactic-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transform: none;
}
.tactic-card--linked {
    cursor: pointer;
}
.tactic-card--linked:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transform: none;
    border-color: var(--card-accent);
}
.tactic-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tactic-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: var(--sp-4);
    opacity: 0.85;
}

.tactic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-4);
}
.tactic-card p {
    font-size: 0.975rem;
    color: var(--clr-text-muted);
    max-width: none;
    line-height: 1.65;
}


/* ============================================================
   13. BLOCK 5 — COMMUNITY EVENTS
   ============================================================ */
.block-events { background: var(--clr-bg); }

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    margin-top: var(--sp-10);
}

.event-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
}

/* Image area: fixed height, character illustration sits at bottom */
.event-image {
    height: clamp(160px, 22vw, 240px);
    background: var(--clr-bg-alt);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.event-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.event-body {
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.event-body h3 {
    font-size: 1.35rem;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-2);
}

.event-partner {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-style: italic;
    margin-bottom: var(--sp-4);
    max-width: none;
}

/* Animated counter badge */
.event-data {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-2);
    background: var(--clr-accent-light);
    color: var(--clr-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: var(--sp-2) var(--sp-4);
    border-radius: 999px;
    border: 1px solid var(--clr-accent);
    width: fit-content;
    max-width: none;
    margin-top: auto;
}
.event-data span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
}


/* ============================================================
   14. BLOCK 6 — CALL TO ACTION  (single, centred)
   ============================================================ */
.cta-block {
    background-color: #37C6F4;           /* VTV logo blue */
    background-blend-mode: multiply;
    background-size: 680px auto;
    background-repeat: repeat;
    color: var(--clr-text-invert);
    padding-block: var(--sp-20) var(--sp-24);
    position: relative;
}
/* Solid logo-blue overlay — wave is barely visible through the 91% opacity */
.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(55, 198, 244, 0.91);   /* VTV sky blue */
    pointer-events: none;
    z-index: 0;
}
.cta-join { position: relative; z-index: 1; }

.cta-join {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 700;
    color: #1B3057;
    margin-bottom: var(--sp-5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-lead {
    font-size: 1.1rem;
    color: rgba(27, 48, 87, 0.80);
    margin-bottom: var(--sp-10);
    max-width: 48ch;
    line-height: 1.65;
}

.cta-lead a {
    color: #1B3057;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(27, 48, 87, 0.35);
    transition: border-color 0.2s;
}
.cta-lead a:hover { border-bottom-color: #1B3057; }

.cta-social-row {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: nowrap;
    justify-content: center;
}

.cta-social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    /* all buttons: VTV yellow, dark text, no lift on hover */
    background: #F5C800;
    color: #1A2535;
    border-color: #F5C800;
}
.cta-social-btn:hover {
    background: #D4AC00;
    border-color: #D4AC00;
    color: #1A2535;
    transform: none;
}

.cta-social-icon {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

/* Individual modifier classes kept for potential future differentiation,
   but overridden to match the unified yellow style above. */
.cta-social-btn--linkedin,
.cta-social-btn--instagram,
.cta-social-btn--email {
    background: #F5C800;
    color: #1A2535;
    border-color: #F5C800;
}
.cta-social-btn--linkedin:hover,
.cta-social-btn--instagram:hover,
.cta-social-btn--email:hover {
    background: #D4AC00;
    border-color: #D4AC00;
    color: #1A2535;
}


/* ============================================================
   14b. MAINTENANCE BANNER
   ============================================================ */
.maint-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-6);
    background: var(--clr-secondary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.maint-banner-msg {
    flex: 1;
    max-width: none;
    color: #fff;
    margin: 0;
}
.maint-banner-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}
.maint-banner-close:hover {
    background: rgba(255,255,255,0.28);
}

/* ============================================================
   15. BLOCK 7 — FOOTER
   ============================================================ */
.site-footer {
    background: var(--clr-bg);
    color: var(--clr-text);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-block: var(--sp-16);
}

.footer-grid-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-16);
    align-items: start;
}

.footer-brand-lockup img { height: 2.75rem; width: auto; }

.footer-primary {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
    max-width: 52ch;
    margin-bottom: var(--sp-8);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    margin-bottom: var(--sp-8);
}
.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-4);
}
.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-2);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--clr-text); }

.footer-small {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    opacity: 0.6;
    max-width: none;
    margin-bottom: var(--sp-1);
}

/* Partner org logos — right-aligned within the footer copy column */
.footer-partners {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: var(--sp-4);
    margin-top: var(--sp-4);
}
.footer-partners a {
    display: inline-flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.2s;
}
.footer-partners a:hover { opacity: 0.75; }
.footer-partners img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Full-width legal strip — spans both logo and copy columns */
.footer-legal {
    grid-column: 1 / -1;
    padding-top: var(--sp-4);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.newsletter-form {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: var(--radius);
    background: #fff;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: var(--clr-text-muted); opacity: 0.55; }
.newsletter-form input:focus { outline: 2px solid var(--clr-accent); outline-offset: 0; }
.newsletter-form input:disabled,
.newsletter-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #e5e5e5;
}
.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--clr-accent);
    color: var(--clr-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease);
}
.newsletter-form button:hover { background: #f0b830; }

.footer-action {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--clr-secondary);
    font-weight: 600;
    transition: color var(--ease);
}
.footer-action:hover { color: var(--clr-primary); }

/* Map placeholder used on the Engage page */
.map-placeholder {
    margin-top: var(--sp-6);
    border-radius: var(--radius-lg);
    background: var(--clr-bg-alt);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    padding: var(--sp-8);
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}
.map-placeholder img { max-height: 180px; object-fit: contain; opacity: 0.45; }


/* ============================================================
   16. ACCESSIBILITY
   ============================================================ */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 3px;
    border-radius: 2px;
}


/* ============================================================
   17. RESPONSIVE — TABLET  (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .tactics-grid  { grid-template-columns: 1fr; }
    .what-layout   { grid-template-columns: 1fr; gap: var(--sp-8); }
    .what-header   { position: static; }
}


/* ============================================================
   18. RESPONSIVE — MOBILE  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Nav */
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 4.5rem;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--clr-surface);
        padding: var(--sp-4);
        box-shadow: 0 6px 20px rgba(0,0,0,0.10);
        gap: var(--sp-1);
        z-index: 199;
    }
    .site-nav.is-open { display: flex; }
    .nav-link { padding: var(--sp-3) var(--sp-4); }
    .nav-cta    { display: none; }
    .nav-signin { display: none; }

    /* Hero */
    .hero-grid        { grid-template-columns: 1fr; text-align: center; }
    .hero-image       { display: none; }
    .hero-copy .lead  { margin-inline: auto; }

    /* Why statements */
    .why-stmt { padding-inline: var(--sp-4); }

    /* Grids */
    .events-grid  { grid-template-columns: 1fr; }
    .split        { grid-template-columns: 1fr; gap: var(--sp-8); }
    .card-grid-2  { grid-template-columns: 1fr; }
    .card-grid-3  { grid-template-columns: 1fr; }

    /* CTA form */
    .cta-form { flex-direction: column; }
    .cta-form input[type="email"],
    .cta-form .btn { width: 100%; }

    /* Footer */
    .footer-grid-wrap { grid-template-columns: 1fr; gap: var(--sp-8); }
    .footer-links     { grid-template-columns: 1fr 1fr; }

    /* Wave patterns hidden on mobile */
    .hero-wave::before,
    .wave-bg::before,
    .wave-dark::before { display: none; }
}


/* ============================================================
   19. RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .tactics-grid    { grid-template-columns: 1fr; }
    .footer-links    { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}


/* ============================================================
   20. HERO — VIBRANT VARIANT  (homepage splash)
   ============================================================ */
.hero--vibrant { background: #FFFFFF; }
.hero--vibrant h1,
.hero--vibrant h2 { color: var(--clr-text); }
.hero--vibrant .lead { color: var(--clr-text-muted); }
.hero--vibrant .eyebrow { color: var(--clr-accent); }
.hero--vibrant.hero-wave::before { opacity: 0.08; }


/* ============================================================
   21. GET INVOLVED — REDESIGNED CTA CARDS
   ============================================================ */
.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-text-invert);
    text-align: center;
    margin-bottom: var(--sp-10);
    max-width: none;
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.cta-card {
    background: var(--clr-surface);
    border-radius: 0 20px 20px 20px;
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.cta-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-1);
}

.cta-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    flex: 1;
    max-width: none;
    line-height: 1.65;
}

.cta-card .btn { margin-top: var(--sp-4); align-self: flex-start; }
.cta-card .btn:hover { transform: none; }  /* no lift animation */

@media (max-width: 768px) {
    .cta-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cta-card { padding: var(--sp-6); }
}


/* ============================================================
   22. COUNTDOWN BAR
   ============================================================ */
.countdown-bar {
    background: var(--clr-accent);   /* warm amber */
    color: var(--clr-secondary);
    height: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cd-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    height: 100%;
}
.cd-message {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--clr-secondary);
    opacity: 0.75;
}
.cd-clock {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    transform: translateY(6px);
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 1rem; /* room for the absolute label */
}
.cd-tiles {
    display: flex;
    gap: 2px;
}
.flip-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.95rem;
    background: var(--clr-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.22);
    user-select: none;
}
/* Split-flap centre line */
.flip-tile::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 1.5px;
    background: rgba(232,162,25,0.35);
    pointer-events: none;
}
@keyframes tileFlip {
    0%   { transform: scaleY(1);    opacity: 1; }
    35%  { transform: scaleY(0.04); opacity: 0.45; }
    65%  { transform: scaleY(0.04); opacity: 0.45; }
    100% { transform: scaleY(1);    opacity: 1; }
}
.flip-tile.is-flipping {
    animation: tileFlip 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.cd-unit-label {
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-secondary);
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.cd-colon {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-secondary);
    opacity: 0.45;
    line-height: 1;
    padding-bottom: 1rem; /* match cd-unit padding so colon aligns with tile centres */
}
.cd-expired {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}
.cd-expired-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-left: var(--sp-3);
}
@media (max-width: 768px) {
    .cd-message { display: none; }
    .cd-wrap { gap: var(--sp-3); }
    .flip-tile { width: 1.25rem; height: 1.7rem; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .countdown-bar { height: 60px; }
    .flip-tile { width: 1.1rem; height: 1.5rem; font-size: 0.85rem; }
    .cd-colon { font-size: 1.2rem; margin-bottom: 0.9rem; }
}


/* ============================================================
   23. EVENTS MAP PAGE
   ============================================================ */
.page-events main { padding: 0; overflow: hidden; }
.page-events .cta-block { margin-inline: auto; }
.events-page { display: flex; flex-direction: column; }
/* 7.25rem = admin bar (2.75rem) + site header (4.5rem) */
.map-layout { display: flex; height: calc(100vh - 7.25rem); min-height: 560px; overflow: hidden; }
.map-canvas { flex: 1; min-width: 0; z-index: 0; height: 100%; }
.map-panel {
    width: 360px;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--clr-surface);
    border-left: 2px solid var(--clr-secondary);
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.map-panel-default { padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-6); }
.mpanel-intro h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--clr-secondary); margin: var(--sp-2) 0 var(--sp-3); max-width: none; }
.mpanel-intro p { color: var(--clr-text-muted); font-size: 0.9rem; max-width: 36ch; }
.mpanel-legend { display: flex; flex-direction: column; gap: var(--sp-3); }
.mpanel-legend-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clr-text-muted); margin-bottom: var(--sp-2); max-width: none; }
.legend-item { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.85rem; color: var(--clr-text-muted); }
.legend-swatch { width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0; border: 1.5px solid rgba(0,0,0,0.15); }
.legend-toronto { background: #C63D1E; }
.legend-peel    { background: #E8A219; }
.legend-york    { background: #1B3057; }
.legend-durham  { background: #2D7D46; }
.legend-halton  { background: #6B35A3; }
.mpanel-note { font-size: 0.8rem; color: var(--clr-text-muted); font-style: italic; max-width: 36ch; }
.map-panel-detail { display: flex; flex-direction: column; }
.mpanel-back { all: unset; cursor: pointer; font-size: 0.82rem; color: var(--clr-primary); font-weight: 600; padding: var(--sp-3) var(--sp-6); border-bottom: 1px solid rgba(0,0,0,0.07); width: 100%; box-sizing: border-box; transition: background var(--ease); display: block; }
.mpanel-back:hover { background: rgba(198,61,30,0.06); }
.mpanel-header { padding: var(--sp-5) var(--sp-6) var(--sp-4); border-bottom: 1px solid rgba(0,0,0,0.07); }
.region-toronto { border-top: 4px solid var(--clr-primary); }
.region-peel    { border-top: 4px solid var(--clr-accent); }
.region-york    { border-top: 4px solid var(--clr-secondary); }
.region-durham  { border-top: 4px solid #2D7D46; }
.region-halton  { border-top: 4px solid #6B35A3; }

/* Admin create-event button in map side panel */
.mpanel-admin-action { padding-top: 0; }
.mpanel-create-btn {
    display: inline-block;
    padding: var(--sp-2) var(--sp-4);
    background: var(--clr-secondary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.mpanel-create-btn:hover { background: var(--clr-primary); color: #fff; }

/* ── Event cluster bubbles ──────────────────────────────── */
.vtv-event-cluster { background: transparent !important; border: none !important; }
.vtv-cluster-inner {
    width: 44px; height: 44px; border-radius: 50%; border: 3px solid;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.15s;
}
.vtv-cluster-inner:hover { transform: scale(1.1); }
.vtv-cluster-count { color: #fff; font-size: 1rem; font-weight: 800; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* ── Event pop-up card ──────────────────────────────────── */
.vtv-event-popup { font-family: var(--font-body); min-width: 180px; }
.vtv-event-popup h3 { font-size: 0.95rem; font-weight: 700; color: var(--clr-secondary); margin: 0.25rem 0; }
.vtv-event-popup-badge { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clr-primary); }
.vtv-popup-meta { font-size: 0.78rem; color: var(--clr-text-muted); margin: 0.15rem 0; line-height: 1.4; }
.vtv-popup-desc { font-size: 0.8rem; color: var(--clr-text); margin-top: 0.4rem; line-height: 1.45; border-top: 1px solid rgba(0,0,0,0.07); padding-top: 0.4rem; }

/* ── Event creation wizard ──────────────────────────────── */
.wiz-steps { display: flex; align-items: center; padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid rgba(0,0,0,0.07); gap: var(--sp-2); flex-wrap: nowrap; }
.wiz-step { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.75rem; font-weight: 600; color: var(--clr-text-muted); white-space: nowrap; }
.wiz-step-num { display: inline-flex; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #d1d5db; color: #fff; font-size: 0.68rem; font-weight: 800; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.wiz-step.is-active .wiz-step-num { background: var(--clr-primary); }
.wiz-step.is-active { color: var(--clr-secondary); }
.wiz-step.is-done .wiz-step-num { background: #16a34a; }
.wiz-step.is-done { color: #16a34a; }
.wiz-step-sep { flex: 1; height: 1px; background: #e5e7eb; min-width: 0.75rem; }
.wiz-page { padding: var(--sp-5) var(--sp-6); }
.wiz-loc-modes { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.wiz-mode-btn { flex: 1; padding: var(--sp-3) var(--sp-4); border: 2px solid #e5e7eb; border-radius: var(--radius); background: #fff; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--clr-text-muted); cursor: pointer; transition: all 0.15s; }
.wiz-mode-btn.is-active { border-color: var(--clr-secondary); color: var(--clr-secondary); background: rgba(27,48,87,0.05); }
.wiz-map-wrap { margin-bottom: var(--sp-3); }
.wiz-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid #e5e7eb; }
.wiz-map-hint { font-size: 0.75rem; color: var(--clr-text-muted); margin: var(--sp-2) 0 var(--sp-3); }
.wiz-map-selected { background: rgba(27,48,87,0.05); border: 1px solid rgba(27,48,87,0.18); border-radius: var(--radius); padding: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-3); font-size: 0.82rem; font-weight: 500; color: var(--clr-secondary); }
.wiz-selected-info { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.wiz-clear-location { all: unset; cursor: pointer; font-size: 0.75rem; color: var(--clr-text-muted); }
.wiz-location-name { margin-top: var(--sp-4); }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-5); border-top: 1px solid rgba(0,0,0,0.07); margin-top: var(--sp-5); gap: var(--sp-3); }
.wiz-nav > :only-child { margin-left: auto; }
.form-label-note { font-weight: 400; color: var(--clr-text-muted); font-size: 0.78em; }

/* Event provenance (creator + last 3 updates) in expanded edit panel */
.event-provenance { background: rgba(27,48,87,0.04); border: 1px solid rgba(27,48,87,0.10); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.event-provenance-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2); font-size: 0.8rem; }
.event-provenance-label { font-weight: 700; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; min-width: 6.5rem; flex-shrink: 0; }
.event-provenance-value { color: var(--clr-secondary); font-weight: 600; }
.event-provenance-date { color: var(--clr-text-muted); font-size: 0.75rem; }
.event-provenance-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.event-provenance-list li { display: flex; align-items: baseline; gap: var(--sp-2); }
.mpanel-region-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-text-muted); max-width: none; margin-bottom: var(--sp-1); }
.mpanel-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--clr-secondary); max-width: none; margin-bottom: var(--sp-4); line-height: 1.2; }
.mpanel-stats-row { display: flex; gap: var(--sp-8); }
.mpanel-stat strong { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--clr-primary); line-height: 1.1; }
.mpanel-stat span { font-size: 0.7rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mpanel-body { padding: var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-6); }
.mpanel-event-card { background: var(--clr-accent-light); border: 1px solid var(--clr-accent); border-radius: var(--radius-lg); padding: var(--sp-5); }
.mpanel-event-badge { display: inline-block; background: var(--clr-accent); color: var(--clr-secondary); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: var(--sp-2); }
.mpanel-event-card h3 { font-size: 0.95rem; color: var(--clr-secondary); margin-bottom: var(--sp-2); }
.mpanel-event-meta { font-size: 0.82rem; color: var(--clr-text-muted); max-width: none; line-height: 1.5; }
.mpanel-event-partner { font-size: 0.8rem; font-style: italic; color: var(--clr-text-muted); max-width: none; margin-top: var(--sp-1); }
.mpanel-voices { font-size: 0.9rem; color: var(--clr-secondary); font-weight: 600; margin: var(--sp-3) 0 var(--sp-1); max-width: none; }
.mpanel-voices strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--clr-primary); margin-right: 0.2em; }
.mpanel-event-desc { font-size: 0.8rem; color: var(--clr-text-muted); max-width: none; line-height: 1.6; margin-top: var(--sp-2); }
.mpanel-section h4 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-primary); margin-bottom: var(--sp-3); }
.mpanel-elections-text { font-size: 0.85rem; color: var(--clr-text-muted); max-width: none; line-height: 1.6; }
.mpanel-issues-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.mpanel-issues-list li { font-size: 0.85rem; color: var(--clr-text); padding-left: var(--sp-5); position: relative; max-width: none; line-height: 1.45; }
.mpanel-issues-list li::before { content: '→'; position: absolute; left: 0; color: var(--clr-primary); font-size: 0.75rem; top: 0.1em; }
.mpanel-ward-list { list-style: none; display: flex; flex-direction: column; }
.mpanel-ward-list li { display: flex; align-items: baseline; gap: var(--sp-3); font-size: 0.8rem; color: var(--clr-text-muted); padding: var(--sp-2) 0; border-bottom: 1px solid rgba(0,0,0,0.04); max-width: none; }
.ward-num { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--clr-secondary); min-width: 1.6rem; flex-shrink: 0; }
.ward-name { flex: 1; }
.vtv-tooltip { background: var(--clr-secondary) !important; color: #fff !important; border: none !important; border-radius: var(--radius) !important; font-family: var(--font-body) !important; font-size: 0.82rem !important; box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important; padding: 0.35rem 0.65rem !important; }
.vtv-tooltip::before { display: none !important; }
.muni-label { pointer-events: none !important; }
.muni-label span { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.5); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; transform: translate(-50%,-50%); position: relative; }

/* Ward number labels (appear at zoom >= 11) */
.ward-label { pointer-events: none !important; }
.ward-label span { display: block; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.65); transform: translate(-50%,-50%); position: relative; white-space: nowrap; }
.riding-label span { font-size: 0.65rem; font-weight: 600; max-width: 120px; white-space: normal; text-align: center; }

/* Zoom hint (bottom-left control) */
.map-zoom-hint { background: rgba(27,48,87,0.90); color: rgba(255,255,255,0.80); font-family: var(--font-body); font-size: 0.75rem; padding: 0.45rem 0.85rem; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.25); pointer-events: none; white-space: nowrap; margin-bottom: var(--sp-3); }

/* Zoom-in prompt inside the panel */
.mpanel-zoom-prompt { display: flex; align-items: center; gap: var(--sp-3); background: rgba(27,48,87,0.06); border: 1px solid rgba(27,48,87,0.12); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); font-size: 0.82rem; color: var(--clr-secondary); font-weight: 500; }
@media (max-width: 768px) {
    .map-layout { flex-direction: column; height: auto; }
    .map-canvas { height: 55vh; min-height: 300px; }
    .map-panel  { width: 100%; border-left: none; border-top: 2px solid var(--clr-secondary); max-height: 42vh; }
}


/* ============================================================
   OVERRIDE: cta-block padding (tighter than default)
   ============================================================ */
.cta-block { padding-block: var(--sp-16) !important; }


/* ============================================================
   24. CHARACTER CIRCLES
   ============================================================ */

/* Section setup: relative + overflow:visible so circle can bleed across boundary */
.content-block--circle-section {
    position: relative;
    overflow: visible;
}

/* Text takes left portion; right side reserved for the circle */
.block-text-wide {
    max-width: 62%;
}

/* Spacing between consecutive paragraphs in the What Is VTV text block */
.block-text-wide p + p {
    margin-top: var(--sp-6);
}

/* Extra breathing room between the section heading and first paragraph */
.block-text-wide h2 {
    margin-bottom: var(--sp-6);
}

/* First paragraph gets a little more visual separation from the second */
.block-text-wide .block-lead {
    margin-bottom: var(--sp-6);
}

/* ── Base circle ── */
.char-circle {
    --circle-bg: #F5C800;
    --tx: 0%;
    position: absolute;
    right: 4%;
    border-radius: 50%;
    background: var(--circle-bg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 320px;
    height: 320px;
    /* initial scroll-animation state */
    opacity: 0;
    transform: scale(0.72) translateX(var(--tx));
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.char-circle.in-view {
    opacity: 1;
    transform: scale(1) translateX(var(--tx));
}

/* Size variants */
.char-circle--lg { width: 370px; height: 370px; }
.char-circle--sm { width: 275px; height: 275px; }

/* Alternating horizontal nudge within the right-side zone */
.char-circle--offset-r { --tx:  18%; }
.char-circle--offset-l { --tx: -16%; }

/* ── Three section circles — colour-wheel-opposite backgrounds ── */
/* Char-6 (yellow+blue blob) → purple bg | Char-2 (pink blob) → green bg | Char-5 (purple blob) → yellow bg */

/* Char-6 — right edge, topmost */
.content-block--circle-1 > .char-circle:nth-child(2) {
    top: 40px;
    right: 4%;
    --tx: 0%;
    z-index: 2;
}

/* Char-2 — inner-left: right of the text content, left of the edge circles */
.content-block--circle-1 > .char-circle:nth-child(3) {
    top: 420px;
    right: 180px;  /* changed from 345px to prevent text overlap at ≤1440px */
    --tx: 0%;
    z-index: 3;
    transform: scale(0.72);
}
.content-block--circle-1 > .char-circle:nth-child(3).in-view {
    transform: scale(1);
}

/* Char-5 — right edge, bottom */
.content-block--circle-1 > .char-circle:nth-child(4) {
    top: 800px;
    right: 4%;
    --tx: 0%;
    z-index: 4;
}

/* Events-section circles removed from HTML; delete old rules */

/* Character image fills the circle */
.char-circle img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
    display: block;
}

/* ── Intermediate sizes: scale circles down before inline switch ── */
@media (max-width: 1100px) and (min-width: 1051px) {
    .char-circle,
    .char-circle--lg,
    .char-circle--sm {
        width: 240px !important;
        height: 240px !important;
    }
}

/* ── Mobile / tablet: revert to stacked inline circles ── */
/* Breakpoint raised from 900px → 1050px to prevent overlap at intermediate widths */
@media (max-width: 1050px) {
    .block-text-wide { max-width: 100%; }

    .char-circle,
    .char-circle--lg,
    .char-circle--sm {
        position: relative;
        right: auto;
        top: auto !important;
        bottom: auto !important;
        --tx: 0% !important;
        transform: scale(0.72);
        width: 200px !important;
        height: 200px !important;
        margin: var(--sp-6) auto 0;
    }
    .char-circle.in-view {
        transform: scale(1);
    }
}


/* ============================================================
   25. VALUES LIST (Block 3 — Why VTV)
   ============================================================ */
.values-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin: var(--sp-8) 0 0;
}
.value-item { margin: 0; }
.value-item dt {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #9DC44D;
    margin-bottom: var(--sp-1);
}
.value-item dd {
    margin: 0;
    color: var(--clr-text);
    line-height: 1.65;
    font-size: 0.95rem;
}


/* ============================================================
   26. TACTICS GRID (Block 4)
   ============================================================ */
/* Per-card accent colours drawn from the VTV palette */
.tactic-card:nth-child(1) { --card-accent: #37C6F4; }
.tactic-card:nth-child(2) { --card-accent: var(--clr-accent); }
.tactic-card:nth-child(3) { --card-accent: #7135AB; }
.tactic-card:nth-child(4) { --card-accent: #9DC44D; }
.tactic-card:nth-child(5) { --card-accent: var(--clr-primary); }

.tactic-card--full {
    grid-column: 1 / -1;
}
.tactic-card-cta {
    display: inline-block;
    margin-top: var(--sp-3);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--card-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}
.tactic-card {
    --card-accent: #37C6F4;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-accent);
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    padding: var(--sp-7) var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    position: relative;
}
/* Coloured corner tab removed */
.tactic-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--card-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tactic-card p {
    margin: 0;
    color: var(--clr-text);
    line-height: 1.7;
    font-size: 0.95rem;
}
@media (max-width: 640px) {
    .tactics-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   27. JOIN CONVERSATION CTA (Block 6)
   ============================================================ */
/* (duplicate cta-join / cta-lead block removed — styles live in Block 6 above) */


/* ============================================================
   28. HERO WITH CHARACTERS
   ============================================================ */
.hero--characters {
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-6);
    overflow-x: hidden;
}

.hero-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: var(--sp-12);
    width: 100%;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-5);
    padding-bottom: var(--sp-10);
    flex-shrink: 0;
}
.hero-logo {
    width: 315px;
    max-width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-top: var(--sp-8);
}
.hero-logo.is-loaded {
    opacity: 1;
}
.hero--characters .lead {
    color: #1A2535;
    max-width: 28ch;
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: 0.04em;
    font-weight: 900;
}

.hero-chars {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-10);
}
.hero-chars--left  { justify-content: flex-end; }
.hero-chars--right { justify-content: flex-start; }

/* Characters are sized by height so their natural proportions don't
   inflate the section. Width is auto so aspect ratio is preserved. */
.hchar {
    position: absolute;
    height: 190px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hchar.is-loaded {
    opacity: 1;
}

/* Alternating up/down offsets and slight rotations */
.hchar--1 { --hchar-y: -50px;  --hchar-r: -4deg; }
.hchar--2 { --hchar-y:  40px;  --hchar-r:  5deg; }
.hchar--3 { --hchar-y: -80px;  --hchar-r: -7deg; }
.hchar--4 { --hchar-y: -70px;  --hchar-r:  6deg; }
.hchar--5 { --hchar-y:  35px;  --hchar-r: -3deg; }
.hchar--6 { --hchar-y: -55px;  --hchar-r:  8deg; }
.hchar--7 { --hchar-y:  25px;  --hchar-r:  4deg; }
.hchar--8 { --hchar-y: -40px;  --hchar-r: -5deg; }
/* Pre-loaded state: shift down slightly before fading in */
.hchar:not(.is-loaded) { transform: translateY(calc(var(--hchar-y, 0px) + 12px)) rotate(var(--hchar-r, 0deg)); }
.hchar.is-loaded       { transform: translateY(var(--hchar-y, 0px))              rotate(var(--hchar-r, 0deg)); }

@media (max-width: 900px) {
    .hero-stage { grid-template-columns: 1fr; justify-items: center; gap: 0; }
    .hero-chars { justify-content: center; }
    .hchar { height: 100px; width: auto; }
    .hero-logo { width: 240px; }
    .hero-center { gap: var(--sp-4); padding-bottom: var(--sp-6); }
}
@media (max-width: 480px) {
    .hchar { height: 72px; width: auto; }
    .hero-logo { width: 180px; }
}


/* ============================================================
   29. CIRCLE-3 IN-VIEW ANIMATION
   ============================================================ */
/* Events section circles in-view */
.content-block--events > .char-circle.in-view {
    opacity: 1;
    transform: scale(1) translateX(var(--tx));
}


/* ============================================================
   30. FONT REFINEMENTS — Proxima Nova / Nunito
   ============================================================ */

/* Tighten heading tracking for geometric sans-serif */
h1, h2 { letter-spacing: -0.02em; }
h3, h4 { letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }

.eyebrow { letter-spacing: 0.12em; font-weight: 700; }

.btn {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* ============================================================
   31. OVERFLOW PROTECTION
   ============================================================ */

/* Prevent absolutely-positioned circles causing horizontal scroll */
html { overflow-x: hidden; }
.content-block--circle-section { overflow-x: clip; }


/* ============================================================
   31. LOGIN PAGE
   ============================================================ */
.login-hero {
    background: var(--clr-secondary);
    min-height: calc(100vh - 4.5rem - 120px);
    display: flex;
    align-items: center;
    padding-block: var(--sp-20);
}

.login-hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-12) var(--sp-10);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.login-card .eyebrow {
    color: var(--clr-primary);
    margin-bottom: var(--sp-3);
}

.login-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-2);
    line-height: 1.1;
}

.login-subtext {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--sp-8);
}

.login-alert {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.9rem;
    margin-bottom: var(--sp-6);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-2);
    margin-top: var(--sp-5);
}
.login-label:first-of-type { margin-top: 0; }

.login-input {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.login-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(198,61,30,0.12);
}

.login-submit {
    margin-top: var(--sp-8);
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    justify-content: center;
}

.login-back {
    margin-top: var(--sp-6);
    text-align: center;
    font-size: 0.875rem;
}
.login-back a {
    color: var(--clr-text-muted);
    transition: color 0.2s;
}
.login-back a:hover { color: var(--clr-primary); }

/* Active state for Sign In nav item on login page */
.nav-signin--active {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}


/* ============================================================
   32. RESPONSIVE — LARGE TABLET (≤ 1150px)
   Scale down circles and widen text before mobile collapse
   ============================================================ */
@media (max-width: 1150px) {
    .block-text-wide { max-width: 58%; }

    /* Scale circles down to fit the reduced right-side space */
    .char-circle--lg { width: 310px; height: 310px; }
    .char-circle     { width: 270px; height: 270px; }
    .char-circle--sm { width: 230px; height: 230px; }

    /* Reduce offsets to avoid horizontal overflow */
    .char-circle--offset-r { --tx:  10%; }
    .char-circle--offset-l { --tx: -10%; }

    /* Hero characters slightly smaller */
    .hchar { width: 110px; }
}


/* ============================================================
   33. RESPONSIVE — TABLET (≤ 900px)
   Full single-column layout, circles go in-flow below text
   ============================================================ */
@media (max-width: 900px) {
    /* ── Typography ── */
    h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

    /* ── Section padding ── */
    .content-block { padding-block: var(--sp-16); }
    .content-block--circle-section { padding-block: var(--sp-12) var(--sp-16); }

    /* ── Block text: full width ── */
    .block-text-wide { max-width: 100%; }

    /* ── Circles: revert to in-flow ── */
    .content-block--circle-section .char-circle {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: scale(0.72) translateX(0%) !important;
        width: 220px !important;
        height: 220px !important;
        --tx: 0% !important;
        margin: var(--sp-8) auto 0;
    }
    .content-block--circle-section .char-circle.in-view {
        transform: scale(1) translateX(0%) !important;
    }
    /* Circle-3 has extra translateY in its rule; neutralise it */
    .content-block--circle-3 .char-circle {
        transform: scale(0.72) !important;
    }
    .content-block--circle-3 .char-circle.in-view {
        transform: scale(1) !important;
    }

    /* ── Hero: maintain arc grid layout, scale characters down ── */
    .hero-stage { grid-template-columns: 120px 1fr 120px; gap: var(--sp-1); align-items: center; }
    .hero-center { padding-bottom: var(--sp-4); }
    .hero--characters .lead { font-size: 1rem; max-width: none; }

    /* ── Tactics grid ── */
    .tactics-grid { grid-template-columns: 1fr; }

    /* ── Events grid ── */
    .events-grid { grid-template-columns: 1fr; }

    /* ── CTA social ── */
    .cta-social-row { flex-direction: column; align-items: center; }
    .cta-social-row .btn { width: 100%; max-width: 340px; text-align: center; }
}


/* ============================================================
   34. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    /* ── Section padding ── */
    .content-block          { padding-block: var(--sp-12); }
    .content-block--circle-section { padding-block: var(--sp-10); }
    .cta-block              { padding-block: var(--sp-12) !important; }

    /* ── Hero ── */
    .hchar { width: 72px; }
    .hero-logo { width: 190px; }
    .hero--characters .lead { font-size: 0.95rem; }
    .hero--characters { padding-top: var(--sp-6); }

    /* ── Circles: hide on small screens — avoid disconnected floating images ── */
    .content-block--circle-section .char-circle { display: none !important; }

    /* ── Values list ── */
    .values-list { gap: var(--sp-4); }
    .value-item dt { font-size: 0.95rem; }
    .value-item dd { font-size: 0.9rem; }

    /* ── Tactics cards ── */
    .tactic-card { padding: var(--sp-5); }

    /* ── Event images ── */
    .event-image { height: 160px; }
    .event-image img { object-fit: contain; }

    /* ── Footer ── */
    .footer-links { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

    /* ── Navigation ── */
    .nav-cta    { display: none; }
    .nav-signin { display: none; }

    /* ── Admin bar: hide greeting to prevent overflow ── */
    .admin-bar-greeting { display: none; }
    .admin-bar-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-bar-tab { font-size: 0.72rem; padding: 0 var(--sp-3); }

    /* ── CTA social buttons: stack full-width ── */
    .cta-social-row { flex-direction: column; align-items: center; }
    .cta-social-btn { width: 100%; max-width: 320px; justify-content: center; }
}


/* ============================================================
   35. RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
    .hchar { width: 56px; }
    .hero-logo { width: 155px; }

    .content-block--circle-section .char-circle {
        width: 150px !important;
        height: 150px !important;
    }

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

    /* Reduce comic-book box-shadow offset on very small screens */
    .content-block {
        box-shadow: 4px 4px 0 var(--clr-secondary);
        width: calc(100% - 1rem);
    }

    /* Newsletter form stack */
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; }
}


/* ============================================================
   36. FIX: REMOVE CIRCLE CLIPPING
   overflow-x: clip (added in §31) triggers BFC which also
   clips vertical overflow, cutting off cross-section circles.
   ============================================================ */
.content-block--circle-section { overflow: visible !important; }


/* ============================================================
   37. HERO — SCATTERED CHARACTER ARRANGEMENT
   Characters are absolutely positioned around a central logo
   block, mirroring the VTV poster reference. The hero-scene
   container sets the height; hero-center is flex-centered.
   ============================================================ */

.hero-scene {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Center content floats above characters */
.hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
    padding-block: var(--sp-6);
    max-width: 420px;
}

/* ── Left-side characters ── */
.hchar--1 { top: -15px; left: 23%;  height: 217px; transform: rotate(-4deg); }
.hchar--2 { top: 0;     left: 2%;   height: 193px; transform: rotate(-8deg); }
.hchar--3 { top: 42%;  left: 1%;   height: 211px; transform: rotate(-3deg); }
.hchar--7 { bottom: 0;  left: 18%;  height: 235px; transform: rotate(4deg);  }

/* ── Right-side characters ── */
.hchar--4 { top: 0;     right: 2%;  height: 217px; transform: rotate(5deg);  }
.hchar--5 { top: -15px; right: 23%; height: 193px; transform: rotate(8deg);  }
.hchar--6 { bottom: 0;  right: 18%; height: 211px; transform: rotate(4deg);  }
.hchar--8 { top: 45%;  right: 1%;  height: 235px; transform: rotate(-5deg); }

/* ── Fade in keeping rotation (specificity 0-2-0 wins over section-28's
      .hchar.is-loaded at same specificity, because §37 is later) ── */
.hchar--1.is-loaded { opacity: 1; transform: rotate(-4deg); }
.hchar--2.is-loaded { opacity: 1; transform: rotate(-8deg); }
.hchar--3.is-loaded { opacity: 1; transform: rotate(-3deg); }
.hchar--7.is-loaded { opacity: 1; transform: rotate(4deg);  }
.hchar--4.is-loaded { opacity: 1; transform: rotate(5deg);  }
.hchar--5.is-loaded { opacity: 1; transform: rotate(8deg);  }
.hchar--6.is-loaded { opacity: 1; transform: rotate(4deg);  }
.hchar--8.is-loaded { opacity: 1; transform: rotate(-5deg); }

/* Extra breathing room above Join button */
.hero-center .btn { margin-top: var(--sp-2); }

/* Intermediate desktop sizes: shrink hero characters to prevent centre overlap */
@media (max-width: 1200px) and (min-width: 901px) {
    .hchar                  { height: 150px; }
    .hchar--7, .hchar--8   { height: 165px; }
    .hchar--1               { left: 18%; }
    .hchar--5               { right: 18%; }
    .hero-center            { max-width: 380px; }
}

@media (max-width: 900px) {
    .hero-scene    { min-height: 340px; }
    .hchar         { height: 110px; }
    .hchar--7, .hchar--8 { height: 125px; }
    .hero-logo     { width: 220px; }
    .hero--characters .lead { font-size: 1rem; }
}
@media (max-width: 600px) {
    .hero-scene    { min-height: 280px; }
    /* Hide inner characters that crowd the center content on narrow screens */
    .hchar--1, .hchar--5, .hchar--6, .hchar--7 { display: none; }
    .hchar         { height: 92px; }
    .hchar--3, .hchar--8 { height: 105px; }
    .hero-logo     { width: 175px; }
    .hero-center   { max-width: 100%; }
    .hero--characters .lead { font-size: clamp(0.9rem, 4.5vw, 1.05rem); max-width: none; }
}
@media (max-width: 380px) {
    .hero-scene    { min-height: 230px; }
    .hchar         { height: 70px; }
    .hchar--3, .hchar--8 { height: 80px; }
    .hero-logo     { width: 145px; }
    .hero--characters .lead { font-size: clamp(0.82rem, 4.2vw, 0.95rem); }
}


/* ============================================================
   38. WHY VTV — SECOND (BOTTOM) CIRCLE
   Positioned at the bottom of the Why VTV section so it
   bleeds 65px down into the Tactics section below.
   ============================================================ */
.char-circle--bottom {
    top:    auto !important;   /* override the circle-2 top: -70px rule */
    bottom: -65px;
}

/* Value item visual refinement */
.value-item {
    padding: var(--sp-3) var(--sp-4);
    border-left: 3px solid #9DC44D;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.value-item dt { font-size: 1rem; margin-bottom: var(--sp-1); }


/* ============================================================
   39. TEAM PAGE
   ============================================================ */

/* ── Page intro banner (matches training/grants hero style) ── */
.team-intro {
    background: var(--clr-secondary);
    color: var(--clr-text-invert);
    padding: var(--sp-16) 0 var(--sp-12);
}
.team-intro-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-4);
    line-height: 1.1;
}
.team-intro-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.80);
    max-width: 56ch;
    line-height: 1.6;
}

/* ── Section heading ── */
.team-section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-8);
}

/* ── Grids ── */
.team-grid {
    display: grid;
    gap: var(--sp-8);
}
.team-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.team-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.team-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
    margin-inline: auto;
}

/* ── Team card ── */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-6) var(--sp-7);
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transition: transform var(--ease), box-shadow var(--ease);
}
.team-card:hover {
    transform: none;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
}

/* Smaller variant — student team */
.team-card--sm {
    padding: var(--sp-6) var(--sp-4) var(--sp-6);
    gap: var(--sp-2);
}

/* ── Avatar circle ── */
.team-avatar {
    --avatar-bg: #37C6F4;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: var(--sp-2);
}
.team-avatar img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* Darkened placeholder — headshots coming soon */
.team-avatar--dark {
    background: #111827;
}

/* Real headshot — circle crop */
.team-avatar--photo {
    align-items: center;
    background: #e8e8e8;
}
.team-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Smaller avatar for student cards */
.team-card--sm .team-avatar {
    width: 110px;
    height: 110px;
    margin-bottom: var(--sp-1);
}

/* ── Card text ── */
.team-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-secondary);
    margin: 0;
    line-height: 1.25;
}
.team-card--sm .team-name { font-size: 0.95rem; }

.team-role {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
    margin: 0;
}
.team-card--sm .team-role { font-size: 0.82rem; }

.team-org {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    opacity: 0.75;
    margin: 0;
}

/* Sub-sections within the combined team section */
.team-sub-section {
    text-align: center;
}
.team-sub-section + .team-sub-section {
    margin-top: var(--sp-20);
    padding-top: var(--sp-20);
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* Smaller sub-heading for grouped team rows */
.team-sub-heading {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-8);
}

/* Centered grid variant (for sub-sections) */
.team-grid--centered {
    margin-inline: auto;
}

/* ── Field staff banner ── */
.team-field-banner {
    background: #37C6F4;
    color: var(--clr-secondary);
    padding-block: var(--sp-12);
    text-align: center;
}
.team-field-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 var(--sp-2);
    opacity: 0.75;
}
.team-field-count {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 var(--sp-4);
    color: var(--clr-secondary);
}
.team-field-desc {
    font-size: 1rem;
    max-width: 44ch;
    margin-inline: auto;
    color: var(--clr-secondary);
    opacity: 0.85;
    line-height: 1.6;
}

/* ── United Way thanks ── */
.team-thanks-section {
    background: var(--clr-bg-alt);
    border-top: 1px solid rgba(0,0,0,0.07);
}
.team-thanks-intro {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 72ch;
    margin-bottom: var(--sp-6);
    color: var(--clr-text);
}
.team-thanks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-10);
}
.team-thanks-list li {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--clr-secondary);
    line-height: 1.5;
}

/* ── Funders section ── */
.team-funders-section { text-align: center; }
.team-funders-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-10);
}
.funders-logos {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-8) var(--sp-10);
}
.funder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    width: 180px;
}
.funder-card--lg {
    width: 230px;
}
.funder-logo {
    width: 180px;
    height: 90px;
    background: var(--clr-surface);
    border: 2px solid var(--clr-bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.funder-logo--lg {
    width: 230px;
    height: 120px;
    padding: var(--sp-5);
}
.funder-logo--tight {
    padding: var(--sp-2);
}
.funder-logo:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.funder-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.funder-logo-placeholder {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.4;
}
.funder-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-secondary);
    text-align: center;
    line-height: 1.35;
    max-width: 100%;
}

/* ── Team page responsive ── */
@media (max-width: 1024px) {
    .team-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .team-grid--4,
    .team-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .team-grid--2 { max-width: 100%; }
}
@media (max-width: 480px) {
    .team-grid--4,
    .team-grid--3,
    .team-grid--2 { grid-template-columns: 1fr; max-width: 100%; }
    .team-avatar   { width: 130px; height: 130px; }
}

/* ── Field Agent Bar ─────────────────────────────────────── */
.agent-bar {
    background: var(--clr-secondary);
    color: var(--clr-text-invert);
    width: 100%;
}
.agent-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-top: var(--sp-2);
    padding-bottom: var(--sp-2);
}
.agent-bar-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--ease);
    padding: var(--sp-1) 0;
}
.agent-bar-toggle:hover { color: #fff; }
.agent-bar-toggle .agent-bar-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 280ms ease;
}
.agent-bar-toggle[aria-expanded="true"] .agent-bar-arrow {
    transform: rotate(180deg);
}

/* Login form slide panel */
.agent-login-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 320ms ease;
    background: #14243f;
}
.agent-login-panel.is-open {
    max-height: 200px;
}
.agent-login-panel-inner {
    padding: var(--sp-5) 0 var(--sp-6);
}
.agent-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--sp-3) var(--sp-4);
    justify-content: center;
}
.agent-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.agent-form-group label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}
.agent-form-group input {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: var(--sp-2) var(--sp-3);
    width: 220px;
    transition: border-color var(--ease), background var(--ease);
}
.agent-form-group input::placeholder { color: rgba(255,255,255,.35); }
.agent-form-group input:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255,255,255,.15);
}
.agent-form-submit {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--sp-2) var(--sp-5);
    cursor: pointer;
    transition: background var(--ease);
    height: 38px;
}
.agent-form-submit:hover { background: var(--clr-primary-dark); }
.agent-form-submit:disabled { opacity: .6; cursor: wait; }
.agent-form-error {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #ff9a9a;
    margin-top: var(--sp-1);
}

/* Logged-in state */
.agent-bar-status {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}

.agent-bar-loggedin-label { color: #fff; }
.agent-bar-separator { opacity: .35; }
.agent-bar-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: rgba(255,255,255,.55);
    transition: color var(--ease);
    padding: 0;
}
.agent-bar-logout-btn:hover { color: #fff; }

/* Connected popup */
.agent-connected-popup {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1a7a3c;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--sp-3) var(--sp-6);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    opacity: 0;
    transition: opacity 350ms ease, transform 350ms ease;
    pointer-events: none;
    z-index: 9999;
}
.agent-connected-popup.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


@media (max-width: 600px) {
    .agent-form-group input { width: 100%; min-width: 0; }
    .agent-form {
        flex-direction: column;
        align-items: stretch;
    }
    .agent-form-submit { width: 100%; }
}


/* ============================================================
   TRAINING PAGE
   ============================================================ */
.training-intro {
    background: var(--clr-secondary);
    color: var(--clr-text-invert);
    padding: var(--sp-16) 0 var(--sp-12);
}
.training-intro-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-6);
}
.training-intro-body p {
    max-width: 72ch;
    margin-bottom: var(--sp-4);
}
.training-intro .training-intro-body p {
    color: rgba(255,255,255,.85);
}
.training-sessions-section .training-intro-body p {
    color: var(--clr-text);
}
.training-intro-body p:last-child { margin-bottom: 0; }
.training-subheading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-top: var(--sp-4);
}

.training-sessions-section { padding-block: var(--sp-16); }

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}

/* Training card */
.training-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
}
/* .training-card--inperson and .training-card--virtual have no accent border — matches event-card style */

.training-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--clr-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.training-card-image img {
    width: 70%;
    height: 100%;
    object-fit: contain;
    padding: var(--sp-4);
}

.training-card-body {
    padding: var(--sp-6) var(--sp-6) var(--sp-7);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    flex: 1;
}

.training-card-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin: 0;
}
.training-card--virtual .training-card-tag { color: #7135AB; }

.training-card-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--clr-secondary);
    line-height: 1.25;
    margin: 0;
}

.training-card-subtitle {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    margin: 0;
}

.training-card-meta {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    margin: var(--sp-1) 0;
}
.training-card-meta > div {
    display: flex;
    gap: var(--sp-2);
    font-size: 0.9rem;
}
.training-card-meta dt {
    font-weight: 700;
    color: var(--clr-secondary);
    flex-shrink: 0;
    min-width: 4.5rem;
}
.training-card-meta dd {
    color: var(--clr-text-muted);
    margin: 0;
}

.training-card-desc {
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin: 0;
}

.training-card-tuned {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    font-style: italic;
    margin: auto 0 0;
    padding-top: var(--sp-2);
}

.training-card-cta {
    display: inline-block;
    margin-top: auto;
    padding-top: var(--sp-3);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--ease);
}
.training-card-cta:hover { color: var(--clr-primary-dark); }

.training-virtual-intro {
    font-size: 1rem;
    color: var(--clr-text);
    max-width: 72ch;
    margin-bottom: var(--sp-2);
    line-height: 1.65;
}
.training-virtual-intro strong { color: var(--clr-secondary); }

.training-contact {
    margin-top: var(--sp-12);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    text-align: center;
}
.training-contact a {
    color: var(--clr-primary);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .training-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .training-grid { grid-template-columns: 1fr; }
    .training-card-image { aspect-ratio: 3 / 2; }
}

/* ============================================================
   GRANTS PAGE
   ============================================================ */

/* Shared button variants — colour overrides only; all base styles come from .btn */
.btn-grants-indiv { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn-grants-indiv:hover { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); }

.btn-grants-org { background: #9DC44D; color: var(--clr-secondary); border-color: #9DC44D; }
.btn-grants-org:hover { background: #88B041; border-color: #88B041; color: var(--clr-secondary); }

/* ─── Hero ─── */
.grants-hero {
    background: var(--clr-secondary);
    color: #fff;
    padding: var(--sp-16) 0 var(--sp-12);
}
.grants-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: var(--sp-6);
    color: #fff;
    line-height: 1.1;
}
.grants-hero-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: var(--sp-4);
    color: rgba(255,255,255,.85);
    max-width: 72ch;
}
.grants-hero-region {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: var(--sp-8);
    max-width: 72ch;
}
.grants-cta-row {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: var(--sp-6);
}
.grants-deadline-pill {
    display: inline-block;
    background: var(--clr-accent);
    color: var(--clr-secondary);
    border-radius: 2rem;
    padding: 0.35rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ─── At a Glance ─── */
.grants-glance-section { background: var(--clr-bg); }
.grants-glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
.grants-glance-card:nth-child(1) { --card-accent: #37C6F4; }
.grants-glance-card:nth-child(2) { --card-accent: var(--clr-accent); }
.grants-glance-card:nth-child(3) { --card-accent: #7135AB; }
.grants-glance-card:nth-child(4) { --card-accent: #9DC44D; }
.grants-glance-card {
    --card-accent: var(--clr-accent);
    background: var(--clr-surface);
    border: 2px solid var(--card-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.grants-glance-amount {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--clr-secondary);
    line-height: 1.15;
}
.grants-glance-label {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    line-height: 1.45;
}

/* ─── About ─── */
.grants-about-inner { max-width: 760px; margin: 0 auto; }
.grants-about-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-5);
}
.grants-about-list {
    margin: var(--sp-4) 0 0 var(--sp-5);
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.grants-about-list li {
    font-size: 1rem;
    color: var(--clr-text);
    line-height: 1.6;
}

/* ─── Who Can Apply ─── */
.grants-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-8);
    text-align: center;
}
.grants-who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6);
}
.grants-who-card {
    --card-accent: var(--clr-primary);
    background: var(--clr-surface);
    border: 2px solid var(--card-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.grants-who-card--org { --card-accent: #9DC44D; }
.grants-who-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-secondary);
}
.grants-who-card p {
    font-size: 0.975rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    flex: 1;
}
.grants-eligibility-note {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.55;
    margin-top: var(--sp-2);
}

.grants-who-card .btn {
    padding-inline: 1.65rem;
}

/* ─── Idea cards ─── */
.grants-ideas-intro {
    max-width: 680px;
    margin: 0 auto var(--sp-8);
    text-align: center;
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
}
.grants-ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    align-items: start;
}
.grants-idea-card:nth-child(1)  { --card-accent: #9DC44D; }
.grants-idea-card:nth-child(2)  { --card-accent: #37C6F4; }
.grants-idea-card:nth-child(3)  { --card-accent: var(--clr-accent); }
.grants-idea-card:nth-child(4)  { --card-accent: #7135AB; }
.grants-idea-card:nth-child(5)  { --card-accent: #37C6F4; }
.grants-idea-card:nth-child(6)  { --card-accent: #9DC44D; }
.grants-idea-card:nth-child(7)  { --card-accent: #7135AB; }
.grants-idea-card:nth-child(8)  { --card-accent: var(--clr-accent); }
.grants-idea-card:nth-child(9)  { --card-accent: var(--clr-primary); }
.grants-idea-card:nth-child(10) { --card-accent: #37C6F4; }
.grants-idea-card {
    --card-accent: var(--clr-secondary);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-accent);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
}
.grants-idea-card:has(.grants-idea-toggle[aria-expanded="true"]) {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.grants-idea-toggle {
    all: unset;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--sp-3);
    row-gap: var(--sp-1);
    padding: var(--sp-5) var(--sp-5);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.grants-idea-toggle:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: -2px; }
.grants-idea-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-secondary);
    grid-column: 1;
    grid-row: 1;
    line-height: 1.3;
}
.grants-idea-short {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    grid-column: 1;
    grid-row: 2;
    line-height: 1.45;
}
.grants-idea-icon {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 22px;
    height: 22px;
    color: var(--clr-primary);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.grants-idea-icon svg { width: 100%; height: 100%; }
.grants-idea-toggle[aria-expanded="true"] .grants-idea-icon { transform: rotate(45deg); }
.grants-idea-body {
    padding: 0 var(--sp-5) var(--sp-5);
    font-size: 0.9rem;
    color: var(--clr-text);
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.07);
}
.grants-idea-body p { padding-top: var(--sp-4); margin: 0; }

/* ─── Review criteria ─── */
.grants-criteria-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
    max-width: 860px;
}
.grants-criterion-item:nth-child(1) { --criterion-color: #37C6F4; }
.grants-criterion-item:nth-child(2) { --criterion-color: var(--clr-accent); }
.grants-criterion-item:nth-child(3) { --criterion-color: #7135AB; }
.grants-criterion-item:nth-child(4) { --criterion-color: #9DC44D; }
.grants-criterion-item:nth-child(5) { --criterion-color: var(--clr-primary); }
.grants-criterion-item:nth-child(6) { --criterion-color: var(--clr-secondary); }
.grants-criterion-item {
    --criterion-color: var(--clr-primary);
    padding: var(--sp-3) var(--sp-5);
    border-left: 3px solid var(--criterion-color);
    background: var(--clr-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.grants-criterion-item dt {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--criterion-color);
    margin-bottom: var(--sp-1);
}
.grants-criterion-item dd {
    margin: 0;
    color: var(--clr-text);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ─── Deadlines ─── */
.grants-deadlines-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin: var(--sp-8) auto var(--sp-6);
    max-width: 560px;
}
.grants-deadline-item:nth-child(1) { --deadline-color: var(--clr-accent); }
.grants-deadline-item:nth-child(2) { --deadline-color: #37C6F4; }
.grants-deadline-item:nth-child(3) { --deadline-color: #7135AB; }
.grants-deadline-item {
    --deadline-color: var(--clr-secondary);
    padding: var(--sp-4) var(--sp-5);
    border-left: 3px solid var(--deadline-color);
    background: var(--clr-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.grants-deadline-item dt {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--deadline-color);
    margin-bottom: var(--sp-2);
}
.grants-deadline-item dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}
.grants-rounds-note {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    text-align: center;
    margin-inline: auto;
    max-width: none;
    margin-bottom: var(--sp-6);
}

/* ─── After funding ─── */
.grants-after-callout {
    background: #fff3cd;
    border-left: 4px solid var(--clr-accent);
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-6);
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 1.55;
}
.grants-after-callout p { max-width: none; }
.grants-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    margin-bottom: var(--sp-6);
}
.grants-after-card:nth-child(1) { --card-accent: var(--clr-primary); }
.grants-after-card:nth-child(2) { --card-accent: #9DC44D; }
.grants-after-card {
    --card-accent: var(--clr-primary);
    background: var(--clr-surface);
    border: 2px solid var(--card-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.grants-after-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--clr-secondary);
    margin-bottom: var(--sp-3);
}
.grants-after-card p { font-size: 0.95rem; color: var(--clr-text-muted); line-height: 1.6; margin: 0; }
.grants-report-note {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    max-width: none;
    margin-top: var(--sp-4);
}

/* ─── FAQ ─── */
.grants-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.grants-faq-item:nth-child(4n+1) { --card-accent: #37C6F4; }
.grants-faq-item:nth-child(4n+2) { --card-accent: var(--clr-accent); }
.grants-faq-item:nth-child(4n+3) { --card-accent: #7135AB; }
.grants-faq-item:nth-child(4n) { --card-accent: #9DC44D; }
.grants-faq-item {
    --card-accent: var(--clr-secondary);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--card-accent);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}
.grants-faq-q {
    all: unset;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    width: 100%;
    box-sizing: border-box;
    padding: var(--sp-5) var(--sp-6);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-secondary);
    text-align: left;
}
.grants-faq-q:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: -2px; }
.grants-faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--clr-primary);
    transition: transform 0.2s;
}
.grants-faq-q[aria-expanded="true"] .grants-faq-chevron { transform: rotate(180deg); }
.grants-faq-a {
    padding: var(--sp-1) var(--sp-6) var(--sp-5);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.grants-faq-a p { margin: 0; padding-top: var(--sp-3); }

/* ─── Final CTA ─── */
.grants-final-cta {
    background: #9DC44D;
    color: var(--clr-secondary);
    padding: var(--sp-16) 0;
    text-align: center;
}
.grants-final-cta-inner { max-width: 680px; margin: 0 auto; }
.grants-final-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-5);
}
.grants-final-cta p { font-size: 1rem; color: var(--clr-secondary); line-height: 1.65; margin-bottom: var(--sp-4); }
.grants-final-contact { font-size: 0.9rem; color: var(--clr-secondary); margin-top: var(--sp-4) !important; }
.grants-final-contact a { color: var(--clr-secondary); font-weight: 700; text-decoration: underline; }
/* Centre CTA button rows in deadlines section and final CTA */
.grants-deadlines-section .grants-cta-row,
.grants-final-cta .grants-cta-row { justify-content: center; }
/* Override button colours on green background so both remain readable */
.grants-final-cta .btn-grants-indiv {
    background: var(--clr-secondary);
    color: #fff;
    border-color: var(--clr-secondary);
}
.grants-final-cta .btn-grants-indiv:hover { background: #142540; border-color: #142540; }
.grants-final-cta .btn-grants-org {
    background: var(--clr-secondary);
    color: #fff;
    border-color: var(--clr-secondary);
}
.grants-final-cta .btn-grants-org:hover { background: #142540; border-color: #142540; color: #fff; }

/* ─── Sticky CTA bar ─── */
.grants-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 199;
    background: var(--clr-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    height: 2.75rem; /* fixed height matches admin bar */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.grants-sticky-bar.is-visible {
    transform: translateY(0);
}
/* push it below admin bar when present */
.has-admin-bar .grants-sticky-bar { top: 2.75rem; }
/* Push site-header below the grants bar when it is visible */
body.has-grants-bar .site-header { top: 2.75rem; }
body.has-admin-bar.has-grants-bar .site-header { top: 5.5rem; }
.grants-sticky-bar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--sp-5);
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: hidden;
}
.grants-sticky-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}
.grants-sticky-btns {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.grants-sticky-btns .btn-grants-indiv,
.grants-sticky-btns .btn-grants-org {
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
}

/* light deadline pill variant (on green background) */
.grants-deadline-pill--light {
    background: rgba(27,48,87,0.12);
    color: var(--clr-secondary);
    margin-bottom: var(--sp-6);
    display: inline-block;
}

/* Expand all button */
.grants-faq-controls {
    display: flex;
    justify-content: flex-end;
    max-width: 760px;
    margin: 0 auto var(--sp-3);
}
.grants-faq-expandall {
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: var(--radius);
    padding: 0.35rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.grants-faq-expandall:hover {
    background: var(--clr-secondary);
    color: #fff;
    border-color: var(--clr-secondary);
}
.grants-faq-expandall:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }

@media (max-width: 640px) {
    .grants-sticky-bar-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .grants-sticky-btns { justify-content: center; }
    .grants-sticky-label { text-align: center; }
}

/* ─── Grants responsive ─── */
@media (max-width: 1024px) {
    .grants-glance-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grants-ideas-grid { grid-template-columns: 1fr; }
    .grants-who-grid { grid-template-columns: 1fr; }
    .grants-after-grid { grid-template-columns: 1fr; }
    .grants-cta-row { flex-direction: column; align-items: stretch; }
    .grants-cta-row .btn-grants-indiv,
    .grants-cta-row .btn-grants-org { text-align: center; }
    .grants-deadlines-section .grants-cta-row,
    .grants-final-cta .grants-cta-row { align-items: center; }
}
@media (max-width: 600px) {
    .grants-glance-grid { grid-template-columns: 1fr; }
}
