:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5d6878;
  --line: #dfe5ec;
  --paper: #ffffff;
  --field: #eef5ef;
  --green: #1f7a4d;
  --gold: #f3b13f;
  --blue: #2c66a8;
  --primary: #1f7a4d;
  --secondary: #2c66a8;
  --tertiary: #f3b13f;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-tertiary: #000000;
  --primary-text: #1f7a4d;
  --secondary-text: #2c66a8;
  --primary-tint: #eff6f2;
  --secondary-tint: #f0f4f9;
  --page-tint: #fafcfb;
  --promotion-accent: #f9d884;
  --promotion-rule: #5b8271;
  --band-accent: #f3b13f;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(20, 33, 61, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--page-tint) 0%, #ffffff 42%, var(--secondary-tint) 100%);
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--on-primary);
  background: var(--green);
  border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.nav-links { flex-wrap: wrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  min-height: calc(100vh - 12rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
  background: linear-gradient(135deg, var(--primary-tint), var(--secondary-tint));
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.35rem;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--on-primary);
  background: var(--green);
  border-color: var(--green);
}

.button.ghost {
  background: white;
}

.button.disabled {
  opacity: 0.68;
}

.season-panel,
.form-card,
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.season-panel {
  align-self: end;
  padding: 1.4rem;
}

.status,
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.open {
  color: #0d5130;
  background: #dff4e8;
}

.status.closed,
.pill {
  color: #6a3d00;
  background: #fff0d1;
}

.band,
.section,
.form-shell,
.admin-shell,
.footer {
  padding: clamp(2.2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.band {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  background: var(--ink);
  color: white;
}

.band .eyebrow {
  color: var(--band-accent);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.note-grid p {
  margin: 0;
  color: #dce7f3;
  line-height: 1.5;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

dl,
dd {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.form-shell {
  max-width: 62rem;
  margin: 0 auto;
}

.form-shell.compact {
  max-width: 38rem;
}

.form-intro {
  max-width: 42rem;
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.75rem;
  color: var(--ink);
  border: 1px solid #cbd5df;
  border-radius: 0.45rem;
  font: inherit;
  background: white;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.notice {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-weight: 800;
}

.notice.success {
  color: #0d5130;
  background: #dff4e8;
}

.notice.warning {
  color: #6a3d00;
  background: #fff0d1;
}

.notice.error {
  color: var(--danger);
  background: #fee4e2;
}

.admin-shell {
  min-height: 70vh;
}

.admin-block {
  margin: 2rem 0 2.5rem;
}

.admin-controls {
  margin-bottom: 1.5rem;
}

.team-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.team-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-editor-head h3 {
  margin: 0;
}

.team-editor small {
  color: var(--muted);
  font-weight: 600;
}

.add-team {
  margin-top: 1rem;
}

.add-team summary {
  cursor: pointer;
  font-weight: 900;
}

.add-team .team-editor {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.switch {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.switch input {
  width: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
}

.registration-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registration-filters label { flex: 1 1 180px; }
.registration-pagination { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.registration-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.registration-meta dt { color: var(--muted); font-size: 0.85rem; }
.registration-meta dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.form-shell h1 { font-size: 2rem; }
.registration-actions { margin-top: 2rem; border-top: 1px solid var(--line); }
.registration-action { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.registration-action summary { cursor: pointer; font-weight: 700; }
.registration-action form { display: grid; gap: 1rem; margin-top: 1rem; }
.registration-action .button { justify-self: start; }
.button.danger { background: #a52032; color: white; }
.registration-action .switch input { flex: 0 0 1.2rem; }
.account-list { border-top: 1px solid var(--line); }
.account-row { display: grid; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.account-row h3 { margin: 0; }
.account-row form, .account-create { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.account-row label, .account-create label { flex: 1 1 180px; }
.account-row .switch { flex: 0 1 auto; }
.admin-shell h1 { font-size: 2rem; }
.events-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-events {
  background: var(--primary);
  color: var(--on-primary);
  border-bottom: 5px solid var(--gold);
  padding: 28px clamp(1rem, 4vw, 4rem) 32px;
}
.featured-events-inner { max-width: 1280px; margin: 0 auto; }
.promotion-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.promotion-heading .eyebrow { color: var(--promotion-accent); margin: 0; }
.promotion-heading > a { flex-shrink: 0; font-size: 0.9rem; text-underline-offset: 4px; }
.event-promotion { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.announcement-promotion { grid-template-columns: 88px minmax(0, 1fr); }
.promotion-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.promotion-links a { font-size: 0.9rem; text-underline-offset: 4px; overflow-wrap: anywhere; }
.promotion-heading .eyebrow { min-width: 0; overflow-wrap: anywhere; }
.event-promotion + .event-promotion { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--promotion-rule); }
.promotion-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 108px; background: var(--tertiary); color: var(--on-tertiary); border-radius: 4px; }
.promotion-date span { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.promotion-date strong { font-size: 2.5rem; line-height: 1.2; }
.promotion-copy { min-width: 0; }
.promotion-copy h2 { font-size: 2rem; line-height: 1.15; margin: 0 0 8px; overflow-wrap: anywhere; }
.promotion-copy h2 a { text-decoration: none; }
.promotion-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.promotion-copy time { display: block; color: var(--promotion-accent); font-size: 0.95rem; font-weight: 700; overflow-wrap: anywhere; }
.promotion-copy p { margin: 12px 0 0; line-height: 1.5; color: var(--on-primary); overflow-wrap: anywhere; }
.promotion-action { background: var(--tertiary); border-color: var(--tertiary); color: var(--on-tertiary); text-align: center; max-width: 220px; }
.promotion-action:hover { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
.featured-events a:focus-visible { outline: 3px solid var(--on-primary); outline-offset: 4px; }
.hero-with-events { min-height: auto; padding-top: 48px; padding-bottom: 48px; }
.hero-with-events h1 { font-size: 3rem; line-height: 1.1; }
@media (max-width: 900px) {
  .event-promotion { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .promotion-date { width: 72px; height: 96px; }
  .promotion-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 540px) {
  .featured-events { padding-top: 22px; padding-bottom: 24px; }
  .promotion-heading { align-items: flex-start; }
  .promotion-copy h2 { font-size: 1.5rem; }
  .promotion-copy p { font-size: 0.95rem; }
  .promotion-action { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
  .hero-with-events { padding-top: 32px; padding-bottom: 32px; }
  .hero-with-events h1 { font-size: 2rem; }
}
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.event-card { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: white; }
.event-card time { font-size: 0.85rem; color: var(--secondary-text); font-weight: 700; }
.event-card h3 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.event-card p { margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.event-card .button { align-self: start; margin-top: auto; }
.event-date { font-weight: 700; color: var(--secondary-text); }
.event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.event-honeypot { display: none; }
.event-editor h2 { margin: 0; font-size: 1.3rem; }
.event-flags { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.event-question { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; align-items: end; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-question:first-child { border-top: 1px solid var(--line); }
.question-choices { grid-column: 1 / -1; }
.question-choices[hidden] { display: none; }
.payments-shell h2 { font-size: 1.25rem; margin: 1.75rem 0 1rem; }
.payments-shell .hosting-subscribe { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.payments-shell .hosting-subscribe label { width: 360px; max-width: 100%; }
.payment-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.payment-actions form { margin: 0; }
.question-document { grid-column: 1 / -1; }
.question-document[hidden] { display: none; }
.document-acknowledgment { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; }
.document-acknowledgment legend { font-weight: 700; padding: 0 .3rem; }
.acknowledgment-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; margin: .75rem 0 1rem; }
.question-tools { display: flex; gap: 0.25rem; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: white; cursor: pointer; }
.icon-button:hover { background: var(--field); }
.icon-button img, .add-question img { width: 18px; height: 18px; }
.icon-button:disabled { opacity: 0.35; cursor: default; }
.add-question { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; }
.attendee-answers { display: grid; gap: 1rem; }
.attendee-answers dt { font-weight: 700; }
.attendee-answers dd { margin: 0.25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-shell h1, .admin-shell h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .event-question { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .question-tools { justify-self: end; }
}
@media (max-width: 440px) {
  .event-question > label:first-of-type { grid-column: 1 / -1; }
  .event-question .switch { align-self: center; }
  .question-tools { grid-column: 1 / -1; }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.program-selector {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.program-selector label {
  flex: 1 1 240px;
  min-width: 0;
}

.program-questions {
  display: grid;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.program-questions legend {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 4px;
}

.footer-social:hover {
  background: var(--secondary-tint);
}

.footer-social:focus-visible {
  outline: 2px solid var(--secondary-text);
  outline-offset: 2px;
}

.footer-social img {
  display: block;
}

.branding-form { display: flex; align-items: end; flex-wrap: wrap; gap: 20px 32px; }
.brand-color { flex: 0 1 200px; }
.brand-color-control { display: flex; align-items: center; gap: 12px; }
.brand-color input[type="color"] { flex: 0 0 52px; width: 52px; height: 44px; min-height: 44px; padding: 3px; cursor: pointer; }
.brand-color output { font-family: ui-monospace, monospace; color: var(--ink); font-size: 0.9rem; }
.branding-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#branding { scroll-margin-top: 128px; }
.section a:not(.button), .form-shell > a:not(.button), .admin-shell a:not(.button) { color: var(--secondary-text); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--secondary-text); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--secondary-text); }

.admin-body { background: #f6f8fa; }
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: start; background: #ffffff; border-right: 1px solid var(--line); padding: 24px 16px; }
.admin-brand { padding: 0 8px; margin-bottom: 32px; align-items: flex-start; }
.admin-brand > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.admin-brand .brand-mark { flex: 0 0 2.4rem; }
.admin-menu summary { display: none; }
.admin-menu nav { display: grid; gap: 4px; }
.admin-menu nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border-left: 3px solid transparent; border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.admin-menu nav a span { min-width: 0; overflow-wrap: anywhere; }
.admin-menu nav img { flex: 0 0 20px; }
.admin-menu nav a:hover { background: var(--field); }
.admin-menu nav a[aria-current="page"] { background: var(--primary-tint); border-left-color: var(--primary); }
.admin-global-link { display: block; margin-top: 24px; padding: 12px; font-size: 0.9rem; color: var(--secondary-text); }
.admin-sidebar-footer { display: grid; gap: 16px; margin-top: 32px; padding: 20px 12px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.admin-sidebar-footer form { margin: 0; }
.admin-sidebar-footer .button { width: 100%; }
.admin-workspace { min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: #ffffff; font-size: 0.9rem; }
.admin-topbar > span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.admin-topbar > a { flex-shrink: 0; color: var(--secondary-text); }
.admin-body #admin-content > .admin-shell, .admin-body #admin-content > .form-shell, .admin-body #admin-content > .section { padding: 28px 32px; min-height: 0; width: 100%; max-width: 1400px; margin: 0 auto; }
.admin-body h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 24px; }
.admin-body h2 { font-size: 1.3rem; line-height: 1.25; }
.admin-body .section-heading { max-width: none; }
.admin-subnav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-subnav a { display: block; padding: 12px 0; font-size: 0.95rem; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.admin-subnav a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary-text); }
.website-settings-form { display: grid; gap: 20px; max-width: 1000px; }
.website-settings-form > .button, .password-form > .button { justify-self: start; }
.password-form { display: grid; gap: 16px; max-width: 480px; }
.admin-body .account-create { margin-top: 16px; }
.admin-body #branding { scroll-margin-top: 24px; }
.admin-skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: #ffffff; z-index: 100; }
.admin-skip:focus { top: 16px; }
.admin-body a:focus-visible, .admin-menu summary:focus-visible { outline: 2px solid var(--secondary-text); outline-offset: 3px; }
@media (max-width: 1000px) {
  .admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .admin-body .team-editor-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .admin-layout { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { margin-bottom: 12px; align-items: center; }
  .admin-menu summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; font-weight: 700; cursor: pointer; min-height: 44px; }
  .admin-menu[open] summary img { transform: rotate(180deg); }
  .admin-sidebar-footer { margin-top: 16px; padding-top: 16px; }
  .admin-topbar { padding: 12px 20px; gap: 16px; }
  .admin-body #admin-content > .admin-shell, .admin-body #admin-content > .form-shell, .admin-body #admin-content > .section { padding: 24px 20px; }
  .admin-body .field-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .note-grid,
  .team-editor-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }
}
