/* ==========================================================================
   Sudbury Indoor Tennis Centre — site stylesheet
   ========================================================================== */

:root {
  --pine-950: #0b2038;
  --pine-900: #10304f;
  --pine-700: #1d5a8f;
  --pine-100: #e1ebf5;
  --pine-50:  #eff4f9;
  --ball:     #e8ef4a;
  --ball-soft:#f9f7d4;
  --ink:      #151f28;
  --muted:    #55616b;
  --paper:    #f3f5f7;
  --card:     #ffffff;
  --line:     #dee3e9;
  --amber-bg: #fbf3d6;
  --amber-line: #ecdfae;
  --amber-ink: #5c4a12;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 40, 0.05), 0 8px 24px rgba(15, 27, 40, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 27, 40, 0.06), 0 14px 34px rgba(15, 27, 40, 0.12);
  --container: 1140px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03125rem; /* 16.5px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--ink);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--pine-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid rgba(29, 90, 143, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--pine-950);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pine-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pine-950);
  color: #fff;
}

.btn-ball {
  background: var(--ball);
  color: var(--pine-950);
}

.btn-ball:hover {
  background: #f0f66e;
  color: var(--pine-950);
}

.btn-outline {
  border-color: var(--pine-700);
  color: var(--pine-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--pine-50);
  color: var(--pine-950);
  border-color: var(--pine-950);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(15, 27, 40, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pine-950);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.brand-text .brand-sub {
  color: var(--pine-700);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  border-radius: 6px;
}

.nav-menu a:not(.btn):hover {
  color: var(--pine-950);
  background: var(--pine-50);
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: var(--pine-950);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--ball);
  border-radius: 6px 6px 0 0;
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 11px 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-950);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(15, 27, 40, 0.14);
  }

  .site-header.nav-open .nav-menu {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    padding: 13px 12px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .nav-menu a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--ball);
    border-radius: 0 8px 8px 0;
    background: var(--pine-50);
  }

  .nav-cta {
    margin: 12px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Notice banner
   -------------------------------------------------------------------------- */

.notice {
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-line);
  color: var(--amber-ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.notice .container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.notice strong {
  font-weight: 700;
}

.notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Heroes
   -------------------------------------------------------------------------- */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(232, 239, 74, 0.14), transparent 60%),
    linear-gradient(160deg, var(--pine-900), var(--pine-950) 65%);
  color: #fff;
}

.hero-court {
  position: absolute;
  right: -140px;
  bottom: -60px;
  width: 780px;
  max-width: 90vw;
  opacity: 0.14;
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: 96px;
  padding-bottom: 104px;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--ball);
}

.hero .lead,
.page-hero .lead {
  font-size: 1.17rem;
  color: #cdddec;
  max-width: 58ch;
}

.page-hero .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 64px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.3em;
}

.page-hero .hero-court {
  opacity: 0.1;
  width: 640px;
  right: -160px;
  bottom: -100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--ball);
}

.hero .eyebrow,
.page-hero .eyebrow,
.band-dark .eyebrow {
  color: var(--ball);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-white {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head .lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.band-dark {
  background:
    radial-gradient(900px 420px at 15% 120%, rgba(232, 239, 74, 0.12), transparent 60%),
    var(--pine-950);
  color: #fff;
  padding: 76px 0;
}

.band-dark h2 {
  color: #fff;
}

.band-dark p {
  color: #cdddec;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */

.stat-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}

.stat .stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pine-900);
}

.stat .stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

a.card {
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--pine-700);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pine-50);
  color: var(--pine-700);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pine-700);
}

a.card:hover .card-link {
  color: var(--pine-950);
}

.card-link::after {
  content: " \2192";
}

/* --------------------------------------------------------------------------
   Split layouts
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split-wide-left {
  grid-template-columns: 1.2fr 1fr;
}

/* Grid children must be allowed to shrink below their content minimum,
   otherwise a wide table inside a column can force page overflow. */
.split > div,
.grid-2 > div {
  min-width: 0;
}

@media (max-width: 880px) {
  .split,
  .split-wide-left {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 420px;
}

caption {
  text-align: left;
  padding: 18px 20px 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pine-950);
}

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

thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--pine-900);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

tbody th {
  font-weight: 600;
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hours table */

.hours-table,
.table-fit {
  min-width: 0;
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  background: var(--ball-soft);
  font-weight: 700;
}

.today-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--pine-900);
  color: var(--ball);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Document list — club records on the documents page
   -------------------------------------------------------------------------- */

.doc-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px var(--space-gap, 12px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Small "PDF" / "DOCX" tag so nobody is surprised by what opens. */
.doc-kind {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--blue100, #e1ebf5);
  color: var(--pine-900);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc-note {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .doc-list li {
    padding: 14px 16px;
  }
}

/* --------------------------------------------------------------------------
   Embedded live schedule (CourtReserve widget)
   -------------------------------------------------------------------------- */

.embed-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  overflow: hidden;
}

.embed-wrap iframe {
  display: block;
  width: 100%;
  /* Fixed height: the widget does not report its own height to the page, so it
     cannot be auto-sized. It scrolls internally to reach later hours in the day. */
  height: 1100px;
  border: 0;
}

/* The "swipe sideways" hint only exists where it is needed. */
.swipe-hint {
  display: none;
}

@media (max-width: 760px) {
  .swipe-hint {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* On a phone the schedule is wider than the screen, so the wrapper scrolls
     sideways. That is deterministic: every court is reachable by swiping the
     wrapper, whatever the widget does inside. */
  .embed-wrap {
    padding: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .embed-wrap iframe {
    width: 680px;
    height: 1000px;
  }
}

.embed-wrap noscript p {
  padding: 16px;
}

/* Home page: a shorter window onto the schedule, scrolling inside itself. */
.embed-wrap.compact iframe {
  height: 640px;
}

@media (max-width: 640px) {
  .embed-wrap.compact iframe {
    height: 520px;
  }
}

/* --------------------------------------------------------------------------
   Live open / closed line (hero)
   -------------------------------------------------------------------------- */

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 9px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.open-status[hidden] {
  display: none;
}

.open-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a9bb0;
}

.open-status.is-open .open-dot {
  background: #5fe08a;
  box-shadow: 0 0 0 4px rgba(95, 224, 138, 0.25);
}

/* --------------------------------------------------------------------------
   Quick-action bar — phones only
   -------------------------------------------------------------------------- */

.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(11, 32, 56, 0.1);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1.5px solid var(--pine-700);
    border-radius: 10px;
    color: var(--pine-700);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .mobile-bar a.mobile-bar-primary {
    background: var(--pine-700);
    color: #fff;
  }

  /* Leave room so the bar never covers the last line of a page. */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Level numerals (adult 100 series) and junior ball-stage chips
   -------------------------------------------------------------------------- */

.level-num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pine-700);
}

.ball-chip {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.12);
}

.ball-red { background: #d9442f; }
.ball-orange { background: #f08a24; }
.ball-green { background: #6bb04a; }

/* --------------------------------------------------------------------------
   Feature list / checklist
   -------------------------------------------------------------------------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ball);
  box-shadow: inset 0 0 0 2px var(--pine-900);
}

.feature-list li strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  border-left: 2px solid var(--pine-100);
  display: grid;
  gap: 28px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ball);
  border: 3px solid var(--pine-900);
}

.timeline .tl-year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pine-900);
  letter-spacing: 0.02em;
}

.timeline p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Coach cards / people
   -------------------------------------------------------------------------- */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.coach-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.coach-card h3 {
  margin-bottom: 4px;
}

.role-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--pine-100);
  color: var(--pine-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.coach-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.person .person-name {
  font-weight: 700;
}

.person .person-role {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Price highlight panel
   -------------------------------------------------------------------------- */

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.panel-dark {
  background: var(--pine-950);
  border: none;
  color: #fff;
}

.panel-dark h3 {
  color: #fff;
}

.panel-dark p {
  color: #cdddec;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 2px;
}

.price-line .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pine-900);
  line-height: 1;
}

.panel-dark .price-line .price {
  color: var(--ball);
}

.price-line .per {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-dark .price-line .per {
  color: #a7bcd1;
}

.panel-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.panel-dark .panel-list {
  color: #cdddec;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card .big-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--pine-950);
  color: #b6c4d2;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 24px 44px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .brand-text .brand-sub {
  color: var(--ball);
}

.footer-brand p {
  max-width: 34ch;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #d3dfeb;
}

.footer-col a:hover {
  color: var(--ball);
}

.footer-visit p {
  margin-bottom: 10px;
}

.footer-visit a {
  color: #d3dfeb;
}

.footer-visit a:hover {
  color: var(--ball);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4ecf4;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  background: var(--ball);
  color: var(--pine-950);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 0.86rem;
  color: #91a2b4;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* --------------------------------------------------------------------------
   Data tables on phones — stack each row instead of hiding columns
   --------------------------------------------------------------------------
   A sideways-scrolling price table hides the one number the visitor came for,
   so on small screens every row becomes a labelled block. */

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

  .table-stack thead {
    display: none;
  }

  .table-stack tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .table-stack tbody tr:last-child {
    border-bottom: none;
  }

  .table-stack th,
  .table-stack td {
    display: block;
    padding: 0;
    border: none;
  }

  .table-stack tbody th {
    margin-bottom: 6px;
    font-size: 1.08rem;
  }

  .table-stack td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    text-align: right;
    white-space: normal;
  }

  .table-stack td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Touch targets — everything tappable is at least 44px on phones
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .nav-toggle {
    min-height: 44px;
    padding: 10px 16px;
  }

  .nav-cta .btn {
    min-height: 48px;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-visit p {
    margin-bottom: 4px;
  }

  .social-row {
    gap: 10px;
  }

  .social-row a {
    width: 44px;
    height: 44px;
  }

  .doc-list a {
    display: inline-block;
    padding: 8px 0;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.lead {
  font-size: 1.12rem;
}

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

.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .section-tight {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .hero .container {
    padding-top: 44px;
    padding-bottom: 52px;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .page-hero .container {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .band-dark {
    padding: 52px 0;
  }

  /* Stack the main calls to action full width — easiest to hit one-handed. */
  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
    min-height: 50px;
  }


  .btn-row .btn {
    flex: 1 1 auto;
  }

  .container {
    padding: 0 18px;
  }

  table {
    font-size: 0.92rem;
  }

  th, td {
    padding: 11px 14px;
  }

  caption {
    padding: 15px 14px 4px;
    font-size: 1.2rem;
  }

  .panel,
  .card,
  .coach-card,
  .contact-card {
    padding: 24px 20px;
  }

  .split,
  .split-wide-left {
    gap: 48px;
  }

  .map-frame {
    height: 300px;
  }

  .footer-grid {
    padding: 52px 18px 36px;
  }
}

/* Club forms (Netlify Forms) */
.club-form { max-width: 680px; display: grid; gap: 16px; }
.club-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.club-form input, .club-form select, .club-form textarea {
  font: inherit; font-weight: 400; font-size: 16px; width: 100%; min-height: 48px;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.club-form textarea { min-height: 120px; resize: vertical; }
.club-form input:focus, .club-form select:focus, .club-form textarea:focus { outline: 2px solid var(--pine-700); outline-offset: 1px; border-color: var(--pine-700); }
.club-form .form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.club-form button { justify-self: start; }
.hp-field { position: absolute; left: -9999px; }
@media (max-width: 640px) { .club-form .form-row { grid-template-columns: 1fr; } .club-form button { justify-self: stretch; } }

/* CourtReserve member registration embed (auto-sizes via postMessage) */
.register-embed { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.register-embed iframe { display: block; width: 100%; height: 1100px; border: 0; }
.small-note { margin-top: 12px; font-size: 0.95rem; }

/* Minutes archive + nominees */
.minutes-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.minutes-year h2 { font-size: 1.6rem; margin-bottom: 12px; }
.nominees { margin-top: 32px; }
.nominees h3 { margin-bottom: 4px; }

/* ---------- Home: event countdown pill ---------- */
.event-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px; background: rgba(232,239,74,.14); border: 1px solid rgba(232,239,74,.45); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.event-pill:hover { background: rgba(232,239,74,.22); }
.event-pill strong { color: var(--ball); }
.event-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(232,239,74,.7); animation: pill-pulse 2s infinite; flex: none; }
@keyframes pill-pulse { 0% { box-shadow: 0 0 0 0 rgba(232,239,74,.6); } 70% { box-shadow: 0 0 0 10px rgba(232,239,74,0); } 100% { box-shadow: 0 0 0 0 rgba(232,239,74,0); } }

/* ---------- Home: outdoor court weather ---------- */
.weather-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--pine-700); border-radius: var(--radius); max-width: 640px; }
.weather-card.is-good { border-left-color: #2e9e5b; }
.weather-card.is-bad { border-left-color: #c2543a; }
.weather-icon { font-size: 2.2rem; line-height: 1; flex: none; }
.weather-title { font-weight: 700; margin: 0 0 2px; }
.weather-text { margin: 0; color: #4a5866; }

/* ---------- Home: program finder ---------- */
.quiz-band { background: linear-gradient(180deg, #e9f1f9, #f3f5f7); }
.quiz { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(11,32,56,.07); }
.quiz-q { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.quiz-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pine-900); color: var(--ball); font-size: 1.05rem; flex: none; }
.quiz-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.quiz-opts button { font: inherit; font-weight: 600; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.quiz-opts button:hover, .quiz-opts button:focus-visible { border-color: var(--pine-700); background: #fff; transform: translateY(-1px); }
.quiz-step { animation: quiz-in .25s ease; }
.quiz-result { animation: quiz-in .3s ease; }
.quiz-result h3 { font-size: 1.8rem; margin: 4px 0 8px; }
@keyframes quiz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Home: gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--line); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .gallery figure { flex: 0 0 80%; height: 240px; scroll-snap-align: start; }
}

/* ---------- Home: sponsor wall ---------- */
.sponsor-wall { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sponsor-wall li { display: grid; place-items: center; height: 110px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sponsor-wall li.dark { background: #000; }
.sponsor-wall img { max-width: 100%; max-height: 80px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.sponsor-wall li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .sponsor-wall img { filter: none; opacity: 1; } }

/* ---------- App install card ---------- */
.app-card { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); text-align: left; max-width: 640px; }
.app-card img { border-radius: 12px; flex: none; }
.app-title { font-weight: 700; margin: 0; color: #fff; }
.app-text { margin: 2px 0 0; font-size: .95rem; opacity: .85; }
.app-card .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .app-card { flex-wrap: wrap; } .app-card .btn { margin-left: 0; width: 100%; } }

/* ---------- Home: smooth hero → stats → today flow ---------- */
.hero .container { padding-bottom: 150px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(11,32,56,0), rgba(11,32,56,.55)); pointer-events: none; }
.stat-strip { position: relative; z-index: 2; background: transparent; border: 0; margin-top: -84px; }
.stat-strip .stat-grid { background: #fff; border-radius: 18px; padding: 30px 36px; box-shadow: 0 18px 50px rgba(11,32,56,.16), 0 2px 6px rgba(11,32,56,.06); }
.stat-strip .stat { position: relative; }
.stat-strip .stat + .stat::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
#today { padding-top: 56px; background: linear-gradient(180deg, var(--paper) 0%, #fff 55%, var(--paper) 100%); }
@media (max-width: 860px) {
  .stat-strip .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .hero .container { padding-bottom: 120px; }
  .stat-strip { margin-top: -70px; }
  .stat-strip .stat-grid { padding: 22px 22px; border-radius: 16px; }
  #today { padding-top: 40px; }
}

.event-pill[hidden], .app-card[hidden], .weather-card[hidden] { display: none; }
.stat-strip .stat-grid { width: calc(100% - 48px); max-width: calc(var(--container) - 48px); }
@media (max-width: 640px) { .stat-strip .stat-grid { width: calc(100% - 32px); } }

/* ---------- Footer on phones: two columns where it fits ---------- */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; padding-bottom: 28px; }
  .footer-brand, .footer-visit { grid-column: 1 / -1; }
  .footer-col h4 { margin-bottom: 6px; }
  .footer-col ul { gap: 0; }
  .footer-col a { min-height: 40px; }
  .footer-visit p { margin-bottom: 8px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 6px; }
}
