/* Love More Organization — site styles (campaign page + institutional pages)
   Tokens: STYLEGUIDE.md. Type family: Figtree (one family, weights 400–800).
   Contrast: --red-primary on white 5.9:1; --muted (#6B6F74) on white 4.9:1; white on --red-dark 9.6:1.
   Red is used only for Donate, progress, links, selected states and small accents. */

:root {
  /* palette */
  --red-primary: #C8101E;
  --red-dark: #8F0D18;
  --red-bright: #E32636;
  --coral: #F06F67;
  --salmon: #F49A8E;
  --charcoal: #171A1D;
  --gray-dark: #343434;
  --gray-light: #F5F5F5;
  --border: #E6E6E6;
  --border-strong: #DADADA;
  --border-light: #F0F0F0;
  --track: #ECECEC;
  --white: #FFFFFF;
  --muted: #6B6F74;
  --line: rgba(23, 26, 29, .10);
  --soft: rgba(200, 16, 30, .08);
  --tint: #FBDDD8;
  --tint-soft: #FDF0EE;

  /* 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);

  /* Campaign checkout and motion */
  --sheet-max: 560px; --leave-max: 360px; --sheet-logo-h: 28px;
  --sheet-title-size: 26px; --sheet-amount-size: 40px; --ticket-size: 56px;
  --tap-size: 44px; --leave-heart-size: 48px; --activity-avatar: 24px;
  --activity-avatar-small: 24px; --funding-track-h: 8px; --r-amount: 16px;
  --dot-size: 8px; --dot-active-size: 24px;
  --focus-width: 3px; --focus-offset: 3px;
  --motion-button: 150ms; --motion-ticket-press: 120ms; --motion-heart: 600ms;
  --motion-amount: 200ms; --motion-sheet-in: 320ms; --motion-sheet-out: 200ms;
  --motion-intercept: 220ms; --motion-sticky: 300ms; --motion-dots: 250ms;
  --motion-progress: 900ms; --motion-ticker: 250ms; --motion-confetti: 1200ms;
  --motion-stagger: 40ms; --motion-feed: 320ms; --motion-skeleton: 1400ms;
  --ease-out: ease-out; --ease-progress: cubic-bezier(.22, 1, .36, 1); --ease-standard: ease;
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --lift-y: -1px; --press-scale: .98; --ticket-press-scale: .97; --heart-scale: 1.15;
  --tick-y: 4px; --activity-y: 6px; --feed-y: 8px;
  --sheet-start-scale: .96; --intercept-start-scale: .94; --backdrop-blur: 6px;
  --backdrop-color: rgba(23, 26, 29, .45); --note-color: #FFF3C4;
  --skeleton-base: var(--gray-light); --skeleton-shine: var(--track);
  --dot-inactive: rgba(255, 255, 255, .55);
  --shadow-donate: 0 6px 16px rgba(200, 16, 30, .22);
  --shadow-sheet: 0 24px 80px rgba(23, 26, 29, .24);
  --feed-skeleton-h: 76px;
}

/* ---------- 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-dark); 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); }

/* Sandbox remains visibly distinct even when production HTTPS/security is enabled. */
.sandbox-notice { padding: var(--s-2) var(--gutter); background: var(--note-color); color: var(--charcoal); font-size: var(--fs-small); line-height: var(--lh-small); text-align: center; }

/* ---------- 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; }
.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: cover; object-position: 50% 30%; display: block; }
.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:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: var(--s-1); z-index: 1; display: flex; justify-content: center; gap: 0; pointer-events: none; }
.carousel-dot { display: grid; place-items: center; width: var(--tap-size); height: var(--tap-size); padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; }
.carousel-dot::before { content: ""; width: var(--dot-size); height: var(--dot-size); border-radius: var(--r-pill); background: var(--dot-inactive); transition: width var(--motion-dots) var(--ease-out), background-color var(--motion-dots) var(--ease-standard); }
.carousel-dot[aria-selected="true"]::before { width: var(--dot-active-size); background: var(--white); }
@media (hover: none) { .carousel-arrow { display: none; } }
.chip { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-xs); line-height: var(--lh-small); font-weight: 600; }
.chip-verified { color: var(--red-bright); }
.chip-pending { color: var(--muted); }

/* ---------- 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-primary); }
.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; flex: 1; }
.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); }
.funding-track { height: var(--funding-track-h); margin-top: var(--s-3); overflow: hidden; border-radius: var(--r-pill); background: var(--soft); }
.funding-fill { height: 100%; width: 0; border-radius: inherit; background: var(--red-primary); }
.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); }
.fc-donate:hover { background: var(--red-dark); }
.fc-share { background: var(--soft); color: var(--red-primary); }
.fc-share:hover { background: rgba(200, 16, 30, .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; }
.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: var(--shadow-float); transform: translateY(100%); visibility: hidden; transition: transform var(--motion-sticky) var(--ease-out), visibility 0s linear var(--motion-sticky); font-variant-numeric: tabular-nums; }
.sticky-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform var(--motion-sticky) var(--ease-out), 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-primary); }
.sticky-bar-donate { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); flex: 0 0 auto; min-height: var(--tap-size); padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill); background: var(--red-primary); color: var(--white); font-size: var(--fs-small); font-weight: 700; line-height: 1; cursor: pointer; }
.sticky-bar-donate:hover { background: var(--red-dark); }
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-dark); 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); }
.partnership { margin-top: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-field); padding: var(--s-4); }
.partnership-title { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--charcoal); }
.partnership-text { margin-top: var(--s-1); font-size: var(--fs-small); line-height: var(--lh-small); 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-dark); 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-dark); 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: 36px; width: auto; }
.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); }

/* ---------- Fixed-ticket donation sheet ---------- */
body.donate-open { overflow: hidden; }
.donate-sheet { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--white); color: var(--gray-dark); overscroll-behavior: contain; }
.donate-sheet::backdrop, .donate-leave::backdrop { background: var(--backdrop-color); backdrop-filter: blur(var(--backdrop-blur)); }
.donate-sheet.is-open { animation: sheet-in-mobile var(--motion-sheet-in) var(--ease-out) both; }
.donate-sheet.is-closing { animation: sheet-out-mobile var(--motion-sheet-out) var(--ease-in) both; }
.donate-sheet.is-open::backdrop { animation: backdrop-in var(--motion-sheet-in) var(--ease-out) both; }
.donate-sheet.is-closing::backdrop { animation: backdrop-out var(--motion-sheet-out) var(--ease-in) both; }
.donate-form { padding-bottom: env(safe-area-inset-bottom); }
.sheet-header { display: grid; grid-template-columns: var(--tap-size) minmax(0, 1fr) var(--tap-size); align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3) 0; padding-top: calc(var(--s-3) + env(safe-area-inset-top)); }
.sheet-logo { justify-self: center; height: var(--sheet-logo-h); width: auto; }
.sheet-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-size); height: var(--tap-size); flex: 0 0 var(--tap-size); padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--charcoal); cursor: pointer; transition: background-color var(--motion-button) var(--ease-standard); }
.sheet-icon:hover { background: var(--gray-light); }
.sheet-body { padding: var(--s-5) var(--s-5) var(--s-6); }
 .donate-form h2 { font-size: var(--sheet-title-size); font-weight: 800; line-height: var(--lh-h2); letter-spacing: var(--ls-h2); overflow-wrap: anywhere; text-align: center; }
 .donate-remaining { margin-top: var(--s-2); min-height: var(--lh-small); color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); text-align: center; font-variant-numeric: tabular-nums; }
.donation-amounts { margin: var(--s-6) 0 var(--s-4); }
.donation-amounts legend { font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--s-4); }
 .amount-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
.amount-ticket { display: block; position: relative; min-width: 0; cursor: pointer; }
.amount-ticket input[type="radio"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ticket-face { position: relative; display: flex; align-items: center; justify-content: center; height: var(--ticket-size); border: 1px solid var(--border-strong); border-radius: var(--r-field); background: var(--white); color: var(--charcoal); font-size: var(--fs-h3); font-weight: 700; transition: transform var(--motion-ticket-press) var(--ease-out), color var(--motion-button) var(--ease-standard), background-color var(--motion-button) var(--ease-standard), border-color var(--motion-button) var(--ease-standard); }
.amount-ticket:hover .ticket-face { border-color: var(--red-primary); }
 .amount-ticket input[type="radio"]:active + .ticket-face { transform: scale(var(--ticket-press-scale)); }
.amount-ticket input[type="radio"]:checked + .ticket-face { background: var(--red-primary); color: var(--white); border-color: var(--red-primary); }
/* Unconfigured destinations stay visible but cannot be chosen. */
.amount-ticket.is-unavailable { cursor: default; }
.amount-ticket.is-unavailable input[type="radio"] { cursor: default; }
.amount-ticket.is-unavailable .ticket-face { opacity: .5; }
.amount-ticket.is-unavailable:hover .ticket-face { border-color: var(--border-strong); }
.amount-ticket-custom .ticket-face { padding: 0 var(--s-2); font-size: var(--fs-small); line-height: var(--lh-small); text-align: center; }
 .suggested-badge { position: absolute; bottom: calc(-1 * var(--s-3)); left: 50%; transform: translateX(-50%); padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--tint-soft); color: var(--red-primary); font-size: var(--fs-micro); font-weight: 700; line-height: var(--lh-xs); white-space: nowrap; }
 .donate-sheet.is-open .suggested-badge { animation: backdrop-in var(--motion-ticker) var(--ease-out) both; }
 .donation-total { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--s-20); padding: var(--s-3) var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--r-amount); color: var(--charcoal); font-variant-numeric: tabular-nums; }
.amount-currency { display: flex; flex-direction: column; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.amount-currency > :first-child { font-size: var(--fs-h3); }
.amount-currency > :last-child { color: var(--muted); font-size: var(--fs-micro); }
.amount-number { display: inline-block; font-size: var(--sheet-amount-size); line-height: var(--lh-h1); font-weight: 800; letter-spacing: var(--ls-h1); }
.amount-number.is-ticking { animation: amount-tick var(--motion-amount) var(--ease-out); }
.amount-custom-input { flex: 1; width: 0; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-family: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.amount-custom-input::placeholder { color: var(--muted); opacity: .6; }
.donate-sheet .amount-custom-input:focus-visible { outline: none; }
.donation-total:has(.amount-custom-input:focus-visible) { outline: var(--focus-width) solid var(--red-bright); outline-offset: var(--focus-offset); }
.custom-amount-error { margin-top: var(--s-2); color: var(--red-primary); font-size: var(--fs-small); line-height: var(--lh-small); }
@media (max-width: 359px) { .amount-custom-input { font-size: var(--fs-h2); } }
.donate-submit { min-height: var(--ticket-size); margin-top: var(--s-5); font-weight: 700; }
.donate-trust { margin-top: var(--s-5); padding: var(--s-4); border: 1px solid var(--border-light); border-radius: var(--r-field); background: var(--gray-light); text-align: center; color: var(--muted); font-size: var(--fs-micro); line-height: var(--lh-xs); }
.donate-trust p + p { margin-top: var(--s-2); }
.donate-trust-title { display: flex; align-items: center; justify-content: center; gap: var(--s-2); font-weight: 600; color: var(--charcoal); }
.donate-trust-title svg { flex-shrink: 0; }
.fee-note { margin-top: var(--s-3); font-size: var(--fs-micro); line-height: var(--lh-xs); color: var(--muted); }
.dev-note { margin-top: var(--s-4); padding: var(--s-3); border-radius: var(--r-field); background: var(--note-color); color: var(--charcoal); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Only real contribution data is inserted into these initially hidden slots. */
.activity { min-width: 0; font-size: var(--fs-micro); line-height: var(--lh-xs); color: var(--muted); }
[data-activity-content] { display: flex; align-items: center; gap: var(--s-2); min-width: 0; opacity: 1; transform: translateY(0); transition: opacity var(--motion-ticker) var(--ease-standard), transform var(--motion-ticker) var(--ease-out); }
[data-activity-content].is-changing { opacity: 0; transform: translateY(var(--activity-y)); }
 [data-activity-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .avatar { flex-basis: var(--activity-avatar); width: var(--activity-avatar); height: var(--activity-avatar); font-size: var(--fs-micro); }
.activity-card { margin-block: var(--s-3) var(--s-2); }
.activity-card a { color: var(--muted); text-decoration: none; }
.activity-card a:hover { color: var(--red-primary); }
.activity-chevron { flex-shrink: 0; margin-left: auto; }
.activity-sheet { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-4); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); border: 1px solid var(--border-light); border-radius: var(--r-field); background: var(--gray-light); }
.activity-sheet [data-activity-content] { flex: 1; }
.activity-sticky { margin-top: var(--s-1); }
.activity-sticky .avatar { flex-basis: var(--activity-avatar-small); width: var(--activity-avatar-small); height: var(--activity-avatar-small); }
.activity-sticky [data-activity-text] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* The leave intercept remains a small centered dialog on every screen. */
.donate-leave { width: calc(100% - var(--s-8)); max-width: var(--leave-max); max-height: calc(100dvh - var(--s-8)); padding: var(--s-7) var(--s-6) var(--s-4); border: 0; border-radius: var(--r-card); background: var(--white); color: var(--muted); text-align: center; box-shadow: var(--shadow-sheet); }
.donate-leave.is-open { animation: intercept-in var(--motion-intercept) var(--ease-out) both; }
.donate-leave.is-open::backdrop { animation: backdrop-in var(--motion-intercept) var(--ease-out) both; }
 .leave-heart { display: inline-block; width: var(--leave-heart-size); height: var(--leave-heart-size); padding: var(--s-3); border-radius: var(--r-pill); background: var(--tint-soft); color: var(--red-primary); }
.donate-leave h2 { margin-top: var(--s-4); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 800; }
.donate-leave p { margin-top: var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small); }
.donate-leave .btn { min-height: var(--ticket-size); margin-top: var(--s-6); }
 .leave-button { width: 100%; min-height: var(--tap-size); margin-top: var(--s-2); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: var(--fs-small); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: var(--s-1); }
.leave-button:hover { background: var(--gray-light); color: var(--charcoal); }

/* Finite, user-triggered micro-interactions; the resting state is always visible. */
:is(.campaign, .sticky-bar, .donate-sheet, .donate-leave) :focus-visible { outline: var(--focus-width) solid var(--red-bright); outline-offset: var(--focus-offset); }
.amount-ticket input[type="radio"]:focus-visible { outline: none; }
.amount-ticket input[type="radio"]:focus-visible + .ticket-face { outline: var(--focus-width) solid var(--red-bright); outline-offset: var(--focus-offset); }
:is(.fc-donate, .fc-share, .sticky-bar-donate, .donate-sheet .btn, .donate-leave .btn) { transition: transform var(--motion-button) var(--ease-out), box-shadow var(--motion-button) var(--ease-out), background-color var(--motion-button) var(--ease-standard), color var(--motion-button) var(--ease-standard); }
@media (hover: hover) {
  :is(.fc-donate, .fc-share, .sticky-bar-donate, .donate-sheet .btn, .donate-leave .btn):hover { transform: translateY(var(--lift-y)); box-shadow: var(--shadow-donate); }
}
:is(.fc-donate, .fc-share, .sticky-bar-donate, .donate-sheet .btn, .donate-leave .btn):active { transform: scale(var(--press-scale)); box-shadow: none; }
[data-heart] { display: inline-block; flex-shrink: 0; transform-origin: center; }
[data-heart].is-pulsing { animation: heart-pulse var(--motion-heart) var(--ease-out); }
.success-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 110; pointer-events: none; }
.skeleton, .is-skeleton { position: relative; overflow: hidden; border-radius: var(--r-field); background: var(--skeleton-base); color: transparent !important; }
.is-skeleton * { visibility: hidden; }
.skeleton::after, .is-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent); transform: translateX(-100%); animation: skeleton-shimmer var(--motion-skeleton) linear infinite; }
.feed-skeleton { height: var(--feed-skeleton-h); margin-block: var(--s-3); }
.feed-list.is-loading > :not(.feed-skeleton) { position: relative; overflow: hidden; border-radius: var(--r-field); background: var(--skeleton-base); }
.feed-list.is-loading > :not(.feed-skeleton) > * { visibility: hidden; }
.feed-list.is-loading > :not(.feed-skeleton)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent); transform: translateX(-100%); animation: skeleton-shimmer var(--motion-skeleton) linear infinite; }
.is-loading .ring { opacity: .35; }
.feed-enter { animation: feed-in var(--motion-feed) var(--ease-out) both; }
@keyframes heart-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(var(--heart-scale)); } }
@keyframes amount-tick { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0; transform: translateY(var(--tick-y)); } }
@keyframes sheet-in-mobile { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-out-mobile { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes sheet-in-desktop { from { opacity: 0; transform: scale(var(--sheet-start-scale)); } to { opacity: 1; transform: scale(1); } }
@keyframes sheet-out-desktop { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(var(--sheet-start-scale)); } }
@keyframes intercept-in { from { opacity: 0; transform: scale(var(--intercept-start-scale)); } to { opacity: 1; transform: scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
@keyframes feed-in { from { opacity: 0; transform: translateY(var(--feed-y)); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 360px) {
  .amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .donate-sheet { width: calc(100% - var(--s-8)); max-width: var(--sheet-max); height: auto; max-height: calc(100dvh - var(--s-8)); margin: auto; border-radius: var(--r-card); box-shadow: var(--shadow-sheet); }
  .donate-sheet.is-open { animation-name: sheet-in-desktop; }
  .donate-sheet.is-closing { animation-name: sheet-out-desktop; }
  .sheet-body { padding: var(--s-5) var(--s-8) var(--s-7); }
}

/* ---------- 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); }
  .activity-sticky { display: none; }
  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, dialog::backdrop { transition: none !important; animation: none !important; }
  [data-activity-content].is-changing { opacity: 1; transform: none; }
  :is(.fc-donate, .fc-share, .sticky-bar-donate, .donate-sheet .btn, .donate-leave .btn):is(:hover, :active), .amount-ticket input[type="radio"]:active + .ticket-face { transform: none; }
  html { scroll-behavior: auto; }
}
