/* Menus in the shared navigation bar (js/sitenav.js). Loaded by the home site and the health app. */
.nav__menu { position: relative; }
.nav__menu > summary { list-style: none; cursor: pointer; user-select: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu > summary .i:last-child { width: 13px; height: 13px; margin-left: -2px; opacity: 0.7; transition: transform 0.2s ease; }
.nav__menu[open] > summary { background: rgba(28, 49, 70, 0.05); color: #1c3146; }
.nav__menu[open] > summary .i:last-child { transform: rotate(180deg); }
.nav__menu > summary.is-current { background: rgba(209, 222, 228, 0.9); color: #1c3146; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 1px 2px rgba(28, 49, 70, 0.06); }
.nav__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 196px; padding: 6px;
  display: grid; gap: 2px; border-radius: 12px;
  background: rgba(250, 252, 253, 0.97); border: 1px solid rgba(28, 49, 70, 0.08);
  box-shadow: 0 1px 2px rgba(28, 49, 70, 0.06), 0 16px 32px -12px rgba(28, 49, 70, 0.28);
  animation: nav-panel-in 0.16s ease both;
}
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-4px); } }
.nav__item {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: #3a5065; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav__item .badge { margin-left: auto; }
.nav__item:hover { background: rgba(28, 49, 70, 0.06); color: #1c3146; }
.nav__item[aria-current='page'] { background: rgba(209, 222, 228, 0.9); color: #1c3146; }
@media (prefers-reduced-motion: reduce) { .nav__panel { animation: none; } }
/* where the bar scrolls sideways, a dropdown would be clipped: lay the menus out in line instead */
@media (max-width: 1100px) {
  .nav__menu > summary { display: none; }
  .nav__menu { display: flex; }
  .nav__panel { position: static; display: flex; padding: 0; border: 0; background: none; box-shadow: none; animation: none; }
  .nav__item { height: 38px; }
}
/* eight entries and the buttons share one row at laptop widths */
@media (min-width: 1101px) { .topbar .nav__link { padding: 0 8px; gap: 5px; } }
