:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #5d6474;
  --border: #e6e0d6;
  /* School colors: maroon and gold */
  --primary: #7b1e2e;
  --primary-text: #ffffff;
  --primary-soft: #f6e8ea;
  --donate: #f2b51d;
  --donate-hover: #e0a40c;
  --donate-text: #4a0f1a;
  --sun: #f2b51d;
  --sun-soft: #fdf3d6;
  --good-soft: #f6ecd2;
  --hero-1: #4f0f1c;
  --hero-2: #8c2236;
  --shadow: 0 1px 2px rgba(29, 36, 51, 0.06), 0 6px 18px rgba(29, 36, 51, 0.07);
  --radius: 16px;
  /* Category colors (light backgrounds for card art and tiles) */
  --cat-music: #f7e6bd;
  --cat-language: #dff3ff;
  --cat-athletics: #ffe6d9;
  --cat-stem: #dcf5ec;
  --cat-clubs: #fff1c7;
  --cat-boosters: #ffe0ea;
  --cat-classrooms: #ffe3df;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c; --surface: #1b2029; --text: #e9ecf2; --muted: #a2a9b8; --border: #2d3442;
    --primary: #f0a3b0; --primary-text: #3a0b14; --primary-soft: #3a2026;
    --donate: #f5c24a; --donate-hover: #ffd064; --donate-text: #3a0b14;
    --sun: #f5c24a; --sun-soft: #3a3120; --good-soft: #3a3120;
    --hero-1: #3a0b14; --hero-2: #6e1a2a;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 6px 18px rgba(0,0,0,0.25);
    --cat-music: #45361a; --cat-language: #1d3442; --cat-athletics: #45301f; --cat-stem: #1d3a30;
    --cat-clubs: #3f3720; --cat-boosters: #43263a; --cat-classrooms: #43282a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151c; --surface: #1b2029; --text: #e9ecf2; --muted: #a2a9b8; --border: #2d3442;
  --primary: #f0a3b0; --primary-text: #3a0b14; --primary-soft: #3a2026;
  --donate: #f5c24a; --donate-hover: #ffd064; --donate-text: #3a0b14;
  --sun: #f5c24a; --sun-soft: #3a3120; --good-soft: #3a3120;
  --hero-1: #3a0b14; --hero-2: #6e1a2a;
  --cat-music: #45361a; --cat-language: #1d3442; --cat-athletics: #45301f; --cat-stem: #1d3a30;
  --cat-clubs: #3f3720; --cat-boosters: #43263a; --cat-classrooms: #43282a;
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Nunito", "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0.4rem 0 0.6rem; font-weight: 800; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.75rem; font-weight: 800; }
h2 small { font-weight: 600; color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
.lead { font-size: 1.1rem; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 800; margin: 0; opacity: 0.85; }
.intro { font-size: 1.1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.page, .header-inner, .hero-inner, .footer-inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.page { padding-bottom: 56px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { font-weight: 800; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: var(--sun); font-size: 1rem;
}
.header-nav { display: flex; gap: 16px; font-size: 0.95rem; font-weight: 700; }
.header-nav a { text-decoration: none; }

/* Hero */
.hero-band, .group-banner {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 181, 29, 0.35) 0, transparent 40%),
    linear-gradient(135deg, var(--hero-1), var(--hero-2));
  padding: 36px 0 40px;
}
.hero-band a, .group-banner a { color: #fff; }
.hero-band .lead { color: rgba(255,255,255,0.92); max-width: 36em; }
.search { display: flex; gap: 8px; margin: 20px 0 16px; }
.search input { flex: 1; min-width: 0; border: 0; box-shadow: var(--shadow); padding: 14px 16px; border-radius: 999px; }
.search .button { background: var(--sun); color: var(--donate-text); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
}
.badges.on-light { margin-top: 20px; }
.badges.on-light li { background: var(--good-soft); border-color: transparent; color: var(--text); }

.group-banner { padding: 18px 0 30px; }
.group-banner .crumbs { margin-bottom: 8px; }
.group-banner .lead { color: rgba(255,255,255,0.92); }
.banner-icon { font-size: 3.2rem; line-height: 1; display: block; margin-top: 6px; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.group-banner .hero-inner { position: relative; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-text);
  font: inherit; font-weight: 800; padding: 10px 20px; min-height: 44px;
  transition: transform 0.08s ease, background-color 0.15s ease;
}
.button:active { transform: scale(0.97); }
.button.secondary { background: var(--primary-soft); color: var(--primary); }
.button.light { background: var(--sun); color: var(--donate-text); }
.button.donate { background: var(--donate); color: var(--donate-text); }
.button.donate:hover { background: var(--donate-hover); }
.button.big { font-size: 1.15rem; padding: 14px 32px; box-shadow: 0 6px 16px rgba(123, 30, 46, 0.3); }
.link { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 0; }

input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; width: 100%;
}

/* Crumbs */
.crumbs { font-size: 0.95rem; font-weight: 700; margin-top: 16px; }
.crumbs a { text-decoration: none; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--surface);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-icon { font-size: 1.8rem; line-height: 1.2; }
.tile-name { font-weight: 800; line-height: 1.25; }
.tile small { color: var(--muted); font-weight: 600; }
.cat-music { background-color: var(--cat-music); }
.cat-language-immersion { background-color: var(--cat-language); }
.cat-athletics { background-color: var(--cat-athletics); }
.cat-stem { background-color: var(--cat-stem); }
.cat-clubs { background-color: var(--cat-clubs); }
.cat-boosters { background-color: var(--cat-boosters); }
.cat-classrooms { background-color: var(--cat-classrooms); }
.group-banner[class*="cat-"] { background-color: transparent; }

/* Group cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform 0.12s ease;
}
.card:hover { transform: translateY(-3px); }
.card-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { font-size: 3rem; }
.ribbon {
  position: absolute; left: 10px; bottom: 10px; background: var(--sun); color: #1d2433;
  font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.card-body { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 2px; }
.card-body small { color: var(--muted); font-weight: 600; }
.card-tagline { font-size: 0.92rem; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.list li + li { border-top: 1px solid var(--border); }
.list a { display: flex; flex-direction: column; padding: 15px 18px; text-decoration: none; color: var(--text); font-weight: 700; }
.list a span::after { content: " ›"; color: var(--muted); }

/* How it works */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.how-steps li { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.how-steps span:last-child { color: var(--muted); font-size: 0.95rem; }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: #1d2433; font-weight: 800; margin-bottom: 4px;
}

/* Comparison bars */
.compare { background: var(--surface); border-radius: var(--radius); padding: 2px 20px 18px; margin-top: 2.2rem; box-shadow: var(--shadow); }
.compare h2 { margin-top: 1.2rem; }
.bars { display: grid; gap: 10px; margin: 14px 0 6px; }
.bar-row { display: grid; grid-template-columns: 95px 1fr; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.bar { background: var(--bg); border-radius: 999px; overflow: hidden; }
.fill { background: var(--sun); color: var(--donate-text); padding: 6px 12px; border-radius: 999px; font-weight: 800; text-align: right; }
.fill.other { background: #9aa1ad; }

/* Where this site came from */
.origin { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-top: 22px; box-shadow: var(--shadow); }
.origin p { margin: 0; }
.origin-icon { font-size: 1.8rem; line-height: 1.2; }

/* Call to action band */
.cta-band {
  margin-top: 2.6rem; border-radius: var(--radius); padding: 6px 22px 24px; color: #fff;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.cta-band h2 { color: #fff; }

/* Boxes */
.donate-box, .notice, .callout, .campaign {
  background: var(--surface); border-radius: var(--radius); padding: 4px 20px 18px; margin: 22px 0; box-shadow: var(--shadow);
}
.donate-box { border-top: 6px solid var(--primary); }
.campaign { background: var(--sun-soft); padding-top: 16px; }
.campaign h2 { margin-top: 4px; }
.campaign .dates { font-weight: 800; margin: 0; }
.callout { padding-top: 14px; }
.callout p { margin: 0 0 8px; }
.callout.tax { background: var(--sun-soft); }
.notice.success { background: var(--good-soft); padding-top: 4px; }
.notice.finished { border: 2px solid var(--primary); }
.receipt { font-weight: 800; }

/* Wish-list sticky notes */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 4px; }
.note {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; min-height: 110px;
  background: #fff1a8; color: #2a2a1f; box-shadow: 0 4px 10px rgba(0,0,0,0.12); transform: rotate(-1.5deg);
}
.note:nth-child(3n+2) { background: #ffd7c2; transform: rotate(1.2deg); }
.note:nth-child(3n) { background: #cdeccf; transform: rotate(-0.6deg); }
.note strong { font-size: 1.35rem; }

/* Donation steps */
.steps { padding-left: 1.4rem; margin: 0; }
.steps li { margin: 0 0 14px; padding-left: 4px; }
.steps li::marker { font-weight: 800; color: var(--primary); }
.steps p { margin: 0 0 6px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code {
  flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere;
  font: 700 1rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--primary-soft); color: var(--text); border-radius: 10px; padding: 11px 13px;
  border: 2px dashed var(--primary);
}
.copy-row input { flex: 1 1 120px; width: auto; }
.prefix { font-weight: 800; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--primary-soft); border-radius: var(--radius); }
.video.tall { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Share */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 18px; background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.qr img { background: #fff; border-radius: 8px; flex: none; }
.qr p { margin: 0 0 4px; }

/* Floating donate button (phones) */
.sticky-donate {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: opacity 0.2s ease, transform 0.2s ease;
}
.sticky-donate.is-hidden { opacity: 0; transform: translateY(120%); pointer-events: none; }
@media (min-width: 760px) { .sticky-donate { display: none; } }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 6px; background: var(--surface); padding: 6px 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stack label { font-weight: 800; margin-top: 12px; }
.stack label small { font-weight: 600; color: var(--muted); }
.stack .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.stack .check input { width: auto; }
.stack .button { margin-top: 18px; align-self: flex-start; }
.error { color: var(--primary); margin: 0; font-size: 0.9rem; }
.hp { position: absolute; left: -10000px; }

/* Tax tables */
.table-wrap { overflow-x: auto; margin: 12px 0; }
.tax-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.tax-table caption { text-align: left; font-weight: 800; padding: 4px 0 8px; }
.tax-table th, .tax-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tax-table thead th { background: var(--primary); color: var(--primary-text); font-size: 0.85rem; }
.tax-table th:first-child { text-align: left; }
.tax-table td:last-child { font-weight: 800; }
.tax-table tr.best { background: var(--sun-soft); }

.faq dt { font-weight: 800; margin-top: 14px; }
.faq dd { margin: 2px 0 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 26px 0 90px; font-size: 0.93rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-brand { margin: 0; color: var(--muted); max-width: 28em; }
.footer-brand strong { color: var(--text); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
