:root {
  color-scheme: light;
  --page: #fbfcfb;
  --surface: #ffffff;
  --surface-soft: #f6f8f7;
  --ink: #0d1724;
  --muted: #66707d;
  --green: #169447;
  --green-dark: #087736;
  --green-soft: #edf8f0;
  --amber-soft: #fff8e7;
  --amber: #8b5b00;
  --red-soft: #fff1ee;
  --red: #963e2e;
  --line: #dfe4e2;
  --line-strong: #cbd2cf;
  --focus: #0b66c3;
  --shadow: 0 12px 36px rgba(13, 23, 36, .06);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 16px; line-height: 1.5; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 5.3vw, 4.75rem); }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
h3 { font-size: 1.2rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; color: white; background: var(--green-dark); border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.site-header { width: min(1340px, calc(100% - 64px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.home-header { border-bottom: 0; }
.brand { flex: 0 0 auto; display: inline-flex; text-decoration: none; }
.brand img { width: 174px; height: auto; }
.site-header nav a { min-height: 44px; padding: 11px 0; display: inline-flex; align-items: center; color: #35404c; font-size: .93rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--green-dark); }

.home-search { width: min(970px, calc(100% - 48px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 60px 0 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-copy h1 { margin-bottom: 20px; }
.home-copy h1 span { color: var(--green); }
.home-copy p { margin-bottom: 42px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.prompt-composer { width: 100%; }
.composer-row, .results-composer > div { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.composer-row:focus-within, .results-composer > div:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 148, 71, .11), var(--shadow); }
.search-icon { width: 22px; height: 22px; flex: 0 0 auto; margin-left: 12px; position: relative; border: 2px solid #63707c; border-radius: 50%; }
.search-icon::after { width: 8px; height: 2px; position: absolute; right: -6px; bottom: -3px; background: #63707c; border-radius: 2px; content: ""; transform: rotate(45deg); }
.composer-row input, .results-composer input { min-width: 0; flex: 1; height: 54px; padding: 0 12px; background: transparent; border: 0; outline: 0; font-size: 1.1rem; }
.composer-row button, .results-composer button { min-width: 128px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; color: white; background: var(--green); border: 0; border-radius: 9px; font-weight: 750; }
.composer-row button:hover, .results-composer button:hover, .button:hover { background: var(--green-dark); }
.suggestions { width: 100%; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; }
.suggestions > span { color: var(--muted); font-size: .78rem; }
.suggestion-chip { min-height: 36px; padding: 7px 11px; color: #46515d; background: transparent; border: 1px solid var(--line); border-radius: 7px; font-size: .8rem; text-decoration: none; }
.suggestion-chip:hover { color: var(--green-dark); background: var(--green-soft); border-color: #badcc6; }
.trust-note { margin: 27px 0 0; color: var(--muted); font-size: .82rem; }
.trust-note span { color: var(--green); }

.site-footer { min-height: 98px; padding: 18px max(32px, calc((100% - 1340px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: #d7e3dd; background: #0e2020; }
.brand-footer img { width: 126px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:not(.brand) { color: #e7eee9; font-size: .82rem; text-decoration: none; }
.site-footer p { margin: 0; justify-self: end; color: #a9bbb3; font-size: .75rem; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; color: white; background: var(--green); border: 0; border-radius: 8px; font-weight: 750; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.wide { width: 100%; }
.muted, .quiet-detail { color: var(--muted); }
.eyebrow { margin-bottom: 8px; color: var(--green-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.page-heading { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 36px; }
.compact-heading { max-width: 860px; text-align: center; }
.compact-heading h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.compact-heading > p:last-child { color: var(--muted); }
.directory-shell { width: min(1100px, calc(100% - 48px)); margin: 0 auto 80px; }
.directory-controls { padding: 18px; display: grid; grid-template-columns: 1fr 210px; gap: 8px 18px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.directory-controls label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.directory-search { display: flex; gap: 8px; }
.directory-search input, .directory-controls select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; background: white; border: 1px solid var(--line-strong); border-radius: 7px; }
.results-title { margin: 26px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.results-title h2 { margin: 0; }
.results-title p { margin: 0; color: var(--muted); font-size: .82rem; }
.results-title .results-disclaimer { margin-top: 7px; font-size: .76rem; }
.comparison-list { display: flex; flex-direction: column; gap: 12px; }
.comparison-card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(13, 23, 36, .02); }
.directory-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.directory-card h3 { margin-bottom: 6px; }
.venue-location-row { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.location-pin { width: 15px; height: 15px; flex: 0 0 auto; }
.venue-location { min-width: 0; margin: 0; color: var(--muted); font-size: .88rem; }
.map-link { margin-left: 3px; color: var(--green-dark); font-size: .75rem; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.quiet-detail { margin: 0; font-size: .82rem; }
.secondary-action, .venue-detail-link { color: var(--green-dark); font-size: .84rem; font-weight: 750; text-decoration: none; }
.venue-detail-link { min-height: 44px; padding: .5rem .375rem; display: inline-flex; align-items: center; justify-content: center; }
.secondary-action:hover, .venue-detail-link:hover { text-decoration: underline; }
.pagination { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination button { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.pagination button[aria-current="page"] { color: white; background: var(--green); border-color: var(--green); }
.empty-state { padding: 44px 28px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 10px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.find-page { width: min(1340px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 80px; }
.results-composer { width: 100%; margin: 0 auto 18px; }
.results-composer > div { padding: 7px; border-radius: 11px; box-shadow: none; }
.results-composer input { height: 48px; }
.results-composer button { min-width: 112px; height: 46px; }
.filter-panel { margin-bottom: 8px; }
.filter-panel > summary { display: none; }
.filter-fields { display: grid; grid-template-columns: minmax(190px, 1.25fr) minmax(145px, .85fr) minmax(230px, 1.15fr) minmax(130px, .75fr) minmax(115px, .65fr) auto; align-items: end; gap: 12px; }
.filter-fields label { min-width: 0; color: var(--muted); font-size: .72rem; font-weight: 700; }
.filter-fields label > span { margin: 0 0 5px 2px; display: block; }
.filter-fields input, .filter-fields select { width: 100%; min-width: 0; height: 44px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; }
.filter-fields label.needs-input { color: var(--amber); }
.filter-fields label.needs-input input, .filter-fields label.needs-input select { background: var(--amber-soft); border-color: #d9a541; box-shadow: 0 0 0 3px rgba(217, 165, 65, .1); }
.control-pair { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.filter-actions .button { white-space: nowrap; }
.filter-actions a { color: var(--green-dark); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.search-results { min-width: 0; }
.interpretation-status { min-height: 54px; margin-top: 22px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.interpretation-status strong { font-size: .88rem; }
.interpretation-status p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .8rem; }
.interpretation-status.understood { background: var(--green-soft); border-color: #c4e3cd; }
.interpretation-status.needs-detail { background: var(--amber-soft); border-color: #ead298; }
.interpretation-status.error { background: var(--red-soft); border-color: #e3b5aa; }
.loading-dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; animation: pulse 1s ease-in-out infinite alternate; }
.place-choices { display: flex; flex-direction: column; gap: 8px; }
.place-choice { min-height: 44px; padding: 11px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.place-choice:hover { border-color: var(--green); }
.search-card { min-height: 126px; display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 24px; padding: 20px 16px 20px 22px; }
.card-main { min-width: 0; align-self: center; }
.card-topline h3 { margin-bottom: 7px; font-size: 1.27rem; }
.venue-facts { margin: 14px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 19px; list-style: none; color: #44515d; font-size: .8rem; }
.venue-facts li { position: relative; }
.venue-facts li::before { width: 5px; height: 5px; margin-right: 7px; display: inline-block; vertical-align: 2px; background: var(--green); border-radius: 50%; content: ""; }
.live-availability:empty { display: none; }
.live-availability { margin-top: 13px; padding: 11px 12px; color: #35404c; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; font-size: .8rem; }
.live-availability.checking { min-height: 42px; display: flex; align-items: center; color: var(--green-dark); background: var(--green-soft); border-color: #c4e3cd; }
.live-availability.available { background: var(--green-soft); border-color: #b9dec4; }
.live-availability.no_matching_slot_confirmed { background: var(--surface-soft); }
.live-availability.inconclusive { color: #6e520f; background: var(--amber-soft); border-color: #ead298; }
.live-availability.failure { color: var(--red); background: var(--red-soft); border-color: #e3b5aa; }
.live-slot-list { margin: 8px 0 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.live-slot { min-width: 0; padding-top: 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid rgba(8, 119, 54, .16); }
.live-slot > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.live-slot > div > strong { color: var(--ink); font-size: .93rem; }
.live-slot > div > span { color: var(--muted); font-size: .74rem; }
.live-slot > div > .price-label { flex-basis: 100%; color: var(--ink); font-size: .8rem; font-weight: 700; }
.slot-action { min-height: 44px; padding: 8px 4px; display: inline-flex; align-items: center; color: var(--green-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.primary-recommendation { border-color: #8fcba0; box-shadow: 0 7px 24px rgba(8, 119, 54, .1); }
.primary-recommendation .slot-action { min-width: 112px; padding: 10px 16px; justify-content: center; color: white; background: var(--green); border-radius: 7px; text-decoration: none; }
.more-times-link { min-height: 44px; margin-top: 4px; display: inline-flex; align-items: center; color: var(--green-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.alternatives-toggle { width: 100%; min-height: 48px; padding: 10px 14px; color: var(--green-dark); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 750; }
.alternatives-toggle:hover { border-color: var(--green); }
.alternatives-toggle:focus-visible { outline: 3px solid rgba(8, 119, 54, .28); outline-offset: 2px; }
.alternative-recommendations { margin-top: 12px; display: grid; gap: 12px; }
.alternative-recommendations[hidden] { display: none; }
.card-action { align-self: stretch; padding-left: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-left: 1px solid var(--line); }
.card-action .venue-detail-link { text-align: center; }

.venue-profile, .prose-page { width: min(1000px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.venue-profile > header { display: flex; justify-content: space-between; align-items: start; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.venue-profile h1 { margin-bottom: 10px; font-size: clamp(2.3rem, 4vw, 3.5rem); }
.profile-grid { margin-top: 34px; display: grid; grid-template-columns: 1fr 340px; gap: 52px; }
.profile-grid dl { margin: 0 0 28px; }
.profile-grid dl div { padding: 11px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.profile-grid dt { color: var(--muted); }
.profile-grid dd { margin: 0; text-align: right; }
.court-list { margin: 0; padding: 0; list-style: none; }
.court-list li { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.handoff-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.handoff-card > small { display: block; margin-top: 10px; color: var(--muted); text-align: center; }
.prose-page { max-width: 720px; }
.prose-page h1 { margin-bottom: 18px; font-size: clamp(2.3rem, 4vw, 3.5rem); }
.prose-page h2 { margin-top: 36px; font-size: 1.4rem; }
.prose-page p { color: #3f4d47; }
.prose-page .lead { color: var(--ink); font-size: 1.17rem; }

@keyframes pulse { to { opacity: .35; transform: scale(.8); } }

@media (max-width: 1050px) {
  .filter-fields { grid-template-columns: 1.2fr .8fr 1.1fr .8fr; }
  .filter-actions { grid-column: span 2; justify-content: flex-end; }
  .search-card { grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; }
}

@media (max-width: 760px) {
  .site-header, .home-header { width: calc(100% - 32px); min-height: 68px; }
  .brand img { width: 146px; }
  .site-header nav a { font-size: .82rem; }
  .home-search { width: calc(100% - 32px); min-height: calc(100vh - 218px); padding: 48px 0 68px; align-items: stretch; text-align: left; }
  .home-copy h1 { margin-bottom: 14px; font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .home-copy p { max-width: 340px; margin-bottom: 30px; font-size: 1.03rem; }
  .composer-row { padding: 6px; border-radius: 11px; }
  .search-icon { width: 19px; height: 19px; margin-left: 10px; }
  .composer-row input { height: 48px; padding: 0 7px; font-size: .95rem; }
  .composer-row button { min-width: 48px; width: 48px; height: 46px; padding: 0; }
  .composer-row button span:first-child, .results-composer button span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .suggestions { justify-content: flex-start; }
  .suggestions > span { flex-basis: 100%; }
  .suggestion-chip { min-height: 38px; padding: 8px 9px; font-size: .75rem; }
  .trust-note { text-align: left; }
  .site-footer { min-height: 150px; padding: 22px 16px; grid-template-columns: 1fr auto; gap: 16px; }
  .site-footer p { grid-column: 1 / -1; justify-self: start; }
  .site-footer nav { gap: 14px; }
  .brand-footer img { width: 108px; }
  .page-heading, .find-page, .venue-profile, .prose-page, .directory-shell { width: calc(100% - 32px); }
  .page-heading { padding: 42px 0 22px; text-align: left; }
  .directory-controls { grid-template-columns: 1fr; }
  .directory-card { grid-template-columns: minmax(0, 1fr) auto; }
  .find-page { padding-top: 18px; }
  .results-composer { margin-bottom: 14px; }
  .results-composer > div { padding: 5px; }
  .results-composer input { height: 44px; padding: 0 6px; font-size: .9rem; }
  .results-composer button { min-width: 44px; width: 44px; height: 42px; padding: 0; }
  .filter-panel { margin-bottom: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
  .filter-panel > summary { min-height: 48px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--green-dark); font-size: .84rem; font-weight: 750; cursor: pointer; }
  .filter-panel > summary::marker { content: ""; }
  .filter-summary-value { color: var(--muted); font-size: .67rem; font-weight: 500; text-align: right; }
  .filter-fields { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .filter-panel:not([open]) .filter-fields { display: none; }
  .filter-fields > label:first-child, .filter-fields > .control-pair, .filter-actions { grid-column: 1 / -1; }
  .filter-actions { justify-content: space-between; }
  .interpretation-status { margin-top: 16px; }
  .results-title { align-items: start; }
  .results-title > p { max-width: 145px; text-align: right; }
  .results-title .results-disclaimer { max-width: 255px; text-align: left; }
  .search-card { min-height: 0; grid-template-columns: 1fr; gap: 14px; padding: 17px 14px; }
  .card-topline h3 { margin-bottom: 5px; font-size: 1.08rem; }
  .venue-location { font-size: .78rem; }
  .venue-facts { margin: 10px 0 9px; gap: 4px 12px; font-size: .72rem; }
  .live-availability { margin-top: 10px; }
  .live-slot { grid-template-columns: 1fr; gap: 2px; }
  .slot-action { justify-self: start; }
  .card-action { grid-column: 1 / -1; padding: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-left: 0; border-top: 1px solid var(--line); }
  .card-action .button { min-height: 46px; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .venue-profile > header { flex-direction: column; }
}

@media (max-width: 410px) {
  .home-search { padding-top: 46px; }
  .home-copy h1 { font-size: 2.7rem; }
  .directory-search { flex-direction: column; }
  .directory-card { grid-template-columns: 1fr; gap: 13px; }
  .search-card { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
