/* The public club pages use the venue's court green, chalk and ball colours. */
:root, body.page-book {
  --deep: #102e2b; --deep-2: #193f39; --accent: #23594b; --accent-d: #123d33;
  --bg: #f8f9f5; --card-2: #eff3ed; --accent-soft: #e2eddf;
  --line: #d2dbd1; --line-2: #afc0b3; --head: #132d29; --muted: #53665e;
  --lime: #d8f36c; --font-display: "Club Museo", system-ui, sans-serif;
}
@font-face {font-family:"Club Museo";src:url("../../nc_assets/fonts/museo-sans-700-webfont.woff") format("woff");font-weight:700;font-display:swap}
html:has(body.page-book) {background:var(--bg)}
html {scroll-padding-top:85px}
.site-header {background:var(--deep);border-bottom:1px solid #3d5550}
.site-header .bar {min-height:66px}
.brand-main {font-family:var(--font-display);font-weight:700;letter-spacing:-.035em}
.logo-mark {background:none;padding:0;border-radius:0;height:34px}
.nav a {display:flex;align-items:center;min-height:44px}
.nav a[aria-current=page] {border-color:var(--lime)}
h1,h2,h3 {font-weight:700;letter-spacing:-.035em}
.btn {min-height:44px;align-content:center;border-radius:6px}
.venue {background:var(--deep);padding:clamp(18px,3vw,40px) 0}
.club-hero {display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);background:#1d413a;color:white}
.club-intro {align-self:center;padding:clamp(24px,4vw,60px)}
.club-location,.step-label,.footer-title,.live-list h3 {font:700 .82rem/1.4 var(--font-display);letter-spacing:.095em;text-transform:uppercase}
.club-location {color:var(--lime);margin:0 0 18px}
.club-intro h1 {font-size:clamp(2.15rem,3.65vw,3.35rem);line-height:1.02;max-width:15ch;color:white;margin:0 0 13px}
.club-tagline {font-size:clamp(1rem,1.55vw,1.24rem);color:#dfebe2;margin:0 0 22px}
.club-cta,.cart .btn-ball {background:var(--lime);color:var(--deep);border:0;padding:12px 22px}
.club-cta:hover,.cart .btn-ball:hover {background:#edffa1;color:var(--deep)}
.club-hours {border-top:1px solid #526d62;margin-top:24px;padding-top:16px}
.club-hours .open-pill {margin:0;padding:0;background:none;color:white;border:0;box-shadow:none;flex-wrap:wrap}
.club-hours .open-pill strong {color:white}
.club-hours .open-pill span {color:#d6e2da}
.club-hours .op-dot {width:8px;height:8px;animation:none;box-shadow:none}
.club-hero .gallery {height:100%;aspect-ratio:auto;border-radius:0}
.club-hero .gwrap {min-width:0}
.g-all {box-shadow:none;border-radius:5px;min-height:44px}
@media (min-width:761px) {
  .club-hero .gallery {display:block;position:absolute;inset:0}
  .club-hero .g-tile {display:none}
  .club-hero .g-main {display:block;width:100%;height:100%}
}
.hero {background:var(--bg);padding:clamp(28px,4vw,54px) 0 22px;border:0}
.hero-in {align-items:center;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.hero .hero-title,.guide-grid h2 {font-size:clamp(1.65rem,2.5vw,2.25rem)}
.hero .lede {max-width:48ch;color:var(--muted);margin:0;font-size:1rem}
.live-list h3 {margin:0 0 9px;color:var(--muted)}
.courts-now {display:flex;flex-wrap:wrap;gap:14px}
.cn {flex:1 1 112px;max-width:none;background:none;text-align:left;border:0;border-left:1px solid var(--line);border-radius:0;padding:2px 8px;display:grid;grid-template-columns:23px 1fr;gap:2px 8px;align-content:center}
.cn-svg {grid-row:1 / span 3;align-self:center}
.cn-name,.cn-state,.cn-sub {margin:0;grid-column:2}
.cn-state,.cn-sub {font-size:.8rem}
body.page-book .booking-desk .panel {background:white;margin:0;border:1px solid var(--line);border-bottom:0;border-radius:0;padding:clamp(16px,2.3vw,30px)}
body.page-book .booking-desk .panel:first-of-type {border-top:3px solid var(--deep);border-radius:6px 6px 0 0}
body.page-book .booking-desk .panel:last-of-type {border-bottom:1px solid var(--line);border-radius:0 0 6px 6px}
.panel-head h2 {font-size:1.25rem}
.date-strip .day {padding-block:11px}
.day .dnum,.cc-name,.chip-t,.dlg-total strong,.total-row strong {font-family:var(--font-display);font-weight:700}
.court-pick {grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:8px}
.court-card,.court-card.is-active {padding:13px 14px;align-items:stretch;text-align:left}
.court-card.is-active {box-shadow:inset 0 3px var(--accent)}
.cc-nums,.cc-nums b {font-size:.86rem}
.chips {grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
.chip {height:62px}
.chip-p {font-size:.83rem}
.chip-past .chip-t,.chip-past .chip-p {color:#737c75}
.chip-selected {background:var(--deep)}
.chip-free .chip-p {color:var(--accent)}
.chip-free:hover {background:var(--accent-soft)}
.dialog,.ticket,.lookup {border-radius:10px;border-top:4px solid var(--deep)}
.dialog {max-height:calc(100dvh - 24px);padding:clamp(18px,3vw,32px)}
.dialog::backdrop {background:rgb(9 32 29 / .62)}
.step-label {color:var(--accent);margin:0 38px 8px 0}
.dlg-total,.total-row {font-variant-numeric:tabular-nums}
.rv-box {border:0;border-left:3px solid var(--accent);border-radius:0}
.stack input,.dialog input:not([type=checkbox]),.dialog textarea,.pay-tab,.icon-btn,.dd-month {min-height:44px}
.ticket-top,.lookup h1,.prose h1,.play-head {padding-bottom:16px;border-bottom:1px solid var(--line)}
.booking-wrap .ticket,.lookup {margin-block:clamp(24px,4vw,52px)}
.ticket .ref strong {letter-spacing:.06em}
.ticket.st-pending {border-top-color:#ac741b}
.ticket.st-confirmed {border-top-color:var(--accent)}
.prose,.play {padding-block:clamp(28px,5vw,68px)}
.rules li {border-bottom:1px solid var(--line);padding:14px 0 14px 6px}
.rules li::marker {font-weight:700;color:var(--accent)}
.news {padding:18px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
.game {margin-top:20px}
.venue-guide {margin-top:clamp(28px,4vw,60px);padding:32px 0;background:#e7eee4}
.guide-grid {display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,5vw,64px);align-items:center}
.venue-card {border:0;border-left:1px solid #abbeac;border-radius:0;padding:4px 0 4px 24px;background:none;box-shadow:none;max-width:none}
.venue-about {margin:0}
.venue-card .vc-go {width:fit-content}
.onsite {background:var(--bg);padding-block:30px}
.onsite-grid {gap:16px}
body.page-book .os-card {background:none;box-shadow:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:15px 0}
.os-ico {background:none}
.footer-title {color:var(--lime);margin-bottom:12px}
.site-footer {background:var(--deep);margin-top:32px}
.foot-logo {box-shadow:none}
body.page-book .site-footer {margin:0}
[aria-busy=true] {cursor:progress}
.nav-toggle,.icon-btn,.gc-full {min-width:44px;min-height:44px}
.live-list,.panel,.t-main,.t-side {min-width:0}
@media (max-width:760px) {
  .club-hero,.hero-in,.guide-grid {grid-template-columns:minmax(0,1fr)}
  .club-hero {display:flex;flex-direction:column}
  .club-intro {width:100%;padding:24px}
  .club-hours {margin-top:18px;padding-top:12px}
  .club-hero .gallery {height:clamp(175px,45vw,290px)}
  .club-hero .gallery .g-tile {height:100%;aspect-ratio:auto}
  .club-location {margin-bottom:10px}
  .hero-in {gap:22px}
  .hero {padding-top:27px}
  .courts-now {gap:8px}
  .cn {flex:1 1 110px}
  .venue-card {border-left:0;border-top:1px solid #abbeac;padding:16px 0 0}
  .date-hint,.onsite.is-scrollable .os-hint {animation:none}
  .court-pick {grid-template-columns:repeat(2,minmax(0,1fr))}
  .chips {grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}
  .cc-name small,.cc-nums,.cc-nums b {font-size:.85rem}
  .panel-head h2 .muted {display:block;margin:4px 0 0}
  .site-header .bar {min-height:58px}
}
@media (max-width:450px) {
  .club-hero {margin-inline:-16px}
  .venue {padding:0}
  .club-intro {padding:23px 20px}
  .ticket,.lookup {padding:18px}
  .cart-in {gap:8px}
  .cart .btn {padding:11px 14px}
  .dialog {width:calc(100% - 16px)}
  .chip-p {font-size:.81rem}
}
@media print { .ticket {border:0} .site-header,.site-footer {display:none} }

.dd-days {grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.dd-days .weekday {text-align:center;font-size:.82rem;color:var(--muted);padding:4px 0}
.dd-days .dd-day {min-height:44px;justify-content:center}
.dd-days .dd-dow {display:none}
.dlg-line[hidden],.promo-row[hidden] {display:none}
@media(min-width:1100px) {
  .hero-in {grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
  .cn {flex-basis:96px}
}

/* ===== Mobile fix: "Courts right now" + "Court selection" (phones only) ===== */
@media (max-width:760px) {
  /* Courts right now: tidy 2-column cards, last odd court spans full width */
  .courts-now {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cn {flex:none;max-width:none;min-width:0;opacity:1;background:#fff;border:1px solid var(--line);border-left:1px solid var(--line);border-radius:8px;padding:10px 10px;display:grid;grid-template-columns:22px minmax(0,1fr);gap:1px 10px;align-items:center;align-content:center;text-align:left}
  .cn:last-child:nth-child(odd) {grid-column:1 / -1}
  .cn-svg {width:22px;max-height:48px;grid-row:1 / span 3}
  .cn-name {font-size:.95rem;font-weight:700;line-height:1.2}
  .cn-state {font-size:.85rem;line-height:1.25}
  .cn-sub {font-size:.78rem;line-height:1.25}

  /* Court selection: compact centered cards, 3 per row (never one orphan) */
  .court-pick {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(96px,100%),1fr));gap:8px}
  .court-card,.court-card.is-active {padding:10px 8px 9px;gap:7px;align-items:center;text-align:center;min-width:0}
  .court-card.is-active {box-shadow:inset 0 3px var(--accent)}
  .cc-name {display:flex;flex-direction:column;align-items:center;line-height:1}
  .cc-name small {display:block;font-size:.78rem;font-weight:500;color:var(--muted);margin-bottom:2px}
  .cc-name .cc-n {font-size:1.6rem;line-height:1}
  .cc-bar {width:100%;gap:1px;height:5px}
  .cc-nums {flex-direction:column;align-items:center;gap:1px;font-size:.78rem;line-height:1.25}
  .cc-nums span {white-space:nowrap}
  .cc-nums b {font-size:.95rem}
  .cc-badge {top:-7px;right:-5px}
}
@media (max-width:340px) {
  .courts-now {grid-template-columns:minmax(0,1fr)}
  .court-pick {grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== Booking page: progress strip, screenshot preview, cancel box ===== */
.trk {list-style:none;display:flex;gap:6px;margin:16px 0 0;padding:0}
.trk li {flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:.8rem;color:var(--muted);position:relative}
.trk li b {width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e3e9e1;color:var(--muted);font-size:.85rem}
.trk li.is-done b {background:var(--accent);color:#fff}
.trk li.is-done {color:var(--accent-d);font-weight:700}
.trk li.is-now b {background:var(--lime);color:var(--deep);box-shadow:0 0 0 3px #eef9c3}
.trk li.is-now {color:var(--deep);font-weight:700}
.proof-thumb {display:block;max-width:260px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.proof-thumb img {display:block;width:100%;height:auto;max-height:340px;object-fit:contain}
.cancel-box {margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
