/* Got Hot Wheels - Home Header Nav Cleanup v90 */

/* Hide internal workflow shortcuts when they accidentally land in the public header/nav */
html body.ghw90-home-header-clean a.ghw90-hide-public-nav,
html body a.ghw90-hide-public-nav,
html body .ghw90-hidden {
  display: none !important;
}

/* Keep public header compact after removing injected shortcuts */
html body.ghw90-home-header-clean header nav,
html body.ghw90-home-header-clean .site-header nav,
html body.ghw90-home-header-clean .ghw-header nav,
html body.ghw90-home-header-clean .navbar,
html body.ghw90-home-header-clean .main-nav {
  gap: 18px !important;
}

/* Dedupe/tighten the internal shortcut bars only */
html body .ghw87-shortcuts,
html body .ghw87-actions,
html body .ghw-topnav,
html body .ghw88-shortcuts {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 9px !important;
}

html body .ghw87-shortcuts,
html body .ghw88-shortcuts {
  justify-content: center !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body .ghw87-actions,
html body .ghw-topnav {
  justify-content: flex-end !important;
}

html body .ghw87-actions a,
html body .ghw87-shortcuts a,
html body .ghw-topnav a,
html body .ghw88-shortcuts a {
  white-space: nowrap !important;
  min-width: 86px !important;
  max-width: 178px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.1 !important;
}

html body .ghw87-hub .ghw87-actions,
html body .ghw87-hero .ghw87-actions {
  max-width: 520px !important;
}

html body .ghw87-hub,
html body .ghw87-hero,
html body .ghw-panel.ghw-hero {
  min-height: auto !important;
}

@media (max-width: 900px) {
  html body .ghw87-actions,
  html body .ghw-topnav {
    justify-content: flex-start !important;
    max-width: none !important;
  }

  html body .ghw87-actions a,
  html body .ghw87-shortcuts a,
  html body .ghw-topnav a,
  html body .ghw88-shortcuts a {
    flex: 1 1 calc(50% - 9px) !important;
    max-width: none !important;
  }
}

@media (max-width: 560px) {
  html body .ghw87-actions a,
  html body .ghw87-shortcuts a,
  html body .ghw-topnav a,
  html body .ghw88-shortcuts a {
    flex-basis: 100% !important;
  }
}
