/* Shared mobile header rules; reader.html is excluded by its data-demo-version body attribute. */
@media(max-width:760px){
  body:not([data-demo-version]) .ms-header .header-inner{flex-wrap:wrap}
  body:not([data-demo-version]) .ms-header .activate-link{display:none!important}
  body:not([data-demo-version]):not([data-page="home"]) .ms-header .user-menu-wrap{display:none!important}
  body:not([data-demo-version]) .ms-header .top-right{flex:0 0 auto;gap:6px}
  body:not([data-demo-version]) .ms-header .head-search.search-icon-only,
  body:not([data-demo-version]) .ms-header .signin-link.primary-signin,
  body:not([data-demo-version]) .ms-header .burger{box-sizing:border-box;height:44px!important;min-height:44px!important;white-space:nowrap}
  body:not([data-demo-version]) .ms-header .head-search.search-icon-only{width:44px!important;min-width:44px!important;padding:0}
  body:not([data-demo-version]) .ms-header .signin-link.primary-signin{width:auto;min-width:44px;padding:0 11px}
  body:not([data-demo-version]) .ms-header .burger{flex:0 0 auto;margin-left:5px;padding:0 8px;align-items:center;justify-content:center}
  body:not([data-demo-version]) .ms-header .subnav{order:4;flex:0 0 100%;width:100%}

  body[data-page="home"] .ms-header .burger[aria-expanded="true"]{background:#005a9e;border-color:#005a9e;color:#fff}
  body[data-page="home"] .ms-header .nav-parent{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start}
  body[data-page="home"] .ms-header .nav-parent>.nav-primary{flex:0 0 auto;width:auto;height:44px}
  body[data-page="home"] .ms-header .nav-parent>.nav-mobile-toggle{position:static;order:2;display:inline-flex;align-items:center;justify-content:flex-start;width:44px;height:44px;min-width:44px;padding:0 11px;background:#f8f8f8}
  body[data-page="home"] .ms-header .nav-parent>.nav-mobile-toggle[aria-expanded="true"]{transform:rotate(180deg);background:#e8f2fb;color:#005a9e}
  body[data-page="home"] .ms-header .nav-parent>.nav-panel{order:3;flex:0 0 100%}
  body[data-page="home"] .ms-header .nav-primary[data-link="more"]+.nav-mobile-toggle{display:none}
  body[data-page="home"] .ms-header .nav-primary[aria-expanded="true"] .nav-down{transform:rotate(225deg)}
}
