/* ==========================================================================
   Dr. Jamilu Isyaku Gwamna — Gombe State Governorship Campaign
   Stylesheet
   --------------------------------------------------------------------------
   Design system notes:
   - Signature motif: an 11-segment bar, one segment per Gombe LGA
     (Akko, Balanga, Billiri, Dukku, Funakaye, Gombe, Kaltungo, Kwami,
     Nafada, Shongom, Yamaltu/Deba). It recurs as section dividers,
     stat bars and the footer rule, tying the visual system to the state.
   - Display face: Fraunces (editorial serif, campaign gravitas)
   - Body face: Public Sans (civic/government register)
   - Utility face: IBM Plex Mono (stats, dates, data-like labels)
   ========================================================================== */

/* -------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* The [hidden] attribute must always win over component display rules
   (e.g. .auth-actions { display:flex }), otherwise elements toggled via
   JS's `hidden` property can render even while "hidden". */
[hidden] { display: none !important; }

@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;
  }
}

/* ------------------------------ Design tokens --------------------------- */
:root {
  /* Color */
  --c-green:        #008751; /* APC brand green */
  --c-green-deep:   #0B3D2E; /* deep forest, headers/nav/footer */
  --c-green-mid:    #0F5C3E;
  --c-gold:         #C9A227;
  --c-gold-light:   #E4C766;
  --c-cream:        #F7F5EF; /* light gray/off-white */
  --c-gray:         #EFEDE6;
  --c-ink:          #14201A; /* dark, green-tinted near-black */
  --c-ink-soft:     #43503F;
  --c-white:        #FFFFFF;

  /* Type */
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 61, 46, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 61, 46, 0.14);
  --shadow-lg: 0 24px 60px rgba(11, 61, 46, 0.20);
  --container: 1240px;
  --nav-h: 84px;
}

/* -------------------------------- Base ---------------------------------- */
body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-green-deep);
  line-height: 1.15;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--c-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--c-gold);
  display: inline-block;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section--tight { padding: 70px 0; }
.section--cream { background: var(--c-cream); }
.section--deep { background: var(--c-green-deep); color: var(--c-cream); }
.section--deep h2, .section--deep h3 { color: var(--c-white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--c-ink-soft);
  font-size: 1.05rem;
}

.section--deep .section-head p { color: rgba(247,245,239,0.78); }

/* -------------------------- LGA bar signature ---------------------------- */
/* 11 segments, one per Gombe LGA. Used as decorative section dividers. */
.lga-bar {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  height: 6px;
  margin: 0 auto;
}
.lga-bar span {
  flex: 1;
  height: 100%;
  background: var(--c-gold);
  border-radius: 2px;
  opacity: 0.35;
}
.lga-bar.is-visible span { opacity: 1; transition: opacity 0.4s ease; }
.lga-bar.is-visible span:nth-child(1) { transition-delay: 0.03s; }
.lga-bar.is-visible span:nth-child(2) { transition-delay: 0.06s; }
.lga-bar.is-visible span:nth-child(3) { transition-delay: 0.09s; }
.lga-bar.is-visible span:nth-child(4) { transition-delay: 0.12s; }
.lga-bar.is-visible span:nth-child(5) { transition-delay: 0.15s; }
.lga-bar.is-visible span:nth-child(6) { transition-delay: 0.18s; }
.lga-bar.is-visible span:nth-child(7) { transition-delay: 0.21s; }
.lga-bar.is-visible span:nth-child(8) { transition-delay: 0.24s; }
.lga-bar.is-visible span:nth-child(9) { transition-delay: 0.27s; }
.lga-bar.is-visible span:nth-child(10) { transition-delay: 0.30s; }
.lga-bar.is-visible span:nth-child(11) { transition-delay: 0.33s; }

.section-divider {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-gold);
  color: var(--c-green-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--c-gold-light); }

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--c-white); }

.btn-ghost-green {
  background: transparent;
  color: var(--c-green-deep);
  border: 1.5px solid var(--c-green-deep);
}
.btn-ghost-green:hover { background: var(--c-green-deep); color: var(--c-white); }

.btn-solid-green {
  background: var(--c-green);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn-solid-green:hover { background: var(--c-green-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
}

/* --------------------------------- Navbar --------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.navbar.is-scrolled {
  background: rgba(11, 61, 46, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: 72px;
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-gold);
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand .brand-text strong {
  font-family: var(--f-display);
  color: var(--c-white);
  font-size: 1.05rem;
}

.nav-brand .brand-text span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--c-gold-light);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--c-gold);
  transition: right 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-links a.active { color: var(--c-white); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1100;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Auth block inside the mobile nav flyout — hidden on desktop, where the
   Sign In / Sign Up controls live in .nav-actions instead. */
.nav-links-auth { display: none; }
.nav-links-auth > div { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mobile-auth-welcome {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.mobile-auth-welcome strong { color: var(--c-gold-light); }

/* Scroll progress bar — attached to the navbar's own bottom edge (the
   navbar is position:fixed, so this stays visible and sticky at all
   times, right under the nav links, as the visitor reads down the page). */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--c-gold);
  z-index: 5;
  transition: width 0.1s linear;
}

/* ------------------------------ Mobile nav -------------------------------- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(84vw, 360px);
    background: var(--c-green-deep);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(var(--nav-h) + 28px) 30px 32px;
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a {
    padding: 13px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links-auth { display: flex; width: 100%; margin-top: 18px; padding: 20px; border-top: none; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); }
  .nav-actions .btn-outline { display: none; }
  .nav-actions .auth-actions { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
}

/* Dimmed backdrop shown behind the mobile nav flyout for a more modern,
   focused feel; also gives visitors an obvious tap target to close it. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 14, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* --------------------------------- Hero flag strip ----------------------------------- */
.hero-flag-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  display: flex;
  z-index: 1;
}
.hero-flag-strip span { flex: 1; }
.hero-flag-strip span:nth-child(1) { background: var(--c-green); }
.hero-flag-strip span:nth-child(2) { background: var(--c-white); }
.hero-flag-strip span:nth-child(3) { background: var(--c-green); }

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* -------------------------------- Reveal ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* --------------------------------- About ------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.about-portrait {
  position: relative;
}
.about-portrait img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-portrait .badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-portrait .badge strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 1.6rem;
  color: var(--c-green);
}
.about-portrait .badge span {
  font-size: 0.72rem;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-body h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); margin: 14px 0 20px; }
.about-body > p { color: var(--c-ink-soft); margin-bottom: 16px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}
.about-tags span {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-cream);
  border: 1px solid var(--c-gray);
  color: var(--c-green-deep);
}

.timeline {
  margin-top: 20px;
  border-left: 2px solid var(--c-gray);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 3px solid var(--c-white);
  box-shadow: 0 0 0 2px var(--c-gold);
}
.timeline-item .year {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.timeline-item h4 { font-size: 1.05rem; margin: 4px 0 4px; }
.timeline-item p { color: var(--c-ink-soft); font-size: 0.94rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-portrait .badge { right: 14px; }
}

/* ------------------------------- Card grids --------------------------------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.value-card, .manifesto-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-card:hover, .manifesto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--c-green);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.value-card:hover .card-icon, .manifesto-card:hover .card-icon {
  background: var(--c-green);
  color: var(--c-white);
  transform: rotate(-6deg) scale(1.05);
}
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }

.value-card h3, .manifesto-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.value-card p, .manifesto-card p {
  color: var(--c-ink-soft);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.card-link {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link::after { content: '\2192'; transition: transform 0.25s ease; }
.card-link:hover::after { transform: translateX(4px); }

/* -------------------------------- Agenda timeline ----------------------------- */
.agenda-track {
  position: relative;
  padding-left: 40px;
}
.agenda-track::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--c-gold) 0 8px, transparent 8px 14px);
}
.agenda-item {
  position: relative;
  padding: 0 0 44px 30px;
}
.agenda-item:last-child { padding-bottom: 0; }
.agenda-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-green-deep);
  border: 4px solid var(--c-gold);
}
.agenda-item .agenda-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gold);
}
.agenda-item h4 { color: var(--c-white); font-size: 1.15rem; margin: 6px 0 8px; }
.agenda-item p { color: rgba(247,245,239,0.75); font-size: 0.94rem; max-width: 560px; }

/* ------------------------------------ Gallery ------------------------------------ */
/* Chip-style filter row — scrolls horizontally instead of wrapping, on
   both mobile and desktop, so the category set never crowds or wraps
   awkwardly regardless of how many categories exist. */
.gallery-filters,
.news-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray) transparent;
}
.gallery-filters::-webkit-scrollbar, .news-filters::-webkit-scrollbar { height: 5px; }
.gallery-filters::-webkit-scrollbar-thumb, .news-filters::-webkit-scrollbar-thumb { background: var(--c-gray); border-radius: 999px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-gray);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: all 0.25s ease;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--c-green); color: var(--c-green); }
.filter-btn.active { background: var(--c-green-deep); border-color: var(--c-green-deep); color: var(--c-white); }

/* Gallery strip — horizontal scroll on every screen size. Tapping any
   photo opens the full-screen lightbox with Prev/Next controls. */
.masonry {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-gray) transparent;
}
.masonry::-webkit-scrollbar { height: 6px; }
.masonry::-webkit-scrollbar-thumb { background: var(--c-gray); border-radius: 999px; }
.masonry-item {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.masonry-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.masonry-item:hover img { transform: scale(1.08); }
.masonry-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(11,61,46,0.85), transparent);
  color: var(--c-white);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.masonry-item:hover .cap, .masonry-item:focus-visible .cap { opacity: 1; transform: translateY(0); }
.masonry-item.is-hidden { display: none; }

@media (max-width: 640px) {
  .masonry-item { width: 240px; }
  .masonry-item img { height: 270px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--c-white);
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------- News ---------------------------------------- */
.news-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .news-img { height: 200px; overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-card .news-body { padding: 24px; }
.news-date {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-gold);
}
.news-card h3 { font-size: 1.1rem; margin: 10px 0 10px; }
.news-card p { color: var(--c-ink-soft); font-size: 0.92rem; margin-bottom: 14px; }

/* --------------------------------- Forms / Volunteer ---------------------------------- */
.form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-gray);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-green-deep);
}
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--c-gray);
  border-radius: var(--radius-sm);
  background: var(--c-cream);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-green);
  background: var(--c-white);
}
.field .error-msg {
  font-size: 0.76rem;
  color: #B3261E;
  min-height: 14px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #B3261E;
}
.form-note { font-size: 0.82rem; color: var(--c-ink-soft); margin-top: 6px; }
.form-success {
  display: none;
  background: rgba(0,135,81,0.1);
  border: 1px solid var(--c-green);
  color: var(--c-green-deep);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }
.form-success.is-error {
  background: rgba(179,38,30,0.08);
  border-color: #B3261E;
  color: #8a1e18;
}

/* ------------------------------------- Testimonials ----------------------------------- */
.testimonial-slider { position: relative; max-width: 780px; margin: 0 auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 8px; }
.testimonial-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 46px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-gray);
}
.testimonial-card img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--c-gold);
}
.testimonial-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--c-green-deep);
  margin-bottom: 18px;
}
.testimonial-name { font-weight: 700; }
.testimonial-role { font-size: 0.85rem; color: var(--c-ink-soft); }
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}
.slider-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--c-gray);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.slider-arrow:hover { background: var(--c-green-deep); border-color: var(--c-green-deep); color: var(--c-white); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-gray);
  transition: all 0.25s ease;
}
.slider-dots button.active { background: var(--c-gold); width: 24px; border-radius: 5px; }

/* -------------------------------------- Social -------------------------------------- */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-green-deep);
  transition: all 0.25s ease;
}
.social-pill svg { width: 18px; height: 18px; }
.social-pill:hover { background: var(--c-green-deep); color: var(--c-white); border-color: var(--c-green-deep); transform: translateY(-3px); }

/* -------------------------------------- Contact -------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-cream);
  color: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row h4 { font-size: 0.95rem; margin-bottom: 4px; }
.info-row p { color: var(--c-ink-soft); font-size: 0.9rem; }
.map-placeholder {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-gray);
  height: 220px;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* --------------------------------------- Footer --------------------------------------- */
.footer {
  background: #08281D;
  color: rgba(247,245,239,0.78);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand .brand-text strong { color: var(--c-white); font-family: var(--f-display); font-size: 1.2rem; }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 280px; }
.footer h4 { color: var(--c-white); font-family: var(--f-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--c-gold-light); }
.newsletter-form { display: flex; gap: 0; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--c-white);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(247,245,239,0.5); }
.newsletter-form button {
  padding: 12px 18px;
  background: var(--c-gold);
  color: var(--c-green-deep);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.footer-social a:hover { background: var(--c-gold); color: var(--c-green-deep); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--c-green-deep);
  color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-gold); color: var(--c-green-deep); }

/* ------------------------------------ Utility -------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 40px; }
.lazy-img { opacity: 0; transition: opacity 0.5s ease; background: var(--c-cream); }
.lazy-img.is-loaded { opacity: 1; }

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NEWSROOM-FOCUSED HOMEPAGE ADDITIONS
   - Compact masthead (replaces the old full-screen hero)
   - Newsroom feed: featured post + filterable grid + load more
   - Auth modal (sign up / sign in) + user menu
   - Post detail modal with share + like
   - Admin composer page (admin.html) styles live here too, so both
     pages share one stylesheet
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ------------------------------- Masthead -------------------------------- */
.masthead {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser chrome so the green
                          fills the true visible screen, not the address-
                          bar-inflated 100vh */
  width: 100%;
  display: flex;
  align-items: center;
  color: var(--c-white);
  overflow: hidden;
}
.masthead-media { position: absolute; inset: 0; z-index: 0; }

/* 3D slideshow: each photo rotates in from the right with depth and,
   on the next cycle, rotates back out to the left — like panels on a
   slowly turning cube, always moving leftward. */
.masthead-slides {
  position: absolute;
  inset: 0;
  perspective: 1600px;
}
.masthead-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0;
  transform: rotateY(38deg) translateX(55%) scale(0.88);
  transition: transform 1.15s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.9s ease;
  will-change: transform, opacity;
}
.masthead-slide.is-active {
  opacity: 1;
  transform: rotateY(0deg) translateX(0) scale(1);
  z-index: 2;
}
.masthead-slide.is-leaving {
  opacity: 0;
  transform: rotateY(-38deg) translateX(-55%) scale(0.88);
  z-index: 1;
}
.masthead-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(11,61,46,0.55) 0%, rgba(11,61,46,0.78) 55%, rgba(11,61,46,0.95) 100%),
    linear-gradient(100deg, rgba(11,61,46,0.55), rgba(0,135,81,0.25));
}
.masthead-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--nav-h) + 20px) 32px 80px;
}
.masthead-text .eyebrow { color: var(--c-gold-light); }
.masthead-text .eyebrow::before { background: var(--c-gold-light); }
.masthead-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--c-white);
  margin: 16px 0 10px;
}
.masthead-slogan {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-gold-light);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  min-height: 1.4em;
}

/* Tap-to-scroll indicator — a real link to #newsroom, reusing the
   bouncing-mouse animation, so tapping (or the smooth-scroll anchor
   logic already wired in script.js) carries visitors straight into
   the Newsroom feed below. */
.scroll-indicator { cursor: pointer; transition: opacity 0.25s ease; }
.scroll-indicator:hover { opacity: 0.8; }

@media (max-width: 720px) {
  .masthead-content { padding-bottom: 70px; }
}

/* -------------------------------- Newsroom -------------------------------- */
.newsroom-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.newsroom-head > div:first-child { max-width: 620px; }
.newsroom-head h2 { font-size: clamp(2rem, 3.2vw, 2.7rem); margin-top: 14px; }
.newsroom-head p { margin-top: 14px; color: var(--c-ink-soft); }

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(247,245,239,0.22), transparent 42%),
    linear-gradient(135deg, var(--c-green) 0%, var(--c-green-deep) 70%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 44px;
  min-height: 380px;
}
.featured-post .fp-media { position: relative; overflow: hidden; }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; min-height: 260px; }
.featured-post .fp-body {
  padding: 42px;
  color: var(--c-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post .fp-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.featured-post .fp-tag::before { content: '\25CF'; font-size: 0.55rem; }
.featured-post h3 {
  color: var(--c-white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 14px;
}
.featured-post p.fp-excerpt { color: rgba(247,245,239,0.82); margin-bottom: 22px; font-size: 0.98rem; }
.featured-post .fp-meta { font-size: 0.8rem; color: rgba(247,245,239,0.6); margin-bottom: 20px; font-family: var(--f-mono); }
.featured-post .fp-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media img { min-height: 220px; }
  .featured-post .fp-body { padding: 30px; }
}

/* News card v2 (rendered by script.js) — extends .news-card */
.news-card .news-body { display: flex; flex-direction: column; }
.news-card-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-green);
  font-weight: 700;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--c-gray);
}
.news-card-footer .card-link { margin: 0; }

.newsroom-more { display: flex; justify-content: center; margin-top: 42px; }

/* Share row (used in cards + post modal) */
.share-row { display: flex; align-items: center; gap: 8px; }
.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-cream);
  border: 1px solid var(--c-gray);
  color: var(--c-green-deep);
  transition: all 0.22s ease;
  position: relative;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { background: var(--c-green-deep); color: var(--c-white); border-color: var(--c-green-deep); transform: translateY(-2px); }
.share-btn.copied::after {
  content: 'Copied!';
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.post-modal .share-row { flex-wrap: wrap; }

/* Like button */
.like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--c-gray);
  color: var(--c-ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.22s ease;
}
.like-btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.like-btn:hover { border-color: var(--c-gold); color: var(--c-green-deep); }
.like-btn.is-liked { background: rgba(0,135,81,0.1); border-color: var(--c-green); color: var(--c-green-deep); }
.like-btn.is-liked svg { fill: var(--c-green); stroke: var(--c-green); transform: scale(1.1); }

.post-engagement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--c-gray);
}

/* ------------------------------ Auth nav widget ---------------------------- */
.auth-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--c-white);
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-green-deep);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.user-name { font-size: 0.85rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-gray);
  padding: 16px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}
.user-dropdown.is-open { display: flex; }
.user-dropdown-email { font-size: 0.82rem; color: var(--c-ink-soft); word-break: break-all; }
.user-dropdown button {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-cream);
  color: var(--c-green-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
}
.user-dropdown button:hover { background: var(--c-gray); }

@media (max-width: 980px) {
  .nav-actions .auth-actions { display: none; }
}

/* ---------------------------------- Modals --------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 16, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-ink);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal-close:hover { background: var(--c-gray); }

/* Auth modal (Sign In only — registration lives on join.html) */
.auth-modal { max-width: 440px; padding: 44px 40px 36px; }
.auth-modal h3 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-modal-subtitle { color: var(--c-ink-soft); font-size: 0.92rem; margin-bottom: 26px; }
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.is-active { display: flex; }

/* Post modal */
.post-modal { max-width: 760px; padding: 0; }
.post-modal-img { width: 100%; max-height: 340px; overflow: hidden; }
.post-modal-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.post-modal-body { padding: 38px 42px 42px; }
.post-modal-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 10px; }
.post-modal-meta { font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-ink-soft); margin-bottom: 20px; }
.post-modal-content { color: var(--c-ink-soft); line-height: 1.8; }
.post-modal-content p { margin-bottom: 14px; }

@media (max-width: 640px) {
  .post-modal-body { padding: 28px 24px 30px; }
  .auth-modal { padding: 34px 24px 28px; }
}

/* ------------------------------- Admin page -------------------------------- */
.admin-shell {
  min-height: 100vh;
  background: var(--c-cream);
  padding: 40px 20px 80px;
}
.admin-header {
  max-width: 760px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-header .brand-text strong { color: var(--c-green-deep); }
.admin-header .brand-text span { color: var(--c-ink-soft); }
.admin-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-gray);
  padding: 42px;
}
.admin-gate { text-align: center; padding: 20px 0; }
.admin-gate p { color: var(--c-ink-soft); margin: 10px 0 24px; }
.admin-gate input {
  max-width: 280px;
  margin: 0 auto 16px;
  display: block;
  padding: 13px 16px;
  border: 1.5px solid var(--c-gray);
  border-radius: var(--radius-sm);
  text-align: center;
}
.admin-posts-list { max-width: 760px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 14px; }
.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.admin-post-row h5 { font-size: 0.95rem; margin-bottom: 4px; }
.admin-post-row span { font-size: 0.78rem; color: var(--c-ink-soft); font-family: var(--f-mono); }
.admin-post-row .delete-post { color: #B3261E; font-weight: 600; font-size: 0.82rem; }
.admin-note {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ==========================================================================
   FULL RESPONSIVE PASS — fine-tuning across breakpoints so every section
   holds up cleanly from small phones (~320px) through tablets and up to
   large desktop/ultra-wide screens.
   ========================================================================== */

/* Large / ultra-wide screens: prevent line lengths and hero art from
   stretching awkwardly thin past very large viewports. */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
  .masthead, .lightbox img { max-width: 100%; }
}

/* Tablet range: tighten a few grids that are still 3–4 columns above
   and would otherwise feel cramped before the 900/1000px rules kick in. */
@media (max-width: 1080px) {
  .container { padding: 0 24px; }
  .featured-post { min-height: 340px; }
}

@media (max-width: 900px) {
  .newsroom-head { flex-direction: column; align-items: flex-start; }
}

/* Small tablets / large phones */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .form-card { padding: 30px 24px; }
  .admin-card { padding: 30px 22px; }
  .featured-post .fp-body { padding: 26px 22px; }
  .testimonial-card { padding: 32px 24px; }
  .value-card, .manifesto-card { padding: 26px 22px; }
}

/* Phones */
@media (max-width: 480px) {
  .nav-inner { padding: 0 18px; gap: 12px; }
  .nav-brand .brand-text span { display: none; } /* keep the bar compact — name is enough at this width */
  .nav-brand img { width: 38px; height: 38px; }
  .masthead-content { padding: calc(var(--nav-h) + 16px) 20px 70px; }
  .featured-post .fp-actions { flex-direction: column; align-items: stretch; }
  .featured-post .fp-actions .btn { text-align: center; }
  .news-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about-portrait .badge { padding: 12px 16px; right: 0; bottom: -16px; }
  .timeline { padding-left: 22px; }
  .modal { max-height: 92vh; }
  .post-engagement { flex-direction: column; align-items: stretch; }
  .share-row { justify-content: flex-start; }
  .footer-grid { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .masthead-title { font-size: 1.6rem; }
  .nav-brand .brand-text strong { font-size: 0.92rem; }
}

/* Respect safe-area insets on notched devices when the mobile menu or
   modals are open full-height. */
@supports (padding: max(0px)) {
  .nav-links { padding-right: max(32px, env(safe-area-inset-right)); }
}


/* ==========================================================================
   JOIN PAGE — dedicated multi-step supporter registration (join.html)
   Modern, compact, and animated: floating gradient blobs behind the card,
   a bigger and more visible slide-in transition between steps, a subtle
   breathing pulse on the active progress circle, and a staggered entrance
   for each field. Next/Back always sit side by side, at every width.
   ========================================================================== */

.join-body {
  background: var(--c-cream);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Slow-floating soft gradient blobs — the "visible animation" behind the
   whole page, always in motion but calm enough not to distract from the
   form itself. */
.join-body::before,
.join-body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.join-body::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0,135,81,0.38), transparent 70%);
  top: -140px;
  left: -140px;
  animation: joinBlobFloat1 15s ease-in-out infinite;
}
.join-body::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201,162,39,0.30), transparent 70%);
  bottom: -180px;
  right: -160px;
  animation: joinBlobFloat2 18s ease-in-out infinite;
}
@keyframes joinBlobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.12); }
}
@keyframes joinBlobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -50px) scale(1.08); }
}

.join-header, .join-main { position: relative; z-index: 1; }

.join-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--c-green-deep);
}
.join-brand { display: flex; align-items: center; gap: 12px; }
.join-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-gold); }
.join-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.join-brand .brand-text strong { font-family: var(--f-display); color: var(--c-white); font-size: 0.96rem; }
.join-brand .brand-text span { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--c-gold-light); text-transform: uppercase; }
.join-back-link { color: rgba(255,255,255,0.82); font-size: 0.86rem; font-weight: 600; transition: color 0.2s ease; }
.join-back-link:hover { color: var(--c-white); }

.join-main { padding: 44px 20px 64px; }
.join-shell { max-width: 560px; margin: 0 auto; }

/* Staggered entrance on page load */
.join-intro, .join-progress, .join-card, .join-signin-note {
  opacity: 0;
  animation: joinFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.join-intro { animation-delay: 0.05s; }
.join-progress { animation-delay: 0.16s; }
.join-card { animation-delay: 0.26s; }
.join-signin-note { animation-delay: 0.4s; }
@keyframes joinFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.join-intro { text-align: center; margin-bottom: 28px; }
.join-intro .eyebrow { justify-content: center; }
.join-intro h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 10px 0 8px; }
.join-intro p { color: var(--c-ink-soft); font-size: 0.94rem; }

/* ---------------------------------- Progress indicator ---------------------------------- */
.join-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 26px;
  padding: 0 4px;
}
.join-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.step-circle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--c-gray);
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--c-ink-soft);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.join-progress-step.is-active .step-circle {
  border-color: var(--c-green);
  background: var(--c-green);
  color: var(--c-white);
  transform: scale(1.1);
  animation: joinPulse 1.8s ease-in-out infinite;
}
@keyframes joinPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,135,81,0.28); }
  50% { box-shadow: 0 0 0 7px rgba(0,135,81,0.08); }
}
.join-progress-step.is-complete .step-circle {
  border-color: var(--c-green-deep);
  background: var(--c-green-deep);
  color: transparent;
}
.join-progress-step.is-complete .step-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: translateY(-1px) rotate(-45deg);
  animation: joinCheckPop 0.3s ease;
}
@keyframes joinCheckPop {
  from { opacity: 0; transform: translateY(-1px) rotate(-45deg) scale(0.4); }
  to { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
}
.step-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.join-progress-step.is-active .step-label { color: var(--c-green-deep); }
.join-progress-line {
  flex: 1 1 36px;
  height: 2px;
  min-width: 20px;
  max-width: 56px;
  background: var(--c-gray);
  margin: 17px 4px 0;
  position: relative;
  overflow: hidden;
}
.join-progress-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-green-deep);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.join-progress-line.is-filled::after { width: 100%; }

@media (max-width: 560px) {
  .step-label { display: none; }
  .join-progress-line { margin-top: 0; }
}

/* ---------------------------------- Card + steps ---------------------------------- */
.join-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-gray);
  padding: 32px 34px;
  overflow: hidden;
  position: relative;
}
.join-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-green), var(--c-gold), var(--c-green-deep));
  background-size: 200% auto;
  animation: joinGradientShift 6s linear infinite;
}
@keyframes joinGradientShift {
  to { background-position: 200% center; }
}

.join-step { display: none; }
.join-step.is-active {
  display: block;
  animation: joinStepInForward 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.join-step.is-active.dir-back {
  animation: joinStepInBack 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes joinStepInForward {
  from { opacity: 0; transform: translateX(48px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes joinStepInBack {
  from { opacity: 0; transform: translateX(-48px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.join-step h2 { font-size: 1.2rem; margin-bottom: 4px; }
.join-step-hint { color: var(--c-ink-soft); font-size: 0.86rem; margin-bottom: 16px; }
.optional-tag { font-weight: 400; color: var(--c-ink-soft); font-size: 0.78rem; text-transform: none; letter-spacing: 0; }

/* Compact field spacing, scoped to this page only */
.join-card .form-grid { gap: 12px; }
.join-card .field { margin-bottom: 2px; gap: 5px; }
.join-card .field label { font-size: 0.76rem; }

/* Modern icon-prefixed inputs: white fields with a soft border that
   glows green on focus, an inline icon on the left, and (for password
   fields) a show/hide toggle on the right. */
.input-icon-group { position: relative; display: flex; align-items: center; }
.input-icon-group > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-ink-soft);
  pointer-events: none;
  transition: color 0.2s ease;
}
.join-card .field input,
.join-card .field select,
.join-card .field textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.9rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-gray);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.join-card .field select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343503F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.join-card .field input:focus,
.join-card .field select:focus,
.join-card .field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(0,135,81,0.12);
  background: var(--c-white);
}
.input-icon-group:focus-within > svg { color: var(--c-green); }
.join-card .field.has-error input,
.join-card .field.has-error select { border-color: #B3261E; box-shadow: 0 0 0 4px rgba(179,38,30,0.08); }

/* Password show/hide toggle */
.input-icon-group input[type="password"],
.input-icon-group input[type="text"][id^="jPassword"] { padding-right: 42px; }
.input-eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-soft);
  border-radius: 6px;
  transition: color 0.2s ease;
}
.input-eye-toggle svg { width: 18px; height: 18px; }
.input-eye-toggle:hover { color: var(--c-green-deep); }
.input-eye-toggle.is-visible { color: var(--c-green); }

/* Each field in the active step fades/slides in with a tiny stagger, on
   top of the whole-step slide, so the form feels lively rather than
   just swapping content instantly. */
.join-step.is-active .field {
  opacity: 0;
  animation: joinFieldIn 0.45s ease forwards;
}
.join-step.is-active .field:nth-child(1) { animation-delay: 0.08s; }
.join-step.is-active .field:nth-child(2) { animation-delay: 0.13s; }
.join-step.is-active .field:nth-child(3) { animation-delay: 0.18s; }
.join-step.is-active .field:nth-child(4) { animation-delay: 0.23s; }
.join-step.is-active .field:nth-child(5) { animation-delay: 0.28s; }
.join-step.is-active .field:nth-child(6) { animation-delay: 0.33s; }
@keyframes joinFieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.join-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
}
.join-step-actions > * { flex: 1; }
.join-step-actions .btn {
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.join-step-actions .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.join-step-actions .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.join-step-actions .btn[disabled]:hover { transform: none; box-shadow: none; }

/* ---------------------------------- Review step ---------------------------------- */
.join-review {
  background: var(--c-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-gray);
  padding: 4px 16px;
  margin-bottom: 16px;
}
.join-review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--c-gray);
  font-size: 0.86rem;
}
.join-review-row:last-child { border-bottom: none; }
.join-review-label { color: var(--c-ink-soft); font-weight: 600; flex: 0 0 auto; }
.join-review-value { color: var(--c-green-deep); font-weight: 600; text-align: right; }

.join-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  margin-bottom: 6px;
}
.join-terms input { margin-top: 3px; accent-color: var(--c-green); width: 16px; height: 16px; flex-shrink: 0; }
.join-terms.has-error { color: #B3261E; }

/* ---------------------------------- Success state ---------------------------------- */
.join-success {
  text-align: center;
  padding: 14px 6px 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.join-success.is-visible { opacity: 1; transform: translateY(0); }
.join-success h2 { font-size: 1.5rem; margin: 18px 0 8px; }
.join-success p { color: var(--c-ink-soft); margin-bottom: 22px; max-width: 400px; margin-left: auto; margin-right: auto; font-size: 0.92rem; }
.join-success-icon { display: flex; justify-content: center; }
.join-success-icon svg { width: 76px; height: 76px; }
.join-success-circle {
  stroke: var(--c-green);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: joinCircleDraw 0.6s ease forwards;
}
.join-success-check {
  stroke: var(--c-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: joinCheckDraw 0.4s ease forwards 0.55s;
}
@keyframes joinCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes joinCheckDraw { to { stroke-dashoffset: 0; } }

.join-signin-note { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--c-ink-soft); }

@media (max-width: 640px) {
  .join-header { padding: 14px 20px; }
  .join-back-link span { display: none; }
  .join-main { padding: 32px 14px 48px; }
  .join-card { padding: 24px 18px; }
  .join-step-actions .btn { padding: 12px 14px; font-size: 0.86rem; }
  .join-review-row { flex-direction: column; gap: 2px; }
  .join-review-value { text-align: left; }
}

@media (max-width: 360px) {
  .join-step-actions .btn { padding: 11px 8px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .join-body::before, .join-body::after { animation: none; }
  .join-progress-step.is-active .step-circle { animation: none; }
  .join-card::before { animation: none; }
}