/* Desktop hover dropdowns for the main menu (the original menu script isn't in the static build) */
@media (min-width: 1025px) {
  nav[aria-label="Menu"] li { position: relative; }
  nav[aria-label="Menu"] li:hover > ul,
  nav[aria-label="Menu"] li:focus-within > ul { display: block; }
  /* bridge the gap between the menu item and its dropdown so it doesn't close mid-move */
  nav[aria-label="Menu"] > ul > li > ul::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; }
  /* third-level menus fly out to the side */
  nav[aria-label="Menu"] ul ul ul { top: 0 !important; left: 100%; margin-top: 0 !important; }
}

/* Mobile/tablet header (below 1025px): the captured logo size depends on its column's percentage width, which
   made it about 510px wide (spilling out of the header) at 500-768px and only 90-120px at 800-1024px.
   Keep it a steady size. The header holds only the logo image. */
@media (max-width: 767px) {
  header img { width: auto !important; max-width: min(245px, 100%) !important; height: auto !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  header img { width: 100% !important; max-width: 220px !important; height: auto !important; }
}
