.luxury-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: #172219;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy-panel {
  position: relative;
  z-index: 1;
  max-width: 780px;
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 8vw, 118px) clamp(18px, 6vw, 88px);
  color: white;
  background: linear-gradient(90deg, rgba(6, 20, 13, 0.86), rgba(6, 20, 13, 0.58) 58%, transparent);
}

h1 {
  color: white;
}

.hero-tagline {
  color: #f1d696;
}

.hero-copy-panel p {
  color: rgba(255, 255, 255, 0.84);
}

.secondary-action {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.trip-stack {
  grid-template-columns: 1fr;
  gap: 22px;
}

.trip-stack .trip-row {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  background: #fffaf1;
}

.trip-stack .trip-row:nth-child(even) {
  grid-template-columns: minmax(320px, 1.18fr) minmax(260px, 0.82fr);
}

.trip-stack .trip-row::before {
  border-top: 0;
  border-left: 4px solid var(--gold);
}

.trip-stack .trip-row img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 292px;
  opacity: 1;
  object-fit: cover;
}

.trip-stack .trip-row:nth-child(even) img {
  grid-column: 2;
}

.trip-row-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.trip-stack .trip-row:nth-child(even) .trip-row-copy {
  grid-column: 1;
  grid-row: 1;
}

.trip-row-copy h3 {
  max-width: 680px;
}

.trip-row-copy p {
  max-width: 720px;
}

.trip-row-copy .trip-date {
  margin-top: 12px;
}

.scoring-launch-grid {
  align-items: stretch;
}

.scoring-launch-card {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.98)),
    #fffaf1;
}

.scoring-launch-card a {
  margin-top: 22px;
  color: white;
  background: var(--deep-green);
  border: 0;
  padding: 12px 14px;
}

.pool-leaderboard-panel {
  margin: 0 0 28px;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

.pool-leaderboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.pool-leaderboard-heading h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.pool-leaderboard-heading a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: white;
  background: var(--deep-green);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.pool-leaderboard-panel iframe {
  display: block;
  width: 100%;
  height: min(820px, 86vh);
  border: 0;
  background: white;
}

/* Scorecard hotfixes live here because this small file loads after the main stylesheet. */
.score-grid {
  padding: 0 8px 28px;
  overflow-x: hidden;
}

.grid-header,
.grid-row {
  grid-template-columns: 34px 42px 34px 48px repeat(4, minmax(42px, 1fr));
  gap: 2px;
  min-width: 0;
}

.grid-header {
  position: static;
  top: auto;
  z-index: auto;
}

.grid-header > span:nth-child(2) {
  font-size: 0;
}

.grid-header > span:nth-child(2)::after {
  content: "HDCP";
  font-size: 0.78rem;
}

.grid-header > .initial-badge {
  width: 34px;
  height: 46px;
  align-content: end;
  overflow: visible;
  position: relative;
  font-size: 0.78rem;
}

.grid-header > .initial-badge::before {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #2f3d35;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.grid-header > .initial-badge:nth-child(5)::before {
  content: "HCP 10";
}

.grid-header > .initial-badge:nth-child(6)::before {
  content: "HCP 18";
}

.grid-header > .initial-badge:nth-child(7)::before {
  content: "HCP 7";
}

.grid-header > .initial-badge:nth-child(8)::before {
  content: "HCP 14";
}

.grid-row {
  min-height: 68px;
  padding: 8px 0;
}

.grid-row > span {
  font-size: 0.96rem;
}

.score-mark {
  width: 36px;
  height: 36px;
}

.score-cell {
  gap: 1px;
  min-width: 0;
}

.score-cell button {
  width: 16px;
  height: 28px;
}

.score-cell strong {
  min-width: 22px;
  font-size: 0.95rem;
}

.score-cell .add-score {
  width: 34px;
  height: 36px;
}

.stroke-dot-row .stroke-dot:nth-child(n+2) {
  display: none;
}

.float-tools {
  display: none;
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 10px 18px 16px;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px 16px;
  }

  .site-nav a {
    font-size: 0.68rem;
    padding: 6px 0;
  }

  .site-nav a:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .luxury-hero,
  .hero-copy-panel {
    inline-size: 100vw;
    max-inline-size: 100vw;
  }

  .hero-copy-panel {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 118px);
    padding: 46px 18px;
    background: linear-gradient(90deg, rgba(6, 20, 13, 0.9), rgba(6, 20, 13, 0.68));
    overflow: hidden;
  }

  .hero-copy-panel p,
  .eyebrow {
    overflow-wrap: anywhere;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    font-size: 0.68rem;
  }
}

@media (max-width: 760px) {
  .trip-stack .trip-row,
  .trip-stack .trip-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .trip-stack .trip-row:nth-child(even) img,
  .trip-stack .trip-row:nth-child(even) .trip-row-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .trip-stack .trip-row img {
    min-height: 240px;
  }

  .pool-leaderboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pool-leaderboard-heading a {
    width: 100%;
  }

  .pool-leaderboard-panel iframe {
    height: 720px;
  }
}
