/* Google Fonts are linked from each page's <head> (generated by infra/tools/seo-build.mjs) */

:root {
  --forest: #14213d;
  --forest-light: #1f3a66;
  --bronze: #3d4f73;
  --bronze-light: #7e8da8;
  --bronze-pale: #c3cee0;
  --cream: #f4f6f9;
  --white: #ffffff;
  --ink: #1a1f2b;
  --muted: #586273;
  --shadow: 0 10px 32px rgba(20, 33, 61, 0.14);
  --radius: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
/* Provisional figures awaiting club confirmation (stripped at launch) */
.tbc { }  /* provisional-figure markers: no visual, greppable */
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--forest); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(6px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 48px;
  width: auto;
  border-radius: 50%;
}
.brand-text {
  font-family: "Cormorant Garamond", serif;
  color: var(--white);
  line-height: 1.1;
}
.brand-text .title { font-size: 1.15rem; color: var(--white); font-weight: 700; display:block; }
.brand-text .subtitle { font-size: 0.72rem; color: var(--bronze-pale); letter-spacing: 1.5px; text-transform: uppercase; }

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.12); border-color: var(--bronze-pale); }
.menu-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-toggle .bars span { width: 18px; height: 2px; background: var(--white); display: block; }

/* ---------- Off-canvas menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(160deg, var(--forest) 0%, #0a1428 100%);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
body.menu-open .menu-overlay { transform: translateY(0); }
body.menu-open { overflow: hidden; }
.menu-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.menu-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}
.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}
.menu-links a {
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.menu-links a:hover { color: var(--bronze-pale); padding-left: 10px; }
.menu-utility {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bronze); color: var(--white); }
.btn-primary:hover { background: #2d3c5a; box-shadow: 0 6px 16px rgba(61,79,115,0.4); }
.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Photos fill the whole first screen; dvh tracks mobile browser chrome */
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 76px; /* keep the text centred in the area below the fixed header */
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
/* The photos are pinned to the viewport; the page scrolls up over them
   (the .hero element itself stays in flow as the spacer that sets where
   the curtain of content starts). */
.hero-slides {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,38,0.78), rgba(20,33,61,0.42));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.45);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 20px;
}
.hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Everything after the pinned hero rides above the photos with an opaque
   background, so scrolling slides the page over them like a curtain. */
.hero ~ section { position: relative; z-index: 1; background: var(--cream); }
.hero ~ section.section-alt { background: var(--white); }
.hero ~ .site-footer { position: relative; z-index: 1; }

.page-hero {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: var(--white);
  padding: 150px 24px 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.loading { color: var(--muted); font-style: italic; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head .eyebrow-dark {
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
/* Stat tiles that act as links (front page) */
.card-link { display: block; text-align: center; color: var(--forest); text-decoration: none; cursor: pointer; }
.card-link strong { display: block; }
.card-link .card-link-hint { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); transition: color 0.15s; }
.card-link:hover { box-shadow: 0 14px 36px rgba(20, 33, 61, 0.2); }
.card-link:hover .card-link-hint { color: var(--bronze); }
/* Front-page map preview card */
.map-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
.map-card:hover { transform: none; }
.map-card iframe { display: block; width: 100%; height: 240px; border: 0; }
.map-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; font-size: 0.85rem; color: var(--muted); }
.map-caption a { font-weight: 600; white-space: nowrap; }
.tile-row { gap: 16px; }
.tile-row .card { padding: 22px 12px; }

.list-icon { list-style: none; padding-left: 0; margin: 0 0 1.2em; }
.list-icon li { margin: 0.55em 0; padding-left: 1.6em; position: relative; }
.list-icon li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--bronze);
  font-weight: 700;
}

.cta-banner {
  background: linear-gradient(120deg, var(--forest), var(--forest-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 52px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.cta-strip {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip h2, .cta-strip p { color: var(--white); margin: 0; }

.booking-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.booking-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  border: 2px solid transparent;
  display: block;
}
.booking-tile:hover { border-color: var(--bronze); }
.booking-tile .icon { font-size: 2.1rem; }
.booking-tile h3 { margin-bottom: 6px; }
.booking-tile p { font-size: 0.92rem; margin-bottom: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid img {
  border-radius: 8px;
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.photo-grid img:hover { transform: scale(1.03); }

table.handicap-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.handicap-table th, table.handicap-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e1e6ee;
}
table.handicap-table th {
  background: var(--forest);
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}
table.handicap-table tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  background: rgba(61,79,115,0.12);
  color: var(--bronze);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ---------- Scorecard ---------- */
.scorecard-wrap {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.scorecard {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  font-size: 0.92rem;
}
table.scorecard th, table.scorecard td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #e1e6ee;
}
/* keep yardage pairs and the course card on one line; everything else may wrap */
table.coursecard th, table.coursecard td,
td.col-blue, td.col-white, td.col-yellow, td.col-red { white-space: nowrap; }
table.scorecard thead th {
  background: var(--forest);
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1rem;
  position: sticky;
  top: 0;
}
table.scorecard thead th.th-blue { background: #1f4d8c; }
table.scorecard thead th.th-white { background: #f2f4f7; color: var(--forest); border-bottom: 2px solid #c7ccd6; }
table.scorecard thead th.th-yellow { background: #e8c547; color: #3a2f00; }
table.scorecard thead th.th-red { background: #a3273a; }
table.scorecard td.hole-name { text-align: left; }
table.scorecard a.hole-row-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 600;
}
table.scorecard a.hole-row-link:hover { color: var(--bronze); }
table.scorecard a.hole-row-link .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
table.scorecard tbody tr { cursor: pointer; transition: background 0.15s; }
table.scorecard tbody tr:hover { background: var(--cream); }
table.scorecard tr.subtotal td { background: #e8ecf2; font-weight: 700; }
table.scorecard tr.total td { background: var(--forest); color: var(--white); font-weight: 700; }
.th-abbr { display: none; }
table.scorecard td.col-blue { color: #1f4d8c; font-weight: 600; }
table.scorecard td.col-white { color: #4a5260; font-weight: 600; background: #f7f8fa; }
table.scorecard td.col-yellow { color: #6b5a00; font-weight: 600; background: #fdf6dd; }
table.scorecard td.col-red { color: #a3273a; font-weight: 600; }
.scorecard-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.scorecard-legend span { display: inline-flex; align-items: center; gap: 6px; }
.scorecard-legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Hole grid ---------- */
.hole-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
}
.hole-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  border: 1px solid rgba(20,33,61,0.15);
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 4px 14px rgba(20,33,61,0.06);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.hole-button:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }

.hole-meta { display: flex; gap: 28px; margin: 20px 0; flex-wrap: wrap; }
.hole-meta div { text-align: center; }
.hole-meta span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.hole-meta strong { font-family: "Inter", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--forest); }
.video-card iframe, .video-placeholder {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  min-height: 320px;
}
.video-placeholder {
  background: var(--forest);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 24px;
}
.video-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--forest);
  aspect-ratio: 16 / 9;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}
.video-thumb:hover img { transform: scale(1.04); filter: brightness(0.85); }
.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb .play-badge span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(216, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.video-thumb:hover .play-badge span { transform: scale(1.08); }
.video-thumb .play-badge svg { width: 26px; height: 26px; fill: var(--white); margin-left: 3px; }
.hole-nav { display: flex; justify-content: space-between; margin-top: 32px; flex-wrap: wrap; gap: 12px; }

/* ---------- Membership ---------- */
.membership-fee-list { display: flex; flex-direction: column; gap: 14px; }
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(20,33,61,0.12);
  border-radius: var(--radius);
  background: var(--white);
}
.fee-row.featured { background: linear-gradient(135deg, rgba(61,79,115,0.1), rgba(20,33,61,0.04)); border-color: rgba(61,79,115,0.25); }
.fee-row.stack { align-items: flex-start; }
.fee-amount { font-size: 1.4rem; font-weight: 700; color: var(--forest); white-space: nowrap; font-family: "Cormorant Garamond", serif; }
.under35-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.under35-grid div { padding: 14px 16px; border-radius: 10px; background: var(--cream); border: 1px solid rgba(20,33,61,0.08); }
.under35-grid span { display: block; font-size: 0.85rem; color: var(--muted); }
.under35-grid strong { display: block; font-size: 1.05rem; color: var(--forest); }
.contact-panel { padding: 20px; border-radius: var(--radius); background: var(--cream); border: 1px solid rgba(20,33,61,0.08); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item strong { display: block; color: var(--forest); margin-bottom: 4px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
iframe.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer.site-footer { background: #0a1428; color: rgba(255,255,255,0.72); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; font-family: "Inter", sans-serif; font-weight: 700; }
.footer-grid a { color: rgba(255,255,255,0.72); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--bronze-pale); }
.footer-brand img { height: 60px; margin-bottom: 14px; border-radius: 50%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.82rem; }

/* ---------- Application Form ---------- */
.app-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 44px;
}
.app-form legend {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream);
  width: 100%;
}
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--forest); }
.form-field .hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(20,33,61,0.1);
}

.membership-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.type-card { position: relative; }
.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.type-card .type-card-body {
  display: block;
  text-align: center;
  padding: 18px 10px;
  border: 2px solid #e1e6ee;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--forest);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.type-card input[type="radio"]:checked ~ .type-card-body {
  border-color: var(--forest);
  background: var(--cream);
}
.type-card .type-card-body small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.type-card input[type="radio"]:disabled ~ .type-card-body {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f1f2f4;
  border-color: #e1e6ee;
}
.type-card input[type="radio"]:disabled ~ .type-card-body small { color: #a3273a; }

.fee-panel {
  display: none;
  background: var(--cream);
  border: 1px solid #e1e6ee;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.fee-panel.active { display: block; }
.fee-panel h4 { margin-bottom: 8px; }
.fee-panel .amount { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; color: var(--forest); font-weight: 700; }
.fee-panel ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.88rem; }
.fee-panel ul li { margin-bottom: 6px; }

.radio-pair { display: flex; gap: 24px; align-items: center; }
.radio-pair label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.radio-pair input:disabled ~ * , .radio-pair input:disabled { cursor: not-allowed; }
.radio-pair label:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.year-field.hidden-field { display: none; }

.age-block-notice {
  display: none;
  background: #fbe6e9;
  border: 1px solid #e3a6ae;
  color: #7a1f2b;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.age-block-notice.active { display: block; }
.app-form.age-blocked fieldset:not(.always-active) { opacity: 0.35; pointer-events: none; }

.conditional-block {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #d7dbe3;
}
.conditional-block.active { display: block; }

.history-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  margin-bottom: 12px;
  align-items: end;
}
.history-row .remove-club {
  background: none;
  border: 1px solid #e1e6ee;
  color: #a3273a;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.history-row .remove-club:hover { background: #fbe6e9; }
#addClubBtn { margin-top: 4px; }

.declaration-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-size: 0.9rem; color: var(--ink); }

.note-box {
  background: #fdf6dd;
  border: 1px solid #ecd98a;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #6b5a00;
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .membership-type-grid { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr; }
  .history-row .remove-club { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .booking-strip { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .under35-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
  .menu-toggle span.bars { display: none; }
}

/* ---------- Mobile tables: no sideways scrolling ---------- */
@media (max-width: 640px) {
  /* metres + unit suffixes hide on phones (yards only) */
  .mtr, .unit { display: none; }

  table.scorecard th, table.scorecard td { padding: 8px 6px; font-size: 0.8rem; }

  /* course scorecard: extra tight so all columns fit one screen */
  table.coursecard th, table.coursecard td { padding: 7px 3px; font-size: 0.72rem; white-space: nowrap; }
  table.coursecard .th-full { display: none; }
  table.coursecard .th-abbr { display: inline; }
  table.coursecard a.hole-row-link .num { display: none; }
  table.coursecard a.hole-row-link { gap: 0; }

  /* generic data tables become stacked label/value cards
     (child combinators so tables nested inside expanded rows are untouched) */
  table.stack-sm, table.stack-sm > tbody { display: block; width: 100%; }
  table.stack-sm > thead { display: none; }
  table.stack-sm > tbody > tr { display: block; border: 1px solid #e1e6ee; border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; background: var(--white); }
  table.stack-sm > tbody > tr > td { display: block; border-bottom: none; padding: 5px 0; }
  table.stack-sm > tbody > tr > td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
  table.stack-sm > tbody > tr > td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; flex-shrink: 0; }
  table.stack-sm > tbody > tr > td[data-empty] { display: none; }
  table.stack-sm > tbody > tr.result-row { padding: 0; border: none; background: none; }
  table.stack-sm > tbody > tr.result-row > td { padding: 0 0 10px; }
}
@media (max-width: 760px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .page-hero { padding: 130px 24px 48px; }
  .fee-row { align-items: flex-start; flex-direction: column; }
  .fee-amount { white-space: normal; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* Hole pages: breadcrumb + all-holes strip */
.crumbs { font-size: 0.82rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--forest); font-weight: 600; }
.hole-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 32px 0 8px; }
.hole-strip-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-right: 6px; width: 100%; }
.hole-strip .btn { padding: 6px 0; min-width: 38px; text-align: center; font-size: 0.8rem; }

/* Front page key-facts line (answer-ready summary for search) */
.key-facts { font-size: 0.9rem; line-height: 1.8; color: var(--muted); margin: 0 0 1em; }
.key-facts strong { color: var(--forest); }

/* Short pages: keep the footer at the bottom of the window */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .site-footer { margin-top: auto; }

/* App install sheet (assets/js/pwa.js) */
.install-sheet { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 440px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); padding: 16px 18px; }
.install-sheet h4 { margin: 0 0 8px; }
.install-sheet ol { margin: 0 0 10px 18px; padding: 0; font-size: 0.95rem; line-height: 1.5; }
.install-sheet p { margin: 0 0 12px; font-size: 0.92rem; }
