/* BIOMED REWIRED - keeps the top menu (through Glossary) on screen with no sideways scroll.
   Smaller text and spacing on mid-width screens; wraps to two centered rows on narrower ones. Phones use the menu button as before. */
@media (min-width: 761px) {
  .mainnav { overflow: visible !important; }
}
@media (min-width: 761px) and (max-width: 1320px) {
  .mainnav { padding-left: 8px; padding-right: 8px; }
  .mainnav a { font-size: .78rem; padding: 7px 6px; gap: 5px; }
  .mainnav a .ic:not(.sm) { width: 16px; height: 16px; }
}
@media (min-width: 761px) and (max-width: 1130px) {
  .mainnav { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
}

/* menu button to the far right on phones and small tablets */
@media (max-width: 760px) { .topbar .menu-btn { margin-left: auto; } }

/* phones: a little more room under the search bar before the section line */
@media (max-width: 760px) { .site-header .topbar { padding-bottom: 16px !important; } }
