/* Issue206: shared website navigation only; no content, routes or controls changed. */
@media (min-width:769px) and (max-width:1200px) {
  header .nav-wrapper { height:auto; min-height:65px; padding-top:10px; padding-bottom:10px; gap:10px; }
  header .nav-wrapper > .brand { flex:0 0 140px; min-width:0; }
  header .brand > a { min-width:0; }
  header .brand img { max-width:100%; height:auto; }
  header .nav-wrapper > .nav-menu { flex:1 1 0%; min-width:0; flex-wrap:wrap; justify-content:center; column-gap:4px; row-gap:4px; }
  header .nav-wrapper > .nav-right { flex:0 0 auto; }
}
@media (max-width:768px) {
  header .nav-wrapper { gap:6px; padding-left:12px; padding-right:12px; }
  header .nav-wrapper > .brand { flex:1 1 auto; min-width:0; gap:6px !important; }
  header .brand > a { flex:0 1 120px; min-width:72px; }
  header .brand img { display:block; width:120px; max-width:100%; height:auto; }
  header .mobile-location { flex:0 1 100px; min-width:0; }
  header .mobile-location span { min-width:0; }
  header .nav-wrapper > .nav-right { flex:0 0 auto; }
  header .btn-header-cta { padding-left:10px; padding-right:10px; white-space:nowrap; }
  /* Anchor the dropdown to the complete header, including its own padding. */
  header .nav-wrapper { position:static; }
  header #mobileMenu {
    position:absolute !important; top:100% !important; bottom:auto !important;
    right:0 !important; left:0 !important; width:100% !important;
    height:auto !important; max-height:calc(100vh - 160px); max-height:calc(100dvh - 160px);
    box-sizing:border-box; overflow-y:auto !important; overscroll-behavior:contain;
    padding:12px 20px !important;
  }
}

/* A phone menu may remain open when switching to desktop mode. */
@media (min-width:769px) {
  header #mobileMenu.active, header #mobileMenu.show {
    position:static !important; flex-direction:row !important;
    top:auto !important; right:auto !important; bottom:auto !important; left:auto !important;
    width:auto !important; height:auto !important; max-height:none;
    padding:0 !important; box-shadow:none !important;
    transform:none; opacity:1; visibility:visible;
  }
}
