/* The public sections share one navigation, including the standalone Library. */
#navbar.ms-premium-header .ms-header-nav { grid-template-columns: auto minmax(0, 1fr); }
#navbar .ms-site-menu { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-width: 0; }
#navbar .ms-header-links { justify-content: center; }
#navbar .ms-header-links a { padding-left: .75rem; padding-right: .75rem; }
#navbar .ms-header-menu-toggle { display: none; }
#platform, #medicine-library, #about-details, #applyCinemaSection, #top { scroll-margin-top: calc(var(--ms-header-height, 100px) + 20px); }
@media (max-width: 1023px) {
  #navbar.ms-premium-header { padding: .65rem 1rem 0; }
  #navbar.ms-premium-header .ms-header-nav { grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding: .65rem .85rem; border-radius: 1.1rem; }
  #navbar .ms-site-menu { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: .6rem; padding-top: .65rem; }
  #navbar[data-menu-enhanced='true'] .ms-site-menu { display: none; }
  #navbar[data-menu-enhanced='true'][data-menu-open='true'] .ms-site-menu { display: grid; }
  #navbar[data-menu-enhanced='true'] .ms-header-menu-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: .65rem; border: 1px solid #c9d8ea; border-radius: .75rem; background: #ffffff91; color: #173d68; cursor: pointer; }
  #navbar .ms-header-menu-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  #navbar .ms-header-menu-toggle:focus-visible { outline: 3px solid #0f63ff; outline-offset: 3px; }
  #navbar .ms-header-links { display: grid; grid-template-columns: 1fr; grid-column: auto; grid-row: auto; justify-content: stretch; gap: .1rem; padding-top: .55rem; margin: 0; border-top: 1px solid #b8cde560; }
  #navbar .ms-header-links a { min-height: 2.75rem; justify-content: flex-start; padding: .6rem .8rem; font-size: .82rem; }
  #navbar .ms-header-links a::after { left: .8rem; right: auto; width: 1.3rem; bottom: .3rem; }
  #navbar .ms-header-actions { justify-self: stretch; gap: .6rem; border-top: 1px solid #b8cde560; padding-top: .65rem; }
  #navbar.ms-premium-header .ms-header-actions a { flex: 1; min-height: 2.75rem; font-size: .8rem !important; }
}
