/* HappyHappyGolf V3.23.7 — focused hub desktop composition and Play utility refinement. */

/* The live leaderboard replaces the older generic Watch-now prompt on every viewport. */
.watch-v312-opening > #watch-now {
  display: none !important;
}

@media (min-width: 761px) {
  /* Keep every hub header aligned to the same 1180px frame as the homepage. */
  .global-hub-header:not(.home-minimal-header) {
    padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
    padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
  }

  /* Center the homepage pulse contents without changing its behavior. */
  .hh-pulse__inner {
    justify-content: center;
  }

  .hh-pulse__detail {
    flex: 0 1 auto;
  }

  .hh-pulse__arrow {
    margin-left: 0;
  }

  /* Keep the resolved nearby location visible in Play's desktop hero. */
  .playday-location-card.playday-location-hero.is-resolved {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 0 !important;
    padding: 18px 20px !important;
  }

  .playday-location-card.is-resolved .playday-location-art {
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
  }

  .playday-location-card.is-resolved .playday-resolved-location-copy {
    min-width: 0;
  }

  .playday-location-card.is-resolved .playday-resolved-location-copy > small {
    display: block;
    margin: 0 0 3px;
    color: #07562f;
    font: 700 10px/1.2 "DM Sans", sans-serif;
    letter-spacing: .13em;
  }

  .playday-location-card.is-resolved h3 {
    overflow: hidden;
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .playday-location-card.is-resolved p {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .playday-location-card.is-resolved .playday-primary-btn {
    width: auto !important;
    min-width: 148px;
    margin: 0 !important;
    padding: 14px 19px !important;
  }

  /* Put Gear's high-value jump links beside the New & Popular heading. */
  .gear37-head.gear37-head-with-explore {
    display: grid !important;
    grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr) !important;
    align-items: start !important;
    gap: 22px 30px !important;
  }

  .gear37-head-with-explore > .gear-explore-panel {
    box-sizing: border-box;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0 !important;
    padding: 20px 22px !important;
    gap: 18px !important;
    border-radius: 20px !important;
  }

  .gear37-head-with-explore > .gear37-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start !important;
    margin: 0 !important;
  }

  .gear37-head-with-explore .gear-explore-panel h3 {
    font-size: 26px !important;
    line-height: 1.05 !important;
  }

  .gear37-head-with-explore .gear-explore-links {
    gap: 7px !important;
  }

  .gear37-head-with-explore .gear-explore-links button {
    padding: 10px 13px !important;
  }

  /* The live leaderboard is Watch's primary experience; This Week uses the full row. */
  .watch-v312-opening {
    display: block !important;
  }

  .watch-v312-opening > #watch-week {
    width: 100% !important;
    padding-top: 28px !important;
  }

  .watch-v312-opening #week-grid.watch-v32-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    height: auto !important;
    gap: 14px !important;
  }

  .watch-v312-opening #week-grid .watch-v32-row {
    min-height: 150px !important;
    height: auto !important;
  }
}

@media (max-width: 900px) {
  .gear37-head.gear37-head-with-explore {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .gear37-head-with-explore > .gear-explore-panel {
    order: 2;
    width: 100%;
    margin: 0 !important;
  }

  .gear37-head-with-explore > .gear37-filter {
    order: 3;
    width: 100%;
    margin: 0 !important;
  }
}

@media (max-width: 760px) {
  /* Mobile already shows the compact Your Area strip below the hero. */
  .playday-location-card.playday-location-hero.is-resolved {
    display: none !important;
  }

  /* Remove the inherited desktop-height gap around Play shortcuts. */
  .playday-tabs {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .playday-tabs::-webkit-scrollbar {
    display: none;
  }

  .playday-tabs button {
    flex: 0 0 auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
}
