/* Fundora Hope — site styles (campaign page + institutional pages)
   Tokens: STYLEGUIDE.md. Type family: Figtree (one family, weights 400–800).
   Palette: #037B43 dark green (primary text/buttons) · #03914F emerald (secondary) · #66AA26 lime (accents)
   #BCD295 light green (borders) · #D0DDAF pastel (secondary surfaces) · #FDFDF5 ivory (main background).
   Green is used only for Donate, progress, links, selected states and small accents. */

:root {
  /* palette */
  --red-primary: #037B43;
  --red-dark: #03914F;
  --red-bright: #66AA26;
  --coral: #66AA26;
  --salmon: #BCD295;
  --charcoal: #171A1D;
  --gray-dark: #343434;
  --gray-light: #D0DDAF;
  --border: #BCD295;
  --border-strong: #BCD295;
  --border-light: #D0DDAF;
  --track: #D0DDAF;
  --white: #FDFDF5;
  --muted: #6B6F74;
  --line: rgba(23, 26, 29, .10);
  --soft: rgba(3, 123, 67, .08);
  --tint: #D0DDAF;
  --tint-soft: #D0DDAF;

  /* typography */
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: 34px;     --lh-h1: 1.15;  --ls-h1: -0.02em;     /* campaign title; 26px mobile */
  --fs-h1-inst: 38px;                                       /* institutional H1; 30px mobile */
  --fs-h2: 26px;     --lh-h2: 1.25;  --ls-h2: -0.015em;    /* section headings; 22px mobile */
  --fs-h3: 17px;     --lh-h3: 26px;
  --fs-amount: 28px; --lh-amount: 34px;                     /* raised amount; 26px mobile */
  --fs-body: 16px;   --lh-body: 26px;
  --fs-story: 15.5px; --lh-story: 1.6;
  --fs-small: 14px;  --lh-small: 20px;
  --fs-xs: 13px;     --lh-xs: 18px;
  --fs-micro: 12px;  --lh-micro: 16px;
  --fs-btn: 16px;

  /* spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px; --s-9: 36px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* radius */
  --r-image: 16px; --r-card: 20px; --r-modal: 16px; --r-field: 12px; --r-pill: 9999px;

  /* containers */
  --container: 1152px; --title-max: 896px; --sidebar: 380px; --grid-gap: 40px; --prose: 720px; --prose-narrow: 680px;
  --gutter: 20px; --header-h: 72px;

  --shadow-card: 0 12px 32px -20px rgba(23, 26, 29, .25);
  --shadow-float: 0 -6px 24px rgba(23, 26, 29, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--gray-dark); background: var(--white); overflow-x: hidden; }
h1, h2, h3 { margin: 0; color: var(--charcoal); }
h1 { font-size: clamp(26px, 4vw, var(--fs-h1)); line-height: var(--lh-h1); font-weight: 800; letter-spacing: var(--ls-h1); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
h2 { font-size: clamp(22px, 2.8vw, var(--fs-h2)); line-height: var(--lh-h2); font-weight: 700; letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--red-primary); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
fieldset { border: 0; margin: 0 0 var(--s-5); padding: 0; min-width: 0; }
legend { font-weight: 600; color: var(--charcoal); padding: 0; margin-bottom: var(--s-2); }
:focus-visible { outline: 2px solid var(--red-primary); outline-offset: 3px; }
button:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
[hidden] { display: none !important; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.error { color: var(--red-primary); font-weight: 500; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--red-primary); color: var(--white); padding: 12px 16px; border-radius: var(--r-field); font-size: var(--fs-small); }
.skip-link:focus { left: 20px; }
.dot { margin: 0 6px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); font-size: var(--fs-btn); font-weight: 600; line-height: 1; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--red-primary); color: var(--white); border-color: var(--red-primary); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-dark:hover { background: #000; border-color: #000; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--charcoal); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--gray-light); color: var(--charcoal); }
.btn-outline { background: var(--white); color: var(--charcoal); border-color: var(--border-strong); min-height: 44px; font-size: var(--fs-small); font-weight: 500; }
.btn-outline:hover { background: var(--gray-light); color: var(--charcoal); }
.btn-block { display: flex; width: 100%; }
.link-button { background: none; border: 0; padding: 0; min-height: 44px; color: var(--red-primary); font-size: var(--fs-small); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-button:hover { color: var(--red-dark); }
.link-button:disabled { color: #8a8a8a; cursor: default; text-decoration: none; }
.link-button-sm { min-height: 0; font-size: var(--fs-micro); font-weight: 500; color: var(--muted); }

/* ---------- Header: sticky · search (left) · logo (centre) · menu (right); nav lives in the dropdown at every width ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: var(--s-3); }
.logo { display: inline-flex; justify-self: center; }
.logo img { height: 58px; width: auto; border-radius: 50%; }
.header-search, .nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--charcoal); cursor: pointer; }
.header-search:hover, .nav-toggle:hover { background: var(--gray-light); color: var(--charcoal); }
.nav-toggle { flex-direction: column; gap: 5px; }
.nav-toggle-bar { width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); padding: var(--s-2) var(--gutter) var(--s-5); }
body.nav-open .primary-nav { display: block; }
.primary-nav > * { display: block; max-width: var(--container); margin-inline: auto; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: var(--s-3) 0; border-bottom: 1px solid var(--border-light); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--charcoal); }

/* ---------- Campaign layout: photo → title → funding block → main (mobile); photo | card, title/main below the photo (desktop) ---------- */
.campaign { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "head" "card" "main"; padding-top: 0; padding-bottom: var(--s-20); }
.campaign-photo { grid-area: photo; margin-inline: calc(-1 * var(--gutter)); }   /* full-bleed on mobile */
.campaign-head { grid-area: head; max-width: var(--title-max); }
.campaign-head h1 { margin: 16px 0 12px; letter-spacing: -.01em; line-height: 1.2; }
.funding-card { grid-area: card; }
.campaign-main { grid-area: main; }
.carousel { position: relative; overflow: hidden; background: var(--gray-light); }
.carousel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .18)); pointer-events: none; }
.carousel-track { display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; margin: 0; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.hero-photo { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; display: block; background: var(--gray-light); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--charcoal); box-shadow: 0 2px 8px rgba(23, 26, 29, .18); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease, opacity .15s ease; }
.carousel-arrow:hover { background: var(--white); }
.carousel-arrow:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 1; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.carousel-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; }
.carousel-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(23, 26, 29, .15); transition: background-color .15s ease, transform .15s ease; }
.carousel-dot:hover::before { background: rgba(255, 255, 255, .8); }
.carousel-dot[aria-selected="true"]::before { background: var(--white); transform: scale(1.25); }
.carousel-dot:focus-visible { outline: 3px solid var(--coral); outline-offset: -2px; }

/* ---------- Funding block: ring 48 + stacked figures · Donate/Share grid · trust line.
   Mobile: inline (no border, no shadow, bottom rule). Desktop: 380px card, sticky. ---------- */
.funding-card { padding: 4px 0 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; align-self: start; }
.fc-main { display: flex; gap: 14px; align-items: center; }
.ring { position: relative; flex: 0 0 48px; width: 48px; height: 48px; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-track { stroke: var(--soft); }
.ring-fill { stroke: var(--red-bright); transition: stroke-dasharray 1.2s cubic-bezier(.22, 1, .36, 1); }
.ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; font-weight: 700; color: var(--charcoal); }
.fc-stack { min-width: 0; }
.fc-raised { font-size: 22px; line-height: 28px; font-weight: 800; color: var(--charcoal); }
.fc-goal { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--muted); }
.fc-meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); }
.fc-meta strong { font-weight: 600; color: var(--gray-dark); }
.fc-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-donate, .fc-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border: 0; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.fc-donate { background: var(--red-primary); color: var(--white); animation: pulse-ring 2s infinite; }
.fc-donate:hover { background: var(--red-dark); animation-play-state: paused; }
.fc-share { background: var(--soft); color: var(--red-primary); }
.fc-share:hover { background: rgba(3, 123, 67, .14); }
.fc-trust { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }
.fc-trust svg { flex: 0 0 14px; }
.fc-trust > span { text-wrap: balance; }
.nowrap { white-space: nowrap; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(3, 123, 67, .4); } 70% { box-shadow: 0 0 0 10px rgba(3, 123, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(3, 123, 67, 0); } }
.share-menu { margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.share-option { min-height: 40px; border: 1px solid var(--border); background: var(--white); border-radius: var(--r-field); color: var(--charcoal); font-size: var(--fs-xs); font-weight: 500; cursor: pointer; }
.share-option:hover { background: var(--gray-light); }

/* ---------- Sticky donate bar: slides in when the funding block leaves the viewport (bottom on mobile, under the header on desktop) ---------- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 16px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; font-variant-numeric: tabular-nums; }
.sticky-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
.sticky-bar-text { flex: 1; min-width: 0; }
.sticky-bar-text p { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 18px; color: var(--muted); }
.sticky-bar-text strong { font-size: 15px; font-weight: 800; color: var(--charcoal); }
.sticky-bar-track { margin-top: 6px; height: 4px; border-radius: 9999px; background: var(--soft); overflow: hidden; }
.sticky-bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--red-bright); transition: width 1.2s cubic-bezier(.22, 1, .36, 1); }
.sticky-bar-donate { flex: 0 0 auto; height: 42px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--red-primary); color: var(--white); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; animation: pulse-ring 2s infinite; transition: background-color .15s ease; }
.sticky-bar-donate:hover { background: var(--red-dark); animation-play-state: paused; }
body.has-sticky-bar { padding-bottom: 84px; }

/* ---------- Sections ---------- */
.section { margin-top: var(--s-9); padding-top: var(--s-9); border-top: 1px solid var(--border); }
.section-first { border-top: 0; padding: 20px 0 0; margin-top: 0; }
section[id] { scroll-margin-top: var(--s-6); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-4); }
.section-note { margin-top: var(--s-2); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.section-foot { margin-top: var(--s-5); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }

/* ---------- Story ---------- */
#story h2 { font-size: 18px; line-height: 24px; letter-spacing: 0; }
.story-lead { margin-top: var(--s-3); font-size: 15.5px; line-height: 1.6; font-weight: 500; color: var(--charcoal); }
.story-clamp { margin-top: var(--s-5); position: relative; overflow: hidden; max-height: 22rem; transition: max-height .35s ease; }
.story-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4rem; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white)); pointer-events: none; transition: opacity .2s ease; }
.story-clamp.is-expanded::after { opacity: 0; }
.story-section + .story-section { margin-top: var(--s-6); }
.story-section h3 { font-weight: 700; margin-bottom: var(--s-2); }
.story-html { font-size: var(--fs-story); line-height: var(--lh-story); color: var(--gray-dark); }
.story-html p + p, .story-html ul + p, .story-html p + ul { margin-top: var(--s-4); }
.story-html ul { list-style: disc; padding-left: 1.25em; }
.story-html img { border-radius: var(--r-image); margin: var(--s-4) 0; }
.read-more { margin-top: var(--s-4); }

/* ---------- Avatars ---------- */
.avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--red-primary); font-size: var(--fs-xs); font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-lg { flex-basis: 44px; width: 44px; height: 44px; font-size: var(--fs-small); font-weight: 600; }
.avatar-logo { background: var(--white); border: 1px solid var(--border); }

/* ---------- Organizer ---------- */
.org { margin-top: var(--s-5); display: flex; gap: var(--s-4); align-items: flex-start; }
.org-body { min-width: 0; }
.org-role { margin-top: var(--s-1); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--fs-xs); line-height: var(--lh-small); font-weight: 600; color: var(--muted); }
.org-text { margin-top: var(--s-1); font-size: var(--fs-small); line-height: 24px; color: var(--muted); }
.org-legal { margin-top: var(--s-5); font-size: var(--fs-micro); line-height: 20px; color: var(--muted); }

/* ---------- Feed (contributions / words of support) ---------- */
.feed-list { margin-top: var(--s-2); }
.feed-item { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--border-light); }
.feed-item:last-child { border-bottom: 0; }
.feed-meta { flex: 1; min-width: 0; }
.feed-name { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--charcoal); }
.feed-line { margin-top: 2px; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; }
.feed-line .feed-amount { color: var(--charcoal); font-weight: 600; font-variant-numeric: tabular-nums; }
.feed-line .dot { margin: 0 6px; }
.feed-line .link-button { margin-left: var(--s-3); }
.feed-message { margin-top: var(--s-1); font-size: 15px; line-height: 24px; color: var(--gray-dark); }
.feed-empty { padding: var(--s-4) 0; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Accordion ---------- */
.accordion { margin-top: var(--s-4); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item h3 { font-weight: 400; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; background: none; border: 0; text-align: left; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--charcoal); cursor: pointer; }
.accordion-trigger:hover { color: var(--red-primary); }
.accordion-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.accordion-icon::before { content: ""; position: absolute; left: 3px; top: 2px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); border-radius: 1px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-body { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .25s; font-size: 15px; line-height: 24px; color: var(--muted); }
.accordion-panel.is-open .accordion-body { visibility: visible; transition-delay: 0s; }
.accordion-body p { padding-bottom: var(--s-5); }

/* ---------- Institutional pages ---------- */
.page-intro { padding: var(--s-10) 0 var(--s-8); border-bottom: 1px solid var(--border); }
.eyebrow { display: block; font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-primary); margin-bottom: var(--s-3); }
.page-intro h1 { font-size: clamp(30px, 4.5vw, var(--fs-h1-inst)); }
.lede { margin-top: var(--s-4); font-size: 18px; line-height: 30px; color: var(--muted); max-width: 60ch; }
.page-meta { margin-top: var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.prose { max-width: var(--prose); }
.prose-narrow { max-width: var(--prose-narrow); }
.prose > section { padding: var(--s-8) 0; border-bottom: 1px solid var(--border); scroll-margin-top: var(--s-6); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p { margin-top: var(--s-3); }
.prose p:first-child, .prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.25em; margin-top: var(--s-3); }
.prose li + li { margin-top: var(--s-2); }
.prose .lead { font-size: 17px; line-height: 28px; color: var(--charcoal); }
.two-col { display: grid; gap: var(--s-6); }
.steps { counter-reset: step; margin-top: var(--s-5); }
.steps li { position: relative; padding-left: 52px; }
.steps li + li { margin-top: var(--s-5); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tint-soft); color: var(--red-primary); font-size: var(--fs-small); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0 2px; }
.steps p { margin-top: 0; color: var(--muted); }
.pillars { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.pillars h3 { margin: 0 0 var(--s-1); }
.pillars p { margin: 0; color: var(--muted); }
.commitments { margin-top: var(--s-4); }
.commitments li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border-light); font-size: 15px; line-height: 24px; color: var(--gray-dark); }
.commitments li:last-child { border-bottom: 0; }
.commitments svg { flex: 0 0 20px; margin-top: 2px; color: var(--red-primary); }
.contact-block { margin-top: var(--s-5); padding-left: var(--s-4); border-left: 3px solid var(--tint); font-size: 15px; line-height: 24px; color: var(--gray-dark); }
.contact-block strong { color: var(--charcoal); }
.contact-block a { font-weight: 500; }
.note-box { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-field); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.cta-panel { margin: var(--s-12) 0 var(--s-20); padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.cta-panel h2 { font-size: 20px; line-height: 28px; }
.cta-panel p { margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.legal-layout { display: grid; gap: var(--s-8); padding-bottom: var(--s-20); }
.toc { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.toc h2 { font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: var(--s-2); padding: 6px 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); text-decoration: none; }
.toc a::before { content: counter(toc) "."; color: var(--border-strong); min-width: 1.6em; font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-current { color: var(--charcoal); }
.toc a.is-current { font-weight: 600; }
.toc a.is-current::before { color: var(--red-primary); }
.legal-section h2 { display: flex; gap: var(--s-2); align-items: baseline; }
.legal-section h2 .num { color: var(--red-primary); font-variant-numeric: tabular-nums; }
.form { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.form label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-field); font: inherit; font-size: var(--fs-body); color: var(--charcoal); background: var(--white); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--red-primary); outline-offset: 1px; border-color: var(--red-primary); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-hint { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-primary); color: var(--white); padding-block: var(--s-12) var(--s-6); font-size: var(--fs-small); line-height: var(--lh-small); }
.footer-grid { display: grid; gap: var(--s-8); }
.footer-brand img { height: 56px; width: auto; border-radius: 50%; }
.footer-tagline { margin-top: var(--s-4); max-width: 40ch; color: rgba(255, 255, 255, .85); }
.footer-address { margin-top: var(--s-4); color: rgba(255, 255, 255, .85); }
.footer-address strong { color: var(--white); font-weight: 600; }
.footer-line { margin-top: var(--s-3); color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); }
.footer-heading { font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); font-size: var(--fs-micro); line-height: var(--lh-micro); color: rgba(255, 255, 255, .8); }

/* ---------- Donate modal ---------- */
.donate-modal { border: 0; border-radius: 22px; padding: 0; width: min(calc(100vw - 24px), 480px); max-width: none; max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; background: #fff; box-shadow: 0 24px 60px -20px rgba(23, 26, 29, .35); color: var(--gray-dark); }
.donate-modal::backdrop { background: rgba(23, 26, 29, .55); }
.donate-form { padding: 22px; position: relative; }
.donate-title { text-align: center; font-size: 22px; line-height: 28px; margin: 0 36px var(--s-1); color: var(--charcoal); }
.donate-heart { vertical-align: -3px; color: #e0245e; }
.donate-subtitle { text-align: center; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 0 0 var(--s-5); }
.modal-close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--charcoal); border-radius: 50%; }
.modal-close:hover { background: var(--gray-light); }
.modal-close:focus-visible { outline: 2px solid #254b35; outline-offset: 2px; }
.donate-form .amounts { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
.donate-label { display: block; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--charcoal); margin: 0 0 var(--s-3); padding: 0; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; row-gap: 18px; margin-bottom: var(--s-1); }
.amount-grid label { position: relative; display: block; min-width: 0; }
.amount-grid input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.amount-value { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 4px; border: 1px solid #c9ced3; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--charcoal); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.amount-value:hover { border-color: #254b35; }
.amount-grid input:checked + .amount-value { background: #e9fbcf; border-color: #254b35; }
.amount-grid input:focus-visible + .amount-value { outline: 2px solid #254b35; outline-offset: 2px; }
.amount-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 8px; border-radius: var(--r-pill); background: #d1f69f; color: #254b35; font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; pointer-events: none; }
.amount-other { grid-column: 1 / -1; }
.amount-other .amount-value { font-weight: 700; }
.amount-box { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding: 10px 18px; border: 1px solid #c9ced3; border-radius: 16px; background: #fff; cursor: text; transition: border-color .15s ease, box-shadow .15s ease; }
.amount-box:focus-within, .amount-box.is-active { border-color: #254b35; box-shadow: 0 0 0 3px rgba(37, 75, 53, .12); }
.amount-box.is-error { border-color: #c53030; box-shadow: 0 0 0 3px rgba(197, 48, 48, .12); }
.amount-box-cur { display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.amount-box-sign { font-size: 18px; font-weight: 800; color: var(--charcoal); }
.amount-box-code { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.amount-box-input { flex: 1; min-width: 0; width: 100%; border: 0; padding: 4px 0; background: transparent; font: inherit; font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -.02em; text-align: right; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.amount-box-input:focus { outline: none; }
.amount-box-input:disabled { color: var(--muted); background: transparent; }
.amount-box-hint { margin: 6px 2px 0; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); }
.amount-box-hint.is-error { color: #c53030; font-weight: 600; }
.pay-method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 10px var(--s-4); border: 2px solid #254b35; border-radius: 12px; background: #f4fbe8; margin-bottom: var(--s-5); }
.pay-method-name { font-size: 17px; font-weight: 800; color: #254b35; letter-spacing: .02em; }
.pay-method-desc { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--gray-dark); }
.donate-form .field { display: block; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--charcoal); margin-bottom: var(--s-2); }
.donate-form .field input { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 10px var(--s-4); border: 1px solid #c9ced3; border-radius: 12px; background: #fff; font: inherit; font-size: var(--fs-body); color: var(--charcoal); }
.donate-form .field input::placeholder { color: #8a8f94; }
.donate-form .field input:focus { outline: 2px solid #254b35; outline-offset: 1px; border-color: #254b35; }
.donate-form .field input:disabled { background: #f3f4f5; }
.field-hint { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); margin: 0 0 var(--s-5); }
.amount-error { margin: var(--s-2) 0 0; font-size: var(--fs-xs); }
.fee-note { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted); margin-bottom: var(--s-3); }
.fee-note a { color: #254b35; }
.donate-cta { margin-top: var(--s-2); min-height: 50px; padding-inline: var(--s-4); border-radius: var(--r-pill); background: #254b35; border-color: #254b35; color: #d1f69f; font-weight: 700; white-space: normal; line-height: 1.2; }
.donate-cta:hover { background: #1c3a29; border-color: #1c3a29; color: #d1f69f; }
.donate-cta:focus-visible { outline: 2px solid #254b35; outline-offset: 3px; }
.donate-cta:disabled { background: #9aa39d; border-color: #9aa39d; color: #f1f5ef; cursor: not-allowed; }
.donate-form .secure { margin: var(--s-3) 0 0; text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 380px) {
  .donate-form { padding: 16px; }
  .donate-title { margin-inline: 30px; }
  .amount-value { font-size: 14px; padding-inline: 2px; }
}
/* Resume banner: a still-open SPEI reference when the donor reopens the modal */
.resume-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 var(--s-5); padding: 10px 14px; border: 1px solid #f0d58a; border-radius: 14px; background: #fff8e6; animation: spei-rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.resume-dot { width: 9px; height: 9px; border-radius: 50%; background: #d39b1c; flex: none; animation: spei-pulse 1.8s ease-out infinite; }
.resume-text { flex: 1 1 200px; margin: 0; font-size: var(--fs-xs); line-height: var(--lh-xs); color: #5c4710; font-weight: 600; }
.resume-banner .resume-open { min-height: 32px; color: #254b35; font-size: var(--fs-xs); }

/* SPEI instruction panel */
.spei-panel { padding: var(--s-7) var(--s-5) var(--s-5); position: relative; overflow-wrap: anywhere; }
.spei-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); margin: 0 var(--s-8) var(--s-4); }
.spei-head h2 { margin: 0; font-size: 22px; line-height: 28px; color: var(--charcoal); }
.spei-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e9fbcf; color: #254b35; box-shadow: 0 0 0 6px #f4fbe8; }
.spei-icon svg { grid-area: 1 / 1; }
.spei-icon-check { opacity: 0; }
.spei-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: var(--r-pill); background: #fff4d6; color: #7a5a06; font-size: var(--fs-xs); line-height: var(--lh-xs); font-weight: 700; }
.spei-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #d39b1c; animation: spei-pulse 1.8s ease-out infinite; }
.spei-intro { margin: 0 0 var(--s-4); text-align: center; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--gray-dark); }
.spei-details { display: grid; gap: var(--s-3); }
.spei-card { border-radius: 16px; padding: 14px 16px; background: #f7f8f6; border: 1px solid #e6e9e3; }
.spei-label { display: block; font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spei-hint { display: block; margin-top: 2px; font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--muted); }
.spei-value-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: 4px; }
.spei-amount { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -.01em; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.spei-clabe-card { background: linear-gradient(160deg, #f4fbe8 0%, #e9fbcf 100%); border: 2px solid #254b35; text-align: center; }
.spei-clabe { display: block; margin: 8px 0 12px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: min(25px, calc((100vw - 96px) / 15)); line-height: 32px; font-weight: 700; letter-spacing: .02em; word-spacing: .18em; color: #12261a; font-variant-numeric: tabular-nums; overflow-wrap: normal; white-space: nowrap; }
.spei-copy-main { gap: 8px; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--r-pill); background: #254b35; border-color: #254b35; color: #d1f69f; font-weight: 700; transition: background-color .2s ease, transform .15s ease; }
.spei-copy-main:hover { background: #1c3a29; border-color: #1c3a29; color: #d1f69f; }
.spei-copy-main:active { transform: scale(.98); }
.spei-copy { flex: none; min-height: 32px; padding: 4px 12px; border: 1px solid #254b35; border-radius: var(--r-pill); background: #fff; color: #254b35; font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.spei-copy:hover { background: #e9fbcf; }
.spei-copy:focus-visible, .spei-copy-main:focus-visible { outline: 2px solid #254b35; outline-offset: 2px; }
.spei-copy.is-copied, .spei-copy-main.is-copied { background: #037B43; border-color: #037B43; color: #fff; animation: spei-pop .35s ease; }
.spei-copy:disabled, .spei-copy-main:disabled { opacity: .5; cursor: default; animation: none; }
.spei-list { margin: 0; padding: 4px 16px; border-radius: 16px; border: 1px solid #e6e9e3; }
.spei-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 0; }
.spei-row + .spei-row { border-top: 1px dashed #dfe3dc; }
.spei-row dt { flex: none; font-size: var(--fs-xs); color: var(--muted); }
.spei-row dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; margin: 0; text-align: right; font-size: var(--fs-small); font-weight: 700; color: var(--charcoal); }
.spei-countdown { display: block; width: 100%; font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 600; color: #7a5a06; }
.spei-steps { margin: var(--s-4) 0 0; padding: 0; list-style: none; counter-reset: spei-step; display: grid; gap: 8px; }
.spei-steps li { position: relative; padding-left: 34px; font-size: var(--fs-xs); line-height: 20px; color: var(--gray-dark); counter-increment: spei-step; }
.spei-steps li::before { content: counter(spei-step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #254b35; color: #d1f69f; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.spei-warning { margin: var(--s-4) 0 0; font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--muted); }
[data-spei-status], [data-spei-sandbox] { margin: var(--s-4) 0 0; padding: var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-field); font-size: var(--fs-small); line-height: var(--lh-small); }
[data-spei-sandbox] { background: #fff8e6; border-color: #f0d58a; }
.spei-actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); justify-items: center; }
.spei-actions .btn { min-height: 50px; border-radius: var(--r-pill); }

/* State variants (data-state = pending | expired | confirmed | failed | waiting) */
.spei-panel:not([data-state="pending"]) .spei-steps,
.spei-panel:not([data-state="pending"]) .spei-copy,
.spei-panel:not([data-state="pending"]) .spei-copy-main,
.spei-panel:not([data-state="pending"]) .spei-hint,
.spei-panel:not([data-state="pending"]) .spei-countdown { display: none; }
.spei-panel[data-state="confirmed"] .spei-icon { background: #037B43; color: #fff; box-shadow: 0 0 0 6px #d1f69f; animation: spei-pop .5s ease both; }
.spei-panel[data-state="confirmed"] .spei-icon-bank { opacity: 0; }
.spei-panel[data-state="confirmed"] .spei-icon-check { opacity: 1; stroke-dasharray: 24; stroke-dashoffset: 24; animation: spei-draw .5s .2s ease forwards; }
.spei-panel[data-state="confirmed"] .spei-pill { background: #e9fbcf; color: #254b35; }
.spei-panel[data-state="confirmed"] .spei-pill-dot { background: #037B43; animation: none; }
.spei-panel[data-state="expired"] .spei-pill,
.spei-panel[data-state="failed"] .spei-pill { background: #fde8e8; color: #9b1c1c; }
.spei-panel[data-state="expired"] .spei-pill-dot,
.spei-panel[data-state="failed"] .spei-pill-dot { background: #c53030; animation: none; }
.spei-panel[data-state="expired"] .spei-clabe-card,
.spei-panel[data-state="failed"] .spei-clabe-card { background: #f7f8f6; border-color: #c9ced3; }
.spei-panel[data-state="expired"] .spei-clabe,
.spei-panel[data-state="failed"] .spei-clabe { color: var(--muted); text-decoration: line-through; }

/* Entrance: staggered rise, then one soft glow around the CLABE */
.spei-panel.is-entering .spei-anim { animation: spei-rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.spei-panel.is-entering[data-state="pending"] .spei-clabe-card { animation: spei-rise .5s cubic-bezier(.2, .7, .2, 1) both, spei-glow 1.4s ease-out .6s 2; animation-delay: calc(var(--i, 0) * 70ms), .6s; }
@keyframes spei-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spei-glow { 0% { box-shadow: 0 0 0 0 rgba(3, 123, 67, .45); } 100% { box-shadow: 0 0 0 14px rgba(3, 123, 67, 0); } }
@keyframes spei-pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 155, 28, .55); } 100% { box-shadow: 0 0 0 8px rgba(211, 155, 28, 0); } }
@keyframes spei-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes spei-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 380px) {
  .spei-panel { padding-inline: var(--s-4); }
  .spei-amount { font-size: 26px; }
}
.donate-modal [hidden] { display: none !important; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: var(--s-6); transform: translate(-50%, 16px); background: var(--charcoal); color: var(--white); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-size: var(--fs-small); box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; z-index: 100; max-width: 92vw; text-align: center; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.has-sticky-bar .toast { bottom: 96px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .share-menu { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-10); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) {
  .campaign { padding-top: var(--s-6); }
  .campaign-photo { margin-inline: 0; max-width: 800px; }
  .carousel { border-radius: var(--r-image); }
  .funding-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(23, 26, 29, .07); }
  .sticky-bar { top: var(--header-h); bottom: auto; padding: 10px 16px 12px; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transform: translateY(-100%); }
  .sticky-bar > * { max-width: var(--container); }
  body.has-sticky-bar { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .campaign { grid-template-columns: minmax(0, 1fr) var(--sidebar); column-gap: var(--grid-gap); grid-template-areas: "photo card" "head card" "main card"; }
  .campaign-head h1 { margin-top: 16px; }
  .funding-card { position: sticky; top: calc(var(--header-h) + 16px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .legal-layout { grid-template-columns: 240px minmax(0, var(--prose-narrow)); gap: var(--s-16); }
  .toc { position: sticky; top: var(--s-8); align-self: start; padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fc-donate, .sticky-bar-donate { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Fundora Hope branding ---------- */
/* Header: the wordmark PNG carries transparent margins; frame it so it sits level with the menu buttons. */
.logo-fundora { position: relative; width: 190px; max-width: 100%; height: 66px; overflow: hidden; align-items: center; }
.logo-fundora img { position: static; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border-radius: 0; }

/* Footer: white wordmark on a deep green so the logo keeps its contrast. */
.site-footer.footer-fundora { background: #05260F; }
.footer-fundora .footer-fundora-logo { display: block; width: 125px; max-width: 100%; height: auto; object-fit: contain; border-radius: 0; background: transparent; }

/* Organizer card: heart symbol in a round badge. */
.org-fundora-logo { display: block; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.org-fundora-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
