/* =========================================================================
   Abubakar Ahmed Daware — ADC Campaign Site
   Design tokens
   Palette (from the ADC party mark + campaign booklet):
     --adc-green (#0B6E3A) primary, party colour
     --adc-green-dark (#073F22) depth / headers
     --adc-red (#C8102E) accent, from the ADC roundel
     --adc-gold (#E8871E) call-to-action / the orange stripe used in the booklet
     --ink (#161710) near-black text
     --paper (#FAF8F2) warm off-white background
   Type:
     Display: "League Spartan" — bold, geometric, ballot/signage energy
     Body: "Inter" — clean and highly legible for long-form manifesto text
     Data/mono: "IBM Plex Mono" — for polling-unit codes & membership numbers
   Signature element: a fingerprint mark (the real INEC thumbprint icon
   used on the campaign's own "VOTE" material) — used as a watermark, a
   verified-step indicator, and a motif on the membership card.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --adc-green: #0B6E3A;
  --adc-green-dark: #073F22;
  --adc-green-tint: #E7F3EC;
  --adc-red: #C8102E;
  --adc-gold: #E8871E;
  --ink: #161710;
  --ink-soft: #4A4B42;
  --paper: #FAF8F2;
  --paper-dim: #F0EEE4;
  --white: #FFFFFF;
  --border: #E1DDCB;

  --font-display: 'League Spartan', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(22,23,16,0.06);
  --shadow-md: 0 8px 30px rgba(22,23,16,0.12);
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--adc-green); background: var(--adc-green-tint);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow.gold { color: #8a4e0d; background: #FBEBD6; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--adc-gold); color: var(--ink); }
.btn-primary:hover { box-shadow: var(--shadow-md); background: #f0952f; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-green { background: var(--adc-green); color: var(--white); }
.btn-green:hover { background: var(--adc-green-dark); box-shadow: var(--shadow-md); }
.btn-donate { background: #fff; color: var(--adc-green-dark); border-color: #fff; }
.btn-donate:hover { background: var(--adc-gold); color: var(--ink); border-color: var(--adc-gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 16px; }
.brand-text span { font-size: 11px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: .05em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-color: var(--adc-gold); color: var(--adc-green-dark); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 14px;
    border-bottom: 1px solid var(--border); display: none; z-index: 60; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .nav-wrap { padding: 12px 16px; }
  .brand img { height: 36px; width: 36px; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { font-size: 10px; }
}

/* PU Agent portal nav — compact 7-item menu (Home / Election Results / Reports / Login / PU Agent Registration / Donate / Contact Center) */
.nav-links.portal-nav { gap: 18px; row-gap: 8px; flex-wrap: wrap; }
.nav-links.portal-nav a { font-size: 13px; padding: 4px 0; white-space: nowrap; }
@media (max-width: 1150px) and (min-width: 901px) {
  .nav-links.portal-nav { gap: 10px; }
  .nav-links.portal-nav a { font-size: 12px; }
}
@media (max-width: 900px) {
  .nav-links.portal-nav { padding: 10px 18px; gap: 2px; }
  .nav-links.portal-nav a { padding: 9px 0; font-size: 14px; width: 100%; }
}

/* PU Agent portal pages — light mint background, matching the campaign's portal theme */
body.agent-portal-bg { background: var(--adc-green-tint); }

/* Reusable narrow centered section for portal cards (login, landing, etc.) */
.agent-portal-narrow { max-width: 420px; margin: 0 auto; padding-top: 60px; padding-bottom: 90px; }
@media (max-width: 480px) {
  .agent-portal-narrow { padding-top: 32px; padding-bottom: 44px; padding-left: 16px; padding-right: 16px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--adc-green-dark);
  color: var(--white);
}
.hero-bg-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg-slide.active { opacity: 1; }
.hero-bg-slide.hero-bg-green {
  background: linear-gradient(135deg, var(--adc-green-dark) 0%, var(--adc-green) 100%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(4,20,12,0.8) 0%, rgba(4,20,12,0.58) 42%, rgba(4,20,12,0.3) 72%, rgba(4,20,12,0.14) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { transition: none; }
  .btn-cta-pulse { animation: none !important; }
}

/* Eye-catching pulse for the primary "Join the Movement" CTA */
.btn-cta-pulse {
  position: relative;
  animation: ctaBreathe 2.6s ease-in-out infinite;
}
.btn-cta-pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(232, 135, 30, 0.55);
  animation: ctaRing 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes ctaRing {
  0% { box-shadow: 0 0 0 0 rgba(232, 135, 30, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(232, 135, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 135, 30, 0); }
}
.hero-fingerprint {
  position: absolute; right: -140px; top: -100px; width: 620px; height: 620px;
  opacity: 0.10; pointer-events: none; z-index: 2;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end;
  padding: 44px 24px 0; max-width: var(--container); margin: 0 auto; position: relative; z-index: 3;
}
.hero-grid > *:first-child { align-self: center; padding-bottom: 44px; }
.hero-eyebrow-row { display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 16px; margin-bottom: 18px; }
.hero-eyebrow-row .eyebrow { margin-bottom: 0; white-space: nowrap; }
.hero-eyebrow-photo {
  height: 120px; width: auto; flex-shrink: 0; border-radius: 14px; object-fit: cover;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
}
.hero-text-slides { position: relative; }
.hero-text-slide { display: none; animation: heroTextIn .6s ease; }
.hero-text-slide.active { display: block; }
@keyframes heroTextIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 4px 26px rgba(0,0,0,0.6); }
.hero .lead { color: #ffffff; font-size: 16.5px; font-weight: 600; max-width: 60ch; text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 20px rgba(0,0,0,0.55); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-photo-wrap { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.hero-photo {
  display: block; width: 100%; max-width: 340px; height: auto;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,0.35));
}
.hero-badge {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--ink); border-radius: 999px;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  white-space: normal; text-align: center; max-width: 90vw;
}
.hero-badge img { height: 20px; width: 20px; }
@media (min-width: 901px) {
  .hero-grid { padding: 68px 32px 0; }
  .hero-grid > *:first-child { padding-bottom: 68px; }
  .hero-eyebrow-photo { height: 148px; border-radius: 16px; }
}
@media (max-width: 900px) {
  .hero-grid { padding: 28px 16px 0; gap: 8px; align-items: start; }
  .hero-grid > *:first-child { padding-bottom: 22px; }
  .hero .lead { font-size: 14px; max-width: none; }
  .hero-cta { gap: 8px; justify-content: center; }
  .hero-photo-wrap { align-items: flex-start; justify-content: flex-start; }
  .hero-photo { max-width: 200px; margin-left: 0; }
  .hero h1 { font-size: 26px; }
  .hero-eyebrow-photo { height: 108px; }
}
@media (max-width: 700px) {
  .hero-grid { padding: 24px 14px 0; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; }
  .hero-cta .btn {
    width: auto; flex: 0 1 auto; white-space: nowrap;
    padding: 10px 18px; font-size: 12.5px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
  }
  .hero-photo { max-width: 165px; }
}
@media (max-width: 480px) {
  .hero-grid { padding: 20px 14px 0; gap: 6px; }
  .hero-grid > *:first-child { padding-bottom: 16px; }
  .hero h1 { font-size: 20px; line-height: 1.15; }
  .hero .lead { font-size: 12.5px; }
  .hero-photo { max-width: 125px; }
  .hero-badge { bottom: 4%; font-size: 9px; padding: 5px 9px; white-space: normal; text-align: center; }
  .hero-badge img { height: 14px; width: 14px; }
  .hero-cta { gap: 7px; margin-top: 12px; }
  .hero-cta .btn { padding: 9px 15px; font-size: 11.5px; }
  .eyebrow { font-size: 10px; padding: 4px 10px; }
  .hero-eyebrow-photo { height: 84px; border-radius: 10px; }
}
@media (max-width: 360px) {
  .hero-photo { max-width: 105px; }
  .hero h1 { font-size: 18px; }
  .hero-cta { gap: 6px; }
  .hero-cta .btn { padding: 8px 12px; font-size: 10.5px; }
  .hero-eyebrow-photo { height: 72px; }
}

/* ---------------- Stats strip ---------------- */
.stats-strip { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,0.12); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 24px; max-width: var(--container); margin: 0 auto; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 26px; display: block; color: var(--adc-gold); }
.stat span { font-size: 12.5px; color: rgba(255,255,255,0.75); }
@media (max-width: 700px) { .stats-grid { gap: 10px 12px; padding: 16px 14px; } .stat b { font-size: 19px; } .stat span { font-size: 10px; line-height: 1.3; } }
@media (max-width: 420px) { .stats-grid { gap: 6px 8px; padding: 14px 10px; } .stat b { font-size: 16px; } .stat span { font-size: 8.5px; } }

.live-activity-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 14px 24px 0; max-width: var(--container); margin: 0 auto;
}
.live-activity-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #5CE65C;
}
.live-activity-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #5CE65C; display: inline-block; }
.live-activity-title { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,0.85); }
@media (max-width: 700px) { .live-activity-head { padding: 10px 14px 0; } .live-activity-title { font-size: 12px; } }

/* Scrolling ticker under the stats strip — text moves continuously right to left */
.marquee-strip {
  overflow: hidden; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0; background: var(--ink);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 65s linear infinite;
}
.marquee-item {
  flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  white-space: nowrap; letter-spacing: .02em;
}
.marquee-white { color: var(--white); }
.marquee-green { color: #5CE65C; font-weight: 700; }
.marquee-red   { color: #FF3B4E; font-weight: 700; }
.marquee-dot {
  flex-shrink: 0; margin: 0 22px; color: rgba(255,255,255,0.3); font-size: 10px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .marquee-item { font-size: 12px; }
  .marquee-dot { margin: 0 14px; }
  .marquee-track { animation-duration: 48s; }
}

/* ---------------- Numbers (Movement Dashboard) ---------------- */
.numbers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.number-card {
  background: var(--paper-dim); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: transform .18s ease, box-shadow .18s ease;
}
.number-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.number-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.number-card .icon-badge {
  width: 36px; height: 36px; border-radius: 10px; background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--adc-green);
}
.number-card .live-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; color: var(--adc-green); text-transform: uppercase;
}
.number-card .live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--adc-green); display: inline-block; }
.number-card .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,3.2vw,2.1rem); color: var(--adc-green-dark); }
.number-card .label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.number-card .sublabel { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 900px) { .numbers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Public Polling Unit search ---------------- */
.pu-list { display: flex; flex-direction: column; gap: 8px; }
.pu-item {
  display: flex; align-items: baseline; gap: 12px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px;
}
.pu-item .pu-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--adc-green-dark);
  background: var(--adc-green-tint); padding: 2px 8px; border-radius: 6px; flex-shrink: 0;
}
.pu-item .pu-name { font-size: 13.5px; color: var(--ink); }
@media (max-width: 560px) { .pu-item { flex-direction: column; gap: 4px; } }

/* ---------------- Cards / Grids ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-2, .grid-3 { gap: 28px; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .card { padding: 18px; } }

/* ---------------- Agenda (five-point) ---------------- */
.agenda-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.agenda-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--adc-red); margin-bottom: 6px; display: block;
}
.agenda-visual { width: 100%; }
.agenda-visual svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.agenda-visual img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-lg);
  display: block; box-shadow: var(--shadow-sm);
}
/* Sliding photo gallery, shown automatically when an agenda point has more than one photo.
   Images stay in the same spot/size and slide across (translateX), not a fade. */
.agenda-slider { position: relative; width: 100%; height: 180px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-dim); }
.agenda-slider-track { display: flex; width: 100%; height: 100%; transition: transform .6s ease; }
.agenda-slider-track .agenda-slide {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; box-shadow: none; display: block;
}
.agenda-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.agenda-slider-dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.agenda-slider-dot.active { width: 16px; border-radius: 4px; background: var(--white); }
.commitments { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.commitments li { padding-left: 26px; position: relative; color: var(--ink-soft); font-size: 14.5px; }
.commitments li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 13px;
  background: var(--adc-green); border-radius: 3px;
}
@media (max-width: 800px) {
  .agenda-item { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .agenda-item { padding: 26px 0; gap: 16px; }
  .agenda-item h3 { font-size: 19px; margin-top: 4px; }
  .agenda-item p { font-size: 14.5px; }
  .agenda-num { font-size: 11.5px; }
  .agenda-visual img { height: 170px; }
  .agenda-slider { height: 170px; }
  .commitments { gap: 10px; margin-top: 14px; }
  .commitments li { font-size: 14px; line-height: 1.45; }
  .agenda-item > div:last-child > strong { display: block; margin-top: 18px; margin-bottom: 4px; }
  .agenda-item > div:last-child > div[style*="margin-top:14px"] { margin-top: 18px !important; line-height: 1.55; }
}

/* ---------------- Forms ---------------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
@media (max-width: 480px) { .form-card { padding: 18px; } }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-row .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--adc-green); background: var(--white);
  box-shadow: 0 0 0 3px var(--adc-green-tint);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.checkbox-row input { width: auto; margin-top: 3px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: #E7F3EC; color: var(--adc-green-dark); border: 1px solid #b9e0c8; }
.alert-error { background: #FBEAEA; color: #9B1C2E; border: 1px solid #f0c2c8; }

/* ---------------- Stepper (membership registration) ---------------- */
.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; gap: 6px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.step-circle {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper-dim); border: 2px solid var(--border); font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  z-index: 2;
}
.step.active .step-circle { background: var(--adc-green); border-color: var(--adc-green); color: var(--white); }
.step.done .step-circle { background: var(--white); border-color: var(--adc-green); color: var(--adc-green); }
.step-circle svg { width: 18px; height: 18px; }
.step span.label { font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.step.active span.label { color: var(--ink); }
.step::after {
  content: ''; position: absolute; top: 19px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 1;
}
.step:last-child::after { display: none; }
.step.done::after { background: var(--adc-green); }
@media (max-width: 480px) {
  .step-circle { width: 32px; height: 32px; font-size: 13px; }
  .step span.label { font-size: 10px; }
  .step::after { top: 16px; }
}

.form-step { display: none; }
.form-step.active { display: block; }

/* ---------------- Membership card ---------------- */
.member-card {
  width: 100%; max-width: 460px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-md); position: relative;
  font-family: var(--font-body); padding: 26px 28px;
}
.mc-header { display: flex; align-items: center; gap: 14px; }
.mc-header img { height: 48px; width: 48px; border-radius: 50%; flex-shrink: 0; }
.mc-header b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: .01em; }
.mc-header span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.mc-divider { height: 2px; background: var(--ink); margin: 16px 0; }
.mc-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mc-photo { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; background: var(--paper-dim); }
.mc-photo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); text-align: center; }
.mc-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.mc-meta { font-size: 13.5px; color: var(--ink-soft); display: grid; gap: 6px; }
.mc-meta strong { color: var(--ink); font-weight: 600; }
.mc-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.mc-footer div { padding: 0 8px; }
.mc-footer div + div { border-left: 1px solid var(--border); }
.mc-footer b { display: block; font-family: var(--font-display); font-size: 14px; word-break: break-word; }
.mc-footer span { display: block; font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.mc-dashed { border-top: 1px dashed var(--border); margin: 16px 0 12px; }
.mc-copyright { text-align: center; font-size: 11px; color: var(--ink-soft); }
@media (max-width: 420px) {
  .member-card { padding: 20px 18px; }
  .mc-name { font-size: 18px; }
  .mc-header img { height: 40px; width: 40px; }
  .mc-photo { width: 64px; height: 64px; }
}

/* ---------------- Blog / Media ---------------- */
.post-card img { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-lg) var(--radius-lg) 0 0; object-fit: contain; object-position: center; background: var(--paper-dim); display: block; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-link { display: block; color: inherit; }
.post-card .pad { padding: 22px; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--adc-green-dark); background: var(--adc-green-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Facebook share row on post cards + single-post page */
.post-card-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 22px 18px; border-top: 1px solid var(--border); margin-top: auto;
}
.post-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  color: #fff; background: #1877F2; padding: 7px 12px; border-radius: 999px;
  white-space: nowrap;
}
.post-share-btn:hover { background: #1461c9; }
.post-share-hint {
  font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; max-width: 150px;
}
.post-share-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.25);
  font-family: Georgia, serif; font-size: 11px; font-weight: 800;
}
.post-fb-name {
  font-size: 12px; color: var(--ink-soft); font-weight: 600;
  text-align: right; line-height: 1.3; max-width: 46%;
}
.post-fb-name:hover { color: var(--adc-green); text-decoration: underline; }
.post-single-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* Homepage "Latest News & Updates" — compact, clean cards on mobile */
.news-grid { gap: 20px; }
@media (max-width: 700px) {
  .news-section { padding: 36px 0; }
  .news-section h2 { font-size: 24px; }
  .news-grid { gap: 16px; }
}
@media (max-width: 480px) {
  .news-section { padding: 26px 0; }
  .news-section .eyebrow { font-size: 11px; padding: 3px 9px; }
  .news-section h2 { font-size: 20px; margin-bottom: .35em; }
  .news-grid { gap: 12px; margin-top: 16px !important; }
  .news-grid .post-card .pad { padding: 14px 16px 16px; }
  .news-grid .tag { font-size: 10px; padding: 3px 8px; margin-bottom: 8px; }
  .news-grid .post-card h3 { font-size: 16px; margin-bottom: 6px; }
  .news-grid .post-card p {
    font-size: 13px; margin-bottom: 8px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-grid .post-card .small { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .post-card-actions { padding: 10px 16px 16px; gap: 8px; }
  .post-share-btn { font-size: 11.5px; padding: 6px 10px; }
  .post-fb-name { max-width: 48%; font-size: 10.5px; }
  .post-single-share { gap: 10px; margin-top: 22px; padding-top: 16px; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 44px 24px 24px; max-width: var(--container); margin: 0 auto; }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,0.72); font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--adc-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 18px; font-size: 12.5px; color: rgba(255,255,255,0.55); }
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Home page: brighter background ---------------- */
body.page-index { background: var(--white); }
body.page-index .section { background: var(--white); }

/* ---------------- Page header (inner pages) ---------------- */
.page-header { background: var(--adc-green-dark); color: var(--white); padding: 42px 0 34px; position: relative; overflow: hidden; }
.page-header .container { position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; opacity: .8; margin-bottom: 10px; }
@media (max-width: 480px) {
  .page-header { padding: 32px 0 26px; }
  .container { padding: 0 18px; }
}

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 13px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #FBEBD6; color: #8a4e0d; }
.badge-approved { background: #E7F3EC; color: var(--adc-green-dark); }
.badge-rejected { background: #FBEAEA; color: #9B1C2E; }

/* ---------------- Admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: rgba(255,255,255,0.85); padding: 20px 16px; }
.admin-sidebar .brand-text strong, .admin-sidebar .brand-text span { color: var(--white); }
.admin-sidebar .brand { gap: 10px; }
.admin-sidebar nav { margin-top: 22px; display: grid; gap: 3px; }
.admin-sidebar nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-main { padding: 22px 26px; background: var(--paper); min-width: 0; }

/* Top-right account dropdown: avatar + name, menu with Change Password / Log Out */
.admin-account-bar { display: flex; justify-content: flex-end; margin: -22px -26px 20px; padding: 14px 26px; border-bottom: 1px solid var(--border); background: var(--white); }
.admin-account-dropdown { position: relative; }
.admin-account-trigger { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 10px; }
.admin-account-trigger:hover { background: var(--paper-dim); }
.admin-account-avatar { height: 34px; width: 34px; border-radius: 50%; background: var(--adc-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.admin-account-name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.admin-account-chevron { color: var(--ink-soft); transition: transform 0.15s ease; flex-shrink: 0; }
.admin-account-dropdown.open .admin-account-chevron { transform: rotate(180deg); }
.admin-account-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; display: none; z-index: 50; }
.admin-account-dropdown.open .admin-account-menu { display: block; }
.admin-account-menu-header { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.admin-account-menu-header strong { display: block; font-size: 14px; }
.admin-account-menu-header span { font-size: 12px; color: var(--ink-soft); }
.admin-account-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.admin-account-menu a:hover { background: var(--paper-dim); }
.admin-account-menu a.admin-account-logout { color: #9B1C2E; }
@media (max-width: 480px) {
  .admin-account-bar { margin: -16px -16px 16px; padding: 10px 16px; }
  .admin-account-name { display: none; }
}
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }

/* Compact, professional cards inside the admin area */
.admin-main .card { padding: 18px 20px; }
.admin-main .grid-3 { gap: 16px; }
.admin-main .grid-2 { gap: 16px; }

/* Dashboard summary stat cards (Total Members, Wards Covered, Volunteers, Polling Units) */
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 16px 18px; }
.stat-card .stat-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.stat-card .stat-value { margin: 6px 0 0; font-size: 26px; }
@media (max-width: 900px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
}
@media (max-width: 700px) {
  .admin-topbar { gap: 10px; }
  .admin-topbar > div h1 { font-size: 20px; }
  .dashboard-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dashboard-card-head .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .dashboard-stats { gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 12px 14px; }
  .stat-card .stat-label { font-size: 10.5px; }
  .stat-card .stat-value { font-size: 20px; margin-top: 4px; }
  .admin-topbar h1 { font-size: 19px; }
  .admin-topbar { margin-bottom: 14px; }
  .admin-main .card { padding: 14px 16px; }
  .admin-main .card h3 { font-size: 14.5px; margin-bottom: 10px; }
  .admin-main .card[style*="space-between"] { flex-direction: column; align-items: stretch !important; }
  .admin-main .card[style*="space-between"] form,
  .admin-main .card[style*="space-between"] .btn { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .stat-card .stat-value { font-size: 18px; }
}

/* Dashboard page — extra-compact scope (doesn't affect .card/.stat-card elsewhere) */
.admin-dashboard-compact .card { padding: 14px 16px; }
.admin-dashboard-compact .dashboard-toggle-row { gap: 12px; margin-bottom: 14px; }
.admin-dashboard-compact .dashboard-toggle-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-dashboard-compact .dashboard-toggle-card h3 { font-size: 13.5px; margin: 0 0 3px; }
.admin-dashboard-compact .dashboard-toggle-card p { margin: 0; font-size: 12px; line-height: 1.5; }
.admin-dashboard-compact .dashboard-stats { gap: 10px; margin-bottom: 14px; }
.admin-dashboard-compact .stat-card { padding: 11px 13px; }
.admin-dashboard-compact .stat-card .stat-label { font-size: 10.5px; }
.admin-dashboard-compact .stat-card .stat-value { font-size: 19px; margin-top: 3px; }
.admin-dashboard-compact .grid-2 { gap: 14px; }
.admin-dashboard-compact .dashboard-card-compact { padding-top: 12px; padding-bottom: 12px; }
.admin-dashboard-compact .dashboard-card-head { margin-bottom: 8px; }
.admin-dashboard-compact .dashboard-card-head h3 { font-size: 14.5px; }
.admin-dashboard-compact .table-scroll-y { max-height: 190px; }
@media (max-width: 480px) {
  .admin-dashboard-compact .dashboard-toggle-card { flex-direction: column; align-items: stretch; }
  .admin-dashboard-compact .dashboard-toggle-card form,
  .admin-dashboard-compact .dashboard-toggle-card .btn { width: 100%; text-align: center; }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* Election Results page — compact scope */
.admin-results-compact .dashboard-stats { gap: 10px; margin-bottom: 14px; }
.admin-results-compact .stat-card { padding: 10px 12px; }
.admin-results-compact .stat-card .stat-label { font-size: 10.5px; }
.admin-results-compact .stat-card .stat-value { font-size: 18px; margin-top: 3px; }
.admin-results-compact .table-scroll-y.table-scroll-y--tall { max-height: 380px; }
.admin-results-compact table th, .admin-results-compact table td { padding: 9px 12px; font-size: 13px; }
@media (max-width: 480px) {
  .admin-results-compact .table-scroll-y.table-scroll-y--tall { max-height: 320px; }
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-wrap th { background: var(--paper-dim); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: var(--paper-dim); }
.admin-login-split { min-height: 100vh; display: flex; }
.admin-login-brand {
  flex: 1 1 50%; min-width: 0;
  background: linear-gradient(160deg, var(--adc-green-dark) 0%, var(--adc-green) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 64px; position: relative; overflow: hidden;
}
.admin-login-brand img { height: 60px; width: 60px; border-radius: 50%; margin-bottom: 22px; border: 2px solid rgba(255,255,255,0.5); }
.admin-login-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.admin-login-brand h1 { color: #fff; font-size: 30px; margin-bottom: 16px; }
.admin-login-tagline { color: rgba(255,255,255,0.85); max-width: 40ch; line-height: 1.65; margin-bottom: 36px; font-size: 15px; }
.admin-login-stats { display: flex; gap: 34px; }
.admin-login-stats strong { display: block; font-size: 26px; font-weight: 800; color: var(--adc-gold); }
.admin-login-stats span { font-size: 11.5px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-login-panel { flex: 1 1 50%; min-width: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-form-wrap { width: 100%; max-width: 380px; }
@media (max-width: 860px) {
  .admin-login-split { flex-direction: column; }
  .admin-login-brand { display: none; }
  .admin-login-panel { padding: 32px 20px 56px; min-height: 100vh; }
}

/* Shared show/hide password toggle (admin login, PU agent login) */
.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 44px; }
.password-toggle-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; cursor: pointer; color: var(--ink-soft); display: flex; }
.password-toggle-btn:hover { color: var(--ink); }

/* Dashboard cards: compact header row (title + action) and scrollable table bodies */
.dashboard-card-compact { padding-top: 16px; padding-bottom: 16px; }
.dashboard-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dashboard-card-head h3 { margin: 0; }

/* Vertical scroll: keeps the "Members by Ward" card a fixed, compact height
   no matter how many wards are listed — scroll up/down within the card. */
.table-scroll-y { max-height: 240px; overflow-y: auto; }
.table-scroll-y thead th { position: sticky; top: 0; z-index: 1; }

/* Taller variant for full admin list pages (Members, Volunteers) — the
   table itself scrolls up/down instead of the whole page growing. */
.table-scroll-y--tall { max-height: 560px; }

/* Horizontal scroll: lets wide tables (e.g. Recent Registrations) scroll
   left/right on narrow screens instead of breaking the layout. */
.table-scroll-x { overflow-x: auto; }

@media (max-width: 480px) {
  .dashboard-card-compact { padding-top: 14px; padding-bottom: 14px; }
  .table-scroll-y { max-height: 200px; }
  .table-scroll-y--tall { max-height: 420px; }
}

/* Mobile top bar + hamburger (hidden on desktop) */
.admin-mobile-topbar { display: none; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
.admin-nav-toggle { background: rgba(255,255,255,0.1); border: none; color: var(--white); width: 34px; height: 34px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.admin-nav-overlay { display: none; }

/* Five-Point Agenda admin grid */
.agenda-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.agenda-admin-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.agenda-admin-thumb { aspect-ratio: 16/9; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.agenda-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.agenda-admin-thumb svg { width: 56px; height: 56px; }
.agenda-admin-thumb-count {
  position: absolute; right: 8px; bottom: 8px; background: rgba(22,23,16,0.72); color: var(--white);
  font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
}
.agenda-admin-body { padding: 16px 18px 18px; }

/* Admin: current-photos gallery grid on the agenda edit page */
.agenda-gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, 88px); gap: 10px; margin-top: 8px; }
.agenda-gallery-admin-item { position: relative; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--paper-dim); }
.agenda-gallery-admin-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agenda-gallery-admin-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(22,23,16,0.75); color: var(--white); font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.agenda-gallery-admin-remove:hover { background: var(--adc-red); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-mobile-topbar { display: flex; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; width: 250px; z-index: 40;
    transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
  .admin-nav-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 35; }
}
@media (max-width: 480px) {
  .admin-main { padding: 16px; }
  table { font-size: 12.5px; }
  th, td { padding: 9px 12px; }
  .agenda-admin-grid { grid-template-columns: 1fr; }
}

/* Responsive 16:9 video embed for Engagement posts (YouTube/Facebook/Vimeo) */
.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Membership registration closed notice */
.registration-closed-card { text-align: center; padding: 40px 24px; }
.registration-closed-card .lock-icon { font-size: 40px; margin-bottom: 12px; }
@media (max-width: 480px) {
  .registration-closed-card { padding: 28px 18px; }
  .registration-closed-card .lock-icon { font-size: 34px; }
  .registration-closed-card h2 { font-size: 19px; }
  .registration-closed-card p { font-size: 14px; }
}

/* Engagement post photo gallery frame — sizes/crops consistently wherever the
   gallery appears (single post, listing cards, homepage cards). Uses
   object-fit: contain (not cover) so photos are never cropped/cut off. */
.post-gallery-frame { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-dim); }
.post-gallery-frame--card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.post-gallery-frame > img,
.post-gallery-frame .agenda-slider,
.post-gallery-frame .agenda-slider-track { width: 100%; height: 100%; }
.post-gallery-frame > img,
.post-gallery-frame .agenda-slide { object-fit: contain; }

/* ---------------- Generic modal (used by Donate, etc.) ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 15, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-md); max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: var(--paper-dim); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--border); }

.donate-account-box {
  background: var(--paper-dim); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 18px 0;
}
.donate-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.donate-account-row + .donate-account-row { border-top: 1px dashed var(--border); }
.donate-label { font-size: 12.5px; color: var(--ink-soft); }
.donate-value { font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-align: right; }

@media (max-width: 480px) {
  .modal-box { padding: 26px 20px; }
  .donate-account-box { padding: 14px 14px; }
  .donate-value { font-size: 13px; }
}

/* =========================================================================
   Admin: Polling Unit Coverage report
   (added — tracks which of the 201 INEC polling units, across all 7 wards,
   already have registered members vs. which are still uncovered)
   ========================================================================= */
.coverage-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 14px; }
.coverage-ring {
  --pct: 0;
  width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--adc-green) calc(var(--pct) * 1%), var(--paper-dim) 0);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.coverage-ring-inner {
  width: 74px; height: 74px; border-radius: 50%; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.coverage-ring-inner b { font-family: var(--font-display); font-size: 18px; line-height: 1; color: var(--adc-green-dark); }
.coverage-ring-inner span { font-size: 9px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

.coverage-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.coverage-stats .stat-card { padding: 10px 14px; }
.coverage-stats .stat-card .stat-label { font-size: 11px; }
.coverage-stats .stat-card .stat-value { font-size: 21px; margin-top: 4px; }
.coverage-stats .stat-value.is-red { color: var(--adc-red); }
.coverage-stats .stat-value.is-gold { color: var(--adc-gold); }

@media (max-width: 900px) { .coverage-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
@media (max-width: 700px) { .coverage-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .coverage-ring { width: 80px; height: 80px; }
  .coverage-ring-inner { width: 60px; height: 60px; }
  .coverage-ring-inner b { font-size: 16px; }
}

.coverage-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 10px 14px; margin: 14px 0 12px;
}
.coverage-toolbar input[type="text"],
.coverage-toolbar select { margin: 0; }
.coverage-toolbar label.checkbox-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; user-select: none;
}
.coverage-toolbar .spacer { flex: 1; }

.ward-coverage-list { display: grid; gap: 8px; }
.ward-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ward-card > summary {
  list-style: none; cursor: pointer; padding: 11px 14px; display: flex; align-items: center; gap: 12px;
}
.ward-card > summary::-webkit-details-marker { display: none; }
.ward-card > summary::after {
  content: '\25BE'; margin-left: auto; color: var(--ink-soft); font-size: 14px;
  transition: transform .18s ease; flex-shrink: 0;
}
.ward-card[open] > summary::after { transform: rotate(180deg); }
.ward-card-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; min-width: 140px; }
.ward-card-counts { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.ward-card-counts strong { color: var(--ink); }
.ward-progress-track {
  flex: 1; min-width: 90px; height: 6px; border-radius: 999px; background: var(--paper-dim); overflow: hidden;
}
.ward-progress-fill { height: 100%; border-radius: 999px; background: var(--adc-green); transition: width .3s ease; }
.ward-progress-fill.is-low { background: var(--adc-red); }
.ward-progress-fill.is-mid { background: var(--adc-gold); }
.ward-card-pct { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; min-width: 42px; text-align: right; }
.ward-card-body { border-top: 1px solid var(--border); padding: 4px 14px 12px; }

/* Scrollable PU table: keeps each ward card compact instead of growing with
   the number of polling units — header stays pinned while rows scroll. */
.ward-card-body .table-wrap {
  border: 1px solid var(--border); margin-top: 8px;
  max-height: 320px; overflow-y: auto;
}
.ward-card-body .table-wrap table { font-size: 12.5px; }
.ward-card-body .table-wrap th, .ward-card-body .table-wrap td { padding: 7px 10px; }
.ward-card-body .table-wrap thead th {
  position: sticky; top: 0; z-index: 1; background: var(--paper-dim);
}
tr.pu-row.is-covered td:first-child { border-left: 3px solid var(--adc-green); }
tr.pu-row.is-uncovered td:first-child { border-left: 3px solid var(--adc-red); }
tr.pu-row[hidden] { display: none; }
.ward-card[hidden] { display: none; }

@media (max-width: 700px) {
  .ward-card > summary { flex-wrap: wrap; padding: 12px 14px; }
  .ward-card-name { min-width: 100%; }
  .ward-progress-track { order: 3; width: 100%; }
  .ward-card-counts { order: 2; }
  .ward-card-pct { order: 4; margin-left: auto; }
  .ward-card-body .table-wrap { max-height: 280px; }
}

@media (max-width: 480px) {
  .ward-card-body { padding: 4px 10px 10px; }
  .ward-card-body .table-wrap { max-height: 260px; }
  .ward-card-body .table-wrap table { font-size: 12px; }
  .ward-card-body .table-wrap th, .ward-card-body .table-wrap td { padding: 6px 8px; }
}

/* =====================================================================
   HOME — "News & Updates" newsroom layout (compact: featured story + scrollable list of ALL other posts)
   ===================================================================== */
.news-section.newsroom { padding: 40px 0; }
.newsroom-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.newsroom-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; position: relative; padding-bottom: 8px; }
.newsroom-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 70px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--adc-gold), var(--adc-green)); }
.newsroom-eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 11.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--adc-green); }
.newsroom-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--adc-gold); }
.newsroom-title h2 { margin: 0; font-size: 24px; color: var(--adc-green-dark); line-height: 1.15; }
.newsroom-all { font: 700 13.5px var(--font-display); color: var(--adc-green); white-space: nowrap; padding-bottom: 8px; }
.newsroom-all:hover { text-decoration: underline; }

.newsroom-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .newsroom-grid:not(.is-single) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

.newsroom-feature { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); }
.newsroom-feature-link { display: block; color: inherit; }
.newsroom-media { position: relative; background: var(--adc-green-tint); }
.newsroom-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--adc-green-dark); color: #fff; font: 700 10.5px var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.newsroom-frame.post-gallery-frame { aspect-ratio: auto; height: 230px; border-radius: 0; background: var(--adc-green-tint); }
.newsroom-body { padding: 12px 18px 12px; }
.newsroom-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }
.newsroom-body h3 { font-size: 19px; line-height: 1.25; color: var(--adc-green-dark); margin: 0 0 6px; }
.newsroom-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.newsroom-more { font: 700 13px var(--font-display); color: var(--adc-green); }
.newsroom-feature-link:hover .newsroom-more { text-decoration: underline; }
.newsroom-feature .post-card-actions { padding: 9px 18px 12px; }

.newsroom-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.newsroom-list { display: flex; flex-direction: column; gap: 7px; max-height: 392px; overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-width: thin; scrollbar-color: #9fcfb3 transparent; }
.newsroom-list::-webkit-scrollbar { width: 6px; }
.newsroom-list::-webkit-scrollbar-thumb { background: #9fcfb3; border-radius: 6px; }
.newsroom-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); color: inherit; transition: transform .15s ease, box-shadow .15s ease; flex: none; }
.newsroom-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.newsroom-item-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--adc-green-tint); color: var(--adc-green); }
.newsroom-item-text { min-width: 0; }
.newsroom-item-meta { display: block; font: 700 10.5px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--adc-green); margin-bottom: 1px; }
.newsroom-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 13.5px/1.3 var(--font-display); color: var(--adc-green-dark); }
.newsroom-viewall { text-align: center; padding: 9px; border: 1.5px dashed #86c9a3; border-radius: 10px; background: var(--adc-green-tint); font: 700 13px var(--font-display); color: var(--adc-green); }
.newsroom-viewall:hover { background: #d8eee1; }

@media (max-width: 899px) { .newsroom-frame.post-gallery-frame { height: 200px; } .newsroom-list { max-height: 330px; } }
@media (max-width: 560px) {
  .news-section.newsroom { padding: 28px 0; }
  .newsroom-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .newsroom-all { padding-bottom: 0; }
  .newsroom-title h2 { font-size: 20px; }
  .newsroom-body { padding: 10px 14px; }
  .newsroom-body h3 { font-size: 17px; }
  .newsroom-frame.post-gallery-frame { height: 170px; }
  .newsroom-feature .post-card-actions { padding: 8px 14px 10px; }
}

/* =====================================================================
   HOME MOTION — animated hero buttons + animated section headings
   (home-motion.js adds .hm-js to <html>; without JS everything simply shows)
   ===================================================================== */
@property --hm-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --hm-g { syntax: '<number>'; inherits: false; initial-value: 0; }

/* ---- hero buttons ---- */
.hero-cta .btn {
  --mx: 50%; --my: 50%; --tx: 0px; --ty: 0px;
  position: relative; isolation: isolate; will-change: translate;
  translate: var(--tx) var(--ty);
  background-image:
    linear-gradient(110deg, transparent 44%, rgba(255,255,255,.55) 50%, transparent 56%),
    radial-gradient(circle 70px at var(--mx) var(--my), rgba(255,255,255,calc(var(--hm-g) * .38)), transparent 70%),
    linear-gradient(0deg, transparent, transparent);
  background-size: 260% 100%, 100% 100%, 100% 100%;
  background-position: 100% 0, 0 0, 0 0;
  background-repeat: no-repeat;
  transition: translate .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, background-color .25s ease, color .25s ease, border-color .25s ease, --hm-g .3s ease;
  animation: hmBtnIn .85s cubic-bezier(.2,.9,.25,1.15) backwards, hmShine 4.2s ease-in-out 1.4s infinite;
}
.hero-cta .btn:nth-child(1) { animation-delay: .15s, 1.2s; }
.hero-cta .btn:nth-child(2) { animation-delay: .3s, 1.9s; }
.hero-cta .btn:nth-child(3) { animation-delay: .45s, 2.6s; }
.hero-cta .btn:nth-child(4) { animation-delay: .6s, 3.3s; }
.hero-cta .btn-cta-pulse {
  animation: hmBtnIn .85s cubic-bezier(.2,.9,.25,1.15) .15s backwards, ctaBreathe 2.6s ease-in-out 1s infinite, hmShine 4.2s ease-in-out 1.2s infinite;
}
.hero-cta .btn:hover { --hm-g: 1; translate: var(--tx) calc(var(--ty) - 4px); box-shadow: 0 14px 30px rgba(0,0,0,.38); }
.hero-cta .btn:active { translate: var(--tx) calc(var(--ty) - 1px); }
@keyframes hmBtnIn {
  from { opacity: 0; translate: 0 30px; scale: .55; filter: blur(8px); }
  60%  { opacity: 1; scale: 1.07; filter: blur(0); translate: var(--tx) var(--ty); }
}
@keyframes hmShine {
  0%   { background-position: 100% 0, 0 0, 0 0; }
  42%, 100% { background-position: 0% 0, 0 0, 0 0; }
}

/* Learn More — nudging arrow */
.btn-arrow::after { content: "\2192"; display: inline-block; animation: hmNudge 1.4s ease-in-out infinite; }
@keyframes hmNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* See Our Numbers — dark pill, live equalizer bars, travelling glow line */
.hero-cta .btn-numbers {
  color: #fff; gap: 10px; border-color: rgba(255,255,255,.22); background-color: #0a3a22;
  background-image:
    linear-gradient(110deg, transparent 44%, rgba(255,255,255,.4) 50%, transparent 56%),
    radial-gradient(circle 70px at var(--mx) var(--my), rgba(255,255,255,calc(var(--hm-g) * .3)), transparent 70%),
    linear-gradient(135deg, #0f5a33, #082d1a);
}
.hero-cta .btn-numbers:hover { background-color: #0d4a2b; border-color: rgba(255,255,255,.4); }
.btn-numbers::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: -2px; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--adc-gold), #fff, var(--adc-gold), transparent); background-size: 200% 100%;
  filter: drop-shadow(0 0 5px rgba(232,135,30,.9)); animation: hmLine 2.4s linear infinite;
}
@keyframes hmLine { to { background-position: -200% 0; } }
.nb-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.nb-bars i { display: block; width: 3.5px; border-radius: 1px; background: #fff; transform-origin: bottom; animation: hmBars 1.1s ease-in-out infinite; }
.nb-bars i:nth-child(1) { height: 7px; animation-delay: -.2s; }
.nb-bars i:nth-child(2) { height: 15px; animation-delay: -.6s; }
.nb-bars i:nth-child(3) { height: 11px; animation-delay: -.95s; }
@keyframes hmBars { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Register as Agent — light that circles the outline */
.btn-orbit::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--hm-ang), transparent 0 60%, rgba(255,255,255,.95) 84%, var(--adc-gold) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: hmSpin 2.8s linear infinite;
}
@keyframes hmSpin { to { --hm-ang: 360deg; } }

/* click ripple */
.hm-rip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hm-rip i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: hmRip .65s ease-out forwards; }
@keyframes hmRip { to { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn, .hero-cta .btn-cta-pulse { animation: none !important; }
  .btn-arrow::after, .btn-numbers::after, .btn-orbit::after, .nb-bars i { animation: none !important; }
}

/* ---- scroll-reveal headings ---- */
.hm-js [data-hm="eyebrow"] { opacity: 0; transform: translateX(-22px) scale(.85); transform-origin: left center; filter: blur(4px); transition: opacity .6s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), filter .6s ease var(--d, 0ms); }
.hm-js [data-hm="eyebrow"].is-in { opacity: 1; transform: none; filter: none; }
.hm-js [data-hm="lead"] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), filter .8s ease var(--d, 0ms); }
.hm-js [data-hm="lead"].is-in { opacity: 1; transform: none; filter: none; }
.hm-js [data-hm="tag"] { opacity: 0; transform: translateX(-16px); letter-spacing: .38em; transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), letter-spacing .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.hm-js [data-hm="tag"].is-in { opacity: 1; transform: none; letter-spacing: .1em; }
.hm-js [data-hm="split"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hm-js [data-hm="split"] .w > span { display: inline-block; opacity: 0; transform: translateY(115%) rotate(5deg); transform-origin: left bottom; transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.hm-js [data-hm="split"].is-in .w > span { opacity: 1; transform: none; }
.hm-js [data-hm-bob].is-in .w { animation: hmBob 2s ease-in-out infinite; }
@keyframes hmBob { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-6px); } 75% { transform: translateY(5px); } }
.hm-js .hm-ul { display: inline-block; position: relative; }
.hm-js .hm-ul::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 3px; border-radius: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.7,0,.2,1) var(--ud, 1s); }
.hm-js [data-hm="split"].is-in .hm-ul::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .hm-js [data-hm] , .hm-js [data-hm] .w > span, .hm-js .hm-ul::after { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .hm-js [data-hm="tag"] { letter-spacing: .1em !important; }
  .hm-js [data-hm-bob] .w { animation: none !important; }
}


/* =====================================================================
   NUMBERS PAGE (numbers.php) — banner, live cards, ward-by-ward reach
   ===================================================================== */
.num-banner { padding: 40px 0 34px; background: linear-gradient(135deg, var(--adc-green-dark), #0e5a32); }
.num-pill { display: inline-block; font: 700 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #ffd37a; background: rgba(0,0,0,.25); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.num-banner h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 10px; }
.num-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.num-live i { width: 8px; height: 8px; border-radius: 50%; background: #2bd47a; box-shadow: 0 0 0 0 rgba(43,212,122,.7); animation: numLive 1.8s ease-out infinite; }
@keyframes numLive { 70% { box-shadow: 0 0 0 9px rgba(43,212,122,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,122,0); } }
.num-stage { background: #eef8f1; padding: 34px 0; }
.num-stage .numbers-grid { margin-top: 0; }
.num-reach { padding-top: 10px; padding-bottom: 56px; }
.reach-pill { display: inline-block; font: 700 11.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #1a9b57; background: #d4f0e0; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.reach-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--adc-green-dark); margin-bottom: 6px; }
.reach-lead { max-width: 56ch; color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.reach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
.reach-chip { border: 0; border-radius: 9px; padding: 13px 8px; font: 700 12.5px var(--font-body); cursor: pointer; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.reach-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(7,63,34,.18); }
.reach-chip.is-active { outline: 3px solid var(--adc-gold); outline-offset: 2px; }
.lvl-none    { background: #e9ece9; color: #9aa39b; }
.lvl-low     { background: #cfeedb; color: #3f8a61; }
.lvl-growing { background: #8bd7ad; color: #0c4a2a; }
.lvl-strong  { background: #4cb97e; color: #fff; }
.lvl-leading { background: #146c3c; color: #fff; }
.reach-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #7d887f; }
.reach-legend span { display: inline-flex; align-items: center; gap: 6px; }
.reach-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.reach-panel { position: relative; margin-top: 24px; background: #fff; border-radius: 16px; padding: 20px 22px 22px; box-shadow: 0 14px 40px rgba(7,63,34,.14); }
.reach-panel.pop { animation: reachPop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes reachPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.reach-active { display: inline-block; font: 700 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #1a9b57; background: #d4f0e0; padding: 5px 12px; border-radius: 999px; }
.reach-panel h3 { margin: 12px 0 14px; font-size: 18px; color: var(--ink); }
.reach-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #6f7a71; cursor: pointer; }
.reach-close:hover { color: var(--ink); }
.reach-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reach-stats > div { display: flex; align-items: center; gap: 12px; background: #eef8f1; border-radius: 10px; padding: 14px 16px; color: #16874a; }
.reach-stats b { display: block; font: 800 18px var(--font-display); color: var(--ink); line-height: 1.1; }
.reach-stats small { font-size: 11.5px; color: var(--ink-soft); }
@media (max-width: 640px) { .reach-stats { grid-template-columns: 1fr; } .num-stage { padding: 24px 0; } }


/* ---- compact "by the Numbers" cards on phones ---- */
@media (max-width: 700px) {
  .numbers-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
  .numbers-grid .number-card:nth-child(-n+3) { grid-column: span 2; }
  .numbers-grid .number-card:nth-child(n+4) { grid-column: span 3; }
  .number-card { padding: 10px 11px; border-radius: 12px; }
  .number-card:hover { transform: none; }
  .number-card-top { margin-bottom: 6px; }
  .number-card .icon-badge { width: 26px; height: 26px; border-radius: 8px; }
  .number-card .icon-badge svg { width: 13px; height: 13px; }
  .number-card .live-badge { font-size: 8.5px; gap: 3px; }
  .number-card .live-badge .dot { width: 5px; height: 5px; }
  .number-card .num { font-size: 1.3rem; line-height: 1.15; }
  .number-card .label { font-size: 11.5px; line-height: 1.25; }
  .number-card .sublabel { font-size: 10px; line-height: 1.25; }
}

/* ---------------- Added: blinking "Live" badge on number cards ---------------- */
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.number-card .live-badge { animation: liveBlink 1.1s ease-in-out infinite; }
.number-card .live-badge .dot { animation: liveBlink 1.1s ease-in-out infinite; }

/* ---------------- Added: motion for Home "News & Updates" ---------------- */
@keyframes newsSlideIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes newsSlideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes newsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes newsArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes newsBadgePulse { 0%, 100% { box-shadow: 0 3px 10px rgba(0,0,0,.2), 0 0 0 0 rgba(242,140,20,.55); } 50% { box-shadow: 0 3px 10px rgba(0,0,0,.2), 0 0 0 7px rgba(242,140,20,0); } }
@keyframes newsTitleBar { 0%, 100% { width: 70px; } 50% { width: 130px; } }

.news-section.newsroom .newsroom-title { animation: newsSlideIn .8s cubic-bezier(.2,.8,.2,1) both; }
.news-section.newsroom .newsroom-title::after { animation: newsTitleBar 2.8s ease-in-out infinite; }
.news-section.newsroom .newsroom-all { display: inline-block; animation: newsSlideIn .8s cubic-bezier(.2,.8,.2,1) .15s both, newsArrow 1.6s ease-in-out 1s infinite; }
.news-section.newsroom .newsroom-feature { animation: newsSlideUp .9s cubic-bezier(.2,.8,.2,1) .2s both, newsFloat 5s ease-in-out 1.2s infinite; }
.news-section.newsroom .newsroom-feature:hover { animation-play-state: running, paused; }
.news-section.newsroom .newsroom-badge { animation: newsBadgePulse 2s ease-out infinite; }
.news-section.newsroom .newsroom-item { animation: newsSlideIn .7s cubic-bezier(.2,.8,.2,1) both; }
.news-section.newsroom .newsroom-item:nth-child(1) { animation-delay: .3s; }
.news-section.newsroom .newsroom-item:nth-child(2) { animation-delay: .4s; }
.news-section.newsroom .newsroom-item:nth-child(3) { animation-delay: .5s; }
.news-section.newsroom .newsroom-item:nth-child(4) { animation-delay: .6s; }
.news-section.newsroom .newsroom-item:nth-child(n+5) { animation-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
  .number-card .live-badge, .number-card .live-badge .dot,
  .news-section.newsroom .newsroom-title, .news-section.newsroom .newsroom-title::after,
  .news-section.newsroom .newsroom-all, .news-section.newsroom .newsroom-feature,
  .news-section.newsroom .newsroom-badge, .news-section.newsroom .newsroom-item { animation: none; }
}
