/* Restore the existing left-wing wordmark from the supplied reference. */
body.hipark-home > header .animated-logo,
body.tournament-page > header .animated-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.2;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
body.hipark-home > header .animated-logo .brand-wing,
body.tournament-page > header .animated-logo .brand-wing {
  width: 1.16em;
  height: 1.21em;
  flex: none;
}
body.hipark-home > header .animated-logo .brand-name,
body.tournament-page > header .animated-logo .brand-name {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  body.hipark-home > header .animated-logo,
  body.tournament-page > header .animated-logo {
    width: clamp(140px, 40vw, 220px);
    max-width: none;
    gap: 5px;
    font-size: clamp(20px, 4.8vw, 28px);
  }
}

/* Compact white header with an unboxed consultation link. */
body:is(.hipark-home, .tournament-page) > header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  min-height: 64px;
  margin-top: 0;
  padding-block: 0;
  border: 0;
  background: #fff;
}
body:is(.hipark-home, .tournament-page) > #mobile-nav { background: #fff; }
body:is(.hipark-home, .tournament-page) > header .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  color: #171717;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}
body:is(.hipark-home, .tournament-page) > header nav a:not(.nav-tournament):hover,
body:is(.hipark-home, .tournament-page) > #mobile-nav a:not(.nav-tournament):hover {
  color: #075c3b;
}
body:is(.hipark-home, .tournament-page) > header .nav-cta:hover {
  color: #171717;
  background: transparent;
  box-shadow: none;
}
/* Retain the moving wordmark without white highlights disappearing on white. */
body:is(.hipark-home, .tournament-page) > header .animated-logo .brand-name {
  color: #073b24;
  -webkit-text-fill-color: #073b24;
}
body:is(.hipark-home, .tournament-page) > header .animated-logo .brand-wing {
  color: #b39a42;
  animation-name: logo-wing-on-white;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  body:is(.hipark-home, .tournament-page) > header .animated-logo .brand-name {
    background-image: linear-gradient(100deg, #073b24 0%, #4b875b 35%, #355743 65%, #073b24 100%);
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@keyframes logo-wing-on-white {
  0%, 100% { color: #a88a2b; }
  50% { color: #cbb253; }
}
@media (max-width: 1100px) {
  body:is(.hipark-home, .tournament-page) > #mobile-nav {
    position: fixed;
    top: 64px;
    z-index: 49;
    max-height: calc(100svh - 64px);
    max-height: calc(100dvh - 64px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.hipark-home, .tournament-page) > header .animated-logo .brand-wing { animation: none; }
}

/* Desktop consultation uses the same nav row, spacing and type as its neighbours. */
@media (min-width: 1101px) {
  body:is(.hipark-home, .tournament-page) > header > .nav-cta { display: none; }
}

/* Direct tournament access beside consultation in the compact header. */
body:is(.hipark-home, .tournament-page) > header > .mobile-park-link { display: none; }
@media (max-width: 1100px) {
  body:is(.hipark-home, .tournament-page) > header > .animated-logo { width: auto; flex-shrink: 0; }
  body:is(.hipark-home, .tournament-page) > header > :is(.mobile-park-link, .nav-cta, .menu-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    white-space: nowrap;
  }
  body:is(.hipark-home, .tournament-page) > header > .mobile-park-link {
    margin-left: auto;
    padding: 0;
    color: #c51f32;
  }
  body:is(.hipark-home, .tournament-page) > header > .nav-cta { margin-left: 0; }
  body:is(.hipark-home, .tournament-page) > header > .menu-toggle { padding-inline: 6px; color: #171717; }
}
@media (max-width: 360px) {
  body:is(.hipark-home, .tournament-page) > header > .animated-logo { font-size: 18px; gap: 4px; }
  body:is(.hipark-home, .tournament-page) > header { gap: 6px; }
}
