/* Public store pages: structure only.
   Every colour and font on this sheet comes from the CSS custom properties
   that functions/api/_render.js injects from functions/api/_site.js, so
   rebranding a copy of the kit never means editing this file. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { background: var(--bg); scroll-behavior: smooth; color-scheme: dark; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  background:
    linear-gradient(180deg, var(--night-a78), var(--ink-a98)),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-glow); color: var(--text); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* minmax(0,1fr) pins the single column to the viewport; a bare auto
     track would grow to the widest child's natural width and push the
     whole page sideways on phones. */
  grid-template-columns: minmax(0, 1fr);
}

main, .site-footer { position: relative; z-index: 2; }
/* Above main: the open mobile menu is inside the header's stacking
   context and must paint over (and receive taps instead of) the content
   below it. */
.site-header { position: relative; z-index: 30; }

.site-header {
  z-index: 30;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--ink-a64);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.08rem;
  /* Wordmark: the brand serif at SemiBold, last word in accent italic. */
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 0 28px var(--accent-a18);
}

main { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem); }

.event-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.event-page.single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1.event-title {
  max-width: 560px;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
}
h1.event-title em { color: var(--accent); font-style: italic; font-weight: 300; }

.lead {
  max-width: 560px;
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}

.description { margin-top: 1.4rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; display: grid; gap: 0.7rem; max-width: 560px; }

.facts { margin-top: 1.75rem; display: grid; gap: 0.55rem; }
.facts .row {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.facts .row .k {
  flex: 0 0 34%;
  color: var(--text-subtle);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.facts .row .v { color: var(--text); }

.session-list { margin-top: 0.4rem; display: grid; gap: 0.25rem; }
.session-list .s { color: var(--text); font-size: 0.92rem; }
.session-list .s.canceled { color: var(--text-subtle); text-decoration: line-through; }
.session-list .s .note { color: var(--text-subtle); font-size: 0.8rem; text-decoration: none; }

.programs { margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.program-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--night-a50);
}
.program-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.2rem; }
.program-card .meta { color: var(--text-muted); font-size: 0.86rem; }
.program-card .price { margin-top: 0.5rem; color: var(--text); font-size: 0.9rem; }
.program-card .price strong { color: var(--accent); }
.program-card .price .per { color: var(--text-subtle); }

.custom-section { margin-top: 1.6rem; }
.custom-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.custom-section p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.6rem; }
.custom-section strong { color: var(--text); }

.poster { margin-top: 1.6rem; }
/* The frame is the same whether the poster links out (informational
   flyer, poster_zoom on) or sits inert (a photo); only links get hover. */
.poster a, .poster > img {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px var(--black-a45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.poster a:hover, .poster a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px var(--black-a55), 0 0 34px var(--accent-a12);
  outline: none;
}
.poster img { display: block; width: 100%; height: auto; }
.poster .cap { margin-top: 0.5rem; color: var(--text-subtle); font-size: 0.78rem; text-align: center; }

.policy-note {
  margin-top: 1.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white-a04);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.policy-note strong { color: var(--text); }
.policy-note p { margin-bottom: 0.5rem; }
.policy-note p:last-child { margin-bottom: 0; }

/* --- Registration panel --- */
.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--night-a60);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: sticky;
  top: 1.25rem;
}
.panel-title { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.35rem; }
.panel-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.status-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--night-a60);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.status-panel h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 0.6rem; }
.status-panel p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.member-note {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white-a05);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.age-warn {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--warn-strong);
  border-radius: 8px;
  background: var(--warn-strong-a12);
  color: var(--warn);
  font-size: 0.9rem;
  line-height: 1.5;
}
.age-warn:empty { display: none; }

.group { margin-bottom: 1.25rem; }
.group > .glabel {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.option-grid.stack { grid-template-columns: 1fr; }

.option {
  position: relative;
  display: block;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--white-a16);
  border-radius: 8px;
  background: var(--white-a05);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .opt-title { display: block; font-size: 0.92rem; font-weight: 600; }
.option .opt-meta { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }
.option:hover { border-color: var(--accent); }
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-a10);
  transform: translateY(-1px);
}
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.option.disabled { opacity: 0.45; cursor: not-allowed; }
.option.disabled:hover { border-color: var(--white-a16); }
.option .soldout { color: var(--danger); font-size: 0.78rem; font-weight: 700; }
.option .left { color: var(--accent); font-size: 0.78rem; font-weight: 600; }

/* Slot calendar (per-session-only programs, e.g. private lessons) */
.slot-calendar { display: grid; gap: 0.8rem; }
.slot-hint { color: var(--accent); font-size: 0.85rem; line-height: 1.5; margin: -0.2rem 0 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.cal-title { font-family: var(--serif); font-size: 1.1rem; }
.cal-pager {
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--white-a16);
  border-radius: 50%;
  background: var(--white-a05);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
.cal-pager:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-pager:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal-dow { text-align: center; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-subtle); padding-bottom: 0.15rem; }
.cal-empty { min-height: 2.6rem; }
.cal-cell {
  min-height: 2.6rem;
  display: grid;
  gap: 0.05rem;
  place-items: center;
  align-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-subtle);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.cal-cell.off { opacity: 0.35; }
.cal-cell.open {
  border-color: var(--white-a16);
  background: var(--white-a05);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cal-cell.open:hover { border-color: var(--accent); }
.cal-cell.full { border-color: var(--danger-a20); color: var(--text-subtle); cursor: not-allowed; text-decoration: line-through; }
.cal-cell.selected { border-color: var(--accent); background: var(--accent-a12); }
.cal-cell .num { line-height: 1; }
.cal-cell .mark { min-height: 0.8rem; font-size: 0.62rem; font-weight: 700; line-height: 1; }
.cal-cell .mark.dot::before { content: '•'; color: var(--accent); }
.cal-cell .mark.picked { color: var(--bg); background: var(--accent); border-radius: 99px; padding: 0.05rem 0.3rem; }
.cal-selected-label { font-size: 0.85rem; color: var(--text-muted); margin: -0.2rem 0 0; }
/* The venue for the selected day: unmissable, in the brand accent
   (bold italic serif) so nobody books the wrong side of town. */
.cal-location {
  display: block;
  margin: 0.1rem 0 0.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}
.time-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.time-chip {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--white-a16);
  border-radius: 999px;
  background: var(--white-a05);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.time-chip:hover:not(.disabled) { border-color: var(--accent); }
.time-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.time-chip.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.chosen-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding-top: 0.2rem; border-top: 1px solid var(--border-soft); }
.chosen-slots .glabel { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-right: 0.2rem; }
.chosen-chip {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-a10);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.chosen-chip:hover { background: var(--danger-a15); border-color: var(--danger); }

.badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.field { display: grid; gap: 0.42rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.field .hint { color: var(--text-subtle); font-weight: 400; font-size: 0.76rem; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--white-a18);
  border-radius: 6px;
  background: var(--border-soft);
  color: var(--text);
  font: inherit;
  padding: 0.72rem 0.85rem;
}
.field textarea { resize: vertical; }
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a14);
  outline: none;
}
.field select {
  appearance: none;
  /* The chevron is drawn in --text-muted; the whole data URI is a token
     because a hex colour URL-encoded inside one (%23xxxxxx) is invisible to
     a grep for brand literals, which is how it survived into the BLEND copy. */
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.field select option { background: var(--bg-deeper); color: var(--text); }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a14);
  outline: none;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.total-box {
  margin: 0.5rem 0 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-a08);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.total-box .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.total-box .amount { font-family: var(--serif); font-size: 1.9rem; color: var(--accent); }
.total-box .amount small { font-size: 0.8rem; color: var(--text-muted); font-family: var(--sans); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 1.28rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover:not(:disabled), .btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 34px var(--accent-glow);
  outline: none;
}
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

.form-note { margin-top: 0.9rem; color: var(--text-subtle); font-size: 0.8rem; line-height: 1.55; }

.banner {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.banner.error { border: 1px solid var(--danger-hot-a50); background: var(--danger-hot-a10); color: var(--danger-soft); }
.banner:empty { display: none; }

.success-panel h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: 0.6rem; }
.venmo-box { display: flex; gap: 1rem; align-items: center; margin: 0.9rem 0; padding: 0.9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--night-a50); }
.venmo-box img { border-radius: 8px; flex-shrink: 0; }
.venmo-box p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.success-panel p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.8rem; }
.summary-box {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-a08);
}
.summary-box .vrow { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; font-size: 0.95rem; }
.summary-box .vrow .k { color: var(--text-muted); }
.summary-box .vrow .v { color: var(--text); font-weight: 600; text-align: right; }

.draft-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--danger-strong);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  color: var(--text-subtle);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-soft);
}
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

main.center { text-align: center; padding-top: 4rem; }
main.center h1 { font-family: var(--serif); font-weight: 400; }

/* Shop menu (/programs) */
.shop { width: min(100%, 1180px); margin: 0 auto; }
.shop-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 1.2rem;
}
.shop-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--night-a60);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.shop-card:hover, .shop-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 48px var(--black-a50), 0 0 34px var(--accent-a10);
  outline: none;
}
/* Same crop rule as the homepage cards: tall box, window biased to the
   upper part of the (usually square) poster so faces never clip. */
.shop-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; }
.shop-card .no-poster {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--surface), var(--bg-deeper));
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Fallback badge when a program has no poster: brand minimum 80px, never
   stretched by the poster img rule above. */
.shop-card .no-poster img {
  width: 32%;
  min-width: 80px;
  max-width: 130px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 0 24px var(--accent-a15));
}
.shop-card-body { padding: 1rem 1.1rem 1.2rem; }
.shop-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin: 0 0 0.25rem; }
.shop-card .tag { color: var(--text-muted); font-size: 0.88rem; font-style: italic; font-family: var(--serif); margin: 0 0 0.5rem; }
.shop-card .meta { color: var(--text-subtle); font-size: 0.82rem; margin: 0 0 0.4rem; }
.shop-card .price { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin: 0; }
.soldout-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--danger-a15);
  color: var(--danger);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .event-page { grid-template-columns: 1fr; }
  .panel { position: static; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 460px) {
  .option-grid, .two-col { grid-template-columns: 1fr; }
}

/* The header wordmark's last word: accent italic, same as the emails. */
.site-brand em { color: var(--accent); font-style: italic; }

/* Primary nav: inline links on desktop, hamburger under 720px. */
.site-header { position: relative; }
.site-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; }
.nav-toggle:hover span { background: var(--accent); }
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); right: 0; left: 0; z-index: 40; flex-direction: column; gap: 0; background: var(--bg-deeper); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem clamp(1.25rem, 4vw, 3.5rem); border-top: 1px solid var(--border-soft); }
}

/* Contact page */
.contact-page { width: min(100%, 46rem); margin: 0 auto; text-align: center; }
/* The event-page title and lead carry a 560px max-width with no auto
   margins; on this centered page the boxes themselves must center too. */
.contact-page .event-title, .contact-page .lead { max-width: none; margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin: 2.4rem auto 0; max-width: 30rem; }
.contact-card {
  display: grid; gap: 0.45rem; padding: 1.7rem 1.4rem; text-align: center;
  background: var(--night-a60); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); }
.contact-value { font-family: var(--serif); font-size: 1.45rem; }

/* ------------------------------------------------------------------ */
/* /calendar: "What's on the Court". Namespaced evcal- so the booking
   calendar's cal- classes stay untouched. */
.evcal-shop { max-width: 66rem; }
.evcal-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.3rem 0 1.1rem; }
.filter-chip {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white-a05);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.selected { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.evcal-card {
  background: var(--bg-deeper);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.3rem;
}
.evcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.evcal-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.evcal-pagers { display: flex; gap: 0.5rem; }
.evcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.evcal-dow { text-align: center; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--text-subtle); padding-bottom: 0.3rem; text-transform: uppercase; }
.evcal-cell {
  min-height: 6.4rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.4rem 0.42rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  background: var(--white-a025);
  min-width: 0;
}
.evcal-cell.off { opacity: 0.3; background: transparent; border-color: transparent; min-height: 0; }
.evcal-cell.today { border-color: var(--accent-a45); }
.evcal-cell .num { font-size: 0.8rem; color: var(--text-subtle); line-height: 1; }
.evcal-cell.today .num { color: var(--accent); font-weight: 700; }
.evcal-dots { display: none; gap: 3px; justify-content: center; min-height: 6px; }
/* Every dot carries the brand accent, never grey (owner call
   2026-08-28, grey dots vanished next to the grey day numbers). */
.evcal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.evcal-entry {
  display: block;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.3;
  border-radius: 7px;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
  overflow-wrap: break-word;
}
.evcal-entry .t { font-weight: 700; letter-spacing: 0.01em; }
.evcal-entry.program { background: var(--surface); color: var(--text); border-color: var(--white-a10); }
.evcal-entry.program:hover { border-color: var(--accent); }
.evcal-entry.lesson { background: var(--accent-a10); color: var(--accent); border-color: var(--accent-a22); }
.evcal-entry.lesson:hover { border-color: var(--accent); }
.evcal-entry.full {
  background: var(--danger-a07);
  color: var(--text-subtle);
  border-color: var(--danger-a18);
  text-decoration: line-through;
  cursor: default;
}
.evcal-entry .badge { text-decoration: none; display: inline-block; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--danger); margin-left: 0.2rem; }
.evcal-entry .badge.closed { color: var(--text-subtle); }

.evcal-day-panel { margin-top: 0.9rem; border-top: 1px solid var(--border-soft); padding-top: 0.8rem; display: none; }
.evcal-day-label { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.5rem; }
.evcal-day-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.25rem 0; }
.evcal-day-row .evcal-entry { font-size: 0.85rem; }
.evcal-day-row .court { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--accent); }

.evcal-agenda-h { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 2.2rem 0 0.9rem; }
.evcal-agenda-h em { color: var(--accent); font-style: italic; }
.evcal-agenda { display: grid; gap: 0.55rem; max-width: 46rem; }
.evcal-empty { color: var(--text-muted); font-size: 0.92rem; }
.evcal-agenda-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.9rem;
  align-items: center;
  background: var(--bg-deeper);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
}
.evcal-agenda-row .when { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; grid-column: 1; }
.evcal-agenda-row .what { font-size: 0.92rem; grid-column: 1; }
.evcal-agenda-row .what .court { display: block; font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--accent); }
.evcal-agenda-row .go {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent-a35);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}
.evcal-agenda-row a.go:hover { background: var(--accent-a12); }
.evcal-agenda-row.full-row .what { color: var(--text-subtle); }
.evcal-agenda-row.full-row .go { color: var(--text-subtle); border-color: var(--border); }

/* Phone: the month compresses to a dot calendar; tapping a day lists its
   entries in the panel under the grid. */
@media (max-width: 720px) {
  .evcal-cell { min-height: 3.1rem; align-items: center; cursor: pointer; }
  .evcal-cell.off { cursor: default; }
  .evcal-cell.selected { border-color: var(--accent); background: var(--accent-a12); }
  .evcal-cell .evcal-entry { display: none; }
  .evcal-dots { display: flex; }
  .evcal-day-panel { display: block; }
  .evcal-day-panel[hidden] { display: none; }
  .evcal-dow { font-size: 0.55rem; }
}

/* The coach for the selected day (multi-coach deployments), under the
   court line in the same brand accent treatment, slightly smaller. */
.cal-coach {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}
.evcal-day-row .coach, .evcal-agenda-row .what .coach { font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--accent); }
