/* The one menu bar and footer for the pages with none of their own (sitebar.py puts them in at
   build time; Onion Board's page gets the footer only). They look like the home page's own, and work with no script: the phone menu
   is a hidden checkbox. Every rule starts with a .sb- class and sets what it needs itself,
   because each page brings its own rules for nav, footer, img and a. */
.sb-bar, .sb-bar *, .sb-foot, .sb-foot * { box-sizing: border-box; }
.sb-bar, .sb-foot {
  --sb-glass: rgba(13, 13, 24, .8); --sb-panel: #0f0f1c; --sb-footbg: rgba(7, 7, 13, .78);
  --sb-line: rgba(255, 255, 255, .12); --sb-line2: rgba(255, 255, 255, .22); --sb-faint: rgba(255, 255, 255, .06);
  --sb-text: #f2f0fa; --sb-dim: #aeaac8; --sb-hover: rgba(255, 255, 255, .07); --sb-on: rgba(167, 139, 250, .2);
  --sb-acc: #a78bfa; --sb-shadow: 0 10px 40px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 500 16px/1.5 "Space Grotesk", "Segoe UI", system-ui, sans-serif; color: var(--sb-text);
  text-align: left; letter-spacing: normal; -webkit-font-smoothing: antialiased;
}
/* the guide pages turn light when Windows is light: so do their bar and footer */
@media (prefers-color-scheme: light) {
  .sb-bar.sb-light, .sb-foot.sb-light {
    --sb-glass: rgba(255, 255, 255, .86); --sb-panel: #fff; --sb-footbg: rgba(255, 255, 255, .6);
    --sb-line: rgba(40, 28, 90, .16); --sb-line2: rgba(40, 28, 90, .26); --sb-faint: rgba(40, 28, 90, .1);
    --sb-text: #17151f; --sb-dim: #555469; --sb-hover: rgba(40, 28, 90, .07); --sb-on: rgba(90, 61, 216, .13);
    --sb-acc: #5a3dd8; --sb-shadow: 0 12px 34px -20px rgba(40, 28, 90, .45), inset 0 1px 0 #fff;
  }
}

/* ---------- the bar ---------- */
.sb-bar { position: sticky; top: 0; z-index: 60; max-width: 1180px; margin: 0 auto; padding: 12px 20px 0; }
/* a link to a spot on the page stops below the sticking bar, not under it */
html:has(.sb-bar) { scroll-padding-top: 92px; }
/* the guide pages hide sideways overflow on body, which would make body the box the bar sticks
   in (and body never scrolls): clip cuts the same overflow and leaves the window as that box */
body:has(> .sb-bar) { overflow-x: clip; }
.sb-in { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 18px; border-radius: 22px;
  background: var(--sb-glass); border: 1px solid var(--sb-line); box-shadow: var(--sb-shadow);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.sb-bar a { color: var(--sb-dim); text-decoration: none; }
.sb-bar img { display: block; margin: 0; border: 0; box-shadow: none; max-width: none; }
.sb-bar a:focus-visible, .sb-foot a:focus-visible { outline: 2px solid #5eead4; outline-offset: 3px; border-radius: 10px; }
.sb-bar a.sb-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--sb-text); white-space: nowrap;
  font: 800 15px/1.5 "Unbounded", "Segoe UI", system-ui, sans-serif; letter-spacing: .03em; }
.sb-bar a.sb-brand img { width: 30px; height: 34px; border-radius: 0; }
.sb-menu { display: flex; align-items: center; gap: 2px; }
.sb-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 13px; white-space: nowrap;
  font-weight: 500; font-size: 16px; transition: color .2s, background .2s; }
.sb-menu a img { width: 24px; height: 24px; border-radius: 7px; }
.sb-menu a:hover { color: var(--sb-text); background: var(--sb-hover); }
/* the page you're on */
.sb-menu a.sb-on { color: var(--sb-text); background: var(--sb-on); }
.sb-menu .sb-sep { width: 1px; height: 22px; background: var(--sb-line); margin: 0 6px; }
.sb-bar a.sb-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  transition: color .2s, background .2s; }
.sb-bar a.sb-ico:hover { color: var(--sb-text); background: var(--sb-hover); }
.sb-bar a.sb-ico svg { width: 22px; height: 22px; }
/* the phone menu's switch: an unseen checkbox lying on top of the button it works */
.sb-bar .sb-t { display: none; position: absolute; right: 10px; top: 50%; width: 44px; height: 44px; margin: -22px 0 0;
  opacity: 0; cursor: pointer; z-index: 2; appearance: none; -webkit-appearance: none; }
.sb-burger { display: none; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--sb-text);
  border: 1px solid var(--sb-line); background: var(--sb-hover); }
.sb-burger svg { width: 22px; height: 22px; }
.sb-burger .sb-x, .sb-t:checked ~ .sb-burger .sb-m { display: none; }
.sb-t:checked ~ .sb-burger .sb-x { display: block; }
.sb-t:focus-visible ~ .sb-burger { outline: 2px solid #5eead4; outline-offset: 3px; }

/* ---------- the footer ---------- */
.sb-foot { margin-top: 90px; border-top: 1px solid var(--sb-line); background: var(--sb-footbg); position: relative; z-index: 1; }
/* a page whose own footer sits right above: closer, so the two read as one ending */
.sb-foot.sb-after { margin-top: 0; }
.sb-foot .sb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sb-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; padding: 50px 0 30px; }
.sb-foot .sb-h { font: 700 14px/1.5 "Space Grotesk", "Segoe UI", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sb-dim); margin: 0 0 12px; }
.sb-foot a { display: block; padding: 5px 0; color: var(--sb-text); text-decoration: none; font-size: 17px; font-weight: 400; }
.sb-foot a:hover { color: var(--sb-acc); }
.sb-foot .sb-about { color: var(--sb-dim); font-size: 16px; font-weight: 400; max-width: 300px; }
.sb-foot a.sb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; white-space: nowrap;
  font: 800 15px/1.5 "Unbounded", "Segoe UI", system-ui, sans-serif; letter-spacing: .03em; }
.sb-foot a.sb-brand:hover { color: var(--sb-text); }
.sb-foot a.sb-brand img { display: block; width: 30px; height: 34px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.sb-fine { color: var(--sb-dim); font-size: 15px; font-weight: 400; padding: 20px 0 44px; border-top: 1px solid var(--sb-faint); }
.sb-fine:empty { padding: 0 0 24px; border: 0; }

@media (max-width: 1080px) {
  .sb-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px; border-radius: 20px; background: var(--sb-panel); border: 1px solid var(--sb-line2);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
  .sb-t:checked ~ .sb-menu { display: flex; }
  .sb-menu a { padding: 14px; font-size: 18px; color: var(--sb-text); }
  .sb-menu .sb-sep { width: auto; height: 1px; margin: 6px 8px; }
  .sb-bar .sb-t { display: block; }
  .sb-burger { display: grid; }
}
@media (max-width: 860px) {
  .sb-cols { grid-template-columns: 1fr 1fr; }
  .sb-cols > div:first-child { grid-column: 1 / -1; }
  .sb-foot { margin-top: 64px; }
  .sb-foot.sb-after { margin-top: 0; }
}
@media (max-width: 480px) {
  .sb-bar a.sb-ico.sb-gh { display: none; }
  .sb-bar a.sb-brand { font-size: 13px; }
  .sb-bar { padding: 12px 16px 0; }
  .sb-foot .sb-wrap { padding: 0 16px; }
}
@media (max-width: 350px) {
  .sb-bar a.sb-ico { display: none; }   /* a very small phone: Discord is in the footer too */
  .sb-in { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sb-menu a, .sb-bar a.sb-ico { transition: none; } }
