/* ─────────────────────────────────────────────
   RSVP — shared design system
   ───────────────────────────────────────────── */

:root {
  --ink: #0E0E0C;
  --ink-2: #1A1A17;
  --ink-3: #26261F;
  --bone: #F4EFE6;
  --bone-2: #EAE3D6;
  --bone-3: #DCD3C0;
  --line: rgba(14, 14, 12, 0.12);
  --line-strong: rgba(14, 14, 12, 0.2);
  --line-dark: rgba(244, 239, 230, 0.14);
  --line-dark-strong: rgba(244, 239, 230, 0.28);
  --muted: #6B6A60;
  --muted-light: rgba(244, 239, 230, 0.55);
  --forest: #1B3A2B;

  /* Brand — used only as accents */
  --r: #22A845;
  --s: #1E73BE;
  --v: #F2D900;
  --p: #C2185B;

  --display: 'Bdo Grotesk', 'BDO Grotesk', system-ui, sans-serif;
  --body: 'Bdo Grotesk', 'BDO Grotesk', system-ui, sans-serif;
  --sans: 'Bdo Grotesk', 'BDO Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1340px;
  --pad: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor — disabled, native cursor used */
.cursor { display: none !important; }

/* Announcement bar */
.announce {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  z-index: 90;
}
.announce-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.announce-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--r);
  box-shadow: 0 0 0 4px rgba(34, 168, 69, 0.18);
  flex-shrink: 0;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav {
  position: fixed;
  top: var(--nav-top, 33px);
  left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bone);
  mix-blend-mode: difference;
  transition: top 0.3s var(--ease);
}
.nav-brand { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.nav-brand-mark {
  display: inline-flex;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  letter-spacing: 0;
}
.nav-brand-mark span:nth-child(1){color:var(--r);}
.nav-brand-mark span:nth-child(2){color:var(--s);}
.nav-brand-mark span:nth-child(3){color:var(--v);}
.nav-brand-mark span:nth-child(4){color:var(--p);}
.nav-brand sup { font-size: 8px; opacity: 0.7; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { position: relative; opacity: 0.85; transition: opacity 0.3s; text-transform: lowercase; }
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-time { opacity: 0.6; font-variant-numeric: tabular-nums; }

/* Section base */
.section {
  padding: 90px 40px;
  position: relative;
}
.section--ink { background: var(--ink); color: var(--bone); }
.section--bone { background: var(--bone); color: var(--ink); }
.section--forest { background: var(--forest); color: var(--bone); }

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 50px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .section-head { color: var(--muted-light); }
.section-head .num { color: inherit; font-weight: 500; }
.section--bone .section-head .num { color: var(--ink); }
.section--ink .section-head .num { color: var(--bone); }
.section-head .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section--ink .section-head .line { background: var(--line-dark); }
.section--forest .section-head .line { background: rgba(244,239,230,0.2); }

/* Editorial page header (used on inner pages) */
.page-head {
  background: var(--bone);
  padding: 140px 40px 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.page-head-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.page-head-eyebrow .num { color: var(--ink); font-weight: 500; }
.page-head-eyebrow .line {
  width: 60px;
  height: 1px;
  background: var(--line);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.page-head h1 em { font-style: italic; font-weight: 400; color: var(--muted); }
.page-head-aside {
  border-left: 1px solid var(--line);
  padding-left: 40px;
  padding-bottom: 16px;
  max-width: 44ch;
}
.page-head-aside p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 24px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}
.cta:hover { transform: translateY(-2px); }
.cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
  transition: transform 0.4s var(--ease);
  font-size: 12px;
}
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta--invert { background: var(--bone); color: var(--ink); }
.cta--invert .cta-arrow { background: var(--ink); color: var(--bone); }
.cta--ghost {
  background: transparent;
  color: inherit;
  padding-left: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cta--ghost .cta-arrow { background: transparent; border: 1px solid currentColor; color: inherit; }

/* Footer */
footer {
  background: var(--ink);
  color: var(--bone);
  padding: 70px 40px 32px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line-dark);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.footer-mark span:nth-child(1) { color: var(--r); }
.footer-mark span:nth-child(2) { color: var(--s); }
.footer-mark span:nth-child(3) { color: var(--v); }
.footer-mark span:nth-child(4) { color: var(--p); }
.footer-tag {
  font-size: 15px;
  color: var(--muted-light);
  font-weight: 400;
  max-width: 32ch;
  line-height: 1.6;
}
.footer-credo {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a::before {
  content: '→';
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer-col a:hover { opacity: 1; }
.footer-col a:hover::before { opacity: 0.6; transform: translateX(0); }
.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.footer-bottom-quote {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bone);
  opacity: 0.6;
  font-weight: 300;
}

/* Reveals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.mask-line { display: block; overflow: hidden; }
.mask-line-inner { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.mask-line.is-in .mask-line-inner { transform: translateY(0); }

/* Hairline list utilities */
.h-line { height: 1px; background: var(--line); width: 100%; }
.h-line--dark { background: var(--line-dark); }

/* Status pulse */
.status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--r);
  position: relative;
  display: inline-block;
}
.status-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--r);
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* Editorial placeholder image */
.placeholder {
  position: relative;
  background: var(--bone-2);
  overflow: hidden;
  border-radius: 2px;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 22px,
    rgba(14,14,12,0.05) 22px,
    rgba(14,14,12,0.05) 23px
  );
}
.placeholder-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bone);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  z-index: 2;
}
.placeholder--dark { background: var(--ink-2); }
.placeholder--dark::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 22px,
    rgba(244,239,230,0.05) 22px,
    rgba(244,239,230,0.05) 23px
  );
}
.placeholder--dark .placeholder-label { background: var(--ink); border-color: var(--line-dark); color: var(--muted-light); }

/* ─────────────────────────────────────────────
   COMPACT — global font/spacing scale-down
   ───────────────────────────────────────────── */

/* Hero */
.hero { min-height: auto !important; padding: 130px 40px 50px !important; }
.hero-statement { font-size: clamp(40px, 6.4vw, 104px) !important; line-height: 0.95 !important; margin-top: 50px !important; max-width: 18ch !important; }
.hero-aside { margin-top: 50px !important; }
.hero-stat-num { font-size: 26px !important; }
.hero-foot { margin-top: 50px !important; }

/* CVR / generic editorial titles */
.cvr { padding: 80px 40px 90px !important; }
.cvr-title { font-size: clamp(28px, 4vw, 60px) !important; line-height: 1.05 !important; margin-top: 18px !important; }
.cvr-aside p { font-size: 15px !important; }

/* Elections */
.elections { padding-top: 80px !important; padding-bottom: 80px !important; }
.election { padding-top: 40px !important; padding-bottom: 40px !important; }
.election-meta { margin-bottom: 36px !important; }
.election-name { font-size: clamp(22px, 2.6vw, 36px) !important; margin-bottom: 30px !important; max-width: 18ch !important; }
.cd-num { font-size: clamp(26px, 3vw, 40px) !important; }
.election-arrow { bottom: 40px !important; }

/* Chapters */
.chapters .section-head { padding: 80px 40px 0 !important; }
.chapter { padding: 56px 40px !important; gap: 40px !important; }
.chapter:first-of-type { margin-top: 50px !important; }
.chapter-letter { font-size: clamp(96px, 12vw, 180px) !important; line-height: 0.9 !important; }
.chapter-title { font-size: clamp(24px, 2.8vw, 40px) !important; margin-bottom: 14px !important; }
.chapter-desc { font-size: 15px !important; }

/* Act block on home */
.act { padding: 100px 40px !important; }
.act-quote { font-size: clamp(28px, 3.6vw, 56px) !important; line-height: 1.08 !important; }

/* Voices */
.voices { padding: 100px 40px !important; }
.voice { padding: 38px 0 !important; gap: 32px !important; }
.voice-quote { font-size: clamp(18px, 1.9vw, 26px) !important; line-height: 1.3 !important; }

/* Page heads */
.page-head { padding: 130px 40px 56px !important; }
.page-head-inner { gap: 50px !important; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 80px) !important; line-height: 0.96 !important; }
.page-head-aside { padding-left: 30px !important; }
.page-head-aside p { font-size: 15px !important; }

/* Debate */
.featured { padding: 70px 40px 80px !important; }
.debate-grid { gap: 24px !important; }
.debate-card-title { font-size: clamp(15px, 1.4vw, 19px) !important; }
.townhall { padding: 90px 0 90px 40px !important; }
.townhall-card { width: 280px !important; }
.townhall-card-title { font-size: 17px !important; }
.past { padding: 90px 40px !important; }
.past-intro { gap: 50px !important; margin-bottom: 50px !important; }
.past-intro h2 { font-size: clamp(28px, 4vw, 56px) !important; line-height: 1.05 !important; }
.past-year { padding: 26px 0 !important; gap: 40px !important; grid-template-columns: 140px 1fr !important; }
.past-year-num { font-size: clamp(26px, 3vw, 42px) !important; }
.past-entry { padding: 14px 0 !important; }
.past-entry-title { font-size: 17px !important; }

/* FAQs */
.faq { padding: 80px 40px 100px !important; }
.faq-head { gap: 50px !important; margin-bottom: 50px !important; }
.faq-head h2 { font-size: clamp(28px, 4vw, 56px) !important; line-height: 1.05 !important; }
.faq-head-aside p { font-size: 15px !important; }
.faq-q { padding: 22px 0 !important; gap: 22px !important; grid-template-columns: 60px 1fr 50px !important; }
.faq-q.is-open { padding-bottom: 36px !important; }
.faq-q-title { font-size: clamp(17px, 1.7vw, 22px) !important; line-height: 1.25 !important; }
.faq-q-answer-inner { font-size: 15px !important; line-height: 1.65 !important; }
.callout { padding: 40px !important; gap: 40px !important; margin-top: 50px !important; }
.callout-title { font-size: clamp(20px, 2.4vw, 32px) !important; }
.tab { padding: 18px 30px !important; }
.tab-name { font-size: 15px !important; }

/* Complaint */
.complaint { padding: 60px 0 0 !important; }
.complaint-side { padding: 40px 32px !important; }
.complaint-side-title { font-size: 26px !important; margin-bottom: 36px !important; }
.step { padding: 14px 0 !important; }
.step-name { font-size: 17px !important; }
.complaint-main { padding: 50px 56px 70px !important; }
.form-step-head { margin-bottom: 36px !important; padding-bottom: 22px !important; }
.form-step-title { font-size: clamp(26px, 3.4vw, 44px) !important; line-height: 1.05 !important; }
.form-step-sub { font-size: 15px !important; }
.form-grid { gap: 28px 28px !important; }
.field-input, .field-textarea, .field-select { font-size: 15px !important; padding: 12px 0 !important; }
.radio { padding: 14px 18px !important; }
.radio-name { font-size: 16px !important; }
.review-val { font-size: 16px !important; }
.success h2 { font-size: clamp(28px, 3.6vw, 48px) !important; }
.success p { font-size: 15px !important; }

/* Electoral Act */
.act-hero { padding: 130px 40px 80px !important; }
.act-hero h1 { font-size: clamp(40px, 6.4vw, 96px) !important; line-height: 0.95 !important; max-width: 14ch !important; }
.act-hero-eyebrow { margin-bottom: 50px !important; }
.act-hero-aside p { font-size: 15px !important; }
.act-hero-meta strong { font-size: 22px !important; }
.toc { padding: 40px 26px !important; }
.toc-name { font-size: 14px !important; }
.article { padding: 60px 60px 80px !important; }
.part { margin-bottom: 70px !important; }
.part h2 { font-size: clamp(26px, 3.2vw, 42px) !important; line-height: 1.05 !important; margin-bottom: 20px !important; }
.lede { font-size: 17px !important; line-height: 1.5 !important; margin-bottom: 28px !important; padding-bottom: 22px !important; }
.dropcap::first-letter { font-size: 4.6em !important; }
.article p { font-size: 15px !important; line-height: 1.65 !important; margin-bottom: 16px !important; }
.article h3 { font-size: 20px !important; margin-bottom: 12px !important; }
.section-num { margin: 36px 0 10px !important; }
.callout-box { padding: 22px 24px !important; margin: 24px 0 !important; }
.callout-box p { font-size: 14px !important; }
.pull { font-size: 22px !important; margin: 36px -30px !important; padding: 22px 30px !important; }
body[data-fontsize="lg"] .article p { font-size: 17px !important; }
body[data-fontsize="xl"] .article p { font-size: 19px !important; }
body[data-fontsize="lg"] .lede { font-size: 19px !important; }
body[data-fontsize="xl"] .lede { font-size: 21px !important; }
.rail { padding: 40px 26px !important; }

/* Compact footer */
.footer-top { padding-bottom: 50px !important; gap: 40px !important; }
.footer-tag { font-size: 14px !important; }
.footer-col a { font-size: 14px !important; }
.footer-col li { margin-bottom: 10px !important; }

/* Hero aside image / placeholders smaller */
.hero-aside-img { aspect-ratio: 5 / 4 !important; }
.hero-aside-cap { font-size: 13px !important; }
.debate-card-img { aspect-ratio: 4 / 5 !important; }
.debate-card[data-size="lg"] .debate-card-img { aspect-ratio: 6 / 5 !important; }
.debate-card[data-size="sm"] .debate-card-img { aspect-ratio: 4 / 5 !important; }
.townhall-card .placeholder { aspect-ratio: 5 / 4 !important; }

/* Make all italic emphasis use BDO weight contrast instead of Fraunces look */
em, .hero-statement em, .cvr-title em, .chapter-letter, .act-quote em,
.act-hero h1 em, .page-head h1 em, .faq-head h2 em, .past-intro h2 em,
.form-step-title em, .callout-title em, .success h2 em, .voice-quote {
  font-style: normal !important;
}

/* ─────────────────────────────────────────────
   v2 — Color, density, mobile bottom nav
   Concerns addressed:
   1) more Nigerian color (green throughout)
   2) smaller section/header type
   3) elections countdown smaller + flyers
   4) tighter four-acts row spacing
   5) voices: 4 entries with portrait images
   6) mobile bottom nav
   ───────────────────────────────────────────── */

:root {
  --green:        #1B3A2B;       /* Nigerian flag green, primary accent */
  --green-2:      #22A845;       /* brand R green for live status */
  --green-soft:   #E8EFE2;       /* tinted bone for green sections */
  --green-rail:   rgba(27, 58, 43, 0.12);
}

/* Editorial green accents on bone sections */
.section--bone .section-head .num,
.page-head-eyebrow .num {
  color: var(--green) !important;
}
.section--bone .section-head .line,
.page-head-eyebrow .line {
  background: linear-gradient(90deg, var(--green) 0, var(--green) 28px, var(--line) 28px) !important;
}
.section--bone .section-head > span:nth-child(2),
.page-head-eyebrow > span:nth-child(2) {
  color: var(--green) !important;
  font-weight: 500;
}
.cvr-label { color: var(--green) !important; }
.status-pulse { background: var(--green-2); }

/* Nigerian flag ribbon (green-white-green) under page-head */
.flag-ribbon {
  display: flex;
  height: 6px;
  width: 100%;
  max-width: var(--max);
  margin: 28px auto 0;
  border-radius: 1px;
  overflow: hidden;
}
.flag-ribbon span { flex: 1; }
.flag-ribbon span:nth-child(1) { background: var(--green); }
.flag-ribbon span:nth-child(2) { background: var(--bone); border-left: 1px solid var(--green-rail); border-right: 1px solid var(--green-rail); }
.flag-ribbon span:nth-child(3) { background: var(--green); }

/* Tighter header sizes */
.hero-statement { font-size: clamp(34px, 5.4vw, 84px) !important; max-width: 18ch !important; }
.cvr-title { font-size: clamp(24px, 3.4vw, 48px) !important; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 64px) !important; line-height: 1 !important; }
.page-head { padding: 110px 40px 40px !important; }
.page-head-eyebrow { margin-bottom: 22px !important; }
.act-quote { font-size: clamp(24px, 3vw, 46px) !important; }
.act-hero h1 { font-size: clamp(34px, 5vw, 76px) !important; }
.faq-head h2, .past-intro h2 { font-size: clamp(24px, 3.2vw, 46px) !important; }
.form-step-title { font-size: clamp(22px, 2.8vw, 36px) !important; }
.cvr { padding: 64px 40px 70px !important; }

/* ELECTIONS — flyer + compact countdown */
.elections { padding: 56px 40px 70px !important; }
.election {
  display: grid !important;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0 !important;
}
.election:first-child { padding-right: 32px !important; }
.election:last-child { padding-left: 32px !important; }
.election-flyer {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.election-flyer.placeholder::before { opacity: 0.7; }
.election-flyer .flyer-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--bone);
  padding: 4px 8px;
  border-radius: 2px;
}
.election-body { display: flex; flex-direction: column; }
.election-meta { margin-bottom: 18px !important; font-size: 10px !important; }
.election-name { font-size: clamp(18px, 2vw, 26px) !important; margin-bottom: 22px !important; max-width: 14ch !important; }
.cd-num { font-size: clamp(20px, 2.2vw, 30px) !important; }
.cd-label { font-size: 9px !important; }
.countdown { gap: 14px !important; padding-top: 16px !important; }
.election-arrow { position: static !important; margin-top: 22px; }

/* CHAPTERS — tighter rows + green-keyed left rail */
.chapter { padding: 32px 40px !important; gap: 32px !important; }
.chapter:first-of-type { margin-top: 30px !important; }
.chapter-letter { font-size: clamp(72px, 9vw, 130px) !important; }
.chapter-letter .accent { width: 12px !important; height: 12px !important; right: -12px !important; }
.chapter-title { font-size: clamp(20px, 2.4vw, 32px) !important; margin-bottom: 10px !important; }
.chapter-desc { font-size: 14px !important; line-height: 1.55 !important; }
.chapter::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: currentColor;
  opacity: 0.0;
  transition: opacity 0.4s var(--ease);
}
.chapter[data-letter="R"]::before { background: var(--r); }
.chapter[data-letter="S"]::before { background: var(--s); }
.chapter[data-letter="V"]::before { background: var(--v); }
.chapter[data-letter="P"]::before { background: var(--p); }
.chapter:hover::before { opacity: 0.9; }
.chapters .section-head { padding: 56px 40px 0 !important; }

/* ACT (Electoral) — slightly more punch */
.act { padding: 76px 40px !important; }

/* VOICES — 4 cards with portrait images */
.voices { padding: 70px 40px 90px !important; }
.voices-inner { max-width: var(--max) !important; }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.voice-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  position: relative;
}
.voice-card .voice-portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.voice-card .voice-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.voice-card .voice-quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: var(--ink);
}
.voice-card .voice-attr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.voice-card .voice-attr strong { color: var(--ink); font-weight: 500; }

/* Footer minor density */
.footer-top { padding-bottom: 40px !important; gap: 36px !important; }

/* MOBILE BOTTOM NAV */
.bottom-nav {
  display: none;
}
@media (max-width: 900px) {
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    color: var(--muted-light);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    transition: color 0.25s ease;
  }
  .bottom-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .bottom-nav a.is-active {
    color: var(--bone);
  }
  .bottom-nav a.is-active svg { stroke: var(--green-2); }
  /* leave room for bottom nav */
  body { padding-bottom: 76px; }
  .nav { mix-blend-mode: difference; }
  .nav-links { display: none !important; }
  .nav { padding: 14px 18px !important; }
  .nav-time { display: none !important; }
  /* further compress on phones */
  .hero { padding: 90px 18px 30px !important; }
  .hero-statement { font-size: clamp(30px, 8vw, 44px) !important; max-width: 100% !important; }
  .hero-foot { margin-top: 36px !important; }
  .hero-stat-num { font-size: 22px !important; }
  .cvr { padding: 48px 18px 56px !important; }
  .elections { padding: 48px 18px 60px !important; }
  .election { grid-template-columns: 100px 1fr !important; gap: 18px !important; padding: 24px 0 !important; }
  .election:first-child, .election:last-child { padding-left: 0 !important; padding-right: 0 !important; }
  .election-name { font-size: 18px !important; max-width: 100% !important; margin-bottom: 14px !important; }
  .countdown { gap: 8px !important; }
  .cd-num { font-size: 18px !important; }
  .chapters .section-head { padding: 48px 18px 0 !important; }
  .chapter { padding: 26px 18px !important; gap: 14px !important; grid-template-columns: 80px 1fr !important; }
  .chapter-letter { font-size: 72px !important; }
  .chapter-meta { grid-column: 1 / -1; text-align: left !important; }
  .act { padding: 60px 18px !important; }
  .voices { padding: 56px 18px 70px !important; }
  .voices-grid { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .voice-card .voice-quote { font-size: 13px !important; }
  /* announce hide on mobile to save space */
  .announce { font-size: 9px !important; padding: 7px 14px !important; }
  .announce-inner { gap: 8px !important; }
  /* page heads tighter */
  .page-head { padding: 90px 18px 32px !important; }
  .flag-ribbon { margin-top: 20px !important; }
  /* footer */
  footer { padding: 50px 18px 28px !important; }
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-bottom { font-size: 9px !important; }
}
@media (min-width: 901px) {
  .bottom-nav { display: none !important; }
}

/* ── Flyer / Fund Drive popup ─────────────────────────────── */
.flyer-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17, 72, 43, 0.92);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.flyer-overlay.is-open { opacity: 1; pointer-events: auto; }
.flyer-overlay.is-closing { opacity: 0; transition-delay: 0.05s; }

.flyer {
  position: relative;
  background: #f5ecd7;
  color: #11482b;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 2.5rem;
  padding-top: calc(2.5rem + 6px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              opacity  0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.flyer-overlay.is-open .flyer { transform: scale(1); opacity: 1; }
.flyer-overlay.is-closing .flyer {
  transform: scale(0.96); opacity: 0;
  transition-duration: 0.25s; transition-delay: 0s;
}

.flyer__bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px; background: #d17e38;
}
.flyer__close {
  position: absolute; top: 6px; right: 0;
  width: 56px; height: 56px;
  background: transparent; border: 0;
  display: flex; align-items: center; justify-content: center;
  color: #11482b;
  transition: transform 0.3s ease;
  padding: 0; cursor: pointer;
}
.flyer__close:hover { transform: rotate(90deg); }
.flyer__close svg { width: 18px; height: 18px; display: block; }

.flyer__image {
  width: 100%; aspect-ratio: 4 / 3; margin-bottom: 28px;
  background: rgba(17, 72, 43, 0.08);
  position: relative; overflow: hidden;
}
.flyer__image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px; color: rgba(17, 72, 43, 0.55);
  border: 1px dashed rgba(17, 72, 43, 0.4);
}
.flyer__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #11482b;
  margin: 0 0 20px;
}
.flyer__title em { font-style: italic; color: #aa261a; font-weight: 400; }
.flyer__body { font-size: 16px; line-height: 1.5; color: #11482b; margin: 0 0 28px; }

.flyer__cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 16px 32px;
  background: #11482b;
  color: #f5ecd7;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.3s ease;
}
.flyer__cta:hover { background: #1e6040; }
.flyer__cta .arrow { display: inline-block; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.flyer__cta:hover .arrow { transform: translateX(6px); }

@media (max-width: 540px) {
  .flyer { padding: 1.5rem; padding-top: calc(1.5rem + 6px); }
  .flyer__title { font-size: 30px; }
}

body.flyer-open { overflow: hidden; }

/* original mobile block continues below */
@media (max-width: 900px) {
  .hero-OLD-NEVER-MATCH { padding: 110px 22px 40px !important; }
  .chapters .section-head { padding: 60px 22px 0 !important; }
  .chapter { padding: 40px 22px !important; }
  .featured { padding: 50px 22px 60px !important; }
  .townhall { padding: 60px 0 60px 22px !important; }
  .past { padding: 60px 22px !important; }
  .faq { padding: 50px 22px 70px !important; }
  .complaint-main { padding: 30px 22px 50px !important; }
  .article { padding: 40px 22px 60px !important; }
  .pull { margin: 28px 0 !important; padding: 18px 0 !important; }
  .nav { padding: 18px 20px; gap: 14px; flex-wrap: wrap; }
  .nav-links { gap: 14px; font-size: 11px; }
  .nav-time { display: none; }
  .section { padding: 90px 22px; }
  .page-head { padding: 140px 22px 70px; }
  .page-head-inner { grid-template-columns: 1fr; gap: 36px; }
  .page-head-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  footer { padding: 60px 22px 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bottom-quote { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════
   Media handling — drop-in images for placeholders
   ───────────────────────────────────────────────────────────────────
   Real media (<img>, <video>, <picture>) placed inside any placeholder
   container fills it via object-fit: cover. The placeholder's existing
   aspect ratio is preserved, so source dimensions never distort layout.
   See /media/README.md for usage.
   ═══════════════════════════════════════════════════════════════════ */

img, video { max-width: 100%; height: auto; display: block; }

.placeholder > img,
.placeholder > video,
.placeholder > picture,
.placeholder > picture > img,
.flyer__image > img,
.flyer__image > video,
.flyer__image > picture,
.flyer__image > picture > img,
.election-flyer > img,
.election-flyer > video,
.election-flyer > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.placeholder:has(> img, > video, > picture)::before { display: none; }
.placeholder:has(> img, > video, > picture) { background: transparent; }
.placeholder:has(> img, > video, > picture) > .placeholder-label,
.placeholder:has(> img, > video, > picture) > .flyer-tag { z-index: 2; }
.flyer__image:has(> img, > video, > picture) > .placeholder { display: none; }

/* Honour reduced-motion preference (purely additive) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
