.course-page {
  padding-bottom: 5rem;
}

.course-section-kicker {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.course-section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.course-intro-section,
.course-scorecard-section,
.course-holes-section {
  padding-top: 3.5rem;
}

.course-article {
  max-width: none;
}

.course-scorecard-table__tee--yellow th {
  color: #8c6b11;
}

.course-scorecard-table__tee--red th {
  color: #a2404c;
}

.course-section-kicker {
  color: var(--green-800);
}

.course-section-title {
  color: var(--green-950);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.course-section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-scorecard-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 63, 48, 0.08);
}

.course-scorecard-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.course-scorecard-table th,
.course-scorecard-table td {
  padding: 0.7rem 0.22rem;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: nowrap;
}

.course-scorecard-table thead th {
  color: #fff;
  background: var(--green-900);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-scorecard-table th:first-child,
.course-scorecard-table td:first-child {
  width: 4.5rem;
}

.course-scorecard-table thead th:nth-child(11),
.course-scorecard-table thead th:nth-child(21),
.course-scorecard-table thead th:last-child {
  color: var(--gold-soft);
}

.course-scorecard-table tbody th {
  color: var(--green-900);
  background: rgba(18, 63, 48, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-scorecard-table tbody tr:nth-child(even) td {
  background: rgba(18, 63, 48, 0.03);
}

.course-scorecard-table__subtotal {
  background: rgba(18, 63, 48, 0.08);
  font-weight: 700;
}

.course-scorecard-table tbody td:last-child,
.course-scorecard-table thead th:last-child,
.course-scorecard-table tbody td:nth-child(11),
.course-scorecard-table tbody td:nth-child(21) {
  font-weight: 700;
  color: var(--gold);
}

.course-scorecard-shell {
  margin-top: 2rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.course-scorecard-summary__card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.course-scorecard-summary__card small {
  display: block;
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-scorecard-summary__card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.course-scorecard-summary__card span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.course-scorecard-summary__card--yellow {
  background: linear-gradient(180deg, rgba(242, 224, 168, 0.46) 0%, rgba(255, 250, 234, 0.96) 100%);
}

.course-scorecard-summary__card--red {
  background: linear-gradient(180deg, rgba(208, 146, 155, 0.28) 0%, rgba(255, 244, 245, 0.96) 100%);
}

.course-hole-layout {
  margin-top: 0.25rem;
}

.course-hole-row {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(18, 63, 48, 0.08);
}

.course-hole-row__image-wrap {
  position: relative;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}

.course-hole-row__image-wrap img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hole-row__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--paper-light) 0%, var(--paper-2) 100%);
}

.course-hole-row__topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.course-hole-row__eyebrow {
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.course-hole-row__number {
  color: rgba(18, 63, 48, 0.18);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 0.9;
}

.course-hole-row__title {
  margin: 0.35rem 0 0;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.course-hole-row__stats {
  margin-top: 1.35rem;
}

.course-hole-row__stat {
  height: 100%;
  padding: 1rem 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.course-hole-row__stat small {
  display: block;
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-hole-row__stat strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.course-hole-row__meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.course-hole-row__meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(18, 63, 48, 0.1);
  border-radius: var(--radius-md);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .course-scorecard-table-wrap {
    overflow-x: auto;
  }

  .course-scorecard-table {
    min-width: 1100px;
  }
}

@media (max-width: 767.98px) {

  .course-scorecard-table {
    min-width: 980px;
  }

  .course-hole-row__stats {
    grid-template-columns: 1fr;
  }

  .course-intro-section,
  .course-scorecard-section,
  .course-holes-section {
    padding-top: 2.75rem;
  }

  .course-scorecard-shell {
    padding: 1rem;
  }

  .course-hole-row__image-wrap {
    min-height: 240px;
  }
}

/* Overview and scorecard only: the approved hole-by-hole component is untouched. */
.course-intro-section { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.course-intro-section .course-section-title { max-width: 15ch; }
.course-intro-section .course-section-kicker { color: var(--green-800); }
.course-intro-section .course-article > :first-child { margin-top: 0; }
.course-scorecard-summary__card h3 {
  margin: 0 0 0.75rem;
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.course-scorecard-summary__card dl { margin: 0; }
.course-scorecard-summary__card dl > div + div {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(18, 63, 48, 0.12);
}
.course-scorecard-summary__card dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.course-scorecard-summary__card dd {
  margin: 0.2rem 0 0;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  white-space: nowrap;
}
.course-scorecard-table-wrap { position: relative; }
.course-scorecard-table-wrap:focus-visible { outline: 2px solid var(--green-800); outline-offset: 3px; }
.course-scorecard-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  box-shadow: 1px 0 rgba(18, 63, 48, 0.12);
}
.course-scorecard-table thead th:first-child { background: var(--green-900); }
@media (max-width: 767.98px) {
  .course-scorecard-shell { padding: 0.65rem; }
  .course-scorecard-summary { --bs-gutter-x: 0.45rem; }
  .course-scorecard-summary__card { padding: 0.7rem 0.4rem; }
  .course-scorecard-summary__card h3 { font-size: 0.6rem; letter-spacing: 0.04em; }
  .course-scorecard-summary__card dt { font-size: 0.7rem; }
  .course-scorecard-summary__card dd { font-size: clamp(1.05rem, 4.3vw, 1.45rem); }
  .course-scorecard-summary__card dl > div + div { margin-top: 0.55rem; padding-top: 0.55rem; }
}
