:root {
  --brand-900: #102A43;
  --brand-700: #1C4E78;
  --brand-500: #2E6F9E;
  --gold: #C9A24B;
  --gold-soft: #F0E4C4;
  --ink: #243B53;
  --ink-soft: #627D98;
  --paper: #FBFCFE;
  --surface: #FFFFFF;
  --line: #E4E7EB;
  --mist: #F0F4F8;
  --success: #2F6F4F;
  --success-soft: #E4F0E9;
  --font-head: 'Spectral', serif;
  --font-body: 'Public Sans', sans-serif;
  --maxw: 60rem;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(16,42,67,.06), 0 8px 24px rgba(16,42,67,.07);
  --shadow-lift: 0 2px 4px rgba(16,42,67,.08), 0 16px 40px rgba(16,42,67,.12);
  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem;
  --s6: 3rem; --s7: 4rem; --s8: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0 0 var(--s3); }
a { color: var(--brand-700); }

/* ---- Layout / Padding Scale ---- */
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--s7); }
.section--band { background: var(--mist); }

.card, .acct-card, .tally-card { 
  background: var(--surface); border-radius: var(--r-lg); 
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  padding: 20px;
}
@media (min-width: 768px) {
  .card, .acct-card, .tally-card { padding: var(--s5); }
}

/* ---- Accessibility helpers ---- */
.skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip:focus { position: fixed; top: var(--s3); left: var(--s3); width: auto; height: auto; padding: .75rem 1.25rem; margin: 0; overflow: visible; clip: auto; background: var(--brand-900); color: #fff; border-radius: var(--r); font-weight: 600; z-index: 9999; }
:where(a, button, input, select, label, [tabindex]):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .65rem 1.5rem; border-radius: var(--r-pill); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--brand-900); }
.btn-gold:hover { background: #b88f37; }
.btn-ghost { background: transparent; color: var(--brand-900); border-color: var(--brand-700); }
.btn-ghost:hover { background: rgba(28, 78, 120, .07); }
.btn-wa { background: var(--success); color: #fff; width: 100%; }
.btn-wa:hover { background: #235740; }

/* ---- The crest ---- */
/* Note: Each site MUST define --logo-url locally in its inline :root block (base64 or URL). */
.crest { display: inline-block; width: 64px; height: 64px; background: var(--logo-url) center/contain no-repeat; flex: none; }

/* ---- Top bar (Used by give, harvest, join) ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 252, 254, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .6rem; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.topbar-social { flex: none; width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--brand-900); color: var(--gold); text-decoration: none; transition: background-color 0.12s; }
.topbar-social:hover, .topbar-social:focus-visible { background: var(--brand-700); outline: 2px solid var(--gold); outline-offset: 2px; }
.topbar-social svg { width: 20px; height: 20px; }
@media (max-width: 500px) {
  .brand-mark .name { display: none; }
  .topbar .btn { padding: .5rem .85rem; font-size: .95rem; }
}
.brand-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark .crest { width: 44px; height: 44px; }
.brand-mark .name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.topbar .btn { min-height: 48px; padding: .5rem 1.15rem; font-size: 1rem; }

/* ---- Section scaffolding (shared) ---- */
.section-head { text-align: center; margin-bottom: var(--s5); }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.25rem); color: var(--brand-900); }
.section-head p { color: var(--ink-soft); margin-top: .4rem; }

/* ---- Contact ---- */
.contact-item { display: flex; gap: var(--s3); align-items: flex-start; text-decoration: none; color: inherit; min-height: 44px; }
.contact-item:is(a):hover .ic { background: var(--brand-700); }
.contact-item .ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--brand-900); color: var(--gold); }
.contact-item .ct-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.contact-item span { font-size: 1.08rem; color: var(--ink); }
.contact-item:is(a):hover span { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer { background: var(--brand-900); color: #dce6f1; text-align: center; padding: var(--s6) 0; }
.site-footer .crest { width: 48px; height: 48px; }
.site-footer h3 { color: #fff; margin-top: var(--s2); }
.site-footer .tag { color: #aac2dc; }
.site-footer a { color: #cfe0f2; display: inline-block; min-height: 44px; padding: 10px; margin: -10px; }

/* ---- Gallery Carousel ---- */
.carousel { position: relative; max-width: 900px; margin: 0 auto; }
.carousel__track-wrap { overflow: hidden; border-radius: var(--r); }
.carousel__track { display: flex; list-style: none; padding: 0; margin: 0; transition: transform 0.4s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }
.carousel__slide { flex: 0 0 100%; width: 100%; }
.carousel__slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s3); }
.carousel__btn { background: var(--brand-900); border: none; border-radius: var(--r-pill); width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.carousel__btn:hover, .carousel__btn:focus { background: var(--brand-700); color: var(--gold-soft); outline: 2px solid var(--brand-500); outline-offset: 2px; }
.carousel__btn svg { width: 24px; height: 24px; }
.carousel__nav { display: flex; gap: 12px; }
.carousel__dot { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; position: relative; cursor: pointer; padding: 0; transition: opacity 0.2s; }
.carousel__dot::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; border: 2px solid var(--brand-900); transition: background-color 0.2s; }
.carousel__dot.current-dot::after { background: var(--brand-900); }
.carousel__dot:focus { outline: 2px solid var(--brand-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}






/* ---- Body Copy Measure ---- */
.notice p, .step p, .fund-blurb, .verify-note, .prose p, .lede { max-width: 65ch; }

/* ---- Hero (Unified) ---- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: var(--hero-padding);
}
.hero .crest {
  display: block; width: var(--hero-crest-size); height: var(--hero-crest-size); margin: 0 auto var(--s4);
}
.hero h1 {
  font-size: var(--hero-h1-size); font-weight: 600; letter-spacing: -.01em; margin: 0;
}
.hero .eyebrow, .hero .tag {
  display: inline-block; font-weight: 600; text-transform: uppercase; font-size: .85rem; margin-bottom: var(--s3);
}
.hero p, .hero .lede {
  font-size: 1.15rem; max-width: 38rem; margin: var(--s3) auto 0;
}
.hero .edge {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; display: block;
}
.hero .cta-row { display: flex; flex-direction: column; gap: var(--s2); align-items: center; margin-top: var(--s4); }
@media (min-width: 560px) { .hero .cta-row { flex-direction: row; justify-content: center; } }
.hero .trust { margin-top: var(--s4); font-size: 1rem; font-style: italic; letter-spacing: .01em; }

/* ---- Hero Modifiers ---- */
.hero--light {
  --hero-padding: var(--s8) 0 var(--s6);
  --hero-crest-size: 84px;
  --hero-h1-size: clamp(2rem, 5vw, 3rem);
  background: radial-gradient(1200px 420px at 50% -10%, var(--mist), transparent 70%);
}
.hero--light h1 { color: var(--brand-900); }
.hero--light p, .hero--light .lede { color: var(--ink-soft); }
.hero--light .eyebrow, .hero--light .tag { color: var(--brand-500); letter-spacing: .04em; }

.hero--dark {
  --hero-padding: var(--s7) 0 calc(var(--s8) + 2.5rem);
  --hero-crest-size: 104px;
  --hero-h1-size: clamp(2.3rem, 7vw, 3.5rem);
  background: radial-gradient(120% 80% at 50% -10%, rgba(201,162,75,.20), transparent 55%),
              linear-gradient(180deg, var(--brand-900) 0%, #163b5b 60%, var(--brand-700) 100%);
  color: #fff;
}
.hero--dark h1 { color: #fff; }
.hero--dark p, .hero--dark .lede { color: rgba(255,255,255,.92); }
.hero--dark .eyebrow, .hero--dark .tag { color: var(--gold-soft); letter-spacing: .18em; }
.hero--dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero--dark .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero--dark .trust { color: rgba(255,255,255,.82); }
.hero--dark .crest { box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); filter: drop-shadow(0 8px 22px rgba(0,0,0,.35)); border-radius: 50%; }



/* Flyer lightbox */ .flyer-lightbox{ position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; background:rgba(15,23,42,.88); padding:2rem; box-sizing:border-box; } .flyer-lightbox.open{ display:flex; } .flyer-lightbox img{ max-width:100%; max-height:100%; width:auto; height:auto; border-radius:.5rem; box-shadow:0 20px 50px rgba(0,0,0,.5); } .flyer-lightbox .flyer-close{ position:absolute; top:1rem; right:1.25rem; width:2.75rem; height:2.75rem; border:none; border-radius:999px; background:rgba(255,255,255,.92); color:#0f172a; font-size:1.5rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }