/* Golfscore – gedeelde stijl voor golf.kapital.nl (Clubhouse-thema, gelijk aan de app) */
:root {
  --accent: #1E4D36; --accent-ink: #1E4D36; --on-accent: #FBF8F1;
  --bg: #F4EEE2; --card: #FBF8F1; --sand: #E9DFCB; --border: #E2D7C1; --line: #E9E1D0;
  --text: #1F2A22; --muted: #5C5A4E; --ok: #2F7A4E; --warn: #9A6A12;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #2E6B4C; --accent-ink: #9CCDB0; --on-accent: #F4EEE2;
    --bg: #171A15; --card: #20241D; --sand: #2A2E25; --border: #353A2F; --line: #2C3127;
    --text: #EFE9DC; --muted: #B3AC98; --ok: #7FC79B; --warn: #E2B45C;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--accent-ink); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 8px 0 12px; }
h2 { font-size: 1.6rem; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
p { margin: 0 0 10px; }
.overline { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); } .small { font-size: .9rem; }

/* navigatie */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.nav .brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--accent-ink); text-decoration: none; margin-right: auto; }
.nav a:not(.brand):not(.cta) { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--accent); color: var(--on-accent) !important; text-decoration: none; font-weight: 600; }
.nav .cta { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-left: 12px; }
.dot { width: 9px; height: 9px; border-radius: 5px; background: var(--muted); }
.dot.ok { background: #3C8D5A; } .dot.bad { background: #B4532A; }

section { margin: 48px 0; scroll-margin-top: 70px; }
.hero { margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.sand { background: var(--sand); border-radius: 22px; padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
ul, ol { padding-left: 1.2em; } li { margin: 6px 0; }

/* schermafbeeldingen: op brede schermen vier kolommen, op de telefoon vegen (zonder schuifbalk) */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 6px 0 4px; }
.shots figure { margin: 0; min-width: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.08); display: block; }
.shots figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px 4px; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 62%; scroll-snap-align: start; }
}

/* stappen */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px 14px 58px; position: relative; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; display: grid; place-items: center; font-size: .9rem; }
.say { font-family: var(--serif); font-style: italic; color: var(--accent-ink); }

/* installeren: tabs */
.tabs { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.tabs button { font: inherit; border: 0; background: none; color: var(--text); padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.key { display: inline-block; border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 0 7px; font-size: .9em; white-space: nowrap; }

/* banen */
.summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: .9rem; text-decoration: none; color: var(--text); }
.pill b { color: var(--accent-ink); }
.province { margin: 36px 0; scroll-margin-top: 70px; }
.province h2 { display: flex; align-items: baseline; gap: 10px; }
.province h2 span { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.course { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.course h3 { margin: 0; }
.course .meta { font-size: .9rem; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge { font-size: .75rem; padding: 2px 9px; border-radius: 10px; background: var(--sand); color: var(--text); }
.badge.ok { background: var(--accent); color: var(--on-accent); }
.badge.warn { border: 1px solid var(--warn); background: none; color: var(--warn); }
.course a { font-size: .9rem; margin-top: auto; }
.legend { font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }

footer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 40px; }

/* ---------- Gegenereerde pagina's (tools/build-site.mjs) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.stats div { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--accent-ink); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }

.toolbar { position: sticky; top: 59px; z-index: 4; background: var(--bg); padding: 10px 0; margin: 0 -2px; display: grid; gap: 10px; border-bottom: 1px solid var(--border); }
.search input { width: 100%; font: inherit; min-height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chips .pill { flex: 0 0 auto; }

.province h2 a { color: inherit; text-decoration: none; }
.province h2 a:hover { text-decoration: underline; }
.group-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.group-title span { letter-spacing: 0; font-weight: 500; }
.course h3 a { color: inherit; text-decoration: none; }
.course h3 a::after { content: ''; position: absolute; inset: 0; }
.course { position: relative; transition: border-color .15s; }
.course:hover { border-color: var(--accent); }
.course .rating { font-size: .9rem; }
.course .rating b { color: var(--accent-ink); }
.course[hidden], .province[hidden], .group-title[hidden] { display: none; }

.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.facts dl div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.hero .badges { margin-top: 10px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.table-scroll th, .table-scroll td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.table-scroll th:first-child, .table-scroll td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
.table-scroll thead th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.scorecard + .scorecard { border-top: 6px solid var(--bg); }
.ratings td:not(:first-child) { text-align: right; }

.qa { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; margin: 0 0 10px; }
.qa summary { font-weight: 600; cursor: pointer; color: var(--accent-ink); }
.qa p { margin: 8px 0 0; }
.near { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.near li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; }
.sand h2 { margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 48px; }
.footer-in { max-width: 860px; margin: 0 auto; padding: 20px 16px 32px; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav .hide-sm a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav .hide-sm a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* Baan die gaat sluiten */
.alert { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: 6px; font-size: .95rem; }

/* buggystand: één brede schermafbeelding (liggend) */
.wide-shot { margin: 16px 0; max-width: 720px; }
.wide-shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li { margin: 0; padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
