/* Shared site navigation — identical on every page.
   Deliberately self-contained: it carries its own colours so it renders the
   same whichever token set the host page defines. */
.sitenav {
  --nav-accent: #2a78d6;
  height: 56px; flex: none;
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px;
  background: rgba(7, 10, 14, .94);
  backdrop-filter: saturate(1.8) blur(20px);
  color: #fff;
  font: 400 15px/1 "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: sticky; top: 0; z-index: 40;
}
@media (prefers-color-scheme: dark) { .sitenav { --nav-accent: #4a92e8; } }

.sitenav .brand {
  font: 700 17px/1 "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -.021em; flex: none; color: #fff; text-decoration: none;
  position: relative;
}
/* the brand is the home link, so it carries the active marker on the board */
.sitenav .brand.home::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 2px; background: var(--nav-accent);
}
.sitenav .tabs { display: flex; gap: 18px; flex: none; }
.sitenav .tabs a {
  font: 400 15px/1 inherit; color: rgba(255, 255, 255, .72);
  text-decoration: none; position: relative; white-space: nowrap;
}
.sitenav .tabs a:hover { color: #fff; }
.sitenav .tabs a.on { color: #fff; font-weight: 500; }
.sitenav .tabs a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 2px; background: var(--nav-accent);
}
.sitenav .sp { flex: 1; }

.sitenav .navsearch { position: relative; flex: none; width: 200px; }
.sitenav .navsearch input {
  width: 100%; height: 32px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .10); color: #fff;
  font: 400 13px/1 inherit; padding: 0 10px 0 28px; outline: none;
}
.sitenav .navsearch input::placeholder { color: rgba(255, 255, 255, .55); }
.sitenav .navsearch input:focus { border-color: var(--nav-accent); background: rgba(255, 255, 255, .16); }
.sitenav .navsearch svg {
  position: absolute; left: 9px; top: 9px; width: 13px; height: 13px;
  fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2;
}

.sitenav .when { font-size: 12px; color: rgba(255, 255, 255, .6); flex: none; }
.sitenav .ghost {
  background: rgba(255, 255, 255, .12); border: none; border-radius: 8px;
  color: #fff; font: 500 13px/1 inherit; padding: 7px 11px; cursor: pointer; flex: none;
}
.sitenav .ghost:hover { background: rgba(255, 255, 255, .2); }
.sitenav .ghost.icon { width: 32px; height: 32px; padding: 0;
  display: flex; align-items: center; justify-content: center; }
.sitenav .ghost.icon svg { width: 15px; height: 15px; fill: #fff; }

/* Nav-owned popover (theme etc.) for pages without their own panel system. */
.navpop {
  position: fixed; z-index: 60; display: none;
  background: Canvas; color: CanvasText;
  border: 1px solid rgba(128,128,128,.32); border-radius: 14px;
  box-shadow: 0 2px 14px rgba(15,30,50,.22); padding: 12px; width: 190px;
  font: 400 13px/1.3 "SF Pro Text", -apple-system, system-ui, sans-serif;
}
.navpop.on { display: block; }
.navpop h4 {
  font: 600 11px/1 inherit; letter-spacing: .07em; text-transform: uppercase;
  opacity: .6; margin: 0 0 7px;
}
.navpop .seg { display: flex; gap: 4px; background: rgba(128,128,128,.14);
  border-radius: 9px; padding: 3px; }
.navpop .seg button {
  flex: 1; border: none; background: transparent; border-radius: 7px;
  padding: 6px 4px; font: 500 11.5px/1 inherit; color: inherit; cursor: pointer; opacity: .7;
}
.navpop .seg button[aria-pressed="true"] {
  background: Canvas; opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

@media (max-width: 820px) {
  .sitenav { gap: 12px; }
  .sitenav .tabs, .sitenav .when { display: none; }
  .sitenav .navsearch { flex: 1; width: auto; min-width: 0; }
}

/* "Pages" menu — one nav item holding the non-board pages. */
.sitenav .tablink {
  font: 400 15px/1 inherit; color: rgba(255,255,255,.72);
  background: none; border: none; padding: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; gap: 5px;
}
.sitenav .tablink:hover { color: #fff; }
.sitenav .tablink.on { color: #fff; font-weight: 500; }
.sitenav .tablink.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 2px; background: var(--nav-accent);
}
.sitenav .tablink i { font-style: normal; font-size: 9px; opacity: .7; }
.navpop .menu { display: flex; flex-direction: column; gap: 1px; }
.navpop .menu a {
  display: block; padding: 8px 9px; border-radius: 8px;
  color: inherit; text-decoration: none; font: 400 13px/1.3 inherit;
}
.navpop .menu a:hover { background: rgba(128,128,128,.18); }
.navpop .menu a.on { font-weight: 600; color: var(--nav-accent); }
.navpop.wide { width: 224px; }
