/* Public UI contract: explicit foregrounds for every action and surface. */
.public-brand {
  --action-lime: #c9ff38;
  --action-ink: #11170c;
  --color-accent-hover: #dcff79;
  --color-warning: #825000;
}
.public-brand .btn { border-radius: 12px; min-height: 44px; white-space: normal; line-height: 1.35; touch-action: manipulation; }
.public-brand .btn:is(.btn-primary,.btn-accent),
.public-brand .btn:is(.btn-primary,.btn-accent):is(:hover,:focus-visible,:active) {
  color: var(--action-ink); background: var(--action-lime); border-color: #95be25; box-shadow: none;
}
.public-brand .btn:is(.btn-primary,.btn-accent):hover { background: #dcff79; transform: none; }
.public-brand .btn.btn-outline { background: transparent; color: var(--color-text); border-color: #818b75; }
.public-brand .btn.btn-outline:is(:hover,:focus-visible,:active) { background: var(--color-text); color: var(--color-background); border-color: var(--color-text); }
.public-brand .btn.btn-dark { background: #20271a; color: #fff; border-color: #20271a; }
.public-brand .btn.btn-dark:is(:hover,:focus-visible,:active) { background: #36412c; color: #fff; border-color: #36412c; }
.public-brand .btn.btn-ghost { color: var(--color-text); }
.public-brand .btn.btn-ghost:is(:hover,:focus-visible,:active) { color: var(--color-text); background: #7c8b6b22; }
.public-brand .btn.btn-success-soft { background: #edf7ce; color: #354b09; border-color: #91a66b; }
.public-brand .btn.btn-danger { background: #fff0f0; color: #922d34; border-color: #c58388; }
.public-brand .btn.btn-danger:is(:hover,:focus-visible,:active) { background: #922d34; color: #fff; border-color: #922d34; }
.public-brand .btn:is(:disabled,.disabled,[aria-disabled="true"]) { background: #e1e5dc; color: #58614f; border-color: #c3cbb9; opacity: 1; box-shadow: none; transform: none; }
.public-brand .btn :is(.icon,i) { color: inherit; }
.public-brand :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #638100; outline-offset: 3px; }
.public-brand :is(.hero,.home-process,.facility-visit,.site-header,.site-footer,.mobile-nav,.page-hero) { --color-text: #fff; --color-background: #090b08; --color-text-muted: #c4cbbb; }
.public-brand :is(.hero,.home-process,.page-hero) :is(a,button):focus-visible { outline-color: #c9ff38; }
.public-brand .cta-band { --color-text: #11170c; --color-background: #c9ff38; }
.public-brand .cta-band .btn:is(.btn-primary,.btn-accent) { background: #11170c; color: #fff; border-color: #11170c; }
.public-brand .cta-band .btn:is(.btn-primary,.btn-accent):hover { background: #303d20; }
.public-brand .court-option.active .co-check { color: #11170c; }
.public-brand .slot.is-in_cart { background: #edf7ce; border-color: #638100; }
.public-brand .slot.is-in_cart .slot-status { color: #354b09; }
.public-brand .slot.is-selected,.public-brand .slot.is-selected:hover { background: #c9ff38; border-color: #638100; color: #11170c; box-shadow: none; }
.public-brand .slot.is-selected .slot-status { color: #11170c; }
.public-brand .tone-success { background: #edf7ce; color: #354b09; border-color: #a0b876; }
.public-brand .tone-danger { background: #fff0f0; color: #922d34; border-color: #c58388; }
.public-brand .text-green { color: #426000 !important; }
.public-brand .text-red { color: #922d34 !important; }
.public-brand .form-hint a { color: #426000 !important; text-decoration: underline; text-underline-offset: 3px; }
.public-brand .form-hint a:hover { color: #283b08 !important; }
.public-brand .mobile-nav .offcanvas-header { justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid #30382a; }
.public-brand .mobile-nav .brand-logo { min-width: 0; }
.public-brand .mobile-nav .brand-logo img { width: min(190px,100%); }
.public-brand .mobile-nav .drawer-close { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; margin: 0; border: 1px solid #65705a; border-radius: 12px; color: #fff; background: #20271a; }
.public-brand .mobile-nav .drawer-close:is(:hover,:focus-visible) { background: #35402b; color: #fff; }
.public-brand .mobile-nav .drawer-close .icon { width: 24px; height: 24px; }
.public-brand .mobile-summary-bar { background: #fff; color: #11170c; border-color: #cbd1c1; box-shadow: 0 -6px 24px #090b0814; }
.public-brand .mobile-summary-bar:not(.show) { visibility: hidden; pointer-events: none; }
.public-brand .social-links a:is(:hover,:focus-visible) { background: #c9ff38; color: #11170c; border-color: #95be25; }
.public-brand .secure-note .icon,.public-brand .status-icon.success { color: #466000; }
.public-brand .btn.is-loading::after { border-color: currentColor; border-right-color: transparent; }

/* Four distinct steps, with predictable tablet and phone layouts. */
.public-brand .home-process .section-head { align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.public-brand .home-process .section-head>div { max-width: 760px; }
.public-brand .home-process .section-head h2 { font-size: clamp(2.25rem,4.5vw,4rem); line-height: 1.05; }
.public-brand .home-process .section-head>.btn { flex-shrink: 0; }
.public-brand .home-process .steps { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border: 0; border-radius: 0; overflow: visible; }
.public-brand .home-process .step { padding: 28px 24px; background: #151b11; border: 1px solid #35402b; border-radius: 18px; }
.public-brand .home-process .step .step-num { position: absolute; top: 28px; right: 24px; color: #b8c2aa; font-size: .875rem; line-height: 1; font-style: normal; letter-spacing: .08em; }
.public-brand .home-process .step .step-icon { margin: 0 0 24px; background: #c9ff38; color: #11170c; width: 48px; height: 48px; }
.public-brand .home-process .step h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; }
.public-brand .home-process .step p { color: #c4cbbb; line-height: 1.6; }
.app-nav { display: none; }
@media (min-width:721px) and (max-width:1100px) {
  .public-brand .home-process .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .public-brand { --header-h: 64px; --app-nav-h: 68px; padding-bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom)); }
  .public-brand .container-x { width: calc(100% - 32px); }
  .public-brand .site-header { height: 64px; position: sticky; top: 0; background: #090b08; }
  .public-brand.home-reference .site-header:not(.is-scrolled) { background: #090b08; }
  .public-brand .site-header .brand-logo img { width: 150px; }
  .public-brand .site-header .container-x { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .public-brand .site-header .brand-logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
  .public-brand .header-actions { display: contents; }
  .public-brand .header-actions .cart-pill { grid-column: 3; grid-row: 1; }
  .public-brand .header-actions .nav-toggle { grid-column: 1; grid-row: 1; }
  .public-brand .site-header .btn-book-header,.public-brand .link-mybooking { display: none; }
  .public-brand .nav-toggle,.public-brand .btn-icon { min-width: 44px; min-height: 44px; }
  .app-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; inset: auto 0 0; z-index: 1020; min-height: calc(var(--app-nav-h) + env(safe-area-inset-bottom)); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d8dbd0; box-shadow: 0 -4px 24px #090b0810; }
  .app-nav a { min-height: 56px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: #525e46; border-radius: 12px; font-size: .68rem; font-weight: 750; text-align: center; }
  .app-nav a .icon { width: 22px; height: 22px; }
  .app-nav a span { white-space: nowrap; font-size: clamp(.625rem,2.7vw,.68rem); line-height: 1.3; }
  .app-nav a.active { background: #edf7ce; color: #283b08; }
  .app-nav a:active { background: #e6eddb; }
  .public-brand .mobile-nav { max-width: min(90vw,380px); }
  .public-brand .mobile-summary-bar { bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom)); padding: 12px 16px; gap: 8px; }
  .public-brand:has(.mobile-summary-bar.show) { padding-bottom: calc(var(--app-nav-h) + 100px + env(safe-area-inset-bottom)); }
  .public-brand .hero { min-height: auto; padding: 48px 0; }
  .public-brand .hero h1 { font-size: clamp(2.8rem,12vw,4.8rem); line-height: .98; }
  .public-brand .hero-desc { font-size: 1rem; }
  .public-brand .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
  .public-brand .quick-book-heading { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
  .public-brand .booking-live { grid-column: 2; margin: 0; justify-self: start; }
  .public-brand .hero-actions { gap: 12px; }
  .public-brand .hero-actions .btn { min-height: 50px; font-size: .95rem; }
  .public-brand .page-hero { padding: 28px 0 32px; }
  .public-brand .page-hero h1 { font-size: clamp(2rem,9vw,3rem); line-height: 1.08; margin: 16px 0; overflow-wrap: anywhere; }
  .public-brand .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .public-brand .section-head .btn { width: 100%; }
  .public-brand .section-head h2,.public-brand .section-title { font-size: 2.2rem; line-height: 1.1; }
  .public-brand .home-process .section-head { align-items: stretch; }
  .public-brand .home-process .steps { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .public-brand .home-process .step { padding: 22px 20px 22px 86px; min-height: 146px; }
  .public-brand .home-process .step .step-icon { position: absolute; left: 20px; top: 24px; width: 46px; height: 46px; margin: 0; }
  .public-brand .home-process .step .step-num { top: 82px; left: 33px; right: auto; }
  .public-brand .home-process .step h3 { margin-bottom: 6px; }
  .public-brand .booking-layout,.public-brand .checkout-layout { gap: 16px; padding: 20px 0 32px; }
  .public-brand :is(.card-x,.booking-panel,.summary-card,.court-card,.op-card,.rate-card) { border-radius: 16px; }
  .public-brand :is(.card-x-body,.panel-body,.sc-body,.sc-foot) { padding: 20px 16px; }
  .public-brand .form-control,.public-brand .form-select { font-size: 16px; min-height: 48px; border-radius: 10px; }
  .public-brand .btn { min-height: 48px; padding: 12px 16px; }
  .public-brand .btn-sm { font-size: .82rem; padding: 10px 12px; }
  .public-brand .btn-icon { padding: 0; }
  .public-brand .booking-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .public-brand .booking-steps .bs { flex-direction: column; text-align: center; font-size: .7rem; gap: 6px; }
  .public-brand .booking-steps .sep { display: none; }
  .public-brand .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-brand .slot { min-height: 88px; }
  .public-brand .slot .slot-foot { flex-wrap: wrap; }
  .public-brand .sel-item .si-remove { min-width: 44px; min-height: 44px; }
  .public-brand .cta-band { padding: 24px; border-radius: 20px; gap: 20px; }
  .public-brand .cta-band .btn { width: 100%; }
  .public-brand .contact-line { overflow-wrap: anywhere; }
  .public-brand .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
  .public-brand .footer-grid>div:first-child,.public-brand .footer-grid>div:last-child { grid-column: 1/-1; }
  .public-brand .footer-bottom { gap: 16px; }
  .public-brand .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media print { .app-nav { display: none !important; } .public-brand { padding-bottom: 0; } }

/* Shared light form theme, including calendars mounted directly under body. */
.public-brand :is(.form-control,.form-select) { border-radius: 12px; border-color: #b8c3ac; background-color: #fff; color: #11170c; color-scheme: light; }
.public-brand .form-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23465737' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.public-brand .form-select option { background: #fff; color: #11170c; }
.public-brand :is(.form-control,.form-select):focus { background-color: #fff; color: #11170c; border-color: #638100; box-shadow: 0 0 0 3px #71940026; }
.public-brand .dropdown-menu { background: #fff; color: #11170c; border-color: #b8c3ac; }
.public-brand .dropdown-item { color: #11170c; min-height: 44px; }
.public-brand .dropdown-item:is(:hover,:focus,.active) { background: #edf7ce; color: #283b08; }
.public-brand .flatpickr-calendar { background: #fff !important; color: #11170c; border-color: #b8c3ac !important; border-radius: 16px !important; box-shadow: 0 12px 36px #11170c26 !important; padding: 8px; width: 324px; max-width: calc(100vw - 24px); }
.public-brand .flatpickr-calendar.inline { padding: 8px 0; box-shadow: none !important; }
.public-brand .flatpickr-calendar :is(.flatpickr-month,.flatpickr-weekdays,.flatpickr-weekday,.flatpickr-monthDropdown-months) { color: #283b08 !important; background: #fff !important; fill: #283b08 !important; }
.public-brand .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: #fff; color: #11170c; }
.public-brand .flatpickr-current-month input.cur-year { color: #11170c; font-weight: 700; }
.public-brand .flatpickr-months :is(.flatpickr-prev-month,.flatpickr-next-month) { color: #283b08; fill: #283b08; padding: 12px; }
.public-brand .flatpickr-day { color: #11170c !important; border-radius: 10px !important; }
.public-brand .flatpickr-day:is(:hover,:focus) { background: #edf7ce !important; border-color: #b8ca93 !important; }
.public-brand .flatpickr-day.today { border-color: #638100 !important; }
.public-brand .flatpickr-day:is(.selected,.startRange,.endRange),.public-brand .flatpickr-day.selected:hover { background: #c9ff38 !important; color: #11170c !important; border-color: #638100 !important; }
.public-brand .flatpickr-day.flatpickr-disabled,.public-brand .flatpickr-day.flatpickr-disabled:hover { color: #8a9182 !important; background: #f3f5ef !important; border-color: transparent !important; cursor: not-allowed; }
.public-brand .flatpickr-day:is(.prevMonthDay,.nextMonthDay):not(.flatpickr-disabled) { color: #626e56 !important; }
.public-brand .flatpickr-calendar :is(.flatpickr-innerContainer,.flatpickr-rContainer,.flatpickr-days,.dayContainer) { width: 100%; min-width: 0; max-width: 100%; }
.public-brand .flatpickr-day { max-width: none; flex-basis: 14.2857%; }
.public-brand .flatpickr-calendar.arrowTop:after { border-bottom-color: #fff; }
.public-brand .flatpickr-calendar.arrowBottom:after { border-top-color: #fff; }
.public-brand .progress-x { background: #e4e9db; }
@media(max-width:720px) {
  /* Compact checkout/contact forms without shrinking their touch targets. */
  .public-brand .mobile-form-card .card-x-header { padding: 14px 16px; gap: 8px 12px; }
  .public-brand .mobile-form-card .card-x-header h2 { font-size: 1rem; }
  .public-brand .mobile-form-card .card-x-body { padding: 16px; }
  .public-brand .mobile-form-card .row { --bs-gutter-y: 12px; }
  .public-brand .mobile-form-card .form-label { margin-bottom: 6px; font-size: .8rem; }
  .public-brand .mobile-form-card :is(.form-control,.form-control-lg) { min-height: 48px; padding-top: 10px; padding-bottom: 10px; font-size: 16px; }
  .public-brand .mobile-form-card .input-group-x > .icon { left: 14px; width: 20px; height: 20px; }
  .public-brand .mobile-form-card .input-group-x > .form-control { padding-left: 44px; }
  .public-brand .mobile-form-card textarea.form-control { min-height: 84px; line-height: 1.4; resize: vertical; }
  .public-brand .mobile-form-card .form-hint { margin-top: 5px; font-size: .75rem; line-height: 1.4; }
  .public-brand .checkout-details-actions { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.35fr); gap: 10px; margin-top: 16px !important; }
  .public-brand .checkout-details-actions .btn { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; font-size: .88rem; white-space: nowrap; }
  .public-brand .checkout-details-actions .btn .icon { flex: 0 0 auto; }

  .public-brand .mobile-nav { width: min(88vw,360px); border-right: 1px solid #35402b; border-left: 0; }
  .public-brand .mobile-nav .offcanvas-body { padding: 16px 16px max(20px,env(safe-area-inset-bottom)); gap: 6px; }
  .public-brand .mobile-nav .nav-link-m { min-height: 48px; font-size: .95rem; }
  .public-brand .mobile-nav .mobile-cta { padding-top: 24px; }
  .public-brand .flatpickr-calendar.open:not(.inline) { position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important; transform: translate(-50%,-50%); animation: none; max-height: calc(100dvh - 32px); overflow-y: auto; }
  .public-brand .flatpickr-calendar:not(.inline):before,.public-brand .flatpickr-calendar:not(.inline):after { display: none; }
  .public-brand .flatpickr-day,.public-brand .flatpickr-calendar.inline .flatpickr-day { height: 44px; line-height: 44px; }
  .public-brand .flatpickr-months { padding-bottom: 8px; }
  .public-brand .filter-bar { display: grid; gap: 16px; padding: 16px; background: #fff; border: 1px solid #d8dbd0; border-radius: 16px; }
  .public-brand .filter-bar .filters { flex-wrap: wrap; gap: 8px; }
  .public-brand .filter-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .public-brand .filter-bar .form-select { min-width: 0 !important; flex: 1; }
  .public-brand .op-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .public-brand .op-card { padding: 20px; gap: 16px; }
  .public-brand .op-card-top { align-items: flex-start; gap: 10px; }
  .public-brand .op-card-foot { padding-top: 8px; }
  .public-brand .op-how { gap: 12px; }
  .public-brand .op-how-item { padding: 18px; border-radius: 16px; }
  .public-brand .card-x-header { padding: 18px 16px; flex-wrap: wrap; gap: 12px; }
  .public-brand .card-x-header h2 { line-height: 1.4; }
  .public-brand .card-x-footer { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .public-brand .card-x-footer>.btn { flex: 1 1 100%; }
  .public-brand .contact-item>div:last-child { min-width: 0; overflow-wrap: anywhere; }
  .public-brand .contact-grid { gap: 20px; }
  .public-brand .contact-grid form button[type="submit"] { width: 100%; }
  .public-brand .hours-list li { align-items: baseline; gap: 16px; }
  .public-brand .hours-list li>span:last-child { text-align: right; }
  .public-brand .court-card .actions { gap: 10px; }
  .public-brand .hero-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .public-brand .hero-stats .stat-value { font-size: clamp(1.05rem,4.8vw,1.4rem); }
  .public-brand .hero-stats .stat-label { font-size: .65rem; line-height: 1.5; letter-spacing: .05em; }
  .public-brand .quick-book-card .field .form-control,.public-brand .quick-book-card .field .form-select { background-color: #fff; border: 1px solid #b8c3ac; border-radius: 12px; }
  .public-brand .quick-book-card .field :is(.form-control,.form-select):focus { border-color: #c9ff38; box-shadow: 0 0 0 3px #c9ff3830; }
}
@media(max-width:520px) {
  .public-brand .checkout-details-actions { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .public-brand .checkout-details-actions .btn-primary { order: -1; }
  .public-brand .checkout-details-actions .btn-ghost { width: auto; min-width: 176px; justify-self: center; padding-inline: 18px; }
}

/* Courts page: one wide row per court with photo, details, today's timeline and booking. */
.court-list { display: grid; gap: 18px; }
.court-row { display: grid; grid-template-columns: 300px minmax(0,1fr) 250px; background: #fff; border: 1px solid #d8dbd0; border-radius: 20px 20px 6px 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.cr-media { position: relative; display: block; min-height: 260px; background: #090b08; overflow: hidden; }
.cr-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform .6s var(--ease); }
.cr-tags { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cr-tags span { padding: 4px 10px; border-radius: 999px; background: #090b08b8; color: #fff; font-size: .72rem; font-weight: 800; backdrop-filter: blur(6px); }
.cr-tags .featured { color: #c9ff38; }
.cr-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px 28px; }
.cr-main h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; line-height: 1.1; }
.cr-main h3 a { color: inherit; }
.cr-main .desc { margin: 0; max-width: 620px; color: #5f655b; font-size: .95rem; }
.cr-amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-amenities .chip .icon { color: #527000; }
.cr-today { margin-top: auto; padding-top: 4px; }
.cr-today-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #66715c; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cr-timeline { display: flex; gap: 3px; height: 14px; }
.cr-timeline span { flex: 1; border-radius: 3px; background: #e3e7dc; }
:is(.cr-timeline, .cr-legend) .free { background: #9bd21f; }
:is(.cr-timeline, .cr-legend) .taken { background: #3a4231; }
:is(.cr-timeline, .cr-legend) .op { background: #8b74d6; }
:is(.cr-timeline, .cr-legend) .off { background: repeating-linear-gradient(-45deg, #c4cbb9 0 3px, #e3e7dc 3px 6px); }
:is(.cr-timeline, .cr-legend) .past { background: #e9ece3; }
.cr-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: #66715c; font-size: .74rem; font-weight: 700; }
.cr-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.cr-legend .past { box-shadow: inset 0 0 0 1px #cfd5c6; }
.cr-side { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-left: 1px solid #e3e7dc; background: #f7f8f2; }
.cr-price small { display: block; color: #66715c; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cr-price strong { font-size: 2.1rem; font-weight: 900; letter-spacing: -.045em; line-height: 1.1; }
.cr-price span { color: #66715c; font-weight: 700; }
.cr-avail { display: flex; align-items: flex-start; gap: 8px; color: #527000; font-size: .86rem; font-weight: 800; line-height: 1.35; }
.cr-avail .icon { flex: none; margin-top: 2px; }
.cr-avail small { display: block; margin-top: 2px; color: #66715c; font-size: .78rem; font-weight: 700; }
.cr-avail.limited { color: #825000; }
.cr-avail.none { color: #66715c; }
.cr-actions { display: grid; gap: 8px; margin-top: auto; }
.cr-actions .btn { width: 100%; white-space: nowrap; }
@media (hover: hover) {
  .court-row:hover { border-color: #9aad75; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .court-row:hover .cr-media img { transform: scale(1.05); }
}
@media (max-width: 1100px) {
  .court-row { grid-template-columns: 260px minmax(0,1fr); }
  .cr-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-left: 0; border-top: 1px solid #e3e7dc; padding: 16px 22px; }
  .cr-actions { grid-auto-flow: column; margin: 0 0 0 auto; }
}
@media (max-width: 720px) {
  .court-row { grid-template-columns: 1fr; }
  .cr-media { min-height: 0; aspect-ratio: 16 / 10; }
  .cr-main { padding: 18px; }
  .cr-side { flex-direction: column; align-items: stretch; padding: 18px; }
  .cr-actions { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .court-row, .cr-media img { transition: none; }
}

/* Light-surface colours for parts that still carried the old dark-theme text colours. */
.public-brand .alert-x.success { background: #edf7ce; border-color: #a0b876; color: #304600; }
.public-brand .alert-x:is(.error,.danger) { background: #fff0f0; border-color: #e2a9ad; color: #7d2229; }
.public-brand .alert-x.warning { background: #fff4dc; border-color: #e1c27a; color: #5c3a00; }
.public-brand .alert-x.info { background: #eaf4fc; border-color: #aacadd; color: #17465f; }
.public-brand :is(.invalid-feedback,.field-error) { color: #a3303a; }
.public-brand .form-label .req { color: #a3303a; }
.public-brand .reminders li { color: #3d4535; }
.public-brand .reminders li .icon { color: #8a5a00; }
.public-brand :is(.card-x,.booking-panel,.summary-card) .text-white { color: var(--color-text) !important; }
.public-brand .hold-timer.urgent { color: #7d2229; background: #fff0f0; border-color: #e2a9ad; }
.public-brand .eyebrow { color: #4f6800; }

/* Phones: readable bottom bar labels and table rows as cards (same pattern as the staff app). */
@media (max-width: 767.98px) {
  .app-nav a span { font-size: .72rem; }
  .public-brand .booking-steps .bs { font-size: .75rem; }
  .public-brand .date-chip :is(.dw,.dm) { font-size: .72rem; }
  .public-brand .table-x.is-stackable,
  .public-brand .table-x.is-stackable :is(tbody,tr,td) { display: block; width: 100%; }
  .public-brand .table-x.is-stackable thead { display: none; }
  .public-brand .table-x.is-stackable tr { padding: 14px 16px; border-bottom: 1px solid #e3e7dc; }
  .public-brand .table-x.is-stackable tr:last-child { border-bottom: 0; }
  .public-brand .table-x.is-stackable td { position: relative; padding: 5px 0 5px 52%; border: 0; text-align: right; }
  .public-brand .table-x.is-stackable td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 50%; padding-right: 8px; text-align: left; color: #5f655b; font-size: .82rem; font-weight: 700; line-height: 1.3; }
  .public-brand .table-x.is-stackable td:first-child { padding: 0 0 6px; text-align: left; }
  .public-brand .table-x.is-stackable td:first-child::before { content: none; }
}

/* Gentle motion: page headings ease in, and taps get a little press. */
@keyframes llg-rise { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
.public-brand .page-hero .container-x > * { animation: llg-rise .5s cubic-bezier(.16,1,.3,1) both; }
.public-brand .page-hero .container-x > :nth-child(2) { animation-delay: 60ms; }
.public-brand .page-hero .container-x > :nth-child(3) { animation-delay: 120ms; }
.public-brand .page-hero .container-x > :nth-child(n+4) { animation-delay: 180ms; }
@keyframes llg-fade { from { opacity: 0; } to { opacity: 1; } }
.public-brand:not(.home-reference) main > section:not(.page-hero) > .container-x > :first-child { animation: llg-fade .45s ease-out 100ms both; }
@media (hover: none) {
  .public-brand :is(.btn,.filter-chip,.date-chip,.court-option,.slot,.chip,.app-nav a) { transition: transform .12s ease, background-color .15s ease; }
  .public-brand :is(.btn,.filter-chip,.date-chip,.court-option,.app-nav a):active { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .public-brand .page-hero .container-x > *,
  .public-brand main > section > .container-x > :first-child { animation: none; }
}

/* "Show earlier times" fold on the booking board (past slots stay out of the way). */
.public-brand .slot-past-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0 0 10px; border: 1px dashed #bdc7b1; border-radius: 12px; background: transparent; color: #4b5541; font-weight: 800; font-size: .85rem; }
.public-brand .slot-past-toggle:hover { background: #f1f4ea; color: #11170c; }
@media (max-width: 767.98px) {
  /* Narrow slots: the Peak / Off-peak tag sits above the time instead of on top of it. */
  .public-brand .slot .slot-rule { position: static; order: -1; align-self: flex-start; margin-bottom: 2px; }
}

/* Phones: the bottom app bar waits below the screen until the visitor scrolls down (public.js). */
@media (max-width: 720px) {
  html.nav-on-scroll .app-nav { transform: translateY(calc(100% + 16px)); visibility: hidden; transition: transform .38s cubic-bezier(.2,.9,.25,1), box-shadow .38s ease, visibility 0s linear .38s; }
  html.nav-on-scroll .app-nav-shown .app-nav { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2,.9,.25,1), box-shadow .38s ease, visibility 0s; }
  /* While the bar is away, the booking summary bar sits on the screen edge instead of floating above a gap. */
  html.nav-on-scroll .public-brand .mobile-summary-bar { transition: transform 280ms var(--ease), bottom .38s cubic-bezier(.2,.9,.25,1); }
  html.nav-on-scroll .public-brand:not(.app-nav-shown) .mobile-summary-bar { bottom: 0; }
  html.nav-init .app-nav,
  html.nav-init .public-brand .mobile-summary-bar { transition: none !important; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  html.nav-on-scroll .app-nav { transition: visibility 0s, opacity .2s ease; transform: none; opacity: 0; }
  html.nav-on-scroll .app-nav-shown .app-nav { opacity: 1; }
}

/* ── QR / bank transfer at checkout ─────────────────────────────────── */
.pay-transfer { margin-top: -.25rem; padding: 1rem; border: 1px solid #d8dbd0; border-radius: 16px; background: #fbfbf6; display: grid; gap: .9rem; }
.pay-transfer .pt-label { font-weight: 800; font-size: .9rem; }
.pt-accounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pt-account span { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border: 1.5px solid #cbd1c1; border-radius: 12px; background: #fff; font-weight: 800; cursor: pointer; }
.pt-account input:checked + span { border-color: #527000; background: #edf7ce; color: #304600; }
.pt-account input:focus-visible + span { outline: 3px solid #71940055; outline-offset: 2px; }
.pt-qr { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pt-qr-img { background: #fff; border: 1px solid #d8dbd0; border-radius: 14px; padding: 10px; }
.pt-qr-img img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.pt-amount { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; margin-bottom: .75rem; border-radius: 12px; background: #090b08; color: #fff; }
.pt-amount span { font-size: .8rem; color: #c4c9bf; font-weight: 700; }
.pt-amount strong { font-size: 1.5rem; color: #c9ff38; font-variant-numeric: tabular-nums; }
.pt-steps { margin: 0; padding-left: 1.2rem; font-size: .88rem; color: #444c3b; display: grid; gap: .2rem; }
.pt-preview { display: block; margin-top: .6rem; max-width: 180px; max-height: 260px; border-radius: 10px; border: 1px solid #d8dbd0; object-fit: contain; background: #fff; }
@media (max-width: 640px) {
  .pt-qr { grid-template-columns: 1fr; }
  .pt-qr-img { max-width: 260px; margin-inline: auto; }
}
