/* Palette: navy #0A2240 + NCAA blue #009CDE.
   White on #009CDE is only 3.1:1, so blue fills carry navy text (5.2:1),
   and blue *text* on light backgrounds uses the deeper --link (#0071A6, 5.4:1). */
:root {
  --navy: #0A2240;
  --blue: #009CDE;
  --blue-hover: #33B0E5;

  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --text: #0F1B2D;
  --muted: #536175;
  --line: #DCE2EA;
  --link: #0071A6;
  --check: #009CDE;
  --chip-active-bg: var(--navy);
  --chip-active-text: #FFFFFF;

  --hero-bg: var(--navy);
  --hero-text: #FFFFFF;
  --hero-muted: #C9D6E6;
  --hero-eyebrow: #7FD3F5;

  --good: #1B7F4B;
  --bad: #B42318;
  --radius: 10px;
  --gutter: 20px;
  --section-y: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1626;
    --surface: #12203A;
    --text: #E6EDF5;
    --muted: #9FB0C6;
    --line: #22334F;
    --link: #4CC3F0;
    --check: #4CC3F0;
    --chip-active-bg: #4CC3F0;
    --chip-active-text: var(--navy);
    --hero-bg: #071A33;
    --good: #4CC38A;
    --bad: #FF7A6B;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
/* Horizontal padding only, so it never cancels a section's vertical padding. */
.wrap { max-width: 1000px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: Oswald, Inter, sans-serif; font-weight: 600; letter-spacing: .01em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 2rem; margin: 0 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 0 0 .9rem; }
p { margin: 0 0 1rem; }
a { color: var(--link); }
.muted { color: var(--muted); }
strong { font-weight: 600; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 80px 0 72px; border-bottom: 4px solid var(--blue); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--hero-eyebrow); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 1.25rem; max-width: 22ch; }
.lede { font-size: 1.15rem; max-width: 62ch; color: var(--hero-muted); margin: 0 0 2rem; }
.lede strong { color: var(--hero-text); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.tally { margin: 0; color: var(--hero-muted); }
.tally strong { color: var(--hero-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--blue); color: var(--navy); font: 700 1rem Inter, sans-serif;
  padding: .7rem 1.2rem; border-radius: 8px; transition: background-color .15s;
}
.btn:hover { background: var(--blue-hover); }
.btn:focus-visible { outline: 3px solid var(--hero-eyebrow); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* Sections */
section { padding-block: var(--section-y); }
.letter p { max-width: 70ch; }
.salutation { font-weight: 600; }
.signoff { font-style: italic; color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 2rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 24px 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem;
  border-left: 2.5px solid var(--check); border-bottom: 2.5px solid var(--check); transform: rotate(-45deg);
}

/* Sign form */
.sign-section { background: var(--surface); border-block: 1px solid var(--line); }
.intro, form, .thanks { max-width: 720px; }
form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
[aria-invalid] { border-color: var(--bad); }
label.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
label.check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; flex: none; accent-color: var(--blue); }
.err { color: var(--bad); font-size: .85rem; font-weight: 400; }
.err:empty { display: none; }
form > .err { margin-top: -.6rem; }
.cf-turnstile { min-height: 65px; }
form .btn-lg { justify-self: start; min-width: 240px; }
.form-msg { margin: 0; min-height: 1.5em; }
.form-msg:empty { display: none; }
.form-msg.bad { color: var(--bad); }
.form-msg.ok { color: var(--good); }
.thanks { margin-top: 1.75rem; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--good); }
.thanks h3 { color: var(--good); }

/* Schools */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: 500 .9rem Inter, sans-serif; cursor: pointer; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.chip:hover { border-color: var(--link); }
.chip.active { background: var(--chip-active-bg); color: var(--chip-active-text); border-color: var(--chip-active-bg); }
.school-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px;
}
.school-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .9rem;
}
.school-list li[hidden] { display: none; }
.school-list small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.empty { margin: 0; }

/* Footer: full-width rule, text aligned to the content column. */
.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: .85rem; }
.foot p { margin-block: 0; }

/* Admin */
.admin-head { padding: 32px 0 16px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface); font-weight: 600; }
body.admin .wrap { max-width: 1400px; }

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 52px; }
  .row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  form .btn-lg { justify-self: stretch; }
}
