/*
Theme Name: RSS Ghana Renewal
Theme URI: https://rssghana.org/
Author: ChatGPT for Restorative Seed Society
Description: A modern WordPress theme for Restorative Seed Society, Bolgatanga, Ghana. Includes homepage sections for programmes, company pictures, staff pictures, donation cards, Google Map location and contact details. Top header bar intentionally removed.
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rss-ghana-renewal
Tags: nonprofit, charity, custom-logo, featured-images, block-styles, wide-blocks, responsive-layout
*/

:root {
  --rss-green-950: #0b2319;
  --rss-green-900: #103c2b;
  --rss-green-800: #155137;
  --rss-green-700: #1b6745;
  --rss-green-100: #e7f4ea;
  --rss-gold: #f1c84b;
  --rss-gold-soft: #fff4cc;
  --rss-cream: #fbf7ec;
  --rss-ink: #193326;
  --rss-muted: #6b7a70;
  --rss-line: #e4eadf;
  --rss-white: #ffffff;
  --rss-shadow: 0 22px 70px rgba(11, 35, 25, .13);
  --rss-shadow-soft: 0 12px 40px rgba(11, 35, 25, .10);
  --rss-radius: 28px;
  --rss-radius-sm: 18px;
  --rss-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rss-cream);
  color: var(--rss-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rss-green-700); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--rss-green-900); }

.rss-container {
  width: min(var(--rss-container), calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 60, 43, .10);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rss-green-900);
}
.custom-logo { width: 64px; height: 64px; object-fit: contain; }
.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--rss-green-900);
  color: var(--rss-gold);
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: var(--rss-shadow-soft);
}
.brand-text strong { display: block; font-size: 1.06rem; line-height: 1.15; }
.brand-text span { display: block; color: var(--rss-muted); font-size: .82rem; line-height: 1.35; margin-top: 3px; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--rss-green-900);
  color: var(--rss-white);
  border-radius: 14px;
  padding: 12px 15px;
  font-weight: 800;
  cursor: pointer;
}
.primary-navigation { display: flex; align-items: center; gap: 14px; }
.primary-menu,
.primary-menu ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: var(--rss-ink); padding: 12px 14px; border-radius: 999px; font-weight: 750; font-size: .96rem; }
.primary-menu a:hover,
.primary-menu .current-menu-item > a { background: var(--rss-green-100); color: var(--rss-green-900); }
.header-cta { background: var(--rss-green-900); color: var(--rss-white); padding: 12px 18px; border-radius: 999px; font-weight: 850; box-shadow: var(--rss-shadow-soft); }
.header-cta:hover { color: var(--rss-white); transform: translateY(-1px); background: var(--rss-green-800); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -140px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(241, 200, 75, .22);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: 52px; align-items: center; }
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--rss-white);
  border: 1px solid var(--rss-line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--rss-green-800);
  font-size: .88rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(11, 35, 25, .06);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--rss-gold); }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.05; color: var(--rss-green-900); margin: 0 0 18px; letter-spacing: -.03em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); margin-top: 22px; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.12rem, 2vw, 1.32rem); color: #4c6254; max-width: 760px; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.rss-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--rss-green-900);
  color: var(--rss-white);
  font-weight: 850;
  box-shadow: var(--rss-shadow-soft);
  border: 1px solid var(--rss-green-900);
}
.rss-button:hover, .wp-block-button__link:hover { color: var(--rss-white); background: var(--rss-green-800); transform: translateY(-1px); }
.rss-button.alt { background: var(--rss-white); color: var(--rss-green-900); border-color: var(--rss-line); box-shadow: none; }
.rss-button.alt:hover { background: var(--rss-green-100); color: var(--rss-green-900); }
.hero-card { position: relative; background: var(--rss-white); border-radius: 36px; padding: 18px; box-shadow: var(--rss-shadow); }
.hero-card img { border-radius: 26px; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.impact-item { background: #f8fbf4; border: 1px solid var(--rss-line); border-radius: 22px; padding: 18px; }
.impact-item strong { display: block; font-size: 1.45rem; color: var(--rss-green-900); line-height: 1; }
.impact-item span { color: var(--rss-muted); font-size: .9rem; font-weight: 750; }

.section { padding: 78px 0; }
.section.compact { padding: 54px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-header p { max-width: 720px; color: var(--rss-muted); margin: 0; }
.kicker { font-size: .84rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--rss-green-700); margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--rss-white); border: 1px solid var(--rss-line); border-radius: var(--rss-radius); padding: 28px; box-shadow: 0 12px 38px rgba(11,35,25,.06); }
.card.highlight { background: var(--rss-green-900); color: rgba(255,255,255,.84); border-color: transparent; }
.card.highlight h2,
.card.highlight h3 { color: var(--rss-white); }
.icon-badge { width: 52px; height: 52px; border-radius: 17px; background: var(--rss-gold-soft); display: grid; place-items: center; font-size: 1.55rem; margin-bottom: 18px; }
.card p, .entry-content p { color: #55675a; }
.card ul { margin: 14px 0 0; padding-left: 20px; color: #55675a; }
.programme-card { min-height: 100%; display: flex; flex-direction: column; }
.programme-card .rss-button { margin-top: auto; width: fit-content; box-shadow: none; }
.image-card { padding: 0; overflow: hidden; }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-card .caption { padding: 22px; }
.image-card .caption p { margin-bottom: 0; }
.staff-card { text-align: center; }
.staff-card img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 8px solid var(--rss-green-100); }
.staff-card h3 { margin-bottom: 8px; font-size: 1.35rem; }
.staff-card .role { color: var(--rss-green-700); font-weight: 850; margin: 0; }
.band { background: var(--rss-green-900); color: rgba(255,255,255,.82); border-radius: 42px; padding: 50px; overflow: hidden; position: relative; }
.band h2, .band h3 { color: var(--rss-white); }
.band::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -70px; top: -90px; background: rgba(241,200,75,.18); }
.campaign { background: linear-gradient(180deg, #fff, #fffaf0); border: 1px solid #efe3bd; }
.donation-amounts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.donation-amounts a { background: var(--rss-gold-soft); color: var(--rss-green-900); padding: 10px 14px; border-radius: 999px; font-weight: 850; border: 1px solid #f1d36b; }
.map-wrap { border: 0; overflow: hidden; border-radius: var(--rss-radius); box-shadow: var(--rss-shadow-soft); background: var(--rss-white); }
.map-wrap iframe { width: 100%; min-height: 410px; border: 0; display: block; }
.contact-list { display: grid; gap: 14px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--rss-line); border-radius: 18px; background: #fff; }
.contact-row strong { display: block; color: var(--rss-green-900); }
.contact-row span { color: var(--rss-muted); }

.entry-hero { padding: 64px 0 34px; background: linear-gradient(180deg, #f7f1df, var(--rss-cream)); }
.entry-hero h1 { font-size: clamp(2.45rem, 6vw, 4.9rem); }
.entry-content { padding: 48px 0 84px; }
.entry-content > * { max-width: 920px; margin-left: auto; margin-right: auto; }
.entry-content .alignwide { max-width: var(--rss-container); }
.post-list { display: grid; gap: 24px; }
.post-card { background: #fff; border-radius: 24px; padding: 28px; border: 1px solid var(--rss-line); box-shadow: 0 12px 34px rgba(11,35,25,.06); }
.post-meta { color: var(--rss-muted); font-size: .9rem; margin-bottom: 10px; }

.site-footer { background: var(--rss-green-950); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: 34px; }
.site-footer h3 { color: var(--rss-white); font-size: 1.15rem; margin-bottom: 16px; }
.footer-brand { display: flex; gap: 14px; align-items: center; color: var(--rss-white); margin-bottom: 16px; }
.footer-brand .brand-mark { width: 56px; height: 56px; box-shadow: none; background: rgba(255,255,255,.08); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: var(--rss-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; font-size: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header { align-items: start; flex-direction: column; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; top: 100%; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; background: var(--rss-white); border: 1px solid var(--rss-line); border-radius: 24px; padding: 18px; box-shadow: var(--rss-shadow); }
  .primary-navigation.is-open { display: flex; }
  .primary-menu, .primary-menu ul { align-items: stretch; flex-direction: column; width: 100%; gap: 2px; }
  .primary-menu a { display: block; }
  .header-cta { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rss-container { width: min(100% - 28px, var(--rss-container)); }
  .header-inner { min-height: 76px; }
  .brand-text span { display: none; }
  .custom-logo, .brand-mark { width: 52px; height: 52px; border-radius: 15px; }
  .hero { padding: 48px 0 34px; }
  h1 { font-size: 3.05rem; }
  .impact-strip, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .card, .band { padding: 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* --- Homepage gallery sliders --- */
.gallery-grid {
  align-items: stretch;
}
.media-gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.media-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #edf4ec, #f8fbf4);
}
.media-slider-track {
  display: flex;
  transition: transform .55s ease;
  will-change: transform;
}
.media-slide {
  min-width: 100%;
  flex: 0 0 100%;
}
.media-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--rss-green-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11,35,25,.12);
  z-index: 3;
}
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 3;
}
.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.slider-dot.is-active {
  width: 30px;
  background: var(--rss-white);
}

/* --- Staff reveal cards --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.staff-reveal-card {
  position: relative;
  min-height: 345px;
  overflow: hidden;
  padding: 0;
}
.staff-bio-panel {
  position: absolute;
  inset: 0;
  padding: 34px 22px 28px 42%;
  background: linear-gradient(180deg, #eef4ee, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.staff-bio-label {
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rss-green-700);
  margin-bottom: 12px;
}
.staff-bio-panel p:last-child {
  margin-bottom: 0;
  color: #55675a;
}
.staff-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 345px;
  border: 0;
  border-radius: 0;
  background: var(--rss-white);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .55s ease;
  cursor: pointer;
}
.staff-visual img {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 8px solid var(--rss-green-100);
}
.staff-visual h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}
.staff-visual .role {
  color: var(--rss-green-700);
  font-weight: 850;
  margin: 0;
}
.staff-reveal-card:hover .staff-visual,
.staff-reveal-card:focus-within .staff-visual,
.staff-reveal-card.is-revealed .staff-visual {
  transform: translateX(-38%);
}

@media (max-width: 1200px) {
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-bio-panel {
    padding-left: 48%;
  }
  .staff-reveal-card:hover .staff-visual,
  .staff-reveal-card:focus-within .staff-visual,
  .staff-reveal-card.is-revealed .staff-visual {
    transform: translateX(-44%);
  }
}

/* --- Enhanced carousels and lightbox v1.2 --- */
.slider-shell {
  position: relative;
}
.slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar {
  display: none;
}
.media-slider-track,
.staff-carousel-track {
  display: flex;
  gap: 16px;
}
.media-slide,
.staff-slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}
.media-gallery-card {
  padding: 0 0 22px;
}
.media-gallery-card .caption {
  padding: 20px 22px 0;
}
.media-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.media-lightbox-trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.slider-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.staff-carousel {
  padding: 0 62px;
}
.staff-slide {
  display: flex;
}
.staff-slide .staff-reveal-card {
  width: 100%;
}
.staff-reveal-card {
  min-height: 350px;
}
.staff-bio-panel {
  padding: 34px 22px 28px 40%;
}
.staff-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 350px;
  background: var(--rss-white);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .55s ease;
  cursor: pointer;
  border-radius: var(--rss-radius);
  outline: none;
}
.staff-visual:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(9, 49, 33, .16);
}
.staff-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.staff-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rss-green-100);
  color: var(--rss-green-900);
  font-weight: 900;
  border: 1px solid var(--rss-line);
}
.staff-link:hover {
  background: var(--rss-green-900);
  color: var(--rss-white);
}
.staff-reveal-card:hover .staff-visual,
.staff-reveal-card:focus-within .staff-visual,
.staff-reveal-card.is-revealed .staff-visual {
  transform: translateX(-37%);
}
.rss-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.rss-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 12, .82);
}
.rss-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 1100px);
  margin: 4vh auto;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.rss-lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #0e1712;
}
.rss-lightbox-caption {
  margin: 0;
  padding: 18px 24px 22px;
  color: var(--rss-green-900);
  font-weight: 750;
}
.rss-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  color: var(--rss-green-900);
}
body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .staff-carousel {
    padding: 0 48px;
  }
}

@media (max-width: 640px) {
  .staff-carousel {
    padding: 0 44px;
  }
  .staff-bio-panel {
    padding-left: 46%;
  }
  .staff-reveal-card:hover .staff-visual,
  .staff-reveal-card:focus-within .staff-visual,
  .staff-reveal-card.is-revealed .staff-visual {
    transform: translateX(-42%);
  }
  .rss-lightbox-dialog {
    width: min(96vw, 96vw);
    margin-top: 8vh;
  }
}

/* --- Staff biography reveal centering fix v1.3 --- */
.staff-slide {
  align-items: stretch;
}
.staff-slide .staff-reveal-card {
  height: 100%;
}
.staff-reveal-card {
  min-height: 460px;
}
.staff-bio-panel {
  padding: 36px 32px 36px 35%;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow-y: auto;
}
.staff-bio-panel p {
  width: 100%;
}
.staff-bio-panel p:last-child {
  font-size: 1rem;
  line-height: 1.65;
}
.staff-visual {
  min-height: 460px;
  padding: 24px 16px 22px;
  box-shadow: 18px 0 30px rgba(11, 35, 25, .08);
}
.staff-visual img {
  width: 132px;
  height: 132px;
}
.staff-visual h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}
.staff-visual .role {
  font-size: .96rem;
}
.staff-links {
  gap: 8px;
}
.staff-reveal-card:hover .staff-visual,
.staff-reveal-card:focus-within .staff-visual,
.staff-reveal-card.is-revealed .staff-visual {
  transform: translateX(-72%);
}

@media (max-width: 980px) {
  .staff-reveal-card {
    min-height: 430px;
  }
  .staff-bio-panel {
    padding: 30px 26px 30px 33%;
  }
  .staff-visual {
    min-height: 430px;
  }
  .staff-reveal-card:hover .staff-visual,
  .staff-reveal-card:focus-within .staff-visual,
  .staff-reveal-card.is-revealed .staff-visual {
    transform: translateX(-68%);
  }
}

@media (max-width: 640px) {
  .staff-reveal-card {
    min-height: 500px;
  }
  .staff-bio-panel {
    padding: 28px 22px 28px 28%;
  }
  .staff-visual {
    min-height: 500px;
  }
  .staff-reveal-card:hover .staff-visual,
  .staff-reveal-card:focus-within .staff-visual,
  .staff-reveal-card.is-revealed .staff-visual {
    transform: translateX(-76%);
  }
}

/* --- Staff modal profile cards v1.4 --- */
.staff-profile-trigger {
  width: 100%;
  min-height: 100%;
  border: 1px solid var(--rss-line);
  background: var(--rss-white);
  text-align: center;
  padding: 28px 22px;
  cursor: pointer;
}
.staff-profile-trigger img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 8px solid var(--rss-green-100);
}
.staff-profile-trigger h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.staff-profile-trigger .role {
  color: var(--rss-green-700);
  font-weight: 850;
  margin: 0 0 18px;
}
.staff-view-bio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--rss-green-100);
  color: var(--rss-green-900);
  font-weight: 850;
  border: 1px solid var(--rss-line);
}
.staff-profile-trigger:hover .staff-view-bio,
.staff-profile-trigger:focus-visible .staff-view-bio {
  background: var(--rss-green-900);
  color: var(--rss-white);
}
.staff-profile-trigger:focus-visible {
  outline: 3px solid rgba(9, 49, 33, .16);
  outline-offset: 3px;
}

/* Neutralize old reveal behavior */
.staff-reveal-card,
.staff-bio-panel,
.staff-visual {
  all: unset;
}

.rss-staff-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.rss-staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 12, .82);
}
.rss-staff-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 980px);
  margin: 5vh auto;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.rss-staff-modal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 480px;
}
.rss-staff-modal-media {
  background: linear-gradient(180deg, #eef4ee, #dde8df);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.rss-staff-modal-media img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid rgba(255,255,255,.8);
}
.rss-staff-modal-content {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rss-staff-modal-content h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 10px;
}
.rss-staff-modal-role {
  color: var(--rss-green-700);
  font-weight: 850;
  font-size: 1.06rem;
  margin: 0 0 18px;
}
.rss-staff-modal-bio {
  color: #55675a;
  line-height: 1.75;
  margin: 0;
  white-space: pre-line;
}
.rss-staff-modal-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.rss-staff-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  color: var(--rss-green-900);
}

@media (max-width: 980px) {
  .rss-staff-modal-grid {
    grid-template-columns: 1fr;
  }
  .rss-staff-modal-media {
    padding-top: 58px;
    padding-bottom: 20px;
  }
  .rss-staff-modal-media img {
    max-width: 190px;
  }
  .rss-staff-modal-content {
    padding: 30px 24px 34px;
  }
}

/* --- Staff biography modal mobile scroll fix v1.5 --- */
.rss-staff-modal-dialog {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.rss-staff-modal-grid {
  flex: 1 1 auto;
  min-height: 0;
}
.rss-staff-modal-content {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 980px) {
  .rss-staff-modal-dialog {
    width: min(96vw, 96vw);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
  }
  .rss-staff-modal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }
  .rss-staff-modal-media {
    flex: 0 0 auto;
    padding: 54px 20px 18px;
  }
  .rss-staff-modal-media img {
    max-width: 170px;
  }
  .rss-staff-modal-content {
    padding: 26px 20px 30px;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .rss-staff-modal-dialog {
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 22px;
  }
  .rss-staff-modal-grid {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .rss-staff-modal-media {
    padding: 48px 18px 14px;
  }
  .rss-staff-modal-media img {
    max-width: 150px;
    border-width: 8px;
  }
  .rss-staff-modal-content {
    padding: 22px 18px 26px;
    overflow-y: auto;
  }
  .rss-staff-modal-content h3 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .rss-staff-modal-bio {
    line-height: 1.65;
  }
}

/* --- Navigation, social links and homepage green layer update v1.6 --- */
.primary-menu > li:last-child > a {
  background: var(--rss-green-900);
  color: var(--rss-white);
  box-shadow: var(--rss-shadow-soft);
}
.primary-menu > li:last-child > a:hover {
  background: var(--rss-green-800);
  color: var(--rss-white);
}
.rss-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rss-social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--rss-green-100);
  color: var(--rss-green-900);
  border: 1px solid var(--rss-line);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.rss-social-links a:hover {
  background: var(--rss-green-900);
  color: var(--rss-white);
  transform: translateY(-1px);
}
.rss-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.header-social-links {
  margin-left: 8px;
}
.footer-social-links {
  margin-top: 18px;
}
.site-footer .rss-social-links a {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: var(--rss-white);
}
.site-footer .rss-social-links a:hover {
  background: var(--rss-gold);
  color: var(--rss-green-950);
}
.band {
  isolation: isolate;
  background: var(--rss-green-900);
}
.band > * {
  position: relative;
  z-index: 2;
}
.band::after {
  z-index: 1;
  right: auto;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(62%, 620px);
  height: auto;
  border-radius: 0 220px 220px 0;
  background: rgba(202, 226, 201, .16);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--rss-green-900);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 980px) {
  .header-social-links {
    justify-content: center;
    margin-left: 0;
    padding-top: 8px;
  }
  .band::after {
    width: 74%;
    border-radius: 0 180px 180px 0;
  }
}

/* --- Visual refinement and responsive optimization v1.7 --- */
.primary-navigation {
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-menu a {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.primary-menu a:hover,
.primary-menu a:focus-visible {
  background: var(--rss-green-100);
  color: var(--rss-green-900);
}
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_parent > a,
.primary-menu > li:last-child > a {
  background: transparent;
  color: var(--rss-ink);
  box-shadow: none;
}
.primary-menu > li.menu-item-donate > a {
  background: var(--rss-green-900);
  color: var(--rss-white);
  box-shadow: var(--rss-shadow-soft);
}
.primary-menu > li.menu-item-donate > a:hover,
.primary-menu > li.menu-item-donate > a:focus-visible {
  background: var(--rss-green-800);
  color: var(--rss-white);
}

.hero {
  isolation: isolate;
}
.hero::before {
  inset: 78px -110px auto auto;
  width: 500px;
  height: 500px;
  background: rgba(241, 200, 75, .20);
  z-index: 0;
}
.hero-grid,
.hero-grid > * {
  position: relative;
  z-index: 1;
}
.band {
  background: linear-gradient(135deg, #123d2c 0%, #0f4a33 100%);
}
.band::after {
  display: none;
}
.band .kicker,
.card.highlight .kicker {
  color: #ffd867;
}
.card.highlight {
  background: linear-gradient(135deg, #103c2b 0%, #155137 100%);
}

@media (min-width: 981px) {
  .band .grid-2 {
    align-items: start;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 34px;
  }
  .hero::before {
    width: 420px;
    height: 420px;
    right: -110px;
    top: 92px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    gap: 18px;
  }
  .primary-navigation {
    gap: 14px;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .hero::before {
    width: 360px;
    height: 360px;
    right: -90px;
    top: 82px;
  }
  .band {
    padding: 34px 28px;
  }
  .band .grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .site-header {
    backdrop-filter: none;
  }
  .brand-text strong {
    font-size: .98rem;
  }
  .menu-toggle {
    padding: 11px 14px;
    border-radius: 18px;
  }
  .primary-navigation {
    left: 14px;
    right: 14px;
    padding: 16px;
    gap: 12px;
  }
  .primary-menu a {
    padding: 11px 14px;
    font-size: .98rem;
  }
  .hero {
    padding: 34px 0 24px;
  }
  .hero::before {
    width: 320px;
    height: 320px;
    right: -128px;
    top: 32px;
    background: rgba(241, 200, 75, .24);
  }
  h1 {
    font-size: clamp(2.95rem, 15vw, 4.25rem);
    line-height: .98;
    margin-top: 18px;
  }
  .lead {
    font-size: 1.04rem;
    line-height: 1.75;
  }
  .button-row {
    gap: 12px;
  }
  .button-row .rss-button {
    flex: 1 1 220px;
  }
  .eyebrow {
    max-width: 100%;
    line-height: 1.45;
    padding-right: 18px;
  }
  .band {
    padding: 28px 20px;
    border-radius: 28px;
  }
  .donation-amounts a {
    min-height: 46px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .header-social-links {
    justify-content: flex-start;
  }
}

/* --- Premium mobile/menu polish and typography tightening v1.8 --- */
.hero-grid > div:first-child {
  max-width: 690px;
}
.lead {
  max-width: 680px;
  line-height: 1.68;
}
.section-header h2,
.band h2,
.card.highlight h2 {
  line-height: 1.08;
}
.programme-card p,
.card p,
.entry-content p {
  line-height: 1.72;
}

@media (max-width: 980px) {
  .primary-navigation {
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(16, 60, 43, .08);
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 60px rgba(11, 35, 25, .18);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .primary-menu {
    gap: 8px;
  }
  .primary-menu li {
    width: 100%;
  }
  .primary-menu a {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(16, 60, 43, .08);
    background: linear-gradient(180deg, #fff 0%, #fbf9f2 100%);
    font-weight: 800;
  }
  .primary-menu a:hover,
  .primary-menu a:focus-visible {
    background: var(--rss-green-100);
    transform: translateX(2px);
  }
  .primary-menu > li.menu-item-donate > a {
    background: linear-gradient(135deg, var(--rss-green-900) 0%, var(--rss-green-800) 100%);
    border-color: transparent;
  }
  .header-social-links {
    justify-content: center;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid rgba(16, 60, 43, .08);
  }
  .menu-toggle {
    min-width: 104px;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(11, 35, 25, .16);
    background: linear-gradient(135deg, var(--rss-green-900) 0%, var(--rss-green-800) 100%);
  }
  .menu-toggle.is-active {
    background: linear-gradient(135deg, var(--rss-green-800) 0%, #1d6a4b 100%);
  }
}

@media (max-width: 640px) {
  body.nav-open {
    overflow: hidden;
  }
  .rss-container {
    width: min(100% - 22px, var(--rss-container));
  }
  .header-inner {
    min-height: 72px;
    gap: 12px;
  }
  .site-branding a {
    gap: 10px;
  }
  .brand-text strong {
    font-size: .94rem;
  }
  .menu-toggle {
    min-width: 96px;
    padding: 11px 16px;
    font-size: .96rem;
  }
  .primary-navigation {
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    padding: 12px;
    border-radius: 22px;
    max-height: calc(100vh - 90px);
  }
  .primary-menu {
    gap: 7px;
  }
  .primary-menu a {
    padding: 13px 14px;
    font-size: .95rem;
    border-radius: 16px;
  }
  .header-social-links {
    gap: 12px;
    padding-top: 10px;
  }
  .hero {
    padding: 28px 0 20px;
  }
  .hero::before {
    width: 280px;
    height: 280px;
    right: -110px;
    top: 46px;
    opacity: .95;
  }
  h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
    letter-spacing: -.045em;
    margin-top: 16px;
    margin-bottom: 14px;
  }
  h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.06;
    margin-bottom: 14px;
  }
  h3 {
    font-size: 1.34rem;
  }
  .lead {
    font-size: 1rem;
    line-height: 1.66;
    margin-bottom: 0.95em;
  }
  p {
    margin-bottom: 1em;
  }
  .eyebrow {
    font-size: .82rem;
    padding: 8px 13px;
    gap: 9px;
  }
  .button-row {
    margin-top: 22px;
    gap: 10px;
  }
  .button-row .rss-button {
    min-height: 48px;
    padding: 12px 18px;
    flex: 1 1 100%;
  }
  .section {
    padding: 42px 0;
  }
  .section.compact {
    padding: 34px 0;
  }
  .section-header {
    gap: 14px;
    margin-bottom: 20px;
  }
  .card,
  .band,
  .post-card,
  .impact-item,
  .contact-row {
    padding: 20px;
    border-radius: 22px;
  }
  .impact-strip {
    gap: 10px;
    margin-top: 14px;
  }
  .donation-amounts {
    gap: 10px;
    margin-top: 16px;
  }
  .donation-amounts a {
    padding: 10px 13px;
    font-size: .96rem;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    gap: 18px;
  }
  .hero-card {
    padding: 14px;
    border-radius: 28px;
  }
  .hero-card img {
    border-radius: 20px;
  }
  .map-wrap iframe {
    min-height: 320px;
  }
  .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
  }
}


/* Staff administration and footer privacy link v1.11 */
.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-links a:hover {
  color: var(--rss-gold);
}

/* --- Homepage and dedicated Team page update v1.12 --- */
.hero h1 {
  margin-top: 0;
}
.impact-strip-single {
  grid-template-columns: minmax(150px, 220px);
  justify-content: center;
}
.impact-strip-single .impact-item {
  text-align: center;
}

.team-page-hero .lead {
  max-width: 820px;
}
.team-section {
  padding-top: 64px;
  padding-bottom: 70px;
}
.team-staff-section {
  background: rgba(231, 244, 234, .34);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.team-grid .team-profile-card {
  min-width: 0;
  height: 100%;
}
.team-profile-card img {
  width: 160px;
  height: 160px;
}
.team-profile-card h3 {
  font-size: 1.28rem;
  overflow-wrap: anywhere;
}
.team-profile-card .role {
  min-height: 3.2em;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .team-section {
    padding-top: 50px;
    padding-bottom: 54px;
  }
}

@media (max-width: 540px) {
  .impact-strip-single {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-profile-card {
    padding: 24px 20px;
  }
  .team-profile-card img {
    width: 150px;
    height: 150px;
  }
  .team-profile-card .role {
    min-height: 0;
  }
}


/* --- Work with us support tabs v1.13 --- */
.work-with-us-band .button-row {
  margin-bottom: 16px;
}
.support-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.support-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: var(--rss-white);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 700;
  line-height: 1.45;
}
.support-tab:hover,
.support-tab:focus-visible {
  background: rgba(241,200,75,.16);
  color: var(--rss-white);
  border-color: rgba(241,200,75,.55);
}
@media (max-width: 640px) {
  .support-tabs {
    gap: 10px;
  }
  .support-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }
}


/* --- Support Our Work page v1.14 --- */
.support-work-hero .lead {
  max-width: 760px;
}
.support-work-options .grid-3 {
  align-items: stretch;
}
.support-work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.support-work-card h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}
.support-work-card p {
  flex: 1 1 auto;
}
.support-work-card .rss-button {
  width: fit-content;
  margin-top: 12px;
}
.support-partner-section .band {
  overflow: visible;
}
@media (max-width: 980px) {
  .support-work-options .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .support-work-card .rss-button {
    width: 100%;
  }
}
