/* ============================================================
   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%; }

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-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;
}
.btn:hover       { transform: translateY(-2px); }
.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); }

.site-header {
    position: fixed;
    top: 0;   /* sits at top when no admin bar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    background: var(--clr-surface);
    border-bottom: 3px solid var(--clr-accent);
}

.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: 0.875rem;
    font-weight: 500;
    color: var(--clr-text);
    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: #37C6F4; background: rgba(55,198,244,0.09); }

.nav-cta {
    margin-left: var(--sp-4);
    padding: 0.5rem 1.25rem;
    background: #37C6F4;
    color: #1A2535;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--ease);
    flex-shrink: 0;
}
.nav-cta:hover { background: #1BADD8; color: #fff; }

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

/* 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; }


.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 8px 28px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.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: 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: var(--clr-secondary);
    background-blend-mode: soft-light;
    background-size: 680px auto;
    background-repeat: repeat;
    color: var(--clr-text-invert);
    padding-block: var(--sp-20) var(--sp-24);
    position: relative;
}

.cta-join {
    max-width: 640px;
    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: var(--clr-text-invert);
    margin-bottom: var(--sp-5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.cta-lead a {
    color: var(--clr-accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(232,162,25,0.35);
    transition: border-color 0.2s;
}
.cta-lead a:hover { border-bottom-color: var(--clr-accent); }

.cta-social-row {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
    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, transform 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.cta-social-btn:hover { transform: translateY(-2px); }

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

.cta-social-btn--linkedin {
    background: #37C6F4;
    color: #1A2535;
    border-color: #37C6F4;
}
.cta-social-btn--linkedin:hover { background: #1BADD8; border-color: #1BADD8; color: #fff; }

.cta-social-btn--instagram {
    background: #37C6F4;
    color: #1A2535;
    border-color: #37C6F4;
}
.cta-social-btn--instagram:hover {
    background: #1BADD8;
    border-color: #1BADD8;
    color: #fff;
}


/* ============================================================
   15. BLOCK 7 — FOOTER
   ============================================================ */
.site-footer {
    background: #0F1D33;
    color: var(--clr-text-invert);
    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-accent);
    margin-bottom: var(--sp-4);
}
.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.58);
    margin-bottom: var(--sp-2);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--clr-text-invert); }

.footer-small {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    max-width: none;
    margin-bottom: var(--sp-1);
}

.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(255,255,255,0.16);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    color: var(--clr-text-invert);
    font-family: var(--font-body);
    font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.36); }
.newsletter-form input:focus { outline: 2px solid var(--clr-accent); outline-offset: 0; }
.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-accent);
    font-weight: 600;
    transition: color var(--ease);
}
.footer-action:hover { color: #f0b830; }

/* 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: 52%;
}

/* 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%; }

/* ── Right-side stacked circles ── */
/* Yellow (lg, 370px) — topmost */
.content-block--circle-1 > .char-circle:nth-child(2) {
    top: 30px;
    --tx: 16%;
    z-index: 2;
}

/* Purple (sm, 275px) — below yellow, slight gap */
.content-block--circle-1 > .char-circle:nth-child(3) {
    top: 460px;
    --tx: 2%;
    z-index: 3;
}

/* Green (sm, 275px) — overlaps purple ~70px */
.content-block--circle-1 > .char-circle:nth-child(4) {
    top: 660px;
    --tx: 14%;
    z-index: 4;
}

/* Orange (community-events) — top: -64px = 20% above section, 80% inside */
.content-block--events > .char-circle:nth-child(2) {
    top: -64px;
    --tx: 8%;
    z-index: 5;
    opacity: 0;
    transform: scale(0.72) translateX(var(--tx));
}

/* Navy (community-events) — overlaps orange from below */
.content-block--events > .char-circle:nth-child(3) {
    top: 180px;
    --tx: 20%;
    z-index: 6;
    opacity: 0;
    transform: scale(0.72) translateX(var(--tx));
}

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

/* ── Mobile: revert to stacked inline circles ── */
@media (max-width: 900px) {
    .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: var(--clr-primary);
    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: var(--clr-primary); }
.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; }

.tactics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-8);
}
.tactic-card {
    --card-accent: var(--clr-primary);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border-left: 5px 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 */
.tactic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--card-accent);
    opacity: 0.12;
    border-radius: 0 0 var(--radius-lg) 0;
    pointer-events: none;
}
.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-10);
    padding-bottom: var(--sp-8);
    overflow-x: hidden;
}

.hero-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    gap: var(--sp-24);
    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: 520px;
    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;
}

.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; }

.hchar {
    width: 380px;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    opacity: 0;
    transform-origin: bottom center;
    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; }
/* 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 { width: 200px; }
    .hero-logo { width: 380px; }
    .hero-center { gap: var(--sp-4); padding-bottom: var(--sp-6); }
}
@media (max-width: 480px) {
    .hchar { width: 140px; }
    .hero-logo { width: 280px; }
}


/* ============================================================
   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: 24ch; }

    /* ── 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 img { max-height: 220px; object-fit: cover; width: 100%; }

    /* ── 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 — ARC CHARACTER ARRANGEMENT
   Characters stack vertically in a column; translateX on the
   middle char bows it outward, creating a semi-circle arc.
   ============================================================ */

/* Switch from horizontal row to vertical column */
.hero-chars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-12);
}
.hero-chars--left  { align-items: flex-end; }
.hero-chars--right { align-items: flex-start; }

/* Vertically center all three columns in the grid */
.hero-stage { align-items: center; gap: var(--sp-20); }

/* ── Arc transforms ──
   Left chars: hchar-1 (top) / hchar-2 (middle) / hchar-3 (bottom)
   Middle = outermost (biggest X offset), top/bottom lean inward.
   Right chars mirror the pattern.
   Use .is-loaded to match specificity (0-2-0) of the section-28 rule
   and win the cascade (later in stylesheet = wins at equal specificity).
   ─────────────────────────────────────────────────────────── */
.hchar--1.is-loaded { transform: translateX(  80px) translateY(-10px) rotate(-5deg); }
.hchar--2.is-loaded { transform: translateX(-200px) translateY(  0px) rotate(-1deg); }
.hchar--3.is-loaded { transform: translateX(  80px) translateY( 10px) rotate( 6deg); }

.hchar--4.is-loaded { transform: translateX( -80px) translateY(-10px) rotate( 5deg); }
.hchar--5.is-loaded { transform: translateX( 200px) translateY(  0px) rotate( 1deg); }
.hchar--6.is-loaded { transform: translateX( -80px) translateY( 10px) rotate(-6deg); }

/* Middle chars slightly larger to reinforce circular impression */
.hchar--2, .hchar--5 { width: 400px; }
.hchar--1, .hchar--3, .hchar--4, .hchar--6 { width: 320px; }

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

/* Mobile: keep arc column arrangement, scale characters down */
@media (max-width: 900px) {
    /* flex-direction: column is retained — preserves the arc flanking the logo */
    .hchar--2, .hchar--5 { width: 240px; }
    .hchar--1, .hchar--3, .hchar--4, .hchar--6 { width: 190px; }
}
@media (max-width: 640px) {
    .hero-stage { grid-template-columns: 84px 1fr 84px; }
    .hchar--2, .hchar--5 { width: 200px; }
    .hchar--1, .hchar--3, .hchar--4, .hchar--6 { width: 160px; }
    .hero-logo { width: 260px; }
    .hero--characters .lead { font-size: 0.9rem; max-width: 22ch; }
}
@media (max-width: 420px) {
    .hero-stage { grid-template-columns: 60px 1fr 60px; }
    .hchar--2, .hchar--5 { width: 150px; }
    .hchar--1, .hchar--3, .hchar--4, .hchar--6 { width: 120px; }
    .hero-logo { width: 200px; }
    .hero--characters .lead { font-size: 0.85rem; max-width: 20ch; }
}


/* ============================================================
   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 var(--clr-primary);
    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); }
