/* =========================================================
   Source of Hope Foundation — main stylesheet
   ========================================================= */

:root {
  /* Palette derived from Sourceofhope_logo.svg:
     signature green + near-black type + calm neutral surfaces. */
  --brand: #046a36;
  --brand-dark: #035c2f;
  --brand-darker: #024924;
  --brand-deep: #10251a;
  --brand-mid: #2b8052;
  --brand-leaf: #75b48f;
  --brand-leaf-soft: #cfe8d8;
  --brand-soft: #e7f3eb;
  --brand-tint: #f3f8f5;
  --navy: #10251a;
  --navy-soft: #405247;
  --ink: #17211a;
  --ink-soft: #405247;
  --muted: #718078;
  --line: #dce6df;
  --line-soft: #edf2ee;
  --bg: #ffffff;
  --bg-soft: #f7f9f7;
  --bg-warm: #e7f3eb;
  --success: #087a42;
  --danger: #d6342a;
  --info: #046a36;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 37, 26, 0.05);
  --shadow-md: 0 2px 10px rgba(16, 37, 26, 0.08);
  --shadow-lg: 0 10px 32px rgba(16, 37, 26, 0.12);
  --container: 1200px;
  --font-display: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { color: var(--muted); }

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

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head p { font-size: 1.0625rem; margin-top: 16px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: none; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-secondary { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.btn-secondary:hover { background: var(--brand-darker); color: #fff; border-color: var(--brand-darker); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.nav-bar {
  display: flex;
  align-items: center;
  /* the padding shorthand replaces .container's side padding, so restate it */
  padding: 12px 16px;
  gap: 10px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  margin-right: auto;
  min-width: 0;
}
.brand-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-wordmark {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
  /* keep raster crisp on hi-dpi screens */
  image-rendering: -webkit-optimize-contrast;
}
.brand-icon-fill { fill: var(--brand-leaf); }
.brand-icon-stroke { stroke: var(--brand-deep); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-mid);
  white-space: nowrap;
}
.footer-brand .brand-icon-stroke { stroke: #fff; }
.footer-brand .brand-icon-fill { fill: rgba(255, 255, 255, 0.12); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--brand-leaf); }

.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 18px;
  background: #fff;
  flex-direction: column;
  list-style: none;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 100;
  gap: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.nav-links.open { display: flex; }
.nav-links li { width: 100%; }
.nav-links a {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a.active { color: var(--brand-dark); font-weight: 600; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--bg-soft); }
.menu-toggle svg { width: 24px; height: 24px; }

.nav-spacer { width: 42px; height: 42px; flex-shrink: 0; }

/* Header search — bordered pill, reads as a control */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nav-search-btn:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); }
.nav-search-btn svg { width: 18px; height: 18px; }
.nav-search-bar {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-search-bar[hidden] { display: none; }
.nav-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--muted);
}
.nav-search-inner svg { flex-shrink: 0; }
.nav-search-inner input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.nav-search-inner input::placeholder { color: var(--muted); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 184, 46, 0.12), transparent 55%),
    radial-gradient(circle at 12% 85%, rgba(18, 44, 29, 0.05), transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}
.hero h1 .accent {
  position: relative;
  color: var(--brand-dark);
  font-style: normal;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 0.04em;
  height: 0.35em;
  background: var(--brand);
  opacity: 0.22;
  z-index: -1;
  border-radius: 4px;
}
.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.avatar-stack { display: flex; }
.avatar-stack img {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  object-fit: cover;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
}
.avatar-stack img:first-child { margin-left: 0; }

.hero-stat { font-weight: 600; color: var(--navy); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-left: auto;
}
.hero-visual .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-card-1 { top: 8%; left: -40px; }
.hero-card-2 { bottom: 10%; right: -32px; }
.hero-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
}
.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card-title { font-size: 0.875rem; color: var(--muted); }
.hero-card-value { font-weight: 700; color: var(--navy); font-size: 1.125rem; }

/* =========================================================
   Campaign cards
   ========================================================= */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.campaign-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.campaign-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.campaign-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.campaign-card:hover .campaign-media img { transform: scale(1.04); }

.campaign-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.campaign-heart svg { width: 17px; height: 17px; }

/* GoFundMe-style donations pill overlay (bottom-left of media) */
.campaign-donations-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(10, 25, 47, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.campaign-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 11px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  z-index: 2;
}

.campaign-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campaign-title {
  font-size: 1.0625rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-display);
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* By-line: avatar + "by X for Y" */
.campaign-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted, #64736a);
  font-weight: 500;
  line-height: 1.3;
}
.campaign-author-avatar {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf2ee;
  color: #1F2327;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
}
.campaign-author-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.campaign-amount-line {
  font-size: 0.9375rem;
  line-height: 1.3;
}
.campaign-amount-line strong {
  color: var(--ink);
  font-weight: 700;
}
.campaign-amount-line span {
  color: var(--muted);
  margin-left: 4px;
}

.progress-bar {
  height: 8px;
  background: #e8ede9;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-leaf) 0%, var(--brand-mid) 50%, var(--brand-darker) 100%);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.campaign-supporters {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.mini-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.mini-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border: 1.5px solid #fff;
  margin-left: -6px;
}
.mini-av:first-child { margin-left: 0; }

/* =========================================================
   How it works
   ========================================================= */
.how-it-works {
  background: var(--bg-warm);
  border-radius: 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.how-step {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid var(--line);
}
.how-step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.how-step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.how-step p { font-size: 0.9375rem; }

/* =========================================================
   About block
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.about-badge .big { font-size: 2.25rem; display: block; }
.about-badge .lbl { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.about-content h2 { margin-bottom: 20px; }
.about-content .lead { font-size: 1.0625rem; margin-bottom: 24px; }

.checklist { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
}
.checklist li svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  padding: 3px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  background: var(--brand-deep);
  color: #fff;
}
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: rgba(255, 255, 255, 0.75); }
.testimonials .eyebrow { color: var(--brand-leaf); }
.testimonials .eyebrow::before { background: var(--brand-leaf); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-quote {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
}
.testimonial-quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0;
  color: var(--brand-leaf);
  vertical-align: -0.25em;
  margin-right: 4px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 600; color: #fff; }
.testimonial-author .role { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }

/* =========================================================
   Prize banner
   ========================================================= */
.prize-banner {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-leaf) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.prize-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.prize-banner h2 { margin-bottom: 16px; color: #fff; }
.prize-banner p { color: rgba(255, 255, 255, 0.88); font-size: 1.0625rem; margin-bottom: 24px; }
.prize-amount {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  color: #fff;
  text-align: right;
  font-weight: 700;
}
.prize-amount small { font-size: 0.25em; letter-spacing: 0.12em; text-transform: uppercase; display: block; font-family: var(--font-body); font-weight: 600; margin-top: 8px; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final {
  text-align: center;
  padding: 100px 0;
  /* Matches .cd-related-wrap: a deep green section break (from the brand
     palette) that flows into the white footer below. */
  background:
    radial-gradient(circle at 70% 0%, rgba(4, 106, 54, 0.16), transparent 55%),
    var(--navy, #10251a);
  color: rgba(255, 255, 255, 0.86);
}
.cta-final h2 {
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff;
}
.cta-final p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.78);
}
.cta-final .eyebrow {
  color: var(--brand-leaf, #9bc8ad);
}
.cta-final .eyebrow::before {
  background: var(--brand-leaf, #9bc8ad);
}
.cta-final .hero-actions { justify-content: center; }
.cta-final .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-final .btn-outline:hover {
  background: #fff;
  color: var(--brand-deep, #10251a);
  border-color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  background: #fff;
  color: var(--ink, #10251a);
  padding: 56px 0 28px;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 0;
}
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-text { color: var(--ink); }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--ink-soft, #405247); }

.footer-col h4 {
  color: var(--ink, #10251a);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: grid; gap: 16px; }
.footer-col a {
  color: var(--ink, #10251a);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 140ms ease;
}
.footer-col a:hover { color: #000; text-decoration: underline; }

.newsletter-form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 999px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--navy);
  border: 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
}

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid; place-items: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--brand); color: var(--navy); }
.social-links svg { width: 18px; height: 18px; }

.footer-meta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-locale {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  margin-left: -9px;
  background: #fff;
  border: 1px solid #d0d8d2;
  border-radius: 999px;
  color: var(--ink, #10251a);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.footer-locale-btn:hover {
  background: #f6f8f6;
  border-color: #aab5ad;
}
.footer-locale-flag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.footer-locale-flag-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.footer-locale-sep {
  color: rgba(16, 37, 26, 0.4);
  margin: 0 2px;
  font-weight: 400;
}
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-socials a {
  color: var(--ink, #10251a);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  border: 0;
  transition: color 140ms ease, opacity 140ms ease;
}
.footer-socials a:hover {
  color: #000;
  opacity: 0.7;
}
.footer-socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* =========================================================
   Legal pages (Privacy, Terms, Cookies, Accessibility)
   Document-card layout: white sheet on a tinted section so
   long policy text reads like a clean, trustworthy document.
   ========================================================= */
.legal-section {
  padding: 48px 0 96px;
  background:
    radial-gradient(circle at 85% -10%, rgba(4, 106, 54, 0.10), transparent 45%),
    var(--bg-soft);
}
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 5vw, 56px);
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.legal-page > p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.7;
}
.legal-page .legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 7px 15px;
  background: var(--brand-soft);
  color: var(--brand-darker);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.legal-page .legal-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.legal-page p { margin-bottom: 16px; }
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-darker);
  margin: 38px 0 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  letter-spacing: -0.01em;
}
.legal-page h2:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
.legal-page ul {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.legal-page ul li {
  margin-bottom: 10px;
  list-style: disc;
  padding-left: 4px;
}
.legal-page ul li::marker { color: var(--brand); }
.legal-page strong { color: var(--ink); font-weight: 700; }
.legal-page a {
  color: var(--brand-darker);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--brand-dark); }
/* Closing "Contact us" block — the last paragraph reads as the org's
   address card, set off from the body copy. */
.legal-page h2:last-of-type + p {
  margin-top: 4px;
  padding: 18px 20px;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #dfe7e1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--ink-soft, #405247);
  text-align: center;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a {
  color: var(--ink, #10251a);
  font-weight: 500;
  transition: color 140ms ease;
}
.footer-bottom a:hover { color: #000; text-decoration: underline; }

/* =========================================================
   Forms / Inputs
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.15); }

select.form-control { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6b7c' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center #fff; padding-right: 40px; }

textarea.form-control { resize: vertical; min-height: 120px; font-family: var(--font-body); }

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(18, 44, 29, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 160ms ease;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  animation: slideUp 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h3 { font-size: 1.25rem; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 28px; }

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.amount-option {
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
  text-align: center;
}
.amount-option:hover { border-color: var(--brand); }
.amount-option.selected { background: var(--brand); border-color: var(--brand); color: var(--navy); }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1001;
  max-width: 380px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* =========================================================
   Utility
   ========================================================= */
.text-center { text-align: center; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 0%, #eee 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   Page header (for non-home pages)
   ========================================================= */
.page-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 184, 46, 0.12), transparent 55%),
    var(--bg-warm);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.0625rem; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--line); }

/* =========================================================
   Campaign listing page
   ========================================================= */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}
.filters-bar .search-input {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px 12px 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.9375rem;
  outline: none;
}
.filters-bar .search-input:focus { border-color: var(--brand); }

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state svg { width: 56px; height: 56px; margin-bottom: 20px; color: var(--line); }

/* =========================================================
   Campaign detail page (GoFundMe-inspired)
   ========================================================= */
.campaign-hero {
  padding: 28px 0 0;
  background: #fff;
}
.campaign-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
}
.campaign-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.campaign-breadcrumb a { color: var(--muted); }
.campaign-breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }

.campaign-title-top {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.campaign-hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}
.campaign-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.campaign-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.campaign-meta-row .pin {
  display: inline-flex; align-items: center; gap: 6px;
}

.donation-sidebar {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.donation-sidebar .raised {
  font-size: 1.75rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.donation-sidebar .goal-info {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.donation-sidebar .goal-info strong { color: var(--ink); font-weight: 600; }
.donation-sidebar .progress-bar {
  height: 6px;
  margin-bottom: 14px;
  background: var(--line-soft);
}
.donation-sidebar .progress-fill { background: var(--brand); }
.donation-sidebar .supporter-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.donation-sidebar .supporter-count strong { color: var(--ink); font-weight: 600; }

.donation-sidebar .sidebar-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.donation-sidebar .btn-donate {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  padding: 14px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
}
.donation-sidebar .btn-donate:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.donation-sidebar .btn-share {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 12px;
  border-radius: 28px;
  font-weight: 600;
}
.donation-sidebar .btn-share:hover { border-color: var(--ink); background: var(--bg-soft); }

.donation-sidebar .protection-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}
.donation-sidebar .protection-note svg { flex-shrink: 0; color: var(--brand); margin-top: 1px; }

.recent-donations {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.recent-donations h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.donation-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--line-soft);
}
.donation-item:first-of-type { border-top: 0; }
.donation-item .donor-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.donation-item .donor-info { flex: 1; min-width: 0; }
.donation-item .donor-name { color: var(--ink); font-weight: 600; }
.donation-item .donor-amount { color: var(--muted); font-size: 0.8125rem; }
.donation-item .top { font-size: 0.6875rem; color: var(--brand-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.see-all-link {
  display: block;
  text-align: center;
  padding: 12px 0 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.see-all-link:hover { color: var(--brand-dark); }

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.share-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--brand); color: var(--brand-dark); }

.campaign-content {
  padding: 32px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  max-width: 1100px;
  align-items: start;
}

.organizer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.organizer-row .organizer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.organizer-row .organizer-meta .name { font-size: 0.9375rem; color: var(--ink); font-weight: 600; }
.organizer-row .organizer-meta .sub { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

.campaign-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tab-btn {
  padding: 14px 18px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
  border-radius: 2px 2px 0 0;
}
.tab-btn.active, .tab-btn:hover { color: var(--ink); }
.tab-btn.active::after { background: var(--brand); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.story-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.story-content p { margin-bottom: 16px; color: var(--ink); }

.update-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.update-item:last-child { border-bottom: 0; }
.update-item .date { font-size: 0.8125rem; color: var(--muted); }
.update-item h4 { font-size: 1.0625rem; margin: 8px 0 10px; color: var(--ink); }

.organizer-card {
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.organizer-card h4 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.organizer-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.organizer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
}

/* =========================================================
   About page
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-align: center;
}
.value-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { margin-bottom: 12px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: center;
  padding-bottom: 24px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.team-card h4 { margin: 20px 16px 4px; font-size: 1.125rem; }
.team-card .role { color: var(--muted); font-size: 0.875rem; padding: 0 16px; }

.timeline { max-width: 720px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--brand-dark);
  font-weight: 700;
}
.timeline-content h4 { margin-bottom: 8px; }

/* =========================================================
   404
   ========================================================= */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0;
}
.not-found h1 { margin-bottom: 16px; }
.not-found p { margin-bottom: 28px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* =========================================================
   Donate page
   ========================================================= */
.donate-page { padding: 32px 0 64px; background: var(--bg-soft); min-height: 70vh; }
.donate-grid {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}

/* Single column: campaign image + "You're supporting" on top, then the
   amount chooser, then the protection note. */
.donate-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.donate-form-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Donation chooser — flat, white, in line with the rest of the site. */
.donate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.donate-card-head {
  padding: 18px 20px 0;
}
.donate-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}
.donate-card-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.donate-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* One-time / Monthly toggle pill */
.donate-frequency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f5f3;
  border-radius: 999px;
  padding: 4px;
}
.freq-btn {
  border: none;
  background: transparent;
  padding: 11px 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted, #64736a);
  cursor: pointer;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.freq-btn.active {
  background: #fff;
  color: var(--ink, #10251a);
  box-shadow: 0 1px 2px rgba(16, 37, 26, 0.08), 0 4px 12px rgba(16, 37, 26, 0.06);
}

/* 3-col grid of amount buttons */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.amount-btn {
  position: relative;
  /* Fixed height so every amount button is identical regardless of
     whether it has the SUGGESTED badge or not — the badge floats just
     below the button (absolute) instead of stretching the cell. */
  height: 56px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #d8e1da;
  border-radius: 16px;
  color: var(--ink, #10251a);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(16, 37, 26, 0.04);
}
.amount-btn:hover {
  border-color: var(--brand);
}
.amount-btn.selected {
  /* Same look as the Donate button: leaf-green fill + deep-green label,
     so a selected card doesn't out-shout the checkout CTA. */
  border-color: var(--brand-leaf);
  background: var(--brand-leaf);
  color: var(--brand-deep);
  box-shadow: 0 1px 2px rgba(3, 75, 39, 0.12);
}
/* The suggested card is in the top row; its badge tucks into the gap below it
   (toward the row beneath), so widen the row-gap to make room. */
.amount-grid:has(.amount-btn.has-badge) {
  row-gap: 12px;
}
.amount-badge {
  position: absolute;
  left: 50%;
  /* Badge hangs just below the suggested card, tucked into the row-gap. */
  bottom: -9px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  /* Soft pale-green pill + deep-green text so the red heart reads as a clean
     accent (a vivid leaf-green fill would clash with the red). */
  background: var(--brand-soft, #e7f3eb);
  color: var(--brand-deep, #10251a);
  border: 1px solid var(--brand-leaf-soft, #cfe8d8);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}
.amount-badge svg {
  width: 10px;
  height: 10px;
  color: var(--brand-deep, #10251a);
}
.amount-badge-emoji {
  font-size: 0.95em;
  line-height: 1;
}

.donate-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.donate-back:hover { color: var(--brand-dark); }

.donate-heading {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.donate-section {
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.donate-section:first-of-type { border-top: 0; padding-top: 0; }

.donate-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.donate-helper {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.preset-btn {
  padding: 14px 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-body);
}
.preset-btn:hover { border-color: var(--brand); }
.preset-btn.selected {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-darker);
}

.custom-amount-wrap {
  /* The form is a flex column with a 20px gap; pull the custom field up
     so it sits right under the preset grid (≈8px, like the card rows). */
  margin-top: -12px;
}
.custom-amount-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  /* Same border treatment as the preset amount cards. */
  border: 1px solid #d8e1da;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 37, 26, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* "$" stacked over "USD", like the reference. */
.custom-amount-cur {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.custom-amount-cur .cur-sym {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy, #10251a);
}
.custom-amount-cur .cur-code {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1px;
}
.custom-amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
}
.custom-amount-input::placeholder { color: #b8c2bb; font-weight: 800; }
.custom-amount-error {
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 8px 2px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin-top: 1px;
  flex-shrink: 0;
}

.payment-methods {
  display: grid;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: #fff;
}
.payment-option:hover { border-color: var(--brand); }
.payment-option.selected {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.payment-option input[type="radio"] { display: none; }
.payment-option .radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition);
}
.payment-option.selected .radio-dot { border-color: var(--brand); }
.payment-option.selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--brand);
  border-radius: 50%;
}
.payment-option .payment-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
  flex: 1;
}
.payment-icons { display: flex; gap: 6px; }
.card-chip {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-fields {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.card-fields .form-group { margin-bottom: 12px; }
.card-fields .form-group:last-child { margin-bottom: 0; }

.donate-summary {
  margin-top: 24px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.summary-row strong { color: var(--ink); font-weight: 600; }
.summary-row.total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  font-size: 1rem;
}
.summary-row.total strong { font-size: 1.125rem; font-weight: 700; color: var(--ink); }

.donate-submit {
  position: relative;
  margin-top: 22px;
  /* Primary conversion action: use the exact green from the logo. */
  background: var(--brand);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.donate-submit:hover { background: var(--brand-dark); color: #fff; }
.donate-submit:active { transform: scale(0.98); }
.donate-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Form is a flex column with a 20px gap; pull this up close to the button. */
  margin-top: -12px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
.security-row svg { color: var(--muted); flex-shrink: 0; }

/* Loading: hide the label and show a centered spinner while the Stripe
   Checkout Session is being created and we redirect. */
.donate-submit.is-loading {
  color: transparent;
  pointer-events: none;
  opacity: 1;
}
.donate-submit.is-loading > * { visibility: hidden; }
.donate-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: donate-spin 0.6s linear infinite;
}
@keyframes donate-spin { to { transform: rotate(360deg); } }

.donate-legal {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.donate-legal a { color: var(--ink); text-decoration: underline; }
.donate-legal a:hover { color: var(--brand-dark); }

/* Recap sidebar */
.donate-recap {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}
.recap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.recap-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.recap-media img { width: 100%; height: 100%; object-fit: cover; }
.recap-body { padding: 18px; }
.recap-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.recap-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.recap-organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.recap-organizer .organizer-avatar {
  width: 36px; height: 36px;
  font-size: 0.875rem;
}
.recap-name { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.recap-sub { font-size: 0.75rem; color: var(--muted); }

.recap-progress .progress-bar {
  margin-bottom: 10px;
}
.recap-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink);
}
.recap-stats .muted { color: var(--muted); }

.protection-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-md);
}
.protection-icon {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}
.protection-card h4 {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.protection-card p {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trust-list {
  list-style: none;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-list li svg { flex-shrink: 0; color: var(--brand); }

/* Thanks overlay */
.thanks-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 37, 26, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 180ms ease;
}
.thanks-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: slideUp 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.thanks-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.thanks-icon svg { width: 34px; height: 34px; }
.thanks-card h2 { font-size: 1.375rem; margin-bottom: 10px; }
.thanks-card p { color: var(--ink-soft); margin-bottom: 8px; }
.thanks-card .receipt { font-size: 0.875rem; }
.thanks-card .receipt code {
  font-family: ui-monospace, monospace;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--ink);
}
.thanks-card .muted { color: var(--muted); font-size: 0.8125rem; margin-bottom: 22px; }
.thanks-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Campaign detail page (cd-*)
   ========================================================= */
.page-campaign-detail { background: #f3f7f4; }

.cd-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px 0;
}

/* Deep green section behind the related campaigns (brand palette).
   Full-bleed background; the inner section is constrained via .cd-related-section. */
.cd-related-wrap {
  background: var(--navy, #10251a);
  padding: 40px 16px 56px;
  margin-top: 24px;
}
.cd-related-wrap .cd-related-section {
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}
.cd-related-wrap .cd-related-title { color: #fff; }
/* Cards inside the dark section drop their white chrome — image + white text */
.cd-related-wrap .campaign-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  overflow: visible;
}
.cd-related-wrap .campaign-card:hover { box-shadow: none; transform: none; }
.cd-related-wrap .campaign-media { border-radius: 12px; overflow: hidden; }
.cd-related-wrap .campaign-body {
  padding: 14px 0 0;
}
.cd-related-wrap .campaign-title { color: #fff; }
.cd-related-wrap .campaign-author { color: rgba(255, 255, 255, 0.65); }
.cd-related-wrap .campaign-author-avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cd-related-wrap .campaign-amount-line strong { color: #fff; }
.cd-related-wrap .progress-bar {
  background: rgba(255, 255, 255, 0.16);
  height: 6px;
}
.cd-related-wrap .campaign-heart { display: none; }

.cd-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  /* No box-shadow on mobile so this card flows seamlessly into the
     sidebar card directly below it (one continuous white surface). The
     desktop media query in responsive.css adds the shadow back when the
     two become separate columns. */
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: 16px;
}

.cd-skel { padding: 14px; }

.cd-hero {
  position: relative;
  /* Aspect ratio follows the first photo (set by JS, clamped to a sane
     range). 4:3 fallback while loading. */
  aspect-ratio: var(--cd-hero-aspect, 4 / 3);
  max-height: 75vh;
  /* Neutral backdrop: with object-fit cover the photo always fills the
     frame, so no letterbox bars ever show. */
  background: var(--bg-soft);
  overflow: hidden;
}
.cd-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.cd-hero-track::-webkit-scrollbar { display: none; }
.cd-hero-multi .cd-hero-track {
  cursor: grab;
}
.cd-hero-multi .cd-hero-track:active { cursor: grabbing; }
.cd-hero-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}
.cd-hero-slide img {
  width: 100%;
  height: 100%;
  /* cover, not contain: fill the frame and crop the overflow — a portrait
     photo in a wide frame must never letterbox with side bars. */
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* Removed the heavy darkening overlay — the title now lives below the
   photo (not on top of it) so the image doesn't need to be tinted to
   make the white text readable. Kept the class so any leftover element
   doesn't break layout, but it's a no-op. */
.cd-hero-shade { display: none; }
.cd-author-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 3px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  max-width: calc(100% - 24px);
}
.cd-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.cd-author-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px 14px;
  text-align: center;
}
.cd-hero-title {
  margin: 0;
  padding: 18px 20px 1px;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-wrap: break-word;
}
.cd-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.cd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, width 180ms ease;
}
.cd-dot:hover { background: rgba(255, 255, 255, 0.75); }
.cd-dot.active { background: #fff; width: 18px; border-radius: 999px; }

.cd-stats {
  padding: 18px 20px 20px;
}
.cd-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cd-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.cd-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.cd-ring-track {
  fill: none;
  stroke: #dfe7e1;
  stroke-width: 3;
}
.cd-ring-arc {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.cd-ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
.cd-stats-amounts { line-height: 1.2; }
.cd-raised {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.cd-goal {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 2px;
}
.cd-goal strong { color: var(--ink); font-weight: 600; }

.cd-donor-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-darker);
  text-decoration: none;
}
.cd-donor-link:hover { color: var(--brand-deep); }

.cd-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
  position: relative; /* anchor for the share popover */
}

/* Share menu (desktop) */
.cd-share-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: cd-share-in 0.12s ease;
}
@keyframes cd-share-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cd-share-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.cd-share-opt:hover { background: var(--bg-soft); color: var(--brand); }
.cd-share-opt svg { flex-shrink: 0; color: var(--brand); }
.cd-share-opt:hover svg { color: var(--brand); }
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.cd-btn:active { transform: scale(0.98); }
.cd-btn-donate {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.cd-btn-donate:hover { background: var(--brand-dark); color: #fff; }
.cd-btn-share {
  background: var(--bg-soft);
  color: var(--ink-soft);
  width: 50px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.cd-btn-share:hover { background: #e7ece8; color: var(--ink); border-color: #b8c2bb; }
.cd-btn-donate:focus-visible,
.cd-floating-btn:focus-visible,
.donate-submit:focus-visible {
  outline: 3px solid rgba(4, 106, 54, 0.28);
  outline-offset: 3px;
}
.cd-btn-share svg { width: 18px; height: 18px; }
.cd-btn-share span { display: none; }

/* Stacked raised line "$X / of $Y" */
.cd-raised-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.cd-raised-amt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.cd-raised-suffix {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}
@media (min-width: 720px) {
  .cd-raised-amt { font-size: 1.75rem; }
  .cd-raised-suffix { font-size: 0.875rem; }
}

/* Donor highlight lines (subtle dark, replaces the bright purple link) */
.cd-donor-lines {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cd-donor-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
}
.cd-donor-line:hover { color: var(--ink-soft); }
.cd-donor-line svg { color: var(--muted); }

/* Story collapse + read more */
.cd-story-body { position: relative; }
.cd-story-body.collapsed {
  max-height: 280px;
  overflow: hidden;
}
.cd-story-body.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 80%);
  pointer-events: none;
}
.cd-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.cd-read-more:hover { color: var(--brand-darker); }

/* Donations head + count badge + see top */
.cd-donations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cd-donations-head .cd-block-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}
.cd-count-badge {
  background: #e7ece8;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.cd-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.cd-pill-btn:hover { background: var(--bg-soft); }
.cd-pill-btn svg { width: 14px; height: 14px; }

/* Recent donations highlight row */
.cd-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-darker);
}
.cd-recent-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-darker);
  flex-shrink: 0;
}
.cd-recent-row strong { font-weight: 700; }

/* See all donor list button */
.cd-see-all-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.cd-see-all-btn:hover { background: var(--bg-soft); }

/* Plain block title (used on Organizer) — boosted specificity so it
   actually overrides .cd-block-title which is defined later in the file. */
.cd-block-title.cd-block-title-plain {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

/* Organizer */
.cd-organizer-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  margin-top: 10px;
}
.cd-organizer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7ece8;
  color: #1F2327;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.cd-organizer-name { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cd-organizer-role { font-size: 0.875rem; color: var(--ink-soft); margin-top: 3px; }
.cd-organizer-loc { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.cd-contact-btn {
  display: inline-block;
  width: auto;
  padding: 10px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.cd-contact-btn:hover { background: var(--bg-soft); }

/* Meta strip */
.cd-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.cd-meta-strip .cd-sep { color: var(--muted); opacity: 0.6; }
.cd-meta-strip > span:not(.cd-protected-chip) { font-weight: 500; }
.cd-meta-strip a, .cd-meta-strip span:not(.cd-sep):not(.cd-protected-chip) {
  color: var(--ink-soft);
  text-decoration: underline;
}
.cd-meta-strip > span:first-child {
  text-decoration: none;
  color: var(--muted);
}
.cd-protected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--brand-darker);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none !important;
}
.cd-protected-chip svg { width: 14px; height: 14px; }

.cd-section {
  background: #fff;
  border-radius: 0;
  padding: 22px;
  margin: 0 -16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 37, 26, 0.04), 0 6px 18px rgba(16, 37, 26, 0.06);
}
.cd-story-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 400;
}
.cd-story-body p:last-child { margin-bottom: 0; }

.cd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.cd-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cd-meta-row svg { width: 16px; height: 16px; }

.cd-block-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
}
.cd-update {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cd-update:first-of-type { border-top: none; padding-top: 0; }
.cd-update-date { font-size: 0.8125rem; color: var(--muted); margin-bottom: 4px; }
.cd-update h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cd-update p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; }

.cd-donor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.cd-donor-row:first-of-type { border-top: none; }
.cd-donor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf2ee;
  color: #1F2327;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.cd-donor-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.cd-donor-amount { font-size: 0.8125rem; color: var(--muted); }

.cd-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cd-related-section { padding: 22px; }
.cd-related-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.cd-related-grid {
  display: grid;
  gap: 14px;
  /* minmax(0, 1fr) so cards can shrink even with nowrap text inside */
  grid-template-columns: minmax(0, 1fr);
}
.cd-related-grid > * { min-width: 0; }
.cd-related-grid .campaign-card {
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

/* Large phones / small tablets / landscape (600–767px): still one column,
   but lift the stacked cards off the screen edges so they read as one
   centered, rounded surface instead of a full-bleed strip marooned in the
   middle of the viewport. Two-column takes over at 768px (responsive.css). */
@media (min-width: 600px) and (max-width: 767px) {
  .cd-shell { max-width: 600px; padding: 24px 20px 56px; }
  .cd-hero-title { font-size: 1.625rem; }
  .cd-raised { font-size: 1.875rem; }

  .cd-card {
    margin: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 1px 2px rgba(16, 37, 26, 0.04), 0 6px 18px rgba(16, 37, 26, 0.06);
  }
  .cd-sidebar { margin: 0; }
  .cd-sidebar-card {
    border-radius: 0 0 18px 18px;
    box-shadow: 0 1px 2px rgba(16, 37, 26, 0.04), 0 6px 18px rgba(16, 37, 26, 0.06);
  }
  .cd-section { margin: 0 0 16px; border-radius: 18px; }
  .cd-donations { margin: 0 0 16px; }
  .cd-donations-card { border-radius: 18px; }
  .cd-related-wrap .cd-related-section { max-width: 600px; }
}

/* =========================================================
   Words of support
   ========================================================= */
.cd-words-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cd-words-head .cd-block-title { margin: 0; }
.cd-words-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--bg-soft, #edf2ee);
  color: var(--ink, #10251a);
  font-size: 0.875rem;
  font-weight: 600;
}
.cd-words-sub {
  margin: 8px 0 18px;
  font-size: 0.9375rem;
  color: var(--muted, #64736a);
}
.cd-words-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cd-words-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cd-words-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf2ee;
  color: #1F2327;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  overflow: hidden;
}
.cd-words-avatar-img { background: transparent; padding: 0; }
.cd-words-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.cd-words-body { flex: 1; min-width: 0; }
.cd-words-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink, #10251a);
  letter-spacing: 0.01em;
}
.cd-words-meta {
  font-size: 0.8125rem;
  color: var(--muted, #64736a);
  margin: 2px 0 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
}
.cd-words-meta .cd-sep { color: var(--line, #c8d0ca); }
.cd-words-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft, #223128);
}

/* =========================================================
   Floating donate popup (mobile only)
   Appears at the bottom of the viewport when the main Doar
   button scrolls out of view. Hidden from 768px up, where the
   sticky sidebar carries its own Doar button.
   ========================================================= */
.cd-floating-donate {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.cd-floating-donate[hidden] { display: none; }
.cd-floating-donate.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cd-floating-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-floating-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cd-floating-stats .cd-ring {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.cd-floating-stats .cd-ring-pct { font-size: 0.75rem; font-weight: 700; }
.cd-floating-amounts {
  flex: 1;
  min-width: 0;
}
.cd-floating-raised {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.35;
}
.cd-floating-raised strong {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.0625rem;
}
.cd-floating-of {
  display: inline;
  color: var(--ink-soft, #64736a);
}
.cd-floating-goal {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
}
.cd-floating-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.cd-floating-btn:hover { background: var(--brand-dark); color: #fff; }
.cd-floating-btn:active { transform: scale(0.98); }

/* Hidden from 768px up: the sticky sidebar (which carries its own Doar
   button) takes over at the same width the two-column layout begins. */
@media (min-width: 768px) {
  .cd-floating-donate { display: none !important; }
}

/* =========================================================
   Home 2.0 — sol-* editorial redesign (home page only)
   GoFundMe/Kickstarter-inspired: serif display type, photo
   collage hero, category rail, featured hero + compact list,
   live impact band, 3-step how, testimonials.
   ========================================================= */
:root {
  /* GGF look: rounded geometric sans everywhere — the old serif display face
     is retired but the variable stays so every rule keeps working. */
  --font-serif: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- shared atoms ---------- */
.btn-xl { padding: 16px 30px; font-size: 1.0625rem; }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-soft); }
.btn-soft:hover { background: #cfe8d8; border-color: #cfe8d8; color: var(--brand-deep); }

.sol-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.14;
}

.sol-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.sol-section-head .eyebrow { margin-bottom: 10px; }

.sol-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand-dark);
  white-space: nowrap;
}
.sol-link-arrow svg { transition: transform var(--transition); }
.sol-link-arrow:hover svg { transform: translateX(3px); }
.sol-link-arrow-light { color: var(--brand-leaf); }
.sol-link-arrow-light:hover { color: #75b48f; }

.sol-pct-chip {
  background: var(--brand-soft);
  color: var(--brand-darker);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}


/* ---------- final CTA (serif title on the shared .cta-final) ---------- */
.sol-cta-title { font-family: var(--font-serif); font-weight: 600; }

/* ---------- header donate CTA (always visible, compact on mobile) ---------- */
.nav-donate {
  padding: 9px 15px;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
@media (min-width: 880px) {
  .nav-donate { margin-left: 6px; padding: 10px 20px; font-size: 0.9375rem; }
}


/* =========================================================
   Foundation home — fh-* (institutional redesign)
   Mission-first nonprofit layout: hero, mission band, four
   pillars, field projects (progress = project status, no
   fundraising copy), approach, non-monetary impact, story.
   ========================================================= */

/* ---------- hero ---------- */
.fh-hero {
  padding: 76px 0 88px;
  background:
    radial-gradient(ellipse at 85% 8%, rgba(4, 106, 54, 0.14), transparent 52%),
    radial-gradient(ellipse at 0% 100%, rgba(4, 106, 54, 0.07), transparent 50%),
    var(--bg);
  overflow: hidden;
}
.fh-hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}
.fh-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 18px 0 20px;
}
.fh-hero-title span,
.fh-hero-em { display: block; }
.fh-hero-em { font-style: italic; color: var(--brand-darker); }
.fh-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 30px;
}
.fh-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.fh-hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.fh-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.fh-hero-trust svg { color: var(--brand); flex-shrink: 0; }

.fh-hero-visual { position: relative; min-height: 540px; }
.fh-hero-photo { margin: 0; border-radius: 26px; overflow: hidden; }
.fh-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fh-hero-photo-main {
  position: relative;
  width: 78%;
  margin-left: auto;
  aspect-ratio: 6 / 7;
  z-index: 2;
  box-shadow:
    0 30px 60px -22px rgba(3, 75, 39, 0.30),
    0 16px 32px -14px rgba(16, 37, 26, 0.16);
}
.fh-hero-photo-alt {
  position: absolute;
  left: 0;
  top: 10%;
  width: 42%;
  aspect-ratio: 5 / 6;
  z-index: 1;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px -16px rgba(16, 37, 26, 0.22);
}
.fh-hero-card {
  position: absolute;
  left: 6%;
  bottom: 6%;
  z-index: 3;
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 18px 44px -14px rgba(16, 37, 26, 0.25);
  max-width: 230px;
}
.fh-hero-card-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-darker);
  margin-bottom: 6px;
}
.fh-hero-card-label {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- mission band ---------- */
.fh-mission { padding: 84px 0; background: var(--brand-tint); text-align: center; }
.fh-mission .eyebrow { justify-content: center; }
.fh-mission-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--navy);
  margin: 8px 0 26px;
}
.fh-mission .sol-link-arrow { justify-content: center; }

/* ---------- pillars ---------- */
.fh-pillars { padding: 88px 0 92px; }
.fh-pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fh-pillar {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.fh-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.fh-pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms ease; }
.fh-pillar:hover img { transform: scale(1.045); }
.fh-pillar-body { padding: 18px 20px 22px; }
.fh-pillar-body h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.fh-pillar-body p { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

/* ---------- projects on the ground ---------- */
.fh-projects { padding: 88px 0; background: var(--bg-soft); }
.fh-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fh-project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.fh-project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.fh-project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.fh-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.fh-project:hover .fh-project-media img { transform: scale(1.045); }
.fh-project-loc {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.fh-project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fh-project-cat {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-darker);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.fh-project-body h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.fh-project-body p {
  font-size: 0.9063rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.fh-project-progress { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.progress-bar-thin { height: 6px; }
.fh-project-pct { font-size: 0.8125rem; font-weight: 600; color: var(--brand-darker); }
.fh-skel-card { aspect-ratio: 4 / 5; border-radius: 20px; }
.fh-projects-cta { display: none; text-align: center; margin-top: 34px; }

/* ---------- approach ---------- */
.fh-approach { padding: 92px 0; }
.fh-approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.fh-approach-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 5.4;
  box-shadow: 0 24px 48px -18px rgba(16, 37, 26, 0.18);
}
.fh-approach-photo img { width: 100%; height: 100%; object-fit: cover; }
.fh-values { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.fh-values li { display: flex; gap: 16px; align-items: flex-start; }
.fh-value-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.fh-values h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.fh-values p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

/* ---------- impact (dark, non-monetary) ---------- */
.fh-impact {
  padding: 92px 0;
  background:
    radial-gradient(circle at 70% 0%, rgba(4, 106, 54, 0.10), transparent 55%),
    #10251a;
  color: rgba(255, 255, 255, 0.86);
}
.fh-impact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.fh-impact-copy .eyebrow { color: var(--brand-leaf); }
.fh-impact-copy .eyebrow::before { background: var(--brand-leaf); }
.fh-impact-copy h2 { color: #fff; }
.fh-impact-copy p { color: rgba(255, 255, 255, 0.72); font-size: 1.0625rem; line-height: 1.65; margin: 14px 0 22px; }
.fh-impact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fh-impact-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px 24px;
}
.fh-impact-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brand-leaf);
  margin-bottom: 8px;
}
.fh-impact-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- story ---------- */
.fh-story { padding: 92px 0; }
.fh-story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.fh-story-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.fh-story-photo img { width: 100%; height: 100%; object-fit: cover; }
.fh-story-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--navy);
  margin: 10px 0 22px;
}
.fh-story-quote::before { content: "\201C"; color: var(--brand); }
.fh-story-quote::after { content: "\201D"; color: var(--brand); }
.fh-story-name { display: block; font-weight: 700; }
.fh-story-role { display: block; font-size: 0.875rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .fh-hero-grid { gap: 44px; }
  .fh-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .fh-hero { padding: 40px 0 56px; }
  .fh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .fh-hero-actions .btn { flex: 1; min-width: 0; padding: 14px 18px; font-size: 1rem; }
  .fh-hero-trust { flex-direction: column; gap: 10px; }
  .fh-hero-visual { min-height: 0; padding-bottom: 14px; }
  .fh-hero-photo-main { width: 100%; aspect-ratio: 16 / 11; }
  .fh-hero-photo-alt { display: none; }
  .fh-hero-card { left: 14px; bottom: -6px; padding: 14px 16px; }
  .fh-mission { padding: 60px 0; }
  .fh-pillars { padding: 60px 0; }
  .fh-pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fh-pillar-body { padding: 14px 16px 18px; }
  .fh-projects { padding: 60px 0 64px; }
  .fh-projects-grid { grid-template-columns: 1fr; gap: 18px; }
  .sol-section-head .sol-link-arrow { display: none; }
  .fh-projects-cta { display: block; }
  .fh-approach { padding: 64px 0; }
  .fh-approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .fh-approach-photo { max-width: 520px; }
  .fh-impact { padding: 64px 0; }
  .fh-impact-grid { grid-template-columns: 1fr; gap: 36px; }
  .fh-impact-stats { gap: 12px; }
  .fh-impact-stat { padding: 20px 18px; }
  .fh-story { padding: 64px 0; }
  .fh-story-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .fh-pillars-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .fh-hero { padding: 92px 0 104px; }
}

/* ---------- overline chip (used by the hero) ---------- */
.sol-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-darker);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sol-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ---------- donate card: pre-purchase policy links (Stripe compliance) ---------- */
.donate-legal {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.donate-legal a { color: var(--brand-dark); text-decoration: underline; }
.donate-legal a:hover { color: var(--brand-darker); }

/* =========================================================
   GGF skin — GoGetFunding-style header, footer & home
   (structure modeled on gogetfunding.com; content is ours)
   ========================================================= */

/* ---- Buttons: rounded rectangles instead of pills ---- */
.btn { border-radius: 8px; }

/* ---- Header ---- */
.site-header {
  background: #fff;
  backdrop-filter: none;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
.site-header .nav-donate { padding: 11px 24px; }

@media (min-width: 880px) {
  .site-header .nav-bar { padding: 15px 0; gap: 22px; }
  /* GGF layout: logo, then nav right beside it, actions pushed right */
  .site-header .brand { margin-right: 6px; }
  .site-header .nav-links { margin-right: auto; gap: 4px; }
  .site-header .nav-links a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9688rem;
    padding: 10px 14px;
  }
  .site-header .nav-links a:hover { color: var(--brand); background: transparent; }
  .site-header .nav-links a.active { color: var(--brand); background: transparent; }
  .site-header .nav-search-btn { border: 0; background: transparent; color: var(--ink-soft); }
  .site-header .nav-search-btn:hover { color: var(--brand); background: var(--brand-tint); }
}
@media (max-width: 879px) {
  .brand-logo { height: 34px; }
  /* Mobile header (GGF style): hamburger left, logo dead-center, search
     right — and no Doar button up top (donating happens on the pages). */
  .site-header .nav-donate { display: none; }
  .site-header .nav-bar { justify-content: space-between; }
  .site-header .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

/* ---- Footer (GGF: brand column + link columns + bottom bar) ---- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 28px;
}
.footer-logo { display: block; height: 44px; width: auto; }
.footer-address {
  margin-top: 18px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.site-footer .footer-col h4 {
  color: #718078;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.site-footer .footer-col ul { gap: 18px; }
.site-footer .footer-col a { color: var(--ink-soft); font-weight: 500; }
.site-footer .footer-col a:hover { color: var(--brand); text-decoration: none; }
.ggf-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.875rem;
}
.ggf-footer-bottom a { color: var(--ink-soft); }
.ggf-footer-bottom a:hover { color: var(--brand); }
@media (min-width: 880px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}

/* ---- Hero (soft green, centered, photo strip at the bottom) ---- */
.ggf-hero {
  background: var(--brand-soft);
  text-align: center;
  padding: 66px 0 0;
  overflow: hidden;
}
.ggf-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 4.6vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 820px;
  margin: 22px auto 0;
}
.ggf-hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 660px;
  margin: 18px auto 0;
}
.ggf-hero-cta { margin-top: 30px; }
.ggf-hero-btn {
  padding: 17px 36px;
  font-size: 1.0625rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(4, 106, 54, 0.35);
}
.ggf-hero-strip {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ggf-hero-strip img {
  width: 100%;
  height: clamp(150px, 24vw, 330px);
  object-fit: cover;
  display: block;
}

/* ---- Numbered steps (GGF "How to Start" pattern) ---- */
.ggf-steps { padding: 92px 0 84px; background: #fff; }
.ggf-steps .sol-title { text-align: center; }
.ggf-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
  position: relative;
}
.ggf-steps-grid::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: var(--brand-leaf-soft);
}
.ggf-step { position: relative; }
.ggf-step-num {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--brand-leaf-soft);
  margin-bottom: 26px;
}
.ggf-step h3 {
  font-size: 1.1875rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.ggf-step p { color: var(--muted); font-size: 0.9688rem; line-height: 1.7; }

/* ---- What we do (white cards, green icon circles) ---- */
.ggf-pillars { padding: 84px 0; background: var(--bg-soft); }
.ggf-pillars .section-head { margin-bottom: 48px; }
.ggf-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ggf-pillar {
  background: #fff;
  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ggf-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.ggf-pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.ggf-pillar h3 { font-size: 1.0938rem; color: var(--navy); margin-bottom: 8px; }
.ggf-pillar p { color: var(--muted); font-size: 0.9063rem; line-height: 1.65; }

/* ---- Projects + category tabs (GGF "Recently Successful" pattern) ---- */
.ggf-projects { padding: 88px 0; background: #fff; }
.ggf-projects .sol-title { text-align: center; }
.ggf-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0 40px;
}
.ggf-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9063rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.ggf-tab:hover { border-color: var(--brand); color: var(--brand); }
.ggf-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.ggf-projects .fh-projects-grid { grid-template-columns: repeat(3, 1fr); }
.ggf-projects-cta { text-align: center; margin-top: 46px; }

/* ---- FAQ (two-column accordion cards) ---- */
.ggf-faq { padding: 88px 0; background: var(--bg-soft); }
.ggf-faq .sol-title { text-align: center; margin-bottom: 48px; }
.ggf-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.ggf-faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.ggf-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0313rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.ggf-faq-q svg {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 200ms ease;
}
.ggf-faq-item.open .ggf-faq-q svg { transform: rotate(180deg); }
.ggf-faq-a {
  display: none;
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.ggf-faq-item.open .ggf-faq-a { display: block; }

/* ---- Commitments strip (GGF "Featured in" pattern) ---- */
.ggf-commit { padding: 80px 0; background: #fff; }
.ggf-commit-box {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  flex-wrap: wrap;
}
.ggf-commit-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}
.ggf-commit-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
}
.ggf-commit-item svg { color: var(--brand); flex-shrink: 0; }

/* ---- Campaign detail: title lives in the sidebar box, above the % ring ---- */
.cd-side-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 18px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ggf-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .ggf-projects .fh-projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ggf-steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .ggf-steps-grid::before { display: none; }
  .ggf-step-num { margin-bottom: 18px; }
  .ggf-faq-grid { grid-template-columns: 1fr; }
  .ggf-projects .fh-projects-grid { grid-template-columns: 1fr; }
  .ggf-commit-label {
    border-right: 0;
    padding-right: 0;
    width: 100%;
    text-align: center;
  }
  .ggf-commit-box { flex-direction: column; gap: 16px; }
}
@media (max-width: 560px) {
  .ggf-pillars-grid { grid-template-columns: 1fr; }
}
/* =========================================================
   Source of Hope home — campaign-detail visual system
   Uses only colors derived from the logo plus neutral surfaces.
   ========================================================= */
body.hope-home {
  --font-display: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hope-green: #046a36;
  --hope-green-dark: #035c2f;
  --hope-green-deep: #024924;
  --hope-navy: #10251a;
  --hope-navy-soft: #405247;
  --hope-green-mid: #2b8052;
  --hope-green-pale: #9bc8ad;
  --hope-green-soft: #e7f3eb;
  --hope-green-tint: #f3f8f5;
  --hope-bg: #f3f7f4;
  --hope-card: #ffffff;
  --hope-line: #dce6df;
  --hope-line-soft: #edf2ee;
  --hope-muted: #718078;
  --hope-shadow: 0 1px 2px rgba(16, 37, 26, 0.04), 0 10px 32px rgba(16, 37, 26, 0.10);
  background: var(--hope-bg);
  color: var(--hope-navy);
  font-family: var(--font-body);
}

.hope-home h1,
.hope-home h2,
.hope-home h3,
.hope-home h4 { font-family: var(--font-display); color: var(--hope-navy); }
.hope-home p { color: var(--hope-muted); }
.hope-home main { overflow: hidden; }
.hope-home .container { max-width: 1200px; }
.hope-home .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--hope-line-soft);
  backdrop-filter: blur(12px);
}
.hope-home .site-header.scrolled { background: #fff; border-bottom-color: var(--hope-line); }
.hope-home .site-header .nav-donate {
  background: var(--hope-green);
  border-color: var(--hope-green);
  color: #fff;
  border-radius: 8px;
  box-shadow: none;
}
.hope-home .site-header .nav-donate:hover { background: var(--hope-green-dark); border-color: var(--hope-green-dark); }

.hope-section-no { display: none; }
.hope-kicker,
.hope-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--hope-green-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hope-kicker-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hope-green);
  box-shadow: 0 0 0 5px var(--hope-green-soft);
}
.hope-eyebrow-light { color: var(--hope-green-pale); }

.hope-btn {
  min-height: 50px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.hope-btn-primary { background: var(--hope-green); border-color: var(--hope-green); color: #fff; }
.hope-btn-primary:hover { background: var(--hope-green-dark); border-color: var(--hope-green-dark); color: #fff; }
.hope-btn-dark { background: var(--hope-navy); border-color: var(--hope-navy); color: #fff; }
.hope-btn-dark:hover { background: var(--hope-green-deep); border-color: var(--hope-green-deep); color: #fff; }
.hope-text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--hope-green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.hope-text-link::after { content: "›"; margin-left: 5px; font-size: 1.25rem; line-height: 1; }
.hope-text-link:hover { color: var(--hope-navy); }
.hope-text-link-dark { color: var(--hope-navy); }

/* Hero: same white card, radius and shadow language as .cd-card. */
.hope-hero { padding: 40px 0 16px; background: transparent; }
.hope-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 38px;
  align-items: center;
  padding: 28px;
  background: var(--hope-card);
  border-radius: 18px;
  box-shadow: var(--hope-shadow);
}
.hope-hero-copy { padding: 14px 6px 10px; }
.hope-hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hope-hero h1 span,
.hope-hero h1 em { display: block; }
.hope-hero h1 em { margin: 0; color: var(--hope-green-deep); font-style: normal; }
.hope-hero-lead { max-width: 560px; margin: 22px 0 0; font-size: 1rem; line-height: 1.7; }
.hope-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.hope-proof-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
}
.hope-proof-list li {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  background: var(--hope-green-tint);
  border: 1px solid var(--hope-line);
  border-radius: 12px;
  color: var(--hope-navy-soft);
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 600;
}
.hope-proof-list li > span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-green-soft);
  color: var(--hope-green-deep);
  font-size: 0.62rem;
  font-weight: 800;
}
.hope-hero-figure { position: relative; margin: 0; min-width: 0; }
.hope-hero-figure::before { display: none; }
.hope-hero-image-wrap {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--hope-bg);
}
.hope-hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }

/* All content blocks now use the same .cd-section surface treatment. */
.hope-method,
.hope-pillars,
.hope-faq,
.hope-commit { padding: 16px 0; background: transparent; }
.hope-method-grid,
.hope-pillars > .container,
.hope-faq-layout,
.hope-commit-grid {
  background: var(--hope-card);
  border-radius: 18px;
  box-shadow: var(--hope-shadow);
  padding: 36px;
}
.hope-method-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 48px; align-items: start; }
.hope-section-intro { position: static; }
.hope-section-intro h2,
.hope-projects-head h2,
.hope-faq-intro h2,
.hope-commit-copy h2,
.hope-pillars-head h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hope-section-intro h2 { font-size: clamp(2.15rem, 3.6vw, 3.1rem); line-height: 1.05; }
.hope-section-intro > p { max-width: 440px; margin: 17px 0 22px; font-size: 0.95rem; line-height: 1.68; }
.hope-method-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; border: 0; }
.hope-method-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--hope-green-tint);
  border: 1px solid var(--hope-line);
  border-radius: 14px;
}
.hope-method-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-green-soft);
  color: var(--hope-green-deep);
  font-size: 0.68rem;
  font-weight: 800;
}
.hope-method-list h3 { font-size: 1.08rem; line-height: 1.3; }
.hope-method-list p { margin-top: 5px; font-size: 0.86rem; line-height: 1.62; }

/* Areas of action: campaign-style soft cards. */
.hope-pillars-head { display: grid; grid-template-columns: 1fr 0.75fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.hope-pillars-head h2 { max-width: 650px; color: var(--hope-navy); font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1.04; }
.hope-pillars-head > p { color: var(--hope-muted); font-size: 0.94rem; line-height: 1.65; }
.hope-pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border: 0; }
.hope-pillar {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--hope-green-tint);
  color: var(--hope-navy);
  border: 1px solid var(--hope-line);
  border-radius: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.hope-pillar:hover { color: var(--hope-navy); border-color: var(--hope-green-pale); box-shadow: 0 8px 24px rgba(16,37,26,.08); transform: translateY(-2px); }
.hope-pillar-top { display: flex; justify-content: space-between; color: var(--hope-muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.hope-pillar-icon {
  width: 48px;
  height: 48px;
  margin: 30px 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-green-soft);
  color: var(--hope-green-deep);
}
.hope-pillar h3 { color: var(--hope-navy); font-size: 1.12rem; line-height: 1.25; }
.hope-pillar p { margin-top: auto; padding-top: 14px; color: var(--hope-muted); font-size: 0.8rem; line-height: 1.6; }

/* Projects borrow the dark related-projects band from campaign detail. */
.hope-projects { margin-top: 16px; padding: 56px 0 62px; background: var(--hope-navy); }
.hope-projects-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.hope-projects-head .hope-eyebrow { color: var(--hope-green-pale); }
.hope-projects-head h2 { max-width: 720px; color: #fff; font-size: clamp(2.2rem, 4vw, 3.45rem); line-height: 1.05; }
.hope-projects-head .hope-text-link { color: var(--hope-green-pale); }
.hope-projects-head .hope-text-link:hover { color: #fff; }
.hope-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 34px; padding: 0; border: 0; overflow: visible; }
.hope-tab {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.hope-tab::after { display: none; }
.hope-tab:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hope-tab.active { background: #fff; border-color: #fff; color: var(--hope-navy); }
.hope-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.hope-project-card { display: flex; flex-direction: column; min-width: 0; color: #fff; }
.hope-project-card:hover { color: #fff; }
.hope-project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.08); }
.hope-project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 320ms ease; }
.hope-project-card:hover .hope-project-media img { transform: scale(1.03); }
.hope-project-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16,37,26,.88);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hope-project-body { flex: 1; display: flex; flex-direction: column; padding: 14px 0 0; border: 0; }
.hope-project-body h3 { color: #fff; font-size: 1.15rem; line-height: 1.32; }
.hope-project-body > p { margin-top: 8px; color: rgba(255,255,255,.62); font-size: 0.82rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hope-project-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62); font-size: 0.7rem; }
.hope-project-meta span:first-child { max-width: 82%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hope-project-progress { margin-top: 12px; }
.hope-project-progress .progress-bar { height: 6px; background: rgba(255,255,255,.16); }
.hope-project-progress .progress-fill { background: var(--hope-green-mid); }
.hope-project-pct { display: block; margin-top: 7px; color: var(--hope-green-pale); font-size: 0.7rem; font-weight: 700; }
.hope-skel-card { aspect-ratio: 4 / 5; border-radius: 12px; background: rgba(255,255,255,.1); }
.hope-projects-cta { display: none; margin-top: 34px; }
.hope-projects-cta .hope-btn-primary { background: #fff; border-color: #fff; color: var(--hope-navy); }

/* FAQ follows the campaign story card: one white surface and simple dividers. */
.hope-faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 54px; align-items: start; }
.hope-faq-intro { position: static; }
.hope-faq-intro h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.06; }
.hope-faq-intro > p { max-width: 430px; margin: 17px 0 22px; font-size: 0.92rem; line-height: 1.65; }
.hope-faq-list { border-top: 1px solid var(--hope-line); }
.hope-faq .ggf-faq-item { border: 0; border-bottom: 1px solid var(--hope-line); border-radius: 0; box-shadow: none; background: transparent; }
.hope-faq .ggf-faq-q { padding: 19px 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.hope-faq .ggf-faq-a { padding: 0 48px 20px 0; color: var(--hope-muted); font-size: 0.86rem; line-height: 1.65; }
.hope-faq-symbol {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-green-soft);
  color: var(--hope-green-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 160ms ease, background 160ms ease;
}
.hope-faq .ggf-faq-item.open .hope-faq-symbol { transform: rotate(45deg); background: var(--hope-green-pale); }

/* Closing card echoes the sticky donation sidebar. */
.hope-commit { padding-bottom: 32px; }
.hope-commit-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 54px; align-items: center; }
.hope-commit-copy h2 { max-width: 680px; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.04; }
.hope-commit-copy > p { max-width: 570px; margin-top: 17px; font-size: 0.94rem; line-height: 1.68; }
.hope-commit-actions { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.hope-commit-notes { display: flex; flex-direction: column; gap: 10px; }
.hope-commit-notes p {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--hope-green-tint);
  border: 1px solid var(--hope-line);
  border-radius: 12px;
  color: var(--hope-navy-soft);
  font-size: 0.82rem;
  font-weight: 700;
}
.hope-commit-notes p > span:first-child { color: var(--hope-green-deep); font-size: 0.66rem; }

/* Restore the same light footer used by campaign detail. */
.hope-home .site-footer { background: #fff; border-top: 1px solid var(--hope-line); }
.hope-home .site-footer,
.hope-home .site-footer p,
.hope-home .site-footer address { color: var(--hope-muted); }
.hope-home .site-footer .footer-col h4 { color: var(--hope-navy); }
.hope-home .site-footer .footer-col a,
.hope-home .site-footer .ggf-footer-bottom a { color: var(--hope-navy-soft); }
.hope-home .site-footer .footer-col a:hover,
.hope-home .site-footer .ggf-footer-bottom a:hover { color: var(--hope-green-deep); }
.hope-home .site-footer .ggf-footer-bottom { border-top-color: var(--hope-line); color: var(--hope-muted); }
.hope-home .site-footer .footer-logo { height: 48px; width: auto; padding: 0; background: transparent; }

@media (max-width: 1020px) {
  .hope-hero-grid { grid-template-columns: 1fr; }
  .hope-hero-copy { padding: 4px; }
  .hope-hero-image-wrap { height: auto; aspect-ratio: 16 / 10; }
  .hope-method-grid,
  .hope-faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .hope-method-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hope-method-list li { grid-template-columns: 1fr; }
  .hope-pillars-head { grid-template-columns: 1fr; gap: 14px; }
  .hope-pillars-head > p { max-width: 640px; }
  .hope-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .hope-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hope-commit-grid { grid-template-columns: 1fr; gap: 30px; }
  .hope-commit-notes { display: grid; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .hope-home .container { padding-left: 14px; padding-right: 14px; }
  .hope-hero { padding: 0 0 8px; }
  .hope-hero-grid { gap: 24px; padding: 22px; border-radius: 16px; }
  .hope-hero h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .hope-hero-lead { margin-top: 17px; font-size: 0.92rem; }
  .hope-hero-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; }
  .hope-hero-actions .hope-text-link { align-self: center; }
  .hope-proof-list { grid-template-columns: 1fr; margin-top: 26px; }
  .hope-proof-list li { min-height: 0; flex-direction: row; align-items: center; }
  .hope-hero-image-wrap { aspect-ratio: 4 / 3; border-radius: 14px; }
  .hope-method,
  .hope-pillars,
  .hope-faq,
  .hope-commit { padding: 8px 0; }
  .hope-method-grid,
  .hope-pillars > .container,
  .hope-faq-layout,
  .hope-commit-grid { padding: 22px; border-radius: 16px; }
  .hope-section-intro h2,
  .hope-pillars-head h2,
  .hope-projects-head h2,
  .hope-faq-intro h2,
  .hope-commit-copy h2 { font-size: 2.15rem; }
  .hope-method-list { grid-template-columns: 1fr; }
  .hope-method-list li { grid-template-columns: 42px 1fr; }
  .hope-pillars-grid { grid-template-columns: 1fr; }
  .hope-pillar { min-height: 220px; }
  .hope-projects { margin-top: 8px; padding: 42px 0 48px; }
  .hope-projects-head { align-items: flex-start; }
  .hope-desktop-link { display: none; }
  .hope-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .hope-tabs::-webkit-scrollbar { display: none; }
  .hope-projects-grid { grid-template-columns: 1fr; gap: 28px; }
  .hope-projects-cta { display: block; }
  .hope-faq .ggf-faq-q { font-size: 1rem; padding: 17px 0; }
  .hope-commit-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hope-commit-actions .hope-text-link { align-self: center; }
  .hope-commit-notes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hope-pillar,
  .hope-project-media img,
  .hope-faq-symbol { transition: none; }
}
/* =========================================================
   Navigation experience — search studio + editorial mobile menu
   ========================================================= */
body.nav-layer-open { overflow: hidden; }
.site-header { backdrop-filter: none; }
.nav-mobile-only,
.nav-link-index { display: none; }

.menu-toggle-lines {
  position: relative;
  width: 23px;
  height: 16px;
  display: block;
}
.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: top 220ms ease, transform 220ms ease, width 220ms ease;
}
.menu-toggle-lines span:first-child { top: 3px; }
.menu-toggle-lines span:last-child { top: 11px; width: 15px; }
.menu-toggle.is-open .menu-toggle-lines span:first-child { top: 7px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-lines span:last-child { top: 7px; width: 23px; transform: rotate(-45deg); }

.nav-search-btn {
  width: auto;
  min-width: 42px;
  padding: 0 14px;
  gap: 8px;
  border-color: #dce6df;
  background: #f3f8f5;
  color: #10251a;
  font-family: var(--font-body);
  font-weight: 700;
}
.nav-search-btn:hover,
.site-header .nav-search-btn:hover {
  background: #e7f3eb;
  border-color: #9bc8ad;
  color: #024924;
}
.nav-search-label { font-size: 0.82rem; }

.nav-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.nav-search-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-search-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(16, 37, 26, 0.62);
  backdrop-filter: blur(12px);
  cursor: default;
}
.nav-search-dialog {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(4, 106, 54, 0.16), transparent 32%),
    linear-gradient(135deg, #f3f8f5 0%, #ffffff 68%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 24px 70px rgba(16, 42, 27, 0.24);
  transform: translateY(-28px);
  transition: transform 260ms cubic-bezier(.22,.8,.24,1);
}
.nav-search-overlay.is-open .nav-search-dialog { transform: translateY(0); }
.nav-search-shell { padding-top: 34px; padding-bottom: 48px; }
.nav-search-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-search-kicker {
  color: #024924;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-search-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce6df;
  border-radius: 50%;
  background: #fff;
  color: #10251a;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.nav-search-close:hover { transform: rotate(5deg); background: #e7f3eb; }
.nav-search-form { max-width: 920px; margin: 58px auto 0; }
.nav-search-form > label {
  display: block;
  max-width: 780px;
  color: #10251a;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.nav-search-form > p {
  margin-top: 16px;
  color: #718078;
  font-size: 1rem;
}
.nav-search-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 11px 12px 11px 22px;
  background: #fff;
  border: 1px solid #dce6df;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(16, 37, 26, 0.11);
  color: #046a36;
}
.nav-search-field > svg { width: 24px; height: 24px; }
.nav-search-field input {
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #10251a;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.nav-search-field input::placeholder { color: #829087; }
.nav-search-field button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #046a36;
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-search-field button:hover { background: #024924; transform: translateX(2px); }
.nav-search-shortcuts {
  max-width: 920px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #718078;
  font-size: 0.76rem;
  font-weight: 700;
}
.nav-search-shortcuts > div { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-search-shortcuts a {
  padding: 8px 12px;
  border: 1px solid #dce6df;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #405247;
  text-decoration: none;
}
.nav-search-shortcuts a:hover { border-color: #2b8052; color: #024924; }

/* The filters were removed; preserve the deliberate gap before the cards. */
.hope-projects-head { margin-bottom: 34px; }

@media (max-width: 879px) {
  .nav-search-label { display: none; }
  .nav-search-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #dce6df;
    background: #f3f8f5;
    color: #024924;
  }
  .menu-toggle {
    border: 1px solid #dce6df;
    border-radius: 50%;
    background: #fff;
    color: #10251a;
  }
  .menu-toggle:hover { background: #e7f3eb; }
  .site-header.menu-open { background: #fff; border-bottom-color: #dce6df; }
  .site-header .nav-links {
    display: flex;
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 160;
    max-height: none;
    margin: 0;
    padding: 28px 24px 30px;
    gap: 0;
    overflow-y: auto;
    background:
      radial-gradient(circle at 88% 8%, rgba(43,128,82,.23), transparent 28%),
      #10251a;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 220ms ease, visibility 220ms ease, transform 260ms cubic-bezier(.22,.8,.24,1);
  }
  .site-header .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header .nav-links li { width: 100%; }
  .site-header .nav-links li > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    padding: 18px 2px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
  }
  .site-header .nav-links li > a:hover,
  .site-header .nav-links li > a.active { background: transparent; color: #9bc8ad; }
  .nav-link-index {
    display: inline;
    align-self: start;
    padding-top: 7px;
    color: #2b8052;
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
  .nav-mobile-only { display: block; }
  .site-header .nav-links .nav-mobile-donate { margin-top: 24px; }
  .site-header .nav-links .nav-mobile-donate > a {
    display: flex;
    justify-content: space-between;
    padding: 17px 20px;
    border: 0;
    border-radius: 15px;
    background: #046a36;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
  }
  .site-header .nav-links .nav-mobile-donate > a:hover { background: #035c2f; color: #fff; }
  .nav-mobile-note {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 28px;
    color: rgba(255,255,255,.52);
    font-size: 0.68rem;
    line-height: 1.5;
  }
  .nav-mobile-note span:last-child { text-align: right; }

  .nav-search-dialog {
    min-height: 100%;
    border-radius: 0;
  }
  .nav-search-shell { padding: 24px 22px 36px; }
  .nav-search-form { margin-top: 72px; }
  .nav-search-form > label { font-size: clamp(2.45rem, 11vw, 4rem); }
  .nav-search-form > p { max-width: 520px; font-size: 0.92rem; line-height: 1.6; }
  .nav-search-field {
    grid-template-columns: 23px minmax(0, 1fr) 46px;
    gap: 10px;
    margin-top: 25px;
    padding: 8px 8px 8px 16px;
    border-radius: 16px;
  }
  .nav-search-field > svg { width: 20px; height: 20px; }
  .nav-search-field input { height: 48px; font-size: 0.94rem; }
  .nav-search-field button { width: 46px; height: 46px; border-radius: 12px; }
  .nav-search-shortcuts { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .hope-projects-head { margin-bottom: 28px; }
}

@keyframes navMenuItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 879px) {
  .nav-links.open li { animation: navMenuItemIn 300ms both; }
  .nav-links.open li:nth-child(2) { animation-delay: 40ms; }
  .nav-links.open li:nth-child(3) { animation-delay: 80ms; }
  .nav-links.open li:nth-child(4) { animation-delay: 120ms; }
  .nav-links.open li:nth-child(5) { animation-delay: 160ms; }
  .nav-links.open li:nth-child(6) { animation-delay: 200ms; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-search-overlay,
  .nav-search-dialog,
  .site-header .nav-links,
  .menu-toggle-lines span { transition: none; }
  .nav-links.open li { animation: none; }
}
/* Keep fixed navigation layers anchored to the viewport, not the sticky header. */
.site-header,
.hope-home .site-header { backdrop-filter: none !important; }
@media (max-width: 879px) {
  .site-header .nav-links {
    top: 66px;
    min-height: calc(100dvh - 66px);
  }
}
/* Compact header search */
.nav-search-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: max(16px, calc((100vw - 1200px) / 2));
  z-index: 520;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  color: #046a36;
  background: #fff;
  border: 1px solid #dce6df;
  border-radius: 15px;
  box-shadow: 0 14px 36px rgba(16, 37, 26, 0.16);
  animation: navSearchPopoverIn 160ms ease both;
}
.nav-search-popover[hidden] { display: none; }
.nav-search-popover-icon { display: grid; place-items: center; }
.nav-search-popover-icon svg { width: 18px; height: 18px; }
.nav-search-popover input {
  min-width: 0;
  height: 42px;
  color: #10251a;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.nav-search-popover input::placeholder { color: #829087; }
.nav-search-popover button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #046a36;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}
.nav-search-popover button:hover { background: #024924; }
@keyframes navSearchPopoverIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 879px) {
  .nav-search-popover {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-search-popover { animation: none; }
}
/* Header search becomes the single, neutral action on desktop. */
@media (min-width: 880px) {
  .site-header .nav-search-btn {
    width: 56px;
    min-width: 56px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    color: #405247;
    background: #f7f9f7;
    border: 1px solid #dfe5e1;
    border-radius: 12px;
    box-shadow: none;
  }
  .site-header .nav-search-btn:hover {
    color: #17211a;
    background: #edf2ee;
    border-color: #cbd5ce;
  }
  .site-header .nav-search-btn:focus-visible {
    outline: 3px solid rgba(23, 33, 26, 0.16);
    outline-offset: 3px;
  }
  .site-header .nav-search-btn svg { width: 20px; height: 20px; }
  .site-header .nav-search-label { display: none; }
}
/* Logo-led home palette: soft green field, near-black type and clean white cards. */
body.hope-home {
  --hope-bg: #f3f8f5;
  --hope-line: #d6e7dc;
  --hope-line-soft: #eef5f0;
  --hope-muted: #68776f;
}
.hope-home .hope-projects {
  background: var(--hope-green-soft);
  border-top: 1px solid var(--hope-line);
  border-bottom: 1px solid var(--hope-line);
}
.hope-home .hope-projects-head .hope-eyebrow { color: var(--hope-green-deep); }
.hope-home .hope-projects-head h2 { color: var(--hope-navy); }
.hope-home .hope-projects-head .hope-text-link { color: var(--hope-green-deep); }
.hope-home .hope-projects-head .hope-text-link:hover { color: var(--hope-navy); }
.hope-home .hope-project-card {
  overflow: hidden;
  color: var(--hope-navy);
  background: #ffffff;
  border: 1px solid var(--hope-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 68, 42, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.hope-home .hope-project-card:hover {
  color: var(--hope-navy);
  border-color: var(--hope-green-pale);
  box-shadow: 0 12px 30px rgba(20, 68, 42, 0.12);
  transform: translateY(-2px);
}
.hope-home .hope-project-media {
  border-radius: 0;
  background: var(--hope-green-tint);
}
.hope-home .hope-project-body { padding: 18px; }
.hope-home .hope-project-body h3 { color: var(--hope-navy); }
.hope-home .hope-project-body > p { color: var(--hope-muted); }
.hope-home .hope-project-progress {
  margin-top: auto;
  padding-top: 18px;
}
.hope-home .hope-project-progress .progress-bar { background: var(--hope-line); }
.hope-home .hope-project-progress .progress-fill { background: var(--hope-green); }
.hope-home .hope-project-pct { color: var(--hope-green-deep); }
.hope-home .hope-skel-card { background: #ffffff; border: 1px solid var(--hope-line); }
.hope-home .hope-projects-cta .hope-btn-primary {
  color: #ffffff;
  background: var(--hope-green);
  border-color: var(--hope-green);
}
.hope-home .hope-projects-cta .hope-btn-primary:hover {
  color: #ffffff;
  background: var(--hope-green-dark);
  border-color: var(--hope-green-dark);
}
