/* ============================================================
   Golf Oudenaarde — vanilla CSS, no Tailwind.
   Augusta-style palette: deep green + cream + champagne gold.
   ============================================================ */

:root {
  --rgco-50: #f3f7f1;
  --rgco-100: #e3ece0;
  --rgco-200: #c5d8c0;
  --rgco-300: #9ebd95;
  --rgco-500: #447446;
  --rgco-600: #235731;
  --rgco-700: #1a3d28;
  --rgco-800: #142e1f;

  --cream-50: #fdfbf6;
  --cream-100: #f8f5ec;
  --cream-200: #f0ead8;
  --cream-300: #e4dcc3;

  --gold-300: #e6d0a0;
  --gold-500: #c1a25c;
  --gold-700: #8a7440;

  --border: #ece6d4;
  --border-2: #d9d4c2;

  --text: #2a2826;
  --text-muted: #5a5448;
  --text-faint: #7a6a3a;

  --red: #b91c1c;
  --red-light: #e8867b;

  --score-eagle:  #c4a8d6;
  --score-birdie: #b8d4ec;
  --score-par:    #bbdaa6;
  --score-bogey:  #e8d6a8;
  --score-double: #e8a572;
  --score-loss:   #e8867b;

  --tee-white:  #ffffff;
  --tee-yellow: #f5d916;
  --tee-blue:   #1e6dd0;
  --tee-red:    #cc1f1f;
  --tee-orange: #f08020;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  background: var(--cream-100);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overscroll-behavior-y: contain;
}
#app { min-height: 100%; padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

/* Default SVG sizing so no icon blows up to fill its container. */
svg { vertical-align: middle; flex-shrink: 0; }
.btn svg { width: 20px; height: 20px; }
.welcome-logo svg { width: 28px; height: 28px; }
.empty-icon svg { width: 48px; height: 48px; }

input, select, textarea, button { font-size: 16px; font-family: inherit; color: inherit; }

.serif { font-family: Georgia, "Times New Roman", serif; }

/* ============== Layout helpers ============== */
.container { max-width: 28rem; margin: 0 auto; padding: 1.25rem 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.flex-1 { flex: 1; min-width: 0; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.grid-9 { grid-template-columns: repeat(9, 1fr); gap: 0.25rem; }
.mt-1 { margin-top: 0.35rem; } .mt-2 { margin-top: 0.6rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.35rem; } .mb-2 { margin-bottom: 0.75rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.75rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.space-y > * + * { margin-top: 0.6rem; }
.space-y-lg > * + * { margin-top: 1rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

/* ============== Typography ============== */
.page-title { font-family: Georgia, serif; font-weight: 600; font-size: 1.55rem; color: var(--rgco-700); line-height: 1.2; margin: 0; }
.section-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-700); margin-bottom: 0.5rem; }
.label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.3rem; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--text-faint); font-size: 0.8rem; }
.tiny { font-size: 0.72rem; color: var(--text-faint); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.6rem; padding: 0.8rem 1.1rem; font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.01em; border: 0; cursor: pointer;
  transition: transform 0.05s, background-color 0.15s;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: var(--cream-100);
  border: 1px solid rgba(193,162,92,0.5);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),     /* top-highlight */
    0 0 16px rgba(193,162,92,0.10),           /* gouden halo */
    0 4px 12px rgba(20,46,31,0.18);           /* dieptesch aduw */
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--rgco-600) 0%, var(--rgco-700) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 20px rgba(193,162,92,0.18),
    0 6px 16px rgba(20,46,31,0.24);
}
.btn-secondary {
  background: #fff;
  color: var(--rgco-700);
  border: 1px solid var(--border-2);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 3px rgba(20,46,31,0.06);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.btn-secondary:hover:not(:disabled) {
  background: var(--cream-100);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 3px 8px rgba(20,46,31,0.10);
}
.btn-ghost { background: transparent; color: var(--rgco-700); }
.btn-ghost:hover:not(:disabled) { background: rgba(26,61,40,0.06); }
.btn-danger { background: var(--red); color: #fff; }
.btn-small { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-w-full { width: 100%; }

/* ============== Cards ============== */
.card { background: #fff; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(26,61,40,0.05); padding: 1rem; }
.card-accent { border-top: 3px solid var(--gold-500); }
.card-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }

/* ============== Inputs ============== */
.input {
  width: 100%; border-radius: 0.5rem; border: 1px solid var(--border-2);
  padding: 0.75rem 0.85rem; background: #fffdf7; color: var(--text); outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--rgco-700); box-shadow: 0 0 0 3px rgba(26,61,40,0.12); }
.input:disabled { background: #f3f0e6; color: #7a7367; }

/* ============== Pills (tab switcher) ============== */
.pill-group { display: flex; background: var(--cream-200); border-radius: 0.6rem; padding: 0.25rem; }
.pill-group-wide button { flex: 1; min-width: 0; font-size: 0.78rem; padding: 0.4rem 0.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-group button[disabled] { opacity: 0.35; cursor: not-allowed; }
.nr-teams .nr-team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  margin-top: 0.2rem;
}
.nr-team {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem 0.65rem;
}
.nr-team-title {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 0.35rem;
}
.nr-team-player {
  font-size: 0.9rem; color: var(--rgco-700); font-weight: 500;
  padding: 0.15rem 0;
  border-bottom: 1px dashed var(--border);
}
.nr-team-player:last-child { border-bottom: 0; }

/* ============== "Nieuwe ronde starten" CTA op home — nav-stijl ============== */
.btn-new-round {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  padding: 1.05rem 1rem;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: #fff;
  border: 1px solid rgba(193,162,92,0.5);
  border-radius: 1.25rem;
  text-decoration: none;
  font-size: 1.02rem; font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),     /* top-highlight */
    0 0 22px rgba(193,162,92,0.12),           /* gouden halo */
    0 4px 14px rgba(20,46,31,0.22);           /* dieptesch aduw */
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.btn-new-round:hover {
  background: linear-gradient(180deg, var(--rgco-600) 0%, var(--rgco-700) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 26px rgba(193,162,92,0.18),
    0 6px 18px rgba(20,46,31,0.28);
}
.btn-new-round:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 16px rgba(193,162,92,0.10),
    0 2px 6px rgba(20,46,31,0.18);
}
.btn-new-round-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-500);
}
.btn-new-round-icon svg { width: 22px; height: 22px; display: block; }
.btn-new-round-label { color: #fff; }

/* ============== Completed round cards op home ============== */
.round-card-completed {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
}
.round-card-thumb {
  width: 4rem; height: 4rem;
  border-radius: 0.7rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rgco-700);
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 10px rgba(193,162,92,0.18),
    0 2px 6px rgba(20,46,31,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500);
}
.round-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.round-card-thumb.no-img img { display: none; }
.round-card-thumb.no-img svg { width: 26px; height: 26px; }
.round-card-body { flex: 1; min-width: 0; }
.round-card-score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
  min-width: 3.4rem;
  padding: 0.4rem 0.55rem 0.45rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 12px rgba(193,162,92,0.18),
    0 2px 6px rgba(20,46,31,0.18);
  line-height: 1;
}
.round-card-score-num {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--gold-300);
  letter-spacing: 0.01em;
}
.round-card-score-lbl {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  opacity: 0.85;
}
.round-card-nine-badge {
  margin-top: 0.3rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rgco-800);
  background: var(--gold-300);
  border-radius: 0.25rem;
  line-height: 1.3;
}
/* Onofficiële ronde: scorebox iets lichter en neutraler dan officiële rondes,
   maar dezelfde grootte/hoogte zodat de kaart-rij visueel rustig blijft.
   De "officieus"-aanduiding zelf verhuist naar de meta-regel links. */
.round-card-score.is-casual {
  background: linear-gradient(180deg, #9ea39a 0%, #767a72 100%);
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 1px 3px rgba(0,0,0,0.08);
}
.round-card-score.is-casual .round-card-score-num { color: #f6f4e8; }
.round-card-score.is-casual .round-card-score-lbl { color: #e0dccb; }
/* Inline label in de meta-regel — warm muted bruin voor formats die niet
   meetellen in stats (officieus, matchplay, scramble). Niet alarmerend rood. */
.round-card-casual-text {
  color: #a86b3a;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
/* Format-info voor formats die wel meetellen (amerikaantje, fourball) — gewoon
   muted informatie, geen "downgrade". */
.round-card-format-info {
  color: var(--text-muted);
  font-style: italic;
}
/* Banner bovenaan de resultaten-pagina voor onofficiële rondes. */
.casual-banner {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: var(--cream-100);
  border: 1px solid var(--border-2, var(--border));
  border-left: 3px solid var(--gold-500);
  border-radius: 0.55rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.casual-banner-icon {
  display: inline-flex; color: var(--gold-700);
  flex-shrink: 0;
}
.casual-banner-icon svg { width: 16px; height: 16px; }
.round-card-arrow {
  flex-shrink: 0;
  color: var(--gold-500);
  font-size: 1.25rem;
  margin-left: 0.1rem;
}

/* ============== Friends list ============== */
.friend-card {
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(26,61,40,0.05);
  padding: 0.75rem 0.85rem;
}
.friend-card-info { flex: 1; min-width: 0; }
.friend-card-name {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rgco-700);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Subtiele info-regel onder de naam: "X rondes samen".
   Zelfde stijl als de meta-regel onder de baannaam op de homepage. */
.friend-card-meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0;
  line-height: 1.2;
}
.friend-hcp {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
  min-width: 3rem;
  padding: 0.35rem 0.55rem 0.4rem;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 10px rgba(193,162,92,0.16),
    0 2px 5px rgba(20,46,31,0.16);
  line-height: 1;
}
.friend-hcp-num {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-300);
}
.friend-hcp-lbl {
  margin-top: 0.12rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  opacity: 0.85;
}
.friend-card-actions {
  display: inline-flex; align-items: center; gap: 0.3rem;
  flex-shrink: 0;
}
.friend-pill {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.friend-pill:hover { transform: translateY(-1px); }
.friend-pill:active { transform: translateY(0) scale(0.97); }
.friend-pill-remove {
  background: rgba(185,28,28,0.08);
  color: var(--red);
  border-color: rgba(185,28,28,0.35);
}
.friend-pill-remove:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.friend-pill-cancel {
  background: var(--cream-100);
  color: var(--text-muted);
  border-color: var(--border-2);
}
.friend-pill-cancel:hover {
  background: var(--cream-200);
  color: var(--rgco-700);
}
.friend-pill-accept, .friend-pill-reject {
  width: 2.1rem; height: 2.1rem;
  padding: 0; font-size: 0.95rem; font-weight: 700;
  border-radius: 50%;
}
.friend-pill-accept {
  background: rgba(68,116,70,0.12);
  color: var(--rgco-600);
  border-color: rgba(68,116,70,0.4);
}
.friend-pill-accept:hover {
  background: var(--rgco-600); color: #fff; border-color: var(--rgco-600);
}
.friend-pill-reject {
  background: rgba(185,28,28,0.08);
  color: var(--red);
  border-color: rgba(185,28,28,0.35);
}
.friend-pill-reject:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* ============== Community members list ============== */
.member-list {
  display: flex; flex-direction: column;
}
.member-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: 0; }
.member-avatar {
  width: 2.4rem; height: 2.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rgco-50);
  border: 1px solid rgba(193,162,92,0.3);
  color: var(--rgco-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.member-info { flex: 1; min-width: 0; }
.member-name {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--rgco-700);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.member-admin-badge {
  display: inline-flex; align-items: center; gap: 0.18rem;
  margin-left: 0.4rem;
  padding: 0.08rem 0.42rem 0.08rem 0.32rem;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.3rem;
  vertical-align: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(168,147,82,0.25);
}
.member-admin-badge-ico { display: inline-flex; }
.member-admin-badge-ico svg { width: 10px; height: 10px; }
/* Beheerd-door regel: iedereen ziet wie admin is van de community */
.community-managed-by {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem 0.18rem 0.45rem;
  background: var(--cream-100);
  border: 1px solid var(--gold-200, rgba(193,162,92,0.25));
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--gold-700);
}
.community-managed-by-ico { display: inline-flex; color: var(--gold-700); }
.community-managed-by-ico svg { width: 14px; height: 14px; }
/* Subtiele highlight voor de admin-rijen bovenaan de leden-lijst */
.member-row-admin {
  background: linear-gradient(180deg, rgba(193,162,92,0.06) 0%, rgba(193,162,92,0.02) 100%);
}

/* ============== Home header (naam · handicap + info button) ============== */
.home-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.home-head-text { min-width: 0; flex: 1; }
.home-head-name {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--rgco-700);
  margin-top: 0.15rem;
  line-height: 1.2;
}
.home-head-sep {
  color: var(--gold-500);
  margin: 0 0.15rem;
  font-weight: 400;
}
.home-head-hcp {
  font-weight: 700;
  color: var(--rgco-700);
}
.home-info-wrap { position: relative; flex-shrink: 0; }
.home-info-wrap .settings-menu {
  /* Hetzelfde uitziend als de profile-dropdown */
  right: 0; top: calc(100% + 0.5rem);
}
/* Settings/info-cirkels: gouden rand + wit icoon — consistent overal. */
.settings-item-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
  text-decoration: none;
}
.settings-item-soon:hover { background: var(--cream-100); }
.settings-item .soon-tag {
  margin-left: 0.5rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cream-200);
  color: var(--gold-700);
  padding: 0.05rem 0.4rem;
  border-radius: 0.3rem;
  vertical-align: 0.05em;
}
/* Maak de info-button een link-stijl (zoals settings-item ook al is) */
a.settings-item { text-decoration: none; }

/* ============== Spelformules pagina ============== */
/* Info-pagina header: titel links, info-dropdown rechts */
.info-page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.info-page-head-text { min-width: 0; flex: 1; }

/* Terug-knop onderaan info-pagina's (Spelformules, Over de app, Statistieken).
   Donkergroen premium pill, gecentreerd onder de inhoud. */
.info-page-back-wrap {
  display: flex; justify-content: center;
  margin: 1.75rem 0 0.75rem;
}
.info-page-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 9rem; padding: 0.7rem 1.4rem;
  font-family: Georgia, serif; font-weight: 600; font-size: 0.92rem;
  color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--rgco-600) 0%, var(--rgco-800) 100%);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 16px rgba(193,162,92,0.16),
    0 3px 8px rgba(20,46,31,0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-page-back-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 20px rgba(193,162,92,0.24),
    0 5px 12px rgba(20,46,31,0.26);
}
.info-page-back-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 12px rgba(193,162,92,0.12),
    0 1px 3px rgba(20,46,31,0.18);
}

.fmt-list { display: flex; flex-direction: column; gap: 1rem; }
.fmt-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 1px 4px rgba(20,46,31,0.05);
}
.fmt-card-head {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.fmt-card-icon {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.fmt-card-icon svg { width: 22px; height: 22px; }
.fmt-icon-stableford { background: var(--rgco-700); }
.fmt-icon-stableford svg { color: var(--gold-500); }
.fmt-icon-amer       { background: var(--gold-700); color: #fff; }
.fmt-icon-four       { background: #6b3a8a; color: #fff; }
.fmt-icon-match      { background: var(--rgco-500, #2f6a4a); color: #fff; }
.fmt-icon-scram      { background: #8a4a32; color: #fff; }
/* Inline "voorbeeld bekijken" link binnen een format-card. */
.fmt-example-link {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding: 0.65rem 0.9rem;
  background: var(--cream-100);
  border: 1px solid var(--gold-500);
  border-radius: 0.5rem;
  color: var(--rgco-700);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fmt-example-link:hover {
  transform: translateY(-1px);
  background: rgba(193,162,92,0.12);
  box-shadow: 0 2px 8px rgba(193,162,92,0.18);
}
.fmt-example-arr { color: var(--gold-700); font-size: 1.2rem; line-height: 1; }

/* ============== Amerikaantje voorbeeld pagina ============== */
.amer-ex-intro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(26,61,40,0.05);
  margin-bottom: 1.25rem;
}
.amer-ex-intro h3 {
  margin: 0.5rem 0 0.25rem;
  font-family: Georgia, serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--rgco-700);
}
.amer-ex-intro h3:first-child { margin-top: 0; }
.amer-ex-intro p {
  margin: 0; font-size: 0.88rem;
  color: var(--text-muted); line-height: 1.55;
}
.amer-ex-section-title {
  margin: 0.4rem 0 0.7rem;
  font-family: Georgia, serif;
  font-size: 1rem; font-weight: 700;
  color: var(--rgco-700);
  letter-spacing: 0.02em;
}
.amer-ex-holes {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.amer-ex-hole {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 3px rgba(26,61,40,0.04);
}
.amer-ex-hole-head {
  display: flex; align-items: baseline; gap: 0.7rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--cream-100);
  margin-bottom: 0.45rem;
}
.amer-ex-hole-num {
  font-family: Georgia, serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--rgco-700);
}
.amer-ex-hole-meta {
  font-size: 0.78rem; color: var(--text-muted);
}
.amer-ex-hole-pattern {
  margin-left: auto;
  font-size: 0.78rem; color: var(--gold-700);
}
.amer-ex-hole-pattern strong { color: var(--rgco-700); font-weight: 700; }
.amer-ex-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.84rem;
}
.amer-ex-table th {
  font-weight: 600; color: var(--text-muted);
  font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.3rem 0.35rem;
}
.amer-ex-table th.amer-ex-name { text-align: left; }
.amer-ex-table td {
  padding: 0.32rem 0.35rem;
  border-top: 1px solid var(--cream-100);
}
.amer-ex-table td.amer-ex-name {
  font-weight: 600; color: var(--rgco-700);
  text-align: left;
}
.amer-ex-table td.amer-ex-num { text-align: center; color: var(--rgco-700); }
.amer-ex-pts {
  font-family: Georgia, serif; font-weight: 700;
  color: var(--gold-700);
}
.amer-ex-row.is-best td.amer-ex-pts { color: var(--rgco-700); }
.amer-ex-strokes { display: inline-flex; gap: 0.18rem; }
.amer-ex-strokedot {
  display: inline-block; width: 0.4rem; height: 0.4rem;
  border-radius: 50%; background: var(--rgco-700);
}
.amer-ex-strokes-empty { color: var(--text-faint); }
.amer-ex-final {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.amer-ex-final thead th {
  background: var(--cream-100);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.55rem;
  text-align: center;
}
.amer-ex-final th.amer-ex-name { text-align: left; }
.amer-ex-final td {
  padding: 0.55rem;
  border-top: 1px solid var(--cream-100);
  text-align: center;
  color: var(--rgco-700);
  font-size: 0.92rem;
}
.amer-ex-final td.amer-ex-name { text-align: left; font-weight: 600; }
.amer-ex-final td.amer-ex-rank {
  font-family: Georgia, serif; font-weight: 700;
  color: var(--gold-700);
  width: 2rem;
}
.amer-ex-final tr.is-leader td { background: rgba(193,162,92,0.10); }
.amer-ex-final tr.is-leader td.amer-ex-rank,
.amer-ex-final tr.is-leader td.amer-ex-pts { color: var(--rgco-700); }
.amer-ex-note {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--cream-100);
  border-left: 3px solid var(--gold-500);
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  margin: 0 0 1rem;
}
.fmt-card-head h2 {
  margin: 0; font-family: Georgia, serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--rgco-700); line-height: 1.15;
}
.fmt-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 0.15rem;
}
.fmt-card-intro {
  margin: 0 0 0.85rem; font-size: 0.92rem;
  line-height: 1.55; color: var(--text);
}
.fmt-h {
  font-family: Georgia, serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--rgco-700);
  margin: 0.95rem 0 0.4rem;
  letter-spacing: 0.01em;
}
.fmt-p {
  margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text);
}
/* Stableford-puntenlijst */
.fmt-points-list, .fmt-amer-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.fmt-points-list li, .fmt-amer-points li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.88rem; color: var(--text);
}
.fmt-score-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 1.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.fmt-pts {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--cream-100);
  border: 1px solid var(--border);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--rgco-700);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
/* Tip-box onderaan */
.fmt-tip {
  margin-top: 1.25rem;
  background: var(--cream-100);
  border: 1px solid var(--gold-500);
  border-radius: 0.85rem;
  padding: 0.95rem 1rem 1rem;
  display: flex; gap: 0.85rem;
}
.fmt-tip-icon {
  font-size: 1.5rem; line-height: 1;
}
.fmt-tip-title {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--rgco-700);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.fmt-tip-text {
  margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text);
}

/* ============== About-pagina ============== */
.about-story {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(20,46,31,0.05);
  margin-bottom: 1.25rem;
  /* clearfix zodat de geflote afbeelding de kaart-hoogte mee bepaalt */
  overflow: hidden;
}
.about-story-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--rgco-700);
  margin: 0 0 0.7rem;
}
.about-portrait {
  float: right;
  width: 9rem; height: 9rem;
  margin: 0 0 0.6rem 1rem;
  border-radius: 0.7rem;
  object-fit: cover;
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 14px rgba(193,162,92,0.18),
    0 2px 8px rgba(20,46,31,0.12);
  display: block;
}
.about-story p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.about-story p strong {
  color: var(--rgco-700);
  font-weight: 700;
}
.about-story p:last-child { margin-bottom: 0; }
.about-signature {
  font-style: italic;
  color: var(--gold-700);
  font-size: 0.88rem !important;
  margin-top: 0.8rem !important;
  clear: both; /* signature komt onder de foto, niet ernaast */
}
@media (max-width: 540px) {
  .about-portrait {
    width: 7rem; height: 7rem;
    margin-left: 0.7rem;
    margin-bottom: 0.5rem;
  }
}

.about-features { margin-bottom: 1.25rem; }
.about-features-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rgco-700);
  margin: 0 0 0.75rem;
}
.about-feat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.about-feat {
  display: flex; gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  box-shadow: 0 1px 3px rgba(20,46,31,0.04);
}
.about-feat-icon {
  width: 2.6rem; height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--rgco-600) 0%, var(--rgco-800) 100%);
  color: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 10px rgba(193,162,92,0.14),
    0 2px 5px rgba(20,46,31,0.14);
}
.about-feat-icon svg { width: 22px; height: 22px; display: block; }
.about-feat-body { min-width: 0; }
.about-feat-body h3 {
  margin: 0 0 0.25rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--rgco-700);
}
.about-feat-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-feedback {
  display: flex; gap: 0.85rem;
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
  border: 1px solid var(--gold-500);
  border-radius: 0.95rem;
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 0 14px rgba(193,162,92,0.10),
    0 2px 6px rgba(20,46,31,0.08);
}
.about-feedback-icon {
  width: 2.6rem; height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-500);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 2px 5px rgba(20,46,31,0.14);
}
.about-feedback-icon svg { width: 22px; height: 22px; }
.about-feedback-body { flex: 1; min-width: 0; }
.about-feedback-body h3 {
  margin: 0 0 0.3rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rgco-700);
}
.about-feedback-body p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.about-feedback-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: #fff;
  border: 1px solid var(--gold-500);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 12px rgba(193,162,92,0.14),
    0 2px 6px rgba(20,46,31,0.18);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.about-feedback-btn svg { width: 16px; height: 16px; color: var(--gold-500); }
.about-feedback-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 18px rgba(193,162,92,0.22),
    0 4px 10px rgba(20,46,31,0.24);
}
.about-feedback-btn:active { transform: translateY(0) scale(0.98); }

/* ============== Offline / sync indicator (play-pagina) ============== */
.offline-indicator {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  text-align: center;
  max-width: max-content;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.offline-indicator[hidden] { display: none; }
.offline-indicator.state-offline {
  background: rgba(193, 84, 64, 0.12);
  color: #8a4a32;
  border: 1px solid rgba(193, 84, 64, 0.28);
}
.offline-indicator.state-syncing {
  background: rgba(193,162,92,0.14);
  color: var(--gold-700);
  border: 1px solid rgba(193,162,92,0.35);
}
.offline-indicator.state-synced {
  background: rgba(70, 132, 90, 0.14);
  color: var(--rgco-700);
  border: 1px solid rgba(70, 132, 90, 0.30);
}

/* ============== Statistieken-pagina ============== */
.stats-filters {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
.stats-filter-block { display: flex; flex-direction: column; gap: 0.4rem; }
.stats-filter-label {
  font-size: 0.62rem; font-weight: 600;
  color: var(--gold-700); letter-spacing: 0.12em; text-transform: uppercase;
}
.stats-pill-group {
  display: inline-flex; gap: 0.3rem;
  background: var(--cream-100); padding: 0.3rem;
  border: 1px solid var(--border); border-radius: 999px;
  width: max-content; max-width: 100%;
}
.stats-pill-group .pill-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.42rem 0.9rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.stats-pill-group .pill-btn:hover { color: var(--rgco-700); }
.stats-pill-group .pill-btn.active {
  background: linear-gradient(180deg, var(--rgco-600) 0%, var(--rgco-800) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 3px rgba(20,46,31,0.18);
}

.stats-tile-grid {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(26,61,40,0.05);
  display: flex; flex-direction: column; gap: 0.25rem;
  min-width: 0;
}
.stats-tile-label {
  font-size: 0.62rem; font-weight: 600;
  color: var(--gold-700); letter-spacing: 0.10em; text-transform: uppercase;
}
.stats-tile-value {
  font-family: Georgia, serif; font-weight: 600;
  font-size: 1.65rem; color: var(--rgco-700); line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stats-tile-unit {
  font-family: Georgia, serif;
  font-size: 0.7rem; font-weight: 500;
  color: var(--gold-700); margin-left: 0.2rem;
  letter-spacing: 0.04em; text-transform: lowercase;
}
.stats-tile-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-700);
  background: var(--cream-100);
  border: 1px solid rgba(193,162,92,0.32);
  border-radius: 0.3rem;
  vertical-align: 0.2em;
}
.stats-normalize-hint {
  margin: -0.4rem 0 1rem;
  font-size: 0.72rem; color: var(--text-muted);
  font-style: italic;
}
.stats-tile-sub {
  font-size: 0.72rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stats-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(26,61,40,0.05);
}
.stats-card-head {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-bottom: 0.6rem;
}
.stats-card-head h3 {
  margin: 0; font-family: Georgia, serif; font-weight: 600;
  font-size: 1.05rem; color: var(--rgco-700);
}
.stats-card-sub {
  font-size: 0.72rem; color: var(--text-muted);
}

.stats-trend-wrap { width: 100%; }
.stats-trend-svg {
  width: 100%; height: auto; display: block;
}
.stats-trend-line {
  fill: none; stroke: var(--rgco-700); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.stats-trend-dot {
  fill: var(--gold-500); stroke: var(--rgco-700); stroke-width: 1.2;
}
/* Lineaire regressie-lijn over de scores — dashed gouden lijn die duidelijk
   onderscheidbaar is van de score-curve. */
.stats-trend-regression {
  fill: none;
  stroke: var(--gold-700);
  stroke-width: 1.4;
  stroke-dasharray: 5 3;
  stroke-linecap: round;
  opacity: 0.75;
}
/* Score-labels boven elke dot — klein en serif voor consistentie. */
.stats-trend-label {
  fill: var(--rgco-700);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}
/* Y- en X-as labels — sans-serif, muted, kleiner. */
.stats-trend-axis {
  fill: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 500;
}
/* Subtiele horizontale grid lines op min/max niveau. */
.stats-trend-grid {
  stroke: var(--border);
  stroke-width: 0.6;
  stroke-dasharray: 2 3;
  opacity: 0.7;
}
.stats-trend-empty .stats-trend-hint {
  font-size: 0.85rem; color: var(--text-muted);
  background: var(--cream-100);
  border: 1px dashed var(--border-2, var(--border));
  border-radius: 0.6rem;
  padding: 0.85rem 1rem; margin: 0;
  text-align: center;
}

.stats-dist-bar {
  display: flex; height: 14px; width: 100%;
  border-radius: 999px; overflow: hidden;
  background: var(--cream-100);
  border: 1px solid var(--border);
}
.stats-dist-seg { height: 100%; min-width: 0; }
.stats-dist-seg.seg-eagle  { background: linear-gradient(180deg, var(--gold-300, #d6c285) 0%, var(--gold-500) 100%); }
.stats-dist-seg.seg-birdie { background: linear-gradient(180deg, var(--rgco-500, #2f6a4a) 0%, var(--rgco-700) 100%); }
.stats-dist-seg.seg-par    { background: linear-gradient(180deg, var(--rgco-300, #6fa185) 0%, var(--rgco-500, #2f6a4a) 100%); }
.stats-dist-seg.seg-bogey  { background: linear-gradient(180deg, #d8c79b 0%, #b89a59 100%); }
.stats-dist-seg.seg-dbl    { background: linear-gradient(180deg, #c98c70 0%, #8a4a32 100%); }
.stats-dist-legend {
  margin-top: 0.7rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem;
}
.stats-dist-legend-row {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; color: var(--rgco-700);
}
.stats-dist-legend-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  flex-shrink: 0;
}
.stats-dist-legend-dot.seg-eagle  { background: var(--gold-500); }
.stats-dist-legend-dot.seg-birdie { background: var(--rgco-700); }
.stats-dist-legend-dot.seg-par    { background: var(--rgco-500, #2f6a4a); }
.stats-dist-legend-dot.seg-bogey  { background: #b89a59; }
.stats-dist-legend-dot.seg-dbl    { background: #8a4a32; }
.stats-dist-legend-lbl { flex: 1; }
.stats-dist-legend-val {
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--rgco-700);
}
.stats-dist-legend-pct {
  margin-left: 0.35rem; font-weight: 500;
  color: var(--text-muted);
}

.stats-empty {
  background: var(--cream-100);
  border: 1px dashed var(--border-2, var(--border));
  border-radius: 0.85rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.stats-empty h2 {
  margin: 0 0 0.4rem;
  font-family: Georgia, serif; font-weight: 600;
  font-size: 1.15rem; color: var(--rgco-700);
}
.stats-empty p {
  margin: 0; font-size: 0.9rem; color: var(--text-muted);
  max-width: 28rem; margin-inline: auto;
}
.stats-empty-sm { padding: 1rem 1.2rem; }
.stats-empty-sm p { font-size: 0.86rem; }

.pill-group > button { flex: 1; border: 0; background: transparent; border-radius: 0.45rem; padding: 0.5rem 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.pill-group > button.active { background: var(--rgco-700); color: var(--cream-100); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }

/* ============== Tee chip ============== */
.tee-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(168,147,82,0.1); font-size: 0.72rem; color: var(--text-muted); }
.tee-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); display: inline-block; }

/* ============== Header bar (play / results) ============== */
.header-bar {
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: var(--cream-100);
  position: relative;
  padding: 0.9rem 1rem 1.15rem;
}
.header-bar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.header-bar.sticky { position: sticky; top: 0; z-index: 20; }

/* Back-knop (tekst) op Results-pagina */
.header-bar .header-back {
  border: 0; background: transparent; color: var(--cream-100);
  opacity: 0.85; font-size: 0.85rem; cursor: pointer; padding: 0;
  -webkit-appearance: none; appearance: none;
}

/* ============== Results-header (consistent met play-screen) ============== */
.results-head-row {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.35rem;
}
.results-back-label {
  font-size: 0.95rem; color: var(--cream-100); font-weight: 400;
  flex: 1;
}
.results-status-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-500);
}
.results-course-title {
  font-family: Georgia, serif; font-weight: 600; font-size: 1.7rem;
  color: var(--cream-100); margin: 0; letter-spacing: 0.005em; line-height: 1.1;
  text-align: left;
}
.results-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: 0.5rem;
}
.results-meta-pills {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; color: var(--cream-100);
  flex-wrap: wrap;
}
.results-meta-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.results-meta-pill svg { width: 1rem; height: 1rem; color: var(--gold-500); }
.results-meta-sep {
  width: 1px; height: 1rem; background: rgba(168,147,82,0.4);
}
.results-edit-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid rgba(193,162,92,0.65);
  background: transparent; color: var(--cream-100);
  padding: 0.45rem 0.9rem; border-radius: 0.45rem;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  flex-shrink: 0;
}
.results-edit-btn:hover { background: rgba(193,162,92,0.12); }
.results-edit-btn svg { color: var(--gold-500); }

/* ============== Header top: back-cirkel + course titel (play-pagina) ==============
   Grid-layout met back-circle links, gecentreerde titel, en een visueel
   evenwicht-spacer rechts zodat de titel optisch in het midden zit. */
.header-top {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center; gap: 0.85rem;
  margin-bottom: 0.2rem;
}
.header-top::after { content: ""; display: block; }
/* Default: premium dark-green back-circle, voor cream-getinte pagina-headers
   (newround, admin, communities, events). De cream-variant blijft voor
   donkergroene headers (.header-bar binnen play/results-pagina). */
.back-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--rgco-600) 0%, var(--rgco-800) 100%);
  border: 1px solid var(--gold-500);
  color: #fff;
  cursor: pointer; flex-shrink: 0; padding: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 14px rgba(193,162,92,0.14),
    0 2px 6px rgba(20,46,31,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.back-circle:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 18px rgba(193,162,92,0.22),
    0 4px 10px rgba(20,46,31,0.24);
}
.back-circle:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 10px rgba(193,162,92,0.10),
    0 1px 3px rgba(20,46,31,0.15);
}
/* Op donkergroene headers (.header-bar) houden we de oude cream/beige variant
   omdat een donkergroen rondje op donkergroene achtergrond onzichtbaar zou zijn. */
.header-bar .back-circle {
  background: rgba(168,147,82,0.15);
  border: 1px solid rgba(168,147,82,0.4);
  color: var(--cream-100);
  width: 2.25rem; height: 2.25rem;
  box-shadow: none;
}
.header-bar .back-circle:hover { background: rgba(168,147,82,0.22); transform: none; box-shadow: none; }
.header-bar .back-circle:active { transform: scale(0.96); box-shadow: none; }
.back-circle:active { background: rgba(168,147,82,0.3); }
.back-circle svg { width: 16px; height: 16px; }
.course-title {
  font-family: Georgia, serif; font-weight: 600;
  font-size: 1.35rem; color: var(--cream-100);
  margin: 0; text-align: center; letter-spacing: 0.005em; line-height: 1.1;
}
.course-edit-tag {
  display: inline-block; margin-left: 0.5rem;
  font-family: Inter, sans-serif; font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-300); font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: rgba(168,147,82,0.18); vertical-align: middle;
}

/* ============== Hole + SI + par stage ============== */
.hole-stage-big { padding: 0.1rem 0 0.3rem; }
.hole-stage-row {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding-bottom: 0.45rem;
}
.hole-block, .si-block, .par-block {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  position: relative; flex: 0 0 auto;
}
.hole-block { padding-right: 0.85rem; }
.si-block   { padding: 0 0.85rem; border-left: 1px solid rgba(168,147,82,0.25); border-right: 1px solid rgba(168,147,82,0.25); }
.par-block  { padding-left: 0.85rem; }
.hole-num {
  font-family: Georgia, serif; font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--cream-100); letter-spacing: -0.02em;
}
.si-num {
  font-family: Georgia, serif; font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: var(--cream-100); letter-spacing: -0.01em;
}
.par-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.85rem; height: 2.85rem; border-radius: 50%;
  background: rgba(168,147,82,0.15);
  border: 2px solid var(--gold-500);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-weight: 800; font-size: 1.65rem;
  color: var(--cream-100); line-height: 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
  padding-bottom: 0.1rem;
}
.gold-label {
  color: var(--gold-300); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.distance-row-list {
  text-align: center;
  background: var(--cream-100);
  padding: 0.5rem 1rem 0.5rem;
  margin: 0 -1rem -0.5rem;
}
.distance-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.distance-chip {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  padding: 0.1rem 0.5rem;
}
.distance-chip .tee-name {
  font-size: 0.78rem; color: var(--rgco-700); opacity: 0.75; letter-spacing: 0.02em;
}
.distance-chip .meters {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--rgco-700);
}

/* ============== Score grid (per hole results) ============== */
.score-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.2rem; }
.score-cell { border-radius: 0.3rem; padding: 0.3rem 0.15rem; text-align: center; }
.score-cell .h-num { font-size: 0.55rem; opacity: 0.6; }
.score-cell .h-gross { font-family: Georgia, serif; font-weight: 700; font-size: 0.95rem; line-height: 1.1; }
.score-cell .h-pts { font-size: 0.55rem; font-weight: 600; }

.score-eagle  { background: var(--score-eagle); }
.score-birdie { background: var(--score-birdie); }
.score-par    { background: var(--score-par); }
.score-bogey  { background: var(--score-bogey); }
.score-double { background: var(--score-double); }
.score-loss   { background: var(--score-loss); color: #1a1a1a; }
.score-none   { background: var(--cream-200); color: var(--text-faint); }

/* ============== Score legend (pills with icon + label) ============== */
.legend-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--rgco-700);
  line-height: 1;
}
.legend-pill .legend-icon {
  font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rgco-700);
}
.legend-pill .legend-icon svg { display: block; }
.legend-pill .legend-label { line-height: 1; }
.legend-pill.score-loss { color: #1a1a1a; }

/* ============== Hole-jump buttons ============== */
.hole-jump-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.25rem; }
.hole-jump { padding: 0.55rem 0; border-radius: 0.4rem; font-family: Georgia, serif; font-weight: 600; font-size: 0.95rem; border: 0; cursor: pointer; }
.hole-jump.current { box-shadow: 0 0 0 2px var(--rgco-700), 0 0 0 4px var(--gold-500); }

/* ============== Score input card ============== */
.score-input-card { background: #fff; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(26,61,40,0.05); overflow: hidden; }
.score-input-head {
  padding: 0.85rem 1rem 0.75rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.score-input-head .player-name-block {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.18rem;
}
.score-input-head .player-name {
  font-family: Georgia, serif;
  font-weight: 600; color: var(--rgco-700);
  font-size: 1.25rem; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Subtiele informatieve regel onder de naam: totaal slagen tot nu toe. */
.player-total-line {
  font-size: 0.7rem;
  color: var(--gold-700);
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tee-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(168,147,82,0.15);
  border: 1px solid rgba(168,147,82,0.35);
  font-size: 0.95rem; font-weight: 600; color: var(--rgco-700);
  flex-shrink: 0;
}
.tee-badge .tee-dot {
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%; border: 1px solid rgba(0,0,0,0.2);
  display: inline-block; flex-shrink: 0;
}
/* Strokes-info in score-row: fijn label "strokes" boven N donkergroene bolletjes (of "—" bij 0) */
.strokes-info {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0.1rem; flex-shrink: 0; min-width: 2.2rem;
}
.strokes-label {
  font-size: 0.55rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.06em;
  text-transform: lowercase;
}
.strokes-value {
  display: inline-flex; gap: 0.2rem; align-items: center;
  min-height: 0.7rem;
}
.stroke-pip {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--rgco-700); display: inline-block;
}
.stroke-none {
  color: var(--text-faint); font-size: 0.95rem; line-height: 0.7;
  font-weight: 400;
}
.stroke-neg {
  color: var(--text-muted); font-size: 0.7rem; font-weight: 600;
}

.score-input-body { display: grid; grid-template-columns: 1fr 1.4fr 1fr; }
.score-input-body button { border: 0; background: var(--cream-200); padding: 1rem 0; font-size: 1.5rem; font-weight: 300; color: var(--rgco-700); cursor: pointer; }
.score-input-body button:active:not(:disabled) { background: var(--cream-300); }
.score-input-body button:disabled { opacity: 0.3; cursor: not-allowed; }
.score-input-value { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.7rem 0; }
.score-input-value .big { font-family: Georgia, serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: #1a1a1a; }
.score-input-value .big.dim { color: var(--text-faint); }
.score-input-value .pickup { font-size: 0.6rem; color: #7a3a1a; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; }

/* ============== Ranking ============== */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.medal-1 { background: linear-gradient(135deg, #f4d77a, var(--gold-500)); color: var(--text); box-shadow: 0 2px 6px rgba(168,147,82,0.4); }
.medal-2 { background: linear-gradient(135deg, #e3e3e3, #b8b8b8); color: var(--text); }
.medal-3 { background: linear-gradient(135deg, #e8b78a, #b87a4a); color: var(--text); }
.medal-other { background: var(--border); color: var(--text-muted); }

/* ============== Bottom navigation (flat floating pill) ============== */
.bottom-nav {
  position: fixed; left: 0; right: 0;
  bottom: calc(0.7rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex; justify-content: center;
  pointer-events: none;
  padding: 0 0.75rem;
}
.bottom-nav-inner {
  pointer-events: auto;
  position: relative;
  width: 100%; max-width: 30rem;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  border: 1px solid rgba(193,162,92,0.4);
  border-radius: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),       /* top-highlight */
    0 0 22px rgba(193,162,92,0.10),             /* zachte gouden halo */
    0 8px 24px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.12);
  padding: 0.55rem 0.5rem;
}
.bottom-nav-sep {
  width: 1px; background: rgba(193,162,92,0.25);
  margin: 0.5rem 0;
  flex: 0 0 1px;
}
.bottom-nav-item {
  flex: 1; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.45rem 0.2rem 0.55rem;
  color: #fff; text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.01em;
  border: 0; background: transparent; cursor: pointer;
  white-space: nowrap;
  border-radius: 0.9rem;
  transition: background 0.15s ease;
}
.bottom-nav-item .bottom-nav-icon { display: inline-flex; color: var(--gold-500); }
.bottom-nav-item .bottom-nav-icon svg { width: 24px; height: 24px; display: block; }
.bottom-nav-item .bottom-nav-label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.bottom-nav-item .bottom-nav-indicator {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0.15rem;
  width: 1.6rem; height: 3px;
  border-radius: 2px;
  background: transparent;
}
.bottom-nav-item.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 0 14px rgba(193,162,92,0.18);
}
.bottom-nav-item.active .bottom-nav-icon { color: var(--gold-300); }
.bottom-nav-item.active .bottom-nav-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bottom-nav-item.active .bottom-nav-indicator {
  background: var(--gold-500);
  box-shadow: 0 0 6px rgba(193,162,92,0.5);
}

/* Pill-style "Speler toevoegen" / "Uitnodigen" — subtiele cream-pill rechtsboven */
.add-player-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--cream-50);
  color: var(--rgco-700);
  border: 1px solid rgba(193,162,92,0.45);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 3px rgba(20,46,31,0.05);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.add-player-pill:hover {
  background: var(--cream-100);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 3px 8px rgba(20,46,31,0.10);
}
.add-player-pill:active { transform: translateY(0) scale(0.97); }

/* ============== Player setup card (new round) ============== */
.player-card { border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.85rem; background: var(--cream-50); }
.player-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem;
}
.player-card-name .serif { font-size: 1.05rem; }
.player-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.player-stats .stat {
  background: #fff; border: 1px solid var(--border);
  border-radius: 0.45rem; padding: 0.4rem 0.6rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
}
.player-stats .stat-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
.player-stats .stat-value {
  font-family: Georgia, serif; font-weight: 700;
  font-size: 1.5rem; color: var(--rgco-700); line-height: 1;
}
.tee-pick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.tee-pick {
  padding: 0.55rem 0; border-radius: 0.4rem; font-size: 0.78rem; font-weight: 600;
  border: 2px solid var(--border-2); cursor: pointer; min-width: 0;
}
.tee-pick.selected { border-color: var(--rgco-700); }

/* Wachtwoord vergeten link op login form */
.forgot-link {
  font-size: 0.78rem;
  color: var(--gold-700, #a89352);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* Nieuwe-ronde scherm: back-knop + titel naast elkaar (info-dropdown rechts) */
.newround-head {
  display: flex; align-items: center; gap: 0.85rem;
}
.newround-head .back-circle { flex-shrink: 0; }
.newround-head-text { flex: 1; min-width: 0; }
.newround-head .home-info-wrap { margin-left: auto; flex-shrink: 0; }

/* Marker-toggle in player-card */
.player-card-actions {
  display: flex; align-items: center;
}
.marker-toggle {
  font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.55rem;
  border-radius: 0.4rem; border: 1px solid var(--border-2);
  background: #fff; color: var(--text-muted); cursor: pointer;
  letter-spacing: 0.02em;
}
.marker-toggle.on {
  background: var(--gold-700, #a89352); color: #fff; border-color: var(--gold-700, #a89352);
}
.player-card.is-marker { border-color: var(--gold-700, #a89352); box-shadow: 0 0 0 1px var(--gold-700, #a89352); }

/* ============== Approval flow ============== */

/* Banner op home: rondes die wachten op mijn goedkeuring */
.approval-banner-list {
  margin: 0.85rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.approval-banner {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--gold-700, #a89352);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.approval-banner .ab-icon { font-size: 1.4rem; flex-shrink: 0; }
.approval-banner .ab-body { flex: 1; min-width: 0; }
.approval-banner .ab-title {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
}
.approval-banner .ab-sub {
  font-size: 0.75rem; opacity: 0.92; margin-top: 0.1rem;
}
.approval-banner .ab-arrow { font-size: 1.4rem; opacity: 0.8; }
.ab-more { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* Approval-card op resultatenpagina voor de speler die nog moet goedkeuren */
.approve-card {
  background: rgba(168,147,82,0.12);
  border: 1px solid rgba(168,147,82,0.35);
  border-radius: 0.55rem;
  padding: 0.9rem;
}
.approve-card-top {
  display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem;
}
.approve-icon { font-size: 1.5rem; flex-shrink: 0; }
.approve-title { font-weight: 700; color: var(--rgco-700); font-size: 0.95rem; }
.approve-sub { font-size: 0.78rem; color: var(--rgco-700); opacity: 0.85; margin-top: 0.15rem; }
.approve-actions {
  display: flex; gap: 0.5rem;
}
.approve-actions .btn { flex: 1; padding: 0.7rem 0.5rem; font-size: 0.85rem; }

/* Approval-pill in ranking-card */
.approval-pill {
  font-size: 0.65rem; font-weight: 600; padding: 0.1rem 0.4rem;
  border-radius: 0.25rem; letter-spacing: 0.02em; white-space: nowrap;
}
.approval-pill.approved {
  background: rgba(31,71,54,0.12); color: var(--rgco-700);
}
.approval-pill.pending {
  background: rgba(168,147,82,0.18); color: var(--gold-700, #a89352);
}

/* MARKER-pill — opvallend gouden label naast spelernaam */
.marker-pill {
  display: inline-block;
  background: var(--gold-700, #a89352);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  vertical-align: middle;
}

/* Spelers-lijst in een ronde-kaartje op home */
.round-card-players {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 0.4rem;
}
.round-card-player {
  display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.75rem; font-weight: 500;
  padding: 0.15rem 0.5rem;
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  color: var(--rgco-700);
}
.round-card-player.marker {
  background: rgba(168,147,82,0.18);
  border-color: var(--gold-700, #a89352);
  font-weight: 700;
}
.round-card-marker-dot {
  color: var(--gold-700, #a89352);
  font-size: 0.7rem;
}

/* Major-badge — opvallend gouden label voor major-events */
.major-badge {
  display: inline-block;
  background: var(--gold-700, #a89352);
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: middle;
}

/* Event-points tabel — netto stableford ranking met alle puntenkolommen */
.event-points-table {
  background: #fff; border: 1px solid var(--border); border-radius: 0.55rem;
  overflow-x: auto;
}
.ept {
  width: 100%; border-collapse: collapse;
  font-size: 0.8rem; min-width: 100%;
}
.ept th, .ept td {
  padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.ept th {
  background: var(--rgco-700);
  font-weight: 400; color: var(--cream-100);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  border-bottom: 0;
}
/* Forceer ook de TOTAAL-header in groen — body-rule heeft hogere specificity */
.ept thead th.total { background: var(--rgco-700); color: var(--cream-100); }
.ept tbody tr:hover { background: var(--cream-50); }
.ept .ept-rank {
  width: 1.8rem; text-align: center; color: var(--text-muted);
  font-weight: 600;
}
.ept .ept-name { min-width: 4.5rem; max-width: 7rem; }
.ept .ept-name-main { font-weight: 600; color: var(--rgco-700); }
.ept .ept-name-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.ept .ept-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ept tbody .ept-num.total { font-weight: 700; color: var(--rgco-700); background: rgba(168,147,82,0.08); }
.ept tbody tr:first-child .ept-num.total { background: rgba(168,147,82,0.18); }

/* ============== Community event cards (op community detail) ============== */
.event-card {
  background: #fff; border: 1px solid var(--border); border-radius: 0.55rem;
  padding: 0.85rem; box-shadow: 0 1px 3px rgba(26,61,40,0.04);
}
.event-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.5rem; margin-bottom: 0.7rem;
}
.event-title { font-weight: 700; color: var(--rgco-700); font-size: 1rem; }
.event-sub   { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.event-status {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 0.25rem;
  text-transform: uppercase; white-space: nowrap;
}
.event-status.running { background: rgba(168,147,82,0.18); color: var(--gold-700, #a89352); }
.event-status.done    { background: rgba(31,71,54,0.12);  color: var(--rgco-700); }

/* Puntenverdeling pill — primary call-to-action op event-card */
.event-points-pill {
  display: inline-block;
  background: var(--rgco-700);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}
.event-points-pill:hover { background: var(--rgco-600, #2a5644); }
.event-points-pill:active { transform: scale(0.97); }
.event-flights {
  display: flex; flex-direction: column; gap: 0.3rem;
  border-left: 2px solid rgba(168,147,82,0.4); padding-left: 0.7rem; margin-left: 0.15rem;
}
.ev-flight-link { display: block; text-decoration: none; color: inherit; }
.ev-flight-noclick { color: inherit; }
.ev-flight-row {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.4rem 0.55rem; background: var(--cream-50);
  border-radius: 0.35rem;
}
.ev-flight-row.me { background: rgba(168,147,82,0.13); }
.ev-flight-meta { display: flex; align-items: center; gap: 0.5rem; }
.ev-flight-dot {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.ev-flight-dot.live { background: var(--gold-700, #a89352); color: #fff; }
.ev-flight-dot.done { background: var(--rgco-700); color: #fff; }
.ev-flight-label { font-size: 0.78rem; font-weight: 600; color: var(--rgco-700); }
.ev-flight-players { font-size: 0.72rem; color: var(--text-muted); margin-left: 1.6rem; }

/* ============== Community event setup ============== */
.participant-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.65rem;
  border: 1px solid var(--border); border-radius: 0.45rem;
  background: #fff; cursor: pointer; transition: background 0.15s;
}
.participant-row.on { background: var(--rgco-50); border-color: var(--rgco-700); }
.participant-row input[type=checkbox] { width: 1.05rem; height: 1.05rem; flex-shrink: 0; cursor: pointer; }

.flight-card {
  background: #fff; border: 1px solid var(--border); border-radius: 0.55rem;
  padding: 0.85rem; box-shadow: 0 1px 3px rgba(26,61,40,0.04);
}
.flight-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.5rem; margin-bottom: 0.7rem;
}
.flight-title { font-weight: 700; color: var(--rgco-700); font-size: 1.05rem; }
.flight-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }
.flight-swap-btn {
  font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.55rem;
  border-radius: 0.35rem; border: 1px solid var(--border-2);
  background: #fff; color: var(--rgco-700); cursor: pointer; white-space: nowrap;
}
.flight-team-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-700, #a89352);
  margin: 0.5rem 0 0.2rem;
}
.flight-team-label:first-child { margin-top: 0; }
.flight-players { display: flex; flex-direction: column; gap: 0.35rem; }
.flight-player {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.6rem; padding: 0.5rem 0.6rem;
  background: var(--cream-50); border-radius: 0.4rem; min-width: 0;
}
.flight-player.marker { background: rgba(168,147,82,0.12); }
.flight-player-info { min-width: 0; flex: 1; }
.flight-player-name { font-weight: 600; color: var(--rgco-700); }

/* ============== Game scoring widget (Amerikaantje / Fourball) ============== */
.gw {
  background: #fff; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.85rem 0.95rem; box-shadow: 0 1px 3px rgba(26,61,40,0.05);
}
.gw.result {
  background: var(--rgco-50);
  border-color: rgba(31,71,54,0.25);
}
.gw-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-700, #a89352);
  margin-bottom: 0.55rem;
}
.gw-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.gw-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0.55rem;
  background: var(--cream-50); border-radius: 0.4rem;
}
.gw-row.leader { background: rgba(168,147,82,0.15); }
.gw-medal {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--rgco-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.gw-row.leader .gw-medal { background: var(--gold-700, #a89352); }
.gw-name { flex: 1; font-weight: 600; color: var(--rgco-700); min-width: 0; }
.gw-pts {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.5rem;
  color: var(--rgco-700); line-height: 1;
}
.gw-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Status-tekst voor alle matchplay-varianten (fourball, matchplay, scramble).
   Live: subtiel donkergroen. Beslist: prominente gouden trofee-pill met halo. */
.gw.fourball .gw-status,
.gw.matchplay .gw-status,
.gw.scramble .gw-status {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem;
  color: var(--rgco-700); margin-bottom: 0.7rem; text-align: center;
}
.gw.fourball.decided .gw-status,
.gw.matchplay.decided .gw-status,
.gw.scramble.decided .gw-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  width: max-content; max-width: 100%; margin-left: auto; margin-right: auto;
  padding: 0.55rem 1.2rem 0.55rem 1rem;
  background: linear-gradient(180deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 1.2rem; letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 0 18px rgba(193,162,92,0.30),
    0 4px 10px rgba(20,46,31,0.20);
}
.gw.fourball.decided .gw-status::before,
.gw.matchplay.decided .gw-status::before,
.gw.scramble.decided .gw-status::before {
  content: "🏆";
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
/* Op de resultaten-pagina (.result variant) iets groter en met meer ademruimte. */
.gw.result.decided .gw-status {
  font-size: 1.35rem;
  padding: 0.7rem 1.4rem 0.7rem 1.2rem;
}
.gw.result.decided .gw-status::before { font-size: 1.3rem; }
.gw-teams {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.gw-team {
  background: var(--cream-50); border-radius: 0.4rem; padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
}
.gw-team.leading {
  background: rgba(168,147,82,0.15); border-color: rgba(168,147,82,0.4);
}
.gw-team-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-700, #a89352);
}
.gw-team-names { font-weight: 600; color: var(--rgco-700); font-size: 0.85rem; margin-top: 0.15rem; }
.gw-team-wins { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Game type tag in play-screen header */
.game-type-tag {
  margin-top: 0.5rem;
  display: inline-block;
  background: rgba(168,147,82,0.25);
  color: var(--cream-100);
  font-size: 0.72rem; font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
  letter-spacing: 0.03em;
}

/* Marker-badge in score-row head */
.marker-badge {
  display: inline-block; margin-left: 0.45rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem; border-radius: 0.25rem;
  background: var(--gold-700, #a89352); color: #fff;
  vertical-align: middle;
}
/* Viewer-modus: dezelfde layout maar dimmen we de disabled +/- knoppen subtiel */
.score-input-card.viewer button[data-minus],
.score-input-card.viewer button[data-plus] {
  opacity: 0.35; cursor: not-allowed;
}

/* ============== Page-specific bits ============== */
.welcome-bg { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem; background: radial-gradient(ellipse at top, var(--rgco-50) 0%, var(--cream-100) 60%); }
.welcome-logo { display: block; margin: 0 auto 1rem; width: 7rem; }
.welcome-logo img { width: 100%; height: auto; display: block; }
/* Brand-naam met klein registered-teken in superscript. */
.welcome-brand { letter-spacing: 0.01em; }
.welcome-brand-r {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.08em;
  color: var(--gold-700);
  font-weight: 600;
}
.welcome-divider { width: 3rem; height: 1px; background: var(--gold-500); margin: 1rem auto 0; }
.tagline-since { font-size: 0.7rem; color: var(--gold-700); letter-spacing: 0.15em; text-transform: uppercase; }
.welcome-install-wrap { display: flex; justify-content: center; margin-top: 1.25rem; }
.welcome-install-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: var(--gold-500);
  border: 1px solid var(--gold-500);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 14px rgba(193,162,92,0.14),
    0 2px 6px rgba(20,46,31,0.18);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.welcome-install-pill:hover {
  color: var(--gold-300);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 18px rgba(193,162,92,0.22),
    0 4px 10px rgba(20,46,31,0.22);
}
.welcome-install-pill:active { transform: translateY(0) scale(0.98); }
.welcome-install-icon { display: inline-flex; }
.welcome-install-icon svg { width: 16px; height: 16px; display: block; }

/* ============== Confirm dialog ============== */
.confirm-bg { position: fixed; inset: 0; background: rgba(20,46,31,0.6); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.confirm-box { background: #fff; border-radius: 0.85rem; padding: 1.5rem; max-width: 22rem; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.confirm-box h3 { font-family: Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--rgco-700); margin: 0 0 0.5rem; }
.confirm-box p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.25rem; line-height: 1.5; }
.confirm-actions { display: flex; gap: 0.5rem; }

/* ============== Sheet (bottom-up modal) ============== */
.sheet-bg { position: fixed; inset: 0; background: rgba(20,46,31,0.55); z-index: 40; display: flex; align-items: flex-end; }
.sheet { width: 100%; background: #fff; border-top-left-radius: 1rem; border-top-right-radius: 1rem; padding: 1.25rem; max-height: 70vh; overflow-y: auto; }

/* ============== Profile header — settings dropdown ============== */
.profile-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.settings-wrap { position: relative; flex-shrink: 0; }
.settings-trigger {
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: radial-gradient(circle at 50% 30%, var(--rgco-600) 0%, var(--rgco-800) 100%);
  color: #fff;
  border: 1px solid var(--gold-500);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 14px rgba(193,162,92,0.14),
    0 2px 6px rgba(20,46,31,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.settings-trigger:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 18px rgba(193,162,92,0.22),
    0 4px 10px rgba(20,46,31,0.24);
}
.settings-trigger:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 10px rgba(193,162,92,0.10),
    0 1px 3px rgba(20,46,31,0.15);
}
.settings-trigger svg { width: 20px; height: 20px; display: block; }
.settings-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(20,46,31,0.16), 0 2px 6px rgba(20,46,31,0.08);
  padding: 0.35rem;
  z-index: 50;
}
.settings-menu[hidden] { display: none; }
.settings-item {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left;
  padding: 0.6rem 0.75rem; border: 0; background: transparent;
  border-radius: 0.5rem;
  font-size: 0.92rem; color: var(--rgco-700); font-weight: 500;
  cursor: pointer;
}
.settings-item:hover { background: var(--cream-100); }
.settings-item-icon {
  display: inline-flex; color: var(--gold-700);
}
.settings-item-icon svg { width: 18px; height: 18px; display: block; }

/* ============== Install-als-app modal ============== */
.install-bg { align-items: stretch; }
.install-sheet {
  width: 100%; max-width: 30rem; margin: auto;
  background: var(--cream-50);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(20,46,31,0.25);
  border: 1px solid var(--border);
}
.install-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff; color: var(--rgco-700);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.install-close svg { width: 16px; height: 16px; display: block; }
.install-header { text-align: center; padding: 0.5rem 0 1rem; }
.install-header .section-label { color: var(--gold-700); margin-bottom: 0.3rem; }
.install-title {
  font-family: Georgia, serif; font-weight: 700;
  color: var(--rgco-700);
  font-size: 1.8rem; margin: 0 0 0.5rem;
}
.install-sub {
  color: var(--text-muted); font-style: italic;
  font-size: 0.95rem; margin: 0 auto 1rem; max-width: 24rem; line-height: 1.45;
}
.install-divider {
  width: 4rem; height: 1px; background: var(--gold-500); margin: 0 auto;
}
.install-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 1px 3px rgba(20,46,31,0.04);
}
.install-card-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.install-card-icon {
  display: inline-flex; color: var(--gold-700);
}
.install-card-icon svg { width: 22px; height: 22px; display: block; }
.install-card h3 {
  margin: 0; font-family: Georgia, serif; font-weight: 700;
  font-size: 1.1rem; color: var(--rgco-700);
}
.install-steps {
  margin: 0; padding-left: 1.25rem;
  color: var(--text); font-size: 0.95rem; line-height: 1.55;
}
.install-steps li { margin-bottom: 0.45rem; }
.install-steps li:last-child { margin-bottom: 0; }
.install-steps strong { color: var(--rgco-700); font-weight: 600; }
.install-steps svg {
  width: 14px; height: 14px;
  display: inline-block; vertical-align: -2px;
  color: var(--gold-700);
}
.install-note {
  font-size: 0.85rem; color: var(--text-muted);
  font-style: italic; margin: 0 0 0.65rem;
}
.install-card .install-note + .install-steps { margin-top: 0; }
.install-card .install-steps + .install-note { margin: 0.65rem 0 0; }
.install-back { margin-top: 1.25rem; }

/* ============== Admin dashboard ============== */
.admin-head {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.admin-head .home-info-wrap { margin-left: auto; flex-shrink: 0; }
.admin-tabs {
  display: flex; gap: 0.4rem;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}
.admin-tab {
  flex: 1;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-tab:hover { color: var(--rgco-700); }
.admin-tab.active {
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: var(--cream-50);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 10px rgba(193,162,92,0.14),
    0 2px 5px rgba(20,46,31,0.18);
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
/* Als het laatste item alleen op een rij zou staan: laat het de volledige breedte innemen */
.admin-stat-grid > .admin-stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* Op bredere schermen: 3 kolommen */
@media (min-width: 640px) {
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-stat-grid > .admin-stat:last-child:nth-child(odd) { grid-column: auto; }
  /* 5 items in 3 kolommen: laatste tile spant 3 om symmetrisch te ogen */
  .admin-stat-grid > .admin-stat:nth-last-child(1):nth-child(3n+2) { grid-column: span 2; }
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(20,46,31,0.04);
}
.admin-stat-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.25rem;
}
.admin-stat-value {
  font-family: Georgia, serif; font-weight: 700;
  color: var(--rgco-700);
  font-size: 1.85rem; line-height: 1.05;
}
.admin-stat-sub {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem;
}
.admin-stat-link {
  cursor: pointer; position: relative;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.admin-stat-link:hover {
  transform: translateY(-1px);
  border-color: var(--gold-500);
  box-shadow: 0 4px 12px rgba(20,46,31,0.08);
}
.admin-stat-link:active { transform: translateY(0); }
.admin-stat-chev {
  position: absolute; top: 0.75rem; right: 0.85rem;
  font-size: 1.4rem; line-height: 1;
  color: var(--gold-500);
  font-family: Georgia, serif;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgba(20,46,31,0.04);
}
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.admin-card-head h3 {
  margin: 0; font-family: Georgia, serif; font-weight: 700;
  font-size: 1.1rem; color: var(--rgco-700);
}
.muted-tag {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 400;
}
.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -1.1rem -0.25rem;
  padding: 0 1.1rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table thead th {
  text-align: left;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-700);
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--cream-50); }
.admin-table th.num, .admin-table td.num { text-align: right; white-space: nowrap; }
.admin-user-cell {
  display: flex; flex-direction: column; line-height: 1.25; gap: 0.1rem;
}
.admin-user-name { color: var(--rgco-700); font-weight: 600; }
.admin-time-cell {
  display: flex; flex-direction: column; line-height: 1.25; gap: 0.1rem;
}
.admin-pill {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--cream-200); color: var(--text-muted);
}
.admin-pill-ok    { background: rgba(68,116,70,0.15); color: var(--rgco-600); }
.admin-pill-warn  { background: rgba(193,162,92,0.2); color: var(--gold-700); }
.admin-pill-gold  { background: rgba(193,162,92,0.18); color: var(--gold-700); }

/* ============== Courses (Banen) overview ============== */
.club-list {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.club-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,46,31,0.07);
  display: flex; flex-direction: column;
}
.club-card-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--rgco-700);
  overflow: hidden;
}
.club-card-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.club-card-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(20,46,31,0.85) 0%, rgba(20,46,31,0.45) 60%, transparent 100%);
  color: var(--cream-100);
}
.club-card-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.club-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 0.35rem;
}
.club-card-body {
  padding: 1rem 1.1rem 1.1rem;
}
.club-card-blurb {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.club-courses-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.course-tile {
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.85rem 0.95rem 0.9rem;
}
.course-tile-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.course-tile-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rgco-700);
  line-height: 1.2;
}
.course-tile-meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--gold-700);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.course-tile-meta .dot-sep {
  width: 0.25rem; height: 0.25rem; border-radius: 50%;
  background: var(--gold-500); opacity: 0.6;
  display: inline-block;
}
.course-tile-blurb {
  margin: 0 0 0.7rem;
  font-size: 0.88rem; line-height: 1.5;
  color: var(--text-muted);
}
.course-tile-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(180deg, var(--rgco-700) 0%, var(--rgco-800) 100%);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--gold-500);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 12px rgba(193,162,92,0.14),
    0 2px 5px rgba(20,46,31,0.16);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.course-tile-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 16px rgba(193,162,92,0.22),
    0 4px 8px rgba(20,46,31,0.22);
}
.course-tile-cta:active { transform: translateY(0) scale(0.98); }
.course-tile-cta .arr { color: var(--gold-500); }
/* Twee knoppen op één rij onder de blurb */
.course-tile-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.2rem;
}
/* Secundaire variant: cream achtergrond + gouden rand, voor "Bekijk scorekaart" */
.course-tile-cta.course-tile-cta-secondary {
  background: var(--cream-50);
  color: var(--rgco-700);
  border: 1px solid rgba(193,162,92,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 3px rgba(20,46,31,0.05);
}
.course-tile-cta.course-tile-cta-secondary:hover {
  background: var(--cream-100);
  color: var(--rgco-700);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 3px 8px rgba(20,46,31,0.10);
}
.course-tile-cta .arr { font-size: 1rem; line-height: 1; }

/* Users-tabel: compact, geen horizontale scroll */
.admin-table-users { table-layout: fixed; width: 100%; }
.admin-table-users th, .admin-table-users td { padding: 0.55rem 0.35rem; }
.admin-table-users th.exp-col, .admin-table-users td.exp-col { width: 1.9rem; padding-right: 0; padding-left: 0.2rem; }
.admin-table-users th.last-col, .admin-table-users td.last-col {
  white-space: nowrap;
  font-size: 0.78rem; color: var(--text-muted);
  width: 5.5rem; text-align: right;
}
.admin-table-users .admin-user-cell { min-width: 0; }
.admin-table-users .admin-user-cell .muted-tag {
  font-size: 0.72rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-table-users .admin-user-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; max-width: 100%;
}
.admin-expand {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--cream-100); color: var(--rgco-700);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 0.15s ease;
}
.admin-expand:hover { background: var(--cream-200); }
.admin-expand svg { display: block; transition: transform 0.18s ease; }
.admin-expand svg .v { transition: opacity 0.18s ease; transform-origin: center; }
.admin-user-row.open .admin-expand {
  background: var(--rgco-700); color: var(--gold-500); border-color: var(--rgco-700);
}
.admin-user-row.open .admin-expand svg .v { opacity: 0; }
/* Detail-rij */
.admin-user-detail td {
  background: var(--cream-50);
  border-bottom: 1px solid var(--border) !important;
  padding: 0.65rem 0.5rem !important;
}
.admin-user-detail[hidden] { display: none; }
.admin-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem;
}
.admin-detail-grid > div {
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 0;
}
.detail-k {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-700);
}
.detail-v {
  font-size: 0.88rem; color: var(--rgco-700); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-user-actions {
  margin-top: 0.85rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}
.admin-user-delete {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(185,28,28,0.35);
  background: rgba(185,28,28,0.08);
  color: var(--red);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-user-delete:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.admin-user-delete:disabled {
  opacity: 0.6; cursor: not-allowed;
}

.loading-fallback { padding: 2rem; text-align: center; color: var(--text-faint); font-size: 0.9rem; }

/* ============== Error overlay (debug) ============== */
.err-overlay { position: fixed; left: 0; right: 0; bottom: 0; max-height: 60vh; overflow: auto; background: var(--rgco-700); color: #fff; padding: 12px; font: 12px/1.4 ui-monospace, Menlo, monospace; z-index: 99999; white-space: pre-wrap; border-top: 3px solid var(--gold-500); }
.err-overlay > div + div { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.15); }

/* ============== Scorecard (volledig HTML, print-klaar) ============== */
.sc-toolbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--rgco-700); color: var(--cream-100);
  padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid var(--rgco-800);
}
.sc-toolbar h1 {
  margin: 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 600;
  flex: 1; opacity: 0.95;
}
.sc-toolbar button, .sc-toolbar a {
  background: rgba(168,147,82,0.18); border: 1px solid rgba(168,147,82,0.4);
  color: var(--cream-100); padding: 0.45rem 0.85rem; border-radius: 0.4rem;
  font-size: 0.85rem; cursor: pointer; text-decoration: none;
}
.sc-wrap {
  padding: 1.25rem;
  background: #d9d4c2;
  /* Scorekaarten zijn niet bedoeld om te schalen — een vast desktop-formaat
     met horizontale scroll op kleinere schermen voorkomt dat de header/tabel
     gaat wrappen en over de ratings-panelen valt. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sc-page {
  /* Themable primary color — Anker = donkergroen, Kasteel = bordeaux */
  --sc-primary: #1f4736;
  width: 100%;
  min-width: 1100px;
  max-width: 1400px;
  margin: 0 auto;
  background: #fff; padding: 0.9rem 1.2rem 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--sc-primary);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  container-type: inline-size;
}
.sc-page.theme-kasteel { --sc-primary: #7a1d2c; }

/* ============== Sotogrande scorekaart (gele variant) ============== */
.sc-page.sg-page {
  --sg-yellow: #f7c91a;
  --sg-yellow-dark: #d9a900;
  --sg-ink: #111;
  display: block;
  background: var(--sg-yellow);
  color: var(--sg-ink);
  padding: 0.9rem 1.1rem 0.95rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
}
.sg-page .sg-header {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--sg-ink);
}
.sg-page .sg-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
}
.sg-page .sg-logo-img {
  height: 5.5rem; width: auto;
  display: block;
}
.sg-page .sg-title {
  text-align: center;
  font-family: Georgia, serif;
  color: var(--sg-ink);
}
.sg-page .sg-title-main {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}
.sg-page .sg-title-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin-top: 0.15rem;
  text-transform: uppercase;
}
.sg-page .sg-title-course {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.05rem;
}
.sg-page .sg-meta {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.85rem;
  min-width: 12rem;
}
.sg-page .sg-fld {
  display: flex; gap: 0.5rem; align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  padding-bottom: 0.15rem;
}
.sg-page .sg-fld .lbl {
  font-weight: 700; letter-spacing: 0.04em;
  min-width: 4rem;
  color: var(--sg-ink);
}
.sg-page .sg-fld .val {
  flex: 1;
  font-family: "Caveat", Georgia, serif;
  font-size: 1.3rem;
  color: #1c3a8b;
  line-height: 1;
  font-weight: 600;
}
.sg-page .sg-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: 0.8rem;
  margin-top: 0.7rem;
}
.sg-page .sg-tables {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.sg-page .sg-aside {
  display: flex; flex-direction: column; gap: 0.7rem;
}

/* Holes-tabel */
.sg-page .sg-hole-table {
  width: 100%; border-collapse: collapse;
  background: #fff; color: var(--sg-ink);
  font-size: 0.74rem;
  border: 1.5px solid var(--sg-ink);
  table-layout: fixed;
}
/* Hole-kolommen (1-9 / 10-18) en de IDA/VLTA-totaal kolom even breed maken
   over beide tabellen heen → strakke uitlijning. */
.sg-page .sg-hole-table col.col-lbl  { width: 9%; }
.sg-page .sg-hole-table col.col-hole { width: 7.5%; }
.sg-page .sg-hole-table col.col-sum  { width: 8%; }
.sg-page .sg-hole-table th,
.sg-page .sg-hole-table td {
  border: 1px solid var(--sg-ink);
  padding: 0.18rem 0.25rem;
  text-align: center;
  vertical-align: middle;
  height: 1.4rem;
}
.sg-page .sg-hole-table thead th {
  background: var(--sg-ink);
  color: var(--sg-yellow);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  padding: 0.3rem 0.25rem;
}
.sg-page .sg-hole-table thead th.lbl,
.sg-page .sg-hole-table tbody th.lbl,
.sg-page .sg-hole-table tbody th.tee-lbl {
  text-align: left; padding-left: 0.4rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  width: 4.6rem;
}
.sg-page .sg-hole-table thead th.sum,
.sg-page .sg-hole-table tbody td.sum {
  font-weight: 700;
  background: rgba(0,0,0,0.06);
}
.sg-page .sg-hole-table tbody.distances td,
.sg-page .sg-hole-table tbody.distances th { font-weight: 500; }
.sg-page .sg-hole-table .par td,
.sg-page .sg-hole-table .par th { background: rgba(0,0,0,0.05); font-weight: 700; }
.sg-page .sg-hole-table .hcp-row td,
.sg-page .sg-hole-table .hcp-row th {
  background: rgba(0,0,0,0.025);
  font-size: 0.72rem;
}
.sg-page .sg-hole-table tbody.players td,
.sg-page .sg-hole-table tbody.players th {
  height: 1.7rem;
}
.sg-page .sg-hole-table tbody.players tr.player-row .player-name {
  vertical-align: middle;
}
.sg-page .sg-hole-table tbody.players tr.player-pts td {
  height: 1.25rem;
  background: rgba(0,0,0,0.025);
}
.sg-page .sg-name-block {
  display: flex; flex-direction: column;
  line-height: 1.1; gap: 0.1rem;
}
.sg-page .sg-name {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c3a8b;
}
.sg-page .sg-strokes {
  font-family: "Caveat", Georgia, serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #1c3a8b;
  opacity: 0.7;
}
.sg-page .sg-pts {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1c3a8b;
  opacity: 0.75;
}
.sg-page .sg-pts-total {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1c3a8b;
}
.sg-page .sg-hole-table tbody.marker td,
.sg-page .sg-hole-table tbody.marker th {
  height: 1.55rem;
  background: rgba(0,0,0,0.04);
}
.sg-page .sg-tee-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.05rem;
  border: 1.5px solid var(--sg-ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.72rem;
}

/* Score-cellen (player rows) */
.sg-page .sg-cell {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 1.2rem; min-height: 1.1rem;
}
.sg-page .sg-score {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: #1c3a8b;
}
.sg-page .sg-score.score-eagle  { color: #6b3a8a; }
.sg-page .sg-score.score-birdie { color: #1c3a8b; }
.sg-page .sg-score.score-par    { color: #2a6431; }
.sg-page .sg-score.score-bogey  { color: #8a6a1f; }
.sg-page .sg-score.score-double { color: #a14a14; }
.sg-page .sg-score.score-loss   { color: #a31818; }
.sg-page .sg-stroke-dots {
  position: absolute; top: -2px; right: -7px;
  display: inline-flex; gap: 1px;
}
.sg-page .sg-stroke-dots .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sg-ink);
}

/* Aside: ratings/slopes + signature */
.sg-page .sg-panel-title {
  background: var(--sg-ink); color: var(--sg-yellow);
  font-weight: 700; letter-spacing: 0.08em;
  font-size: 0.8rem; text-align: center;
  padding: 0.3rem 0.4rem;
  border: 1.5px solid var(--sg-ink);
  border-bottom: 0;
}
.sg-page .sg-ratings {
  width: 100%; border-collapse: collapse;
  background: #fff; color: var(--sg-ink);
  font-size: 0.72rem;
  border: 1.5px solid var(--sg-ink);
}
.sg-page .sg-ratings th,
.sg-page .sg-ratings td {
  border: 1px solid var(--sg-ink);
  padding: 0.22rem 0.4rem;
  text-align: center;
}
.sg-page .sg-ratings thead th {
  background: rgba(0,0,0,0.06);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sg-page .sg-ratings thead th small {
  display: block; font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.68rem; opacity: 0.7;
}
.sg-page .sg-ratings .tee-cell { width: 4.5rem; }
.sg-page .sg-dash { opacity: 0.45; }
.sg-page .sg-summary {
  width: 100%; border-collapse: collapse;
  background: #fff; color: var(--sg-ink);
  font-size: 0.78rem;
  border: 1.5px solid var(--sg-ink);
}
.sg-page .sg-summary th,
.sg-page .sg-summary td {
  border: 1px solid var(--sg-ink);
  padding: 0.3rem 0.45rem;
  text-align: center;
}
.sg-page .sg-summary thead th {
  background: rgba(0,0,0,0.06);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.sg-page .sg-summary .sg-summary-name {
  text-align: left;
  padding-left: 0.55rem;
}
.sg-page .sg-summary .sg-summary-val {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1c3a8b;
}
.sg-page .sg-firma-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.sg-page .sg-firma {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.sg-page .sg-firma-line {
  border-bottom: 1.5px solid var(--sg-ink);
  height: 2rem;
}
.sg-page .sg-footer {
  margin-top: 0.7rem; padding-top: 0.45rem;
  border-top: 1px solid rgba(0,0,0,0.45);
  font-size: 0.72rem; letter-spacing: 0.03em;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: center;
  color: var(--sg-ink);
}
.sg-page .sg-footer .sg-sep { opacity: 0.55; }

/* PDF-mode: vaste breedte, kleine tweaks zodat alles netjes blijft */
.sc-page.sg-page.sc-pdf-mode {
  background: var(--sg-yellow);
}

/* ============== La Hacienda scorekaart (wit + navy) ============== */
.sc-page.lh-page {
  --lh-navy: #0d3a55;
  --lh-ink: #1a2530;
  --lh-border: #c8cdd2;
  --lh-soft: #f4f6f8;
  display: block;
  background: #fff;
  color: var(--lh-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 1rem 1.1rem 1.1rem;
}
.lh-page .lh-header {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--lh-border);
}
.lh-page .lh-legends {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.78rem;
}
.lh-page .lh-legend-box {
  border: 1px solid var(--lh-border);
  border-radius: 2px;
}
.lh-page .lh-legend-title {
  background: var(--lh-soft);
  border-bottom: 1px solid var(--lh-border);
  padding: 0.18rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  text-align: center;
  color: var(--lh-ink);
}
.lh-page .lh-legend-row {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
}
.lh-page .lh-legend-row + .lh-legend-row {
  border-top: 1px dashed var(--lh-border);
}
.lh-page .lh-brand {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.lh-page .lh-logo-img {
  height: 5rem; width: auto;
  display: block;
}
.lh-page .lh-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--lh-ink);
  opacity: 0.7;
}
.lh-page .lh-meta {
  display: flex; flex-direction: column; gap: 0.6rem;
  min-width: 11rem;
}
.lh-page .lh-meta-row {
  display: flex; gap: 0.5rem; align-items: baseline;
  border-bottom: 1px solid var(--lh-ink);
  padding-bottom: 0.18rem;
}
.lh-page .lh-meta-lbl {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--lh-ink);
  min-width: 4.2rem;
}
.lh-page .lh-meta-val {
  flex: 1;
  font-family: "Caveat", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--lh-navy);
  line-height: 1;
}

/* Hoofdtabel */
.lh-page .lh-table-wrap { margin-top: 0.85rem; }
.lh-page .lh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: auto;
}
.lh-page .lh-table th,
.lh-page .lh-table td {
  border: 1px solid var(--lh-border);
  padding: 0.22rem 0.28rem;
  text-align: center;
  height: 1.45rem;
  vertical-align: middle;
}
.lh-page .lh-table thead th {
  background: var(--lh-navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.28rem;
  font-size: 0.82rem;
  border-color: var(--lh-navy);
}
.lh-page .lh-table thead th.sum {
  background: #082b40;
}
.lh-page .lh-table thead th.lbl {
  text-align: left; padding-left: 0.55rem;
  background: var(--lh-navy);
}
.lh-page .lh-table tbody th.lbl {
  text-align: left;
  padding-left: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  width: 6.5rem;
  font-size: 0.78rem;
}
.lh-page .lh-table tbody td.sum {
  background: var(--lh-soft);
  font-weight: 600;
}
.lh-page .lh-table tbody tr.dist td,
.lh-page .lh-table tbody tr.dist th { font-weight: 500; }
.lh-page .lh-table tbody tr.par td,
.lh-page .lh-table tbody tr.par th {
  background: #f7e9c9;
  font-weight: 700;
}
.lh-page .lh-table tbody tr.par td.sum { background: #ecd9a8; }
.lh-page .lh-table tbody tr.hcp-row td,
.lh-page .lh-table tbody tr.hcp-row th {
  font-size: 0.74rem;
  color: var(--lh-ink);
  opacity: 0.85;
}
.lh-page .lh-table tbody tr.player {
  height: 1.85rem;
}
.lh-page .lh-table tbody tr.player .player-name {
  color: var(--lh-navy);
  font-weight: 600;
  font-size: 0.85rem;
  vertical-align: middle;
}
.lh-page .lh-name-block {
  display: flex; flex-direction: column;
  line-height: 1.1;
  gap: 0.1rem;
}
.lh-page .lh-name {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--lh-navy);
  letter-spacing: 0.01em;
}
.lh-page .lh-strokes {
  font-family: "Caveat", Georgia, serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--lh-navy);
  opacity: 0.7;
}
.lh-page .lh-table tbody tr.player-pts td {
  height: 1.35rem;
  background: rgba(0,0,0,0.025);
}
.lh-page .lh-pts {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lh-navy);
  opacity: 0.78;
}
.lh-page .lh-pts-total {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lh-navy);
}
.lh-page .lh-table tbody tr.marker-row {
  background: var(--lh-soft);
}
.lh-page .lh-table tbody tr.marker-row th,
.lh-page .lh-table tbody tr.marker-row td {
  background: var(--lh-soft);
  height: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* Tee-bolletjes (legend + distance-rij) */
.lh-page .lh-dot {
  display: inline-block;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.35rem;
  border: 1px solid var(--lh-ink);
}
.lh-page .lh-dot-white  { background: #fff; }
.lh-page .lh-dot-yellow { background: #f5d916; border-color: #b89a00; }
.lh-page .lh-dot-silver { background: #c0c0c0; border-color: #888; }
.lh-page .lh-dot-red    { background: #cc1f1f; border-color: #7a0e0e; }
.lh-page .lh-tee-name {
  vertical-align: middle;
}

/* Score-cellen (handgeschreven Caveat in navy) */
.lh-page .lh-cell {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 1.2rem; min-height: 1.1rem;
}
.lh-page .lh-score {
  font-family: "Caveat", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--lh-navy);
}
.lh-page .lh-score.score-eagle  { color: #6b3a8a; }
.lh-page .lh-score.score-birdie { color: var(--lh-navy); }
.lh-page .lh-score.score-par    { color: #2a6431; }
.lh-page .lh-score.score-bogey  { color: #8a6a1f; }
.lh-page .lh-score.score-double { color: #a14a14; }
.lh-page .lh-score.score-loss   { color: #a31818; }
.lh-page .lh-stroke-dots {
  position: absolute; top: -2px; right: -7px;
  display: inline-flex; gap: 1px;
}
.lh-page .lh-stroke-dots .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--lh-navy);
}

.lh-page .lh-footer {
  margin-top: 0.7rem; padding-top: 0.5rem;
  border-top: 1px solid var(--lh-border);
  font-size: 0.72rem;
  text-align: center;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center;
  color: var(--lh-ink); opacity: 0.7;
}
.lh-page .lh-footer .lh-sep { opacity: 0.5; }
.sc-page.lh-page.sc-pdf-mode { background: #fff; }

/* ============== Neutrale scorekaart (clubs zonder eigen design) ==============
   Hergebruikt de La Hacienda CSS (.lh-page) maar voegt een aantal subtiele
   differentiators toe en gebruikt brand-CSS-variabelen ingesteld via inline
   style op het page-element zodat de accentkleur per club kan variëren. */
.sc-page.lh-page.lh-neutral {
  --lh-navy-deep: var(--lh-navy);  /* fallback wanneer geen aparte deep gezet is */
  padding-top: 0;                  /* het brand-streepje neemt de bovenrand over */
}
.lh-neutral .nh-stripe {
  display: block;
  height: 6px;
  margin: 0 -1.1rem 0.85rem;
  background: var(--lh-navy);
}
/* Donkerder accent voor sum-headers — overschrijft #082b40 uit LH */
.lh-neutral .lh-table thead th.sum {
  background: var(--lh-navy-deep);
}
/* Brand-naam fallback wanneer geen logo beschikbaar is */
.lh-neutral .nh-brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--lh-navy);
  text-transform: uppercase;
}
/* Tagline wat zachter zodat het logo dominanter blijft */
.lh-neutral .lh-tagline {
  opacity: 0.65;
  letter-spacing: 0.18em;
}
/* Logo-sizing: cap zowel hoogte als breedte zodat brede wordmarks (zoals
   Zagaleta — 800×73 px) niet de hele header domineren en de legends-kolom
   ruimte houden om Slope/CR op één regel te tonen. */
.lh-neutral .lh-logo-img {
  height: auto;
  max-height: 3rem;
  max-width: 18rem;
  width: auto;
  object-fit: contain;
}

/* Tijdens PDF-export: vaste breedte (297mm) zodat we de natuurlijke hoogte kunnen meten
   en die als PDF-paginahoogte gebruiken — alles past dan op 1 pagina zonder clipping. */
.sc-page.sc-pdf-mode {
  width: 297mm;
  max-width: 297mm;
  box-shadow: none;
}

/* 3 even brede luiken voor de hele pagina */
.sc-page { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 1rem; row-gap: 0.7rem; }
.sc-col-left   { grid-column: 1; }
.sc-col-middle { grid-column: 2; }
.sc-col-right  { grid-column: 3; }
.sc-col-full   { grid-column: 1 / -1; }
.sc-col-leftmid { grid-column: 1 / 3; }

/* Header per luik */
.sc-title h1 {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700; font-size: 3.5cqw; line-height: 1; color: var(--sc-primary);
  letter-spacing: 0.02em;
}
.sc-title h1 small { display: block; font-weight: 400; font-size: 2.55cqw; margin-top: 0.15rem; }
.sc-header-middle { display: flex; align-items: flex-start; justify-content: center; }
.sc-form-fields {
  font-size: 1.05cqw; line-height: 1.9; color: var(--sc-primary);
  width: 100%; max-width: 22cqw; margin-top: 0.3rem;
}
.sc-form-fields .fld {
  display: grid; grid-template-columns: 5rem 1fr; gap: 0.4rem; align-items: baseline;
}
.sc-form-fields .fld > .lbl { color: var(--sc-primary); font-weight: 500; }
.sc-form-fields .fld .value {
  border-bottom: 1px dotted var(--sc-primary); padding: 0 0.2rem 0.1rem;
  font-family: 'Caveat', cursive; color: #1e6dd0; font-size: 1.35cqw;
  font-weight: 600; min-height: 1.2em;
}
.sc-instructions {
  font-size: 1.05cqw; font-weight: 700; color: var(--sc-primary); line-height: 1.5;
  text-align: right; text-transform: uppercase; letter-spacing: 0.03em;
}

/* Hole-tabel: 2 naast elkaar (front+back) in de left+mid spanning cel */
.sc-hole-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-items: start; }

.sc-hole-table {
  border-collapse: collapse; width: 100%; font-size: 0.72cqw;
  background: #fff; table-layout: fixed;
}
.sc-hole-table th, .sc-hole-table td {
  border: 0.5px solid #d4d0bf; padding: 0.06rem 0.06rem;
  text-align: center; font-weight: 400; color: var(--sc-primary);
  height: 1.15cqw; box-sizing: border-box;
}
.sc-hole-table thead th {
  background: var(--sc-primary); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.78cqw;
}
.sc-hole-table tbody.distances th, .sc-hole-table tbody.distances td { background: #e9e4d3; }
.sc-hole-table tbody.meta th { font-weight: 700; }
.sc-hole-table th.lbl {
  text-align: left; padding-left: 0.4rem; width: 15%;
  font-weight: 700; white-space: nowrap; font-size: 0.72cqw;
}
.sc-hole-table tbody.players th.lbl, .sc-hole-table tbody.marker th.lbl {
  font-family: 'Caveat', cursive; color: #1e6dd0; font-size: 1.1cqw; font-weight: 600;
  background: #fff;
}
.sc-hole-table tbody.players tr.score-row td, .sc-hole-table tbody.marker tr.score-row td {
  height: 1.55cqw; vertical-align: middle;
}
/* Puntenrij — kleiner, geen bovenrand zodat ze visueel aan de score-rij vastzit */
.sc-hole-table tbody.players tr.pts-row td, .sc-hole-table tbody.marker tr.pts-row td {
  height: 0.9cqw; vertical-align: middle; border-top: none;
  background: #fafaf6;
}
.sc-pts {
  font-family: 'Caveat', cursive; font-weight: 600;
  color: #1e6dd0; font-size: 0.85cqw; line-height: 1;
}
.sc-pts-total {
  font-family: 'Caveat', cursive; font-weight: 700;
  color: #1e6dd0; font-size: 0.95cqw; line-height: 1;
}

/* Handgeschreven score in cel + annotaties */
.sc-score {
  font-family: 'Caveat', cursive; font-weight: 700;
  color: #1e6dd0; font-size: 1.2cqw; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.2cqw; height: 1.2cqw; box-sizing: border-box;
  border: 0.06cqw solid transparent;
}
.sc-score.eagle  {
  border-radius: 50%; border-color: currentColor;
  box-shadow: 0 0 0 0.06cqw #fff, 0 0 0 0.12cqw currentColor;
}
.sc-score.birdie { border-radius: 50%; border-color: currentColor; }
.sc-score.bogey  { border-color: currentColor; }
.sc-score.double {
  border-color: currentColor;
  box-shadow: 0 0 0 0.06cqw #fff, 0 0 0 0.12cqw currentColor;
}
.sc-score-total {
  font-family: 'Caveat', cursive; font-weight: 700; color: #1e6dd0; font-size: 1.2cqw;
}

/* Tee summary tabellen — naast elkaar (MEN + LADIES) in het rechter luik */
.sc-tee-tables {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; align-items: start;
}
.sc-tee-table {
  border-collapse: collapse; font-size: 0.7cqw; background: #fff; width: 100%;
  table-layout: fixed;
}
.sc-tee-table caption {
  caption-side: top; text-align: left; font-weight: 700; color: var(--sc-primary);
  font-size: 0.85cqw; padding-bottom: 0.1rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.sc-tee-table th, .sc-tee-table td {
  border: 0.5px solid #d4d0bf; padding: 0.05rem 0.15rem; text-align: center;
}
.sc-tee-table thead th {
  background: transparent; color: var(--sc-primary); font-weight: 500;
  text-transform: none; letter-spacing: 0;
}

/* Stroke-bolletjes — donkergroen, EXACT rechtsboven in de cel */
.sc-hole-table tbody.players td,
.sc-hole-table tbody.marker td { position: relative; }
.sc-stroke-dots-cell {
  position: absolute; top: 0.1cqw; right: 0.15cqw;
  display: flex; gap: 0.1cqw; pointer-events: none; line-height: 0;
}
.sc-stroke-dots-cell .dot {
  width: 0.24cqw; height: 0.24cqw; border-radius: 50%; background: var(--sc-primary);
}

/* Sponsor + QR codes onder de tee-tabellen — aspect ratio bewaard via width: auto */
.sc-right-bottom { margin-top: 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sc-laurier { text-align: center; width: 100%; }
.sc-laurier img {
  height: 8.5cqw; width: auto; max-width: 100%;
  display: block; margin: 0 auto;
}

.sc-qr-row {
  display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem;
  width: 100%;
}
.sc-qr-row .qr { text-align: center; }
.sc-qr-row .qr img {
  height: 6.5cqw; width: auto; max-width: 100%;
  display: block; margin: 0 auto;
}

/* Bottom speler-tabel: Name / WHS / Tee / Strokes / Net / Brut (2 spelers per tabel) */
.sc-bottom-table {
  border-collapse: collapse; width: 100%; font-size: 0.9cqw; margin-top: 0.5rem;
  table-layout: fixed;
}
.sc-bottom-table th, .sc-bottom-table td {
  border: 0.5px solid #d4d0bf; padding: 0.2rem 0.3rem;
  text-align: center; color: var(--sc-primary);
  height: 1.8cqw; box-sizing: border-box;
}
.sc-bottom-table thead th {
  font-weight: 600; background: transparent;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.78cqw;
  height: 1.6cqw;
}
/* Ingevulde waardes in blauw Caveat-handschrift */
.sc-bottom-table tbody td {
  font-family: 'Caveat', cursive; color: #1e6dd0;
  font-size: 1.35cqw; font-weight: 600; line-height: 1;
}
.sc-bottom-table .name-col {
  width: 32%; text-align: left; padding-left: 0.45rem;
}
.sc-bottom-table thead .name-col { font-weight: 600; }
.sc-bottom-table tbody .name-col { font-size: 1.25cqw; }

/* Software by Webatvantage — credit rechtsonderaan */
.sc-credit {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.6rem; margin-top: 0.5rem;
  color: var(--sc-primary);
  overflow: hidden;
}
.sc-credit-label {
  font-size: 0.85cqw; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap; flex-shrink: 0;
}
/* SVG viewBox is 106×20 (5.3:1) — explicit width+height vermijdt dat html2canvas
   het logo op natuurlijke pixel-grootte rendert i.p.v. op CSS-grootte. */
.sc-credit img {
  width: 8cqw; height: 1.51cqw; display: block; flex-shrink: 0;
  max-width: 100%;
}

@media print {
  body { background: #fff; }
  .sc-toolbar, .bottom-nav { display: none !important; }
  .sc-wrap { padding: 0; background: #fff; }
  .sc-page { box-shadow: none; max-width: 100%; padding: 0.5rem 0.6rem; }
  @page { size: A4 landscape; margin: 6mm; }
}
