:root {
  color-scheme: light;
  --navy: #11374a;
  --teal: #147c79;
  --teal-dark: #106561;
  --cream: #f6f9f8;
  --gold: #e8ac59;
  --ink: #193747;
  --muted: #526b75;
  --line: #d4e2de;
  --error: #9c2c2c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #b46e13; outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 18px; border-radius: 8px; background: var(--navy); color: white; z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1060px; margin: auto; padding: 12px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--navy); text-decoration: none; min-width: 0; }
.brand img { width: 57px; height: auto; display: block; flex: 0 0 auto; }
.brand > span { display: grid; gap: 2px; }
.brand strong { font-size: 20px; letter-spacing: -.025em; line-height: 1.2; }
.brand span span { font-size: 12px; line-height: 1.25; }
.home-link { flex: 0 0 auto; font-size: 14px; font-weight: 650; padding: 10px 0 10px 10px; }
.page-shell { max-width: 1060px; margin: auto; padding: 36px 24px 54px; }
.page-intro { margin: 0 0 22px; }
.eyebrow { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; margin: 0 0 6px; }
h1 { color: var(--navy); font-size: clamp(29px, 4vw, 40px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 10px; }
.page-intro > p:last-child { margin: 0; color: var(--muted); max-width: 55ch; }
h2 { color: var(--navy); font-size: 22px; letter-spacing: -.025em; line-height: 1.25; margin: 0; }
h3 { font-size: 16px; margin: 0 0 6px; }
.donation-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 26px; align-items: start; }
.giving-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 8px 30px #163d4709; min-width: 0; }
.card-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.currency-label { color: var(--teal-dark); background: #e9f4ef; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-box, .error-box { border: 1px solid var(--line); background: var(--cream); border-radius: 9px; padding: 14px; font-size: 14px; overflow-wrap: anywhere; }
.status-box { margin: 0; }
.error-box { color: var(--error); background: #fff4f1; border-color: #e9bdb6; margin: 12px 0; }
.error-box p { margin: 0; }
.error-box p + p { margin-top: 7px; }
.error-detail { font-size: 12px; }
.draft-status { font-size: 13px; color: var(--teal-dark); padding: 9px 12px; background: #eaf4ee; border-radius: 8px; margin: 0 0 17px; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 17px; }
legend, .input-field > label { font-weight: 750; font-size: 14px; padding: 0; margin-bottom: 7px; }
.choice-grid { display: grid; gap: 8px; }
.amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frequency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: 8px; min-height: 46px; border: 1px solid #b8ceca; border-radius: 9px; padding: 10px; cursor: pointer; font-size: 14px; font-weight: 650; min-width: 0; }
.choice:has(input:checked) { background: #e7f4ef; border-color: var(--teal-dark); box-shadow: inset 0 0 0 1px var(--teal-dark); color: #0e5755; }
.choice:has(input:focus-visible) { outline: 3px solid #b46e13; outline-offset: 2px; }
.choice:has(input:disabled) { cursor: default; }
.choice-unavailable { grid-column: 1 / -1; background: #fff6ef !important; border-color: #d59e61 !important; color: var(--ink) !important; box-shadow: none !important; font-weight: 500; }
.choice input, .checkbox-label input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: var(--teal-dark); }
.choice > span { min-width: 0; overflow-wrap: anywhere; }
.choice small { display: block; font-size: 11px; line-height: 1.35; font-weight: 400; margin-top: 2px; }
.input-field { margin-bottom: 17px; }
.input-field > label { display: block; }
.input-field input, .input-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #a8c0bc; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ink); }
.input-field input { min-height: 46px; font-size: 17px; }
.input-field textarea { resize: vertical; }
.input-field input[aria-invalid="true"], .input-field textarea[aria-invalid="true"] { border-color: var(--error); }
.input-field textarea:disabled { color: var(--muted); background: var(--cream); }
.field-hint { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.field-error { font-size: 13px; color: var(--error); margin: 6px 0 0; font-weight: 600; }
.optional-field { margin-bottom: 17px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; cursor: pointer; }
.checkbox-label input { margin-top: 2px; }
.text-button { color: var(--teal-dark); background: transparent; padding: 8px 0; border: 0; text-decoration: underline; font-size: 13px; }
.gift-summary { border-top: 1px solid var(--line); margin: 3px 0 14px; padding-top: 12px; }
.gift-summary > div { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.gift-summary > div span { font-size: 14px; font-weight: 650; }
.gift-summary strong { font-size: 23px; color: var(--navy); line-height: 1.2; }
.gift-summary p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 750; font-size: 15px; text-align: center; border: 1px solid transparent; }
.primary-button { background: var(--teal-dark); color: #fff; }
.primary-button:hover { background: #0d5552; }
#donate-submit { width: 100%; }
.secondary-button { color: var(--teal-dark); border-color: #a8c0bc; background: #fff; }
.checkout-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.support-card { background: linear-gradient(135deg, #11374a, #176b70); border-radius: 18px; color: #e7f3ef; padding: 28px; }
.support-mark { display: inline-block; color: var(--gold); font-size: 28px; line-height: 1; margin-bottom: 15px; }
.support-card h2 { color: #fff; font-size: 27px; line-height: 1.18; }
.support-card p { font-size: 14px; margin: 14px 0 0; }
.support-contact { border-top: 1px solid #ffffff30; padding-top: 20px; margin-top: 24px; }
.support-contact h3 { color: #fff; }
.support-contact a { display: block; color: #e3f4ef; margin-top: 5px; font-size: 14px; }
.mission-link { display: inline-flex; gap: 12px; color: #f6c584; margin-top: 25px; font-size: 13px; font-weight: 650; }
.page-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 20px 24px; font-size: 12px; }
.page-footer > div { max-width: 1012px; margin: auto; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.page-footer p { margin: 0; }
.receipt-shell { max-width: 750px; padding-top: 50px; padding-bottom: 70px; }
.receipt-card { text-align: center; padding: 40px; }
.receipt-mark { display: inline-block; margin-bottom: 17px; color: var(--teal-dark); font-size: 34px; line-height: 1; }
.receipt-card h1 { font-size: clamp(27px, 4vw, 36px); }
.receipt-card #receipt-message { margin: 17px 0; }
.receipt-guidance { font-size: 14px; color: var(--muted); margin: 18px 0; }
.receipt-details { text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.receipt-details dt { font-size: 14px; color: var(--muted); }
.receipt-details dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.receipt-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.receipt-contact { font-size: 13px; margin: 22px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .donation-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-shell { max-width: 610px; padding-top: 25px; }
  .support-card { padding: 24px; }
  .support-card h2 { font-size: 24px; }
  .support-mark { display: none; }
  .support-contact { margin-top: 17px; padding-top: 15px; }
  .mission-link { margin-top: 17px; }
}
@media (max-width: 440px) {
  .header-inner { padding: 9px 16px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; }
  .brand strong { font-size: 17px; }
  .brand span span { font-size: 10px; max-width: 175px; }
  .home-link { font-size: 12px; padding-left: 0; }
  .page-shell { padding: 19px 14px 32px; }
  .page-intro { margin-bottom: 16px; }
  .page-intro > p:last-child { font-size: 14px; line-height: 1.4; }
  .eyebrow { font-size: 10px; margin-bottom: 5px; }
  h1 { font-size: 29px; margin-bottom: 8px; }
  .giving-card { padding: 17px; border-radius: 14px; }
  .card-heading { margin-bottom: 15px; gap: 8px; }
  .card-heading h2 { font-size: 19px; }
  .currency-label { font-size: 11px; padding: 3px 8px; }
  fieldset, .input-field { margin-bottom: 14px; }
  .choice { padding: 9px 8px; gap: 6px; font-size: 13px; min-height: 44px; }
  .choice input { width: 15px; height: 15px; flex-basis: 15px; }
  .gift-summary { margin-bottom: 12px; padding-top: 10px; }
  .gift-summary strong { font-size: 22px; }
  .support-card { border-radius: 14px; padding: 22px; }
  .page-footer { padding: 18px; }
  .receipt-shell { padding-top: 26px; padding-bottom: 40px; }
  .receipt-card { padding: 25px 18px; }
  .receipt-actions { flex-direction: column; }
  .receipt-details { padding: 12px; }
}
@media (max-width: 350px) {
  .brand span span { max-width: 154px; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giving-card { padding: 15px; }
  .frequency-grid { gap: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary-button, .choice { transition: background-color .15s, border-color .15s; }
}
