:root {
  --ink: #111827;
  --blue: #0b2d5c;
  --blue-2: #123d73;
  --orange: #f58220;
  --green: #1f9d66;
  --red: #b42318;
  --gold: #d89f17;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #d9e1ec;
  --muted: #627086;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: calc(100vh - 146px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  color: #263348;
  font-weight: 800;
  font-size: 0.93rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  background: #eaf0f8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 5vw, 62px) max(18px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 45, 92, 0.97), rgba(11, 45, 92, 0.72)),
    url("../image_1_1.jpeg") center / cover;
}

.hero.compact {
  min-height: 420px;
  grid-template-columns: minmax(0, 760px);
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.93;
  text-transform: uppercase;
  font-weight: 900;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.hero code {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.season-callout {
  margin: 20px 0;
  display: grid;
  gap: 10px;
  font-weight: 900;
  color: var(--white);
}

.season-callout span {
  color: #ffd9ba;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: clamp(18px, 3vw, 26px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.hero-panel p {
  color: var(--ink);
}

.launch-hero {
  background: linear-gradient(135deg, rgba(11, 45, 92, 0.98), rgba(18, 61, 115, 0.9));
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-action-box {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue);
  box-shadow: var(--shadow);
}

.hero-action-box strong {
  font-size: 1rem;
}

.hero-action-box span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.btn.primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn.dark {
  background: var(--blue);
  color: var(--white);
}

.btn.accent {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn.support {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn.danger {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.section {
  padding: 42px max(18px, calc((100vw - var(--max)) / 2));
}

.section.alt {
  background: var(--white);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.panel,
.stat,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.panel,
.form-panel {
  padding: clamp(16px, 2vw, 24px);
}

.panel h2,
.panel h3,
.form-panel h1,
.form-panel h2 {
  margin-top: 0;
}

.stat {
  padding: 18px;
}

.stat b {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3f8;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status.good,
.status.approved,
.status.paid,
.status.active {
  background: #dcfce7;
  color: #166534;
}

.status.warn,
.status.pending,
.status.pending_captain,
.status.unassigned {
  background: #fef3c7;
  color: #92400e;
}

.status.bad,
.status.declined,
.status.unpaid,
.status.suspended {
  background: #fee2e2;
  color: #991b1b;
}

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

.schedule-accordion {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfd9e6;
  background: #eef3f8;
}

.schedule-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: var(--white);
}

.schedule-accordion-summary::-webkit-details-marker {
  display: none;
}

.schedule-accordion-summary h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--white);
}

.schedule-accordion-summary p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.schedule-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-weight: 900;
  font-size: 0.88rem;
  text-align: center;
  white-space: nowrap;
  width: auto;
  flex: 0 0 auto;
}

.schedule-accordion[open] .schedule-accordion-toggle::after {
  content: "Hide Games";
}

.schedule-accordion:not([open]) .schedule-accordion-toggle::after {
  content: "Show Games";
}

.schedule-accordion[open] .schedule-accordion-toggle,
.schedule-accordion:not([open]) .schedule-accordion-toggle {
  color: transparent;
  position: relative;
}

.schedule-accordion[open] .schedule-accordion-toggle::after,
.schedule-accordion:not([open]) .schedule-accordion-toggle::after {
  color: var(--white);
}

.schedule-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border-top: 1px solid rgba(11, 45, 92, 0.12);
}

.schedule-field-header {
  padding: 14px 16px;
  background: var(--blue);
  border-bottom: 3px solid var(--orange);
  color: var(--white);
  font-weight: 900;
}

.schedule-field-column {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  min-width: 0;
}

.schedule-field-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.schedule-filter-form {
  flex-wrap: wrap;
  row-gap: 10px;
}

.choice-notes {
  margin: 0 0 18px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.hero-panel-actions {
  align-items: stretch;
}

.schedule-game-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f9fbfe;
  min-width: 0;
}

.schedule-game-matchup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  line-height: 1.35;
  color: var(--blue);
  font-size: 1rem;
}

.schedule-game-team {
  font-weight: 900;
}

.schedule-game-vs {
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-game-time {
  color: var(--ink);
}

.schedule-game-division {
  color: var(--blue-2);
}

.schedule-game-result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.schedule-game-result-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-game-result {
  justify-self: start;
  color: var(--blue);
  font-weight: 800;
}

.schedule-game-result.score {
  color: var(--ink);
  font-weight: 900;
}

.schedule-empty {
  margin: 0;
  padding: 10px 4px;
}

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

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #334155;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafc;
}

tr:last-child td {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.flash-wrap {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 40;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
}

.flash {
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.flash.warning {
  border-color: #f59e0b;
}

.flash.error {
  border-color: var(--red);
}

.flash.success {
  border-color: var(--green);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  background: #eaf0f8;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(18px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.waiver-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 120px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    padding: 12px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: grid;
  }

  .button-row,
  .site-footer {
    display: grid;
  }

  .schedule-accordion-summary,
  .schedule-field-grid {
    grid-template-columns: 1fr;
  }

  .schedule-accordion-summary {
    display: grid;
    align-items: start;
  }

  .schedule-field-grid {
    display: grid;
    padding: 14px;
  }

  .schedule-accordion-toggle {
    min-width: 0;
    width: 100%;
  }

  .btn,
  button.btn {
    width: 100%;
  }
}
