/* Summit Tennis — redesign (v2). The look comes from Joey's 2026 poster and banner:
   textured court green, big white condensed italic capitals, ball-yellow highlights,
   and white court lines as the one structural device. */
:root {
  --court: #5f8f67;          /* poster court green */
  --court-deep: #2e5137;     /* text on light, footer */
  --court-pale: #e9f1e6;     /* light bands: chalky court-side green, not cream */
  --ball: #f3e24b;           /* poster yellow */
  --clay: #f08a3a;           /* the orange ball */
  --line: #ffffff;           /* court lines */
  --ink: #1f2f23;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Montserrat', Arial, sans-serif;
  --r: 14px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.v2 { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--court-pale); }
body.v2 img { max-width: 100%; }
.v2 a { color: inherit; }
.v2 :focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.v2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .v2-wrap { padding: 0 16px; } }

/* ---------- type ---------- */
.v2-display { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  letter-spacing: .005em; line-height: .9; margin: 0 0 .35em; }
h1.v2-display { font-size: clamp(3rem, 8.5vw, 6.6rem); }
h1.v2-display span { display: block; color: var(--ball); font-size: .52em; line-height: 1.05; margin-top: .2em; }
.v2-h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.v2-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; }
.v2-sub { max-width: 40em; margin: -.4em 0 1.8em; }
.v2-small { font-size: .9rem; opacity: .9; }
.v2-kicker { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0 0 .8em; }
.v2-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.v2-btn, .v2 .st-open, .v2 .st-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 3px solid var(--line); font: 800 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease; }
.v2-btn:hover, .v2 .st-open:hover { transform: translateY(-2px); }
.v2 .v2-btn-yellow, .v2 .st-open { background: var(--ball); color: var(--court-deep); border-color: var(--ball); }
.v2 .v2-btn-ghost { background: transparent; color: var(--line); }
.v2 .st-form button[type=submit] { background: var(--court); color: #fff; border-color: var(--court); width: 100%; }
.v2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- header ---------- */
.v2-header { position: sticky; top: 0; z-index: 50; background: var(--court-deep); color: #fff; border-bottom: 4px solid var(--line); }
.v2-header-in { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.v2-logo img { display: block; width: 68px; height: 68px; }
.v2-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.v2-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.v2-nav li > a, .v2-sub-btn { display: block; padding: 10px 12px; color: #fff; text-decoration: none; font: 600 .95rem var(--body); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.v2-nav li > a:hover, .v2-sub-btn:hover, .v2-nav a[aria-current] { background: rgba(255,255,255,.12); }
.v2-has-sub { position: relative; }
.v2-sub-btn::after { content: ''; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.v2-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(20,40,25,.25); }
.v2-sub a { display: block; padding: 10px 12px; color: var(--court-deep); text-decoration: none; font-weight: 700; border-radius: 8px; }
.v2-sub a:hover { background: var(--court-pale); }
.v2-has-sub.is-open .v2-sub, .v2-has-sub:hover .v2-sub, .v2-has-sub:focus-within .v2-sub { display: block; }
.v2-nav-cta { min-height: 44px; padding: 0 20px; }
.v2-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.v2-burger span { display: block; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 1060px) {
  .v2-burger { display: block; }
  .v2-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--court-deep); padding: 8px 16px 20px; border-bottom: 4px solid var(--line); max-height: calc(100vh - 88px); overflow: auto; }
  .v2-header.is-open .v2-nav { display: flex; }
  .v2-nav ul { flex-direction: column; }
  .v2-nav li > a, .v2-sub-btn { padding: 14px 8px; font-size: 1.05rem; width: 100%; text-align: left; }
  .v2-sub { position: static; box-shadow: none; background: rgba(255,255,255,.08); }
  .v2-has-sub:hover .v2-sub { display: none; }
  .v2-has-sub.is-open .v2-sub { display: block; }
  .v2-sub a { color: #fff; }
  .v2-nav-cta { margin-top: 12px; }
}

/* ---------- bands ---------- */
.v2-band { padding: clamp(56px, 8vw, 96px) 0; }
.v2-pale { background: var(--court-pale); }
.v2-green, .v2-hero, .v2-pagehead, .v2-sesshead { background: var(--court) url(/img/court-texture.webp); background-size: 600px; color: #fff; }
.v2-yellowband { background: var(--ball); }

/* ---------- hero: poster in browser form ---------- */
.v2-hero { padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.v2-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
.v2-hero-text { padding-bottom: clamp(40px, 6vw, 80px); }
.v2-hero-pic { position: relative; align-self: stretch; min-height: 420px; }
.v2-hero-pic > img { position: absolute; inset: 0 -24px 0 0; width: calc(100% + 24px); height: 100%; object-fit: cover; border-top-left-radius: 220px; border-left: 6px solid var(--line); border-top: 6px solid var(--line); }
@media (max-width: 860px) {
  .v2-hero-in { grid-template-columns: 1fr; gap: 0; }
  .v2-hero-pic { min-height: 280px; margin: 0 -16px; }
  .v2-hero-pic > img { inset: 0; width: 100%; border-top-left-radius: 140px; }
  .v2-hero-text { padding-bottom: 32px; }
}

/* the "2 free trial sessions" roundel from the poster */
.v2-roundel { position: absolute; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #3fc3a7, #1f8f8a 70%); color: #fff; border: 6px solid #fff;
  font: italic 900 1.15rem/1 var(--display); text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: rotate(-8deg); }
.v2-roundel-hero { top: 26px; left: -40px; }
.v2-sess-hero .v2-roundel, .v2-prog-hero .v2-roundel { right: -10px; bottom: -14px; }
@media (max-width: 860px) { .v2-roundel { width: 104px; height: 104px; font-size: .95rem; } .v2-roundel-hero { left: 16px; top: 16px; } }

/* ---------- cards (court tiles) ---------- */
.v2-card { position: relative; display: block; background: #fff; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.v2-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.v2-prog { display: flex; flex-direction: column; padding: 26px 24px 24px; border-top: 10px solid var(--brand); }
.v2-prog img { width: 120px; height: 120px; object-fit: contain; margin: -70px 0 8px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
#programmes { padding-top: clamp(90px, 10vw, 120px); }
.v2-prog h3, .v2-mini h3 { font: italic 900 2rem/1 var(--display); text-transform: uppercase; margin: 0 0 8px; color: var(--court-deep); }
.v2-prog p { margin: 0 0 12px; }
.v2-prog .v2-link { margin-top: auto; color: var(--court-deep); }
.v2-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--brand, var(--court)); color: #fff; font-size: .82rem; font-weight: 700; }
.v2-prog .v2-pill { margin-bottom: 12px; }

.v2-sess { overflow: hidden; display: flex; flex-direction: column; border: 3px solid var(--line); box-shadow: 0 0 0 3px var(--brand) inset; }
.v2-sess-photo { position: relative; aspect-ratio: 16/9; background: var(--court); }
.v2-sess-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-sess-badge { position: absolute; right: 12px; top: 12px; width: 66px; height: 66px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.v2-sess-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.v2-sess-body h3 { font: italic 900 1.9rem/1 var(--display); text-transform: uppercase; margin: 10px 0 4px; color: var(--court-deep); }
.v2-sess-venue { font-weight: 700; margin: 0; }
.v2-sess-meta { margin: 2px 0 12px; font-size: .92rem; }
.v2-sess .v2-link { margin-top: auto; color: var(--court-deep); }
.v2-sess:hover .v2-link { color: var(--brand); }
.v2-sess .v2-pill { align-self: flex-start; }

.v2-quote { margin: 0; padding: 26px; background: #fff; border-radius: var(--r); border-left: 8px solid var(--ball); }
.v2-quote blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.v2-quote figcaption { font-weight: 700; color: var(--court); }

.v2-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-steps li { counter-increment: s; border: 3px solid var(--line); border-radius: var(--r); padding: 22px 22px 22px 88px; position: relative; display: flex; flex-direction: column; }
.v2-steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; font: italic 900 3.6rem/1 var(--display); color: var(--ball); }
.v2-steps li strong { font-size: 1.15rem; }
.v2-towns { font-weight: 600; max-width: 46em; }
@media (max-width: 860px) { .v2-steps ol { grid-template-columns: 1fr; } }

.v2-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-mini { padding: 24px; }
.v2-mini p { margin: 0 0 10px; }
@media (max-width: 860px) { .v2-more { grid-template-columns: 1fr; } }

/* ---------- page heads ---------- */
.v2-pagehead { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.v2-pagehead a { color: var(--ball); }
.v2-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.v2-filter button { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 3px solid var(--line); background: transparent; color: #fff; font: 700 .95rem var(--body); cursor: pointer; }
.v2-filter button small { font-weight: 500; opacity: .85; margin-left: 4px; }
.v2-filter button.is-on { background: #fff; color: var(--court-deep); }
.v2-venue { margin: 0 0 56px; }
.v2-venue[hidden] { display: none; }
.v2-venue-head { border-left: 8px solid var(--court); padding-left: 18px; margin-bottom: 22px; }
.v2-venue-head h2 { font: italic 900 clamp(1.9rem, 4vw, 2.6rem)/1 var(--display); text-transform: uppercase; margin: 0 0 6px; color: var(--court-deep); }
.v2-venue-head p { margin: 0 0 4px; max-width: 48em; }
.v2-venue-head a { color: var(--court-deep); font-weight: 700; }

.v2-sesshead { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px); }
.v2-sesshead-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.v2-sesshead h1.v2-display { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.v2-back { display: inline-block; margin-bottom: 18px; color: #fff; font-weight: 600; }
.v2-facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 18px 0 0; padding: 0; }
.v2-facts li { border: 3px solid var(--line); border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 110px; }
.v2-facts strong { font: italic 900 1.8rem/1 var(--display); color: var(--ball); }
.v2-facts span { font-size: .85rem; }
.v2-sess-hero, .v2-prog-hero { position: relative; }
.v2-sess-hero > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 120px 18px 18px 18px; border: 6px solid var(--line); display: block; }
.v2-prog-hero > img { width: 100%; max-width: 380px; display: block; margin: 0 auto; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.v2-ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.v2-ticks li { padding-left: 34px; position: relative; margin: 8px 0; font-weight: 600; }
.v2-ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--ball);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.08); }
@media (max-width: 860px) { .v2-sesshead-in { grid-template-columns: 1fr; } .v2-sess-hero { max-width: 520px; } }

.v2-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.v2-book, .v2-info { padding: 28px; }
.v2-book h2, .v2-info h2 { font: italic 900 1.9rem/1 var(--display); text-transform: uppercase; color: var(--court-deep); margin: 0 0 10px; }
.v2-info h2 { font-size: 1.4rem; margin-top: 20px; }
.v2-info h2:first-child { margin-top: 0; }
.v2-info p { margin: 0 0 8px; }
.v2-book { border-top: 10px solid var(--ball); }
.v2-formwrap .st-open { width: 100%; }
.v2-formwrap-full .st-open { background: #fff; color: var(--court-deep); border-color: var(--court); }
.v2-or { margin: 22px 0 10px; font-weight: 700; }
@media (max-width: 860px) { .v2-two { grid-template-columns: 1fr; } }

.v2-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v2-photos img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); border: 5px solid #fff; }
@media (max-width: 700px) { .v2-photos { grid-template-columns: 1fr 1fr; } .v2-photos img:nth-child(3) { display: none; } }

/* sign-up dialog in the new colours (layout from summit.css) */
.v2 .st-dialog { border-top: 10px solid var(--ball); font-family: var(--body); }
.v2 .st-form-title { font: italic 900 1.8rem/1 var(--display); text-transform: uppercase; color: var(--court-deep); }

/* ---------- footer ---------- */
.v2-footer { background: var(--court-deep); color: #fff; padding: 56px 0 24px; border-top: 6px solid var(--line); }
.v2-footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.v2-footer h3 { font: italic 900 1.4rem/1 var(--display); text-transform: uppercase; color: var(--ball); margin: 0 0 12px; }
.v2-footer a { display: block; color: #fff; text-decoration: none; padding: 4px 0; }
.v2-footer a:hover { text-decoration: underline; }
.v2-foot-tag { margin: 10px 0 0; }
.v2-social a { display: inline; }
.v2-copy { margin-top: 32px; font-size: .85rem; opacity: .8; }
.v2-copy a { display: inline; }
@media (max-width: 860px) { .v2-footer-in { grid-template-columns: 1fr 1fr; } }

/* ---------- pages that keep their Squarespace content ---------- */
body.v2-legacy { background: var(--court) url(/img/court-texture.webp); background-size: 600px; }
body.v2-legacy #page { --header-height: 0px; }
body.v2-legacy .v2-legacy-inner { min-height: 50vh; }
body.v2-legacy .page-section, body.v2-legacy .section-background { background-color: transparent !important; }
body.v2-legacy .v2-header, body.v2-legacy .v2-footer { font-family: var(--body); }
body.v2-legacy #page h1, body.v2-legacy #page h2, body.v2-legacy #page h3 { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .005em; }
.v2-sess[hidden], .v2-venue[hidden] { display: none !important; }
.v2-notrunning{background:#fff6d6;border:2px solid #f3e24b;border-radius:16px;padding:18px 20px;color:#1f2d22}
.v2-notrunning h2{margin:0 0 .4em}
.v2-notrunning a{color:#2e5137;text-decoration:underline}
[data-sid][hidden],.v2-venue[hidden]{display:none!important}
.v2-cancel-flag{margin:.2em 0 0;color:#b4530d;font-weight:800}
.v2-next{margin:12px 0 0;background:rgba(255,255,255,.14);border-radius:12px;padding:10px 14px;font-weight:600}
.v2-next.is-cancel{background:#fff6d6;color:#1f2d22}
.v2-note-flag{margin:.2em 0 0;color:#2e5137;font-weight:800;background:#fff6d6;border-radius:8px;padding:4px 8px}
.v2-videoband{background:var(--court-deep,#2e5137)}
.v2-video{display:block;width:100%;max-width:900px;margin:0 auto;border-radius:18px;border:4px solid #fff;background:#000;aspect-ratio:16/9}
/* live calendar (1 Nov 2026) */
.v2-calpick{display:flex;flex-direction:column;gap:6px;font-weight:700;margin:0 0 18px;max-width:560px}
.v2-calpick select{font:inherit;font-size:16px;padding:12px 14px;border-radius:12px;border:2px solid #2e5137;background:#fff}
#v2-cal{background:#fff;border-radius:18px;padding:14px;color:#1f2d22}
#v2-cal .fc-button-primary{background:#2e5137;border-color:#2e5137}
#v2-cal .fc-button-primary:not(:disabled).fc-button-active{background:#f08a3a;border-color:#f08a3a}
#v2-cal .fc-list-day-cushion{background:#f3e24b}
#v2-cal .fc-toolbar{flex-wrap:wrap;gap:8px}
#v2-cal .fc-toolbar-title{font-size:1.3rem}
.v2-cal-where{font-size:.85em;color:#5b6b5e;margin-top:2px}
.v2-cal-cancel .fc-list-event-title{color:#b00020;font-weight:700}
.v2-calnote{font-size:.9rem;opacity:.8;margin-top:10px}
.v2-venue-day{margin:0 0 2px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.85rem;color:#f08a3a}
/* 1 Nov 2026: keep "Tuesdays 3:15pm" on one line under the venue */
h1.v2-display span span { display: inline; font-size: inherit; margin: 0; color: inherit; line-height: inherit; }
.v2-finders{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 4px}
.v2-finders label{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:.9rem;flex:1 1 200px;max-width:320px}
.v2-finders select{font:inherit;font-size:16px;padding:11px 12px;border-radius:12px;border:2px solid #fff;background:#fff;color:#1f2d22}
