/* The public club list: the app's look (white cards on a grey page, sky header with
   a grass edge) without the app behind it. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --grouped: #f2f2f7;
  --separator: #d8d8de;
  --text-2: #3c3c43;
  --muted: #3d3d3d;
  --sky-ink: #1a6aa0;
  --brand: #5aaee0;
  --ok: #0b6b2e;
  --track: #e3e3e8;
  --radius: 12px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--grouped); color: var(--ink); font: 500 17px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--sky-ink); font-weight: 600; text-underline-offset: 3px; }
p, h1 { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* The app's page column, header included; the sky is painted out to the window edges. */
.bar {
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 20px;
  border-image: linear-gradient(var(--brand) calc(100% - 5px), var(--ok) 0) fill 0 / 0 / 0 100vmax;
}
.home { flex: 1; display: flex; align-items: flex-end; gap: 4px; color: var(--ink); text-decoration: none; }
.home img { margin: 0 0 -16.5px -16px; }
/* The net runs out of the left edge only while the header is full width, as in the app. */
@media (min-width: 561px) { .home img { margin-left: 6px; } }
.brand { display: grid; font-size: 1.5rem; font-weight: 700; line-height: 1.1; padding-bottom: 6px; }
.brand small { font-size: .8rem; }
.open { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: .95rem; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.crumbs { font-size: .9375rem; margin: 4px 0 12px; }
.crumbs span { color: var(--muted); }
h1 { margin: 8px 0 4px; font-size: 1.9rem; line-height: 1.15; }
h2 { margin: 32px 4px 8px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.lead { margin: 0 0 16px; color: var(--text-2); }
.gone { margin: -8px 0 16px; padding: 12px 16px; border-radius: 10px; background: #fff4d6; font-weight: 600; }

.areas, .clubs, .results { margin: 0; padding: 0; list-style: none; border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.areas li, .clubs li, .results li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; }
.areas li + li::before, .clubs li + li::before, .results li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--separator); }
.areas a, .clubs a, .results a { color: var(--ink); text-decoration: none; }
/* A chevron marks each row as a way through, as in the app's own lists. */
.areas li, .clubs li, .results li:not(.none) {
  padding-right: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 8px 14px;
}
.areas a::after, .clubs a::after, .results a::after { content: ""; position: absolute; inset: 0; }
.areas span, .clubs span, .results span { color: var(--muted); font-size: .875rem; text-align: right; }
.results:empty { display: none; }
.results .none { display: block; color: var(--muted); }
.results .none a { color: var(--sky-ink); text-decoration: underline; }
.results .none a::after { content: none; }

.search { margin: 0 0 8px; }
.search label { display: block; margin: 0 4px 8px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.search input { width: 100%; min-height: 52px; margin-bottom: 8px; padding: 0 16px; border: 1px solid #8e8e93; border-radius: 10px; font: inherit; background: var(--paper); }

.facts { margin: 0; padding: 4px 16px; border-radius: var(--radius); background: var(--paper); }
.facts dt { margin-top: 12px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.facts dd { margin: 4px 0 12px; }
.facts code { font-size: .9375rem; }

.actions { display: grid; gap: 8px; margin: 24px 0 0; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: #ececf0; color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--paper); }

.form { display: grid; gap: 6px; }
.form label { margin: 12px 4px 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.form label span { display: block; font-weight: 500; }
.form input, .form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #8e8e93; border-radius: 10px; background: var(--paper); font: inherit; }
.form textarea { resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .cf-turnstile { margin-top: 12px; }
.form button { margin-top: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.form button:disabled { opacity: .6; }
.status { min-height: 1.4em; margin: 12px 4px; font-weight: 600; }
.status.error { color: #a30000; }
.small { color: var(--muted); font-size: .85rem; }

footer { margin-top: 40px; color: var(--muted); font-size: .85rem; }
footer p { margin: 0 0 12px; }
