:root {
  --wales-red: #D85A30;
  --wales-green: #639922;
  --text-primary: #222;
  --text-secondary: #666;
  --border: #e2e2e2;
  --surface: #f7f6f2;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

.top-stripe { display: flex; height: 4px; }
.top-stripe span { flex: 1; }
.stripe-red { background: var(--wales-red); }
.stripe-gap { background: transparent; }
.stripe-green { background: var(--wales-green); }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .logo { font-weight: 600; text-decoration: none; color: inherit; font-size: 1.1rem; }
.site-header nav { flex: 1; text-align: center; }
.site-header nav a { margin: 0 1rem; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.nav-cta {
  background: var(--wales-red);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.hero {
  background: white;
  border-left: 4px solid var(--wales-green);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0;
}
.hero h1 { margin: 0 0 6px; }
.hero-sub { color: var(--text-secondary); max-width: 480px; margin: 0 0 1.25rem; }
.hero-search { display: flex; gap: 8px; max-width: 620px; }
.hero-search input, .hero-search select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.hero-search input { flex: 2; }
.hero-search select { flex: 1; }
.hero-search button {
  background: var(--wales-green);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 1.5rem 0; }
.stat-card {
  background: white;
  border-top: 2px solid var(--wales-red);
  border-radius: 8px;
  padding: 1rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover, .stat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.stat-card:nth-child(even) { border-top-color: var(--wales-green); }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 4px; }
.stat-value { font-size: 1.5rem; font-weight: 600; margin: 0; }

.event-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.event-card-top .badge { margin-bottom: 0; }
.days-until {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--wales-green);
  background: #EAF3DE;
  padding: 3px 9px;
  border-radius: 6px;
}
.days-until-today { color: white; background: var(--wales-red); }

.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.region-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.region-card:hover, .region-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--wales-green);
}
.region-name { font-weight: 600; margin: 0 0 2px; }
.region-count { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem 0 0.75rem; }
.section-header a { color: var(--wales-green); text-decoration: none; font-size: 0.9rem; }

.badge {
  display: inline-block;
  background: #FAECE7;
  color: #712B13;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.cta-banner {
  background: white;
  border-left: 4px solid var(--wales-red);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-title { font-weight: 600; margin: 0 0 2px; }
.cta-sub { color: var(--text-secondary); margin: 0; font-size: 0.9rem; }
.cta-button {
  background: var(--wales-red);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.container { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }

.event-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.event-card:hover, .event-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--wales-green);
}
.event-card:active { transform: translateY(0); box-shadow: none; }

.event-card-title { font-weight: 600; margin: 0 0 4px; }
.event-card-club { color: var(--text-secondary); margin: 0 0 8px; font-size: 0.9rem; }
.event-card-meta { color: #999; font-size: 0.85rem; margin: 0; }

.details-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.details-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.details-table td:first-child { color: var(--text-secondary); width: 35%; }

.event-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.detail-card .details-table { margin: 0.5rem 0 0; }
.detail-card-heading { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary); }

.fee-tiers-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.9rem; }
.fee-tiers-table th { text-align: left; color: var(--text-secondary); font-weight: 400; font-size: 0.8rem; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.fee-tiers-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.fee-tiers-table td:last-child { text-align: right; font-weight: 500; }

.how-to-enter { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.enter-button {
  display: inline-block;
  background: var(--wales-green);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.enter-contact { font-size: 0.85rem; color: var(--text-secondary); margin: 4px 0; }
.enter-contact a { color: var(--wales-green); }
.enter-fallback { font-size: 0.85rem; color: var(--text-secondary); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.updates-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.updates-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; font-size: 0.85rem; }
.updates-list li:last-child { border-bottom: none; }
.update-date { color: var(--text-muted, #999); white-space: nowrap; min-width: 80px; }
.update-message { color: var(--text-primary); }

.course-image { width: 100%; border-radius: 8px; margin: 0.75rem 0; display: block; }
.h1-club { font-weight: 400; color: var(--text-secondary); font-size: 0.65em; }

.course-club-name { font-weight: 600; margin: 0.5rem 0 2px; }
.course-address { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 0.5rem; }
.course-description { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin: 0 0 0.75rem; }
.course-links { display: flex; flex-direction: column; gap: 6px; }
.course-links a { color: var(--wales-green); text-decoration: none; font-size: 0.9rem; }

.social-links { display: flex; gap: 10px; margin-top: 0.5rem; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.social-links a:hover { transform: translateY(-2px); opacity: 0.85; }
.social-icon { width: 29px; height: 29px; }

.map-embed { width: 100%; height: 220px; border: 0; border-radius: 8px; margin-top: 0.5rem; }

.scorecard-scroll { overflow-x: auto; margin-top: 0.5rem; }
.scorecard-full-width .scorecard-table { font-size: 0.85rem; }
.scorecard-full-width .scorecard-table th, .scorecard-full-width .scorecard-table td { padding: 6px 12px; }
.scorecard-table { width: auto; min-width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.scorecard-table th, .scorecard-table td { padding: 4px 8px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.scorecard-table th:first-child, .scorecard-table td:first-child { text-align: left; color: var(--text-secondary); position: sticky; left: 0; background: var(--surface-2, white); }
.scorecard-note { font-size: 0.8rem; color: var(--text-secondary); margin: 0.25rem 0 0; }
.scorecard-nine-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin: 1rem 0 0.25rem; }
.scorecard-nine-label:first-of-type { margin-top: 0.5rem; }
.scorecard-totals { display: flex; gap: 1.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.85rem; flex-wrap: wrap; }
.scorecard-totals strong { font-weight: 500; }

.tee-white td { background: #f2f2f0; }
.tee-yellow td { background: #fdf6d8; }
.tee-red td { background: #fbe4e0; }
.tee-blue td { background: #e3edfa; }
.tee-black td { background: #e6e6e6; }
.tee-gold td { background: #f7edcf; }
.tee-orange td { background: #fde8d4; }
.tee-green td { background: #e2f1df; }
.tee-purple td { background: #ece4f7; }
.tee-silver td { background: #eef0f2; }
.tee-other td { background: #f6f6f4; }
.tee-row td:first-child { font-weight: 500; white-space: nowrap; }

.tour-name { font-weight: 600; margin: 0.5rem 0 4px; }
.tour-desc { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 0.75rem; }

.course-stats-summary { display: flex; gap: 2rem; margin: 0.75rem 0 1.25rem; }
.course-stats-summary > div { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 500; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.par-stat-row { margin-bottom: 1.25rem; }
.par-stat-row:last-child { margin-bottom: 0; }
.par-stat-label { font-weight: 500; margin: 0 0 8px; font-size: 0.95rem; }
.par-stat-count { font-weight: 400; color: var(--text-secondary); font-size: 0.8rem; margin-left: 6px; }
.par-stat-track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 6px; }
.par-stat-marker { position: absolute; top: -4px; width: 4px; height: 12px; background: var(--wales-green); border-radius: 2px; transform: translateX(-50%); }
.par-stat-endpoints { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); }
.par-stat-endpoints strong { display: block; color: var(--text-primary); font-weight: 500; font-size: 0.9rem; }
.par-stat-avg { text-align: center; }
.par-stat-long { text-align: right; }

.calendar-link { color: var(--wales-green); text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.cal-icon { font-style: normal; }

.weather-row { display: flex; align-items: baseline; gap: 8px; margin: 0.5rem 0 4px; }
.weather-temp { font-size: 1.75rem; font-weight: 500; }
.weather-temp-low { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.weather-detail { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

@media (max-width: 640px) {
  .event-detail-grid { grid-template-columns: 1fr; }
}

.related-list { list-style: none; padding: 0; }
.related-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-list a { color: inherit; text-decoration: none; }

.submit-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.submit-form label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--text-secondary); gap: 4px; }
.submit-form input, .submit-form textarea { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.submit-form button {
  background: var(--wales-red);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.success-message { color: var(--wales-green); }
.error-message { color: var(--wales-red); }

.breadcrumb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }

.subtitle { color: var(--text-secondary); }

.site-footer { text-align: center; padding: 2rem; color: #999; font-size: 0.85rem; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--wales-green); }

.age-chips { display: flex; gap: 8px; margin-top: 0.75rem; flex-wrap: wrap; }
.age-chip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 12px;
  text-decoration: none;
}
.age-chip:hover { border-color: var(--wales-green); color: var(--wales-green); }

.filters { display: flex; gap: 8px; margin: 1rem 0; flex-wrap: wrap; }
.filters input, .filters select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.filters input { flex: 1; min-width: 200px; }
.filters button {
  background: var(--wales-green);
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Admin */
.admin-nav { display: flex; gap: 1rem; margin: 1rem 0 1.5rem; }
.admin-nav a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.pending-badge {
  background: var(--wales-red);
  color: white;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}
.admin-quick-links { display: flex; gap: 0.75rem; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; }
.admin-button {
  display: inline-block;
  background: var(--wales-green);
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table th { color: var(--text-secondary); font-weight: 500; font-size: 0.8rem; }

.status-pill { padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; text-transform: capitalize; }
.status-confirmed, .status-approved { background: #EAF3DE; color: #27500A; }
.status-tentative, .status-pending { background: #FAEEDA; color: #633806; }
.status-cancelled, .status-rejected { background: #FCEBEB; color: #791F1F; }

.admin-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 640px; margin-top: 1rem; }
.admin-form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.admin-form legend { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); padding: 0 6px; }
.admin-form label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-secondary); gap: 4px; }
.admin-form input, .admin-form select, .admin-form textarea { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.9rem; }

.password-field { position: relative; display: flex; }
.password-field input { flex: 1; padding-right: 60px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--wales-green);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
}
.password-toggle:hover { text-decoration: underline; }
.admin-form textarea { font-family: monospace; font-size: 0.8rem; }
.admin-form button {
  align-self: flex-start;
  background: var(--wales-green);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.admin-danger-zone { margin-top: 1.5rem; }
.admin-delete-button {
  background: var(--wales-red);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Form builder */
.fb-meta { display: flex; flex-direction: column; gap: 0.75rem; max-width: 640px; margin-bottom: 1rem; }
.fb-meta label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-secondary); gap: 4px; }
.fb-meta input, .fb-meta textarea { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }

.fb-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; margin: 1rem 0; }
@media (max-width: 640px) { .fb-layout { grid-template-columns: 1fr; } }

.fb-palette { display: flex; flex-direction: column; gap: 6px; }
.fb-palette-item {
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.fb-palette-item:active { cursor: grabbing; }
.fb-palette-item:hover { border-color: var(--wales-green); color: var(--wales-green); }
.fb-palette-item[data-preset="age"] { border-color: var(--wales-green); font-weight: 500; }

.fb-canvas-wrap { min-height: 200px; }
#form-canvas { display: flex; flex-direction: column; gap: 10px; min-height: 100px; }

.fb-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; }
.fb-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.8rem; color: var(--text-secondary); }
.fb-drag-handle {
  cursor: grab;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wales-green);
  background: #EAF3DE;
  padding: 6px 12px;
  border-radius: 6px;
  user-select: none;
  touch-action: none;
}
.fb-drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.sortable-drag { opacity: 0.9; }
.fb-type-badge { text-transform: capitalize; flex: 1; }
.fb-required-toggle { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; }
.fb-delete-btn { background: none; border: none; color: var(--wales-red); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.fb-field-label-wrap { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.fb-field-label-wrap input, .fb-field-label-wrap textarea { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }

.fb-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.fb-actions a { color: var(--wales-green); font-size: 0.9rem; }

/* Form builder preview modal */
.fb-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.fb-preview-modal {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.fb-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}
.fb-preview-fields { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.fb-preview-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.fb-preview-field input, .fb-preview-field select, .fb-preview-field textarea {
  padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit;
}
.fb-preview-radio, .fb-preview-checkbox { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 400; }

/* Uploaded image previews */
.admin-image-preview { display: block; max-width: 200px; max-height: 120px; border-radius: 6px; margin: 6px 0; border: 1px solid var(--border); }
.club-logo-inline { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }

.club-banner-wrap { position: relative; margin-bottom: 0.5rem; }
.club-banner-image { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.club-banner-logo {
  position: absolute;
  left: 24px;
  bottom: -36px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid white;
  background: white;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.club-header-info.has-overlapping-logo { margin-left: 120px; margin-top: -4px; min-height: 44px; }
@media (max-width: 480px) {
  .club-banner-image { height: 140px; }
  .club-banner-logo { width: 64px; height: 64px; left: 16px; bottom: -28px; }
  .club-header-info.has-overlapping-logo { margin-left: 90px; }
}

/* Smaller version for the event page's sidebar Course card */
.club-banner-wrap-small { margin-bottom: 0.25rem; }
.club-banner-image-small { height: 120px; border-radius: 10px; }
.club-banner-logo-small { width: 52px; height: 52px; left: 14px; bottom: -20px; border-width: 3px; }
.course-club-name.has-overlapping-logo-small { margin-left: 80px; margin-top: -2px; min-height: 24px; }

/* ---------- Club profile page ---------- */
.club-title-row { display: flex; align-items: center; gap: 12px; }
.club-title-row h1 { margin: 0.25rem 0; }
.club-logo-header { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--border); padding: 4px; }
.club-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.75rem 0 1.5rem; }
.club-action {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem;
  border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; background: #fff;
}
.club-action:hover { border-color: var(--wales-green); color: var(--wales-green); }
.club-action.primary { background: var(--wales-green); border-color: var(--wales-green); color: #fff; }
.club-action.primary:hover { opacity: 0.9; color: #fff; }
.club-description { line-height: 1.6; margin: 0.5rem 0 0; white-space: pre-line; } /* show line breaks typed in admin: Enter twice for a new paragraph */
.muted { color: var(--text-secondary); }
.small { font-size: 0.85rem; }
.tee-list { list-style: none; padding: 0; margin: 0; }
.tee-list li { padding: 2px 0; }
.tee-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; border: 1px solid #999; vertical-align: middle; background: #ccc; }
.tee-dot-white { background: #fff; }
.tee-dot-yellow { background: #f2c94c; }
.tee-dot-red { background: #d64545; }
.tee-dot-blue { background: #2f6fd6; }
.tee-dot-black { background: #222; }
.tee-dot-green { background: #3a9b3a; }
.tee-dot-gold { background: #c9a227; }
.tee-dot-orange { background: #f08a24; }
.tee-dot-purple { background: #7b4fc9; }
.tee-dot-silver { background: #c0c4c8; }
.tee-dot-other { background: #fff; border-style: dashed; }
.club-event-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.club-event-list li + li { border-top: 1px solid var(--border); }
.club-event { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; }
.club-event:hover strong { color: var(--wales-green); }
.club-event-date {
  flex: 0 0 52px; text-align: center; border: 1px solid var(--border); border-radius: 8px; padding: 4px 0; background: var(--surface);
}
.club-event-day { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.club-event-month { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary); }
.club-event-body { display: flex; flex-direction: column; gap: 2px; }
.related-list.compact li { padding: 4px 0; }
.nearby-clubs { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.nearby-clubs li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.nearby-clubs li:last-child { border-bottom: 0; }
.nearby-clubs a { color: var(--wales-green); text-decoration: none; }
.nearby-clubs .small { white-space: nowrap; }
.club-claim { background: var(--surface); }

/* ---------- SEO / county pages ---------- */
.hero-eyebrow { margin: 0 0 0.25rem; font-weight: 600; color: var(--wales-green); letter-spacing: 0.02em; }
.county-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5rem 0 2rem; }
.filters select + select { margin-left: 0.25rem; }
.footer-note { font-size: 0.8rem; color: var(--text-secondary); max-width: 46rem; margin: 0.5rem auto 0; }
.badge-nine { background: #eaf3df; color: #3d6b14; border: 1px solid #c9e0ad; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.club-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0.5rem 0 1rem; }
.badge-courses { background: #eef2f8; color: #2f4f7a; border: 1px solid #cdd8e8; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.course-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.course-list li + li { border-top: 1px solid var(--border); }
.course-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: inherit; text-decoration: none; }
.course-item:hover .course-item-name { color: var(--wales-green); }
.course-item-name { font-weight: 600; }
.course-played-on { margin: 0.1rem 0 0.4rem; font-weight: 600; color: var(--wales-green); }
.course-admin-row { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; flex-wrap: wrap; }
