@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF7F1;
  --oak: #F1E8DA;
  --grain: #E2D5C1;
  --grain-strong: #CDBBA0;
  --ink: #2A211B;
  --muted: #665950;
  --cherry: #9A3B1F;
  --cherry-dark: #7A2D16;
  --green: #2F5D4E;
  --green-bg: #E3EEE8;
  --brass: #B5862E;
  --warn: #7A5410;
  --warn-bg: #F7EBCF;
  --gray: #5F5A55;
  --gray-bg: #ECE8E3;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); margin: 0.25em 0 0.35em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 0 0 0.2em; }
p { margin: 0 0 1em; }
a { color: var(--cherry); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cherry-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
address { font-style: normal; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 8px; color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  background: var(--cherry); color: var(--paper);
  border: 0; border-radius: 8px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--cherry-dark); color: var(--paper); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 0.95rem; }
.btn-large { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--cherry); font: inherit; text-decoration: underline; cursor: pointer; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--grain); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--cherry); text-decoration: underline; }
.site-footer { margin-top: 4rem; background: var(--oak); border-top: 1px solid var(--grain); padding: 2rem 0 1.5rem; color: var(--muted); font-size: 0.95rem; }
.footer-inner p { max-width: 44rem; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4em; }
.footer-small { font-size: 0.85rem; }
@media (max-width: 520px) {
  .site-nav a[href="/national-and-online/"] { display: none; }
}

/* Breadcrumbs */
.breadcrumb { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--grain-strong); }
.breadcrumb a { color: var(--muted); }

/* Home */
.hero { background: var(--oak); border-bottom: 1px solid var(--grain); padding: 2.5rem 0 2rem; }
.hero h1 { margin-top: 0; max-width: 18ch; }
.search-box { display: flex; gap: 8px; max-width: 40rem; margin: 1.25rem 0 0.5rem; }
.search-box input {
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 14px;
  font: 1.05rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--grain-strong); border-radius: 8px;
}
.search-box input:focus { border-color: var(--green); outline: 3px solid var(--green-bg); outline-offset: 0; }
.search-box .btn { min-height: 52px; }
.live-results { max-width: 40rem; }
.live-results:empty { display: none; }
.live-results ol { list-style: none; padding: 0; margin: 0.5rem 0 0; background: #fff; border: 1px solid var(--grain); border-radius: var(--radius); }
.live-results li + li { border-top: 1px solid var(--grain); }
.live-results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.live-results a:hover, .live-results a:focus-visible { background: var(--paper); }
.live-results .r-name { font-weight: 600; color: var(--cherry); }
.live-results .r-loc { display: block; font-size: 0.9rem; color: var(--muted); }
.live-results .r-all { font-size: 0.95rem; color: var(--cherry); }

.browse h2 { margin-top: 2rem; }
.us-map { display: none; margin: 0 auto 1.75rem; max-width: 820px; }
.us-map svg { display: block; width: 100%; height: auto; }
.map-state path { stroke: var(--paper); stroke-width: 1; transition: fill 0.12s; }
.map-t0 path { fill: var(--oak); }
.map-t1 path, .map-k1 { fill: #E6D7BF; background: #E6D7BF; }
.map-t2 path, .map-k2 { fill: #CDB28A; background: #CDB28A; }
.map-t3 path, .map-k3 { fill: #A9875A; background: #A9875A; }
.map-state:hover path { fill: var(--cherry); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.map-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-left: 10px; }
.map-other { fill: var(--grain); stroke: var(--paper); }
@media (min-width: 700px) { .us-map { display: block; } }

.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.state-grid-extra { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.state-card {
  display: flex; flex-direction: column; height: 100%; min-height: 64px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--grain); border-left: 4px solid var(--brass); border-radius: 0;
  text-decoration: none; color: var(--ink);
}
.state-card:hover { border-color: var(--brass); background: var(--paper); color: var(--ink); }
.state-card-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.state-card-count { font-size: 0.85rem; color: var(--muted); }
.state-card-empty { border-left-color: var(--grain-strong); }
.state-card-feature { background: var(--oak); border-left-color: var(--cherry); }

.callout { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--grain); }
.callout p { max-width: 44rem; }

/* Lists of clubs */
.club-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.club-card article { height: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--grain); border-radius: var(--radius); }
.club-card-name a { color: var(--ink); text-decoration: none; }
.club-card-name a:hover { color: var(--cherry); text-decoration: underline; }
.club-card-name a::after { content: ""; }
.club-card-loc { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.club-card-meta { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.club-card-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.club-card.status-reported_inactive article, .club-card.status-unverified article { background: var(--paper); }
.club-card.status-reported_inactive .club-card-name a { color: var(--muted); }
.club-card[hidden] { display: none; }

.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.8rem; line-height: 1.3; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--grain); }
.badge-quiet { background: transparent; }
.badge-active { background: var(--green-bg); color: var(--green); border-color: transparent; }
.badge-unverified { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-reported_inactive { background: var(--gray-bg); color: var(--gray); border-color: transparent; }

/* Filters */
.filters { margin: 1rem 0 0.5rem; display: grid; gap: 10px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters legend { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; width: 100%; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--grain-strong); border-radius: 999px; background: #fff; font-size: 0.92rem; cursor: pointer; }
.chip .chip-count { min-height: 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.8rem; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:checked + span .chip-count { color: var(--green-bg); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.filter-status { margin: 0; font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.fieldset-select label { font-size: 0.85rem; font-weight: 600; color: var(--muted); width: 100%; }
.fieldset-select select, .club-form select { min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--grain-strong); border-radius: 8px; background: #fff; font: 1rem var(--sans); color: var(--ink); max-width: 100%; }

/* Prompts, empty states, notices */
.add-prompt, .empty-state { margin: 2rem 0; padding: 1.25rem 1.25rem 0.5rem; border: 1.5px dashed var(--grain-strong); border-radius: var(--radius); background: var(--paper); }
.add-prompt h2, .empty-state h2 { margin-top: 0; font-size: 1.3rem; }
.empty-state { background: var(--oak); border-style: solid; }
.notice { padding: 10px 14px; border-radius: 8px; font-size: 0.95rem; margin: 12px 0; }
.notice-inactive { background: var(--gray-bg); color: var(--gray); }
.notice-unverified { background: var(--warn-bg); color: var(--warn); }
.notice-unverified a { color: var(--warn); }
.notice-inactive a { color: var(--gray); }
.notice-success { background: var(--green-bg); color: var(--green); padding: 1rem 1.25rem; }
.notice-success h2 { margin-top: 0; color: var(--green); }
.notice-success a { color: var(--green); }

.nearby-list, .side-list, .jump ul { list-style: none; padding: 0; margin: 0; }
.nearby-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 1rem 0; }

/* Club page */
.club-layout { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
.club-layout > .breadcrumb { grid-column: 1 / -1; }
@media (min-width: 900px) { .club-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.club-head { padding-bottom: 1rem; border-bottom: 1px solid var(--grain); }
.club-loc { font-size: 1.15rem; color: var(--muted); margin-bottom: 10px; }
.club-detail.status-reported_inactive h1 { color: var(--muted); }
.club-facts { margin: 0; }
.club-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--grain); }
@media (min-width: 600px) { .club-facts > div { grid-template-columns: 150px minmax(0, 1fr); } }
.club-facts dt { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.club-facts dd { margin: 0; overflow-wrap: anywhere; }
.club-facts dd p:last-child { margin-bottom: 0; }
.club-facts dd p + address { margin-top: 0.5em; }
.club-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 1.5rem 0; }
.club-side { padding-top: 1rem; }
.side-block { padding: 1rem 1.1rem; background: var(--oak); border-radius: var(--radius); margin-bottom: 1rem; }
.side-block h2 { margin: 0 0 0.6em; font-size: 1.15rem; }
.side-block-quiet { background: transparent; border: 1px solid var(--grain); }
.side-block .nearby-list { gap: 6px 16px; font-size: 0.95rem; }
.side-list li { padding: 6px 0; border-bottom: 1px solid var(--grain); line-height: 1.35; }
.side-list .muted { display: block; font-size: 0.85rem; }
.side-block p { margin: 0.8em 0 0; font-size: 0.95rem; }

/* Monetization slots (render only when filled) */
.slot { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid var(--grain); border-radius: var(--radius); background: #fff; }
.slot-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 4px; }
.slot-title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: 0 0 4px; }
.slot ul { list-style: none; padding: 0; margin: 0; }
.slot li { padding: 6px 0; }
.slot li span { display: block; font-size: 0.85rem; color: var(--muted); }

/* Search page */
.search-status { color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0.5rem; min-height: 1.5em; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.search-results li { padding: 12px 16px; background: #fff; border: 1px solid var(--grain); border-radius: var(--radius); }
.search-results li.is-inactive { background: var(--paper); }
.search-results h2 { font-size: 1.1rem; margin: 0 0 2px; }
.search-results h2 a { color: var(--ink); text-decoration: none; }
.search-results h2 a:hover { color: var(--cherry); text-decoration: underline; }
.search-results .r-loc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.search-results .r-excerpt { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.search-results mark { background: var(--warn-bg); color: inherit; padding: 0 2px; }
.search-filters { margin-top: 0.5rem; }

/* Form */
.club-form { margin-top: 1.5rem; }
.club-form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.club-form legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; padding: 0; }
.hint-inline { font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--green); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.field .req { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--grain-strong); border-radius: 8px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .club-form select:focus { border-color: var(--green); outline: 3px solid var(--green-bg); outline-offset: 0; }
.field select { width: 100%; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 0.875rem; color: var(--muted); margin: 4px 0 0; }
.field-error, .form-error { color: #9B1C1C; font-size: 0.9rem; margin: 4px 0 0; }
.field [aria-invalid="true"] { border-color: #9B1C1C; }
.form-error { margin: 0 0 1rem; padding: 10px 14px; background: #FBEAEA; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.5rem 0 1.25rem; min-height: 65px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Policy pages */
.prose { padding-bottom: 1rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.footer-small a { color: var(--muted); }
