/* =========================================================
   ST7D v7.7.5 - NAVBAR COLLISION GUARD
   Keep the spacious discovery navbar, but never allow the primary
   destination cluster to collide with the right-side utilities.
   ========================================================= */

@media (min-width:1281px){
  /* Keep the destination row and utility cluster as separate flex regions. */
  .header .primary-nav{min-width:0!important;flex:1 1 auto!important}
  .header-account-mount{position:relative!important;z-index:40!important;flex:0 0 auto!important}

  /* Runtime collision guard: hide only promoted links, never core navigation. */
  .header.nav-runtime-hide-gallery .nav-gallery-link,
  .header.nav-runtime-hide-achievements .nav-achievements-link,
  .header.nav-runtime-hide-profiles .nav-profiles-link,
  .header.nav-runtime-hide-progression .nav-progression-link{display:none!important}

  .header.nav-runtime-hide-gallery .nav-fallback-gallery,
  .header.nav-runtime-hide-achievements .nav-fallback-achievements,
  .header.nav-runtime-hide-profiles .nav-fallback-profiles,
  .header.nav-runtime-hide-progression .nav-fallback-progression{display:block!important}

  /* If even the core row gets tight because of zoom/text scaling, shorten Staff HQ
     before touching another player-facing destination. */
  .header.nav-runtime-tight-utility .portal-staff-hq-full{display:none!important}
  .header.nav-runtime-tight-utility .portal-staff-hq-short{display:inline!important}
  .header.nav-runtime-tight-utility .portal-staff-hq-shortcut{min-width:46px!important;padding-left:8px!important;padding-right:8px!important}
}

/* Safe first-paint baselines. JS can hide additional promoted links if a
   browser/zoom/font combination still needs more room. */
@media (min-width:2000px){
  .header .nav-progression-link,
  .header .nav-achievements-link,
  .header .nav-profiles-link,
  .header .nav-gallery-link{display:inline-flex!important}
  .header .nav-fallback-progression,
  .header .nav-fallback-achievements,
  .header .nav-fallback-profiles,
  .header .nav-fallback-gallery{display:none!important}
}

@media (min-width:1800px) and (max-width:1999px){
  .header .nav-gallery-link{display:none!important}
  .header .nav-fallback-gallery{display:block!important}
  .header .nav-progression-link,
  .header .nav-achievements-link,
  .header .nav-profiles-link{display:inline-flex!important}
  .header .nav-fallback-progression,
  .header .nav-fallback-achievements,
  .header .nav-fallback-profiles{display:none!important}
}

@media (min-width:1500px) and (max-width:1799px){
  /* This is the range from the supplied screenshot: keep two useful promoted
     destinations visible and guarantee Donor Shop never runs under Staff HQ. */
  .header .nav-achievements-link,
  .header .nav-gallery-link{display:none!important}
  .header .nav-fallback-achievements,
  .header .nav-fallback-gallery{display:block!important}
  .header .nav-progression-link,
  .header .nav-profiles-link{display:inline-flex!important}
  .header .nav-fallback-progression,
  .header .nav-fallback-profiles{display:none!important}
  .header .portal-staff-hq-full{display:none!important}
  .header .portal-staff-hq-short{display:inline!important}
  .header .portal-staff-hq-shortcut{min-width:48px!important;padding-left:8px!important;padding-right:8px!important}
}

@media (min-width:1281px) and (max-width:1499px){
  .header .nav-progression-link,
  .header .nav-achievements-link,
  .header .nav-profiles-link,
  .header .nav-gallery-link{display:none!important}
  .header .nav-fallback-progression,
  .header .nav-fallback-achievements,
  .header .nav-fallback-profiles,
  .header .nav-fallback-gallery{display:block!important}
}

@media (max-width:1280px){
  .header .nav-progression-link,
  .header .nav-achievements-link,
  .header .nav-profiles-link,
  .header .nav-gallery-link{display:none!important}
  .header .nav-fallback-progression,
  .header .nav-fallback-achievements,
  .header .nav-fallback-profiles,
  .header .nav-fallback-gallery{display:block!important}
}
