/* Take a Swing brand: Golf Green, Lime, Warm Off-white and Ink.
   Two colour themes. Light is below; dark (green-tinted charcoal, lighter
   Golf Green for text, a deep Golf Green for filled buttons) follows. The
   site follows the device's setting until the visitor picks one with the
   header switch (theme.js stores it in their own browser and sets
   data-theme on <html> before the page draws). Every colour that differs
   between the themes is a variable here; rules below only use variables.
   The difficulty and price colours are the same in both themes. */
:root {
  --bg: #f6f5ee;             /* Warm Off-white */
  --surface: #ffffff;
  --surface-2: #eef2e4;
  --text: #18392b;           /* Ink */
  --muted: #4b6155;
  --line: #dde4d2;
  --brand: #19764d;          /* Golf Green: links, icons, outlines */
  --brand-fill: #19764d;     /* Golf Green behind white text (buttons, chosen chips) */
  --brand-ink: #ffffff;
  --brand-soft: #e6f2d3;
  --accent: #acd653;         /* Lime */
  --on-bright: #18392b;      /* Ink on bright fills (lime, score colours): the same in both themes */
  --on-yellow: #2b2100;
  --focus: var(--brand);     /* keyboard focus outline: Golf Green */
  --danger: #b42318;         /* errors */
  --hero-a: #19764d;
  --hero-b: #acd653;

  --lvl-beginner: #1bb36a;
  --lvl-manageable: #f2b711;
  --lvl-challenging: #ff7a2f;
  --lvl-tough: #d93640;
  --lvl-unknown: #94a39b;
  --range-mark: #5d6b78;     /* driving ranges on the map: neutral slate */

  --radius: 14px;
  /* Buttons (owner's pick, 22 Oct 2026, "Humanist"): 3px corners, 46px tall, a grey-green block for the second button. */
  --btn-r: 3px; --field-r: 4px; --btn-h: 46px; --btn-px: 22px; --btn-fs: 1.03rem;
  --btn-mix: #000;           /* the main button darkens on hover and press (dark theme: lightens) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for things that react to a tap (1 Nov 2026) */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like curve for the three phone bottom sheets (owner, 1 Nov 2026) */
  --dur-sheet: 250ms; /* how long all three phone bottom sheets take to slide */
  /* Type scale (polish, 21 Oct 2026): six sizes for the whole site, nothing under 13px.
     1 small print (meta lines, chips, captions, labels) · 2 secondary text and controls ·
     3 body · 4 card titles, lead lines, h3 · 5 h2, score and price figures · 6 h1 (28px on phones, 40px on computers). */
  --fs-1: .8125rem; --fs-2: .9375rem; --fs-3: 1rem; --fs-4: 1.125rem; --fs-5: 1.5rem; --fs-6: clamp(1.75rem, 4vw, 2.5rem);
  --shadow: 0 1px 2px rgb(13 80 50 / 6%), 0 6px 20px rgb(13 80 50 / 8%);
  --shadow-rgb: 24 57 43;    /* soft shadows: rgb(var(--shadow-rgb) / n%) */
  --pop-ring: 0 0 0 0 transparent;   /* dark theme: a hairline round things that float */
  --backdrop: rgb(10 20 14 / 55%);
  --scrim: rgb(0 0 0 / 40%);
  /* "Tee Pin" logo (header): ball, its tee, and the wordmark's "swing" */
  --logo-ball: #19764d;
  --logo-tee: #8fbf3a;
  --wm-swing: #19764d;
  --band-off: #6e8075;       /* unused price signs: 3.6:1 or better on every background (15 Oct 2026) */
  --dot-ring: rgb(0 0 0 / 25%);
  --tip-bg: #13261c;
  --chip-ink: #0f4f33;
  --kicker: #527a17;
  --jp-go-hover: #ffffff;
  --label-bg: rgb(255 255 255 / 92%);
  --label-ink: #1c2a21;
  /* Our own drawings in <img> files (course thumbnails, area outlines) can't
     see these variables, so dark mode tones them with a filter instead. */
  --drawing-filter: none;
  --outline-filter: none;
  /* "No course map yet" pictures (app.js coursePicture). */
  --ph-bg: #e6f2d3; --ph-fair: #a3d67f; --ph-green: #3f9c4a; --ph-sand: #efdfae; --ph-water: #8cc3ea; --ph-pole: #18392b;
  /* Course map (popup) */
  --m-rough: #cfe6c4; --m-fairway: #8fcf6f; --m-green: #5fbf5a; --m-tee: #a7d98c; --m-bunker: #f1e2b3;
  --m-water: #8cc3ea; --m-hole: #ffffff; --m-hole-on: #ffc83d; --m-num: #0d5b39;
  --m-outline: #dcefd2; --m-outline-line: #9cc68c; --m-range: #c3e0b5; --m-tee-line: #6fae58;
  --m-green-line: #3f9a3c; --m-bunker-line: #d6c287; --m-water-line: #5aa4d6;
  /* Results map base (map.js reads these when it paints, and again when the theme changes) */
  --map-sea: #d6e6ed; --map-land: #f9f8f2; --map-coast: rgba(75, 97, 85, .35); --map-line: #dde4d2;
  --map-town: #e4e2d9; --map-park: #e2ecd4; --map-water: #cfe2eb; --map-river: #b5d0de; --map-course: #d1e7c1;
  --map-fair: #bcdea2; --map-putt: #8fcb72; --map-bunker: #ece0b9; --map-road: #ffffff; --map-road-edge: #dcd8cb;
  --map-mway: #f1d49c; --map-mway-edge: #dcb877;
  --map-credit-bg: rgb(255 255 255 / 80%);
  --map-radius: rgb(25 118 77 / 6%);
  color-scheme: light;
}
/* Dark theme: chosen with the switch ... */
:root[data-theme="dark"] {
  --bg: #0f1512;
  --surface: #172019;
  --surface-2: #1f2a23;
  --text: #e4ece6;
  --muted: #a3b4aa;
  --line: #2e3b34;
  --brand: #5cc191;
  --brand-fill: #1d7a50;
  --brand-ink: #ffffff;
  --brand-soft: #1b3326;
  --btn-mix: #fff;
  --danger: #ff8f80;
  --range-mark: #9aa7b3;
  --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 6px 20px rgb(0 0 0 / 28%);
  --shadow-rgb: 0 0 0;
  --pop-ring: 0 0 0 1px #34443b;
  --backdrop: rgb(0 0 0 / 66%);
  --scrim: rgb(0 0 0 / 60%);
  --logo-ball: #ffffff;
  --logo-tee: #acd653;
  --wm-swing: #acd653;
  --band-off: #71847a;
  --dot-ring: rgb(255 255 255 / 40%);
  --tip-bg: #26352d;
  --chip-ink: #8fd8b2;
  --kicker: #b9da72;
  --jp-go-hover: #d6ee9d;
  --label-bg: rgb(23 32 25 / 92%);
  --label-ink: #e4ece6;
  --drawing-filter: invert(.92) hue-rotate(180deg) brightness(1.2);
  --outline-filter: invert(.92) hue-rotate(180deg) brightness(1.2);
  --ph-bg: #1c3125; --ph-fair: #3b6e40; --ph-green: #4f9e57; --ph-sand: #8f8160; --ph-water: #3b6f93; --ph-pole: #dfe8e1;
  --m-rough: #1c2d22; --m-fairway: #2f6a3c; --m-green: #3f8f48; --m-tee: #36703f; --m-bunker: #8b7c55;
  --m-water: #23506e; --m-hole: #e4ece6; --m-hole-on: #ffc83d; --m-num: #1d7a50;
  --m-outline: #22382a; --m-outline-line: #3d6a48; --m-range: #26402f; --m-tee-line: #4e8f55;
  --m-green-line: #5aaa5f; --m-bunker-line: #a8966a; --m-water-line: #3a77a0;
  --map-sea: #0c1a21; --map-land: #161f1a; --map-coast: rgba(170, 200, 180, .28); --map-line: #2a3830;
  --map-town: #1f2823; --map-park: #19281e; --map-water: #11303f; --map-river: #1c475d; --map-course: #1d3624;
  --map-fair: #275130; --map-putt: #3a7a44; --map-bunker: #5a553e; --map-road: #34403a; --map-road-edge: #121a16;
  --map-mway: #8d6c2f; --map-mway-edge: #4f3c1a;
  --map-credit-bg: rgb(15 21 18 / 80%);
  --map-radius: rgb(92 193 145 / 8%);
  color-scheme: dark;
}
/* ... or, until the visitor chooses, the device's dark mode. Keep this block
   the same as the one above (tools/smoke_test.py checks). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512;
    --surface: #172019;
    --surface-2: #1f2a23;
    --text: #e4ece6;
    --muted: #a3b4aa;
    --line: #2e3b34;
    --brand: #5cc191;
    --brand-fill: #1d7a50;
    --brand-ink: #ffffff;
    --brand-soft: #1b3326;
    --btn-mix: #fff;
    --danger: #ff8f80;
    --range-mark: #9aa7b3;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 6px 20px rgb(0 0 0 / 28%);
    --shadow-rgb: 0 0 0;
    --pop-ring: 0 0 0 1px #34443b;
    --backdrop: rgb(0 0 0 / 66%);
    --scrim: rgb(0 0 0 / 60%);
    --logo-ball: #ffffff;
    --logo-tee: #acd653;
    --wm-swing: #acd653;
    --band-off: #71847a;
    --dot-ring: rgb(255 255 255 / 40%);
    --tip-bg: #26352d;
    --chip-ink: #8fd8b2;
    --kicker: #b9da72;
    --jp-go-hover: #d6ee9d;
    --label-bg: rgb(23 32 25 / 92%);
    --label-ink: #e4ece6;
    --drawing-filter: invert(.92) hue-rotate(180deg) brightness(1.2);
    --outline-filter: invert(.92) hue-rotate(180deg) brightness(1.2);
    --ph-bg: #1c3125; --ph-fair: #3b6e40; --ph-green: #4f9e57; --ph-sand: #8f8160; --ph-water: #3b6f93; --ph-pole: #dfe8e1;
    --m-rough: #1c2d22; --m-fairway: #2f6a3c; --m-green: #3f8f48; --m-tee: #36703f; --m-bunker: #8b7c55;
    --m-water: #23506e; --m-hole: #e4ece6; --m-hole-on: #ffc83d; --m-num: #1d7a50;
    --m-outline: #22382a; --m-outline-line: #3d6a48; --m-range: #26402f; --m-tee-line: #4e8f55;
    --m-green-line: #5aaa5f; --m-bunker-line: #a8966a; --m-water-line: #3a77a0;
    --map-sea: #0c1a21; --map-land: #161f1a; --map-coast: rgba(170, 200, 180, .28); --map-line: #2a3830;
    --map-town: #1f2823; --map-park: #19281e; --map-water: #11303f; --map-river: #1c475d; --map-course: #1d3624;
    --map-fair: #275130; --map-putt: #3a7a44; --map-bunker: #5a553e; --map-road: #34403a; --map-road-edge: #121a16;
    --map-mway: #8d6c2f; --map-mway-edge: #4f3c1a;
    --map-credit-bg: rgb(15 21 18 / 80%);
    --map-radius: rgb(92 193 145 / 8%);
    color-scheme: dark;
  }
}

/* Fonts (SIL Open Font License), served from our own server so visitors'
   browsers don't contact Google. One variable file per script.
   Baloo 2: wordmark, headings, navigation and buttons (character).
   Nunito: everything else (easy reading). */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  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: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
  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;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
input, select, textarea { font-family: inherit; }
/* Baloo 2 where the brand speaks: wordmark, headings, navigation and buttons. */
h1, h2, h3, .brand, .site-nav, button, .btn, .tab, .glance-label, .score-dot {
  font-family: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-6); }
h2 { font-size: var(--fs-5); }
h3 { font-size: var(--fs-4); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root { --frame: 1200px; --gutter: 16px; --read: 760px; }
@media (min-width: 1001px) { :root { --gutter: 24px; } }
/* One frame for every page (polish, 21 Oct 2026): the header, the footer and every page's
   content share the same left and right edges (--frame wide, --gutter at the sides), the
   list-and-map pages included. Narrow reading columns (guides, club pages) start at the
   frame's left edge and stop at --read, rather than floating in the middle. */
.wrap { max-width: calc(var(--frame) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header: stays at the top while scrolling (sticky). --header-h is its height,
   so other sticky bars can sit just below it. A soft shadow appears once the
   page has scrolled (scroll-driven, where the browser supports it). */
:root { --header-h: 60px; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
.site-header {
  position: sticky; top: 0; z-index: 70; background: var(--surface); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-lift linear both; animation-timeline: scroll(root block); animation-range: 0 40px; }
  @keyframes header-lift { from { box-shadow: 0 0 0 rgb(var(--shadow-rgb) / 0%); } to { box-shadow: 0 2px 12px rgb(var(--shadow-rgb) / 14%); } }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
/* Take a Swing: the club-and-swing coin, then "takeaswing" with a lime "a". */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: var(--fs-5); color: var(--text); text-decoration: none; }
/* The "Tee Pin" mark (a ball on its tee, inline SVG coloured by the theme) and the live wordmark. */
.brand-mark { width: 1.75em; height: 1.75em; flex: none; margin: 0 -.37em 0 -.39em; }
.brand-mark .bm-ball { fill: var(--logo-ball); }
.brand-mark .bm-shine { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; }
.brand-mark .bm-tee { fill: var(--logo-tee); stroke: var(--logo-tee); stroke-width: .9; stroke-linejoin: round; }
.brand .wordmark { letter-spacing: -0.02em; position: relative; top: .06em; }
.brand .wm-swing { color: var(--wm-swing); }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: var(--fs-2); font-weight: 600; color: var(--text); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
/* Phones: the wordmark sits above a single row of four links. Only the link
   row stays stuck (44px); the wordmark scrolls away, so the bar stays slim. */
@media (max-width: 640px) {
  :root { --header-h: 45px; --brand-h: 38px; }
  .site-header { top: calc(-1 * var(--brand-h)); }
  .header-inner { height: auto; flex-direction: column; align-items: flex-start; gap: 0; }
  .brand { height: var(--brand-h); }
  .site-nav { flex-wrap: nowrap; gap: 0 10px; white-space: nowrap; max-width: 100%; justify-content: flex-start; }
  .site-nav a { font-size: var(--fs-1); padding: 0; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
}
@media (max-width: 374px) {
  .site-nav { gap: 0 7px; }
  .site-nav a { font-size: var(--fs-1); }
}


/* Hero + search */
/* No picture behind the search (owner's choice): plain page background. */
.hero {
  background: var(--bg);
  color: var(--text);
  /* Room for the drawing around the search, but not the whole screen. Tall
     enough for either page's text, with the search box anchored to the
     bottom, so it sits in the same place on Courses and on par 3. */
  padding: 56px 0 64px;
  min-height: clamp(540px, 66vh, 640px);
  display: flex;
  align-items: flex-end;
}
.hero > .wrap { width: 100%; }
.hero h1 { font-size: var(--fs-6); max-width: 18ch; }
.lede { max-width: 60ch; opacity: .92; margin: 0 0 28px; font-size: var(--fs-3); }

.search-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgb(0 0 0 / 18%);
  padding: 18px;
  max-width: 820px;
}

.fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fields.bottom { margin-top: 12px; }
.search-card { display: grid; grid-template-columns: minmax(0, 1fr); }
.fields.bottom { justify-content: space-between; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-1); color: var(--muted); font-weight: 600; }
.field.grow { flex: 1 1 240px; }
/* Suggestions under the search boxes (search-combo.js): places first, then venues with a small kind label */
.field.has-suggest, .home-search-bar.has-suggest { position: relative; }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 6px 0 0; padding: 6px;
  list-style: none; background: var(--surface); border: 0; border-radius: 16px;
  box-shadow: var(--pop-ring), 0 14px 40px rgb(var(--shadow-rgb) / 18%); max-height: 360px; overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  color: var(--text); font-weight: 400; text-align: left;
}
.suggest li:hover { background: var(--surface-2); }
.suggest li[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--focus); }   /* the arrow-key choice: a visible ring, not colour alone */
.suggest-text { min-width: 0; overflow-wrap: anywhere; }
.suggest-name { font-size: var(--fs-2); }
.suggest-name strong { font-weight: 700; }
.suggest-where { font-size: var(--fs-1); color: var(--muted); }
.suggest-kind { flex: none; font-size: var(--fs-1); font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
input[type="text"], input[type="search"], textarea, select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--field-r); padding: 10px 12px; min-height: 44px;
}
input[type="text"], input[type="search"], textarea { width: 100%; }
/* One focus look for every box: no browser outline, a Golf Green ring (at least 3:1 on white and off-white). */
input[type="text"]:focus, input[type="search"]:focus, textarea:focus, select:focus { outline: none; }
input[type="text"]:focus, input[type="search"]:focus, textarea:focus, select:focus-visible { border-color: transparent; box-shadow: 0 0 0 2px var(--focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-size: var(--btn-fs); font-weight: 600; line-height: 1.2; border-radius: var(--btn-r); min-height: var(--btn-h); padding: 0 var(--btn-px);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s, transform .16s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Main button: Golf Green, a small arrow after the label (decorative: no spoken text), darker on hover, darker again when pressed. */
.btn.primary { background: var(--brand-fill); color: var(--brand-ink); font-weight: 600; }
.btn.primary::after { content: "\2192"; content: "\2192" / ""; font-size: 1.1em; margin-left: 2px; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 18%); }
.btn.primary:active { background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 32%); }
/* Second button: a pale grey-green block, no outline; brand tint on hover, a touch darker when pressed. */
.btn.ghost { background: var(--surface-2); color: var(--text); border-color: var(--surface-2); font-weight: 600; }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.btn.ghost:active { background: color-mix(in srgb, var(--brand-soft), var(--btn-mix) 12%); border-color: transparent; color: var(--brand); }
.btn:disabled { opacity: .6; cursor: progress; }
/* Buttons press in slightly when tapped or clicked (owner, 1 Nov 2026). */
.show-more, .home-search button { transition: transform .16s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active:not(:disabled), .show-more:active, .home-search button:active, .action-bar a:active { transform: scale(.97); }
}
.form-error { margin: 12px 0 0; color: var(--danger); font-weight: 600; font-size: var(--fs-2); }

/* Results */
.results { padding-top: 32px; padding-bottom: 16px; }
.results-bar { margin-bottom: 12px; }
.results-bar h1, .results-bar h2 { font-size: var(--fs-5); margin: 0; }
.results-bar p { margin: 2px 0 0; }

/* Sort (and, on phones, the Filters button) */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.toolbar .sort-field span { font-size: var(--fs-1); }
.toolbar select { min-width: 11rem; min-height: 40px; }
.filters-open { display: none; min-height: 40px; padding: 0 14px; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--btn-r);
  background: var(--brand-fill); color: var(--brand-ink); font-size: var(--fs-1);
}
.filter-count[hidden] { display: none; }

/* Rows of choice buttons: distance, difficulty, price, holes */
.fg-label { font-size: var(--fs-1); font-weight: 600; color: var(--muted); min-width: 4.6rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-2); font-weight: 600;
  min-height: 36px; padding: 0 13px; border-radius: var(--btn-r); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.seg button:hover { border-color: var(--brand); }
.seg button[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.seg .score-dot { width: 12px; height: 12px; }
.distance, .fgroup { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.distance { margin-bottom: 12px; }
.distance[hidden] { display: none; }

/* Filters: in the page on computers, a panel from the bottom on phones */
.filter-panel { margin-bottom: 4px; }
.filter-rows { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 12px; }
.panel-head, .panel-foot, .filter-backdrop { display: none; }
.panel-head h2 { margin: 0; font-size: var(--fs-4); }
.panel-close { font: inherit; font-size: var(--fs-5); line-height: 1; border: 0; background: none; color: var(--muted); cursor: pointer; width: 44px; height: 44px; }

/* The filters in use, each removable */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.active-filters[hidden] { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: var(--fs-1); font-weight: 600;
  min-height: 32px; padding: 0 10px; border-radius: var(--btn-r); cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand);
}
.tag:hover { background: var(--surface); }
.tag-clear, .link-btn { font: inherit; font-weight: 600; border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 4px; }
.search-further { display: flex; margin: 16px auto 0; }
.search-further[hidden] { display: none; }

@media (max-width: 720px) {
  /* The sort and Filters bar stays in reach while scrolling the list. */
  .toolbar {
    position: sticky; top: var(--header-h); z-index: 30; margin: 0 -16px 10px; padding: 8px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .toolbar .sort-field { flex: 1; min-width: 0; }
  .toolbar .sort-field span { display: none; }
  .toolbar select { min-width: 0; width: 100%; }
  .filters-open { display: inline-flex; flex: none; }
  .distance { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .distance .seg { flex-wrap: nowrap; }
  .distance .seg button { white-space: nowrap; }
  .distance .fg-label, .filter-panel.inline-only .fg-label { min-width: 0; flex: none; }

  .filter-panel:not(.inline-only) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 85vh; overflow-y: auto;
    margin: 0; padding: 4px 16px 0; background: var(--surface); border-radius: 18px 18px 0 0;
    box-shadow: var(--pop-ring), 0 -8px 30px rgb(0 0 0 / 20%); transform: translateY(105%); visibility: hidden;
    transition: transform var(--dur-sheet) var(--ease-drawer), visibility 0s linear var(--dur-sheet);
  }
  .filter-panel.open { transform: none; visibility: visible; transition: transform var(--dur-sheet) var(--ease-drawer); }
  .filter-panel:not(.inline-only) .panel-head { display: flex; align-items: center; justify-content: space-between; }
  .filter-panel:not(.inline-only) .filter-rows { flex-direction: column; gap: 16px; }
  .filter-panel:not(.inline-only) .fgroup { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-panel:not(.inline-only) .panel-foot {
    display: flex; gap: 10px; position: sticky; bottom: 0; margin: 8px -16px 0; padding: 12px 16px;
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .panel-foot .btn.primary { flex: 1; }
  .filter-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); transition: opacity 200ms var(--ease-out); }
  /* The dark backdrop fades in as the sheet rises (owner, 1 Nov 2026). A browser without @starting-style just shows it at once. */
  @starting-style { .filter-backdrop:not([hidden]) { opacity: 0; } }
  body.sheet-open { overflow: hidden; }
  .filter-panel.inline-only .fgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-panel.inline-only .seg { flex-wrap: nowrap; }
  .filter-panel.inline-only .seg button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-panel, .filter-panel.open { transition: none; }
}

/* Loading: a club swings, the ball rolls along the fairway as clubs load
   (--p, 0 to 1) and drops into the hole at the end. Its space is always
   kept so the list doesn't jump; it's only visible while loading. */
.progress { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 32px; margin-bottom: 12px; visibility: hidden; --p: 0; }
.progress.is-loading, .progress.is-done { visibility: visible; }
.gp-club { width: 20px; height: 32px; flex: none; overflow: visible; transform-origin: 9px 2px; }
.gp-club path { fill: none; stroke-linecap: round; }
.gp-shaft { stroke: #8a958d; stroke-width: 1.6; }
.gp-grip { stroke: var(--text); stroke-width: 3; }
.gp-head { stroke: var(--text); stroke-width: 3.2; }
.gp-track { position: relative; flex: 1; height: 32px; }
.gp-track::before, .gp-fill { content: ""; position: absolute; left: 0; bottom: 2px; height: 4px; border-radius: 4px; }
.gp-track::before { right: 0; background: var(--line); }
.gp-fill { width: 100%; background: var(--accent); transform: scaleX(var(--p)); transform-origin: left; transition: transform .35s ease-out; }
.gp-ball {
  position: absolute; bottom: 5px; left: calc(var(--p) * (100% - 11px)); width: 11px; height: 11px; border-radius: 50%;
  background: #fff radial-gradient(circle at 35% 35%, #fff 0 40%, #e4e8e0 100%); border: 1px solid #c3cdbf;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: left .35s ease-out;
}
/* The rolling ball moves with translate (not left) so it stays smooth while results render (owner, 1 Nov 2026). */
@supports (width: 1cqw) {
  .gp-track { container-type: inline-size; }
  .gp-ball { left: 0; translate: calc(var(--p) * (100cqw - 11px)) 0; transition: translate .35s ease-out; }
}
.gp-hole { width: 26px; height: 32px; flex: none; }
.gp-pole { stroke: #8a958d; stroke-width: 1.4; stroke-linecap: round; }
.gp-flag { fill: #e5484d; }
.gp-cup { fill: var(--text); }
.progress.is-loading .gp-club { animation: gp-swing .55s ease-in-out 1; }
.progress.is-done .gp-ball { animation: gp-drop .5s ease-in forwards; }
.progress.is-done { animation: gp-fade .3s ease .75s forwards; }
@keyframes gp-swing { 0% { transform: rotate(0); } 45% { transform: rotate(70deg); } 75% { transform: rotate(-35deg); } 100% { transform: rotate(0); } }
@keyframes gp-drop { 0% { transform: none; } 55% { transform: translate(9px, -5px); } 100% { transform: translate(16px, 6px) scale(.35); opacity: 0; } }
@keyframes gp-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .progress.is-loading .gp-club, .progress.is-done .gp-ball, .progress.is-done { animation: none; }
  .progress.is-done { visibility: hidden; }
  .gp-fill, .gp-ball { transition: none; }
}

/* Results list: one club per row */
.cards {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.cards li + li { border-top: 1px solid var(--line); }
.card {
  display: grid; grid-template-columns: 34px 120px 1fr 200px 20px; gap: 6px 16px; align-items: center;
  width: 100%; padding: 16px 18px; background: transparent; border: 0;
  cursor: pointer; text-align: left; font: inherit; color: inherit; transition: background .12s;
}
.card:hover { background: var(--surface-2); }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-rating { display: grid; gap: 6px; justify-items: end; align-self: start; }
.row-rating .badge { justify-self: end; }
/* Each thing in its own place (polish, 21 Oct 2026): the price on top (the £ signs, or
   "Price: ask the club"), the score under it (or a grey "Not rated yet"). */
.row-price { display: flex; justify-content: flex-end; min-height: 1.5em; }
.row-score { display: grid; justify-items: end; gap: 4px; }
.score-none {
  display: inline-grid; place-items: center; width: 76px; min-height: 50px; padding: 4px 6px; border-radius: 14px;
  background: var(--surface-2); color: var(--muted); font-size: var(--fs-1); font-weight: 700; line-height: 1.15; text-align: center;
}
.row-facts { margin: 2px 0 0; font-size: var(--fs-1); font-weight: 700; color: var(--muted); }
.members-tag { border: 1px solid var(--line); border-radius: var(--btn-r); padding: 0 8px; font-weight: 700; color: var(--text); white-space: nowrap; }
.thumb {
  display: block; width: 120px; height: 84px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); align-self: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Course outline drawings: shown whole (never cropped), with no background. */
.thumb.map { background: none; border: 0; }
.thumb.map img { object-fit: contain; }
.thumb.course svg { width: 100%; height: 100%; display: block; }
.rank {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--fs-2); align-self: start;
}
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.card h3 { font-size: var(--fs-4); margin: 0; }
.card .meta { font-size: var(--fs-2); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .best { font-size: var(--fs-2); color: var(--muted); margin: 0; }
.card .best strong { color: var(--text); font-weight: 600; }
/* Phones: compact rows (small photo, details beside it, score and price on
   the right) so four or five clubs fit on a screen. The rank number and the
   arrow are left off; the whole row is tappable. */
@media (max-width: 640px) {
  .card { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 12px; }
  .rank, .chev { display: none; }
  .thumb { grid-column: 1; grid-row: 1; width: 92px; height: 70px; border-radius: 8px; align-self: start; margin-top: 2px; }
  .row-main { grid-column: 2; grid-row: 1; gap: 2px; }
  .row-rating { grid-column: 3; grid-row: 1; gap: 6px; justify-items: end; }
  .card h3 { font-size: var(--fs-3); line-height: 1.2; }
  .card .meta { font-size: var(--fs-1); gap: 2px 8px; }
  .card .meta .holes-chip { font-size: var(--fs-1); padding: 1px 6px; }
  .card .icons { gap: 4px; margin-top: 2px; }
  .card .icons .fi { width: 22px; height: 22px; padding: 3px; border-radius: 6px; }
  .card-rating, .card-courses { font-size: var(--fs-1); margin-top: 2px; }
  .card-courses li { padding: 1px 6px; }
  .row-rating .band:not(.big) { font-size: var(--fs-1); }
  .row-rating .band.none { font-size: var(--fs-1); text-align: right; line-height: 1.2; max-width: 6.5em; }
  .row-rating .band.none .bsym { display: none; }
}

/* Compact search band at the top of the results page */
.search-band {
  background: var(--surface-2);
  padding: 28px 0;
}
.search-card { text-shadow: none; }
.search-band .search-card { max-width: none; box-shadow: 0 6px 24px rgb(0 0 0 / 15%); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: var(--fs-1); font-weight: 700; padding: 4px 10px; border-radius: var(--btn-r);
  color: var(--on-bright); background: var(--lvl-unknown);
}
.badge[data-level="beginner"] { background: var(--lvl-beginner); color: var(--on-bright); }
.badge[data-level="manageable"] { background: var(--lvl-manageable); color: var(--on-yellow); }
.badge[data-level="challenging"] { background: var(--lvl-challenging); color: var(--on-bright); }
.badge[data-level="tough"] { background: var(--lvl-tough); color: #fff; }
.badge.loading { background: var(--surface-2); color: var(--muted); }
.badge .score { opacity: .85; font-weight: 600; }

/* Results rows: the difficulty score in a circle coloured by level */
.score-dot {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; font-size: var(--fs-3); color: var(--on-bright); background: var(--lvl-unknown); flex: none;
  font-variant-numeric: tabular-nums;
}
.score-dot[data-level="beginner"] { background: var(--lvl-beginner); color: var(--on-bright); }
.score-dot[data-level="manageable"] { background: var(--lvl-manageable); color: var(--on-yellow); }
.score-dot[data-level="challenging"] { background: var(--lvl-challenging); color: var(--on-bright); }
.score-dot[data-level="tough"] { background: var(--lvl-tough); color: #fff; }
.score-dot.loading { background: var(--surface-2); }
.row-rating .score-dot { justify-self: end; }
/* "Rated" / "Estimate": where a difficulty score comes from. Solid for a real rating,
   dashed for our estimate, so it reads without colour. */
.basis-tag {
  display: inline-block; font-size: var(--fs-1); font-weight: 700; line-height: 1.3;
  padding: 1px 7px; border-radius: var(--btn-r); white-space: nowrap; vertical-align: middle;
}
.basis-tag.rated { color: var(--brand); background: var(--brand-soft); border: 1px solid transparent; }
.basis-tag.estimate { color: var(--muted); background: transparent; border: 1px dashed var(--muted); }
.row-rating .basis-tag { justify-self: end; margin-top: -2px; }
.glance-tile .basis-tag, .course-badge .basis-tag { margin-left: 0; }
.course-badge { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score-basis { font-size: var(--fs-2); }
.basis-line { color: var(--muted); }
/* On result cards the difficulty number is the thing that leads. */
.row-rating .score-dot { width: 50px; height: 50px; font-size: var(--fs-4); letter-spacing: -0.02em; line-height: 1; }
@media (max-width: 640px) {
  .row-rating .score-dot { width: 44px; height: 44px; font-size: var(--fs-4); }
}
/* The key above the list */
.meter { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--lvl-beginner) 0 35%, var(--lvl-manageable) 35% 55%, var(--lvl-challenging) 55% 70%, var(--lvl-tough) 70% 100%); opacity: .9; }
.meter .pin { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); transform: translate(-50%, -50%); transition: left .35s ease; }
@media (prefers-reduced-motion: reduce) { .meter .pin { transition: none; } }
.meter.none { background: var(--surface-2); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.empty { text-align: center; padding: 32px 0; }
.show-more {
  display: block; margin: 16px auto 0; padding: 0 var(--btn-px); min-height: var(--btn-h); border-radius: var(--btn-r);
  border: 1px solid var(--surface-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: var(--btn-fs); font-weight: 600; cursor: pointer;
}
.show-more:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.show-more:active { background: color-mix(in srgb, var(--brand-soft), var(--btn-mix) 12%); }
.show-more[hidden] { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: var(--fs-1); color: var(--muted); }
.footer-inner p { margin: 0 0 6px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.footer-row p { margin: 0; }
.footer-shortcuts { display: flex; gap: 14px; }
.footer-shortcuts a { color: var(--brand); display: inline-flex; padding: 4px; border-radius: 8px; }
.footer-shortcuts a:hover { color: var(--text); }
.footer-shortcuts svg { display: block; }
/* OpenStreetMap's licence needs its credit visible on pages using its data:
   one footer line on those pages (server adds it), the rest on /credits.
   The zoomable course map keeps its own credit. Don't remove it. */
.footer-credit { font-size: var(--fs-1); }
.footer-credit a { color: inherit; }

/* ---------- Content pages: guides, method, hubs ---------- */
.article-page { padding: 28px 0 40px; }
.wrap.narrow > * { max-width: var(--read); }
.breadcrumbs { font-size: var(--fs-1); color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.lede-dark { font-size: var(--fs-4); color: var(--text); max-width: 65ch; }
.prose { font-size: var(--fs-3); line-height: 1.7; }
.prose.wide { max-width: 75ch; }
.prose h1 { font-size: var(--fs-6); margin-bottom: 6px; }
.prose h2 { font-size: var(--fs-5); margin: 1.8em 0 .5em; }
.prose h3 { font-size: var(--fs-4); margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose table { margin: 0 0 1.2em; font-size: var(--fs-2); }
.prose table.scale th, .prose table.scale td { white-space: normal; vertical-align: top; }
.prose table.scale td:first-child { white-space: nowrap; }
.prose dfn { font-style: normal; font-weight: 600; }
.byline { font-size: var(--fs-2); margin-top: 0; }
.prose .on-this-page { margin: 0 0 1.4em; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.prose .on-this-page h2 { margin: 0 0 4px; font-size: var(--fs-2); color: var(--muted); }
.prose .on-this-page ul { margin: 0; padding-left: 1.2em; columns: 2 14rem; }
.prose .on-this-page li { margin: 0; }
.prose .on-this-page a { display: inline-block; min-height: 32px; line-height: 32px; font-weight: 700; }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; margin: 0 0 1.4em; }
.callout p { margin: 0; }
.sources { font-size: var(--fs-2); }
.glossary dt { font-weight: 700; margin-top: 14px; scroll-margin-top: 20px; }
.glossary dd { margin: 2px 0 0; }
.glossary dt:target, .glossary dt:target + dd { background: var(--brand-soft); }
.next-step { margin: 32px 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.next-step h2 { margin-top: 0; font-size: var(--fs-4); }
.next-step .btn { text-decoration: none; margin: 4px 8px 0 0; }
.related h2 { font-size: var(--fs-4); }
.related.wrap { margin-top: 28px; margin-bottom: 28px; }
.related.wrap ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related.wrap li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--btn-r); font-weight: 600; text-decoration: none; color: var(--brand); }
.related.wrap li a:hover { border-color: var(--brand); }
.related.wrap p a { font-weight: 700; text-decoration: none; color: var(--brand); display: inline-flex; align-items: center; min-height: 44px; }
.related.wrap p a::after { content: "\00a0\2192"; }
.related.wrap p a:hover { text-decoration: underline; }
.section-title { font-size: var(--fs-5); margin: 28px 0 10px; }
.guide-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card a {
  display: block; height: 100%; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .12s, transform .12s;
}
.guide-card a:hover { border-color: var(--brand); }
/* Cards lift on hover only for a mouse; on a phone a tap would leave the card lifted (owner, 1 Nov 2026). */
@media (hover: hover) and (pointer: fine) {
  .guide-card a:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .guide-card a { transition: border-color .12s; } .guide-card a:hover { transform: none; } }
.guide-card h2 { font-size: var(--fs-4); margin: 0 0 6px; color: var(--brand); }
.guide-card p { margin: 0; font-size: var(--fs-2); }
.hub-head { padding: 24px 0 8px; }
.hub-head h1 { font-size: var(--fs-6); margin-bottom: 8px; }
.practice-near { margin-top: 28px; margin-bottom: 28px; }
.practice-near h2 { font-size: var(--fs-5); margin: 0 0 10px; }
.practice-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.practice-list a { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.practice-list a:hover { border-color: var(--brand); }
.practice-list .meta { font-size: var(--fs-2); color: var(--muted, inherit); }
.practice-near .practice-list a { display: grid; min-height: 44px; }   /* beats the shared link-size rule below, which made these inline */
.practice-counties { margin-top: 28px; margin-bottom: 28px; }
.practice-counties .county-cols { list-style: none; margin: 0; padding: 0; column-width: 12rem; column-gap: 24px; }
.practice-counties .county-cols li { break-inside: avoid; padding: 5px 0; line-height: 1.35; }
.practice-counties .count { color: var(--muted); font-size: var(--fs-2); white-space: nowrap; }
.practice-counties .count::before { content: "\b7\a0"; }
.county-practice { margin: 12px 0 0; }
.card.static { text-decoration: none; color: inherit; grid-template-columns: 34px 1fr; }
a.card, a.card:hover, a.card:visited { text-decoration: none; color: inherit; }
/* Popup: link to the club's own page */
.dlg-page-link { margin: 8px 0 0; font-size: var(--fs-2); font-weight: 600; }
.dlg-page-link a { display: inline-flex; align-items: center; min-height: 44px; }
/* County page: every club, as links (name, then town) */
.county-clubs { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; transition: border-color .15s ease, box-shadow .15s ease; }
.county-clubs:hover, .county-clubs[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.county-clubs summary { cursor: pointer; font-weight: 700; font-size: var(--fs-3); min-height: 56px; margin: 0 -18px; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; border-radius: var(--radius); }
.county-clubs summary::-webkit-details-marker { display: none; }
.county-clubs summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
.county-clubs[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.county-clubs summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.county-clubs[open] { padding-bottom: 18px; }
.club-links { list-style: none; margin: 0; padding: 0; column-width: 17rem; column-gap: 28px; }
.club-links li { break-inside: avoid; padding: 5px 0; line-height: 1.35; }
.club-links .meta { color: var(--muted); font-size: var(--fs-2); }

/* Popup footer: last checked */
.dlg-footer { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Dialog */
.club-dialog {
  border: 0; padding: 0; border-radius: var(--radius); width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: var(--pop-ring), 0 20px 60px rgb(0 0 0 / 35%);
}
.club-dialog::backdrop { background: var(--backdrop, rgb(10 20 14 / 55%)); }
.dlg-inner { position: relative; padding: 22px; }
.dlg-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text); font-size: var(--fs-5); line-height: 1; cursor: pointer;
}
/* Club popup on phones: a full-height sheet (dvh, so Safari's address bar never
   hides the top), its own scroll, and a bar with the name and the close button that stays in view. */
.dlg-bar { height: 0; }
.dlg-bar-title { display: none; }
body:has(dialog.club-dialog[open]) { overflow: hidden; }
@media (max-width: 700px) {
  .club-dialog {
    width: 100%; max-width: none; margin: 0; border-radius: 0; overflow: hidden;
    height: 100vh; height: 100dvh; max-height: none;
  }
  .club-dialog[open] { display: block; }
  .club-dialog .dlg-inner {
    height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 0 max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .dlg-bar {
    position: sticky; top: 0; z-index: 20; height: auto; min-height: 56px; box-sizing: border-box;
    margin: 0 calc(-1 * max(14px, env(safe-area-inset-right))) 8px calc(-1 * max(14px, env(safe-area-inset-left)));
    padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .dlg-bar-title { display: block; flex: 1; min-width: 0; font-weight: 800; font-size: var(--fs-3); line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .15s; }
  .dlg-bar-title.show { opacity: 1; }
  .dlg-bar .dlg-close { position: static; flex: none; width: 44px; height: 44px; margin-left: auto; margin-right: 6px; }
  .dlg-head { padding-right: 0; }
}
.dlg-head { padding-right: 44px; }
.dlg-head h2 { font-size: var(--fs-5); margin-bottom: 4px; }
.dlg-head .meta { color: var(--muted); font-size: var(--fs-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.verdict { margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.verdict p { margin: 0; }
.verdict .badge { justify-self: start; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: var(--fs-2); margin: 0 0 8px; }
.info-list dt { color: var(--muted); font-weight: 600; }
.info-list dd { margin: 0; }
.course { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.course-head { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.course-head h3 { margin: 0; font-size: var(--fs-4); }
.course-head .sub { color: var(--muted); font-size: var(--fs-2); }
/* The standard round on a course (popup course cards, club page course list): one short line. */
.std-price { margin: 4px 0 0; font-size: var(--fs-2); font-weight: 600; color: var(--text); }
.place-courses .std-price { display: block; margin: 2px 0 4px; font-weight: 600; }
.std-other-h { margin: 10px 0 2px; }
.std-other { margin: 0 0 8px; padding-left: 1.2em; }
.reasons { margin: 10px 0 0; padding-left: 20px; font-size: var(--fs-2); }
.reasons li { margin: 3px 0; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: var(--fs-1); }
/* Tee picker: rows in a course table are clickable */
.course tbody tr[data-ti] { cursor: pointer; }
.course tbody tr[data-ti]:hover td { background: var(--surface-2); }
.course tbody tr.selected td { background: var(--brand-soft); }
.course tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
/* Tee colour tooltip (positioned by app.js, floats above the popup) */
.tee-tip {
  position: fixed; z-index: 10; width: min(230px, calc(100vw - 16px)); padding: 10px 12px;
  background: var(--tip-bg); color: #f4fbf7; border-radius: 10px; font-size: var(--fs-1); line-height: 1.45;
  box-shadow: var(--pop-ring), 0 10px 30px rgb(0 0 0 / 30%); pointer-events: none;
}
.tee-tip p { margin: 0 0 6px; }
.tee-tip p:last-child { margin-bottom: 0; }
.tee-tip strong { color: #fff; }
.tee-tip .tee-tip-title { font-weight: 700; font-size: var(--fs-2); color: #fff; display: flex; align-items: center; gap: 6px; }
.tee-tip .tee-dot { border-color: rgb(255 255 255 / 45%); margin-right: 2px; }
.tee-tip .tee-tip-hcp { color: #8ee3b0; font-weight: 600; }
.tee-tip::after {
  content: ""; position: absolute; left: 50%; width: 10px; height: 10px; background: var(--tip-bg);
  transform: translateX(-50%) rotate(45deg);
}
.tee-tip[data-side="above"]::after { bottom: -5px; }
.tee-tip[data-side="below"]::after { top: -5px; }
.course tbody tr.tee-group th {
  background: var(--surface-2); color: var(--text); font-size: var(--fs-1); font-weight: 700;
  text-transform: none; padding-top: 10px; white-space: normal;
}
.tee-pick {
  display: inline-flex; align-items: center; gap: 0; padding: 4px 10px 4px 6px; margin: -4px 0;
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--btn-r);
}
.tee-pick:hover { border-color: var(--brand); }
.tee-pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.tee-hint { margin: 12px 0 0; }
.tee-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--dot-ring); margin-right: 6px; vertical-align: middle; }
.mini { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--lvl-unknown); }
.mini[data-level="beginner"] { background: var(--lvl-beginner); }
.mini[data-level="manageable"] { background: var(--lvl-manageable); }
.mini[data-level="challenging"] { background: var(--lvl-challenging); }
.mini[data-level="tough"] { background: var(--lvl-tough); }
.extras { margin-top: 0; }
.extras h3 { font-size: var(--fs-3); }

/* Club popup sections, in reading order */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.glance-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px;
  border-radius: 12px; background: var(--surface-2); min-width: 0;
}
.glance-label { font-size: var(--fs-1); color: var(--muted); font-weight: 700; }   /* sentence case, no tracking (polish) */
.glance-tile .band { font-size: var(--fs-3); }
.glance-value { font-weight: 700; }
.glance-value.ok { color: var(--brand); }
.glance-value.no { color: var(--danger); }
.dlg-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.dlg-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.dlg-section-head h3 { font-size: var(--fs-4); margin: 0; }
.dlg-section .verdict { margin: 0 0 4px; }
.dlg-section .info-list { margin-top: 12px; }
.dlg-reviews { margin: 8px 0 0; font-size: var(--fs-2); }
.book-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.book-row .btn { text-decoration: none; margin-top: 0; display: inline-flex; align-items: center; gap: 6px; }
.book-row .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 560px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance-tile:last-child { grid-column: 1 / -1; }
}
.full-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.view-switch { margin: -4px 44px 12px 0; }
.short-facts { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0 0; }
.short-facts h4 { margin: 0; font-size: var(--fs-3); }
.short-facts p { margin: 2px 0 8px; }
.short-tees { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.short-tees td { padding: 5px 4px; border-top: 1px solid var(--line); }
.short-tees .tee-dot { display: inline-block; vertical-align: middle; }
.view-switch .btn.small { padding: 6px 12px; font-size: var(--fs-2); }
.fee-lines { margin: 0 0 6px; padding-left: 18px; }
.good-to-know { font-size: var(--fs-2); margin: 14px 0 6px; }
.fee-lines li { margin: 2px 0; }

/* Par 3 & pitch and putt page: laid out like the main search */
.results[hidden] { display: none; }

/* Course size (9 holes, 18 holes, pitch & putt): one neutral style for all */
.holes-chip {
  display: inline-flex; align-items: center; padding: 1px 9px; border-radius: var(--btn-r); font-size: var(--fs-1); font-weight: 700;
  background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--surface-2); border-radius: var(--btn-r); padding: 3px 10px; font-size: var(--fs-1); }
.chips li.no { text-decoration: line-through; opacity: .6; }
.facility-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; }
.facility-chips .fi { width: 18px; height: 18px; color: var(--brand); }
/* Facility icons, filters, reviews link, green fees */
.fi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.icons .fi { width: 26px; height: 26px; padding: 4px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.facility-filters { border: 0; padding: 0; margin: 0 0 14px; }
.facility-filters legend { font-size: var(--fs-1); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
#facility-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ff {
  position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs-2);
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--btn-r); padding: 6px 12px 6px 10px; min-height: 36px;
}
.ff input { position: absolute; opacity: 0; pointer-events: none; }
.ff .fi { color: var(--brand); }
.ff:has(input:checked) { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.ff:has(input:checked) .fi { color: var(--brand-ink); }
.ff:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Popup header: name/address on the left, small map on the right */
.dlg-head { display: grid; grid-template-columns: 1fr 170px; gap: 4px 16px; align-items: start; }

/* Course map: a popup over the club popup */
.map-dialog {
  border: 0; padding: 0; border-radius: var(--radius); width: min(980px, calc(100vw - 24px));
  height: min(820px, calc(100vh - 32px)); background: var(--surface); color: var(--text);
  box-shadow: var(--pop-ring), 0 20px 60px rgb(0 0 0 / 40%);
}
.map-dialog::backdrop { background: var(--backdrop, rgb(10 20 14 / 60%)); }
.map-dialog[open] { display: flex; }
.map-inner { display: flex; flex-direction: column; width: 100%; min-height: 0; padding: 14px 16px; gap: 10px; }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 44px; }
.map-top h2 { font-size: var(--fs-4); margin: 0; }
.map-close { top: 10px; right: 10px; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.map-bar[hidden] { display: none; }
.map-nav { display: flex; gap: 8px; }
.map-bar .btn.small { padding: 6px 12px; font-size: var(--fs-2); min-width: 40px; }
/* Switching between a club's courses on the course map. */
.map-courses { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.map-courses[hidden] { display: none; }
.course-pick {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 36px;
  border: 1px solid var(--line); border-radius: var(--btn-r); padding: 6px 14px; background: var(--surface); color: inherit;
}
.course-pick:hover { border-color: var(--brand); }
.course-pick[aria-pressed="true"] { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
.map-tees { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.map-tees[hidden] { display: none; }
.map-tees .tee-pick { border: 1px solid var(--line); border-radius: var(--btn-r); padding: 4px 10px; background: var(--surface); }
.map-tees .tee-pick .muted { margin-left: 5px; font-weight: 400; }
.map-tees .tee-pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; font-weight: 700; }
.map-hole { display: flex; flex-direction: column; gap: 2px; min-height: 3.6em; line-height: 1.3; }
.map-hole .mh-title { font-size: var(--fs-4); }
.map-hole .mh-stats { font-weight: 600; }
.map-hole .muted { font-size: var(--fs-2); }
.map-canvas { flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--m-rough); display: grid; place-items: center; }
.map-canvas > p { padding: 16px; }
.course-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.course-svg path { vector-effect: non-scaling-stroke; }
.m-bg { fill: var(--m-rough); }
.m-outline { fill: var(--m-outline); stroke: var(--m-outline-line); stroke-width: 1.5; }
.m-rough { fill: var(--m-rough); }
.m-range { fill: var(--m-range); }
.m-fairway { fill: var(--m-fairway); }
.m-tee { fill: var(--m-tee); stroke: var(--m-tee-line); stroke-width: 1; }
.m-green { fill: var(--m-green); stroke: var(--m-green-line); stroke-width: 1; }
.m-bunker { fill: var(--m-bunker); stroke: var(--m-bunker-line); stroke-width: 1; }
.m-water { fill: var(--m-water); stroke: var(--m-water-line); stroke-width: 1; }
.m-hole { cursor: pointer; }
.m-hole-line { fill: none; stroke: var(--m-hole); stroke-width: 2; stroke-dasharray: 6 5; opacity: .95; }
.m-hole-hit { fill: none; stroke: transparent; stroke-width: 18; }
.m-hole-num circle { fill: var(--m-num); stroke: #fff; stroke-width: 1.5; }
.m-hole-num text { fill: #fff; font-weight: 700; text-anchor: middle; font-family: inherit; pointer-events: none; }
.m-hole:hover .m-hole-line, .m-hole:focus-visible .m-hole-line { stroke: var(--m-hole-on); }
.m-hole.on .m-hole-line { stroke: var(--m-hole-on); stroke-width: 3.5; stroke-dasharray: none; }
.m-hole.on .m-hole-num circle { fill: #b8860b; }
.course-svg.focus .m-hole:not(.on) { opacity: .45; }
.m-hole:focus { outline: none; }
.map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.map-foot p { margin: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-1); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--dot-ring); }
.sw-fairway { background: var(--m-fairway); } .sw-green { background: var(--m-green); } .sw-tee { background: var(--m-tee); }
.sw-bunker { background: var(--m-bunker); } .sw-water { background: var(--m-water); }
@media (max-width: 640px) {
  .map-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .map-inner { padding: 10px; }
}
.mini-map {
  position: relative; display: block; width: 170px; height: 96px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); text-decoration: none;
  padding: 0; font: inherit; cursor: pointer;
}
/* The page colour sits on the box, not the picture, so the dark theme's drawing filter doesn't turn it pale. */
.mini-map:has(> img) { background: var(--bg); }
.mini-map img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mini-map svg { width: 100%; height: 100%; display: block; }
.mini-map-label {
  position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: center; font-size: var(--fs-1); font-weight: 600;
  background: var(--label-bg); color: var(--label-ink); border-radius: 6px; padding: 3px 6px;
  opacity: .9; transition: opacity .15s;
}
.mini-map:hover .mini-map-label, .mini-map:focus-visible .mini-map-label { opacity: 1; background: var(--surface); }
.mini-map:hover { border-color: var(--brand); }
/* The link that stands in for a missing course drawing sits in the same corner of the popup. */
.mini-map-col { display: flex; flex-direction: column; gap: 8px; width: 170px; }
.mini-map-col .mini-map { width: 100%; }
.mini-map-link { width: 100%; text-align: center; white-space: normal; line-height: 1.25; text-decoration: none; }
@media (max-width: 560px) {
  .dlg-head { grid-template-columns: 1fr; }
  .mini-map { width: 100%; height: 130px; }
  .mini-map-col { width: 100%; }
}

/* Google reviews */
.reviews-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0;
  font: inherit; font-weight: 600; font-size: var(--fs-2); color: var(--brand); background: none; border: 0; cursor: pointer;
}
.reviews-link:hover { text-decoration: underline; }
.reviews-link svg { width: 16px; height: 16px; fill: #d4a017; }
.fee-lines { margin: 0 0 6px; padding-left: 20px; font-size: var(--fs-2); }
.fee-lines li { margin: 3px 0; }
.extras .btn.ghost { text-decoration: none; margin-top: 6px; }

/* Price guide: £ ££ £££ */
.band { display: inline-flex; gap: 1px; font-weight: 800; font-size: var(--fs-3); letter-spacing: .02em; justify-self: end; }
.band b { color: var(--band-off); font-weight: 800; } /* unused signs: 3:1 or better on every background, both themes */
.band b.on { color: var(--brand); }
.band.none .bsym { font-style: normal; }
.band.none { font-size: var(--fs-1); font-weight: 500; color: var(--muted); gap: 6px; }
.band.members span { border: 1px solid var(--line); border-radius: var(--btn-r); padding: 2px 10px; font-weight: 600; color: var(--text); }
.band.big { font-size: var(--fs-5); justify-self: start; }
.band-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.row-rating .band { justify-self: end; }
.tip { font-size: var(--fs-2); border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; margin: 14px 0 0; color: var(--muted); }
/* "What are slope and course rating?" under the tee tables. */
.what-is { margin: 14px 0 0; font-size: var(--fs-2); }
.what-is summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.what-is p { margin: 6px 0 0; }

@media (max-width: 560px) {
  .hero { padding: 32px 0 40px; min-height: 610px; }
  .fields.bottom .btn.primary { flex: 1; }
  #geo span { display: none; }
  .dlg-inner { padding: 18px 14px; }
  .info-list { grid-template-columns: 1fr; gap: 0 0; }
  .info-list dd { margin-bottom: 8px; }
}

/* Buttons and button-like controls use the brand font (their own rules reset
   the font, so this comes last). */
.btn, .seg button, .tab, .tag, .tag-clear, .filters-open, .show-more, .search-further,
.tee-pick, .link-btn, .panel-close {
  font-family: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Landing page (brand board layout) ---------- */
/* Centred one-line headline over a big search box; the course types are tabs joined to its top. */
.home-hero { position: relative; background: radial-gradient(ellipse at 50% 0, var(--brand-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.home-hero-inner { position: relative; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.home-hero h1 { font-size: var(--fs-6); line-height: 1; letter-spacing: -0.03em; color: var(--text); max-width: none; margin: 0 auto 14px; }
.home-hero h1 .hl-golf { color: var(--brand); }
.home-hero .lede { color: var(--muted); opacity: 1; max-width: 52ch; font-size: var(--fs-4); margin: 0 auto 30px; }

.home-search { max-width: 720px; margin: 0 auto; text-align: left; }
.home-kind { display: flex; gap: 4px; min-width: 0; max-width: 100%; margin: 0; padding: 0; border: 0; position: relative; z-index: 1; }
.home-kind legend.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.home-kind label { position: relative; display: block; min-width: 0; }
.home-kind input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.home-kind span { display: block; padding: 10px 20px; border-radius: 12px 12px 0 0; border: 0; background: var(--brand-soft); font-weight: 700; font-size: var(--fs-2); color: var(--muted); white-space: nowrap; text-align: center; }
.home-kind input:checked + span { background: var(--surface); color: var(--brand); }
.home-kind input:not(:checked):hover + span { color: var(--brand); }
.home-kind input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.home-search-bar { display: flex; gap: 8px; background: var(--surface); border-radius: 0 var(--field-r) var(--field-r) var(--field-r); padding: 10px; box-shadow: 0 14px 40px rgb(var(--shadow-rgb) / 13%); border: 0; }
.home-search input[type="text"], .search-card input[type="text"] { flex: 1; min-width: 0; font-size: var(--fs-4); border: 0; background: transparent; padding: 14px 10px; color: var(--text); font-family: inherit; }
.home-search input[type="text"]:focus, .search-card input[type="text"]:focus { outline: none; }
/* Focus shows as a green ring on the text field inside the box, so no outline runs between the tabs. */
.home-search input[type="text"]:focus, .search-card input[type="text"]:focus { box-shadow: 0 0 0 2px var(--focus); border-radius: var(--field-r); }
.home-search button, .search-card .btn.primary { flex: none; background: var(--brand-fill); color: var(--brand-ink); font-weight: 600; border: 0; padding: 14px 28px; font-size: 1.0625rem; border-radius: var(--btn-r); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.home-search button::after { content: "\2192"; content: "\2192" / ""; font-size: 1.1em; margin-left: 2px; }
.home-search button:hover, .search-card .btn.primary:hover { filter: none; background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 18%); }
.home-search button:active, .search-card .btn.primary:active { background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 32%); }

/* The search on Courses and Short courses pages (and the bar above results) uses the landing page look:
   one white box with a single field for a town, a postcode or a course name. */
.search-card { background: none; box-shadow: none; border-radius: 0; padding: 0; max-width: 720px; }
.search-band .search-card { box-shadow: none; max-width: 760px; }
/* The search band above results: the search box and the Beginner / Average / Pro switch
   in one row on computers, the switch lined up with the bottom of the box (polish). */
@media (min-width: 721px) {
  .search-band > .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; }
  .search-band > .wrap > .search-card { flex: 1 1 520px; }
  .search-band > .wrap > .level-pick { margin: 0 0 10px; }
}
/* Town pages: the town is already chosen, so the band is one line ("Norwich · 8 miles",
   Change place) with the level switch beside it; Change place opens the form under them. */
.search-band.town-search { padding: 14px 0; }
.town-search > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.town-search .search-summary {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; min-height: 52px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--pop-ring), 0 4px 16px rgb(var(--shadow-rgb) / 10%);
}
.town-search .search-summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; }
.town-search .search-summary .ss-text { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.town-search .search-summary .btn.small { min-height: 40px; padding: 0 14px; text-decoration: none; }
.town-search .level-pick { margin: 0; }
.town-search > .wrap > .search-card { order: 3; flex: 1 1 100%; }
.town-search:not(.open) #search { display: none; }
.search-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; background: var(--surface); border-radius: var(--field-r); padding: 10px; box-shadow: 0 14px 40px rgb(var(--shadow-rgb) / 13%); }
.search-box .fields:not(.bottom) { grid-row: 1; grid-column: 1; flex-wrap: nowrap; }
.search-box .fields.bottom { grid-row: 1; grid-column: 2; margin: 0; }
.search-box .field { padding-left: 10px; }
.search-box { position: relative; }
.search-box .field.has-suggest { position: static; }   /* the suggestions drop under the whole bar, not just under the field */
.search-box .field.grow { flex: 1 1 0; min-width: 0; }
.search-box .field.grow > span { font-size: var(--fs-1); }
.search-box select { min-height: 52px; border-radius: var(--field-r); }
.search-box .btn.ghost { min-height: 52px; }
@media (max-width: 640px) {
  .search-box { grid-template-columns: minmax(0, 1fr); }
  .search-box .fields:not(.bottom) { flex-wrap: wrap; }
  .search-box .fields:not(.bottom), .search-box .fields.bottom { grid-column: 1; }
  .search-box .fields.bottom { grid-row: 2; }
  .search-box .fields.bottom .btn { width: 100%; }
  .search-card input[type="text"] { font-size: 16px; }
}

/* Section heading row: heading left, link to another screen top right. Used site-wide. */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.lp-start .section-head h2, .lp-example .section-head h2, .home-explore .section-head h2 { font-size: var(--fs-5); }
.section-head a, .lp-all a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head a { margin-left: auto; }
/* "Start here": the first steps as a short route, with the same numbered circles
   and dotted lime line as the New to golf page. In a row on wide screens,
   down the page on phones. */
.lp-start { padding-top: 40px; padding-bottom: 48px; }
/* Each step is a matching card; the numbers sit above the cards, joined by the dotted line, with a clear gap. */
.lp-steps { list-style: none; margin: 92px 0 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 12px; align-items: stretch; }
.lp-steps li { flex: 1 1 0; min-width: 0; }
.lp-steps li {
  position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px;
}
/* Each number is a square golf flag on a pole rising out of the top of its card. */
.lp-n {
  position: absolute; z-index: 2; top: -58px; left: 50%; display: grid; place-items: center; width: 34px; height: 28px; margin: 0;
  border-radius: 1px 4px 4px 1px; background: var(--brand-fill); color: var(--brand-ink); font: 800 var(--fs-3)/1 "Baloo 2", "Nunito", sans-serif;
}
.lp-n::before { content: ""; position: absolute; left: -2px; top: 0; width: 2.5px; height: 58px; border-radius: 1px; background: var(--text); }
.lp-steps strong { font: 700 var(--fs-3)/1.2 "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
.lp-steps small { color: var(--muted); font-size: var(--fs-2); line-height: 1.35; }
@media (min-width: 761px) and (max-width: 1000px) {
  /* Any number of steps wraps four to a row, the shorter last row centred. */
  .lp-steps { flex-wrap: wrap; gap: 88px 16px; }
  .lp-steps li { flex: 0 0 calc((100% - 48px) / 4); }
}
/* "Reading a result" (a real club): the same row as the results list, with a short key beside it, on
   its own band of colour. The key sits beside the row on computers, three across under it on
   tablets and in one column on phones. */
.lp-example { background: var(--surface-2); margin-top: 20px; padding: 40px 0 44px; }
.ex { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 18px 40px; align-items: start; }
/* The caption's first line lines up with the first explanation's heading. */
.ex-lead { margin: 10px 0 12px; }
.ex-cards .card { grid-template-columns: 120px minmax(0, 1fr) auto; }
.ex-key { display: grid; gap: 4px; margin: 0; }
.ex-key dt { font: 700 var(--fs-3)/1.25 "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
.ex-key dd { margin: 2px 0 0; font-size: var(--fs-2); color: var(--text); }
.nowrap { white-space: nowrap; }
/* Pointing at an explanation (hover, keyboard focus or a tap) rings the part of the result it explains
   (owner, 21 Oct 2026). With nothing pointed at, the difficulty score shows as linked, so the idea is
   clear before anyone points. CSS only; the card's own markup is untouched (a smoke check reads it). */
.ex-key > div { padding: 10px 14px; border-radius: var(--radius); cursor: default; transition: background-color .15s ease; }
.ex-key > div:hover, .ex-key > div:focus,
.ex:not(:has(.ex-key > div:hover, .ex-key > div:focus)) .ex-key > [data-points="score"] { background: var(--surface); outline: none; }
.ex-key > div:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ex-cards .score-dot, .ex-cards .band, .ex-cards .row-facts { outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .15s ease, background-color .15s ease; }
.ex-cards .band, .ex-cards .row-facts { border-radius: 6px; }
.ex:not(:has(.ex-key > div:hover, .ex-key > div:focus)) .ex-cards .score-dot,
.ex:has([data-points="score"]:hover, [data-points="score"]:focus) .ex-cards .score-dot,
.ex:has([data-points="price"]:hover, [data-points="price"]:focus) .ex-cards .band,
.ex:has([data-points="facts"]:hover, [data-points="facts"]:focus) .ex-cards .row-facts { outline-color: var(--brand); }
.ex:has([data-points="price"]:hover, [data-points="price"]:focus) .ex-cards .band,
.ex:has([data-points="facts"]:hover, [data-points="facts"]:focus) .ex-cards .row-facts { background: var(--brand-soft); }
@media (prefers-reduced-motion: reduce) { .ex-key > div, .ex-cards .score-dot, .ex-cards .band, .ex-cards .row-facts { transition: none; } }
@media (max-width: 1000px) { .ex-lead { margin-top: -6px; } }
@media (min-width: 761px) and (max-width: 1000px) {
  .ex { grid-template-columns: minmax(0, 1fr); }
  .ex-key { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; align-items: start; }
}
.home-explore { padding-top: 36px; padding-bottom: 36px; }
.home-explore .area-cards { gap: 12px; }
.area-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.area-cards li { display: flex; }
.area-cards a { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; height: auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0; text-decoration: none; color: var(--text); }
.area-cards a:hover { border-color: var(--brand); }
@media (min-width: 761px) and (max-width: 1000px) { .area-cards { grid-template-columns: repeat(2, 1fr); } }
/* Outline thumbnails sit centred at 70% of the card width. */
.area-outline { display: block; width: 70%; aspect-ratio: 4 / 3; margin: 0 auto 6px; align-self: center; }
.area-outline img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Soft edges: neighbouring areas fade out towards the border of the picture, so the straight
   cut of the map never shows; the county shape and the highlighted town sit in the clear middle. */
.area-outline img { -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }
/* Area cards: the map fills the whole tile; name and chips sit on a soft band along the bottom. */
/* Equal tiles: the map is a 4:3 box at the top, the name/chips band below it (same height in every tile).
   Town pictures are shifted (--dx/--dy/--ds from pages.py) so the club dot sits at the centre of the map box. */
.area-cards .area-outline { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: var(--surface); -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }
.area-cards .area-outline img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none;
  transform-origin: calc(var(--dx, .5) * 100%) calc(var(--dy, .5) * 100%);
  transform: translate(calc((.5 - var(--dx, .5)) * 100%), calc((.5 - var(--dy, .5)) * 100%)) scale(var(--ds, 1)); }
.area-cards .area-blank { height: 100%; }
.area-blank { display: block; width: 100%; height: 100%; border-radius: 10px; background: var(--surface-2); }
.area-cards + .section-title { margin-top: 32px; }
.area-cards strong { font-family: "Baloo 2", "Nunito", sans-serif; font-size: var(--fs-3); line-height: 1.15; }
/* Card text: county line, title, then stat chips (mockups/area-cards-options.html, option A). */
.area-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.area-cards .area-body { position: relative; margin-top: -26px; padding: 24px 10px 10px; min-height: 100px; flex: 1; justify-content: flex-start; background: linear-gradient(to bottom, transparent, var(--surface) 26px); }
.area-county { font-size: var(--fs-1); color: var(--muted); font-weight: 700; line-height: 1.2; }   /* sentence case (polish) */
.cr-meta { margin-top: 3px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.area-chips .chip { display: inline-flex; align-items: baseline; gap: 3px; background: var(--brand-soft); color: var(--chip-ink); border-radius: var(--btn-r); padding: 0 6px; font-size: var(--fs-1); font-weight: 700; white-space: nowrap; line-height: 1.5; }
.area-chips .chip b { font-family: "Baloo 2", "Nunito", sans-serif; font-size: var(--fs-1); font-weight: 700; }
.area-cards small { color: var(--muted); font-size: var(--fs-2); }
/* The whole card is the link: the title ends in a chevron and the card lifts on hover. */
.area-cards strong::after { content: " ›"; color: var(--brand); }
/* Same chevron on the county cards in /courses. */
.county-card h2::after { content: " ›"; color: var(--brand); }
.area-cards a { position: relative; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.area-cards a:hover { box-shadow: var(--shadow); }
/* The lift is for a mouse only, so a tap on a phone doesn't leave the card lifted (owner, 1 Nov 2026). */
@media (hover: hover) and (pointer: fine) { .area-cards a:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .area-cards a { transition: none; } .area-cards a:hover { transform: none; } }
.lp-all { padding-top: 20px; padding-bottom: 36px; margin-top: 0; text-align: center; }

@media (max-width: 760px) {
  .home-hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .home-hero h1 { font-size: var(--fs-6); }
  .home-hero .lede { font-size: var(--fs-3); margin-bottom: 22px; }
  .home-search-bar { flex-wrap: wrap; border-radius: 0 0 var(--field-r) var(--field-r); }
  .home-kind label { flex: 1; }
  .home-kind span { padding: 9px 4px; font-size: var(--fs-1); }
  .home-search input[type="text"] { font-size: 16px; }
  .home-search input[type="text"] { flex: 1 1 100%; }
  .home-search button { flex: 1 1 100%; }
  .area-cards { grid-template-columns: 1fr; }
  /* Phones: the route runs down the page, circle on the left. */
  .lp-steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
  .lp-steps li { flex: none; align-items: flex-start; text-align: left; min-height: 74px; justify-content: center; padding: 12px 14px 12px 72px; }
  .lp-n { top: calc(50% - 22px); left: 24px; }
  .lp-n::before { height: 44px; }
  .section-head { flex-wrap: wrap; }
  .ex { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Quick ratings (club popup) ---------- */
.rate { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate h3 { margin: 0 0 8px; font-size: var(--fs-4); }
.rate .muted.small { margin: 6px 0 0; }
.rate .btn.small { padding: 6px 14px; font-size: var(--fs-2); margin-top: 10px; }
.rate-form { display: grid; gap: 12px; }
.rate-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rate-q .rate-q-text { font-weight: 600; }
.rate-played { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); }
.rate-played input { width: 18px; height: 18px; }
.rate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rate-error { margin: 0; color: var(--danger); font-size: var(--fs-2); font-weight: 600; }
.rate-actions { display: flex; gap: 8px; }
.rate-actions .btn.small { margin-top: 0; }
.rate-thanks { margin: 0 0 8px; color: var(--brand); font-weight: 700; }
.card-rating { margin: 4px 0 0; font-size: var(--fs-1); color: var(--muted); }
.card-rating b { color: var(--brand); font-weight: 800; }
/* Ratings now sit under the summary tiles, so they read as part of the top. */
.glance + .rate, .dlg-head + .rate { margin-top: 16px; }
/* Compact ratings: heading line, then one row of three percentages. */
.rate-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-bottom: 8px; }
.rate-head h3 { margin: 0; font-size: var(--fs-3); }
.rate-count { color: var(--muted); font-size: var(--fs-2); }
.rate-links { margin-left: auto; font-size: var(--fs-2); color: var(--muted); white-space: nowrap; }
.rate-links .link-btn { padding: 0; font-size: inherit; }
.rate-links a { color: var(--brand); font-weight: 600; }
.rate-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rate-stats li { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.2; }
.rate-stats b { font-family: "Baloo 2", "Nunito", sans-serif; font-size: var(--fs-5); font-weight: 700; color: var(--brand); }
.rate-stats span { font-size: var(--fs-1); color: var(--muted); }
.rate .rate-form { margin-top: 4px; }

/* Book · Call · Website · Directions, kept at the bottom of the popup while scrolling. */
.action-bar {
  display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 3;
  margin: 18px -22px -22px; padding: 12px 22px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgb(var(--shadow-rgb) / 8%);
}
.action-bar a {
  flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-2); border-radius: var(--btn-r); text-decoration: none; color: var(--text); background: var(--surface-2);
  font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 600; font-size: var(--btn-fs);
  transition: background-color .12s, color .12s, border-color .12s, transform .16s var(--ease-out);
}
.action-bar a:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.action-bar a:active { background: color-mix(in srgb, var(--brand-soft), var(--btn-mix) 12%); }
.action-bar a.ab-main { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); font-weight: 600; }
.action-bar a.ab-main:hover { background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 18%); border-color: transparent; color: var(--brand-ink); }
.action-bar a.ab-main:active { background: color-mix(in srgb, var(--brand-fill), var(--btn-mix) 32%); }
/* Second, smaller way to book (club's page and GolfNow both exist). */
.action-bar { flex-wrap: wrap; }
.action-bar a.ab-second { flex: 1 0 100%; min-height: 44px; font-size: var(--fs-1); font-weight: 600; order: 2; }
.action-bar a { order: 1; }
.action-bar .ab-short { display: none; }
.action-bar a { text-align: center; padding: 0 12px; box-sizing: border-box; }
@media (max-width: 760px) {
  .action-bar { gap: 8px; bottom: calc(-1 * max(24px, env(safe-area-inset-bottom))); margin: 16px -14px -18px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .action-bar a { min-height: 48px; font-size: var(--fs-3); white-space: nowrap; padding: 0 8px; }
  .action-bar a.ab-main { flex: 1.5 1 0; }
  .action-bar a:not(.ab-main):not(.ab-second) { flex: 1 1 0; min-width: 0; }
  .action-bar a.ab-second { min-height: 48px; white-space: normal; }
  .action-bar a.ab-call { flex: 0.7 1 0; }
  .action-bar .ab-long { display: none; }
  .action-bar .ab-short { display: inline; }
}
@media (max-width: 380px) {
  .action-bar { gap: 6px; }
  .action-bar a { font-size: var(--fs-1); padding: 0 4px; }
  .action-bar a { letter-spacing: -.01em; }
  .action-bar a.ab-main { flex: 1.1 1 0; }
  .action-bar a.ab-call { flex: 0.5 1 0; }
}
/* Call: phones only (on a computer the number is in Contact). */
@media (min-width: 761px) { .action-bar .ab-call { display: none; } }
/* Filter rows have no visible labels: the buttons say what they are
   ("5 miles", "Any price", "9 holes"). Kept for screen readers and tags. */
.fg-label, .sort-field > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; min-width: 0; }

/* ---------- Filters: one compact card on computers ---------- */
@media (min-width: 721px) {
  .filter-area {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "panel panel panel" "sort dist map";
    align-items: center; gap: 10px 16px; margin-bottom: 14px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  }
  .filter-area .toolbar { grid-area: sort; margin: 0; }
  /* The "Must have" row waits behind the Filters button, so the first course shows without scrolling (19 Oct 2026). */
  .filter-area .filters-open { display: inline-flex; min-height: 34px; font-size: var(--fs-2); }
  .filter-area .filter-panel:not(.inline-only):not(.open) .facility-filters { display: none; }
  .filter-area .distance { grid-area: dist; margin: 0; }
  .filter-area .filter-panel { grid-area: panel; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .filter-area .filter-rows { gap: 8px 0; margin-bottom: 8px; }
  .filter-area .filter-rows .fgroup + .fgroup { border-left: 1px solid var(--line); margin-left: 10px; padding-left: 10px; }
  .filter-area .filter-panel.inline-only .filter-rows { margin-bottom: 0; }
  .filter-area .toolbar select { min-height: 34px; min-width: 10rem; font-size: var(--fs-2); }
  .filter-area .seg { gap: 4px; }
  .filter-area .seg button { min-height: 32px; padding: 0 9px; font-size: var(--fs-1); gap: 5px; }
  .filter-area .facility-filters { margin: 0; }
  .filter-area .facility-filters legend { font-size: var(--fs-1); margin-bottom: 5px; }
  .filter-area #facility-filters { gap: 5px; }
  .filter-area .ff { min-height: 32px; padding: 3px 10px 3px 8px; font-size: var(--fs-1); }
}
@media (max-width: 720px) {
  .filter-area { display: contents; }
  .seg button { min-height: 34px; padding: 0 12px; font-size: var(--fs-1); }
}
@media (min-width: 721px) and (max-width: 1000px) {
  /* Narrower: sort over distance, the map beside them. */
  .filter-area { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "panel panel" "sort map" "dist map"; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .filter-area .filter-rows { gap: 8px 18px; }
  .filter-area .filter-rows .fgroup + .fgroup { border-left: 0; margin-left: 0; padding-left: 0; }
}
/* Clubs with several courses: each course's score on the result card. */
.card-courses { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: var(--fs-1); color: var(--muted); }
.card-courses li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--btn-r); background: var(--surface-2); }
.card-courses .mini { width: 9px; height: 9px; margin: 0; }
.card-courses b { color: var(--text); font-weight: 800; }
/* A tee left out of the score (junior or winter). */
.tee-note { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: var(--btn-r); font-size: var(--fs-1); font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; }

/* Phones: the search box as one line once there's a search (app.js searchSummary). */
.search-summary { display: none; }
@media (max-width: 720px) {
  .search-band { padding: 12px 0; }
  .search-band .search-summary {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px;
    background: var(--surface); border-radius: 12px; box-shadow: var(--pop-ring), 0 4px 16px rgb(0 0 0 / 15%); text-shadow: none;
  }
  .search-summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; }
  .search-summary .ss-text { flex: 1; min-width: 0; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-summary .btn.small { min-height: 36px; padding: 0 14px; }
  .search-band:has(.search-summary):not(.open) #search { display: none; }
  .search-band.open .search-summary { margin-bottom: 10px; }
  .search-band { min-height: 0 !important; }
}
@media (max-width: 720px) {
  /* The one-line search bar already says what was searched. */
  main:has(.search-summary) .results-bar h1, main:has(.search-summary) .results-bar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main:has(.search-summary) .results { padding-top: 14px; }
  .progress { height: 24px; margin-bottom: 8px; }
  .gp-club { width: 15px; height: 24px; }
  .gp-hole { width: 20px; height: 24px; }
  .gp-track { height: 24px; }
}

/* ---- Guides: the beginner's journey ---- */
.jp-chapter { margin: 28px 0 0; }
.jp-chapter > h2 { font-size: var(--fs-5); margin: 0 0 4px; scroll-margin-top: 16px; }
.jp-path { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
/* Each number is centred on its card. */
.jp-journey { position: relative; }
.jp-journey .jp-chapter > h2 { padding-left: 58px; }
.jp-path li { position: relative; padding: 0 0 14px 58px; margin: 0; }
.jp-path li:last-child { padding-bottom: 0; }
.jp-path li:last-child .jp-num { top: calc(50% - 23px); }
.jp-num {
  position: absolute; left: 0; top: calc(50% - 30px); width: 46px; height: 46px; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); z-index: 1;
  font: 800 var(--fs-4) "Baloo 2", "Nunito", sans-serif; display: grid; place-items: center; border: 4px solid var(--bg);
}
.jp-card, .jp-ref-card {
  display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); transition: border-color .12s;
}
.jp-card:hover, .jp-ref-card:hover { border-color: var(--brand); }
.jp-k { display: block; font-size: var(--fs-1); font-weight: 700; color: var(--kicker); }
.jp-t { display: block; font: 700 var(--fs-4)/1.25 "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
.jp-d { display: block; font-size: var(--fs-2); color: var(--muted); margin-top: 2px; }
.jp-refs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.jp-ref-card { height: 100%; }

.jp-prog { display: flex; gap: 4px; list-style: none; margin: 8px 0 4px; padding: 0; }
.jp-prog li { flex: 1 1 0; min-width: 0; margin: 0; }
.jp-prog a {
  display: grid; place-items: center; height: 36px; border-radius: 8px; background: var(--line); color: var(--text);
  font: 700 var(--fs-1) "Baloo 2", "Nunito", sans-serif; text-decoration: none; border: 2px solid transparent;
}
.jp-prog li.done a { background: var(--brand-fill); color: var(--brand-ink); }
.jp-prog li.now a { background: var(--accent); color: var(--on-bright); border-color: var(--brand); }
.jp-prog a:hover { border-color: var(--brand); }
.jp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jp-now { margin: 0 0 8px; font: 700 var(--fs-3) "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
@media (max-width: 480px) { .jp-prog { gap: 2px; } .jp-prog a { font-size: var(--fs-1); border-radius: 6px; } }
.jp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; }
.jp-stepno { font: 700 var(--fs-2) "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
.jp-chip {
  display: inline-block; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand); text-decoration: none;
  font-size: var(--fs-1); font-weight: 700; padding: 1px 12px; border-radius: var(--btn-r);
}
.jp-chip:hover { background: var(--brand-fill); color: var(--brand-ink); }
.in-short { background: var(--brand-soft); border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 18px; }
.in-short-h { display: block; font: 700 var(--fs-3) "Baloo 2", "Nunito", sans-serif; color: var(--brand); }
.in-short p { margin: 2px 0 0; }
.prose .in-short p:last-child { margin-bottom: 0; }

.jp-next {
  display: block; text-decoration: none; color: var(--brand-ink); background: var(--brand-fill); border-radius: var(--radius);
  padding: 16px 18px; margin: 28px 0 0; box-shadow: var(--shadow);
}
.jp-next-k { display: block; font: 700 var(--fs-2) "Baloo 2", "Nunito", sans-serif; color: var(--accent); }
.jp-next-t { display: block; font: 700 var(--fs-4)/1.25 "Baloo 2", "Nunito", sans-serif; }
.jp-next-d { display: block; font-size: var(--fs-2); margin: 2px 0 10px; }
.jp-go { display: inline-block; background: var(--accent); color: var(--on-bright); font: 700 var(--fs-3) "Baloo 2", "Nunito", sans-serif; padding: 4px 16px; border-radius: var(--btn-r); }
.jp-next:hover .jp-go { background: var(--jp-go-hover); }
@media (prefers-reduced-motion: reduce) {
  .jp-card, .jp-ref-card { transition: none; }
}


/* Example scorecard in the scorecard guide (public/scorecard.js adds the "?" popups).
   Everything is scoped under .scorecard so nothing leaks into the rest of the site. */
.scorecard {
  /* A paper card: the same light colours in both themes. */
  --green: #19764d; --lime: #acd653; --lime2: #8fbf3a; --ink: #18392b; --focus: #19764d;
  --pen: #1c3f9e; --pen2: #7a2d8c;
  font-size: 16px; line-height: 1.5; max-width: 100%;
}
.scorecard figcaption { margin: 14px 0 0; padding-top: 8px; border-top: 1px solid #ccc; font: 400 .85rem/1.45 "Nunito", system-ui, sans-serif; color: #333; }
.scorecard table { margin: 12px 0 0; font-size: .74rem; border-collapse: collapse; width: 100%; }
.scorecard th, .scorecard td { color: inherit; white-space: normal; }
.scorecard th { color: #111; font-weight: 700; font-size: inherit; }
.scorecard .wm { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; color: var(--green); line-height: 1.2; letter-spacing: -.02em; }
.scorecard .wm i { font-style: normal; color: var(--lime2); }
.sc-hint { margin: 0 0 10px; font-size: var(--fs-2); color: var(--muted); }
.scorecard{position:relative;padding:8px 8px 8px;border:2px solid #111;background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif;box-shadow:0 2px 0 rgba(0,0,0,.06),0 8px 22px rgba(24,57,43,.12);margin:0}
.scorecard .cardhead{display:flex;align-items:center;gap:8px;border-bottom:3px double #111;padding-bottom:6px;margin-bottom:8px}
.scorecard .cardbrand{display:flex;align-items:center;gap:5px;flex:none}
.scorecard .cardlogo{width:28px;height:28px;flex:none}
.scorecard .cardbrand .wm{font-size:1.1rem;white-space:nowrap}
.scorecard .club{flex:1 1 0;min-width:0;text-align:center;font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:1.2rem;letter-spacing:.05em;text-transform:uppercase;line-height:1.2}
.scorecard .fields{display:grid;grid-template-columns:1.5fr 1.5fr .8fr;gap:6px 8px;margin-bottom:8px}
.scorecard .f{border-bottom:1.5px solid #111;font-size:.6rem;font-weight:700;letter-spacing:.02em;padding-bottom:1px;min-height:34px;position:relative}
.scorecard .f .hand{display:block;font-size:.7rem;letter-spacing:0}
.scorecard .hand,.scorecard .hand2{font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Marker Felt",cursive;color:var(--pen);font-weight:600}
.scorecard .hand2{color:var(--pen2)}
.scorecard .info{display:grid;grid-template-columns:1fr;gap:8px;position:relative;font-size:.7rem}
.scorecard .info table{margin:0;font-size:.7rem;table-layout:auto}
.scorecard .info th,.scorecard .info td{height:22px;padding:0 3px;border-color:#222}
.scorecard .info thead th{background:#fff;color:#111;font-size:.62rem;font-weight:700;line-height:1.1}
.scorecard .info tbody th[scope=row]{text-align:left;background:#f1f1f1;white-space:nowrap;font-size:.72rem}
.scorecard .info .hand{font-size:.8rem}
.scorecard .info th.tw{background:#fff}
.scorecard .info th.ty{background:#F5D34B}
.scorecard .info th.tr{background:#E9857C;color:#111!important}
.scorecard .info td.tbox{width:30px}
.scorecard .tick{font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;color:var(--pen);font-weight:700}
.scorecard table{border-collapse:collapse;width:100%;table-layout:fixed;position:relative;font-variant-numeric:tabular-nums;font-size:.74rem;margin-top:12px}
.scorecard table.main{margin-top:12px}
.scorecard th,.scorecard td{border:1px solid #222;text-align:center;padding:0 1px;height:23px;position:relative;overflow:visible}
.scorecard .holes th{background:#fff;color:#111;font-size:.5rem;font-weight:700;line-height:1.05;padding:1px;height:auto;position:relative}
.scorecard .holes th.hy,.scorecard .holes th.hy2{background:#F5D34B}
.scorecard .holes th.hw{background:#fff}
.scorecard .holes th.hr{background:#E9857C}
.scorecard .holes th.hk{background:#e9e9e9}
.scorecard .holes .key{display:block;font-size:.36rem;font-weight:600;line-height:1.1;margin-top:1px}
.scorecard .tees th{font-size:.62rem;font-weight:700;height:16px;padding:0;background:#fff;color:#111}
.scorecard .cmk{width:11%}
.scorecard .chn{width:7%}
.scorecard .ccw{width:10%}
.scorecard .ccy{width:10%}
.scorecard .cpar{width:6.5%}
.scorecard .csi{width:6%}
.scorecard .ca{width:9%}
.scorecard .cb{width:9%}
.scorecard .cc{width:9%}
.scorecard .cpt{width:12%}
.scorecard tbody th[scope=row]{background:#e9e9e9;font-weight:800;font-size:.9rem}
.scorecard td.par{font-weight:800;background:#fff}
.scorecard td.si{color:#c00000;font-weight:800}
.scorecard td.cw,.scorecard td.cy,.scorecard td.cr{font-weight:800}
.scorecard td.cw{background:#fff}
.scorecard td.cy{background:#F7DD6B}
.scorecard td.cr{background:#EE9A92}
.scorecard td.si.cw{background:#fff}
.scorecard td.si.cy{background:#F7DD6B}
.scorecard td.si.cr{background:#EE9A92}
.scorecard td.hand,.scorecard td.hand2{font-size:.82rem}
.scorecard tr.sub th,.scorecard tr.sub td{border-bottom:3px solid #111;font-weight:800}
.scorecard tr.sub th{background:#d6d6d6;font-size:.66rem}
.scorecard tr.sub td.par{background:#f1f1f1}
.scorecard tr.tot th{font-size:.54rem}
.scorecard tr.msg td{height:18px;font-size:.5rem;font-style:italic;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#fff;border-top:2px solid #111}
.scorecard tr.msg td.x2{background:#EE9A92}
.scorecard table.main thead th{font-size:.62rem;font-weight:700;line-height:1.15;padding:10px 2px 3px;height:auto;vertical-align:middle;background:#fff;color:#111;position:relative;border-bottom:1px solid #222}
.scorecard table.main thead tr.holes th[rowspan],.scorecard table.main thead tr.tees th{border-bottom:3px solid #111}
.scorecard table.main thead tr.tees th{padding:2px;border-top:1px solid #222}
.scorecard table.main thead th.hk{background:#e9e9e9}
.scorecard table.main thead th.hy,.scorecard table.main thead th.hy2{background:#F5D34B}
.scorecard table.main thead th.hw2{background:#ececec;box-shadow:inset 0 0 0 2px #888}
.scorecard table.main thead th.hr{background:#C0392B;color:#fff}
.scorecard table.main thead .key{display:block;font-size:.42rem;font-weight:600;line-height:1.1;margin-top:2px}
.scorecard table.main thead .bt{top:-4px;right:-4px;left:auto;margin:0;border:4px solid transparent;pointer-events:auto}
.scorecard table.main thead .bt:before,.scorecard table.main thead .bt:after{display:none}
.scorecard .tablewrap{overflow-x:auto}
.scorecard .tablewrap table.main{min-width:460px}
@media(min-width:700px){
.scorecard table.main thead th{font-size:.7rem}
}
@media(min-width:960px){
.scorecard table.main thead th{font-size:.78rem}
.scorecard table.main thead .key{font-size:.5rem}
}
.scorecard .keynote{font-size:.78rem;margin:8px 0 0}
.scorecard .bottom{display:grid;grid-template-columns:96px 1fr;gap:10px;margin-top:12px}
.scorecard .box{border:2px solid #111;aspect-ratio:1;display:flex;flex-direction:column;justify-content:space-between;padding:5px;font-size:.58rem;font-weight:700;line-height:1.2;background:#fff}
.scorecard .box .hand{font-size:1.2rem;text-align:center}
.scorecard .lines .f{min-height:34px;font-size:.6rem}
.scorecard .sigs{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;margin-top:10px}
.scorecard .sigs .f{min-height:44px}
.scorecard .exnote{margin-top:8px;text-align:center;font-size:.6rem;color:#555;line-height:1.2}
.scorecard .bt,.scorecard .bl,.scorecard .bi,.scorecard .bh,.scorecard .bo{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);background-clip:padding-box;color:var(--lime);font:800 .72rem/1 "Baloo 2",sans-serif;letter-spacing:0;position:absolute;z-index:3;text-transform:none}
.scorecard .bo{width:18px;height:18px;font-size:.6rem;right:-9px;top:-9px}
.scorecard .bh{right:-10px;top:-12px}
.scorecard .bt{top:-36px;left:50%;margin-left:-12px;pointer-events:none}
.scorecard .bt:after{content:"";position:absolute;top:100%;left:50%;height:9px;border-left:2px solid var(--ink);margin-left:-1px}
.scorecard .bt:before{content:"";position:absolute;top:calc(100% + 5px);left:50%;margin-left:-5px;border:5px solid transparent;border-top:7px solid var(--ink);border-bottom:0}
.scorecard .bi{right:0;top:0}
.scorecard button.bt,.scorecard button.bl,.scorecard button.bi,.scorecard button.bh,.scorecard button.bo{appearance:none;border:2px solid transparent;padding:0;cursor:pointer;pointer-events:auto}
.scorecard button.bt:hover,.scorecard button.bl:hover,.scorecard button.bi:hover,.scorecard button.bh:hover,.scorecard button.bo:hover{background:var(--green)}
.scorecard button.bt:focus-visible,.scorecard button.bl:focus-visible,.scorecard button.bi:focus-visible,.scorecard button.bh:focus-visible,.scorecard button.bo:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.scorecard .ctip{position:fixed;left:0;top:0;z-index:50;width:max-content;max-width:min(260px,calc(100vw - 16px));background:#fffdf6;color:var(--ink);border:1px solid var(--green);border-radius:8px;box-shadow:0 6px 18px rgba(24,57,43,.2);padding:8px 10px;font:400 14px/1.4 Nunito,system-ui,sans-serif;text-align:left;pointer-events:none;animation:sc-tipIn .12s ease-out}
.scorecard .ctip[hidden]{display:none}
.scorecard .ctip strong{display:block;font-family:Nunito,system-ui,sans-serif;font-weight:800;font-size:14px;margin:0 0 2px}
.scorecard .ctip span{display:block;font-size:14px;font-weight:400}
.scorecard .ctip:after{content:"";position:absolute;left:calc(var(--ax,50%) - 6px);bottom:-7px;width:12px;height:12px;background:#fffdf6;border-right:1px solid var(--green);border-bottom:1px solid var(--green);transform:rotate(45deg)}
.scorecard .ctip.below:after{bottom:auto;top:-7px;border-right:0;border-bottom:0;border-left:1px solid var(--green);border-top:1px solid var(--green)}
@keyframes sc-tipIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
.scorecard .ctip{animation:none}
}
@media(max-width:699px){
.scorecard .x{display:none}
}
@media(min-width:700px){
.scorecard .cmk{width:8%}
.scorecard .chn{width:6%}
.scorecard .ccw{width:7.5%}
.scorecard .ccy{width:7.5%}
.scorecard .cpar{width:5%}
.scorecard .csi{width:4.5%}
.scorecard .ca{width:7%}
.scorecard .cb{width:7%}
.scorecard .cc{width:7%}
.scorecard .cpt{width:9%}
.scorecard .ccr{width:7.5%}
.scorecard .cpr{width:4.5%}
.scorecard .csr{width:4.5%}
.scorecard .holes th{font-size:.62rem}
.scorecard .holes .key{font-size:.44rem}
}
/* Phones: the whole card fits the screen (no sideways scrolling). */
@media (max-width: 699px) {
  .scorecard { padding: 6px 4px; }
  .scorecard .cardhead { gap: 6px; }
  .scorecard .club { font-size: .95rem; letter-spacing: .03em; }
  .scorecard .cardbrand .wm { font-size: 1rem; }
  .scorecard .tablewrap { margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
  .scorecard .tablewrap { overflow: visible; }
  .scorecard .tablewrap table.main { min-width: 0; }
  .scorecard table.main thead th { font-size: .54rem; padding: 10px 1px 3px; }
  .scorecard table.main thead .key { font-size: .38rem; }
  .scorecard table.main { font-size: .68rem; }
  .scorecard th, .scorecard td { padding: 0; }
}
/* Areas: /courses lists every county as a compact row (by nation, England by
   region); county pages show their outline, town cards and every course. */
.county-filter { margin: 16px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.county-filter[hidden], .county-rows li[hidden] { display: none; }
.county-filter label { font-weight: 600; }
.county-filter input { width: min(100%, 320px); }   /* look and focus ring: the shared input rule at the top */
.nation > h2 { margin: 28px 0 6px; }
.region-title { font-size: var(--fs-3); color: var(--muted); margin: 14px 0 6px; }
.county-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.county-rows a { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.county-rows a:hover { border-color: var(--brand); }
.county-rows .area-outline { grid-row: 1 / span 2; width: 100%; margin: 0; }
.cr-name { font-weight: 700; align-self: end; }
.cr-name::after { content: " ›"; color: var(--brand); }
.cr-meta { color: var(--muted); font-size: var(--fs-1); align-self: start; }
.county-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.county-head .county-outline { width: 100%; margin: 8px 0 0; }
@media (max-width: 640px) {
  .county-head { grid-template-columns: 1fr; }
  .county-head .county-outline { width: 60%; margin: 0 auto; }
}

/* Skip link: first thing a keyboard user reaches; hidden until focused. */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--brand-fill); color: var(--brand-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* Phones: keep tap targets about 40px tall. */
@media (max-width: 640px) {
  .footer-shortcuts { gap: 4px; }
  .footer-shortcuts a { padding: 10px; }
  .filter-area .seg button, .seg button { min-height: 40px; }
  .btn.small { min-height: 40px; }
  .section-head a, .link-btn, .reviews-link { min-height: 40px; display: inline-flex; align-items: center; }
  .section-head a { gap: .3em; }   /* flex drops the space before the arrow */
}

/* Results map (pilot regions; map.js): our own outlines from ONS boundaries,
   dots coloured like the list's scores. A Map button under the results
   heading opens it full screen over the page (top bar, map, card at the bottom). */
/* The small map preview: the real map (map.js moves its frame into .rmap-art),
   fitted to the search and not interactive. On the search pages it sits in the
   filter card beside the sort and distance choices (a short strip under them on
   phones); town pages too (map.js moves their button there). The whole thing is the
   button that opens the full map. */
.rmap-open {
  position: relative; display: block; width: 100%; height: 120px; margin: 10px 0 0; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--map-land); color: var(--text); font: inherit;
  box-shadow: var(--shadow);
}
.rmap-open:hover { border-color: var(--brand); }
.rmap-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rmap-art { position: absolute; inset: 0; display: block; }
.rmap-art .rmap-frame.rmap-mini { position: absolute; inset: 0; pointer-events: none; cursor: pointer; touch-action: auto; }
.rmap-frame.rmap-mini :is(.rmap-ctrls, .rmap-wait, .rmap-empty, .rmap-msg, .rmap-card, .rmap-hint, .rmap-busy, .rmap-towns, .rmap-n) { display: none; }
.rmap-frame.rmap-mini .rmap-credit { font-size: var(--fs-1); padding: 0 5px; pointer-events: none; }
.rmap-cta {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border-radius: var(--btn-r); background: var(--text); color: var(--surface); font-weight: 600; font-size: var(--fs-2);
  white-space: nowrap; box-shadow: 0 4px 14px rgb(0 0 0 / 28%);
}
.rmap-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.rmap-open:hover .rmap-cta { filter: brightness(1.15); }
@media (min-width: 721px) {
  .filter-area .rmap-open { grid-area: map; width: 200px; height: 96px; margin: 0; }
}
/* Phones: sort and distance stack, 44px tap targets, the map is a full-width strip under them. */
@media (max-width: 720px) {
  .toolbar select, .filters-open, .distance .seg button { min-height: 44px; }
}
.rmap-open[hidden], .rmap-view[hidden], .rmap-msg[hidden], .rmap-card[hidden], .rmap-note[hidden], .rmap-legend[hidden], .rmap-empty[hidden],
.rmap-fp[hidden], .rmap-fp-back[hidden] { display: none; }
/* The page behind doesn't scroll while the map is open (map.js keeps the scrollbar's width). */
html.rmap-lock, html.rmap-lock body { overflow: hidden; overflow-anchor: none; }
/* The site header stays at the top (fixed while the map is open, with a
   placeholder in its place); the map sits below it (map.js sets top). Phones:
   full screen below the header. Tablets and computers: its own window over
   the dimmed page, like the club popup (a click outside closes it). */
.site-header.rmap-pinned { position: fixed; top: 0; left: 0; right: 0; z-index: 81; }
.rmap-view {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 80; display: flex;
  background: var(--bg); overscroll-behavior: contain;
}
.rmap-win { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--text); }
@media (min-width: 768px) {
  .rmap-view { align-items: center; justify-content: center; padding: 16px; background: var(--backdrop); animation: rmap-fade .18s ease-out; }
  .rmap-win {
    flex: none; width: min(1100px, 92vw); height: min(760px, 82vh); max-height: 100%;
    border-radius: var(--radius); box-shadow: var(--pop-ring), 0 20px 60px rgb(0 0 0 / 35%); animation: rmap-pop .2s ease-out;
  }
}
@keyframes rmap-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rmap-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.rmap-bar {
  /* Three columns: the title stays centred whatever the buttons' widths. */
  flex: none; display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
}
.rmap-bar .btn { flex: none; min-height: 44px; padding: 0 12px; gap: 6px; }
.rmap-bar .rmap-fbtn { justify-self: start; }
.rmap-bar .rmap-back { justify-self: end; }
.rmap-bar .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rmap-head { flex: 1; min-width: 0; text-align: center; }
.rmap-head h2 { margin: 0; font-size: var(--fs-3); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmap-sub { margin: 0; font-size: var(--fs-1); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmap-body { flex: 1; min-height: 0; display: flex; position: relative; }
.rmap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rmap-frame {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  background: var(--map-land);   /* the land colour (map.js reads --map-land) */
}
.rmap-frame.drag { cursor: grabbing; }
.rmap-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* The base map (land, coastlines, council lines, towns, water, roads:
   map.js paintBase) is a canvas under the SVG, which draws names and dots. */
.rmap-base { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; pointer-events: none; }
.rmap-svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
/* The map draws OpenStreetMap data: its credit stays visible in the corner. */
.rmap-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 1px 6px; border-top-left-radius: 6px;
  background: var(--map-credit-bg); color: var(--muted); font-size: var(--fs-1); line-height: 1.4; cursor: auto; }
.rmap-credit a { color: inherit; }
.rmap-radius { fill: var(--map-radius); stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 6 6; pointer-events: none; }
.rmap-towns text { font: 700 13px/1 Nunito, system-ui, sans-serif; fill: var(--muted); opacity: .75; text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.rmap-you { pointer-events: none; filter: drop-shadow(0 1.5px 2px rgba(0,0,0,.35)); }
.rmap-you .bm-halo { fill: var(--surface); stroke: var(--surface); stroke-width: 7; stroke-linejoin: round; }
.rmap-you .bm-ball { fill: var(--logo-ball); }
.rmap-you .bm-shine { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; }
.rmap-you .bm-tee { fill: var(--logo-tee); stroke: var(--logo-tee); stroke-width: .9; stroke-linejoin: round; }
.rmap-dot { cursor: pointer; outline: none; }
.rmap-dot circle { fill: var(--lvl-unknown); stroke: var(--surface); stroke-width: 2.5; }
.rmap-dot text { font: 800 10.5px/1 Nunito, system-ui, sans-serif; fill: var(--on-bright); text-anchor: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.rmap-dot[data-level="beginner"] circle { fill: var(--lvl-beginner); }
.rmap-dot[data-level="manageable"] circle { fill: var(--lvl-manageable); }
.rmap-dot[data-level="manageable"] text { fill: var(--on-yellow); }
.rmap-dot[data-level="challenging"] circle { fill: var(--lvl-challenging); }
.rmap-dot[data-level="tough"] circle { fill: var(--lvl-tough); }
.rmap-dot[data-level="tough"] text { fill: #fff; }
.rmap-dot[data-level="loading"] circle { fill: var(--surface-2); stroke: var(--lvl-unknown); stroke-width: 1.5; }
.rmap-dot[data-level="plain"] circle { fill: var(--brand); }
.rmap-dot:hover circle, .rmap-dot:focus circle, .rmap-dot.sel circle { stroke: var(--text); stroke-width: 3; }
.rmap-dot:focus-visible circle { stroke: var(--focus); stroke-width: 4; }
/* Driving ranges (practice & par 3 page): a neutral grey square. */
.rmap-dot rect { fill: var(--range-mark); stroke: var(--surface); stroke-width: 2.5; }
.rmap-dot .badge { display: none; }
.rmap-dot[data-level="both"] circle { fill: var(--brand); }
.rmap-dot[data-level="both"] .badge { display: block; }
.rmap-dot:hover rect, .rmap-dot:focus rect, .rmap-dot.sel rect { stroke: var(--text); stroke-width: 3; }
.rmap-dot:focus-visible rect { stroke: var(--focus); stroke-width: 4; }
/* Bubbles: clubs close together when zoomed out. Neutral (owner, 13 Oct
   2026): a dark ring on white with the number of clubs; only single club dots
   carry the band colours. The size grows a little with the count. */
.rmap-group { cursor: zoom-in; outline: none; }
.rmap-group circle { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; }
.rmap-group circle.rmap-halo { fill: none; stroke: var(--surface); stroke-opacity: .9; stroke-width: 2; }
.rmap-group text.rmap-n { font: 800 13px/1 Nunito, system-ui, sans-serif; fill: var(--text); text-anchor: middle; pointer-events: none;
  font-variant-numeric: tabular-nums; }
.rmap-group[data-size="3"] text.rmap-n, .rmap-group[data-size="4"] text.rmap-n, .rmap-group[data-size="5"] text.rmap-n { font-size: 14px; }
.rmap-group:hover circle:not(.rmap-halo) { stroke-width: 3.5; }
.rmap-group:focus-visible circle.rmap-halo { stroke: var(--focus); stroke-opacity: 1; stroke-width: 3; }
/* Bubbles fading out as they split or merge (animated by map.js). */
.rmap-ghost { pointer-events: none; }
/* Zoom and Recentre: 44 px tap targets, top right. */
.rmap-ctrls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rmap-zoom { display: flex; flex-direction: column; border-radius: var(--btn-r); overflow: hidden; box-shadow: var(--shadow); }
.rmap-zoom button, .rmap-fit { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--text); font: 800 var(--fs-5)/1 Nunito, system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; }
.rmap-fit { border-radius: var(--btn-r); box-shadow: var(--shadow); }
.rmap-fit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rmap-zoom button + button { border-top: 1px solid var(--line); }
.rmap-zoom button:hover, .rmap-fit:hover { background: var(--brand-soft); }
.rmap-zoom button:focus-visible, .rmap-fit:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Loading the clubs in view: a thin line slides along the top (no layout change). */
.rmap-busy { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s; }
.rmap-busy::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--brand); border-radius: 2px; animation: rmap-busy 1s ease-in-out infinite; }
.rmap-frame.busy .rmap-busy { opacity: 1; }
/* The line slides with transform, not left, so it stays smooth while the page is busy (owner, 1 Nov 2026). */
@keyframes rmap-busy { from { transform: translateX(-100%); } to { transform: translateX(286%); } }
/* Nothing to show where the map is. */
.rmap-empty { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface); border-radius: 999px;
  box-shadow: var(--pop-ring), 0 6px 20px rgb(var(--shadow-rgb) / 16%); cursor: auto; }
.rmap-empty p { margin: 0; font-weight: 700; font-size: var(--fs-2); }
.rmap-empty .btn { flex: none; white-space: nowrap; }
.rmap-msg, .rmap-card {
  position: absolute; background: var(--surface); border-radius: var(--radius); box-shadow: var(--pop-ring), 0 10px 30px rgb(var(--shadow-rgb) / 18%); cursor: auto;
}
.rmap-msg { left: 50%; top: 12px; transform: translateX(-50%); width: min(340px, calc(100% - 80px)); padding: 12px 14px; text-align: center; }
.rmap-msg p { margin: 0 0 8px; font-weight: 600; }
.rmap-msg .btn { margin: 4px 2px 0; }
/* The club card: bottom left on computers; on phones a sheet that slides up from the bottom. */
.rmap-card { left: 16px; bottom: 16px; width: min(340px, calc(100% - 32px)); padding: 14px 44px 14px 16px; max-height: calc(100% - 32px); overflow: auto; }
/* At its dot (map.js placeCard moves it): a popover with a small pointer. */
.rmap-card.pop { left: 0; top: 0; bottom: auto; max-height: none; overflow: visible; box-shadow: var(--pop-ring), 0 8px 26px rgb(var(--shadow-rgb) / 22%); }
.rmap-tip { display: none; }
.rmap-card.pop .rmap-tip { display: block; position: absolute; width: 14px; height: 14px; background: var(--surface); transform: translate(-50%, -50%) rotate(45deg); }
.rmap-card.pop[data-side="above"] .rmap-tip { top: 100%; margin-top: -1px; box-shadow: 3px 3px 4px rgb(var(--shadow-rgb) / 8%); }
.rmap-card.pop[data-side="below"] .rmap-tip { top: 0; margin-top: 1px; }
.rmap-card.pop[data-side="right"] .rmap-tip { left: 0; margin-left: 1px; }
.rmap-card.pop[data-side="left"] .rmap-tip { left: 100%; margin-left: -1px; }
.rmap-card.sheet {
  left: 0; right: 0; bottom: 0; width: auto; max-height: 70%; border-radius: 18px 18px 0 0;
  padding: 16px max(44px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  animation: rmap-up var(--dur-sheet) var(--ease-drawer);
}
/* A card that is already a sheet stays put when it is measured again, e.g. when scores arrive (owner, 1 Nov 2026). */
.rmap-card.sheet.still { animation: none; }
.rmap-card .btn { min-height: 44px; }
@keyframes rmap-up { from { transform: translateY(100%); } to { transform: none; } }
.rmap-x { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: var(--fs-5); line-height: 1; cursor: pointer; }
.rmap-many { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: var(--fs-1); }
.rmap-item { cursor: pointer; }
/* A bubble's count on hover (map.js showHint). */
.rmap-hint { position: absolute; left: 0; top: 0; padding: 6px 10px; background: var(--text); color: var(--surface); border-radius: 8px;
  font-size: var(--fs-1); font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgb(var(--shadow-rgb) / 20%); }
.rmap-hint[hidden] { display: none; }
.rmap-item + .rmap-item { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.rmap-name { margin: 0 0 2px; font-size: var(--fs-3); font-weight: 800; line-height: 1.25; }
.rmap-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; color: var(--muted); font-size: var(--fs-2); }
/* The score in the band's colour, like the list's badge. */
.rmap-score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.rmap-score b { display: inline-grid; place-items: center; min-width: 2.4em; padding: 2px 6px; border-radius: 999px; background: var(--lvl-unknown); color: var(--on-bright); font-variant-numeric: tabular-nums; }
.rmap-score[data-level="beginner"] b { background: var(--lvl-beginner); }
.rmap-score[data-level="manageable"] b { background: var(--lvl-manageable); color: var(--on-yellow); }
.rmap-score[data-level="challenging"] b { background: var(--lvl-challenging); }
.rmap-score[data-level="tough"] b { background: var(--lvl-tough); color: #fff; }
.rmap-score[data-level="unknown"] { font-weight: 600; color: var(--muted); }
.rmap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--lvl-unknown); flex: none; }
.rmap-foot { flex: none; padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--surface); border-top: 1px solid var(--line); }
.rmap-foot:has(.rmap-legend[hidden]):has(.rmap-note[hidden]) { display: none; }
.rmap-legend { display: flex; gap: 6px 16px; list-style: none; margin: 0; padding: 2px 0; font-size: var(--fs-1); font-weight: 600;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.rmap-legend li { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.rmap i[data-level="beginner"] { background: var(--lvl-beginner); }
.rmap i[data-level="plain"] { background: var(--brand); }
.rmap i[data-level="range"] { background: var(--range-mark); border-radius: 3px; }
.rmap i[data-level="both"] { background: var(--brand); position: relative; }
.rmap i[data-level="both"]::after { content: ""; position: absolute; right: -4px; top: -4px; width: 8px; height: 8px;
  background: var(--range-mark); border: 1.5px solid var(--surface); border-radius: 2px; box-sizing: border-box; }
.rmap i[data-level="manageable"] { background: var(--lvl-manageable); }
.rmap i[data-level="challenging"] { background: var(--lvl-challenging); }
.rmap i[data-level="tough"] { background: var(--lvl-tough); }
.rmap-note { margin: 2px 0; }
/* Filters over the map: the page's own panel (moved in by map.js). A side
   panel on computers; a sheet from the bottom on phones. */
.rmap-fp { flex: none; width: 340px; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); z-index: 5; }
.rmap-fp-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--line); }
.rmap-fp-head h3 { margin: 0; font-size: var(--fs-4); }
.rmap-fp-slot { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.rmap-fp-foot { flex: none; display: flex; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.rmap-fp-foot .btn { min-height: 44px; }
.rmap-fp-foot .btn.primary { flex: 1; }
.rmap-fp .filter-panel.in-map {
  position: static; transform: none; visibility: visible; transition: none; max-height: none; overflow: visible;
  margin: 0; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0;
}
.rmap-fp .filter-panel .panel-head, .rmap-fp .filter-panel .panel-foot { display: none; }
.rmap-fp .filter-panel .filter-rows { flex-direction: column; flex-wrap: nowrap; gap: 16px; margin-bottom: 16px; }
.rmap-fp .filter-panel .fgroup { flex-direction: column; align-items: flex-start; flex-wrap: wrap; gap: 8px; overflow: visible; }
.rmap-fp .filter-panel .seg { flex-wrap: wrap; }
.rmap-fp .filter-panel .seg button { white-space: normal; min-height: 44px; }
/* The club picked on the map, marked for a moment back in the list. */
.cards li.picked > * { box-shadow: 0 0 0 3px var(--brand), var(--shadow); transition: box-shadow .3s; }
.area-back { margin: 2px 0 0; }
.area-back[hidden] { display: none; }
.area-back .link-btn { padding: 4px 0; }
@media (max-width: 720px) {
  .rmap-fp {
    position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 85%;
    border-right: 0; border-radius: 18px 18px 0 0; box-shadow: var(--pop-ring), 0 -8px 30px rgb(0 0 0 / 20%); animation: rmap-up var(--dur-sheet) var(--ease-drawer);
  }
  .rmap-fp-back { position: absolute; inset: 0; z-index: 4; background: var(--scrim); }
}
@media (min-width: 721px) { .rmap-fp-back { display: none; } }
@media (max-width: 560px) {
  .rmap-bar .btn { padding: 0 10px; }
  .rmap-msg { width: calc(100% - 80px); left: 12px; transform: none; }
  .rmap-empty { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rmap-busy::after { animation: none; left: 0; width: 100%; opacity: .6; }
  .cards li.picked > * { transition: none; }
  .rmap-card.sheet, .rmap-fp, .rmap-view, .rmap-win { animation: none; }
}

/* Driving ranges (practice & par 3 page): facility chips, the range's own
   website under its card, and the popup's note. */
.range-facts { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; padding: 0; margin: 2px 0 0; }
.range-facts span, .range-facts li { background: var(--surface-2); color: var(--text); border-radius: var(--btn-r); padding: 1px 8px; font-size: var(--fs-1); font-weight: 600; }
.dlg-body .range-facts li, #dlg-body .range-facts li { font-size: var(--fs-2); padding: 3px 10px; }
.range-site { display: flex; align-items: center; min-height: 44px; margin-top: -8px; padding: 0 18px 12px 204px; font-size: var(--fs-2); font-weight: 600; color: var(--brand); }
.range-note { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
@media (max-width: 640px) {
  .range-site { margin-top: -6px; padding: 0 12px 10px 114px; font-size: var(--fs-1); }
  .range-facts span { font-size: var(--fs-1); padding: 1px 6px; }
}

/* ---------- Club and driving range pages (/club/..., /driving-range/...) ---------- */
.place-page { padding: 20px 0 32px; }
.place-page > .wrap > * { max-width: 848px; }
.place-head h1 { font-size: var(--fs-6); margin: 0 0 8px; overflow-wrap: anywhere; }
.place-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; color: var(--muted); }
.place-lead { font-size: var(--fs-3); max-width: 60ch; margin: 0 0 22px; }
.place-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.place-facts .glance-tile { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.place-facts .glance-tile .small { line-height: 1.3; }
.place-facts .glance-tile:last-child { grid-column: auto; }
.place-facts.odd .glance-tile:last-child { grid-column: 1 / -1; }
.place-tags { margin: 0 0 12px; }
.place-tags li { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.place-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 16px 0 8px; }
.place-actions .btn { text-decoration: none; text-align: center; padding: 6px 14px; line-height: 1.2; }
.place-actions .btn.primary { font-size: var(--fs-3); min-height: 48px; }
/* Website · See green fees · Directions: one line of text links after the one button (polish, 21 Oct 2026). */
.place-links-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.place-links-row li { display: inline-flex; align-items: center; }
.place-links-row li + li::before { content: "\b7"; color: var(--muted); margin: 0 10px; }
.place-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.place-link:hover { text-decoration-thickness: 2px; }
.place-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* The score and the price lead the facts: a big coloured score, the price in bold. */
.tile-score { display: flex; align-items: center; gap: 12px; }
.score-dot.big { width: 56px; height: 56px; font-size: var(--fs-5); letter-spacing: -0.02em; }
.tile-score-words { display: grid; line-height: 1.25; }
.tile-score-words strong { font-size: var(--fs-4); font-weight: 800; }
.tile-price { font-size: var(--fs-5); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance-tile .score-none { width: auto; min-height: 0; padding: 6px 12px; border-radius: 999px; }
/* Other clubs nearby: one table (name, distance, score, holes, town). */
.near-wrap { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.near-table { font-size: var(--fs-2); }
.near-table th, .near-table td { padding: 9px 12px; vertical-align: middle; }
.near-table thead th { font-size: var(--fs-1); }
.near-table tbody th { font-weight: 700; color: var(--text); font-size: var(--fs-2); white-space: normal; min-width: 9rem; }
.near-table tbody tr:last-child > * { border-bottom: 0; }
.near-table .nt-score { white-space: nowrap; }
.score-dot.small { width: 34px; height: 34px; font-size: var(--fs-1); vertical-align: middle; }
.score-none.small { width: auto; min-height: 0; padding: 3px 9px; border-radius: 999px; }
.near-table tbody th { padding-top: 0; padding-bottom: 0; }
.near-table tbody th a { display: flex; align-items: center; min-height: 48px; }   /* the whole name is a 44px+ tap target */
@media (max-width: 560px) {
  .near-table .nt-town, .near-table thead th:last-child { display: none; }
  .near-table th, .near-table td { padding: 8px; }
}
/* More golf near here: a plain list of links, not buttons. */
.related.wrap.more-golf h2 { font-size: var(--fs-4); }
.related.wrap.more-golf ul { display: block; columns: 2 16rem; column-gap: 32px; margin: 6px 0 0; padding-left: 1.2em; list-style: disc; }
.related.wrap.more-golf li { margin: 0; break-inside: avoid; }
.related.wrap.more-golf li a { display: inline-flex; min-height: 40px; padding: 0; background: none; border: 0; border-radius: 0;
  font-weight: 700; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.related.wrap.more-golf li a:hover { text-decoration-thickness: 2px; }
@media (max-width: 720px) { .related.wrap.more-golf li a, .prose .on-this-page a { min-height: 44px; line-height: 1.3; display: inline-flex; align-items: center; } }
.place-actions .btn:focus-visible, .place-near-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.place-note { margin: 4px 0 0; }
.place-note-range { margin: 14px 0 0; max-width: 60ch; }
.place-section { margin-top: 30px; }
.place-section h2 { font-size: var(--fs-5); margin: 0 0 10px; }
.place-section h3 { font-size: var(--fs-3); margin: 18px 0 6px; }
.place-section p { margin: 0 0 .8em; max-width: 70ch; }
.place-split { display: block; }
.place-courses { margin: 0 0 12px; padding-left: 1.2em; }
.place-drawing { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.place-drawing svg { display: block; width: 100%; height: auto; max-height: 380px; margin: 0 auto; }
.place-drawing figcaption { margin-top: 8px; font-size: var(--fs-1); color: var(--muted); }
.place-drawing + .btn, .place-drawing-sec .btn { margin-top: 12px; text-decoration: none; }
/* The drawing is a button that opens the full course map (club-page.js). */
.place-drawing-open { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; cursor: pointer; }
.place-drawing-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.place-drawing-hint { position: absolute; right: 4px; bottom: 4px; padding: 6px 12px; border-radius: var(--btn-r); background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-size: var(--fs-1); font-weight: 800; line-height: 1.2; box-shadow: var(--shadow); }
.place-drawing-open:hover .place-drawing-hint, .place-drawing-open:focus-visible .place-drawing-hint { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--brand-ink); }
/* Terrain box inside "The course" (hills, trees, water): same card look as "Your first visit". */
/* Terrain facts inside the drawing's card (owner, 23 Oct 2026: compact, no separate box). */
.terrain-list { list-style: none; margin: 10px 0 0; padding: 0; }
.terrain-list li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 0 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.terrain-q { font-weight: 700; }
.terrain-a { min-width: 0; overflow-wrap: anywhere; }
.place-terrain .terrain-list { margin-top: 0; }
.place-terrain .terrain-list li:first-child { border-top: 0; padding-top: 0; }
/* The club page's tee cards (pages.place_tees_html is the empty box; club-page.js fills it with the popup's
   course cards, app.js TasCourseMap.tees). The cards' own styles (.course, .tee-pick, ...) are the popup's;
   these lines only undo the page text rules ("Why this score" headings and paragraphs) inside them. The table
   scrolls inside its own box on a phone. A modest space is held while the cards load. */
.tee-cards { margin-top: 14px; }
.tee-cards[aria-busy="true"] { min-height: 12rem; }
.place-section .tee-cards .course-head h3 { margin: 0; font-size: var(--fs-4); }
.place-section .tee-cards p { margin: 0; max-width: none; }
.place-section .tee-cards .std-price { margin: 4px 0 0; }
.place-section .tee-cards .tee-hint { margin: 12px 0 0; }
.place-section .tee-cards .what-is p { margin: 6px 0 0; }
[data-open-map][aria-busy="true"] { cursor: progress; opacity: .7; }
.place-chips li, .place-section .chips li { font-size: var(--fs-2); }
.place-section .chips + p, .place-section .chips + h3 { margin-top: 12px; }
.place-where-grid { display: grid; gap: 14px; align-items: center; }
.place-locator { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place-locator img { display: block; width: 100%; height: 100%; object-fit: contain; }
.place-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--lvl-tough); border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(var(--shadow-rgb) / 35%), 0 2px 6px rgb(var(--shadow-rgb) / 35%); }
.place-address { font-weight: 600; margin: 0 0 10px; }
.place-links { display: flex; flex-wrap: wrap; gap: 10px; }
.place-links .btn { text-decoration: none; }
.place-near { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.place-near-card { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.place-near-card:hover { border-color: var(--brand); }
.place-near-card strong { font-family: "Baloo 2", "Nunito", sans-serif; font-size: var(--fs-3); line-height: 1.2; }
.place-near-card strong::after { content: " ›"; color: var(--brand); }
.place-near-card .meta { color: var(--muted); font-size: var(--fs-2); }
.place-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.place-foot p { margin: 0 0 .5em; }
.gone-actions { margin-top: 24px; }
.gone-actions .btn { text-decoration: none; }
@media (min-width: 640px) {
  .place-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .place-facts.odd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-facts.odd .glance-tile:last-child { grid-column: auto; }
  .place-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
  .place-actions .btn.primary { flex: none; padding: 0 28px; }
  .place-near { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-where-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 860px) {
  .place-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
}

/* Club pages in two columns on wide screens (owner, 23 Oct 2026): the page's text on the left; the course drawing
   with its terrain facts, and "Where it is", on the right. Narrower screens keep one column in the old reading
   order: the two columns dissolve (display: contents) and their groups are ordered. */
.place-page > .wrap > .place-cols { display: flex; flex-direction: column; }
.place-main, .place-rail { display: contents; }
.pc-top { order: 0; } .pc-course { order: 1; } .pc-mid { order: 2; } .pc-where { order: 3; } .pc-end { order: 4; }
@media (min-width: 1100px) {
  .place-page > .wrap > .place-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 48px; align-items: start; max-width: none; }
  .place-main, .place-rail { display: block; min-width: 0; }
  .place-rail > div > .place-section:first-child { margin-top: 0; }
  .place-rail .pc-course:empty + .pc-where .place-section { margin-top: 0; }
  .place-rail .pc-where { margin-top: 28px; }
  .place-rail .place-where-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .place-rail .place-locator { max-width: none; aspect-ratio: 16 / 10; }
  .place-rail .place-address { margin: 0 0 10px; }
  .place-rail .place-links { display: flex; gap: 8px; }
  .place-rail .place-links .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; margin: 0; }
  .place-rail .place-drawing-sec > .btn { display: flex; width: 100%; justify-content: center; }
}
/* The right-hand column stays in view while the page scrolls, where the screen is tall enough to show all of it. */
@media (min-width: 1100px) and (min-height: 920px) {
  .place-page > .wrap > .place-cols > .place-rail { position: sticky; top: 20px; }
}

/* Driving ranges: the county section, the UK page (/driving-ranges) and the guide line on the practice page */
.county-sub { margin: 20px 0 8px; }
.county-sub h3 { margin: 0 0 6px; }
.range-sub { font-size: var(--fs-3); line-height: 1.3; margin: 20px 0 6px; }
/* Par 3s, pitch and putts and driving ranges (town and county pages): one list of rows, like the
   results list, so a short list never leaves a lone card on a row (polish, 21 Oct 2026). */
.range-list { list-style: none; margin: 0 0 12px; padding: 0; max-width: var(--read); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.range-list li { margin: 0; }
.range-list li + li { border-top: 1px solid var(--line); }
.range-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name foot" "meta foot";
  column-gap: 14px; row-gap: 2px; align-items: center; min-height: 56px; padding: 10px 16px; text-decoration: none; color: var(--text);
  transition: background-color .15s ease; }
.range-card strong { grid-area: name; }
.range-card .meta { grid-area: meta; }
.range-card .rcard-foot { grid-area: foot; justify-content: flex-end; margin: 0; padding: 0; }
.range-card:hover { background: var(--surface-2); }
.range-card:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (max-width: 560px) {
  .range-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meta" "foot"; }
  .range-card .rcard-foot { justify-content: flex-start; padding-top: 4px; }
}
.range-card strong { font-family: "Baloo 2", "Nunito", sans-serif; font-size: var(--fs-3); line-height: 1.2; }
.range-card strong::after { content: " \203A"; color: var(--brand); }
.range-card .meta { color: var(--muted); font-size: var(--fs-2); line-height: 1.4; }
.rcard-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.rcard-badge, .rcard-price { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--btn-r); font-size: var(--fs-1); font-weight: 700; line-height: 1.2; padding: 3px 10px; }
.rcard-badge { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.rcard-price { background: var(--brand-soft); color: var(--text); padding-left: 6px; }
.rcard-price .rt-icon { width: 20px; height: 20px; margin: 0; flex: none; }
@media (prefers-reduced-motion: reduce) { .range-card { transition: none; } }
.range-more { margin: 14px 0 0; }
.range-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--btn-r); font-weight: 600; text-decoration: none; color: var(--brand); }
.range-more a::after { content: "\203A"; }
.range-more a:hover { border-color: var(--brand); }
.dr-find { margin: 18px 0 8px; }
.dr-find .btn { display: flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; }
.dr-intro { margin-top: 22px; }
.dr-counties { margin-top: 8px; }
.dr-nation { margin: 14px 0 0; }
.dr-nation h3 { font-size: var(--fs-3); margin: 0 0 4px; }
@media (min-width: 560px) {
  .dr-find .btn { display: inline-flex; width: auto; padding-left: 28px; padding-right: 28px; }
}

.practice-near .all-ranges { font-weight: 700; }

/* ---------- 14 Oct 2026 user-testing fixes ---------- */
.tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Result cards: the price band's name beside its signs ("££ Mid-range"). */
.band-wrap { display: grid; justify-items: end; gap: 0; }
.band-fig { font-size: var(--fs-1); font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .band-fig { font-size: var(--fs-1); } }
/* The key under the price filter. */

/* Range facts on result cards: ball prices lead. */
.range-facts .rf-price { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.range-facts .rf-none { background: none; color: var(--muted); font-weight: 500; padding-left: 0; }

/* "Sorting by price…" while the list waits for every club's details:
   distance order meanwhile, so no rank numbers. */
.sort-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: var(--fs-2); font-weight: 600; color: var(--text); }
.sort-note .muted { font-weight: 400; }
.sort-spin, .rmap-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: tas-spin .8s linear infinite; flex: none; }
@keyframes tas-spin { to { transform: rotate(360deg); } }
.cards.sorting .rank { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sort-spin, .rmap-spin { animation: none; border-top-color: var(--line); } }

/* A place we couldn't find: choices, then a tip. */
.search-help { margin: 4px 0 18px; max-width: 640px; }
.search-help .sh-title { font-size: var(--fs-3); margin: 0 0 8px; }
.search-help .sh-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.search-help .sh-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.search-help .sh-list a:hover { border-color: var(--brand); }
.search-help .sh-list a span { color: var(--muted); font-size: var(--fs-2); }
.search-help .sh-tip { margin: 0; color: var(--muted); }

/* The map opening from a shared link: a loading message until it can draw. */
.rmap-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; color: var(--text); z-index: 3; }
.rmap-wait[hidden] { display: none; }
/* Phones: the map key wraps onto two lines instead of running off the edge. */
@media (max-width: 640px) { .rmap-legend { flex-wrap: wrap; overflow-x: visible; white-space: normal; gap: 2px 12px; font-size: var(--fs-1); } }

/* Range ball price tiles (pages.py range_price_tiles / app.js rangeTilesHTML) */
.range-tiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; max-width: 640px; }
.range-tiles .rt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; padding: 0; }
.rt-vis { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px 11px; font-variant-numeric: tabular-nums; }
.rt-icon { color: var(--brand); margin-bottom: 4px; }
.rt-size { font-size: var(--fs-2); color: var(--muted); }
.rt-price { font-size: var(--fs-5); font-weight: 700; line-height: 1.15; color: inherit; }
.rt-price small { font-size: var(--fs-1); font-weight: 600; color: var(--muted); }
.rt-per { font-size: var(--fs-1); color: var(--muted); }
@media (max-width: 420px) { .range-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
* + .range-tiles { margin-top: 14px; }
.place-section h2 + .range-tiles { margin-top: 0; }

/* A place we couldn't find: no filters to show */
body.no-place .filter-area, body.no-place .filter-area > * { display: none !important; }

/* Link targets in lists are at least 24px high (WCAG 2.5.8) */
.county-cols a, .club-links a, .place-near a, .place-courses a, .practice-list a, .jp-refs a, .site-footer li a {
  display: inline-block; min-height: 24px; line-height: 24px; }

/* Long echoed text (search box, address) wraps instead of widening the page. */
#results-title, .search-help, .search-help *, .tag, .active-filters, #search-status, .area-back { overflow-wrap: anywhere; }
.search-help .sh-msg { margin: 0 0 12px; font-weight: 600; }

/* Par 3 / range section anchor (/courses/<county>#practice): clear of the sticky header */
#practice { scroll-margin-top: calc(var(--header-h) + 12px); }
.practice-all { margin-top: 28px; }
.practice-all-h { font-size: var(--fs-5); margin: 0; }
.practice-all .practice-near { margin-top: 16px; }
.county-practice-all { margin: 32px 0 8px; }
.county-practice-all > .section-title { margin-top: 0; }
.county-practice-all .county-practice { margin: 0 0 8px; }

/* ---------- Town pages: quick links, practice cards ---------- */
/* Quick links under the h1 to the page's parts (pages.town_jump_chips). */
.jump-chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; padding: 0; }
.jump-chips a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px; border-radius: var(--btn-r);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: var(--fs-2); text-decoration: none;
}
.jump-chips a:hover { border-color: var(--brand); color: var(--brand); }
.jump-chips a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.jump-chips .jc-n { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .jump-chips ul { gap: 6px; margin-bottom: 4px; }
  .jump-chips a { min-height: 44px; padding: 6px 12px; font-size: var(--fs-1); }
}
.practice-jump { margin: 14px 0 6px; }
.practice-jump .btn { text-decoration: none; }
/* The full lists: one heading, both parts as the same cards. */
.practice-all .practice-near { margin: 18px 0 8px; }
.practice-near > h3 { font-size: var(--fs-4); margin: 0 0 10px; }
/* Town pages, the foot (owner, 21 Oct 2026: "very busy"): par 3s and ranges side by side on
   computers, and every link under them a plain text link instead of a pill; then the beginner
   guides and nearby towns as two columns of plain links, like the foot of the Practice page. */
@media (min-width: 900px) {
  .practice-all { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .practice-all-h, .practice-all > .practice-near:only-of-type { grid-column: 1 / -1; }
}
.practice-all .range-more, .practice-all .range-page-link { margin: 4px 0 0; font-size: var(--fs-3); }
.practice-all .range-more + .range-page-link { margin-top: 0; }
.practice-all .range-more a, .practice-all .range-page-link a,
.town-more .related li a {
  display: inline-block; min-height: 0; padding: 10px 0; background: none; border: 0; border-radius: 0;
  color: var(--brand); font-weight: 700; text-decoration: none;
}
.practice-all .range-more a::after, .practice-all .range-page-link a::after { content: "\00a0\2192"; }
.practice-all .range-more a:hover, .practice-all .range-page-link a:hover,
.practice-all .range-more a:focus-visible, .practice-all .range-page-link a:focus-visible,
.town-more .related li a:hover, .town-more .related li a:focus-visible { text-decoration: underline; }
.town-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; margin-top: 40px; margin-bottom: 48px; }
.town-more > .related.wrap { max-width: none; margin: 0; padding: 0; }
.town-more h2 { font-size: var(--fs-4); margin: 0 0 4px; }
.town-more .related ul { display: block; margin: 0; padding: 0; }
.town-more .town-nearby ul { columns: 2; column-gap: 24px; }
.town-more li { break-inside: avoid; }
.town-more p { margin: 4px 0 0; }
@media (max-width: 720px) { .town-more { grid-template-columns: minmax(0, 1fr); row-gap: 28px; } }
/* The anchor offset comes from html's scroll-padding-top (sticky header). */
#practice, #par3, #ranges, #results-section { scroll-margin-top: 0; }

/* ---------- "Where should I start?" (home page): three whole-card links ---------- */
.home-start { padding-top: 36px; padding-bottom: 8px; }
.home-start h2 { font-size: var(--fs-5); margin: 0 0 4px; }
.start-lead { color: var(--muted); margin: 0 0 16px; }
/* Three plain rows in one list (polish, 21 Oct 2026: no icon circles, not three cards in a row). */
.start-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: var(--read);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.start-cards li { display: flex; margin: 0; }
.start-cards li + li { border-top: 1px solid var(--line); }
.start-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 12px 16px; color: var(--text); text-decoration: none; background: var(--surface); transition: background-color .15s ease; }
.sc-body strong { display: block; font: 700 var(--fs-4)/1.2 "Baloo 2", "Nunito", sans-serif; color: var(--text); }
.sc-body span { display: block; margin-top: 3px; font-size: var(--fs-2); line-height: 1.35; color: var(--muted); }
.sc-arrow { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.start-card:hover { background: var(--brand-soft); }
/* The arrow nudge is for a mouse only (owner, 1 Nov 2026). */
@media (hover: hover) and (pointer: fine) { .start-card:hover .sc-arrow { transform: translateX(3px); } }
.start-card:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.start-note { margin: 12px 0 0; font-size: var(--fs-2); }
@media (max-width: 760px) {
  .home-start { padding-top: 28px; }
  .start-card { min-height: 64px; padding: 12px 14px; }
}

/* ---------- "Report a mistake" (club and range pages, popup; plan item 3a) ---------- */
.place-report { margin: 6px 0 0; }
.report-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--brand); text-decoration: none; }
.report-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.report-btn:hover { text-decoration: underline; }
.report-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.report-form { position: relative; max-width: 600px; margin: 4px 0 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-form h3 { margin: 0 0 8px; font-size: var(--fs-4); }
.report-form fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.report-form legend { padding: 0; margin: 0 0 6px; font-weight: 700; }
.report-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.report-kinds label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.report-kinds input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.report-note-label { display: block; margin: 4px 0; font-weight: 700; }
.report-form textarea { display: block; width: 100%; min-height: 84px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--field-r); resize: vertical; }
.report-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--focus); }
.report-form .report-count:empty { display: none; }
.report-form p.small { margin: 6px 0; }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-bot:empty { display: none; }
.report-bot { margin: 8px 0; }
.report-error { margin: 8px 0 0; font-weight: 700; color: var(--danger); }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.report-thanks { margin: 0; font-weight: 700; color: var(--brand); }
.report-thanks:focus { outline: none; }
.dlg-footer .place-report { margin: 0 0 4px; }
@media (max-width: 480px) {
  .report-kinds { grid-template-columns: minmax(0, 1fr); }
  .report-actions .btn { flex: 1; }
}

/* "Checked <date>" under a club or range name (plan item 3b): the newest real check. */
.place-checked { margin: 4px 0 12px; font-size: var(--fs-2); }
.place-checked a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.place-checked a:hover { color: var(--brand); text-decoration-color: currentColor; }
#checked { scroll-margin-top: 90px; }

/* "Is this your club?" (plan item 3c): /for-clubs and the line on club pages. */
.for-clubs-cta { margin: 18px 0 26px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.for-clubs-cta .btn { min-height: 48px; }
.for-clubs-cta p { margin: 8px 0 0; }
.for-clubs-cta .for-clubs-who { margin: 0 0 10px; font-weight: 700; }
.place-yours a { font-weight: 700; }

/* "Your first visit" (plan item 1): club pages and the popup. */
.first-visit .fv-list { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fv-list li { display: grid; grid-template-columns: 22px minmax(0, 11em) minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line); }
.fv-list li:first-child { border-top: 0; }
.fv-list.compact li { grid-template-columns: minmax(0, 10em) minmax(0, 1fr); padding: 8px 12px; }
.fv-i { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fv-unknown .fv-i { stroke: var(--muted); }
.fv-q { font-weight: 700; }
.fv-a { min-width: 0; overflow-wrap: anywhere; }
.fv-unknown .fv-a { color: var(--muted); }
.fv-src, .fv-guide { font-size: var(--fs-1); white-space: nowrap; }
.fv-src { color: var(--muted); }
.fv-guide { display: block; margin-top: 2px; }
.fv-ask { margin: 6px 0 10px; padding-left: 1.2em; }
.fv-alt { font-weight: 700; }
@media (max-width: 560px) {
  .fv-list li { grid-template-columns: 22px minmax(0, 1fr); }
  .fv-list li .fv-a { grid-column: 2; }
  .fv-list.compact li { grid-template-columns: minmax(0, 1fr); }
  .fv-list.compact li .fv-a { grid-column: 1; }
  .fv-src, .fv-guide { white-space: normal; }
}
.for-clubs-cta .btn { text-decoration: none; }

/* One Shot (/play): the golf-ball link in the footer hops when pressed. */
.footer-shortcuts .play-link svg { transform-origin: 50% 100%; }
@keyframes play-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(0) scaleY(.9); } }
@media (prefers-reduced-motion: no-preference) {
  .footer-shortcuts .play-link:active svg { animation: play-hop .45s ease-out; }
}

/* "Scores for" (Beginner / Average / Pro) under the search box: a small
   segmented control in the home page toggle's colours. On phones it gets its own
   row and stays in view when the search folds to one line. */
/* Three columns (1fr | switch | 1fr) so the switch sits on the search box's centre line
   and "What's this?" hangs to its right without pushing it off centre. As wide as the box. */
/* Left-aligned under the search box (polish, 21 Oct 2026: it used to float in the middle);
   beside it in the search band above results (below). */
.level-pick { display: flex; flex-wrap: wrap; align-items: center; position: relative; gap: 6px 12px; margin-top: 12px; font-size: var(--fs-2); }
.level-pick[hidden] { display: none; }
.level-pick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.level-seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--btn-r); background: var(--brand-soft); min-width: 0; }
.level-seg label { position: relative; display: block; min-width: 0; }
.level-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.level-seg span:not(.level-thumb) { display: flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--btn-r); font-weight: 600; color: var(--muted); white-space: nowrap; }
.level-seg .level-thumb { position: absolute; z-index: 0; top: 3px; left: 0; height: calc(100% - 6px); width: 0; border-radius: var(--btn-r); background: var(--brand-fill); pointer-events: none; display: none; }
.level-seg.has-thumb .level-thumb { display: block; }
.level-seg.thumb-anim .level-thumb { transition: transform .22s ease, width .22s ease; }
.level-seg label { z-index: 1; }
.level-seg span:not(.level-thumb) { transition: color .22s ease; }
.level-seg input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgb(var(--shadow-rgb) / 15%); }
.level-seg.has-thumb input:checked + span { background: transparent; color: var(--brand-ink); box-shadow: none; }
.level-seg input:not(:checked):hover + span { color: var(--brand); }
.level-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
/* "?" beside the level switch (owner, 21 Oct 2026: no link away, a "?" that explains the three options):
   hover or keyboard focus shows the note; a tap toggles it (app.js). The 24px bubble has a 44px tap area. */
.level-help-wrap { position: relative; display: inline-flex; }
.level-help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 2px solid var(--brand); border-radius: 50%; background: var(--surface); color: var(--brand); font: 800 13px/1 var(--font-head, inherit); cursor: help; }
.level-help::before { content: ""; position: absolute; inset: -10px; }
.level-help:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.level-help-tip { position: absolute; z-index: 30; top: calc(100% + 10px); right: -8px; width: max-content; max-width: min(300px, calc(100vw - 32px));
  padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: var(--fs-2); font-weight: 400; line-height: 1.5; text-align: left; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility .12s; }
.level-help-tip b { font-weight: 800; }
.level-help:hover + .level-help-tip, .level-help:focus-visible + .level-help-tip, .level-help[aria-expanded="true"] + .level-help-tip { visibility: visible; opacity: 1; }
@media (max-width: 720px) {   /* hang the note from the start of the switch's row (.level-pick), so it never leaves the screen */
  .level-help-wrap { position: static; }
  .level-help-tip { left: 0; right: auto; top: calc(100% + 8px); }
}
.level-alt { display: block; margin-top: 4px; }
@media (max-width: 720px) {
  .search-band .level-pick { margin-top: 8px; }
}
@media (max-width: 420px) {
  .level-pick { gap: 4px 8px; font-size: var(--fs-1); }
  .level-seg span:not(.level-thumb) { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .level-seg .level-thumb, .level-seg span { transition: none !important; }
}

/* ---------- Colour theme switch (header; theme.js) ----------
   A small sun/moon switch after the menu (on phones, at the right of the
   wordmark row, which scrolls away). It isn't a menu link. Its look comes
   from the theme in use (variables below), so it is right from the first
   paint; theme.js only keeps aria-pressed and the tooltip up to date. */
:root { --tt-x: 0px; --tt-sun: block; --tt-moon: none; --tt-track: #e9eedf; --tt-knob: #ffffff; --tt-ink: #b26a00; }
:root[data-theme="dark"] { --tt-x: 18px; --tt-sun: none; --tt-moon: block; --tt-track: #0b100d; --tt-knob: #2c3b32; --tt-ink: #d6ee9d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --tt-x: 18px; --tt-sun: none; --tt-moon: block; --tt-track: #0b100d; --tt-knob: #2c3b32; --tt-ink: #d6ee9d; }
}
@media (min-width: 641px) { .header-inner > .site-nav { margin-left: auto; } }
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 50px; height: 44px; margin: 0 -4px 0 12px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tt-track {
  position: relative; display: block; width: 42px; height: 24px; border-radius: 999px;
  background: var(--tt-track); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s ease, box-shadow .2s ease;
}
.tt-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tt-knob); color: var(--tt-ink); box-shadow: 0 1px 3px rgb(0 0 0 / 28%);
  transform: translateX(var(--tt-x)); transition: transform .22s ease, background-color .2s ease;
}
.tt-knob svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tt-sun { display: var(--tt-sun); }
.tt-moon { display: var(--tt-moon); fill: currentColor; stroke: none; }
.theme-toggle:hover .tt-track { box-shadow: inset 0 0 0 1.5px var(--brand); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; }
@media (max-width: 760px) and (min-width: 641px) {
  .site-nav { gap: 4px 12px; }
  .theme-toggle { margin-left: 6px; }
}
@media (max-width: 640px) {
  .header-inner { position: relative; }
  .theme-toggle { position: absolute; top: 0; right: 12px; height: var(--brand-h); margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-knob, .tt-track { transition: none; }
}

/* Our own drawings in <img> files can't take the theme's colours, so in the
   dark theme a filter turns course drawings and area outlines into night
   versions: dark land and rough, green fairways and greens, light Golf Green
   outlines (the inline drawings get the same, so they all match). */
img[src^="/api/thumb/"], .place-drawing svg { filter: var(--drawing-filter); }
img[src^="/areas/"] { filter: var(--outline-filter); }

/* "No course map yet" pictures (app.js coursePicture): the theme's colours. */
.ph-bg { fill: var(--ph-bg); }
.ph-fair { fill: var(--ph-fair); }
.ph-fair-line { stroke: var(--ph-fair); }
.ph-green { fill: var(--ph-green); }
.ph-sand { fill: var(--ph-sand); }
.ph-water { fill: var(--ph-water); }
.ph-pole { stroke: var(--ph-pole); }
.ph-bay { fill: var(--brand-fill); }
.ph-bay-line { stroke: var(--ph-bg); }
.ph-pill { fill: var(--surface); }
.ph-label { fill: var(--brand); }

/* 404 page: place search and three links */
.prose .search-card { margin: 20px 0 0; }
.prose .search-card .fields input[type="text"] { border: 1px solid var(--line); border-radius: var(--field-r); background: var(--surface); }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; font-weight: 700; }

/* ---------- Layout A (owner, 19 Oct 2026): the results list and the map kept in step ----------
   map.js moves the map into #results-dock and marks the section: rmap-docked plus
   -split (1001px and up: list left, map right, the map held in view while the list
   scrolls) or -sheet (phones: the map held under the list, which slides up over it).
   721-1000px: the small map preview opens the full-screen map, as before. */
.results-dock[hidden] { display: none; }
.rmap-full { display: none; }
.results-dock .rmap-full { display: grid; }
.rmap-full svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rmap-full { width: 44px; height: 44px; border: 0; border-radius: var(--btn-r); background: var(--surface); color: var(--text); place-items: center; padding: 0; cursor: pointer; box-shadow: var(--shadow); }
.rmap-full:hover { background: var(--brand-soft); }
.rmap-full:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* The club whose row is pointed at: a ring round its dot (or its bubble). */
.rmap-hl { fill: none; stroke: var(--text); stroke-width: 3; pointer-events: none; }
/* ... and the row whose dot is pointed at. */
.cards li.hl > .card { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--brand); }
.rmap-docked .rmap-open { display: none; }

@media (min-width: 1001px) {
  .results.rmap-docked-split {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 20px; align-items: start;
    padding-top: 24px; padding-bottom: 16px;
  }
  .rmap-docked-split .results-dock {
    position: sticky; top: calc(var(--header-h) + 12px); display: flex; height: calc(100vh - var(--header-h) - 24px); min-height: 420px;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--map-land);
  }
  .rmap-docked-split .results-dock .rmap { flex: 1; }
  /* The filter card in the list's column: holes and price on one line, difficulty under them, then sort and distance. */
  .rmap-docked-split .filter-area { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "panel panel" "sort dist"; }
  .rmap-docked-split .filter-area .filter-rows { gap: 8px 0; }
  .rmap-docked-split .filter-area .filter-rows .fgroup:has(#difficulty-seg) { order: 3; border-left: 0; margin-left: 0; padding-left: 0; }
  /* Rows: compact, as on phones but with the rank (the list's column is narrower). */
  .rmap-docked-split .card { grid-template-columns: 30px 96px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .rmap-docked-split .rank { width: 30px; height: 30px; font-size: var(--fs-2); }
  .rmap-docked-split .chev { display: none; }
  .rmap-docked-split .thumb { width: 96px; height: 68px; border-radius: 8px; }
  .rmap-docked-split .card h3 { font-size: var(--fs-3); }
  .rmap-docked-split .card .meta { font-size: var(--fs-1); gap: 2px 10px; }
  .rmap-docked-split .range-site { padding-left: 166px; }
}

/* Phones: the list as a sheet over the map. Half, full and peek are places of
   the page's own scroll (map.js `sheet`); --sheet-map is how much map shows at
   half, --sheet-peek how much list shows when the map is up. */
@media (max-width: 720px) {
  .results.rmap-docked-sheet { display: flex; flex-direction: column; overflow-anchor: none; padding-bottom: 0; --sheet-peek: 132px; }
  .rmap-docked-sheet .results-dock {
    order: -1; position: sticky; top: var(--header-h); z-index: 1; display: flex; margin: 0 -16px;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  }
  .rmap-docked-sheet .results-dock .rmap { flex: 1; min-height: 0; }
  .rmap-docked-sheet .results-list {
    position: relative; z-index: 2; margin: 0 -16px; padding: 0 16px 96px;   /* room under the last row for the Map / List button */
    margin-top: calc(var(--sheet-map, 40vh) - 100vh + var(--header-h));
    margin-top: calc(var(--sheet-map, 40dvh) - 100dvh + var(--header-h));
    min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h));
    background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgb(var(--shadow-rgb) / 18%);
  }
  .rmap-docked-sheet.rsheet-peek .results-list { margin-top: calc(-1 * var(--sheet-peek)); }
  .rsheet-grab { display: flex; justify-content: center; align-items: center; height: 44px; margin: 0 -16px -6px; touch-action: none; cursor: grab; }
  .rsheet-grab span { width: 44px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .45; }
  .rmap-docked-sheet .results-bar { margin-bottom: 4px; }
  .rmap-docked-sheet .results-bar p { font-size: var(--fs-2); }
  .rmap-docked-sheet .distance { margin-bottom: 8px; }
  .rmap-docked-sheet .progress { height: 16px; margin-bottom: 4px; }
  .rmap-docked-sheet .rmap-legend { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: var(--fs-1); gap: 2px 12px; }
  main:has(.search-summary) .results.rmap-docked-sheet { padding-top: 0; }
  /* Under the sheet the bottom of the map is covered: its key, credit and messages go to the top. */
  .rmap-docked-sheet .rmap-foot { order: -1; border-top: 0; border-bottom: 1px solid var(--line); padding-top: 4px; padding-bottom: 4px; }
  .rmap-docked-sheet .rmap-credit { top: 0; bottom: auto; left: 0; right: auto; border-radius: 0 0 6px 0; }
  .rmap-docked-sheet .rmap-empty { top: 12px; bottom: auto; }
}
.rsheet-pill {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translateX(-50%); margin-bottom: env(safe-area-inset-bottom);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--btn-r);
  background: var(--text); color: var(--surface); font: inherit; font-weight: 600; font-size: var(--fs-3); cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / 30%); transition: opacity .2s ease, visibility .2s;
}
.rsheet-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rsheet-pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rsheet-pill.away { opacity: 0; visibility: hidden; pointer-events: none; }
body.sheet-open .rsheet-pill { display: none; }
@media (min-width: 721px) { .rsheet-pill, .rsheet-grab { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .rsheet-pill { transition: none; } }

/* ---------- Home (layout A): a drawn map of areas, the search card on top ---------- */
.home-hero { overflow: hidden; background: radial-gradient(ellipse at 20% 0, var(--brand-soft), var(--bg) 70%); }
.home-map { position: absolute; inset: 0; background: var(--map-land); }
.home-map[hidden] { display: none; }
/* Computers: one tall map with room above it that never resizes; when the search card's tabs switch, map.js
   slides the drawn picture (no redrawing while it moves) so the area stays centred (owner, 25 Oct 2026) */
@media (min-width: 761px) { .home-map { top: -160px; bottom: auto; height: 1040px; } }
.home-hero > .hm-credit { z-index: 1; }   /* the map credit in the header's bottom-right corner (map.js) */
.home-hero-inner { text-align: left; padding-top: 44px; padding-bottom: 44px; min-height: 560px; pointer-events: none; }
.home-card {
  pointer-events: auto; position: relative; width: min(480px, 100%); padding: 26px 26px 22px;
  background: var(--surface); border-radius: 20px; box-shadow: 0 4px 10px rgb(var(--shadow-rgb) / 8%), 0 24px 50px rgb(var(--shadow-rgb) / 16%);
}
.home-hero .home-card h1 { font-size: var(--fs-6); margin: 0 0 10px; }
.home-hero .home-card .lede { font-size: var(--fs-3); max-width: none; margin: 0 0 16px; }
.home-card.choosing .lede { display: none; }
.home-card .home-search { max-width: none; }
.home-card .home-kind { flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.home-card .home-kind span { border-radius: var(--btn-r); padding: 8px 14px; min-height: 36px; font-size: var(--fs-2); background: var(--surface-2); border: 1.5px solid var(--line); }
.home-card .home-kind input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.home-card .home-search-bar { box-shadow: none; border: 2px solid var(--brand); border-radius: var(--field-r); padding: 5px; }
.home-card .home-search input[type="text"] { font-size: var(--fs-4); padding: 10px; }
.home-card .home-search button { padding: 12px 16px; font-size: var(--fs-3); }
/* "Search" and "Help me choose" */
.hm-tabs { display: flex; margin: 0 0 14px; border-bottom: 2px solid var(--line); }
.hm-tab {
  flex: 1; min-height: 44px; margin-bottom: -2px; padding: 0 8px; border: 0; border-bottom: 3px solid transparent; background: none;
  font: inherit; font-weight: 800; font-size: var(--fs-3); color: var(--muted); cursor: pointer;
}
.hm-tab:hover { color: var(--brand); }
.hm-tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.hm-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 8px 8px 0 0; }
.hc-title { font-size: var(--fs-4); margin: 22px 0 10px; }
.home-card.tabbed .hc-title { display: none; }
.home-choose { display: grid; gap: 14px; }
.hc-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.hc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; font: 700 var(--fs-3)/1.2 "Baloo 2", "Nunito", system-ui, sans-serif; color: var(--text); }
.hc-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-fill); color: var(--brand-ink); font-size: var(--fs-2); }
.hc-place input[type="text"] { width: 100%; min-height: 48px; font-size: 16px; border: 2px solid var(--line); border-radius: var(--field-r); }
.hc-place input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--focus); }
.hc-note { margin: 6px 0 0; font-size: var(--fs-1); color: var(--muted); }
fieldset.hc-q .hc-note { margin: -2px 0 8px; }
.hc-opts { display: grid; gap: 6px; }
.hc-wants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hc-opt { position: relative; display: block; cursor: pointer; }
.hc-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hc-opt > span { position: relative; display: block; height: 100%; min-height: 44px; padding: 10px 12px 10px 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.hc-opt > span::before {
  content: ""; position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; box-sizing: border-box;
  border: 2px solid var(--muted); border-radius: 50%; background: var(--surface);
}
.hc-opt:hover > span { border-color: var(--brand); }
.hc-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.hc-opt input:checked + span::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.hc-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hc-opt strong { display: block; font-size: var(--fs-2); font-weight: 700; line-height: 1.25; color: var(--text); }
.hc-opt small { display: block; margin-top: 1px; font-size: var(--fs-1); line-height: 1.3; color: var(--muted); }
.hc-go { width: 100%; min-height: 50px; font-size: var(--fs-3); }
/* The areas on the map: a numbered dot (clubs listed there) with the town's name under it. */
.hm-areas ul { list-style: none; margin: 0; padding: 0; }
.hm-area {
  --r: 14px; position: absolute; left: 0; top: 0; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; color: var(--text); text-decoration: none;
}
.hm-dot {
  display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border: 3px solid var(--surface); border-radius: 50%;
  background: var(--brand-fill); color: var(--brand-ink); font: 800 var(--fs-1)/1 "Baloo 2", "Nunito", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 25%); transition: transform .15s ease;
}
.hm-name {
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px;
  white-space: nowrap; background: var(--map-credit-bg); font: 800 var(--fs-1)/1.25 "Baloo 2", "Nunito", system-ui, sans-serif;
}
.hm-area.here .hm-dot { background: var(--accent); color: #18392b; border-color: var(--brand); }
/* The dot grows for a mouse only (owner, 1 Nov 2026). */
@media (hover: hover) and (pointer: fine) { .hm-area:hover .hm-dot { transform: scale(1.1); } }
.hm-area:hover .hm-name { color: var(--brand); text-decoration: underline; }
.hm-area:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Top right, over the sea in the UK view; area names are never placed under it (map.js homeAreas). */
@media (prefers-reduced-motion: reduce) { .hm-dot { transition: none; } .hm-area:hover .hm-dot { transform: none; } }
@media (max-width: 760px) {
  /* Phones and small tablets: the card first, the map under it. */
  .home-hero { display: flex; flex-direction: column; }
  .home-map { position: relative; inset: auto; order: 2; height: 380px; border-top: 1px solid var(--line); }
  .home-hero-inner { min-height: 0; padding-top: 18px; padding-bottom: 20px; }
  .home-card { width: 100%; padding: 20px 16px 18px; border-radius: 16px; }
  .home-hero .home-card h1 { font-size: var(--fs-6); }
  .home-card .home-kind label { flex: 0 1 auto; }
  .home-card .home-kind span { padding: 8px 12px; }
  .home-card .home-search-bar { flex-wrap: wrap; }
  .home-card .home-search button { flex: 1 1 100%; }
  /* The hero clips anything that hangs out of it, so on phones the suggestions open in the card, between the box and the button. */
  .home-card .home-search-bar .suggest { position: static; flex: 1 1 100%; margin: 2px 0 4px; box-shadow: none; border: 1px solid var(--line); border-radius: 12px; max-height: 280px; }
}
@media (max-width: 380px) { .hc-wants { grid-template-columns: minmax(0, 1fr); } }

/* Phones: every tap target at least 44px tall (UX review, 19 Oct 2026). Last in the file so it wins. */
@media (max-width: 720px) {
  .header-inner .brand, .theme-toggle, .search-summary .btn.small, .level-seg span:not(.level-thumb),
  .filter-panel .seg button, label.ff, .footer-shortcuts a { min-height: 44px; }
  .footer-shortcuts a { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .std-price a { display: inline-flex; align-items: center; min-height: 44px; }   /* "See the club’s prices" */
}

/* Search pages for practice and lessons (19 Oct 2026): /pitch-and-putt, a town's
   driving-ranges and golf-lessons pages (pages.render_pitch_and_putt, render_town_ranges, render_town_lessons). */
.range-entries { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: var(--read); }
.range-entry { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.range-entry h3 { margin: 0 0 2px; font-size: var(--fs-4); line-height: 1.25; }
.range-entry p { margin: 6px 0; }
.range-entry .meta { color: var(--muted); font-size: var(--fs-2); margin-top: 0; }
.range-entry .chips { margin: 8px 0; }
.range-hours { list-style: none; margin: 6px 0; padding: 0; font-size: var(--fs-2); }
.range-hours li { padding: 2px 0; }
.range-hours .rh-days { display: inline-block; min-width: 7.5em; font-weight: 700; }
.range-bays { font-weight: 700; }
.range-page-link { margin: 10px 0 0; }
.range-page-link a { font-weight: 700; }
.pp-search { margin: 18px 0 8px; }
.pp-what { margin-top: 18px; }
.pp-guide, .dr-guide { margin-top: 8px; }
.pp-towns, .dr-towns { margin-top: 8px; }
.pp-towns .club-links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.pp-towns .club-links a:hover, .pp-towns .club-links a:focus-visible { text-decoration: underline; }
.practice-intro { margin-top: 0; }
.practice-intro .prose > :first-child { margin-top: 0; }
#short-hero { padding-bottom: 40px; min-height: 0; }   /* a 40px gap to the intro below the search (owner, 25 Oct 2026: "this gap is a bit large") */
.pp-county h3, .practice-counties h3 { font-size: var(--fs-4); margin: 24px 0 6px; padding: 0; border: 0; }
.pp-county h3 a { color: var(--text); text-decoration: none; }
.pp-county h3 a:hover, .pp-county h3 a:focus-visible { color: var(--brand); text-decoration: underline; }
/* Place links: Golf Green and bold enough to read as links; underlined on hover and keyboard focus. */
.pp-county .club-links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.pp-county .club-links a:hover, .pp-county .club-links a:focus-visible { text-decoration: underline; }
.pp-county h3 .count { color: var(--muted); font-size: var(--fs-2); font-weight: 400; white-space: nowrap; }
.pp-county h3 .count::before { content: "\b7\a0"; }
.pp-link { margin: 24px auto 0; }   /* .range-more's "margin: 14px 0 0" cancelled .wrap's centring (20 Oct 2026) */
/* Foot of the Practice & par 3 page (owner, 21 Oct 2026: "fix this to look better"): one block,
   two columns of plain links (county browsing left, beginner guides right) instead of a lone pill,
   a box and a row of pills. Stacks on phones. */
.practice-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 48px; align-items: start; margin-top: 40px; margin-bottom: 48px; }
.practice-more > * { grid-column: 1; }
.practice-more .wrap { max-width: none; margin: 0; padding: 0; }
.practice-more-h, .practice-more .guide-links h2 { font-size: var(--fs-4); margin: 0 0 4px; }
.practice-more .pp-link { margin: 0; }
.practice-more .pp-link a, .practice-more .guide-links li a { display: inline-block; padding: 10px 0; background: none; border: 0; border-radius: 0;
  color: var(--brand); font-weight: 700; text-decoration: none; }
.practice-more .pp-link a::after { content: "\00a0\2192"; }
.practice-more .pp-link a:hover, .practice-more .guide-links li a:hover,
.practice-more .pp-link a:focus-visible, .practice-more .guide-links li a:focus-visible { text-decoration: underline; }
.practice-more .practice-counties { margin: 4px 0 0; }
.practice-more .county-clubs { margin: 0; }
.practice-counties-lead { margin: 8px 0 8px; color: var(--muted); }
.nation-clubs + .nation-clubs { margin-top: 8px; }
.nation-clubs[open] .county-cols { margin-top: 4px; }
.practice-more .guide-links { grid-column: 2; grid-row: 1 / -1; margin: 0; }   /* the empty last row takes its extra height */
.practice-more .guide-links ul { display: block; margin: 0; padding: 0; }
.practice-more .guide-links p { margin: 4px 0 0; }
@media (max-width: 720px) {
  .practice-more { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .practice-more .guide-links { grid-column: 1; grid-row: auto; margin-top: 28px; }
}
