/* Golf Simulator Course Factory: site styles. No external fonts or CDNs (privacy + strict CSP). Tokens first, dark mode via media query. */
:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --surface-2: #eef1e8;
  --ink: #16201a;
  --muted: #52625a;
  --line: #d9ddd0;
  /* borders of controls need 3:1 against the page (WCAG 1.4.11); --line is only for decoration */
  --input-line: #7d8a83;
  --brand: #1b5c3a;
  --brand-hover: #144a2e;
  --brand-ink: #ffffff;
  --brand-soft: #e2efe6;
  --hero-a: #153f2a;
  --hero-b: #2c7a50;
  --hero-ink: #f4faf6;
  --warn-bg: #fff3d1;
  --warn-ink: #5b4200;
  --warn-line: #e6c970;
  --danger: #a32626;
  --danger-bg: #fbe5e3;
  --ok: #17703f;
  --ok-bg: #dff3e6;
  --focus: #1a6fd1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 28, 0.08), 0 6px 20px rgba(20, 40, 28, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1511;
    --surface: #161f19;
    --surface-2: #1d2922;
    --ink: #e9f0eb;
    --muted: #9fb1a6;
    --line: #2b392f;
    --input-line: #6f8277;
    --brand: #5cbd88;
    --brand-hover: #7ad0a0;
    --brand-ink: #07130b;
    --brand-soft: #1a2b21;
    --hero-a: #0f2a1c;
    --hero-b: #1d5a3a;
    --warn-bg: #3a2f10;
    --warn-ink: #f5dd9a;
    --warn-line: #6d5a1f;
    --danger: #ff8b8b;
    --danger-bg: #3a1a1a;
    --ok: #6fd69b;
    --ok-bg: #173323;
    --focus: #6cb0ff;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}
img, svg, canvas { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

/* banners */
.banner { padding: 8px 0; font-size: 0.9rem; background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); }
.banner .wrap { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.placeholder { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); padding: 0 6px; border-radius: 4px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 9px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { min-height: 34px; padding: 4px 10px; font-size: 0.9rem; }
.btn.light { background: #fff; color: #153f2a; border-color: #fff; }
.btn.light:hover { background: #e9f3ec; color: #153f2a; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* hero */
.hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); padding: 56px 0 48px; }
.hero h1 { max-width: 18ch; }
.hero .lead { color: rgba(244, 250, 246, 0.88); max-width: 60ch; }
.hero ul { padding-left: 1.1em; margin: 0 0 1.5em; max-width: 60ch; }
.hero li { margin-bottom: 0.35em; }
.hero .pill { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* Hero flyover loop (showcase holes, D-066). The video sits behind a dark gradient so the text keeps its contrast. */
.hero.has-video { position: relative; overflow: hidden; background: #10261a; min-height: 640px; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: #10261a url("/video/hero-poster.jpg") center / cover no-repeat; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero.has-video::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 22, 14, 0.62) 0%, rgba(8, 22, 14, 0.38) 45%, rgba(8, 22, 14, 0.05) 100%); }
.hero.has-video > .wrap { position: relative; z-index: 2; }
.hero.has-video h1, .hero.has-video .lead, .hero.has-video li, .hero.has-video .works-with { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.55); }
.hero-pause { position: absolute; right: 16px; bottom: 16px; z-index: 3; font: inherit; font-size: 0.8rem; color: #fff; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 6px 12px; }
.hero-pause:hover { background: rgba(0, 0, 0, 0.65); }
.btn-big { font-size: 1.08rem; padding: 14px 22px; }
/* Free hole-1 sample: badge in the hero and a strip right under it (owner 2026-11-11: push the free sample near the top). */
.free-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #153f2a; font-weight: 700; font-size: 0.95rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); text-shadow: none; }
.free-badge span { background: #e0a526; color: #1d1600; border-radius: 999px; padding: 3px 10px; font-size: 0.8rem; letter-spacing: 0.06em; }
.free-strip { background: var(--brand-soft); border-bottom: 1px solid var(--line); padding: 32px 0; }
.free-strip .wrap { display: grid; gap: 18px; justify-items: start; }
.free-head h2 { margin: 0 0 6px; }
.free-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.free-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.free-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.free-steps span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .free-steps { grid-template-columns: 1fr; } .free-badge { font-size: 0.85rem; } }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } .hero-pause { display: none; } }
@media (max-width: 640px) {
  .hero.has-video { min-height: 0; }
  .hero.has-video::after { background: linear-gradient(180deg, rgba(8, 22, 14, 0.30) 0%, rgba(8, 22, 14, 0.42) 55%, rgba(8, 22, 14, 0.60) 100%); }
}

/* sections and cards */
section.block { padding: 48px 0; }
main.block { padding-top: 36px; padding-bottom: 56px; }
section.block.alt { background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card.plain { box-shadow: none; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 8px;
}
.price { font-size: 2rem; font-weight: 700; font-family: var(--font-display); }
.price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); font-family: var(--font); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* status pills and progress */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.pill.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--danger); }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: var(--brand); width: 0; transition: width 0.4s; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.timeline li { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; font-size: 0.9rem; color: var(--muted); }
.timeline li.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.timeline li.now { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 700; }

/* forms */
form .field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 2px 0 6px; }
input[type="text"], input[type="email"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { width: 100%; padding: 8px 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 16px; }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.alert.bad { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--surface); cursor: pointer; }
.choice input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.choice span.t { font-weight: 600; display: block; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.statement { background: var(--surface-2); border-left: 4px solid var(--brand); padding: 12px 14px; border-radius: 6px; font-size: 0.95rem; white-space: pre-line; }

/* map */
.mapbox { position: relative; height: 440px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #cfd8cf; touch-action: none; user-select: none; }
.mapbox:focus-visible { outline: 3px solid var(--focus); }
.mapbox .tiles, .mapbox svg.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .tiles .layer { position: absolute; inset: 0; }
.mapbox .tiles img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.mapbox svg.overlay { pointer-events: none; }
.mapbox .ctl { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapbox .ctl button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.mapbox .attrib { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.85); color: #222; font-size: 11px; padding: 2px 6px; }
.mapbox .hintbar { position: absolute; left: 10px; bottom: 26px; background: rgba(15, 25, 19, 0.82); color: #fff; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px; max-width: calc(100% - 80px); }
.map-poly { fill: rgba(255, 214, 10, 0.22); stroke: #ffd60a; stroke-width: 2.5; stroke-linejoin: round; }
.map-line { fill: none; stroke: #ffd60a; stroke-width: 2.5; stroke-dasharray: 6 4; }
.map-vertex { fill: #fff; stroke: #b88700; stroke-width: 2; }
.map-vertex.first { fill: #ffd60a; }
.map-pin-body { fill: #d62d20; stroke: #fff; stroke-width: 2; }
.map-pin-dot { fill: #fff; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.toolbar input[type="text"], .toolbar select { width: auto; flex: 1 1 180px; min-width: 0; max-width: 320px; }
.toolbar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.toolbar .seg button { border: 0; background: var(--surface); color: var(--ink); padding: 8px 14px; min-height: 40px; cursor: pointer; font: inherit; }
.toolbar .seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }

/* viewer */
.viewer { position: relative; aspect-ratio: 4 / 3; max-height: 520px; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #b8d4e8; }
.viewer canvas { display: block; width: 100%; height: 100%; }
.viewer .vlabel { position: absolute; left: 10px; top: 10px; background: rgba(15, 25, 19, 0.82); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; }
.viewer .vhint { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(15, 25, 19, 0.7); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 0.78rem; }

/* tables (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-family: var(--font-display); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 0.875rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.6em; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }

.draft-banner { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-weight: 600; margin-bottom: 20px; }
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.legal li { margin-bottom: 0.4em; }
.hidden { display: none !important; }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 28px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 32px; }
  .mapbox { height: 340px; }
  section.block { padding: 32px 0; }
  dl.facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.works-with { font-size: 0.9rem; opacity: 0.8; margin-top: 0.25rem; }

/* --- customer-experience review 001 --- */
/* CX1-022: the focus ring on the green hero is white; the blue ring is too faint there */
.hero :focus-visible { outline-color: #fff; }
.hero .btn.light:focus-visible { outline-color: #fff; outline-offset: 3px; box-shadow: 0 0 0 2px #153f2a; }
/* CX1-026: small targets in the footer, a one-row scrollable navigation on phones */
.site-footer nav a, .site-footer details summary { display: inline-block; padding: 8px 2px; }
.legal a, .field .hint a { padding: 2px 0; }
.site-footer details.credits { margin-bottom: 8px; }
.site-footer details.credits summary { cursor: pointer; }
.skip-map { display: inline-block; margin-bottom: 6px; }
/* D-090 request page: other lookup matches, the optional extras */
#matches .btn { white-space: normal; text-align: left; height: auto; }
.find-row { margin: 4px 0 20px; }
/* D-092: the club-name typeahead (combobox pattern; the list sits under the field and scrolls on small screens) */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px 0; list-style: none; max-height: min(60vh, 22rem); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--input-line); border-radius: 8px; box-shadow: var(--shadow); }
.combo-list li { padding: 10px 12px; min-height: 44px; cursor: pointer; line-height: 1.3; }
.combo-list li .where { display: block; color: var(--muted); font-size: 0.875rem; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--brand-soft); }
.combo-list li[aria-selected="true"] { outline: 2px solid var(--focus); outline-offset: -2px; }
details#extras > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
details#extras[open] > summary { margin-bottom: 8px; }
.field input[type="color"] { width: 64px; min-height: 44px; padding: 2px; border: 1px solid var(--input-line); border-radius: 8px; background: var(--surface); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
.card.plain ul.files { padding-left: 1.1em; }
ul.files li { margin-bottom: 0.7em; }
/* the change form */
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.inline input[type="number"] { width: 7.5em; }
.inline select { width: auto; flex: 1 1 12em; }
fieldset.offset, fieldset.place { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 4px; margin: 0 0 18px; min-width: 0; }
fieldset.offset legend, fieldset.place legend { font-weight: 600; padding: 0 6px; }
fieldset.place fieldset.offset { border: 0; padding: 0; margin: 0; }
#pending li { margin-bottom: 8px; }
#pending .btn { margin-left: 6px; }
/* plain summary tables on the legal pages */
.legal table.summary { width: 100%; font-size: 0.92rem; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.legal table.summary th[scope="row"] { background: transparent; white-space: normal; font-weight: 600; }
.legal table.summary td, .legal table.summary th { min-width: 9em; }
@media (max-width: 640px) {
  .banner { font-size: 0.82rem; padding: 6px 0; }
  .site-header .wrap { gap: 4px; min-height: 0; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; padding: 10px 10px; }
  .hero h1 { font-size: 1.75rem; }
}
table.compare td:last-child { font-weight: 600; color: var(--brand); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-item figcaption { padding: 8px 12px; font-size: 0.9rem; color: var(--muted); }
.price-main { max-width: 640px; }
.price-sub { margin-top: -6px; color: var(--muted); font-weight: 600; }
.compare-note { max-width: 640px; margin-top: 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); }
.compare-note h3 { margin-top: 0; }
table.compare tr.row-price td { background: var(--brand-soft); font-weight: 600; }
.other-sizes table.compact { width: auto; min-width: 280px; font-size: 0.9rem; }
.other-sizes td { padding: 4px 16px 4px 0; border-bottom: 0; color: var(--muted); }
.small-h { font-size: 1rem; }

/* layout editor (layout.html) */
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.lay-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lay-head h1 { margin-bottom: 4px; }
.lay-head p { max-width: 70ch; }
.lay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lay-map.mapbox { height: min(76vh, 820px); }
.lay-toolbar { margin-top: 8px; min-height: 40px; }
.lay-side { display: flex; flex-direction: column; gap: 12px; max-height: calc(76vh + 50px); overflow-y: auto; padding-right: 4px; }
.lay-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.lay-step h2 { font-size: 1.05rem; margin: 0 0 6px; }
.lay-holes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.lay-holes li { display: flex; align-items: center; gap: 4px; }
.lay-holes.lay-holes-3 { grid-template-columns: 1fr; }
.lay-sub { font-size: 0.92rem; margin: 12px 0 2px; }
.lay-holeno { display: inline-block; min-width: 1.6em; font-weight: 700; text-align: right; margin-right: 2px; }
.lay-chip { border: 1px solid var(--input-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 0.82rem; cursor: pointer; min-height: 28px; }
.lay-chip.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.lay-chip.done.auto { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--input-line); }
.lay-chip.on { outline: 3px solid var(--focus); outline-offset: 1px; }
.lay-chip[disabled] { opacity: 0.55; cursor: not-allowed; }
.lay-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 4px; }
.lay-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.lay-swatch { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 8px; font-size: 0.85rem; cursor: pointer; text-align: left; min-height: 36px; }
.lay-swatch:hover { background: var(--brand-soft); }
.lay-swatch[disabled] { opacity: 0.55; cursor: not-allowed; }
.lay-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.35); flex: none; }
.lay-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.lay-fields label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 130px; min-width: 0; }
.lay-fields select { width: 100%; min-height: 40px; }
.lay-wide { display: block; width: 100%; min-height: 40px; white-space: normal; }
.lay-width { width: 5em; }
.lay-dot.k-green { background: #3ddc84; }
.lay-dot.k-tee { background: #aaf06e; }
.lay-dot.k-fairway { background: #8fd14f; }
.lay-dot.k-bunker { background: #f6e6aa; }
.lay-dot.k-water { background: #4fb0ff; }
.lay-dot.k-creek { background: #4fb0ff; }
.lay-dot.k-cartpath { background: #e6e6e6; }
.lay-dot.k-waste { background: #d6b47a; }
.lay-dot.k-hardscape { background: #bdbdbd; }
.lay-dot.k-oob { background: #ffffff; }
.lay-dot.k-oob { border-style: dashed; }
.lay-dot.k-building { background: #ff6b6b; }
@media (max-width: 900px) {
  .lay-grid { grid-template-columns: 1fr; }
  .lay-map.mapbox { height: 62vh; }
  .lay-side { max-height: none; overflow: visible; }
}
.lay-review { color: #b35400; font-weight: 600; }
.lay-uncertain { color: #8a008a; }
