@import url('tokens.css');

/* ======================================================================
   FIOH website — consolidated main stylesheet.
   Built from the inline <style> blocks of the 7 page templates.
   Load order (in every page <head>):
     1. tokens.css   (variables, also @imported at top of this file)
     2. main.css     (this file)
     3. responsive.css (override layer — keep last so it wins)
   ====================================================================== */


/* ======================================================================
   1. RESET + BASE TYPOGRAPHY (shared across every page)
   ====================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

/*  body line-height: index.html and partners.html use 1.7; about, our-work,
    news and contact use 1.75. We adopt 1.75 as the dominant + most-recent
    choice — the half-line difference is visually imperceptible at body sizes. */
body {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.75;
  background: var(--c-bg);
  color: var(--c-ink);
  max-width: 100vw;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.sans { font-family: var(--font-body); }

/* Skip-to-content link — visually hidden until focused via keyboard.
   First focusable element on every page so screen-reader / keyboard users
   can bypass the header nav and jump straight to <main id="main-content">. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-accent);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--c-ink-inverse);
  outline-offset: -2px;
}


/* ======================================================================
   2. SHARED COMPONENT CLASSES (appear on 5+ pages)
   ====================================================================== */

/* Section label — small uppercase eyebrow above section headings.
   news.html omits font-family (inherits body sans via dark theme); article
   uses identical definition. We use the canonical font-family-bearing version. */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Nav link — site-nav anchor.
   news.html uses font-size: 11px with color: var(--c-ink-inverse); responsive.css
   already enforces 10.5px at <=1024px globally. We keep 11px as canonical and
   let news.html's body class drive the inverse colour through a modifier. */
.nav-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.nav-link:hover { color: var(--c-accent); text-decoration: none; }
.nav-link.is-active { color: var(--c-accent); }

/* On news.html, the dark-theme header inverts nav-link colour. */
body.theme-dark .nav-link { color: var(--c-ink-inverse); }
body.theme-dark .nav-link:hover { color: var(--c-accent); }
body.theme-dark .nav-link.is-active { color: var(--c-accent); }

/* Underline link — small accent inline links (index, partners cards) */
.underline-link {
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--c-accent);
}
.underline-link:hover { color: var(--c-accent-dark); }

/* Footer title + link */
.footer-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.footer-link {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 2.1;
  color: #777;
  display: block;
}
.footer-link:hover { color: #fff; text-decoration: none; }
body.theme-dark .footer-link { color: #888; }
body.theme-dark .footer-link:hover { color: var(--c-ink-inverse); }

/* Donate button — used inline in every header. Canonical green pill. */
.donate-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
.donate-btn:hover { background: var(--c-accent-dark); text-decoration: none; }

/* Country badge / chip — small uppercase country label.
   news.html defines .country-badge; article-example.html defines .country-chip
   inside .article-meta-chips. Both share the same role; we keep both. */
.country-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  color: #fff;
}
.country-chip {
  background: var(--c-country-sl);
  color: #fff;
}

/* Country palette helpers — small chips coloured by country.
   These complement the variable definitions in tokens.css. */
.country-sl       { background: var(--c-country-sl); }
.country-cameroon { background: var(--c-country-cameroon); }
.country-india    { background: var(--c-country-india); }
.country-kenya    { background: var(--c-country-kenya); }
.country-malawi   { background: var(--c-country-malawi); }
.country-pakistan { background: var(--c-country-pakistan); }

/* Warm-taupe accent — used on hero highlight words */
.accent-warm    { color: #af937e; }
.accent-warm-bg { background: #af937e; }

/* Scroll-triggered fade-in animations.
   index.html uses 0.7s; about/our-work use 0.75s. We use 0.75s as the
   more-common, newer value. */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }
.fade-up.delay-6 { transition-delay: 0.6s; }

/* Slide-in variants (about.html) */
.slide-l {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-l.is-visible { opacity: 1; transform: translateX(0); }
.slide-r {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-r.is-visible { opacity: 1; transform: translateX(0); }

/* Hero entrance — load animation (index, about, our-work) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim-1 { animation-delay: 0.05s; }
.hero-anim-2 { animation-delay: 0.18s; }
.hero-anim-3 { animation-delay: 0.32s; }
.hero-anim-4 { animation-delay: 0.50s; }
.hero-anim-5 { animation-delay: 0.65s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .slide-l, .slide-r, .hero-anim, .floater {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* ======================================================================
   3. SHARED HEADER + FOOTER (every page uses near-identical markup)
   ====================================================================== */

/* Sticky site header */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 52px;
}
/* article-example.html uses a slightly tighter padding + max-width */
.header-inner--article {
  padding: 16px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
body.theme-dark .header-bar {
  background: rgba(67, 62, 60, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 231, 228, 0.12);
}
body.theme-dark .header-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* Brand block (logo + wordmark) */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
body.theme-dark .brand-logo {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  transform: scale(2.0);
  transform-origin: center center;
  display: block;
}
.brand-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--c-ink);
}
body.theme-dark .brand-text { color: var(--c-ink-inverse); }
.brand-text--accent { color: var(--c-accent); }

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Footer — two layouts: lighter (#1a1a1a) and warmer (#1e1e1e). */
.site-footer {
  color: #fff;
  padding: 56px 60px 36px;
}
.site-footer--warm { background: #1e1e1e; padding: 64px 60px 40px; }
.site-footer--cool { background: #1a1a1a; }
.site-footer--news { background: var(--c-bg-dark); padding: 56px 60px 36px; }
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.site-footer-inner--wide { max-width: 1320px; }
.site-footer-inner--news { max-width: 1400px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-grid--warm {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-bottom: 1px solid #333;
  padding-bottom: 48px;
}
.footer-grid--news {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(240, 231, 228, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-brand-logo img {
  width: 100%;
  height: 100%;
  transform: scale(2.0);
  transform-origin: center center;
  display: block;
}
.footer-brand-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}
.footer-brand-text--news { font-size: 10px; line-height: 1.4; color: var(--c-ink-inverse); margin-bottom: 18px; }
.footer-brand--news { margin-bottom: 18px; }

.footer-tagline {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  max-width: 280px;
}
.footer-tagline--warm { color: #777; line-height: 1.75; margin-bottom: 20px; }
.footer-tagline--news { color: #666; line-height: 1.8; max-width: 300px; }

.footer-address {
  font-size: 12px;
  color: #555;
  margin-top: 16px;
}

.footer-socials { display: flex; gap: 12px; }
.footer-social-link {
  color: #666;
  display: flex;
  transition: color 0.2s;
}
.footer-social-link:hover { color: var(--c-accent); }

.footer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-foot--wrap { flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 12px; color: #555; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-link { font-size: 12px; color: #555; }
.footer-legal-link:hover { color: var(--c-accent); }

.footer-title--spaced { margin-top: 24px; display: block; }


/* ======================================================================
   4. SHARED LAYOUT HELPERS (used inline today; extracted to classes)
   ====================================================================== */

/* Section padding presets (replicates inline `padding: 80px 60px` etc) */
.section            { padding: 80px 60px; }
.section--90        { padding: 90px 60px; }
.section--100       { padding: 100px 60px; }
.section--hero      { padding: 80px 60px 60px; }
.section--hero-tall { padding: 80px 60px 64px; }
.section--hero-wide { padding: 90px 60px 70px 60px; }
.section--hero-pad  { padding: 80px 60px 56px; }
.section--cta       { padding: 0 60px 90px; }
.section--cta-mid   { padding: 70px 60px; }
.section--gift-aid  { padding: 52px 60px; }
.section--panels    { padding: 50px 0 80px; }
.section--filter    { padding: 20px 60px; }
.section--articles  { padding: 64px 60px 100px; }

.section-bg-alt   { background: var(--c-bg-alt); }
.section-bg-white { background: #fff; }
.section-bg-cream { background: var(--c-bg); }
.section-bg-mint  { background: #e8f5ef; }

.container         { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 900px; margin: 0 auto; }
.container--mid    { max-width: 1100px; margin: 0 auto; }
.container--wide   { max-width: 1240px; margin: 0 auto; }
.container--xwide  { max-width: 1320px; margin: 0 auto; }
.container--news   { max-width: 1400px; margin: 0 auto; }
.container--full   { max-width: 1600px; margin: 0 auto; }

/* Generic grid templates seen across pages */
.grid-2col       { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.grid-2col-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3col       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4col       { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-1-1-7      { display: grid; grid-template-columns: 1fr 1.7fr; gap: 80px; }
.grid-12-1       { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.grid-14-1       { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.grid-1-1-1      { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: center; }

.row-between { display: flex; justify-content: space-between; align-items: center; }
.row-end     { display: flex; justify-content: space-between; align-items: flex-end; }
.row-gap     { display: flex; gap: 16px; align-items: center; }
.col-gap     { display: flex; flex-direction: column; gap: 24px; }


/* ======================================================================
   ==== index.html ====
   ====================================================================== */

/* Hero (left text + right image) */
.home-hero {
  background: var(--c-bg-alt);
  display: flex;
  min-height: calc(100vh - 69px);
}
.home-hero-text {
  width: 52%;
  display: flex;
  align-items: center;
  padding: 90px 60px 70px 60px;
}
.home-hero-text > div { max-width: 100%; }
.home-hero-eyebrow { margin-bottom: 20px; }
.home-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--c-ink);
  max-width: 560px;
}
.home-hero-lede {
  font-size: 16px;
  line-height: 1.75;
  color: #5a5a5a;
  margin-bottom: 36px;
  max-width: 460px;
}
.home-hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}
.home-hero-donate {
  font-size: 13px;
  padding: 14px 32px;
}
.home-hero-image {
  width: 48%;
  position: relative;
  overflow: hidden;
  background: #c8ddd4;
}
.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.home-hero-image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 196, 164, 0.15) 0%, transparent 60%);
}
.home-hero-quote {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: #fff;
  padding: 18px 22px;
  max-width: 260px;
  border-left: 3px solid var(--c-accent);
}
.home-hero-quote p {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  font-style: italic;
}

/* "What we do" intro row */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  margin-bottom: 56px;
}
.intro-heading {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
}
.intro-body { color: #5a5a5a; margin-bottom: 20px; }

/* Featured Current Campaign */
.featured-campaign {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.95fr;
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 5px solid var(--c-accent);
  margin-bottom: 64px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(37, 37, 37, 0.04);
}
.fc-image-wrap { position: relative; overflow: hidden; min-height: 340px; }
.fc-image {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.featured-campaign:hover .fc-image { transform: scale(1.04); }
.fc-badge {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-ink);
  padding: 7px 13px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.fc-body {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  border-right: 1px solid #efece5;
}
.fc-meta-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent-dark); margin-bottom: 12px;
}
.fc-headline {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; line-height: 1.18;
  color: #1a1a1a; margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.fc-story { font-size: 14.5px; line-height: 1.7; color: #5a5a5a; margin-bottom: 16px; }
.fc-partner {
  font-family: var(--font-body);
  font-size: 12px; color: #888;
  margin-bottom: 24px;
}
.fc-partner b { color: var(--c-accent-dark); font-weight: 600; }
.fc-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-accent); color: #fff;
  padding: 13px 24px;
  border-radius: 2px;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.2s ease;
}
.fc-cta:hover { background: var(--c-accent-dark); text-decoration: none; }
.fc-progress {
  padding: 32px 24px 30px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--c-bg);
  gap: 16px;
}
.fc-progress-circle { position: relative; width: 220px; height: 220px; }
.fc-progress-circle svg { display: block; width: 100%; height: 100%; }
.fc-progress-circle .fc-progress-stroke { transition: stroke 0.3s ease; }
.fc-progress-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.fc-percent {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
  color: var(--c-ink); line-height: 1;
  letter-spacing: -0.02em;
}
.fc-percent-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #888; margin-top: 6px;
}
.fc-amounts {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  color: #4a4a4a;
}
.fc-amounts .fc-raised { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; }
.fc-amounts .fc-of {
  color: #999; font-size: 13px;
  font-family: var(--font-body);
}
.fc-amounts .fc-target { font-size: 1rem; color: #5a5a5a; }
.fc-stats {
  display: flex; gap: 22px;
  font-family: var(--font-body);
  font-size: 12px; color: #777;
}
.fc-stats b { color: #1a1a1a; font-weight: 700; margin-right: 3px; }

@media (prefers-reduced-motion: reduce) {
  .fc-image { transition: none !important; }
}

/* Focus cards row (4 cards in 1px-gap grid) */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}
.focus-card { background: var(--c-bg); padding: 32px 28px; }
.focus-icon {
  width: 38px; height: 38px;
  background: #e8f5ef; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.focus-card h3 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 10px; color: var(--c-ink);
}
.focus-card p { font-size: 14px; color: #6a6a6a; line-height: 1.65; }

/* Partner grid (home page) */
.home-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.home-partner-card {
  background: #fff;
  overflow: hidden;
}
.home-partner-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.home-partner-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.home-partner-img--sl       { background: #b4dece; }
.home-partner-img--india    { background: #f0c8b8; }
.home-partner-img--cameroon { background: #b0cce0; }
.home-partner-img--malawi   { background: #d4c8a8; }
.home-partner-img--kenya    { background: #c4d4a8; }
.home-partner-img--pakistan { background: #a8c4d8; }
.home-partner-badge {
  position: absolute;
  top: 14px; left: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px;
}
.home-partner-badge--sl       { background: var(--c-accent); }
.home-partner-badge--india    { background: #e8a088; }
.home-partner-badge--cameroon { background: #6899b8; }
.home-partner-badge--malawi   { background: #7a9a50; }
.home-partner-badge--kenya    { background: #7a9a50; }
.home-partner-badge--pakistan { background: var(--c-coral); }
.home-partner-body { padding: 24px; }
.home-partner-body h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 9px; color: var(--c-ink);
}
.home-partner-body p {
  font-size: 13px; color: #6a6a6a;
  line-height: 1.65; margin-bottom: 16px;
}

/* WHERE WE WORK — D3 map */
.map-wrap {
  position: relative;
  background: #eaf0ec;
  overflow: hidden;
  border: 1px solid #ccd8d0;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: var(--font-body);
  font-size: 13px;
}
.map-legend {
  display: flex; gap: 28px;
  margin-top: 14px;
  align-items: center;
}
.map-legend-item { display: flex; align-items: center; gap: 8px; }
.map-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.map-legend-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: #888;
}

input::placeholder { color: rgba(255, 255, 255, 0.55); }

/* Map pin pulse (legacy, kept for any non-D3 fallback) */
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.pin-pulse { animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes d3ping {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}
.d3-pulse {
  animation: d3ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* Impact quote block */
.impact-quote {
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-ink);
  margin-bottom: 28px;
  font-style: italic;
}
.impact-quote-attribution {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Founder / story section */
.founder-card {
  background: #f0f7f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 420px;
  gap: 28px;
}
.founder-logo {
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(125, 196, 164, 0.25);
}
.founder-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.75) translate(-2%, -3%);
  transform-origin: center center;
  display: block;
}
.founder-tagline { text-align: center; }
.founder-eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 6px;
}
.founder-since {
  font-size: 15px; color: #5a5a5a; font-style: italic;
}
.founder-body h2 {
  font-size: 1.7rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 20px;
  color: var(--c-ink);
}
.founder-body p {
  color: #5a5a5a; margin-bottom: 18px; line-height: 1.75;
}
.founder-body p.last { margin-bottom: 24px; }

/* Donate CTA section (index.html) */
.donate-section {
  background: var(--c-accent);
  padding: 80px 60px;
}
.donate-section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.donate-eyebrow {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.donate-section h3 {
  font-size: 2rem; font-weight: 700;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.donate-section p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 8px;
}
.donate-section p.small { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.donate-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}
.donate-card-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}
.donate-paypal-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  background: #fff;
  color: #003087;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  margin-bottom: 14px;
}
.donate-paypal-btn--soon {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  cursor: not-allowed;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}
.donate-paypal-fineprint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  font-family: var(--font-body);
}
.donate-secondary-links { display: flex; gap: 16px; flex-wrap: wrap; }
.donate-secondary-links a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.donate-secondary-links a.muted { color: rgba(255, 255, 255, 0.7); }


/* ======================================================================
   ==== about.html ====
   ====================================================================== */

/* Page hero (shared shape) */
.page-hero {
  background: var(--c-bg-alt);
  padding: 80px 60px 60px;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  max-width: 720px;
  margin-bottom: 20px;
}
.page-hero-rule {
  width: 80px;
  height: 3px;
  background: var(--c-accent);
  margin-bottom: 24px;
}
.page-hero-lede {
  font-size: 17px;
  color: #5a5a5a;
  max-width: 700px;
  line-height: 1.75;
}

/* Pillars section background gradient + floaters */
.pillars-section {
  background: linear-gradient(180deg, var(--c-bg) 0%, #fff 100%);
  padding: 100px 60px;
  position: relative;
  overflow: hidden;
}
.pillars-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pillars-heading-wrap {
  text-align: center;
  margin-bottom: 64px;
}
.pillars-heading {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  max-width: 640px;
  margin: 0 auto;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.pillars-col {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.pillar { display: flex; flex-direction: column; gap: 8px; }
.pillar-row { display: flex; gap: 14px; align-items: flex-start; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(125, 196, 164, 0.15);
  color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.pillar:hover .pillar-icon {
  background: rgba(125, 196, 164, 0.25);
  transform: rotate(-6deg) scale(1.05);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: #1a1a1a;
  margin-top: 4px;
}
.pillar p {
  font-size: 14.5px; color: #5a5a5a; line-height: 1.7;
  padding-left: 0;
}

/* Floating decorative circles */
.floater {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}
.floater.f1 { top: 12%; left: 6%;  width: 220px; height: 220px; background: rgba(125, 196, 164, 0.15); animation-delay: 0s; }
.floater.f2 { top: 65%; right: 6%; width: 280px; height: 280px; background: rgba(212, 128, 106, 0.10); animation-delay: 1.2s; }
.floater.f3 { top: 35%; right: 35%; width: 140px; height: 140px; background: rgba(168, 196, 216, 0.12); animation-delay: 2.4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

/* Centre image (between pillars) */
.centre-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.centre-image {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.4s ease;
}
.centre-image:hover { transform: scale(1.02); }
.centre-image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 6px; display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.centre-image::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 4px solid #c8ddd4;
  border-radius: 6px;
  z-index: -1;
}
.centre-image-cta {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 24px;
  background: #fff;
  color: var(--c-ink);
  border: 1px solid #d8d4cc;
  border-radius: 999px;
  text-decoration: none;
}

/* Stats row */
.stats-row {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 28px 24px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); background: #fff; }
.stat-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(37, 37, 37, 0.04);
  color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: background 0.3s ease, transform 0.6s ease;
}
.stat-card:hover .stat-icon {
  background: rgba(125, 196, 164, 0.15);
  transform: rotate(360deg);
}
.stat-value {
  font-size: 2.2rem; font-weight: 700;
  color: #1a1a1a; line-height: 1;
  letter-spacing: -0.02em;
}
.stat-value .accent { color: var(--c-accent-dark); }
.stat-card-label {
  font-family: var(--font-body);
  font-size: 12px; color: #777; margin-top: 6px;
}
.stat-card .underline-bar {
  width: 32px; height: 2px; background: var(--c-accent-dark);
  margin: 14px auto 0;
  transition: width 0.3s ease;
}
.stat-card:hover .underline-bar { width: 56px; }

/* Bigger inline stat-num + label (legacy, kept for any existing markup) */
.stat-num {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-top: 8px;
}

/* Full story narrative + timeline */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.story-narrative {
  font-size: 16px;
  color: #4a4a4a;
}
.story-narrative p { margin-bottom: 18px; }
.story-narrative p:last-child { margin-bottom: 0; }
.story-narrative b { color: #1a1a1a; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, #c8ddd4 0%, #f0c8b8 100%);
}
.timeline-item { position: relative; padding: 0 0 28px 0; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -27px; top: 6px;
  width: 12px; height: 12px;
  background: var(--c-accent);
  border: 2px solid var(--c-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #c8ddd4;
}
.timeline-year {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent-dark); margin-bottom: 4px;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700; color: #1a1a1a; margin-bottom: 6px;
}
.timeline-item p { font-size: 14.5px; color: #5a5a5a; line-height: 1.7; }

/* CTA strip (about + our-work) */
.cta-strip {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-bg-dark-soft) 100%);
  color: #fff;
  padding: 36px 48px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-strip h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.cta-strip p { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; }
.cta-button {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-accent); color: #fff;
  padding: 14px 26px; border-radius: 4px;
  flex-shrink: 0;
}
.cta-button:hover { background: var(--c-accent-dark); text-decoration: none; }

/* People section */
.people-heading-wrap {
  text-align: center;
  margin-bottom: 56px;
}
.people-heading {
  font-size: 2.1rem; font-weight: 700; line-height: 1.2;
  color: var(--c-ink); margin-bottom: 16px;
}
.people-lede {
  font-size: 16px; color: #5a5a5a;
  max-width: 640px; margin: 0 auto; line-height: 1.75;
}
.people-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.person-card {
  background: #fff;
  padding: 32px 32px 30px;
  border: 1px solid var(--c-border-soft);
  border-radius: 8px;
  display: flex; flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}
.person-card.highlight { border-left: 4px solid #af937e; }
.person-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #c8ddd4;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.person-avatar.founder { background: #af937e; }
.person-avatar.chair   { background: var(--c-accent-dark); }
.person-avatar.trustee { background: #b8b3a8; font-size: 20px; }
.person-role {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 4px;
}
.person-card.highlight .person-role { color: #af937e; }
.person-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: #1a1a1a; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.person-card p { font-size: 14px; color: #5a5a5a; line-height: 1.7; }
.person-card.small { padding: 26px 26px 24px; }
.person-card.small h3 { font-size: 1.05rem; }
.person-card.small p { font-size: 13px; }
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.trustee-link {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: #5a5a5a;
}
.trustee-link a {
  color: var(--c-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trustee-link a:hover { color: var(--c-accent-dark); }


/* ======================================================================
   ==== our-work.html ====
   ====================================================================== */

/* Programme Areas (4 cards in 1px-gap grid) */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}
.programme-card {
  background: #fff;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  transition: background 0.3s ease;
}
.programme-card:hover { background: var(--c-bg); }
.programme-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(125, 196, 164, 0.15);
  color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.programme-card:hover .programme-icon {
  background: rgba(125, 196, 164, 0.25);
  transform: rotate(-6deg);
}
.programme-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: #1a1a1a; margin-bottom: 12px;
}
.programme-card p {
  font-size: 14px; color: #5a5a5a; line-height: 1.7;
  margin-bottom: 20px;
}
.programme-outputs {
  list-style: none;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #efece5;
}
.programme-outputs li {
  font-family: var(--font-body);
  font-size: 12.5px; color: #4a4a4a;
  line-height: 1.6;
  padding: 4px 0 4px 18px;
  position: relative;
}
.programme-outputs li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 2px;
  background: #af937e;
}
.programme-outputs li b { color: #1a1a1a; font-weight: 700; }

/* Case Studies */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.case-study.flip .case-image-wrap { order: 2; }
.case-study.flip .case-body       { order: 1; }
.case-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.10);
}
.case-image-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.case-study:hover .case-image-wrap img { transform: scale(1.04); }
.case-tag {
  position: absolute;
  top: 18px; left: 18px;
  display: flex; gap: 8px;
}
.case-tag span {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-ink);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.case-tag span.year { background: rgba(0, 0, 0, 0.65); color: #fff; }
.case-body h3 {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 700;
  line-height: 1.18; color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.case-block { margin-bottom: 18px; }
.case-block-label {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #af937e;
  margin-bottom: 6px;
}
.case-block p { font-size: 14.5px; color: #4a4a4a; line-height: 1.75; }
.case-quote {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--c-accent);
  background: #f0f7f3;
  font-style: italic;
  font-size: 14.5px;
  color: #2e3a35;
}
.case-quote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  color: #5a5a5a;
}

/* Financial Transparency: allocation + region bars */
.finance-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.finance-col-heading {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.finance-col-heading.spaced { margin-bottom: 18px; }
.finance-col-note {
  font-size: 14px;
  color: #6a6a6a;
}

/* Allocation bar */
.alloc-bar {
  width: 100%;
  height: 70px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin: 24px 0 18px;
  position: relative;
  isolation: isolate;
}
.alloc-segment {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 18px;
  color: #fff;
  font-family: var(--font-body);
  width: 0;
  overflow: hidden;
  cursor: default;
  outline: none;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              transform 0.3s ease,
              filter 0.3s ease,
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}
.alloc-segment .pct {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.alloc-segment .lbl {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px; opacity: 0.92;
  white-space: nowrap;
}
.alloc-1 { background: var(--c-accent-dark); }
.alloc-2 { background: #af937e; }
.alloc-3 { background: #b8b3a8; }
.alloc-4 { background: #c8a98b; }

.alloc-bar:hover .alloc-segment,
.alloc-bar:focus-within .alloc-segment {
  opacity: 0.55;
  transform: scale(0.99);
}
.alloc-bar .alloc-segment:hover,
.alloc-bar .alloc-segment:focus-visible {
  opacity: 1;
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.alloc-key {
  display: flex; flex-wrap: wrap; gap: 16px 22px;
  font-family: var(--font-body);
  font-size: 12px; color: #5a5a5a;
}
.alloc-key .swatch {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; margin-right: 7px;
  vertical-align: middle;
}
.alloc-key .swatch.alloc-1 { background: var(--c-accent-dark); }
.alloc-key .swatch.alloc-2 { background: #af937e; }
.alloc-key .swatch.alloc-3 { background: #b8b3a8; }
.alloc-key .swatch.alloc-4 { background: #c8a98b; }

.region-bar {
  margin-bottom: 22px;
  padding: 10px 14px;
  margin-left: -14px; margin-right: -14px;
  border-radius: 6px;
  cursor: default;
  outline: none;
  border-left: 2px solid transparent;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.region-bar:hover,
.region-bar:focus-visible {
  background: #eef7f1;
  transform: translateX(2px);
  border-left-color: rgba(125, 196, 164, 0.6);
}
.region-bar-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 8px;
}
.region-bar-head b { color: #1a1a1a; font-weight: 700; }
.region-bar-head .amt { color: #5a5a5a; }
.region-bar-track {
  height: 12px;
  background: var(--c-border-soft);
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.region-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
  transform-origin: left center;
}
.region-bar-fill--sage  { background: var(--c-accent-dark); }
.region-bar-fill--coral { background: var(--c-coral); }
.region-bar-fill--olive { background: #7a9a50; }
.region-bar-fill--warm  { background: #af937e; }

.region-bar:hover .region-bar-fill,
.region-bar:focus-visible .region-bar-fill {
  filter: brightness(1.12) saturate(1.05);
}
.region-bar:hover .region-bar-track,
.region-bar:focus-visible .region-bar-track {
  transform: scaleY(1.18);
}

.finance-block.is-hi-pp .region-bar-fill {
  filter: brightness(1.14) saturate(1.05);
}

/* Allocation bar marker (cursor positioned on hover) */
.alloc-marker {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(212, 128, 106, 0.95),
    0 0 14px rgba(212, 128, 106, 0.55);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease,
              left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.alloc-bar.has-marker .alloc-marker { opacity: 1; }

/* Shimmer sweep — single pass, triggered by .has-shimmer */
.alloc-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.40) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.40) 55%,
    transparent 100%);
  transform: translateX(-110%);
  mix-blend-mode: overlay;
  z-index: 4;
}
.alloc-bar.has-shimmer::after {
  animation: alloc-shimmer 750ms cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
}
@keyframes alloc-shimmer { to { transform: translateX(110%); } }

.accounts-line {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13.5px; color: #5a5a5a;
  padding: 22px;
  background: #f0f7f3;
  border-radius: 6px;
}
.accounts-line a {
  color: var(--c-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Outputs grid (4 rounded cards) */
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.output-card {
  padding: 36px 26px 30px;
  background: #fff;
  border: 1px solid var(--c-border-soft);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.output-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.output-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  color: #1a1a1a; line-height: 1;
  letter-spacing: -0.03em;
}
.output-num .suffix { color: #af937e; }
.output-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  color: #5a5a5a; margin-top: 14px;
  line-height: 1.5;
}
.output-bar {
  width: 32px; height: 2px;
  background: var(--c-accent);
  margin: 16px auto 0;
  transition: width 0.3s ease;
}
.output-card:hover .output-bar { width: 56px; }

/* our-work reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .alloc-segment, .region-bar-fill,
  .alloc-marker, .region-bar-track, .region-bar {
    transition: none !important;
  }
  .alloc-bar.has-shimmer::after { animation: none !important; opacity: 0; }
}


/* ======================================================================
   ==== partners.html ====
   ====================================================================== */

/* Interactive expanding-panel selector */
.panels {
  display: flex;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  gap: 8px;
  align-items: stretch;
  height: 560px;
  padding: 0 32px;
}
.panel {
  position: relative;
  flex: 1 1 0%;
  min-width: 70px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition:
    flex 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    opacity 0.7s ease,
    transform 0.7s ease;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  opacity: 0;
  transform: translateX(-40px);
}
.panel.in { opacity: 1; transform: translateX(0); }
.panel.active {
  flex: 8 1 0%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.panel-badge {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-body); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; padding: 6px 12px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  z-index: 3;
}
.panel-collapsed-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.panel.active .panel-collapsed-title { opacity: 0; }
.panel-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 36px 32px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.panel.active .panel-content { opacity: 1; pointer-events: auto; transform: translateY(0); }
.panel-content h2 {
  font-family: var(--font-display);
  color: #fff; font-size: 1.95rem;
  font-weight: 700; line-height: 1.15; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.panel-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px; line-height: 1.65;
  max-width: 640px; margin-bottom: 14px;
}
.panel-content .meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px;
  font-family: var(--font-body); font-size: 11px;
  color: rgba(255, 255, 255, 0.75); letter-spacing: 0.04em;
}
.panel-content .meta b { color: #fff; font-weight: 700; }
.panel-content .visit {
  display: inline-block; margin-top: 18px;
  font-family: var(--font-body); font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 22px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 2px;
}
.panel-content .visit:hover { background: var(--c-accent-dark); text-decoration: none; }
.panel-content .visit[href^="mailto:"] {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  background: #fff;
  color: var(--c-accent-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.panel-content .visit[href^="mailto:"]:hover {
  background: #fff;
  color: var(--c-accent-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.panel-content .region {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); margin-bottom: 10px;
}
.panel-content .region .dot {
  width: 8px; height: 8px; border-radius: 50%;
}

/* Partner network-approach panel */
.network-card {
  background: #f0f7f3;
  padding: 40px;
  text-align: center;
}
.network-stat {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent-dark);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.network-stat-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}
.network-stat-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}
.network-stat-wrap .network-stat { margin-bottom: 0; }
.network-stat-estimated {
  position: absolute;
  bottom: 100%;
  right: 100%;
  margin: 0 -6px 4px 0;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
}
.network-rule {
  height: 1px;
  background: #d8e5dd;
  margin: 0 32px 24px;
}
.network-text {
  font-size: 14px; color: #5a5a5a; line-height: 1.65;
}


/* ======================================================================
   ==== news.html ====
   ====================================================================== */

/* news.html runs on a dark chocolate background — apply via body.theme-dark */
body.theme-dark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--c-bg-dark-soft);
  color: var(--c-ink-inverse);
}
body.theme-dark a { color: inherit; text-decoration: none; }

/* Filter bar */
.filter-bar {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(240, 231, 228, 0.08);
  padding: 20px 60px;
  position: sticky;
  top: 86px;
  z-index: 90;
  backdrop-filter: blur(4px);
}
.filter-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 231, 228, 0.4);
  margin-right: 4px;
}
.filter-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 8px 18px;
  border: 1px solid rgba(240, 231, 228, 0.25);
  color: rgba(240, 231, 228, 0.65);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.filter-separator {
  width: 1px; height: 28px; background: rgba(240, 231, 228, 0.18);
  flex-shrink: 0;
}

/* News card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--min-card-width, 350px), var(--max-card-width, 450px)));
  gap: var(--column-gap, 45px);
  justify-content: center;
}
.news-card {
  background: #fff;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  /* Combined transition (the source file declares it twice; merged here) */
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(32px);
}
.news-card.visible { opacity: 1; transform: translateY(0); }
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.news-card.hidden-card { display: none; }

.card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: block; background: #e8e2db;
}
.card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #c4b098 0%, #a89070 100%);
  display: flex; align-items: center; justify-content: center;
}
.card-body {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.card-date {
  font-size: 12px; color: #999;
  font-family: "Helvetica Neue", sans-serif;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; line-height: 1.3;
  color: #1a1a1a; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: #1a1a1a; }
.card-excerpt {
  font-size: 13.5px; line-height: 1.65; color: #555;
  flex: 1; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.read-more {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

/* Loading / error states */
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(240, 231, 228, 0.2);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
}
.loading-row span {
  font-size: 13px;
  color: rgba(240, 231, 228, 0.5);
  letter-spacing: 0.06em;
}
.empty-state, .error-state {
  display: none;
  text-align: center;
  padding: 80px 0;
}
.empty-state p, .error-state p {
  color: rgba(240, 231, 228, 0.45);
  font-size: 14px;
  letter-spacing: 0.03em;
}

/* Tag chip on card */
.tag-chip {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px;
  background: var(--c-bg-alt); color: #7a7060; border-radius: 2px;
}
.archived-chip {
  background: #e8e4dc; color: #aaa; font-style: italic; opacity: 0.8;
}

/* News hero (dark) */
.news-hero {
  background: var(--c-bg-dark-soft);
  border-bottom: 1px solid rgba(240, 231, 228, 0.1);
  padding: 80px 60px 60px;
}
.news-hero-inner { max-width: 1400px; margin: 0 auto; }
.news-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink-inverse);
  max-width: 700px;
  margin-bottom: 20px;
}
.news-hero-lede {
  font-size: 16px;
  color: rgba(240, 231, 228, 0.65);
  max-width: 540px;
  line-height: 1.75;
}

.news-main { padding: 64px 60px 100px; }
.news-main-inner { max-width: 1400px; margin: 0 auto; }

.load-more-wrap {
  display: none;
  text-align: center;
  margin-top: 64px;
}
.load-more-btn {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent;
  color: var(--c-ink-inverse);
  border: 1px solid rgba(240, 231, 228, 0.35);
  padding: 14px 40px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}
.load-more-btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

/* news.html overrides section-label colour from sage to a darker-context match */
body.theme-dark .section-label {
  color: var(--c-accent);
}


/* ======================================================================
   ==== contact.html ====
   ====================================================================== */

/* Form inputs (contact page) */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #c8c4bc;
  padding: 12px 0;
  font-size: 15px;
  color: var(--c-ink);
  outline: none;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--c-accent); }
.contact-form textarea { resize: none; height: 120px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
}
.contact-form label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  display: block;
}
.contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.submit-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #fff;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
}
.submit-btn:hover { background: var(--c-accent-dark); }

.detail-icon {
  width: 36px;
  height: 36px;
  background: #e8f5ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}
.contact-details { padding-top: 52px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-row--last { margin-bottom: 40px; }
.contact-row-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}
.contact-row-body {
  font-size: 15px;
  color: #444;
  line-height: 1.65;
}
.contact-row-link {
  font-size: 15px;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partner-contact-block {
  border-top: 1px solid var(--c-border);
  padding-top: 32px;
}
.partner-contact-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.partner-contact-link {
  font-size: 14px;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.partner-contact-row { margin-bottom: 16px; }
.partner-contact-row:last-child { margin-bottom: 0; }

/* Gift Aid banner */
.giftaid-banner {
  background: #e8f5ef;
  padding: 52px 60px;
}
.giftaid-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.giftaid-banner h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.giftaid-banner p {
  font-size: 15px;
  color: #5a5a5a;
  max-width: 500px;
  line-height: 1.65;
}
.giftaid-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #fff;
  padding: 14px 32px;
  text-decoration: none;
  white-space: nowrap;
}


/* ======================================================================
   ==== article-example.html ====
   ====================================================================== */

.article-banner {
  position: relative;
  width: 100%;
  height: 58vh;
  min-height: 420px;
  max-height: 620px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.article-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.20) 45%,
    rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}
.article-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px 64px;
  color: #fff;
}
.article-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.article-meta-chips span {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-ink);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.article-meta-chips .country-chip {
  background: var(--c-accent-dark);
  color: #fff;
}
.article-meta-chips .reading-chip {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.article-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 840px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.article-body-grid {
  max-width: 1200px;
  margin: 80px auto 100px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px;
  align-items: start;
}
.entry-content {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.85;
  color: #2a2a2a;
}
.entry-content > p { margin-bottom: 1.4em; }
.entry-content > .lede {
  font-size: 1.18em;
  line-height: 1.75;
  color: #1a1a1a;
  margin-bottom: 1.5em;
}
.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 1.6em 0 0.7em;
  letter-spacing: -0.005em;
}
.entry-content figure { margin: 2em -8px; }
.entry-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.entry-content figure figcaption {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: #6a6a6a;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid #c8ddd4;
}
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-left: 3px solid var(--c-accent);
  background: #f0f7f3;
  font-style: italic;
  font-size: 1.02em;
  color: #2e3a35;
  border-radius: 0 4px 4px 0;
}
.entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78em;
  color: #5a5a5a;
}
.entry-content a {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content .signature {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--c-border);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #6a6a6a;
  font-style: italic;
}
.entry-content .signature b {
  color: #1a1a1a;
  font-weight: 700;
  font-style: normal;
}

/* Sticky meta sidebar */
.entry-meta {
  position: sticky;
  top: 96px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #4a4a4a;
}
.meta-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--c-border-soft);
}
.meta-block:last-child { border-bottom: 0; }
.meta-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.meta-label.spaced { margin-bottom: 12px; }
.meta-author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.meta-author-role {
  font-size: 12.5px;
  color: #6a6a6a;
}
.meta-chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--c-accent-dark); color: #fff;
  border-radius: 2px;
  margin-right: 4px;
}
.meta-tag {
  display: inline-block;
  padding: 5px 11px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--c-bg-alt); color: #7a7060;
  border-radius: 12px;
  margin: 0 6px 6px 0;
  transition: background 0.2s ease;
}
.meta-tag:hover { background: #e8e2db; text-decoration: none; }

.share-row { display: flex; gap: 10px; }
.share-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d8d4cc;
  border-radius: 50%;
  background: #fff;
  color: #5a5a5a;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.share-btn:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  text-decoration: none;
}
.share-btn svg { width: 18px; height: 18px; }

.donate-cta-card {
  background: linear-gradient(135deg, #f0f7f3 0%, #e3efe8 100%);
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  padding: 22px;
}
.donate-cta-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}
.donate-cta-card p {
  font-size: 13px;
  color: #4a5a52;
  line-height: 1.6;
  margin-bottom: 14px;
}
.donate-cta-card .donate-link {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-accent); color: #fff;
  padding: 11px 18px;
  border-radius: 2px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.donate-cta-card .donate-link:hover {
  background: var(--c-accent-dark);
  text-decoration: none;
}

.related-card {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  align-items: flex-start;
}
.related-card:hover { text-decoration: none; }
.related-thumb {
  width: 70px; height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}
.related-content { flex: 1; min-width: 0; }
.related-country {
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 2px;
}
.related-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.related-card:hover .related-title { color: var(--c-accent-dark); }


/* ======================================================================
   4b. ADDITIONAL UTILITIES (referenced from refactored HTML markup).
   These cover one-offs introduced when inline styles were stripped — kept
   here at the end of the component layer so the responsive section below
   still wins where appropriate.
   ====================================================================== */

/* Section eyebrow margins (replaces inline `margin-bottom`) */
.page-hero-eyebrow { margin-bottom: 16px; }
.home-hero-eyebrow { margin-bottom: 20px; }

/* Page hero h1 variants */
.page-hero-h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  max-width: 720px;
  margin-bottom: 18px;
}
.page-hero-h1--narrow {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  max-width: 600px;
  margin-bottom: 20px;
}
.page-hero-h1--wide {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  max-width: 820px;
  margin-bottom: 22px;
}
.page-hero-lede--narrow {
  font-size: 16px;
  color: #5a5a5a;
  max-width: 500px;
  line-height: 1.75;
}
.page-hero-lede--mid {
  font-size: 16px;
  color: #5a5a5a;
  max-width: 620px;
  line-height: 1.75;
}

/* Lede beneath section headings (our-work) */
.heading-lede-spaced { margin: 14px auto 0; }
.case-heading-wrap { text-align: center; margin-bottom: 64px; }

/* Contact-page eyebrow/heading spacings */
.form-heading              { margin-bottom: 32px; }
.contact-details-section   { margin-bottom: 40px; }
.contact-details-eyebrow   { margin-bottom: 20px; }
.partner-contact-eyebrow   { margin-bottom: 18px; }
.giftaid-eyebrow           { margin-bottom: 10px; }
.form-success {
  display: none;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-accent-dark);
}

/* Partners panel region-dot colours */
.panel-dot--sl    { background: var(--c-accent-dark); }
.panel-dot--india { background: var(--c-coral); }
.panel-dot--kenya { background: #7a9a50; }

/* Network approach (partners) */
.network-approach-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: 18px;
}
.network-approach-p {
  color: #5a5a5a;
  line-height: 1.75;
  margin-bottom: 16px;
}
.network-approach-p:last-child { margin-bottom: 0; }

/* Home page section heads */
.home-partners-head { margin-bottom: 48px; }
.home-map-head      { margin-bottom: 40px; }
.home-map-note {
  font-size: 14px;
  color: #888;
  max-width: 300px;
  text-align: right;
  line-height: 1.5;
}

/* Impact quote (home) */
.impact-quote-wrap { text-align: center; }
.impact-quote-eyebrow { margin-bottom: 24px; text-align: center; }

/* Founder section eyebrow */
.founder-section-eyebrow { margin-bottom: 40px; }

/* Map legend dots (home) */
.map-legend-dot--sl    { background: var(--c-accent-dark); }
.map-legend-dot--kenya { background: #7a9a50; }
.map-legend-dot--india { background: var(--c-coral); }

/* Underline link small variant (used in home partner cards) */
.underline-link--small { font-size: 12px; }

/* Footer locality (index footer) */
.footer-locality {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  display: block;
}

/* Article-example footer uses narrower side padding than other footers */
.article-footer { padding: 56px 32px 36px; }

/* ======================================================================
   5. RESPONSIVE — consolidated.
   Per-page breakpoints from inline <style> blocks (540, 720, 860, 900)
   are reconciled here onto canonical 640 / 1024.
   responsive.css loads AFTER this file and provides additional overrides;
   we keep this set minimal and complementary.
   ====================================================================== */

/* ---------- Tablet ≤1024px ---------- */
@media (max-width: 1024px) {
  /* Header padding tightens so the nav fits without horizontal overflow */
  .header-inner { padding: 16px 28px; }

  .article-banner { height: 44vh; min-height: 360px; }
  .article-banner-inner { padding: 0 40px 48px; }
  .article-title { font-size: 2.4rem; }
  .article-body-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    margin: 56px auto 80px;
    padding: 0 40px;
  }
  .entry-meta { position: static; top: auto; }
  .entry-content { font-size: 17px; line-height: 1.8; }

  /* our-work — originally at 900 + 540; consolidated to 1024 + 640. */
  .programmes-grid { grid-template-columns: 1fr 1fr; }
  .case-study { grid-template-columns: 1fr; gap: 28px; }
  .case-study.flip .case-image-wrap,
  .case-study.flip .case-body { order: initial; }
  .finance-block { grid-template-columns: 1fr; gap: 36px; }
  .outputs-grid  { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }

  /* partners — originally at 900; consolidated to 1024 (within responsive.css
     a separate 900 rule still exists for the panels flex behaviour). */
  .panels {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .panel {
    height: 220px;
    transform: translateY(-30px);
  }
  .panel.in { transform: translateY(0); }
  .panel.active { flex: 1 1 0%; height: 480px; }
  .panel-collapsed-title { display: none; }
  .panel-content {
    opacity: 1; pointer-events: auto; transform: none;
    padding: 24px;
  }
  .panel-content h2 { font-size: 1.5rem; }

  /* index — featured campaign 3-col → 1-col (originally at 860px) */
  .featured-campaign { grid-template-columns: 1fr; }
  .fc-image-wrap { min-height: 220px; }
  .fc-body { border-right: none; border-bottom: 1px solid #efece5; padding: 28px; }
  .fc-progress { padding: 28px; }
  .fc-progress-circle { width: 180px; height: 180px; }
  .fc-headline { font-size: 1.4rem; }
  .fc-percent { font-size: 2.2rem; }

  /* index home hero (was inline col + col, must stack) */
  .home-hero { flex-direction: column; min-height: auto; }
  .home-hero-text { width: 100%; padding: 56px 32px 40px; }
  .home-hero-image { width: 100%; min-height: 320px; max-height: 460px; }

  /* about — pillars stack to 1 col on tablet */
  .pillars-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .people-featured { grid-template-columns: 1fr; }
  .trustees-grid { grid-template-columns: 1fr 1fr; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .giftaid-inner { flex-direction: column; align-items: flex-start; }

  /* home */
  .focus-grid, .home-partners { grid-template-columns: 1fr 1fr; }
  .grid-1-1-7, .grid-12-1, .grid-14-1, .grid-1-1-1,
  .grid-2col, .grid-2col-tight, .grid-3col, .grid-4col,
  .donate-section-grid, .intro-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Mobile ≤640px ---------- */
@media (max-width: 640px) {
  /* Section padding sitewide */
  .section,
  .section--90,
  .section--100,
  .section--hero,
  .section--hero-tall,
  .section--hero-wide,
  .section--hero-pad,
  .section--cta-mid,
  .section--gift-aid,
  .section--filter,
  .section--articles {
    padding: 48px 20px;
  }
  .section--cta { padding: 0 20px 60px; }
  .section--panels { padding: 32px 0 60px; }

  /* Header padding */
  .header-inner { padding: 14px 20px; }
  .header-inner--article { padding: 14px 20px; }

  /* Hero text */
  .home-hero h1 { font-size: 1.95rem; }
  .page-hero h1, .article-title { font-size: 1.75rem; }
  .pillars-heading, .people-heading,
  .news-hero h1 { font-size: 1.6rem; }

  /* Body p */
  body { font-size: 16px; }

  /* Featured campaign / focus / partners → 1 col */
  .focus-grid, .home-partners,
  .programmes-grid, .outputs-grid,
  .stats-row, .trustees-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Footer collapse */
  .footer-grid, .footer-grid--warm, .footer-grid--news {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* CTA strip stacks */
  .cta-strip { flex-direction: column; align-items: flex-start; }

  /* Article body */
  .article-banner { height: 36vh; min-height: 300px; }
  .article-banner-inner { padding: 0 20px 28px; }
  .article-meta-chips { gap: 6px; margin-bottom: 16px; }
  .article-meta-chips span { font-size: 10px; padding: 6px 10px; }
  .article-body-grid {
    gap: 40px;
    margin: 40px auto 60px;
    padding: 0 20px;
  }
  .entry-content { font-size: 16.5px; line-height: 1.78; }
  .entry-content h2 { font-size: 1.35rem; }
  .entry-content > .lede { font-size: 1.08em; }
  .entry-content figure { margin: 1.6em 0; }
  .entry-content blockquote { padding: 16px 18px; font-size: 0.98em; }
  .share-row { flex-wrap: wrap; }
  .donate-cta-card { padding: 18px; }

  /* Network stat big number shrinks */
  .network-stat { font-size: 3rem; }

  /* Contact form */
  .contact-name-row { grid-template-columns: 1fr; gap: 0; }

  /* Donate section */
  .donate-section { padding: 48px 20px; }
  .donate-section-grid { grid-template-columns: 1fr; gap: 32px; }

  /* News filter sticky on mobile — drop the sticky to avoid fighting nav */
  .filter-bar { padding: 16px 20px; top: 0; }
  .news-hero { padding: 48px 20px 36px; }
  .news-main { padding: 40px 20px 60px; }
}
