:root {
  --bg: #0c0f0b;
  --panel: #141914;
  --text: #e6ebe4;
  --muted: #8b9588;
  --accent: #3d9a62;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family:
    ui-sans-serif,
    system-ui,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 50;
  background: var(--accent);
  color: #081008;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  outline: none;
}

.skip {
  clip-path: inset(50%);
}

.skip:focus {
  clip-path: none;
}

.site-head {
  border-bottom: 1px solid #232b22;
  background:
    radial-gradient(1200px 200px at 10% -30%, rgb(61 154 98 / 0.16), transparent),
    var(--panel);
}

.site-head__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.75rem;
}

.site-head .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.site-head h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-family:
    Georgia,
    'Times New Roman',
    serif;
}

.lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.score-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

.score-meta strong {
  color: var(--text);
}

.score-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

.scorecard {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.scorecard caption.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scorecard th,
.scorecard td {
  border: 1px solid #2a362a;
  padding: 0.35rem 0.42rem;
  text-align: center;
}

.scorecard thead th:first-child,
.scorecard tbody th[scope='row'] {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  background: #121713;
}

.scorecard thead th:not(:first-child) {
  background: #171c17;
  color: var(--text);
}

.scorecard tbody tr:nth-child(odd) td {
  background: rgb(0 0 0 / 12%);
}


.hole-notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #c9d3c8;
}

.hole-notes li {
  margin-bottom: 0.55rem;
}

.hole-notes li:last-child {
  margin-bottom: 0;
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

main h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

main h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}

main p {
  margin: 0 0 0.85rem;
  color: #c9d3c8;
}

.facility-notes {
  margin: 0;
  padding-left: 1.2rem;
  color: #c9d3c8;
}

.facility-notes li {
  margin-bottom: 0.55rem;
}

.facility-notes li:last-child {
  margin-bottom: 0;
}

.hole-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.85rem, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.hole-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border: 1px solid #293226;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hole-links a:hover {
  border-color: var(--accent);
  background: rgb(61 154 98 / 0.1);
}

.hole-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.crumb {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumb span:last-child::before {
  content: '/ ';
  opacity: 0.5;
}

/* Hole pages: quick jump strip (1–18); ArrowLeft / ArrowRight for prev/next hole */
.hole-track {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 0;
  border-bottom: 1px solid #1e261e;
}

.hole-track__nums {
  flex: 1;
  /* Critical: intrinsic width of all hole pills can prevent shrinking and spill the strip. */
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.38rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  align-items: center;
  padding-bottom: 2px;
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.hole-track__nums::-webkit-scrollbar {
  height: 6px;
}

.hole-track__nums::-webkit-scrollbar-thumb {
  background: #2f3a2f;
  border-radius: 999px;
}

.hole-track__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.95rem;
  padding: 0.32rem 0.4rem;
  border: 1px solid #293226;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

a.hole-track__num:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.hole-track__num--current {
  border-color: var(--accent);
  background: rgb(61 154 98 / 0.2);
  font-weight: 600;
  cursor: default;
}

.hole-nav-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.hole-nav-hint kbd {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid #2f3a2f;
  border-radius: 5px;
  background: var(--panel);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.hole-notes {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid #232b22;
  background: var(--panel);
}

.hole-gallery {
  margin-top: 1.25rem;
}

.hole-gallery__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  /* Multiple figures → two columns when space allows */
  .hole-gallery__grid:not(:has(:only-child)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hole-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hole-gallery__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #2a372a;
  background: linear-gradient(155deg, #1f2a21 0%, var(--panel) 45%, #111711 100%);
}

.hole-gallery__figure img {
  width: 100%;
  vertical-align: top;
  display: block;
  max-height: min(560px, 68vh);
  object-fit: contain;
}

.hole-gallery__figure--pending .map-placeholder {
  max-height: min(560px, 68vh);
}

.hole-gallery__cap {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hole-gallery__cap code {
  font-size: 0.85em;
  color: #a8b4a8;
}

.map-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: min(420px, 48vh);
  color: var(--muted);
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.12;
}

.hole-chip {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-foot {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.76rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
