/* MHQ main site v33 — tighter, stable mobile sticky header */
@media(max-width:1100px){
  .premium-site .site-header{
    top:2px!important;
    margin-top:2px!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
  }
  .premium-site .site-header .main-nav{
    top:calc(100% + 4px)!important;
  }
}

/* MHQ Network mobile header control order: search first, menu second. */
@media(max-width:899px){
  .nh-bar[data-site="squad"] .nh-tools .nh-search{order:1!important;}
  .nh-bar[data-site="squad"] .nh-tools .nh-menu{order:2!important;}
}

/* Desktop navigation refresh — Squad gets a real nav rail and Coaching reads as the commercial CTA. */
@media(min-width:900px){
  .nh-bar[data-site="squad"] .nh-local-row{
    padding:7px 0 9px!important;
    border-top:1px solid #262b32!important;
    border-bottom:1px solid #222830!important;
    background:linear-gradient(180deg,#111419 0%,#0d1014 100%)!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links{
    align-items:center!important;
    gap:4px!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links a{
    min-height:38px!important;
    padding:0 13px!important;
    border:1px solid transparent!important;
    border-radius:8px!important;
    color:#b8c0ca!important;
    font-weight:700!important;
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links a::after{display:none!important;}
  .nh-bar[data-site="squad"] .nh-local-links a:is(:hover,:focus-visible){
    color:#fff!important;
    background:#1a1f26!important;
    border-color:#343b45!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links a[aria-current="page"]{
    color:#efffff!important;
    background:color-mix(in srgb,var(--nh-accent) 12%,#171b20)!important;
    border-color:color-mix(in srgb,var(--nh-accent) 38%,#343b45)!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nh-accent) 8%,transparent)!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links a[href="/coaching"]{
    margin-left:auto!important;
    padding-inline:17px!important;
    color:#17130a!important;
    background:linear-gradient(135deg,#f6d783 0%,#e8b94f 100%)!important;
    border-color:#f2c75f!important;
    box-shadow:0 5px 15px #0003!important;
    font-weight:800!important;
  }
  .nh-bar[data-site="squad"] .nh-local-links a[href="/coaching"]::before{
    content:"✦";
    margin-right:7px;
    font-size:11px;
    line-height:1;
  }
  .nh-bar[data-site="squad"] .nh-local-links a[href="/coaching"]:is(:hover,:focus-visible){
    color:#100d06!important;
    background:linear-gradient(135deg,#ffe29a 0%,#efc35d 100%)!important;
    border-color:#ffe09a!important;
    transform:translateY(-1px);
  }
  .nh-bar[data-site="squad"] .nh-local-links a[href="/contact"]{margin-left:2px!important;}

  /* Arcade desktop: remove duplicate text nav and use the same mode control language as mobile. */
  .nh-bar[data-site="arcade"] .nh-local-row{display:none!important;}
  body.page-arcade .nh-mode-tabs{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:5px!important;
    margin:0 0 24px!important;
    padding:5px!important;
    background:#15181dF2!important;
    border:1px solid #343b45!important;
    border-radius:10px!important;
    box-shadow:0 10px 24px #0002!important;
    backdrop-filter:blur(12px);
  }
  body.page-arcade .nh-mode-tabs>button{
    min-height:50px!important;
    flex-direction:row!important;
    gap:9px!important;
    padding:8px 12px!important;
    border-radius:7px!important;
    color:#aeb7c2!important;
    font-size:13px!important;
    font-weight:700!important;
  }
  body.page-arcade .nh-mode-tabs>button:hover{
    color:#fff!important;
    background:#20252c!important;
  }
  body.page-arcade .nh-mode-tabs>button[aria-selected="true"]{
    color:#fff!important;
    background:linear-gradient(180deg,#2b3037 0%,#24292f 100%)!important;
    border-color:#4b5561!important;
    box-shadow:inset 0 -2px 0 #ff886f!important;
  }
  body.page-arcade .nh-mode-tabs .nav-copy{display:none!important;}
  body.page-arcade .nh-mode-tabs .mx-tab-short{display:block!important;}
  body.page-arcade .nh-mode-tabs .nav-icon{
    display:grid!important;
    place-items:center!important;
    width:20px!important;
    height:20px!important;
    flex:0 0 20px!important;
  }
  body.page-arcade .nh-mode-tabs .nav-icon svg{width:19px!important;height:19px!important;}
}