
/* ── Self-hosted type ──────────────────────────────────────────────────
   Served from this origin, not Google. A product whose entire pitch is
   "nothing leaves your machine" should not hand every visitor's IP to a
   third party just to render text. Both families are VARIABLE fonts, so
   one file per family covers every weight used here.
   latin-ext is declared but only downloaded if a glyph in that range is
   actually rendered — unicode-range gates the request. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800;
  font-display: swap; src: url('/fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800;
  font-display: swap; src: url('/fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* EdgeProof docs, generated pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #090c0a; --surface: #0f1310; --card: #0d100e;
  --border: rgba(210,240,220,0.09); --border-s: rgba(210,240,220,0.15);
  --text: #e7eae7; --text-2: #9aa39d; --text-3: #5b655e;
  --green: #2fd582; --green-bg: rgba(47,213,130,0.07);
  --mono: 'JetBrains Mono','Cascadia Code',monospace;
  --sans: 'Inter',-apple-system,system-ui,sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 54px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  background: rgba(9,12,10,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar .logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14.5px; font-weight: 500; color: var(--green); text-decoration: none; }
.topbar .logo .mark { display: block; }
.topbar .spacer { margin-left: auto; }
.topbar a.top-link { font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.topbar a.top-link:hover { color: var(--text); }
.topbar a.cta {
  font-size: 13.5px; font-weight: 500; color: #080b08; background: var(--green);
  padding: 6px 13px; border-radius: 8px; text-decoration: none;
}

/* Layout */
.layout { max-width: 1140px; margin: 0 auto; display: flex; gap: 40px; padding: 0 24px; }
.sidebar {
  width: 220px; flex-shrink: 0; padding: 36px 0 60px;
  position: sticky; top: 54px; align-self: flex-start;
  max-height: calc(100vh - 54px); overflow-y: auto;
}
.sidebar .group { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 8px; font-weight: 600; }
.sidebar .group:first-child { margin-top: 0; }
.sidebar a {
  display: block; font-size: 13.5px; color: var(--text-2); text-decoration: none;
  padding: 5px 10px; border-radius: 6px; margin: 1px 0;
}
.sidebar a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sidebar a.active { color: var(--green); background: var(--green-bg); }

.content { flex: 1; min-width: 0; padding: 40px 0 100px; max-width: 760px; }

/* Markdown content */
.content h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: #f2f4f2; margin-bottom: 20px; }
.content h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: #f2f4f2; margin: 40px 0 12px; padding-top: 8px; }
.content h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 26px 0 8px; }
.content p { color: var(--text-2); margin-bottom: 15px; }
.content ul, .content ol { margin: 0 0 15px 24px; color: var(--text-2); }
.content li { margin-bottom: 7px; }
.content strong { color: var(--text); font-weight: 600; }
.content a { color: var(--green); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content code {
  font-family: var(--mono); font-size: 0.85em;
  background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; color: #e8e8e8;
}
.content pre {
  background: #0b0e0c; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; margin: 0 0 18px;
}
.content pre code { background: none; padding: 0; font-size: 12.5px; color: #cfcfcf; line-height: 1.6; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13.5px; }
.content th, .content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.content thead th { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: #0b0e0c; }
.content td { color: var(--text-2); }
.content td code { color: var(--green); }
.content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.content blockquote { border-left: 3px solid var(--green); padding-left: 16px; margin: 0 0 16px; color: var(--text-2); }

.docs-foot { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; font-size: 13px; color: var(--text-3); }
.docs-foot a { color: var(--text-2); text-decoration: none; }

/* Mobile */
.menu-btn { display: none; }
@media (max-width: 820px) {
  .layout { display: block; padding: 0 20px; }
  .sidebar {
    width: auto; position: static; max-height: none;
    padding: 16px 0; border-bottom: 1px solid var(--border); display: none;
  }
  .sidebar.open { display: block; }
  .menu-btn {
    display: inline-block; background: none; border: 1px solid var(--border);
    color: var(--text-2); border-radius: 6px; padding: 5px 11px; font-size: 13px;
    font-family: var(--sans); cursor: pointer;
  }
  .content { padding: 28px 0 80px; }
}

html { color-scheme: dark; }
:focus-visible { outline: 2px solid #2fd582; outline-offset: 2px; }
