/* Self-hosted latin subsets. One variable file per family -- Google
   serves a separate copy per requested weight and they are byte
   identical, so requesting three weights of Plex fetched the same 45 KB
   three times. See ATTRIBUTION.md for licences. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/fraunces-variable.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/static/fonts/plex-sans-variable.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* A scorecard, not a dashboard. Bottle-green ink on warm card stock, with
   flagstick red as the one signal colour -- it marks prices, links and focus
   and appears nowhere else, so the eye learns it in one glance. The old
   palette spread four near-identical greys across everything and committed to
   nothing. */
:root {
  --green: #14513a;
  --green-dark: #0d3728;
  --green-deep: #082019;
  /* Warm paper, not white: #f4f6f5 read as cold office grey. */
  --bg: #f2ede1;
  --card: #fbf8f1;
  --line: #ddd4c0;
  --text: #14231c;
  --muted: #6d6a58;
  /* The accent. Used sparingly and always to mean "this is the number or the
     action you came for". */
  --accent: #b3402c;
  --accent-dark: #8c2f1f;
  /* Surfaces and states. These existed as a dozen hardcoded hexes left over
     from the old mint-green palette, which read as bruising against warm
     paper; naming them means the next palette change is one edit. */
  --field: #fffdf8;
  --tint: #e9e6d1;
  --tint-line: #cfcfb2;
  --on-green: #f7f3e8;
  --on-green-dim: #dcdfd2;
  --danger: #9c2f22;
  --danger-bg: #f4e2dd;
  --danger-line: #e0bfb7;
  --notice-bg: #f7eed6;
  --notice-line: #ddcb9f;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --rule: rgba(20, 81, 58, 0.14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--body);
  /* Tabular figures throughout: this whole interface is a grid of times and
     prices, and proportional digits make columns of them jitter. */
  font-feature-settings: "tnum" 1, "ss01" 1;
  background: var(--bg);
  color: var(--text);
  /* Faint survey hatching, so the page has a ground rather than a fill. */
  background-image:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px 76px);
  background-attachment: fixed;
}
h1, h2, h3, h4, .brand {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.012em;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.25rem;
}
/* Contour rings over a green wash: a course map read from above. Two ring
   sets at different centres so the pattern never resolves into a target. */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--on-green); padding: 0.85rem 1.2rem;
  background:
    repeating-radial-gradient(ellipse 130% 90% at 12% -30%,
      transparent 0 17px, rgba(242, 237, 225, 0.052) 17px 18px),
    repeating-radial-gradient(ellipse 100% 80% at 88% 140%,
      transparent 0 23px, rgba(242, 237, 225, 0.04) 23px 24px),
    linear-gradient(155deg, var(--green-deep), var(--green) 62%, var(--green-dark));
  border-bottom: 1px solid var(--green-deep);
}
.brand {
  color: var(--on-green); font-weight: 700; text-decoration: none; font-size: 1.22rem;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.topbar nav { display: flex; align-items: center; gap: 1rem; }
.topbar nav a {
  color: var(--on-green-dim); text-decoration: none; font-size: 0.92rem;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.topbar nav a:hover { color: var(--on-green); border-bottom-color: var(--accent); }
.topbar .who { opacity: 0.85; font-size: 0.9rem; }

/* --- user menu ---------------------------------------------------------- */
/* The panel hangs below the bar and over the page, so the BAR carries the
   z-index, not the panel: z-index only orders siblings inside one stacking
   context, and anything that makes a later section its own context would
   otherwise paint over the menu. Same lesson as the Near-field autocomplete.
   50 puts it above that (30) and the tee-time panels (20) -- a header menu
   should cover everything. */
.topbar { position: relative; z-index: 50; }
.usermenu { position: relative; }
.usermenu > summary {
  list-style: none; cursor: pointer;
  color: var(--on-green-dim); font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 140ms ease;
}
.usermenu > summary::-webkit-details-marker { display: none; }
/* A caret drawn from borders rather than a glyph, so it inherits the text
   colour and rotates when open. */
.usermenu > summary::after {
  content: ""; width: 0.32rem; height: 0.32rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 160ms ease;
}
.usermenu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.usermenu > summary:hover { color: var(--on-green); }
.usermenu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 1;
  min-width: 11rem; padding: 0.3rem;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 22px rgba(8, 32, 25, 0.24);
}
.usermenu-panel form { margin: 0; display: flex; }
/* One row of a menu that happens to be a link, and one that has to be a submit
   button, so they are styled together to read as the same thing. Selectors are
   prefixed with .topbar to outrank `.topbar nav a`, which sets the underline
   border these must not have. */
.topbar .usermenu-panel a,
.topbar .usermenu-panel button {
  font: inherit; font-size: 0.92rem; text-align: left; text-decoration: none;
  color: var(--text); background: none; border: none; border-bottom: none;
  cursor: pointer; padding: 0.45rem 0.6rem; border-radius: 3px; width: 100%;
}
.topbar .usermenu-panel a:hover,
.topbar .usermenu-panel button:hover {
  background: var(--tint); color: var(--text); border-bottom-color: transparent;
}
.topbar .usermenu-panel a:focus-visible,
.topbar .usermenu-panel button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.inline { display: inline; margin: 0; }
.linklike {
  background: none; border: none; color: var(--on-green-dim); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.container { max-width: 920px; margin: 1.5rem auto; padding: 0 1rem; }
h1 { margin-top: 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.2rem 1.4rem; margin-bottom: 1.2rem;
  box-shadow: 0 1px 0 rgba(20, 35, 28, 0.04), 0 8px 22px -18px rgba(8, 32, 25, 0.5);
}
/* The search card gets the scorecard's ruled edge. */
/* Two ways to choose clubs. Tabs rather than a radio pair because they switch
   which fields exist, not just a value -- and they are links, so the switch
   works with no JavaScript. Sits on the card's top edge like an index tab. */
.search-tabs { display: flex; gap: 0.25rem; margin: 0 0 -1px; padding-left: 0.2rem; }
.search-tab {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: color 130ms ease, background 130ms ease;
}
.search-tab:hover { color: var(--text); background: var(--tint); }
.search-tab.is-current {
  color: var(--green); background: var(--card);
  border-color: var(--line); border-bottom-color: var(--card);
}
.search-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.card.search-form {
  border-top: 2px solid var(--green);
  padding-top: 1.35rem;
  position: relative;
}
.card.search-form::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2px;
  height: 1px; background: var(--line);
}
.card.narrow { max-width: 380px; margin: 3rem auto; }
label { display: block; margin: 0.8rem 0; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=time],
input[type=date], select {
  display: block; width: 100%; max-width: 320px; margin-top: 0.3rem;
  padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; color: var(--text);
  background: var(--field);
  box-shadow: inset 0 1px 2px rgba(20, 35, 28, 0.05);
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
input:focus-visible, select:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 64, 44, 0.16);
}
/* Field labels read as the printed headings on a card, not as sentences. */
.search-form label, .filter-grid label, .field-days legend {
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
}
button.primary, .field-actions button {
  background: var(--green); color: var(--on-green); border: none; border-radius: 3px;
  padding: 0.62rem 1.5rem; font: inherit; font-weight: 600; cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem;
  transition: background 140ms ease, transform 90ms ease, box-shadow 140ms ease;
  box-shadow: 0 1px 0 var(--green-deep);
}
button.primary:hover, .field-actions button:hover {
  background: var(--green-dark); box-shadow: 0 2px 10px -4px rgba(8, 32, 25, 0.55);
}
button.primary:active, .field-actions button:active { transform: translateY(1px); }
.muted { color: var(--muted); }
small.muted { font-weight: 400; display: block; }
.error { color: var(--danger); background: var(--danger-bg); padding: 0.6rem 0.8rem; border-radius: 6px; }
.success { color: var(--green); background: var(--tint); padding: 0.6rem 0.8rem; border-radius: 6px; }
table.slots { width: 100%; border-collapse: collapse; }
table.slots th, table.slots td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); }
table.slots th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
a.book { color: var(--accent); font-weight: 600; text-decoration: none; }
a.book:hover { text-decoration: underline; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.4rem; }
label.check { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 400; margin: 0.2rem 0; }
label.check input { width: auto; margin: 0; }
.prefrow { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.prefrow .days { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.prefrow .times, .prefrow .dates { color: var(--muted); }
.prefrow .times input, .prefrow .dates input { display: inline-block; width: auto; margin: 0 0.2rem; }

/* -- search page ------------------------------------------------------- */
.section-heading {
  margin-top: 2rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--line);
}
/* Explicit rows rather than one auto-fit grid: the pairings are meaningful --
   a place and how far around it, a date range, a time range -- and an auto-fit
   grid reflows them into whatever fits, which pairs "To date" with "Earliest
   tee time" at some widths. Each row still collapses to one column when narrow. */
.search-form { display: block; }
.form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.35rem 1.2rem; align-items: start; margin-bottom: 0.9rem;
}
.form-row-single { grid-template-columns: minmax(190px, 16rem); }
/* Near takes the width, Within does not need it: it is a fixed set of short
   values, so an even split leaves it padded out and the address box cramped. */
.form-row-location { grid-template-columns: minmax(0, 4fr) minmax(7rem, 1fr); }
@media (max-width: 34rem) {
  .form-row-location { grid-template-columns: 1fr; }
}
.search-form .field { margin: 0; min-width: 0; }
.search-form label { margin: 0 0 0.25rem; font-size: 0.85rem; }
.search-form input, .search-form select { max-width: none; margin-top: 0; }
/* The row owning the autocomplete has to outrank the rows below it, and the
   dropdown's own z-index cannot do that job: z-index only orders siblings
   *within* one stacking context, so anything that makes a later row into a
   context of its own -- a transform, an opacity, a filter, a will-change added
   later -- leaves the dropdown's 20 trapped in its own row.
   Lifting the row is what survives that. Deliberately the ROW and not the
   field: .combo must stay the nearest positioned ancestor or the dropdown
   would anchor to the wrong box. */
.form-row-location { position: relative; z-index: 30; }
.field-location { position: static; }
/* The dropdown is `left: 0; right: 0` of this wrapper, so the wrapper has to
   be the width of the input or the list spreads across the whole card. Mirrors
   the input rule directly above: 320px by default, unconstrained in the search
   form where the field fills its grid column. */
.combo { position: relative; max-width: 320px; }
.search-form .combo { max-width: none; }
/* The label sits above the wrapper rather than around the input, so the
   input's own top margin would stack with the label's bottom margin. */
.combo > input { margin-top: 0; }
label.tight { margin-bottom: 0.25rem; }
/* These sit directly in the form rather than in a .form-row, so they need
   their own bottom margin -- the grid gap used to supply it, and stopped when
   the form became a block. Slightly more than a row's, because each ends in a
   line of hint text that wants clearing. */
/* Both class names deliberately: .search-form .field zeroes the margin at the
   same specificity, so matching on .field too decides this on specificity
   rather than on which rule happens to come last. */
.search-form > .field.field-days,
.search-form > .field.field-wide { margin-bottom: 1.2rem; }
.field-days { border: none; margin: 0; padding: 0; }
.field-days legend { font-weight: 600; font-size: 0.85rem; padding: 0; margin-bottom: 0.25rem; }
.field-days label.check { margin-right: 0.7rem; }
.field-actions { display: flex; align-items: center; gap: 1rem; }
.field-actions button {
  background: var(--green); color: var(--on-green); border: none; border-radius: 6px;
  padding: 0.6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
}
.field-actions button:hover { background: var(--green-dark); }
.field-actions .linklike { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.8rem; display: block; margin-top: 0.2rem; }

/* Autocomplete dropdown. */
.suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
  margin: 0.2rem 0 0; padding: 0.25rem 0; list-style: none; max-height: 17rem;
  overflow-y: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.suggestion {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.45rem 0.8rem; cursor: pointer;
}
.suggestion.active { background: var(--tint); }
.suggestion-name { font-weight: 600; }
.suggestion-meta {
  color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums;
  white-space: pre;
}

.card.notice { background: var(--notice-bg); border-color: var(--notice-line); }
.card.error { background: var(--danger-bg); border-color: var(--danger-line); }
.result-count { margin: 0 0 0.8rem; }
.distance { font-size: 0.85rem; font-weight: 400; margin-left: 0.5rem; }
.table-scroll { overflow-x: auto; }
.choices { list-style: none; margin: 0; padding: 0; }
.choices li { border-bottom: 1px solid var(--line); }
.choices li:last-child { border-bottom: none; }
.choices a { display: block; padding: 0.55rem 0.2rem; text-decoration: none; color: var(--text); }
.choices a:hover { background: var(--tint); }
.signup-prompt { background: var(--tint); border-color: var(--tint-line); }
.attribution { font-size: 0.78rem; text-align: center; margin: 2rem 0 1rem; }

/* --- results: a day, then its tee times as chips ------------------------ */
.day { margin: 0.9rem 0 0.2rem; }
.day + .day { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.day-head {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin: 0 0 0.5rem; font-size: 0.95rem;
}
.day-name { font-weight: 700; }
.day-date { font-weight: 600; }
.day-count { font-size: 0.85rem; font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Each chip is a <details>, so it opens with no JavaScript at all. */
.chip { position: relative; }
.chip-face {
  display: inline-flex; flex-direction: column; gap: 0.12rem;
  align-items: center;            /* the time sits over its own subtext */
  padding: 0.4rem 0.7rem; cursor: pointer; list-style: none;
  border: 1px solid var(--line); border-radius: 3px; background: var(--field);
  line-height: 1.2; min-width: 5.4rem;
  transition: border-color 120ms ease, background 120ms ease;
}
.chip-face::-webkit-details-marker { display: none; }
.chip-face:hover { border-color: var(--green); }
.chip[open] > .chip-face { border-color: var(--green); background: var(--tint); }
.chip-face:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.chip-time {
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 0;
  color: var(--text);
}
.chip-meta {
  color: var(--muted); font-size: 0.78rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem;
  justify-content: center;
}
/* Each round length reads as one unit, so holes and price never wrap apart. */
.chip-option { white-space: nowrap; }
.chip-sep { opacity: 0.5; }
.chip-price { white-space: nowrap; }

/* The panel floats over the grid rather than pushing the chips apart. */
.chip-panel {
  /* Centred on the tile that opened it, so the panel reads as belonging to
     that time rather than hanging off its left edge. */
  position: absolute; z-index: 20; top: calc(100% + 0.3rem);
  left: 50%; transform: translateX(-50%);
  /* width, not shrink-to-fit. An absolutely positioned box sizes against its
     containing block, which here is the .chip -- about 7rem wide -- so
     shrink-to-fit collapsed the panel to its min-width and the hole columns
     had nowhere to sit side by side. max-content sizes it to its contents
     instead, then max-width caps it. */
  width: max-content;
  min-width: 17rem; max-width: min(38rem, 92vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); padding: 0.7rem 0.85rem;
}
/* A centred panel overhangs both edges, so tiles near either side of the row
   get pinned instead. Set by search.js, which can see the geometry; without
   the script every panel stays centred, which is right for all but the
   outermost tiles. */
.chip-panel.align-right { left: auto; right: 0; transform: none; }
.chip-panel.align-left { left: 0; right: auto; transform: none; }
.chip-panel-head {
  margin: 0 0 0.6rem; font-weight: 600; font-size: 0.85rem; color: var(--muted);
  text-align: center;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.offers { list-style: none; margin: 0; padding: 0; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem;
  align-items: center; padding: 0.45rem 0; border-top: 1px solid var(--line);
}
.offer:first-child { border-top: none; }
.offer-title { font-weight: 600; }
.offer-meta { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.offer-source { text-transform: capitalize; }
.offer .book { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }

/* --- club picker (multi-select, enhanced into an autocomplete) ---------- */
.club-picker { max-width: 520px; }
.picker { max-width: 520px; position: relative; }
.picker-box {
  display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem;
  background: var(--field); cursor: text;
}
.picker-box.focused { border-color: var(--green); }
.picker-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px;
  padding: 0.15rem 0.3rem 0.15rem 0.6rem; font-size: 0.88rem;
}
.picker-remove {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--muted); line-height: 1; padding: 0 0.25rem; border-radius: 999px;
}
.picker-remove:hover { color: var(--danger); background: var(--danger-bg); }
.picker-input {
  flex: 1 1 8rem; min-width: 8rem; border: none; outline: none;
  font: inherit; padding: 0.25rem; margin: 0; max-width: none; display: block;
}
.picker-empty { color: var(--muted); font-size: 0.85rem; padding: 0.1rem 0.3rem; }

/* --- notification filters ---------------------------------------------- */
.filter-card { border-left: 3px solid var(--green); }
.filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.filter-head h3 { margin: 0; }
.linklike.danger { color: var(--danger); }
.filter-days { border: none; padding: 0; margin: 0.9rem 0 0.2rem; }
.filter-days legend { font-weight: 600; padding: 0; }
.filter-days label.check { margin-right: 0.7rem; }

/* A created alert, read-only. Label/value pairs rather than a sentence, because
   this is the only view of it -- someone checking what they asked for should be
   able to scan for the one field they care about. */
.alert-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem;
  margin: 0.2rem 0 0; align-items: baseline;
}
.alert-summary dt {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 600; color: var(--muted);
}
.alert-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.alert-search { display: flex; justify-content: flex-end; margin-top: 1.1rem; }
/* Outlined, not filled: "Add" is the page's one primary action, and a second
   solid green button beside it would make them look like a pair of equals. */
.btn-outline {
  display: inline-block; font: inherit; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  color: var(--green); background: none;
  border: 1px solid var(--green); border-radius: 3px;
  padding: 0.5rem 1.1rem; cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.btn-outline:hover { background: var(--green); color: var(--on-green); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0 1rem;
}
.filter-grid input, .filter-grid select { max-width: none; }

/* Booking options laid out left to right, one column per round length, in the
   same order as the tile's subtext. Wraps to stacked columns when there is no
   room -- three round lengths on a phone would otherwise squeeze each to a
   couple of words wide. */
/* nowrap, and columns sized by their content rather than a fixed basis.
   The panel is `width: max-content`, so a 15rem basis per column was asking
   for more room than the panel had whenever the titles were short: two
   columns wanted 31.4rem inside a panel the content had sized to 27rem, and
   they wrapped. Clubs with long rate names happened to escape it, which is
   why this looked club-specific. max-width still caps the panel, and
   min-width: 0 lets the columns shrink into it. */
.hole-columns { display: flex; flex-wrap: nowrap; gap: 0 1.4rem; }
.hole-column { flex: 0 1 auto; min-width: 0; }
.hole-column + .hole-column { border-left: 1px solid var(--line); padding-left: 1.4rem; }
@media (max-width: 34rem) {
  /* Stack on a phone: three round lengths side by side would leave each a
     couple of words wide. */
  .hole-columns { flex-direction: column; }
  .hole-column + .hole-column {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.5rem;
  }
}
.hole-heading {
  margin: 0 0 0.2rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--green-dark);
}

/* --- hero ---------------------------------------------------------------- */
.container > h1 + .muted {
  margin: 0 0 1.5rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--green); font-weight: 600;
}
.container > h1 + .muted::after {
  content: ""; display: block; width: 3.5rem; height: 2px;
  background: var(--accent); margin-top: 0.7rem;
}

/* --- one staged reveal --------------------------------------------------- */
/*
 * Deliberately confined to the shell and the form. The results grid can carry
 * a thousand tiles, and animating those would cost more than it delights --
 * a page load should feel composed, not busy.
 */
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wash {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/*
 * `backwards`, not `both`, and the difference is not cosmetic. `both` fills
 * FORWARDS too, so the animation keeps applying its final `transform: none`
 * for the life of the page -- and an element with a transform animation in
 * effect is its own stacking context. That turned every form row into a
 * stacking context permanently, which trapped the Near field's autocomplete
 * (z-index: 20) inside its own row and let the rows below paint over it.
 *
 * Since every `to` state here is identical to the element's natural style,
 * `backwards` is visually the same: it still holds the `from` state through
 * the stagger delay, which is the only part the reveal needs.
 */
.topbar { animation: wash 320ms ease backwards; }
.container > h1,
.container > h1 + .muted,
.search-form > .form-row,
.search-form > .field-days,
.search-form > .field-wide,
.search-form > .field-actions {
  animation: rise 420ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.container > h1                 { animation-delay: 60ms; }
.container > h1 + .muted        { animation-delay: 110ms; }
.search-form > .form-row:nth-of-type(1) { animation-delay: 160ms; }
.search-form > .form-row:nth-of-type(2) { animation-delay: 205ms; }
.search-form > .form-row:nth-of-type(3) { animation-delay: 250ms; }
.search-form > .form-row:nth-of-type(4) { animation-delay: 295ms; }
.search-form > .field-days      { animation-delay: 335ms; }
.search-form > .field-wide      { animation-delay: 370ms; }
.search-form > .field-actions   { animation-delay: 405ms; }

/* The whole effect is decoration; anyone who has asked for less motion gets
   the finished state immediately. */
@media (prefers-reduced-motion: reduce) {
  .topbar,
  .container > h1,
  .container > h1 + .muted,
  .search-form > .form-row,
  .search-form > .field-days,
  .search-form > .field-wide,
  .search-form > .field-actions {
    animation: none;
  }
}

/* --- the count line, where the accent earns its keep -------------------- */
.result-count strong { color: var(--accent); font-size: 1.05em; }
.attribution { font-size: 0.75rem; }

/* Site footer. One link, quiet: /about matters to anyone deciding whether to
   hand over an address, and to a club operator who looked up our User-Agent —
   but it is not where a visitor looking for a tee time should be sent. */
.sitefoot {
  max-width: var(--container, 60rem);
  margin: 3rem auto 1.5rem;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--line, #ddd4c0);
  font-size: 0.85rem;
}
.sitefoot a { color: var(--muted, #6d6a58); }
.sitefoot a:hover { color: var(--accent, #b3402c); }
