/* v424 · PC Header adaptive expansion / readability authority.
   Normal 15px, Compact 14.5px, Tight 14px. Navigation owns the full middle
   grid track between Brand and right-side actions. Extra menu links may move
   out of More only when real rendered geometry leaves a safety margin. */
@media(max-width:1199px){
  [data-shared-header]:not(.admin-auth-host) .alliance-selector-link{display:none!important}
}

@media(min-width:1200px){
  [data-shared-header].site-header:not(.admin-auth-host){
    display:grid!important;
    grid-template-columns:max-content minmax(0,1fr) max-content max-content max-content!important;
    align-items:center!important;
    column-gap:12px!important;
    width:100%!important;
    min-width:0!important;
  }
  [data-shared-header]:not(.admin-auth-host) .brand{grid-column:1!important;min-width:0!important;justify-self:start!important}
  [data-shared-header]:not(.admin-auth-host) #nav{
    grid-column:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    gap:10px!important;
    padding-inline:0!important;
    overflow:visible!important;
  }
  [data-shared-header]:not(.admin-auth-host) .desktop-nav-items{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    max-width:100%!important;
    gap:20px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
  [data-shared-header]:not(.admin-auth-host) .desktop-nav-items>a{
    display:inline-flex!important;
    flex:0 0 auto!important;
    min-width:0!important;
    font-size:15px!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  [data-shared-header]:not(.admin-auth-host) #navMoreButton{
    min-height:42px!important;
    padding-inline:12px!important;
    font-size:15px!important;
    line-height:1!important;
    letter-spacing:0!important;
  }
  [data-shared-header]:not(.admin-auth-host) .header-fit-more-group .nav-menu-group-items{display:grid!important;gap:2px!important}
  [data-shared-header]:not(.admin-auth-host) #navMore[hidden]{display:none!important}
  [data-shared-header]:not(.admin-auth-host) #navMoreMenu>.nav-menu-group[hidden]{display:none!important}

  [data-shared-header]:not(.admin-auth-host) .alliance-selector-link{
    grid-column:3!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    max-width:126px!important;
    height:42px!important;
    min-height:42px!important;
    padding-inline:10px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:clip!important;
    font-size:11.5px!important;
    line-height:1!important;
  }
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label{display:inline-block;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:clip}
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label-short{display:none}

  [data-shared-header]:not(.admin-auth-host) .header-account{
    grid-column:4!important;
    min-width:0!important;
    justify-self:end!important;
    gap:7px!important;
  }
  [data-shared-header]:not(.admin-auth-host) .header-account .account-button{
    min-width:0!important;
    height:42px!important;
    min-height:42px!important;
    padding-inline:11px!important;
    font-size:11.5px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  [data-shared-header]:not(.admin-auth-host) .account-member-trigger{
    min-width:0!important;
    max-width:168px!important;
    min-height:42px!important;
    padding-inline:10px!important;
    gap:6px!important;
  }
  [data-shared-header]:not(.admin-auth-host) .account-member-name{
    min-width:0!important;
    max-width:112px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  [data-shared-header]:not(.admin-auth-host) .account-member-trigger .account-rank,
  [data-shared-header]:not(.admin-auth-host) .account-member-trigger>span[aria-hidden='true']{flex:0 0 auto!important}
  [data-shared-header]:not(.admin-auth-host) .lang{grid-column:5!important;min-width:0!important;justify-self:end!important}
  [data-shared-header]:not(.admin-auth-host) .lang>#langBtn{
    min-width:0!important;
    max-width:142px!important;
    height:42px!important;
    min-height:42px!important;
    padding-inline:11px!important;
    overflow:hidden!important;
    font-size:11.5px!important;
    line-height:1!important;
  }
  [data-shared-header]:not(.admin-auth-host) .desktop-language-label{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    min-width:0!important;
    max-width:104px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Compact is entered only after a real geometry collision. Primary stays 14.5px. */
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host){column-gap:9px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) #nav{gap:8px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .desktop-nav-items{gap:15px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .desktop-nav-items>a,
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) #navMoreButton{font-size:14.5px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .alliance-selector-link{max-width:102px!important;padding-inline:8px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .header-account{gap:5px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .header-account .account-button,
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .lang>#langBtn{padding-inline:9px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .account-member-trigger{max-width:150px!important;padding-inline:8px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .account-member-name{max-width:98px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .lang>#langBtn{max-width:128px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .desktop-language-label{max-width:90px!important}

  /* Tight is the absolute readable PC floor: 14px. */
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host){column-gap:6px!important;padding-left:2vw!important;padding-right:2vw!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) #nav{gap:6px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .desktop-nav-items{gap:11px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .desktop-nav-items>a,
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) #navMoreButton{font-size:14px!important;letter-spacing:0!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .alliance-selector-link{max-width:88px!important;padding-inline:6px!important;font-size:11px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .header-account{gap:4px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .header-account .account-button,
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .lang>#langBtn{padding-inline:7px!important;font-size:11px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .account-member-trigger{max-width:138px!important;padding-inline:7px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .account-member-name{max-width:86px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .lang>#langBtn{max-width:116px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .desktop-language-label{max-width:78px!important}
}

@media(min-width:1200px) and (max-width:1439px){
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label-full{display:none!important}
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label-short{display:inline-block!important}
  [data-shared-header]:not(.admin-auth-host) .alliance-selector-link{max-width:94px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .alliance-selector-link{max-width:86px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .alliance-selector-link{max-width:80px!important}
}
@media(min-width:1440px){
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label-full{display:inline-block!important}
  [data-shared-header]:not(.admin-auth-host) .desktop-alliance-label-short{display:none!important}
  [data-shared-header]:not(.admin-auth-host) .alliance-selector-link{max-width:152px!important}
  [data-shared-header][data-ezpk-header-fit-level='compact']:not(.admin-auth-host) .alliance-selector-link{max-width:132px!important}
  [data-shared-header][data-ezpk-header-fit-level='tight']:not(.admin-auth-host) .alliance-selector-link{max-width:116px!important}
}
@media(min-width:1600px){
  [data-shared-header]:not(.admin-auth-host) .desktop-nav-items{gap:22px!important}
  [data-shared-header]:not(.admin-auth-host) #nav{gap:11px!important}
}
