:root {
  --ink: #173f4f;
  --green: #43844a;
  --line: #d4e0e3;
  --pale: #eef6f7;
  --gold: #e5ad43;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #243e48;
  font:
    1rem/1.65 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: var(--ink);
  text-underline-offset: 4px;
}
header {
  padding: 20px max(5vw, 20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 750;
}
.brand img {
  width: 75px;
  height: 60px;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav a {
  font-size: 0.95rem;
  font-weight: 650;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px 50px;
}
section {
  margin: 36px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
section.intro {
  padding: 44px 0 22px;
  border: 0;
}
.intro h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 850px;
  color: var(--ink);
  margin: 16px 0 22px;
}
.intro.compact {
  padding: 30px 0 8px;
}
.lead {
  font-size: 1.2rem;
  max-width: 800px;
}
.eyebrow {
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
}
h3 {
  font-size: 1.2rem;
  color: var(--ink);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.button,
button {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  cursor: pointer;
  font: 650 1rem/1.35 system-ui;
  text-align: center;
}
.button.outline {
  background: white;
  color: var(--ink);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.notice {
  border-left: 4px solid var(--gold);
  background: var(--pale);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
}
.membership {
  background: var(--pale);
}
.grid {
  display: grid;
  gap: 24px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
  padding: 0;
}
.three article,
.school-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
}
.school-card.founding-school {
  border: 2px solid var(--green);
  background: linear-gradient(145deg, #fff, #f2f8f4);
  box-shadow: 0 12px 30px rgba(23, 63, 79, 0.08);
}
.school-card.founding-school .badge {
  background: var(--green);
  color: #fff;
}
.step {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 750;
}
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
  padding: 0;
  gap: 22px;
}
.flow li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 14px;
}
.flow li:before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 8px;
}
.flow p {
  margin: 8px 0;
}
.flow.short {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
  padding: 20px 0;
}
legend {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  padding: 0 14px 0 0;
}
label {
  display: block;
  margin: 12px 0;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #90a7af;
  border-radius: 8px;
  font: inherit;
  color: #183d4d;
  background: white;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 5px;
}
.trap {
  position: absolute;
  left: -9999px;
}
.quiet {
  font-size: 0.9rem;
  color: #526b76;
}
.status {
  font-weight: 650;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.error {
  color: #a32828;
}
.search {
  display: flex;
  gap: 15px;
  align-items: end;
}
.search label {
  flex: 1;
  margin: 0;
}
.search button {
  margin-bottom: 1px;
}
details.term {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  font-weight: 750;
  cursor: pointer;
}
.badge {
  display: inline-block;
  background: var(--pale);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 650;
}
.private-data {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
}
.school-card p {
  overflow-wrap: anywhere;
}
.offer {
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 24px;
}
.offer strong.price {
  font-size: 1.75rem;
}
.ticket {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.handoff {
  background: var(--pale);
  padding: 15px;
  border-radius: 8px;
}
.admin-card {
  margin: 26px 0;
}
.admin-card .grid {
  gap: 12px;
}
.admin-card details {
  margin: 15px 0;
}
.admin-card code {
  overflow-wrap: anywhere;
}
.empty {
  background: var(--pale);
  padding: 26px;
  border-radius: 12px;
  grid-column: 1/-1;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px max(5vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}
footer strong {
  flex-basis: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    gap: 12px;
  }
  nav {
    gap: 12px;
  }
  main {
    padding: 0 16px 32px;
  }
  section {
    padding: 22px;
    margin: 24px 0;
  }
  .two,
  .three,
  .flow,
  .flow.short {
    grid-template-columns: 1fr;
  }
  .search {
    display: block;
  }
  .search button {
    width: 100%;
    margin-top: 14px;
  }
  .button {
    width: 100%;
  }
  .actions {
    width: 100%;
  }
  .offer {
    padding: 18px;
  }
  input,
  textarea,
  select {
    font-size: 1rem;
  }
  h1 {
    overflow-wrap: break-word;
  }
}
@media print {
  header,
  footer,
  button,
  .actions,
  form {
    display: none;
  }
  section {
    border: 0;
    padding: 0;
  }
  details.term {
    break-inside: avoid;
  }
}
