/* ==========================================================================
   The Eagle Foundation — site styles
   Colors come from the logo. Text colors are chosen to pass WCAG AA.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var-latin-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* brand (exact from logo file) */
  --sun: #F9A825;        /* sun orange: fills, never small text on white */
  --ray: #FFEE58;        /* ray yellow: fills only */
  --cocoa: #3E2723;      /* tagline brown: main text */
  /* supporting */
  --royal: #1D4FB0;      /* "Happiness Is" blue: links, buttons */
  --royal-dark: #163C86;
  --grass: #2E9E4F;      /* fills */
  --grass-text: #1B6E36; /* green text on light backgrounds */
  --sky: #BFE6FA;        /* soft background */
  --sky-strong: #7FCBF0;
  --cream: #FFF8E7;      /* page background */
  --paper: #FFFFFF;
  --sand: #FFF0C7;
  --ink-soft: #5D4037;   /* secondary text on cream (AA) */
  --focus: #1D4FB0;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(62, 39, 35, .12);
  --shadow-pop: 0 6px 0 rgba(62, 39, 35, .18);
  --wrap: 1180px;
  --font-display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--royal); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--royal-dark); text-decoration-thickness: .14em; }
strong { font-weight: 800; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--cocoa); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* TODO placeholders — deliberately loud so nothing ships by accident */
mark.todo {
  background: repeating-linear-gradient(45deg, #FFF59D, #FFF59D 10px, #FFE082 10px, #FFE082 20px);
  color: #3E2723; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em;
  padding: .1em .35em; border-radius: 4px; outline: 2px dashed #E65100;
}

.staging-banner {
  background: #B71C1C; color: #fff; text-align: center; font-weight: 800; padding: 6px 12px; font-size: .9rem;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--cocoa); color: #FFF8E7; font-size: .85rem; line-height: 1.4;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; padding: 7px 0; text-align: center;
}
.topbar strong { color: var(--ray); font-weight: 800; }
@media (max-width: 640px) { .topbar .dot { display: none; } .topbar span:last-child { flex-basis: 100%; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid var(--ray);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cocoa); margin-right: auto; }
.brand:hover { color: var(--cocoa); }
/* The Foundation's actual logo (sun + wordmark), unaltered */
.brand-logo { display: block; width: 112px; height: 112px; flex: none; margin: 4px 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--cocoa);
}
.main-nav a:hover { background: var(--sand); color: var(--cocoa); }
.main-nav a[aria-current="page"] { background: var(--ray); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: var(--paper); border: 2px solid var(--cocoa); border-radius: 999px; color: var(--cocoa);
    font: 600 1rem var(--font-display); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 4px; padding: 12px 16px 20px;
    background: var(--cream); border-bottom: 3px solid var(--ray); box-shadow: var(--shadow);
  }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 1.15rem; }
}
@media (max-width: 520px) {
  .brand-logo { width: 84px; height: 84px; margin: 2px 0; }
  .header-inner { gap: 8px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 8px 12px; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--royal); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1.08rem/1.1 var(--font-display); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform .18s cubic-bezier(.3, 1.8, .5, 1), box-shadow .18s, background-color .18s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px) scale(1.03); box-shadow: 0 9px 0 rgba(62, 39, 35, .18); }
.btn:active { transform: translateY(2px) scale(.98); box-shadow: 0 2px 0 rgba(62, 39, 35, .18); }
.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--cocoa); }
.btn-sun:hover { --btn-bg: #FFB93F; }
.btn-blue { --btn-bg: var(--royal); --btn-fg: #fff; }
.btn-blue:hover { --btn-bg: var(--royal-dark); }
.btn-ghost { --btn-bg: var(--paper); --btn-fg: var(--cocoa); box-shadow: inset 0 0 0 2.5px var(--cocoa), var(--shadow-pop); }
.btn-big { min-height: 60px; padding: 16px 32px; font-size: 1.3rem; }
.btn-donate { --btn-bg: var(--sun); --btn-fg: var(--cocoa); min-height: 46px; padding: 10px 20px; flex: none; }
.btn-donate svg { color: #C62828; }
@media (max-width: 380px) { .btn-donate { padding: 10px 14px; } .btn-donate svg { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--royal);
  background: var(--paper); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  box-shadow: 0 2px 0 rgba(62, 39, 35, .1);
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.center { text-align: center; }
.measure { max-width: 68ch; }
.center.measure, .measure.center { margin-inline: auto; }
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 60px); }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }
.bg-royal { background: var(--royal); color: #fff; }
.bg-royal a { color: #fff; }
.text-sky { color: var(--sky); }
.text-sand { color: var(--sand); }
.text-paper { color: var(--paper); }
.text-royal { color: var(--royal); }
.text-cream { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, #FFF6C9 0, transparent 60%),
    linear-gradient(180deg, #CDEBFB 0%, #E6F5FD 55%, var(--cream) 100%);
  padding: clamp(36px, 6vw, 80px) 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { color: var(--cocoa); }
.hero h1 .pop { color: var(--royal); display: inline-block; }
.hero .lead { color: var(--cocoa); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.badge-501 {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; font-size: .95rem;
}
.badge-501 .seal {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grass-text); color: #fff; font: 700 .7rem/1 var(--font-display);
}
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.hero-art .sun-hero { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(249, 168, 37, .35)); }
.sun-hero .rays { transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.sun-hero .face { transform-origin: 100px 100px; animation: bob 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }

.cloud { position: absolute; fill: #fff; opacity: .9; animation: drift 40s linear infinite; }
.cloud.c1 { width: 140px; top: 10%; left: -160px; animation-duration: 55s; }
.cloud.c2 { width: 90px; top: 32%; left: -120px; animation-duration: 38s; animation-delay: -18s; }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }

.hero-ground { margin-top: clamp(16px, 4vw, 40px); }
.hero-ground .wave { color: var(--grass); height: clamp(36px, 5vw, 70px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { max-width: 300px; order: -1; margin-bottom: -10px; }
}

/* ---------- happiness band ---------- */
.happy {
  background: var(--royal); color: #fff; text-align: center; padding: 34px 0 40px;
  position: relative;
}
.happy::before {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: radial-gradient(circle, #FFEE58 2px, transparent 2.5px);
  background-size: 28px 28px;
}
.happy p { position: relative; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4.2vw, 3rem); line-height: 1.2; }
.happy .lead-in { color: var(--ray); }
.happy-rotator { display: inline-block; min-width: 10ch; }
.happy-rotator .word { display: inline-block; animation: popin .5s cubic-bezier(.3, 1.6, .5, 1); }
.happy-pause {
  position: absolute; right: 12px; bottom: 10px; width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .75); border: 1.5px solid rgba(255, 255, 255, .45);
  font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: -1px;
}
.happy-pause:hover { color: #fff; border-color: #fff; }
/* Email addresses are shown as text (mailto links do nothing for webmail users); one click selects it for copying */
.email-text { font-weight: 600; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.happy-pause:focus-visible { outline: 3px solid var(--ray); outline-offset: 2px; }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow); position: relative;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon-bubble {
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--ray); color: var(--cocoa); transform: rotate(-6deg);
}
.icon-bubble svg { width: 34px; height: 34px; }
.icon-bubble.blue { background: var(--sky); }
.icon-bubble.green { background: #C8EBC9; }
.icon-bubble.orange { background: #FFD58A; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo-frame { position: relative; }
.photo-frame img, .photo-frame picture img {
  display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow);
  border: 8px solid #fff; transform: rotate(-2deg);
}
.photo-frame::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -18px; top: -24px;
  background: url("/assets/img/sun-512.png") center/contain no-repeat; transform: rotate(12deg);
}
.photo-frame.no-sun::after { display: none; }
.tape { position: absolute; top: -12px; left: 30%; width: 110px; height: 30px; background: rgba(255, 238, 88, .85); transform: rotate(-4deg); border-radius: 4px; z-index: 1; }

/* impact tiles */
.impact { text-align: center; }
.impact .amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--royal); line-height: 1; margin-bottom: 8px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding-left: 0; }
.step-num {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: var(--sun); color: var(--cocoa); font: 700 1.5rem/1 var(--font-display); box-shadow: var(--shadow-pop);
}
.step-card { display: flex; gap: 18px; align-items: flex-start; }
.step-card .step-body { flex: 1; min-width: 0; }
.step-card h3 { margin-bottom: .35em; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.step-actions .btn { font-size: 1rem; min-height: 48px; }
.optional-pill { display: inline-block; background: var(--sky); color: var(--cocoa); font: 600 .78rem/1 var(--font-body); padding: 5px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.video-qs { margin: 8px 0 0; padding-left: 1.3em; }
@media (max-width: 520px) { .step-card { flex-direction: column; gap: 10px; } .step-actions .btn { width: 100%; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .card { background: linear-gradient(135deg, var(--sun), #FFC94D); padding: clamp(32px, 6vw, 64px); overflow: hidden; }
.cta-band .card:hover { transform: none; }
.cta-band h2 { color: var(--cocoa); }
.cta-band .sun-peek { position: absolute; width: 180px; right: -50px; bottom: -60px; opacity: .55; }

/* board */
.board-card { display: grid; grid-template-columns: 220px 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.board-card picture img, .board-card img.headshot { width: 100%; border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%; border: 6px solid var(--ray); aspect-ratio: 1; object-fit: cover; }
.board-title { font: 600 .9rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--grass-text); margin-bottom: 6px; }
@media (max-width: 640px) { .board-card { grid-template-columns: 1fr; text-align: center; } .board-card picture img, .board-card img.headshot { max-width: 200px; margin-inline: auto; display: block; } }

/* page header (inner pages) */
.page-hero { background: linear-gradient(180deg, #CDEBFB, #E6F5FD); padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 40em; margin-inline: auto; }
.page-hero .wave { color: var(--cream); margin-top: clamp(24px, 4vw, 48px); }
.page-hero .mini-sun { position: absolute; width: 120px; right: 4%; top: 18px; opacity: .9; }
@media (max-width: 640px) { .page-hero .mini-sun { width: 70px; right: 8px; top: 8px; } }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 800; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #A1887F; border-radius: var(--radius-sm);
  background: #fff; color: var(--cocoa); font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--royal); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 8px 0 0; font-weight: 700; }
.form-status.ok { color: var(--grass-text); }
.form-status.err { color: #B71C1C; }

/* donate */
.donate-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .donate-layout { grid-template-columns: 1fr; } }
.donate-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); border-top: 10px solid var(--sun); }
.donate-card:hover { transform: none; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font: 600 1.25rem/1.2 var(--font-display); margin-bottom: 12px; padding: 0; }
.freq { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 5px; gap: 4px; }
.freq input { position: absolute; opacity: 0; pointer-events: none; }
.freq label { margin: 0; padding: 10px 22px; border-radius: 999px; cursor: pointer; font: 600 1.05rem/1 var(--font-display); }
.freq input:checked + label { background: var(--royal); color: #fff; box-shadow: var(--shadow-pop); }
.freq input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts label {
  margin: 0; display: grid; place-items: center; min-height: 58px; border-radius: 16px; cursor: pointer;
  border: 2.5px solid var(--sun); background: #FFFDF5; font: 600 1.35rem/1 var(--font-display);
  transition: transform .15s cubic-bezier(.3, 1.8, .5, 1), background .15s;
}
.amounts label:hover { transform: translateY(-2px); background: var(--sand); }
.amounts input:checked + label { background: var(--sun); color: var(--cocoa); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.amounts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.custom-amount { display: none; margin-top: 12px; }
.custom-amount.show { display: block; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; }
.money input { padding-left: 30px; font-size: 1.2rem; font-weight: 700; }
.summary {
  background: var(--sand); border-radius: 18px; padding: 16px 18px; margin: 4px 0 20px; display: grid; gap: 4px;
}
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { font: 700 1.3rem/1.3 var(--font-display); border-top: 2px dashed #D7B46A; padding-top: 8px; margin-top: 4px; }
.pay-area { min-height: 160px; }
.pay-msg { padding: 14px; border-radius: 12px; background: #FFEBEE; color: #B71C1C; font-weight: 700; display: none; }
.pay-msg.show { display: block; }
.pay-msg.info { background: #E3F2FD; color: var(--royal-dark); }
.card-fields { display: none; margin-top: 18px; padding-top: 18px; border-top: 2px dashed #E0D3B8; }
.card-fields.show { display: block; }
.card-fields .cf-field { margin-bottom: 4px; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 700; margin: 6px 0 14px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 2px; background: #E0D3B8; }
.tax-box { background: #E8F5E9; border-radius: 18px; padding: 18px; border-left: 6px solid var(--grass); }
.disclosure { font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }
.side-stack { display: grid; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 960px) { .side-stack { position: static; } }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }
.monthly-note { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }

/* map card */
.map-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--cocoa); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-card .map-label { position: absolute; left: 16px; bottom: 16px; right: 16px; background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 800; box-shadow: var(--shadow); }
.map-card:hover .map-label { background: var(--ray); }

/* thank you */
.thanks-amount { font: 700 clamp(2.4rem, 7vw, 4.4rem)/1 var(--font-display); color: var(--royal); margin: 12px 0 18px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; width: 100%; height: 100%; }

/* prose (policy pages) */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; color: #fff; }
.wave-footer { display: block; width: 100%; height: clamp(30px, 5vw, 70px); margin-bottom: -1px; }
.footer-body { background: var(--royal); padding: 28px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ray); }
.site-footer address { font-style: normal; }
.footer-name { font: 700 1.4rem/1.1 var(--font-display); margin: 6px 0; }
/* The Foundation's real logo on a cream tile (its brown tagline needs a light background) */
.footer-logo { display: inline-block; background: var(--cream); border-radius: 20px; padding: 8px; margin-bottom: 8px; }
.footer-logo img { display: block; width: 120px; height: 120px; }
.footer-h { font-size: 1.15rem; color: var(--ray); margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.newsletter { display: grid; gap: 10px; position: relative; }
.newsletter input[type="email"] { border-color: #fff; }
.newsletter .btn { justify-self: start; }
.newsletter .form-status.ok { color: var(--ray); }
.newsletter .form-status.err { color: #FFCDD2; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 28px; padding-top: 16px; font-size: .88rem; color: #E8EEFA; }
.footer-legal p { margin: 0 0 6px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* keep decorative rotations from causing sideways scroll */
main { overflow-x: clip; }
.impact .amount mark.todo { font-size: .42em; display: inline-block; line-height: 1.4; }
.skill-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-chips li { background: #fff; color: var(--cocoa); border-radius: 999px; padding: 8px 16px; font: 600 1.05rem/1.2 var(--font-display); box-shadow: var(--shadow-pop); }
.skill-chips li:nth-child(odd) { transform: rotate(-2deg); background: var(--ray); }
.skill-chips li:nth-child(3n) { transform: rotate(2deg); background: var(--sky); }
details > summary { list-style-position: outside; }
[hidden] { display: none !important; }

.site-footer .btn { color: var(--btn-fg); }
.site-footer .btn:hover { color: var(--btn-fg); }

.photo-frame svg.scene { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); border: 8px solid #fff; transform: rotate(-2deg); background: #fff; }

/* =====================================================================
   Campership application (campership-apply, -status, -reference, -survey)
   ===================================================================== */
.cs-wrap { max-width: 860px; }
.cs-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); margin-bottom: 22px; }
.cs-card > h2:first-child, .cs-card > h3:first-child { margin-top: 0; }
.cs-progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.cs-progress li { flex: 1 1 90px; font-size: .78rem; font-weight: 800; color: var(--ink-soft); }
.cs-progress li::before { content: ""; display: block; height: 8px; border-radius: 999px; background: #EADFC4; margin-bottom: 6px; }
.cs-progress li.done::before { background: var(--grass); }
.cs-progress li.now { color: var(--cocoa); }
.cs-progress li.now::before { background: var(--sun); }
.cs-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cs-field { margin-bottom: 18px; }
.cs-field .hint { display: block; margin: -2px 0 6px; }
.cs-field input[type="date"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #D7C8A8; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--cocoa); }
.cs-req { color: #B71C1C; font-weight: 800; }
.cs-choices { display: grid; gap: 10px; margin: 4px 0 4px; }
.cs-choices.inline { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cs-child { border: 2px solid #EADFC4; border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.cs-child h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 0; }
.cs-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cs-saved { font-size: .85rem; color: var(--ink-soft); min-height: 1.2em; }
.cs-note { background: #E3F2FD; color: var(--royal-dark); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.cs-warn { background: #FFF3CD; color: #6B4E00; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.cs-good { background: #E3F4E6; color: var(--grass-text); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 0 0 16px; }
.cs-err { background: #FFEBEE; color: #B71C1C; border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 0 0 16px; }
.cs-err ul { margin: 6px 0 0; padding-left: 20px; }
.cs-files { list-style: none; padding: 0; margin: 8px 0 0; }
.cs-files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--cream); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: .92rem; word-break: break-word; }
.cs-upload input[type="file"] { display: block; margin: 6px 0; max-width: 100%; }
.cs-bar { height: 8px; background: #EADFC4; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.cs-bar span { display: block; height: 100%; width: 0; background: var(--royal); transition: width .2s; }
.cs-link-btn { background: none; border: 0; padding: 0; color: var(--royal); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cs-lang { text-align: right; margin: -8px 0 12px; }
.cs-summary dt { font-weight: 800; margin-top: 10px; }
.cs-summary dd { margin: 2px 0 0; white-space: pre-wrap; }
.cs-check-list { list-style: none; padding: 0; margin: 0; }
.cs-check-list li { padding: 10px 0 10px 36px; position: relative; border-bottom: 1px solid #F0E3C2; }
.cs-check-list li::before { content: "○"; position: absolute; left: 6px; top: 8px; font-weight: 800; color: var(--ink-soft); font-size: 1.1rem; }
.cs-check-list li.ok::before { content: "✓"; color: var(--grass-text); }
.cs-check-list li.todo::before { content: "!"; color: #B71C1C; }
.cs-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-scale label { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; background: var(--cream); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
@media print { .site-header, .site-footer, .topbar, .cs-nav, .cs-lang { display: none !important; } .cs-card { box-shadow: none; } }
