/* The grouped side menu and the tabs of a page that is split into parts (ADR 0059 points 123 and 124).
   Loaded after the page styles and before small.css, so the phone rules in small.css still have the last word. */

/* the menu in groups, each under a small heading */
.side { overflow-y: auto; }
.nav { margin-top: 24px; gap: 1px; }
.nav .navg { font: 400 8.5px 'Wide'; letter-spacing: .22em; text-transform: uppercase; color: #8BA3B1; padding: 13px 12px 5px; margin-top: 9px; border-top: 1px solid rgba(255,255,255,.09); }
.nav .navg:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.nav a { padding-top: 7px; padding-bottom: 7px; font-size: 15px; }
.side .who { margin-top: auto; flex: 0 0 auto; }
.side .nav { margin-bottom: 18px; }

/* tabs: one part of a long page at a time */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 11px 16px 10px; font-size: 15.5px; color: var(--slate); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 3px 3px 0 0; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); background: rgba(15,34,49,.04); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }
.tabs + .card, .tabs + [data-part] { margin-top: 22px !important; }
[data-part][hidden] { display: none !important; }

/* on a short screen the card at the foot of the menu makes way for the menu itself: the top bar already says who you are */
@media (max-height: 880px) { .side .who { display: none; } .side .nav { margin-bottom: 0; } }
@media (max-width: 1100px) {
  /* the menu is a strip across the top: the group headings become small labels between its links */
  .nav .navg { flex: 0 0 auto; align-self: center; padding: 0 4px 0 14px; margin: 0 0 0 8px; border-top: 0; border-left: 1px solid rgba(255,255,255,.14); white-space: nowrap; font-size: 8px; }
  .nav .navg:first-child { padding-left: 4px; margin-left: 0; border-left: 0; }
  .side .nav { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; margin-top: 20px; }
  .tabs a { flex: 0 0 auto; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
}
