/* The administration portal's left menu. The page keeps its own header; the menu sits to the left of everything. */
:root { --navWidth: 224px; }

body.withNav { padding-left: var(--navWidth); }

#sideNav {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--navWidth); box-sizing: border-box;
  background: #0b2a4a; color: #dbe6f3; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; z-index: 20;
}
#sideNav .navBrand { display: flex; flex-direction: column; gap: 6px; padding: 4px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 10px; }
#sideNav .navBrand img { height: 30px; width: auto; align-self: flex-start; background: #fff; border-radius: 6px; padding: 4px 8px; }
#sideNav .navBrand span { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #8fb0d3; }
#sideNav a { color: #dbe6f3; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
#sideNav a:hover { background: rgba(255, 255, 255, .1); }
#sideNav a.current { background: #fbad48; color: #1d2733; font-weight: 600; }
#sideNav a:focus-visible { outline: 2px solid #fbad48; outline-offset: 2px; }

/* A narrow window: the menu becomes a bar across the top instead of eating the width. */
@media (max-width: 760px) {
  body.withNav { padding-left: 0; }
  #sideNav { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 12px; }
  #sideNav .navBrand { flex-direction: row; align-items: center; border: 0; margin: 0 12px 0 0; padding: 0; }
}

/* With the menu showing, the page header's own logo and "back" links are redundant (the menu has the logo and the way around). */
body.withNav header .brand, body.withNav header .where { display: none; }
