/* NodeForEdge shared tokens + chrome. Used by www, status and docs. */
:root {
  --bg: #e4e8ec;
  --surface: #f3f5f7;
  --surface-2: #d9dee4;
  --ink: #0d1520;
  --muted: #4d5a69;
  --line: #bcc5cf;
  --accent: #2446f0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(36, 70, 240, .10);
  --ok: #17935c;
  --warn: #b97800;
  --down: #d8470a;
  --idle: #8896a6;
  --font: "Geologica", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1018;
    --surface: #111a26;
    --surface-2: #17222f;
    --ink: #e7ecf1;
    --muted: #94a2b2;
    --line: #243242;
    --accent: #7b95ff;
    --accent-ink: #0a1018;
    --accent-soft: rgba(123, 149, 255, .12);
    --ok: #3ccf8e;
    --warn: #f0b429;
    --down: #ff6a2b;
    --idle: #5d6c7d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* footer */
.site-foot {
  max-width: calc(var(--maxw) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: 36px 0 56px;
  display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--ink); }
.site-foot nav a { text-decoration-thickness: 1px; }

/* status dot, reused everywhere */
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--idle); flex: none; }
.dot[data-state="up"] { background: var(--ok); }
.dot[data-state="degraded"] { background: var(--warn); }
.dot[data-state="down"] { background: var(--down); }

@media (max-width: 620px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
