:root {
  --ink: #242421;
  --muted: #66665f;
  --paper: #fbfaf7;
  --white: #fff;
  --line: #deddd5;
  --green: #16834b;
  --green-dark: #0c6638;
  --green-soft: #e8f4ed;
  --amber: #f5b942;
  --shadow: 0 16px 48px rgba(32, 39, 34, .11);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(222,221,213,.85); background: rgba(251,250,247,.92); backdrop-filter: blur(14px); }
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.deadline-strip { padding: 10px 0; color: white; background: #983b2f; font-size: 12px; }
.deadline-strip .shell { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.deadline-strip strong { text-transform: uppercase; letter-spacing: .06em; }
.deadline-strip span { color: #ffe2dc; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--green); font-size: 14px; }
nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
nav a, .footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover, .footer-links a:hover { color: var(--green); }

.button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(22,131,75,.28); outline-offset: 3px; }
.button-primary { color: white; background: var(--green); box-shadow: 0 8px 22px rgba(22,131,75,.18); }
.button-primary:hover { background: var(--green-dark); box-shadow: 0 10px 26px rgba(22,131,75,.26); }
.button-outline { color: var(--ink); border-color: var(--line); background: var(--white); }
.button-outline:hover { border-color: #b6b5ae; }
.button-small { min-height: 40px; padding-inline: 19px; }
.button-wide { width: 100%; }

.campaign-heading { padding-block: 60px 30px; }
.eyebrow, .section-label { margin: 0 0 13px; color: var(--green-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
h1, h2 { font-family: "Newsreader", Georgia, serif; letter-spacing: -.035em; line-height: 1.03; }
h1 { max-width: 850px; margin: 0; font-size: clamp(45px, 6vw, 76px); }
h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 46px); }
h3 { line-height: 1.25; }
.organizer-line { display: flex; align-items: center; gap: 12px; margin-top: 25px; color: var(--muted); }
.campaign-deck { max-width: 790px; margin: 22px 0 0; color: #4b4b45; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.organizer-line p { margin: 0; font-size: 14px; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d4d3ca; border-radius: 50%; color: var(--green-dark); background: #f0eee7; font-size: 12px; font-weight: 700; }
.avatar-small { width: 36px; height: 36px; }
.avatar-large { width: 66px; height: 66px; font-size: 17px; }

.campaign-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding-bottom: 80px; }
.campaign-main { min-width: 0; }
.hero-media { margin: 0 0 54px; overflow: hidden; border-radius: 22px; background: #ece9df; }
.hero-media img { display: block; aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: contain; }
.hero-media figcaption { padding: 10px 16px; color: var(--muted); background: #f1efe9; font-size: 12px; }
.donation-card { position: sticky; top: 98px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.amount-line { margin-bottom: 14px; }
.amount-line strong { font-size: 23px; }
.amount-line span { color: var(--muted); font-size: 14px; }
.progress { height: 9px; overflow: hidden; border-radius: 99px; background: #e8e8e3; }
.progress-fill { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green), #33a468); transition: width .8s ease; }
.supporter-count { margin: 11px 0 22px; color: var(--muted); font-size: 13px; }
.deadline-chip { width: fit-content; margin-bottom: 14px; padding: 6px 10px; border-radius: 99px; color: #8b3128; background: #fbe9e5; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-milestone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 18px; padding: 10px 12px; border-radius: 9px; background: #f3f1eb; font-size: 11px; }
.sidebar-milestone span { color: var(--muted); }
.sidebar-milestone strong { font-size: 14px; }
.donation-card .button + .button { margin-top: 10px; }
.quick-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.quick-gifts button, .amount-chips button { padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); cursor: pointer; font-weight: 600; }
.quick-gifts button:hover, .amount-chips button:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.direct-note { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.direct-note p { margin: 0; }
.direct-note > span { color: var(--green); }

.mobile-summary, .mobile-actions { display: none; }
.supporter-carousel { margin: 0 0 70px; overflow: hidden; }
.supporter-carousel > p { margin: -6px 0 22px; color: var(--muted); font-size: 13px; }
.supporter-window { overflow: hidden; border-radius: 16px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.supporter-window:focus-visible { outline: 3px solid rgba(22,131,75,.28); outline-offset: 3px; }
.supporter-track { width: max-content; display: flex; animation: supporter-scroll 80s linear infinite; }
.supporter-window:hover .supporter-track, .supporter-window:focus .supporter-track, .supporter-window:focus-within .supporter-track { animation-play-state: paused; }
.supporter-set { display: flex; gap: 14px; padding-right: 14px; }
.supporter-card { width: 210px; min-height: 96px; padding: 17px; display: flex; align-items: center; gap: 13px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 22px rgba(32,39,34,.06); }
.supporter-initials { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.supporter-gift strong, .supporter-gift time { display: block; }
.supporter-gift strong { color: var(--green-dark); font-size: 19px; }
.supporter-gift time { margin-top: 2px; color: var(--muted); font-size: 11px; }
@keyframes supporter-scroll { to { transform: translateX(-50%); } }
.story, .evidence, .medical-role, .funds, .updates, .organizer { max-width: 700px; scroll-margin-top: 100px; }
.story p { font-size: 17px; line-height: 1.75; }
.story-lead { font-size: 21px !important; color: #3e3e39; }
.story h3 { margin: 38px 0 8px; font-family: "Newsreader", Georgia, serif; font-size: 27px; letter-spacing: -.02em; }
.story-callout { display: flex; gap: 14px; margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--green-soft); }
.story-callout span { color: var(--green); }
.story-callout p { margin: 0; font-size: 15px; line-height: 1.55; }
.signature { margin-top: 30px; }
.evidence, .medical-role, .funds, .updates, .organizer { margin-top: 75px; padding-top: 54px; border-top: 1px solid var(--line); }
.evidence-intro, .funds-intro { color: var(--muted); font-size: 15px; }
.evidence-paper { margin-top: 26px; padding: 28px; border: 1px solid #d7d3c9; border-radius: 5px; background: #fffefa; box-shadow: 0 10px 30px rgba(40,39,34,.07); transform: rotate(-.25deg); }
.evidence-meta { padding-bottom: 13px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dcd8ce; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.evidence blockquote { margin: 23px 0 0; font-family: Georgia, serif; }
.evidence blockquote p { margin: 13px 0; color: #35342f; font-size: 16px; line-height: 1.55; }
.evidence mark { padding: 2px 4px; color: inherit; background: #ffe6a8; }
.evidence-note { color: var(--muted); font-size: 11px; }
.medical-role { padding: 40px; border: 0; border-radius: 20px; background: #21362b; color: white; }
.medical-role .section-label { color: #9dd4b3; }
.medical-role p { color: #d8e0da; }
.medical-role ul { margin: 25px 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.medical-role li { position: relative; padding-left: 24px; color: #e9eeea; font-size: 14px; }
.medical-role li::before { content: "✓"; position: absolute; left: 0; color: #79c89a; font-weight: 700; }
.document-card { margin-top: 28px; padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.08); color: white; text-decoration: none; transition: background .18s, transform .18s; }
.document-card:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.document-icon { width: 42px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: #21362b; background: #f4c267; font-size: 10px; font-weight: 800; }
.document-card strong, .document-card small { display: block; }
.document-card strong { font-size: 14px; }
.document-card small { margin-top: 3px; color: #b7c4bc; font-size: 11px; }
.document-arrow { margin-left: auto; color: #9dd4b3; }
.budget-list { margin: 28px 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.budget-row, .budget-total { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); }
.budget-row span { min-width: 0; }
.budget-row strong, .budget-row small { display: block; }
.budget-row strong { font-size: 14px; }
.budget-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.budget-row b { white-space: nowrap; font-size: 16px; }
.budget-row.featured { background: var(--green-soft); }
.budget-total { border: 0; color: white; background: var(--green-dark); }
.budget-total span { font-size: 13px; font-weight: 700; }
.budget-total strong { font-size: 24px; }
.milestone-callout { margin-bottom: 15px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; border: 1px solid #e2b85e; border-radius: 12px; background: #fff7df; }
.milestone-callout span { color: #785c20; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.milestone-callout strong { grid-row: span 2; font-size: 27px; }
.milestone-callout p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.transparency-note { padding: 15px 18px; border-radius: 10px; color: var(--muted); background: #f0eee8; font-size: 13px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.text-button { margin-bottom: 22px; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--green-dark); background: transparent; cursor: pointer; font-weight: 700; }
.update-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.update-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.update-card h3 { margin: 24px 0 8px; font-size: 20px; }
.update-card p { margin: 0; color: var(--muted); }
.organizer-card { display: flex; align-items: center; gap: 17px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.organizer-card h2 { margin: 0 0 4px; font-family: "DM Sans", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.organizer-card p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.organizer-card a { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; color: var(--muted); font-size: 12px; }

footer { padding: 42px 0 100px; border-top: 1px solid var(--line); background: #f0eee8; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 24px; align-items: start; }
.mobile-donate-bar { display: none; }

.donate-dialog, .support-dialog { width: min(760px, calc(100% - 32px)); max-height: min(860px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.support-dialog { width: min(640px, calc(100% - 32px)); }
.donate-dialog::backdrop, .support-dialog::backdrop { background: rgba(27,29,27,.63); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; z-index: 2; float: right; top: 16px; margin: 16px 16px 0 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-head { padding: 42px 44px 25px; background: var(--green-soft); }
.dialog-head h2 { max-width: 550px; margin-bottom: 8px; font-size: 38px; }
.dialog-head > p:last-child { margin: 0; color: var(--muted); }
.giving-heading { padding: 27px 44px 0; display: flex; align-items: center; gap: 13px; }
.giving-heading > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 800; }
.giving-heading strong, .giving-heading small { display: block; }
.giving-heading strong { font-size: 15px; }
.giving-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.giving-heading-secondary { padding-top: 25px; border-top: 1px solid var(--line); }
.amount-picker { padding: 28px 44px 20px; }
.amount-picker label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.amount-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #aaa99f; border-radius: 11px; background: var(--white); }
.amount-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,131,75,.12); }
.amount-input input { min-width: 0; flex: 1; height: 54px; border: 0; outline: 0; font-size: 23px; font-weight: 700; }
.amount-input span:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }
.amount-chips { display: flex; gap: 8px; margin-top: 10px; }
.amount-chips button { flex: 1; }
.payment-grid, .support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 44px 28px; }
.support-grid { padding-top: 20px; }
.payment-option { position: relative; min-height: 82px; padding: 15px; display: flex; align-items: center; gap: 13px; text-align: left; border: 1px solid var(--line); border-radius: 13px; color: inherit; background: var(--white); cursor: pointer; text-decoration: none; }
.payment-option:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(32,39,34,.07); }
.payment-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); font-weight: 800; }
.payment-option strong { display: block; font-size: 14px; }
.payment-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.payment-option .arrow { margin-left: auto; color: #9b9a91; }
.support-option { width: 100%; }
.support-option .payment-icon { color: #785c20; background: #fff3d5; }
.payment-safety { margin: 0 44px 18px; padding: 17px; border-radius: 11px; background: #f1efe9; font-size: 12px; }
.payment-safety p { margin: 4px 0 0; color: var(--muted); }
.legal-note { margin: 0; padding: 0 44px 36px; color: var(--muted); font-size: 11px; }
.support-form { padding: 28px 44px 38px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.form-field label span { color: var(--muted); font-weight: 400; }
.form-field > input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #aaa99f; border-radius: 10px; color: var(--ink); background: var(--white); }
.form-field > input, .form-field select { height: 48px; padding: 0 12px; }
.form-field textarea { min-height: 120px; padding: 12px; resize: vertical; }
.form-field > input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); outline: 3px solid rgba(22,131,75,.12); outline-offset: 0; }
.form-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.amount-input.compact input { height: 48px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; padding: 12px 18px; border-radius: 99px; color: white; background: var(--ink); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  nav { display: none; }
  .campaign-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .donation-card { display: none; }
  .mobile-summary { display: block; margin: -23px 16px 20px; position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 9px 28px rgba(32,39,34,.1); }
  .mobile-summary p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
  .mobile-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-bottom: 55px; }
  .hero-media { margin-bottom: 0; }
  .story, .evidence, .medical-role, .funds, .updates, .organizer { max-width: none; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav-wrap { height: 62px; }
  .deadline-strip { padding: 8px 0; }
  .deadline-strip .shell { flex-direction: column; gap: 1px; }
  .campaign-heading { padding-block: 38px 20px; }
  h1 { font-size: 44px; }
  .campaign-deck { font-size: 17px; }
  .hero-media { margin-inline: -14px; border-radius: 0; }
  .hero-media figcaption { display: none; }
  .mobile-actions { margin-bottom: 50px; }
  .medical-role { margin-inline: -2px; padding: 28px 22px; }
  .evidence-paper { padding: 20px; }
  .evidence-meta { flex-direction: column; gap: 3px; }
  .budget-row, .budget-total { padding: 15px; }
  .budget-row { align-items: start; }
  .milestone-callout { grid-template-columns: 1fr; }
  .milestone-callout strong { grid-row: auto; }
  .section-heading-row { align-items: start; }
  .text-button { display: none; }
  .footer-inner, .footer-links { flex-direction: column; }
  .footer-links { gap: 12px; }
  footer { padding-bottom: 100px; }
  .mobile-donate-bar { position: fixed; z-index: 18; right: 0; bottom: 0; left: 0; display: block; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
  .donate-dialog, .support-dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dialog-head { padding: 34px 22px 22px; }
  .dialog-head h2 { font-size: 31px; }
  .giving-heading { padding: 22px 22px 0; }
  .amount-picker { padding: 22px 22px 18px; }
  .payment-grid, .support-grid { grid-template-columns: 1fr; padding: 0 22px 22px; }
  .support-grid { padding-top: 18px; }
  .payment-safety { margin-inline: 22px; }
  .legal-note { padding-inline: 22px; }
  .support-form { padding: 24px 22px 34px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .supporter-window { overflow-x: auto; mask-image: none; }
  .supporter-track { animation: none; }
  .supporter-set[aria-hidden="true"] { display: none; }
}
