:root {
  --bg: #f6f1e8;
  --paper: #fffdf9;
  --ink: #132238;
  --muted: #5c6b78;
  --line: rgba(19, 34, 56, 0.12);
  --brand: #f97316;
  --brand-deep: #c2410c;
  --teal: #0f766e;
  --sky: #0ea5e9;
  --green: #15803d;
  --shadow: 0 8px 22px rgba(19, 34, 56, 0.08);
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 2px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

img {
  max-width: 100%;
}

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

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__logo {
  display: block;
  width: 128px;
  height: 52px;
  object-fit: contain;
}

.brand__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 0;
  color: var(--muted);
  font-weight: 700;
  transition: 150ms ease;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--brand);
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  padding: 0.8rem 1rem;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary span {
  margin-left: 0.3rem;
  font-size: 1rem;
}

.nav-dropdown[open] summary,
.nav-dropdown.is-active summary,
.nav-dropdown summary:hover {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--brand);
  color: var(--ink);
}

.nav-dropdown[open] summary span {
  display: inline-block;
  transform: rotate(45deg);
}

.nav-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 30;
  width: 255px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav .nav-dropdown__menu a {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 0;
  color: var(--ink);
}

.nav-dropdown__menu span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.site-main {
  padding: 2rem 0 5rem;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: 3rem;
  background: var(--ink);
  color: #fff;
}

.demo-hero .eyebrow,
.demo-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.demo-hero h1 {
  max-width: 650px;
  margin: 0.65rem 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.demo-hero p {
  max-width: 55ch;
  line-height: 1.65;
}

.demo-hero__clubs {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.demo-hero__clubs div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.demo-hero__clubs b { color: var(--brand); font-size: 0.75rem; }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.demo-controls span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.demo-controls .button { margin-left: auto; padding: 0.65rem 0.9rem; }

.demo-layout { display: grid; grid-template-columns: 250px 1fr; border-bottom: 1px solid var(--line); }
.demo-rail { padding: 2rem 1.25rem 2rem 0; border-right: 1px solid var(--line); }
.demo-rail ol { list-style: none; padding: 1rem 0 0; margin: 0; display: grid; gap: 1.4rem; }
.demo-rail li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; color: var(--muted); }
.demo-rail li b { color: var(--muted); font-size: 0.72rem; }
.demo-rail li strong, .demo-rail li span { display: block; }
.demo-rail li span { font-size: 0.78rem; margin-top: 0.2rem; }
.demo-rail li.is-complete b { color: var(--teal); }
.demo-rail li.is-current { color: var(--ink); }
.demo-rail li.is-current b { color: var(--brand); }

.demo-stage { padding: 2rem 0 2rem 2rem; }
.demo-match-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.demo-match-head h2 { margin: 0.35rem 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.06em; }
.demo-match-head h2 i { color: var(--brand); font-style: normal; font-weight: 400; }
.demo-match-head p { margin: 0; color: var(--muted); }
.demo-status { padding: 0.45rem 0.65rem; color: var(--teal); border: 1px solid var(--teal); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-tabs { display: flex; gap: 1.4rem; margin-top: 2rem; border-bottom: 1px solid var(--line); }
.demo-tabs button { padding: 0 0 0.7rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; font-weight: 800; }
.demo-tabs button.is-active { color: var(--ink); border-bottom-color: var(--brand); }
#demo-panel { padding-top: 1.35rem; }
.demo-next { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.standings-demo.full { grid-template-columns: 0.7fr 1.3fr; margin-top: 1.25rem; }
.lineup-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.2rem; }
.lineup-editor > div { padding: 1rem; border: 1px solid var(--line); }
.lineup-editor > div > b { display: block; margin-bottom: 1rem; }
.lineup-editor label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.lineup-editor label + label { margin-top: 0.75rem; }
.lineup-editor select { width: 100%; padding: 0.65rem; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.round-robin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.25rem; }
.round-robin div { padding: 1rem; border-top: 3px solid var(--brand); background: #f4eee4; }
.round-robin b, .round-robin span, .round-robin em { display: block; }
.round-robin span { margin: 0.5rem 0 1rem; color: var(--muted); line-height: 1.45; }
.round-robin em { color: var(--teal); font-size: 0.74rem; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.score-fields { display: flex; align-items: center; gap: 0.55rem; }
.score-fields input { width: 52px; padding: 0.5rem; border: 1px solid var(--line); text-align: center; font-size: 1.1rem; font-weight: 800; }
.score-fields em { color: var(--brand); font-style: normal; }
.lineup-notice { margin-top: 1.25rem; padding: 0.85rem 1rem; border-left: 3px solid var(--brand); background: #f4eee4; color: var(--muted); }
.lineup-notice strong { color: var(--ink); }
.captain-lineup { display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1.25rem; }
.captain-lineup--select { grid-template-columns: minmax(0, 1fr); }
.captain-lineup__roster { position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--line); background: #fffdf9; }
.captain-lineup__roster h3 { margin: 0.15rem 0 0; }
.lineup-roster-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.lineup-selection { max-width: 130px; padding: 0.35rem 0.45rem; background: #e9f5f2; color: var(--teal); font-size: 0.7rem; font-weight: 800; line-height: 1.25; text-align: right; }
.captain-roster + .captain-roster { margin-top: 1.1rem; }
.captain-roster__head { display: flex; justify-content: space-between; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); font-weight: 800; }
.captain-roster__head small { color: var(--muted); font-weight: 600; }
.player-pool { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.draggable-player, .assigned-player { display: flex; justify-content: space-between; gap: 0.5rem; width: 100%; padding: 0.6rem; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: grab; text-align: left; }
.draggable-player:hover, .draggable-player.is-selected { border-color: var(--teal); background: #e9f5f2; box-shadow: inset 3px 0 0 var(--teal); }
.draggable-player:active { cursor: grabbing; }
.draggable-player strong, .assigned-player strong { font-size: 0.78rem; }
.draggable-player span, .assigned-player span { color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.pool-empty { margin: 0; color: var(--muted); font-size: 0.8rem; }
.opponent-board { max-height: 710px; overflow-y: auto; border: 1px solid var(--line); }
.opponent-board__head, .lineup-match-row { display: grid; grid-template-columns: 1fr 1fr; }
.opponent-board__head { padding: 0.75rem 1rem; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lineup-match-row + .lineup-match-row { border-top: 1px solid var(--line); }
.opponent-pair, .home-dropzone { min-height: 78px; padding: 0.7rem 1rem; }
.opponent-pair { background: #f7f2ea; }.opponent-pair span, .opponent-pair b { display: block; }.opponent-pair span { margin-bottom: 0.3rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }.opponent-pair b { font-size: 0.8rem; line-height: 1.45; }
.home-dropzone { display: grid; align-items: center; gap: 0.55rem; border-left: 1px solid var(--line); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(15, 118, 110, 0.035) 8px 9px); color: var(--muted); font-size: 0.78rem; }
.home-dropzone label { display: grid; gap: 0.3rem; min-width: 0; }
.home-dropzone label > span { color: var(--muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.home-dropzone select { width: 100%; min-width: 0; padding: 0.5rem 1.7rem 0.5rem 0.55rem; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 0.76rem; font-weight: 700; }
.home-dropzone select:focus { outline: 2px solid rgba(15, 118, 110, 0.35); outline-offset: 1px; border-color: var(--teal); }
.home-dropzone:has(.assigned-player) { background: #f0f8f6; }
.assigned-player { width: auto; flex: 1; border-color: rgba(15, 118, 110, 0.35); background: #fff; cursor: pointer; }.assigned-player span { color: var(--teal); }
.lineup-message { min-height: 1.2rem; margin: 0.75rem 0 0; color: var(--brand-deep); font-weight: 700; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-grid section { border: 1px solid var(--line); padding: 1.1rem; }
.demo-grid h3 { margin: 0 0 0.8rem; }
.demo-action, .lineup-mini { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.demo-action b, .demo-action span, .lineup-mini b, .lineup-mini span { display: block; }
.demo-action span, .lineup-mini span { color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }
.demo-action.done b::before { content: "✓"; margin-right: 0.45rem; color: var(--teal); }
.score-demo { display: grid; gap: 0.7rem; }
.score-demo__summary { display: flex; align-items: baseline; gap: 1rem; padding: 1rem; background: #f4eee4; }
.score-demo__summary span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 800; }
.score-demo__summary strong { font-size: 2.1rem; }.score-demo__summary small { color: var(--brand); }.score-demo__summary p { margin: 0 0 0 auto; color: var(--muted); font-size: 0.85rem; }
.demo-court { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid var(--line); }.demo-court span, .demo-court b { display: block; }.demo-court span { color: var(--muted); font-size: 0.76rem; margin-bottom: 0.2rem; }
.demo-score-input { display: flex; align-items: center; gap: 0.7rem; }.demo-score-input button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; cursor: pointer; }.demo-score-input strong { font-size: 1.3rem; }.demo-score-input em { color: var(--brand); font-style: normal; }
.standings-demo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem; }.standings-demo__callout { padding: 1.25rem; background: var(--teal); color: #fff; }.standings-demo__callout span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }.standings-demo__callout strong { display: block; margin: 1rem 0 0.5rem; font-size: 1.45rem; }.standings-demo__callout p { margin: 0; color: rgba(255,255,255,.74); line-height: 1.55; font-size: .88rem; }
.demo-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0; }.demo-bottom h2 { margin: .4rem 0 0; font-size: 2rem; letter-spacing: -.05em; }.demo-checks { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: .7rem 1.5rem; }.demo-checks span::before { content: "→"; margin-right: .45rem; color: var(--brand); }

.hero,
.page-hero,
.surface,
.matchup-card,
.stat-card,
.table-card,
.split-panel,
.lineup-panel,
.contact-form,
.message-card,
.summary-card {
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero,
.page-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 570px;
  padding: 3rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 28, 43, 0.86) 0%, rgba(11, 28, 43, 0.58) 48%, rgba(11, 28, 43, 0.08) 100%),
    url("./hero-pickleball.jpg") center / cover no-repeat;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 0;
  background: rgba(249, 115, 22, 0.16);
  filter: blur(4px);
}

.hero::after {
  inset: auto -90px -100px auto;
  background: rgba(249, 115, 22, 0.38);
}

.hero__copy,
.page-hero__copy {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.86);
}

.hero .button {
  background: var(--brand);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 0.2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.68);
}

.hero__season-note {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 1;
  max-width: 235px;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: rgba(11, 28, 43, 0.76);
  border-radius: 0;
}

.hero__season-note span,
.hero__season-note strong {
  display: block;
}

.hero__season-note span {
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin: 1rem 0;
  letter-spacing: -0.06em;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button,
.ghost-button,
.chip,
.toggle-group button,
.round-tabs button,
.mini-button {
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  background: var(--brand);
  color: white;
  font-weight: 800;
  box-shadow: none;
}

.button:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.ghost-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  background: rgba(19, 34, 56, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.ghost-button:hover,
.mini-button:hover {
  background: rgba(19, 34, 56, 0.1);
}

.hero__board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.surface {
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.surface h3,
.table-card h2,
.section-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.surface p,
.meta,
.site-footer,
table {
  color: var(--muted);
}

.quick-stats,
.match-grid,
.dashboard-grid,
.two-up,
.lineup-grid,
.contact-grid,
.summary-grid {
  display: grid;
  gap: 1.25rem;
}

.quick-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 2rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stat-card span {
  font-size: 0.92rem;
}

.section {
  margin-top: 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0.35rem 0 0;
  max-width: 56ch;
  color: var(--muted);
}

.match-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.matchup-card {
  border-radius: var(--radius-md);
  border-top: 3px solid var(--brand);
  padding: 1.4rem;
}

.matchup-card__division {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid var(--teal);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.8rem;
}

.versus {
  display: grid;
  gap: 0.5rem;
}

.versus__team {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.versus__team small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.versus__split {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.meta-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.1rem;
  font-size: 0.92rem;
}

.dashboard-grid,
.two-up {
  grid-template-columns: 1.25fr 0.95fr;
}

.table-card,
.split-panel,
.lineup-panel,
.contact-form,
.message-card,
.summary-card {
  border-radius: 26px;
  padding: 1.35rem;
}

.table-card__head,
.split-panel__head,
.lineup-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.chip-row,
.toggle-group,
.round-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.chip,
.toggle-group button,
.round-tabs button {
  padding: 0.65rem 1rem;
  background: rgba(19, 34, 56, 0.07);
  color: var(--muted);
  font-weight: 800;
}

.chip.is-active,
.toggle-group button.is-active,
.round-tabs button.is-active {
  background: var(--ink);
  color: white;
}

.filters {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.filters label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--muted);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(19, 34, 56, 0.14);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: white;
  color: var(--ink);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

tbody tr:hover {
  background: rgba(19, 34, 56, 0.03);
}

.pill {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.page-hero {
  padding: 2.4rem;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.page-hero__meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.lineup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roster-group h3,
.scorecard-round h3 {
  margin: 0 0 0.85rem;
}

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

.roster-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.roster-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: rgba(19, 34, 56, 0.05);
}

.scorecard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.2rem;
}

.scorecard-round {
  display: grid;
  gap: 0.9rem;
}

.court-card {
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 20px;
  padding: 1rem;
  background: white;
}

.court-card__top,
.court-card__score,
.scoreline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.scoreline {
  gap: 0.6rem;
}

.scoreline input {
  max-width: 88px;
  text-align: center;
  font-weight: 800;
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.pair-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.message-card {
  margin-top: 1rem;
  border-style: dashed;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.registration-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.registration-aside {
  padding: 1.65rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fffaf2;
  position: sticky;
  top: 6rem;
}

.registration-aside .eyebrow {
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.12);
}

.registration-aside h2 {
  margin: 1rem 0 0.6rem;
  font-size: 1.7rem;
}

.registration-aside p {
  color: rgba(255, 250, 242, 0.74);
  line-height: 1.6;
}

.registration-list {
  padding-left: 1.2rem;
  line-height: 1.55;
}

.registration-list li + li {
  margin-top: 0.65rem;
}

.small-note,
.form-grid small {
  font-size: 0.8rem;
  line-height: 1.45;
}

.registration-form {
  padding: 1.65rem;
}

.registration-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
  margin: -0.25rem 0 1.5rem;
}

.registration-progress span {
  padding: 0 0 0.9rem;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.registration-progress .is-active {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.registration-step h2 {
  margin: 0;
}

.form-intro {
  color: var(--muted);
  margin: 0.4rem 0 1.25rem;
}

.agreement {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(19, 34, 56, 0.03);
  color: var(--ink) !important;
}

.agreement input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.35rem;
}

.empty-state {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(19, 34, 56, 0.05);
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(19, 34, 56, 0.12);
}

.site-footer p {
  margin: 0;
}

.hide {
  display: none;
}

@media (max-width: 920px) {
  .hero,
  .dashboard-grid,
  .two-up,
  .registration-shell,
  .contact-grid,
  .summary-grid,
  .lineup-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero,
  .demo-layout,
  .demo-grid,
  .standings-demo.full,
  .lineup-editor,
  .round-robin {
    grid-template-columns: 1fr;
  }

  .captain-lineup { grid-template-columns: 1fr; }
  .captain-lineup__roster { position: static; }
  .opponent-board { max-height: none; }
  .opponent-board__head, .lineup-match-row { grid-template-columns: 1fr; }
  .home-dropzone { min-height: 0; border-top: 1px solid var(--line); border-left: 0; }

  .demo-rail { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .demo-stage { padding-left: 0; }

  .hero {
    padding: 2rem;
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

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

  .quick-stats,
  .roster-columns,
  .form-grid,
  .pair-grid {
    grid-template-columns: 1fr;
  }

  .registration-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding-top: 1.2rem;
  }

  .hero,
  .page-hero,
  .surface,
  .table-card,
  .split-panel,
  .lineup-panel,
  .contact-form,
  .message-card,
  .summary-card,
  .matchup-card,
  .stat-card {
    border-radius: 20px;
  }

  .hero h1,
  .page-hero h1 {
    line-height: 1;
  }
}
