/* HH V4A phase 1: ONLY the public navigation shell and drawer.
   Existing homepage / Visual Studio / CMS content styling is left completely alone.
   No CSS here targets CMS, accounts, maps, Sticker Club or Arcade. */
body.hh-v4a .wrap{max-width:1500px}
body.hh-v4a .wrap>.top{background:linear-gradient(110deg,#101c28,#1b2a37);border:1px solid #34424c;border-bottom:3px solid #f5792c;border-radius:19px;box-shadow:0 13px 36px rgba(12,30,42,.14);backdrop-filter:none;align-items:center;z-index:100}
body.hh-v4a .top .brand-copy small{color:#d5e0e7}
body.hh-v4a .top .brand-copy strong{color:#ffffff}
body.hh-v4a .top #nav{min-width:0;overflow:visible;flex:1 1 auto}
body.hh-v4a .top #nav.hh-clean-nav{display:block!important;min-width:0!important}
body.hh-v4a .top .menu{color:#fff;background:#233546;border:1px solid rgba(255,150,68,.65);border-radius:11px;box-shadow:none;padding:11px 15px;font-weight:800;min-height:44px}
body.hh-v4a .top .menu:hover{background:#30485b}
/* Prevent the previous mobile bubble treatment from overpowering the new drawer. */
body.hh-v4a .drawer{z-index:10060;background:rgba(8,17,26,.65)!important;backdrop-filter:blur(5px)}
body.hh-v4a .drawerbox{width:min(405px,92vw)!important;max-width:min(405px,92vw)!important;min-height:0;max-height:calc(100dvh - 20px);height:calc(100dvh - 20px)!important;margin:10px 8px 10px auto!important;background:#172632!important;border:1px solid #40505d!important;border-top:3px solid #f7822c!important;box-shadow:-12px 0 45px #07111d6a!important;border-radius:18px!important;padding:16px!important;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
body.hh-v4a .drawerbox>button:first-child{width:auto!important;margin:0 0 13px auto!important;padding:9px 12px!important;border-radius:9px!important;border:1px solid #536678!important;background:#253849!important;color:#fff!important;min-height:44px;font-size:14px!important;box-shadow:none!important;text-align:right!important}
body.hh-v4a .drawerbox #mobileNav{display:block!important;margin:0!important;gap:0!important;padding-bottom:max(20px,env(safe-area-inset-bottom))}
/* Slot-rendered account menus are still the original server-aware account UI. */
body.hh-v4a .drawerbox #mobileNav>details.hh-account-dropdown{margin:6px 0 0!important;border:1px solid #465a67;border-radius:12px;padding:3px;background:#233544}
body.hh-v4a .drawerbox #mobileNav>details.hh-account-dropdown>summary{padding:13px 14px;color:#fff;font-size:14px;font-weight:800;cursor:pointer}
body.hh-v4a .drawerbox #mobileNav .hh-account-options{position:static!important;border:0!important;box-shadow:none!important;background:#233544!important;min-width:0!important}
@media(max-width:1220px){
 body.hh-v4a .top #nav.hh-clean-nav{display:none!important}
 body.hh-v4a .top>.menu{display:block!important}
 body.hh-v4a .drawer.show{display:flex!important;position:fixed;inset:0;justify-content:flex-end}
}
@media(min-width:1221px){body.hh-v4a .top>.menu{display:none!important}}
@media(max-width:680px){body.hh-v4a .wrap{padding:10px 12px 38px}body.hh-v4a .top .brand img{width:89px;max-height:52px}}
@media(prefers-reduced-motion:reduce){body.hh-v4a .drawer.show .drawerbox{animation:none!important}}

/* HH V4A RC1.1: fullscreen map views must sit ABOVE the homepage navigation.
   The existing Back to Hub/Refresh map toolbar remains unchanged.
   Scoped to the old homepage map overlay only; standalone maps are untouched. */
body.hh-v4a #mapview:not(.hide) {
  z-index: 11000 !important;
}
