/* Cucumbs network bar, v1 (shared by every node site).
 * Source of truth: https://cucumbs.com/shared/network-bar.css
 * Copy this file into your own site (CSP style-src 'self' and the hub's
 * CORP same-origin header mean it can't be loaded from cucumbs.com).
 * Everything is namespaced under .cu-netbar, needs no JavaScript, sets no
 * cookies and loads nothing. Markup: docs/network-bar.md in the repo. */

.cu-netbar {
  --cu-netbar-bg: #07130e;
  --cu-netbar-line: #24453a;
  --cu-netbar-ink: #eaf1e8;
  --cu-netbar-muted: #a9bdb0;
  --cu-netbar-vine: #5fd3a0;
  --cu-netbar-human: #f4e3b5;
  display: block;
  position: relative;
  z-index: 20;
  background: var(--cu-netbar-bg);
  border-bottom: 1px solid var(--cu-netbar-line);
  color: var(--cu-netbar-ink);
  font: 500 0.82rem/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.01em;
}
.cu-netbar *, .cu-netbar *::before, .cu-netbar *::after { box-sizing: border-box; }
.cu-netbar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.3rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cu-netbar a { color: var(--cu-netbar-muted); text-decoration: none; }
.cu-netbar a:hover { color: var(--cu-netbar-ink); }
.cu-netbar a:focus-visible { outline: 2px solid var(--cu-netbar-human); outline-offset: 2px; border-radius: 3px; }
.cu-netbar__hub {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  padding: 0.2rem 0.6rem 0.2rem 0;
  border-right: 1px solid var(--cu-netbar-line);
  white-space: nowrap;
}
.cu-netbar .cu-netbar__hub { color: var(--cu-netbar-ink); font-weight: 650; }
.cu-netbar__hub::before {
  content: "";
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--cu-netbar-vine);
  box-shadow: inset 0 0 0 2px var(--cu-netbar-bg), inset 0 0 0 6px var(--cu-netbar-vine);
}
.cu-netbar__sub { color: var(--cu-netbar-muted); font-weight: 400; }
.cu-netbar__list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none;
}
.cu-netbar__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.cu-netbar__list a::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--cu-netbar-node, var(--cu-netbar-vine));
}
.cu-netbar__list a:hover { background: rgba(95, 211, 160, 0.1); }
.cu-netbar a[aria-current] { color: var(--cu-netbar-ink); background: rgba(95, 211, 160, 0.16); box-shadow: inset 0 0 0 1px var(--cu-netbar-line); }
.cu-netbar__hub[aria-current] { background: none; box-shadow: none; }
.cu-netbar__note { margin-left: auto; flex: none; color: var(--cu-netbar-muted); font-weight: 400; white-space: nowrap; }

.cu-netbar [data-node="lyra"]     { --cu-netbar-node: #8fb3ff; }
.cu-netbar [data-node="orion"]    { --cu-netbar-node: #ffb680; }
.cu-netbar [data-node="halcyon"]  { --cu-netbar-node: #7fe0c8; }
.cu-netbar [data-node="sentinel"] { --cu-netbar-node: #ff9a8f; }
.cu-netbar [data-node="anima"]    { --cu-netbar-node: #d39bff; }
.cu-netbar [data-node="sol"]      { --cu-netbar-node: #ffd56b; }
.cu-netbar [data-node="core"]     { --cu-netbar-node: #b9c3ff; }

@media (max-width: 640px) {
  .cu-netbar__sub, .cu-netbar__note { display: none; }
}
@media print { .cu-netbar { display: none; } }
