/* The one site menu. tools/site_chrome.py writes its markup and tools/apply_menu.py puts it on every
   page; the front page's own bar in front.css is the same design. */
@font-face { font-family: "DeltaBlock"; src: url("/assets/front/DeltaBlock-Regular-b7ce987722.woff") format("woff"); font-display: swap }

.sitebar { --ink-2: #fff; --bright: #ff8a28; --panel: #0d0d0d; --line: rgba(255, 255, 255, .2); position: relative; z-index: 20; display: flex; flex: none; align-items: center; gap: clamp(16px, 2vw, 40px); height: 88px; padding: 0 clamp(20px, 3.4vw, 88px); background: #0d0d0d; border-top: 5px solid #ff8a28; box-sizing: border-box; color: #fff; font-family: ui-monospace, Consolas, "Courier New", monospace }
.sitebar .topbar-in { display: contents }
.sitebar .brand img { display: block; height: 58px; width: auto }
.sitebar nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 34px); font: 400 27px/1 "DeltaBlock", sans-serif }
.sitebar nav a { color: #fff; text-decoration: none; white-space: nowrap }
.sitebar nav a:hover, .sitebar nav a[aria-current] { color: #ff8a28 }
.sitebar__ic { display: block; line-height: 0 }
.sitebar__ic img { display: block; width: 32px; height: 32px; image-rendering: pixelated }
.sitebar__ic:hover { filter: sepia(1) saturate(9) hue-rotate(-20deg) }
.sitebar__small { position: absolute; top: 0; right: 0; display: flex; gap: 26px; padding: 10px 22px; background: #ff8a28; color: #0b0b0b; font: 400 15px/1.2 ui-monospace, Consolas, "Courier New", monospace }
.sitebar__small a { color: inherit; text-decoration: none }

/* the library's app column: the menu sits above the library's own toolbar, whose language box it keeps */
.hc-app > .sitebar { order: -1 }
.hc-app > .sitebar .lang-pick { display: none }

@media (max-width: 899px) {
  .sitebar { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px }
  .sitebar nav { flex-wrap: wrap; font-size: 22px }
  .sitebar__small { display: none }
  .hc-app > .sitebar { gap: 10px; padding-top: 6px; padding-bottom: 6px }
  .hc-app > .sitebar .brand img { height: 30px }
  .hc-app > .sitebar nav { gap: 6px 12px; font-size: 17px }
  .hc-app > .sitebar__ic img, .hc-app > .sitebar nav .sitebar__ic img { width: 22px; height: 22px }
}
