/* EVENT86 navigation stability | r92. Only global site header & mobile menu. */
/* The menu's HTML may contain legacy width/height attributes. Override both. */
#menuOverlay .drawer > img,
#menuOverlay .drawer > a > img {
  display: block;
  width: 160px !important;
  max-width: min(160px, 100%) !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}
#menuOverlay .drawer > a {display: inline-block;max-width: 100%;align-self: flex-start;}
#menuOverlay .drawer {box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;}
#menuOverlay .drawer-links a {overflow-wrap: anywhere;}
/* Some historic pages had no height:auto for header logo. */
.site-header .brand img {height: auto !important;max-height: 61px;object-fit:contain;}
@media (max-width: 680px) {
  #menuOverlay.open {align-items:stretch;justify-content:stretch;padding:0;}
  #menuOverlay .drawer {
    width:100%;max-width:none;height:100dvh;max-height:100dvh;
    border-radius:0;margin:0;padding:clamp(26px,7vw,34px) 26px 20px;
    display:flex;flex-direction:column;gap:0;
  }
  #menuOverlay .drawer > img,
  #menuOverlay .drawer > a > img {width:145px !important;max-width:145px !important;max-height:48px !important;height:auto !important;}
  #menuOverlay .drawer-links {
    margin-top:clamp(32px,6.5dvh,66px);
    min-height:0;overflow-y:auto;overscroll-behavior:contain;
    display:grid;align-content:start;flex:1 1 auto;
  }
  #menuOverlay .drawer-links a {font-size:clamp(20px,5.1vw,25px);line-height:1.22;padding:15px 0;}
  #menuOverlay .drawer .close-modal {
    width:42px;height:42px;top:24px;right:24px;
    display:grid;place-items:center;font-size:26px;
  }
}
@media (max-width:380px) {
  #menuOverlay .drawer {padding-inline:20px;}
  #menuOverlay .drawer-links a {font-size:20px;padding:12px 0;}
}
