/* Ice Plant Pickleball Courts
   One family (Archivo, variable width): expanded heavy for display, normal for reading.
   Green means "yours or tappable". Everything else is black, white and cool gray. */

:root {
  --green: #007A33;          /* Pantone 356 C */
  --green-deep: #00552A;
  --green-tint: #E4F2E9;
  --green-line: #9CCBAE;
  --black: #000;
  --white: #fff;
  --stone: #EEF0EE;
  --stone-2: #E2E6E3;
  --line: #D3D8D4;
  --slate: #59615C;
  --mute: #8A928D;
  --red: #B42318;
  --red-tint: #FDECEA;
  --amber: #7A4D00;
  --amber-tint: #FFF3D6;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-stretch: 112%; }
h3, .h3 { font-size: 20px; font-weight: 700; margin-bottom: .6em; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; font-stretch: 112%; }
small { font-size: .82em; }
.muted { color: var(--slate); }
.center { text-align: center; }
.mt-l { margin-top: 2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- header / footer */
.announce { background: var(--black); color: var(--white); text-align: center; padding: 8px var(--gutter); font-size: 15px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; font-size: 22px; font-weight: 850; font-stretch: 125%; letter-spacing: -.02em; }
.brand-sub { font-size: 12.5px; color: var(--slate); margin-top: 4px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { color: var(--black); text-decoration: none; font-weight: 550; font-size: 15.5px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
@media (max-width: 560px) {
  .site-nav a:not(.btn):first-child { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.btn) { font-size: 14.5px; }
}

.site-footer { background: var(--black); color: #C9CFCB; margin-top: 96px; padding: 48px 0 56px; font-size: 15px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 48px; }
.footer-name { color: var(--white); font-weight: 750; font-stretch: 115%; font-size: 18px; }
.site-footer .muted { color: #9AA39D; }

/* ---------- buttons, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  background: var(--green); color: var(--white); border: 2px solid var(--green);
  padding: 14px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  min-height: 48px; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--stone-2); border-color: var(--stone-2); color: var(--mute); cursor: not-allowed; }
.btn-lg { font-size: 18px; padding: 18px 28px; min-height: 58px; }
.btn-sm { font-size: 15px; padding: 10px 16px; min-height: 40px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8E1B12; border-color: #8E1B12; }
.btn-quiet { background: var(--stone); border-color: var(--stone); color: var(--black); }
.btn-quiet:hover { background: var(--stone-2); border-color: var(--stone-2); color: var(--black); }
.link-strong { font-weight: 700; color: var(--black); text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--slate); text-decoration: underline; cursor: pointer; font-size: 15px; }
.link-btn:hover { color: var(--black); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--black); }

/* ---------- notices & badges */
.notice { border-radius: var(--r); padding: 14px 18px; margin: 18px 0; font-size: 15.5px; border: 1px solid transparent; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: var(--green-tint); border-color: var(--green-line); }
.notice-info { background: var(--stone); border-color: var(--line); }
.notice-error { background: var(--red-tint); border-color: #F3B8B2; color: #6E1610; }
.notice-warn { background: var(--amber-tint); border-color: #EBCB82; color: var(--amber); }
.badge { display: inline-block; font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
.badge-ok { background: var(--green-tint); color: var(--green-deep); }
.badge-warn { background: var(--amber-tint); color: var(--amber); }
.badge-bad { background: var(--red-tint); color: var(--red); }
.badge-muted { background: var(--stone); color: var(--slate); }

/* ---------- home */
.display {
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 850; font-stretch: 125%; line-height: .98; letter-spacing: -.035em;
  margin: 0 0 24px; max-width: 11ch;
}
.lede { font-size: clamp(18px, 2vw, 21px); color: #2C312E; max-width: 46ch; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.now-panel { background: var(--stone); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.now-title { font-size: 20px; font-stretch: 110%; margin-bottom: 18px; }
.now-foot { margin: 18px 0 0; font-weight: 600; }
.court-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) {
  .court-strip { gap: 6px; }
  .court-name { font-size: 13px; }
  .court-state { font-size: 11.5px; }
}
.court-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--black); }
.court-drawing {
  position: relative; aspect-ratio: 20 / 44; border-radius: 4px; background: var(--green);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--white);
}
.court-drawing::before { /* net */
  content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--white);
}
.court-drawing::after { /* centre lines */
  content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; top: 5px; bottom: 5px;
  background: linear-gradient(var(--white) 0 32%, transparent 32% 68%, var(--white) 68% 100%);
}
.court-drawing .kitchen { position: absolute; left: 5px; right: 5px; top: 32%; bottom: 32%; border-top: 2px solid var(--white); border-bottom: 2px solid var(--white); }
a.court-tile:hover .court-drawing { background: var(--green-deep); box-shadow: inset 0 0 0 3px var(--green-deep), inset 0 0 0 5px var(--white); }
a.court-tile:focus-visible { outline-offset: 4px; }
.court-name { font-weight: 750; font-size: 15px; }
.court-state { font-size: 13.5px; color: var(--slate); font-feature-settings: "tnum"; }
.court-available .court-state { color: var(--green-deep); font-weight: 650; }
.court-booked .court-drawing, .court-held .court-drawing, .court-reserved .court-drawing, .court-unavailable .court-drawing {
  background: var(--stone-2); box-shadow: inset 0 0 0 3px var(--stone-2), inset 0 0 0 5px var(--white);
}
.court-blocked .court-drawing { background: repeating-linear-gradient(135deg, #000 0 6px, #2E2E2E 6px 12px); box-shadow: inset 0 0 0 3px #000, inset 0 0 0 5px #888; }
.court-open_play .court-drawing { background: var(--green-tint); box-shadow: inset 0 0 0 3px var(--green-tint), inset 0 0 0 5px var(--green); }
.court-open_play .court-drawing::before, .court-open_play .court-drawing .kitchen { background: var(--green); border-color: var(--green); }
.court-open_play .court-drawing::after { background: linear-gradient(var(--green) 0 32%, transparent 32% 68%, var(--green) 68% 100%); }

.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-stone { background: var(--stone); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.section-head p { max-width: 52ch; margin: 0; }
.ribbon { display: flex; border-radius: var(--r); overflow: hidden; min-height: 132px; }
.ribbon-seg { flex: 1 1 0; padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; color: var(--white); background: var(--green); border-right: 2px solid var(--white); }
.ribbon-seg:last-child { border-right: 0; }
.ribbon-seg:first-child { background: var(--black); }
.ribbon-seg:nth-child(2) { background: var(--green); }
.ribbon-seg:nth-child(3) { background: var(--green-deep); }
.ribbon-rate { font-size: clamp(26px, 3.6vw, 44px); font-weight: 850; font-stretch: 120%; line-height: 1; letter-spacing: -.02em; font-feature-settings: "tnum"; }
.ribbon-label { font-weight: 700; margin-top: 6px; }
.ribbon-time { font-size: 14px; opacity: .85; }
.ribbon-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate); margin-top: 8px; font-feature-settings: "tnum"; }
@media (max-width: 640px) {
  .ribbon { flex-direction: column; min-height: 0; }
  .ribbon-seg { border-right: 0; border-bottom: 2px solid var(--white); flex-grow: 1 !important; }
  .ribbon-axis { display: none; }
}
.machine-note { margin-top: 24px; max-width: 70ch; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px clamp(32px, 6vw, 96px); }
.two-col.tight { gap: 16px 40px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 18px; height: 18px; border-radius: 4px; background: var(--green); box-shadow: inset 0 0 0 4px var(--green), inset 0 0 0 6px var(--white); }
.steps-row { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.steps-row li { counter-increment: step; border-top: 3px solid var(--black); padding-top: 16px; color: var(--slate); }
.steps-row li::before { content: counter(step); display: block; font-size: 40px; font-weight: 850; font-stretch: 125%; color: var(--green); line-height: 1; margin-bottom: 10px; }
.steps-row strong { display: block; color: var(--black); font-size: 18px; margin-bottom: 4px; }

/* ---------- booking flow */
.book-head { padding-top: 28px; }
.page-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 850; font-stretch: 122%; letter-spacing: -.03em; line-height: 1.02; margin: 8px 0 20px; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; font-size: 14px; counter-reset: p; flex-wrap: wrap; }
.progress li { counter-increment: p; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.progress li + li::before { content: ""; width: 18px; height: 1px; background: var(--line); margin-right: 2px; }
.progress li > *::before { content: counter(p) ". "; }
.progress li[aria-current="step"] { color: var(--black); font-weight: 700; }
.progress li.done, .progress li.done a { color: var(--green-deep); }

.datebar { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; scrollbar-width: thin; flex: 1; }
.date-chip {
  flex: 0 0 auto; scroll-snap-align: center; width: 64px; padding: 8px 0 10px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--white); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; position: relative; line-height: 1.15;
}
.date-chip:hover { border-color: var(--black); }
.date-chip[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.dc-day { font-size: 12.5px; font-weight: 600; }
.dc-num { font-size: 22px; font-weight: 800; font-stretch: 115%; font-feature-settings: "tnum"; }
.dc-mon { font-size: 12px; opacity: .75; }
.dc-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.date-chip[aria-selected="true"] .dc-dot { background: #6FD49A; }
.date-label { font-size: 18px; font-weight: 700; margin: 6px 0 0; min-height: 1.5em; }

.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 12px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 4px 0 16px; font-size: 13.5px; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 18px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.sw-available { background: var(--white); }
.sw-selected { background: var(--green); border-color: var(--green); }
.sw-booked { background: var(--stone-2); border-color: var(--stone-2); }
.sw-reserved { background: var(--white); border: 2px dashed var(--slate); }
.sw-open_play { background: repeating-linear-gradient(135deg, var(--green-tint) 0 4px, #CDE7D6 4px 8px); border-color: var(--green-line); }
.sw-blocked { background: repeating-linear-gradient(135deg, #000 0 4px, #333 4px 8px); border-color: #000; }
.sw-unavailable { background: #F6F7F6; border-color: #ECEEEC; }
.sched-msg { font-weight: 600; min-height: 0; }
.sched-msg:not(:empty) { padding: 12px 0; }

/* desktop grid */
.sched-desktop { overflow: auto; max-height: max(420px, calc(100vh - 150px)); border: 1px solid var(--line); border-radius: var(--r); overscroll-behavior: contain; }
.sched-desktop:empty { display: none; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-feature-settings: "tnum"; }
.grid thead th { position: sticky; top: 0; background: var(--white); z-index: 2; font-size: 14px; font-weight: 750; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.grid th.g-time { width: 78px; text-align: right; padding-right: 12px; font-size: 13.5px; font-weight: 650; color: var(--slate); white-space: nowrap; }
.grid tbody th.g-time { vertical-align: top; padding-top: 10px; position: sticky; left: 0; background: var(--white); z-index: 1; }
.grid thead th.g-time { left: 0; z-index: 3; }
.grid td { padding: 3px; border-bottom: 1px solid var(--stone); }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid .g-machine { width: 92px; text-align: center; background: #FAFBFA; }
.cell {
  width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cell[aria-disabled="true"] { cursor: default; }
.c-available:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.c-price { color: var(--slate); font-weight: 550; }
.c-available:hover .c-price { color: var(--green-deep); }
.c-selected { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 750; }
.c-selected:hover { background: var(--green-deep); }
.c-booked, .c-held { background: var(--stone-2); border-color: var(--stone-2); color: var(--slate); }
.c-reserved { background: var(--white); border: 2px dashed var(--slate); color: var(--slate); }
.c-open_play { background: repeating-linear-gradient(135deg, var(--green-tint) 0 6px, #D5EBDD 6px 12px); border-color: var(--green-line); color: var(--green-deep); font-weight: 650; }
.c-blocked { background: repeating-linear-gradient(135deg, #000 0 6px, #2B2B2B 6px 12px); border-color: #000; color: var(--white); font-weight: 600; }
.c-unavailable { background: #F6F7F6; border-color: #F0F2F0; color: var(--mute); }
.c-tag { font-size: 12.5px; }
.mcell { font-size: 12.5px; font-weight: 600; }
.m-free { color: var(--green-deep); }
.m-busy { color: var(--mute); }

/* mobile list */
.sched-mobile { display: none; }
.court-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-snap-type: x proximity; }
.court-tab { flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--line); background: var(--white); border-radius: var(--r); padding: 10px 14px; font: inherit; cursor: pointer; text-align: left; min-width: 84px; }
.court-tab[aria-selected="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.ct-name { display: block; font-weight: 800; font-stretch: 112%; font-size: 17px; }
.ct-sub { display: block; font-size: 12.5px; opacity: .75; }
.mob-court { font-size: 22px; font-stretch: 115%; margin: 14px 0 8px; }
.slot-list { list-style: none; padding: 0; margin: 0; }
.slot-list li + li { margin-top: 6px; }
.slot-row {
  width: 100%; min-height: 62px; display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 10px 14px; font: inherit; text-align: left; cursor: pointer; font-feature-settings: "tnum";
}
.slot-row[aria-disabled="true"] { cursor: default; }
.sl-time { font-weight: 800; font-size: 17px; line-height: 1.15; }
.sl-time small { display: block; font-weight: 500; color: var(--slate); font-size: 12.5px; }
.sl-info small { color: var(--slate); }
.sl-mach { display: block; color: var(--green-deep) !important; font-weight: 600; }
.sl-action { font-weight: 750; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); }
.slot-row.c-selected { background: var(--green); border-color: var(--green); color: var(--white); }
.slot-row.c-booked, .slot-row.c-held { background: var(--stone-2); border-color: var(--stone-2); color: var(--slate); }
.slot-row.c-reserved { border: 2px dashed var(--slate); color: var(--slate); }
.slot-row.c-open_play { background: repeating-linear-gradient(135deg, var(--green-tint) 0 6px, #D5EBDD 6px 12px); border-color: var(--green-line); color: var(--green-deep); }
.slot-row.c-blocked { background: repeating-linear-gradient(135deg, #000 0 6px, #2B2B2B 6px 12px); border-color: #000; color: var(--white); }
.slot-row.c-unavailable { background: #F6F7F6; border-color: #F0F2F0; color: var(--mute); }
.slot-row.c-available:hover { border-color: var(--green); }
.slot-row.c-selected .sl-action { background: rgba(255, 255, 255, .2); color: var(--white); }
.slot-row.c-selected .sl-time small, .slot-row.c-selected .sl-info small { color: rgba(255, 255, 255, .85); }
.slot-row.c-blocked .sl-time small { color: #bbb; }

/* cart */
.cart { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); max-height: calc(100vh - 110px); overflow-y: auto; }
#cart-continue { position: sticky; bottom: 12px; }
.cart-toggle { display: none; }
.cart-body { padding: 22px; }
.cart-title { font-size: 20px; font-stretch: 112%; }
.cart-empty { color: var(--slate); font-size: 15px; }
.cart-items { list-style: none; padding: 0; margin: 0 0 12px; }
.cart-item { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.ci-top { display: flex; justify-content: space-between; gap: 12px; }
.ci-court { font-weight: 750; margin: 0; }
.ci-when { margin: 0; font-size: 14.5px; color: var(--slate); }
.ci-amt { font-weight: 750; margin: 0; white-space: nowrap; font-feature-settings: "tnum"; }
.ci-lines { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; color: var(--slate); }
.ci-lines li { display: flex; justify-content: space-between; gap: 8px; }
.ci-machine { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin: 10px 0 2px; cursor: pointer; }
.ci-machine input { width: 20px; height: 20px; accent-color: var(--green); margin: 1px 0 0; flex: none; }
.ci-machine span { flex: 1; }
.ci-machine small { display: block; color: var(--mute); }
.ci-machine.is-disabled { color: var(--mute); cursor: default; }
.cart-totals { border-top: 2px solid var(--black); padding-top: 12px; margin-top: 8px; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-feature-settings: "tnum"; }
.ct-total { font-size: 22px; font-weight: 850; font-stretch: 112%; margin-top: 8px; }
.cart-error { color: var(--red); font-size: 14.5px; font-weight: 600; margin: 8px 0; }
.cart-error:empty { display: none; }
.cart-fine { font-size: 13.5px; color: var(--slate); margin: 12px 0 0; }

@media (max-width: 1080px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; z-index: 40; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); max-height: 85vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
  .cart-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px var(--gutter); background: none; border: 0; font: inherit; font-weight: 750; font-size: 16px; cursor: pointer; text-align: left; }
  .cart-toggle-hint { font-weight: 600; color: var(--green-deep); font-size: 15px; }
  .cart-body { display: none; overflow-y: auto; padding: 0 var(--gutter) 16px; }
  .cart.is-open .cart-body { display: block; }
  .cart:not(.is-open) .cart-body { display: block; padding-top: 0; }
  .cart:not(.is-open) .cart-title, .cart:not(.is-open) .cart-empty, .cart:not(.is-open) .cart-items,
  .cart:not(.is-open) .cart-totals, .cart:not(.is-open) .cart-fine { display: none; }
  .page-book .site-footer { padding-bottom: 180px; }
}
@media (max-width: 760px) {
  .sched-desktop { display: none !important; }
  .sched-mobile { display: block; }
  .legend { gap: 6px 14px; font-size: 12.5px; }
  .datebar .icon-btn { display: none; }
}

/* checkout / review */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .summary { order: -1; } .pay-box { order: 0; } }
.form { max-width: 560px; }
.form.compact { max-width: 440px; margin-top: 16px; }
.field { margin-bottom: 20px; }
.field label, .lbl { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15.5px; }
.optional { font-weight: 450; color: var(--slate); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=time], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #B9C0BB; border-radius: var(--r-sm); background: var(--white); color: var(--black); min-height: 50px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 122, 51, .2); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.hint { font-size: 14px; color: var(--slate); margin: 6px 0 0; }
.field-error { color: var(--red); font-weight: 600; font-size: 14.5px; margin: 6px 0 0; }
.fine { font-size: 14px; color: var(--slate); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; cursor: pointer; font-size: 15.5px; }
.check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; margin: 1px 0 0; }
.check.is-invalid span { color: var(--red); font-weight: 600; }
.summary { background: var(--stone); border-radius: var(--r-lg); padding: 24px; }
.summary-title { font-size: 20px; font-stretch: 112%; }
.sum-items { list-style: none; padding: 0; margin: 0 0 12px; }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.policy-list { padding-left: 20px; margin: 0 0 16px; font-size: 15px; color: #2C312E; }
.policy-list li + li { margin-top: 6px; }
.terms { margin: 0 0 8px; font-size: 15px; }
.terms summary { cursor: pointer; font-weight: 650; color: var(--green-deep); padding: 6px 0; }
.release { margin-top: 10px; text-align: center; }
.sim-flag { background: var(--amber-tint); color: var(--amber); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; margin-top: 12px; }

.hold-timer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 20px; background: var(--black); color: var(--white); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 28px; }
.ht-label { margin: 0; font-weight: 650; }
.ht-clock { grid-row: span 2; margin: 0; font-size: clamp(40px, 6vw, 60px); font-weight: 850; font-stretch: 120%; font-feature-settings: "tnum"; line-height: 1; }
.ht-sub { margin: 0; font-size: 14px; color: #BFC6C1; }
.hold-timer.is-low { background: var(--amber-tint); color: var(--amber); }
.hold-timer.is-low .ht-sub { color: var(--amber); }
.hold-timer.is-expired { background: var(--stone-2); color: var(--black); }
.hold-timer.is-expired .ht-sub { color: var(--slate); }

.order-lines { list-style: none; padding: 0; margin: 0; }
.order-line { border-top: 1px solid var(--line); padding: 16px 0; }
.ol-head { display: flex; justify-content: space-between; gap: 16px; }
.ol-court { font-weight: 800; font-size: 18px; margin: 0 0 2px; }
.ol-when { margin: 0; color: #2C312E; }
.ol-amt { font-weight: 800; font-size: 18px; margin: 0; font-feature-settings: "tnum"; white-space: nowrap; }
.ol-breakdown { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--slate); }
.ol-breakdown li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 2px 0; font-feature-settings: "tnum"; }
.order-totals { border-top: 2px solid var(--black); padding-top: 12px; }
.who { margin-top: 28px; }

/* status / manage */
.status-page { padding-top: 48px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--stone-2); border-top-color: var(--green); animation: spin 0.9s linear infinite; margin: 8px 0 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.manage { padding-top: 32px; }
.confirm-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.ref-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 0 0 10px; }
.ref-label { color: var(--slate); font-size: 15px; }
.ref { font-size: clamp(28px, 4vw, 40px); font-weight: 850; font-stretch: 120%; letter-spacing: .02em; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.cancel-block details > summary { list-style: none; display: inline-flex; }
.cancel-block details > summary::-webkit-details-marker { display: none; }
.private-note { font-size: 14px; color: var(--slate); margin-top: 24px; }
.prose { padding-top: 32px; }
.prose h2 { margin-top: 1.6em; font-size: 24px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.error-page { padding: 64px var(--gutter); }

/* simulated checkout */
.bare { background: var(--stone); }
.mock { max-width: 480px; margin: 0 auto; padding: 32px 16px; }
.mock-banner { background: var(--amber-tint); color: var(--amber); border: 2px solid #EBCB82; border-radius: var(--r); padding: 14px 16px; font-size: 15px; margin-bottom: 16px; }
.mock-banner strong { display: block; font-size: 17px; }
.mock-card { background: var(--white); border-radius: var(--r-lg); padding: 28px; }
.mock-card form { display: grid; gap: 10px; }
.mock-amt { font-size: 40px; font-weight: 850; font-stretch: 120%; font-feature-settings: "tnum"; }

/* =================================================== admin */
.admin-body { background: #F7F8F7; }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--black); color: #CDD3CF; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: var(--white); margin: 4px 8px 24px; }
.admin-side .brand-sub { color: #9AA39D; }
.admin-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; color: #DDE2DE; text-decoration: none; padding: 9px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 550; }
.admin-nav a:hover { background: #1C1F1D; color: var(--white); }
.admin-nav a[aria-current="page"] { background: var(--green); color: var(--white); }
.admin-nav .count { background: var(--red); color: var(--white); border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.admin-nav-sep { height: 1px; background: #2A2E2B; margin: 10px 8px; }
.admin-user { margin-top: 24px; padding: 12px; font-size: 14px; border-top: 1px solid #2A2E2B; }
.admin-user form { margin-top: 6px; }
.admin-user .link-btn { color: #BFC6C1; }
.admin-main { padding: 24px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-top h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 850; font-stretch: 118%; margin: 0; letter-spacing: -.02em; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.warnings { margin-bottom: 18px; }
.warnings .notice { margin: 0 0 6px; padding: 10px 14px; }
.admin-menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 12px; }
  .admin-side .admin-nav, .admin-side .admin-user { display: none; }
  .admin-side.is-open .admin-nav, .admin-side.is-open .admin-user { display: grid; }
  .admin-side .brand { margin: 0; }
  .admin-side-top { display: flex; justify-content: space-between; align-items: center; }
  .admin-menu-btn { display: inline-flex; background: #1C1F1D; color: var(--white); border: 0; border-radius: var(--r-sm); padding: 10px 14px; font: inherit; font-weight: 650; cursor: pointer; }
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 19px; font-stretch: 108%; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat-v { font-size: 28px; font-weight: 850; font-stretch: 115%; font-feature-settings: "tnum"; line-height: 1.1; margin: 0; }
.stat-k { font-size: 14px; color: var(--slate); margin: 4px 0 0; }
.stat-note { font-size: 12.5px; color: var(--mute); margin: 6px 0 0; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-feature-settings: "tnum"; }
.tbl th { text-align: left; font-size: 13px; color: var(--slate); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--stone); vertical-align: top; }
.tbl tr:hover td { background: #FAFBFA; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl a { font-weight: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; }
.filters input, .filters select { min-height: 44px; padding: 9px 12px; font-size: 15px; width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.admin-main input, .admin-main select, .admin-main textarea { font-size: 15.5px; min-height: 44px; padding: 9px 12px; }
.admin-main .field { margin-bottom: 14px; }
.admin-main .field label { font-size: 14.5px; }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .admin-cols { grid-template-columns: 1fr; } }
.bar { height: 8px; background: var(--stone); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--green); width: 0; }
.series { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); }
.series span { flex: 1; background: var(--green); min-height: 1px; border-radius: 3px 3px 0 0; }
.audit-json { font-size: 12px; color: var(--slate); max-width: 420px; word-break: break-word; }

/* admin schedule */
.agrid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.agrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: 13px; }
.agrid th { position: sticky; top: 0; background: var(--white); z-index: 1; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.agrid th.t { width: 70px; text-align: right; padding-right: 10px; color: var(--slate); font-weight: 600; vertical-align: top; }
.agrid td { padding: 2px; border-bottom: 1px solid var(--stone); height: 42px; }
.acell { display: block; height: 100%; min-height: 38px; border-radius: 6px; padding: 4px 6px; text-decoration: none; color: inherit; line-height: 1.2; overflow: hidden; border: 1px solid transparent; }
.acell small { display: block; font-size: 11.5px; opacity: .85; }
.acell.c-available { border: 1px dashed var(--line); color: var(--mute); }
.acell.c-available:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }
.acell.c-booked { background: var(--green); color: var(--white); }
.acell.c-held { background: var(--amber-tint); color: var(--amber); }
.acell.c-reserved { background: var(--white); border: 2px dashed var(--black); }
.acell.is-past { opacity: .6; }
.acell.checked::after { content: " ✓"; font-weight: 800; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 140px; }
.wday h3 { font-size: 15px; margin-bottom: 8px; }
.wday h3 a { color: inherit; }
.wday ul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.wday li { padding: 3px 0; border-bottom: 1px solid var(--stone); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mday { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; min-height: 86px; text-decoration: none; color: inherit; font-size: 13px; }
.mday:hover { border-color: var(--green); }
.mday.is-other { opacity: .4; }
.mday .n { font-weight: 800; font-size: 16px; }
.mday .u { color: var(--green-deep); font-weight: 650; }
.mhead { font-size: 12.5px; color: var(--slate); font-weight: 650; padding: 0 4px; }
@media (max-width: 760px) { .week-grid, .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mhead { display: none; } }
.login { max-width: 420px; margin: 10vh auto; background: var(--white); border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line); }
.login .brand { margin-bottom: 24px; }

@media (max-width: 560px) {
  .progress { font-size: 13px; }
  .progress li + li::before { width: 10px; }
  .ol-breakdown li { grid-template-columns: 1fr auto; }
  .ol-breakdown li span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  .ol-breakdown li span:nth-child(3) { grid-row: 1 / span 2; grid-column: 2; }
}
.admin-link { color: var(--white); }
.admin-link-mute { color: #BFC6C1; font-size: 13.5px; }
.form-grid .span-all { grid-column: 1 / -1; }
code { font-size: .9em; background: var(--stone); padding: 1px 5px; border-radius: 4px; }

.tbl td:first-child { white-space: nowrap; }
