/* Vectropic Docs — editorial system (matches vectropic.ai) */
:root {
  --bg: hsl(40 34% 94%);
  --surface: hsl(40 34% 96%);
  --surface-2: hsl(40 20% 89%);
  --border: hsl(40 8% 72%);
  --ink: hsl(30 8% 10%);
  --muted: hsl(30 6% 34%);
  --muted-2: hsl(30 5% 52%);
  --primary-fg: hsl(40 34% 96%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(30 8% 8%);
    --surface: hsl(30 6% 11%);
    --surface-2: hsl(30 6% 14%);
    --border: hsl(30 4% 24%);
    --ink: hsl(40 30% 92%);
    --muted: hsl(30 5% 66%);
    --muted-2: hsl(30 5% 42%);
    --primary-fg: hsl(30 8% 8%);
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.7; font-size: 15px;
}
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 500; line-height: 1.25; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow {
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 10.5px; color: var(--muted);
}

/* layout */
.layout { display: flex; min-height: 100vh; }
.side {
  width: 260px; flex-shrink: 0; border-right: 1px solid var(--border);
  padding: 28px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.main { flex: 1; min-width: 0; display: flex; justify-content: center; }
.content { max-width: 800px; min-width: 0; flex: 1; padding: 48px 56px 120px; }
@media (max-width: 860px) {
  .side { display: none; }
  .main { display: block; }
  .content { padding: 32px 24px 80px; }
}

/* right rail: on this page */
.toc { display: none; width: 240px; flex-shrink: 0; }
@media (min-width: 1180px) { .toc { display: block; } }
.toc-inner {
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  padding: 56px 32px 40px 8px;
}
.toc-title {
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 10px; color: var(--muted-2); margin-bottom: 14px;
}
.toc-inner a {
  display: block; padding: 5px 0 5px 14px; font-size: 12.5px; line-height: 1.5;
  color: var(--muted-2); text-decoration: none; border-left: 1px solid var(--border);
}
.toc-inner a:hover { color: var(--ink); }
.toc-inner a.active { color: var(--ink); border-left-color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 8px; }
.wordmark { font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; font-size: 12px; }
.side .sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 32px; }
.side .group { margin-bottom: 8px; margin-top: 24px; }
.side a.item {
  display: block; padding: 7px 10px; margin: 1px -10px; font-size: 13.5px;
  color: var(--muted); text-decoration: none; border-left: 2px solid transparent;
}
.side a.item:hover { color: var(--ink); }
.side a.item.active { color: var(--ink); border-left-color: var(--ink); background: var(--surface-2); }
.side .foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-2); }
.side .foot a { color: var(--muted); text-decoration: none; }
.side .foot a:hover { color: var(--ink); }

/* topbar (mobile) */
.topbar { display: none; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .topbar { display: flex; } }
.topbar nav a { font-size: 12px; margin-left: 14px; color: var(--muted); text-decoration: none; }

/* content typography */
.content .eyebrow { margin-bottom: 12px; }
.content h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 16px; font-weight: 400; }
.content .lede { font-size: 16px; color: var(--muted); margin-bottom: 40px; max-width: 640px; }
.content h2 { font-size: 24px; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.content h3 { font-size: 17px; margin: 32px 0 10px; }
.content p { margin: 0 0 16px; color: var(--muted); }
.content p strong, .content li strong { color: var(--ink); font-weight: 500; }
.content ul, .content ol { margin: 0 0 16px 22px; color: var(--muted); }
.content li { margin-bottom: 8px; }
.content code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12.5px;
  background: var(--surface-2); padding: 2px 6px; border: 1px solid var(--border);
}
.content pre {
  background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--ink);
  padding: 16px 20px; overflow-x: auto; margin: 0 0 20px; font-size: 12.5px; line-height: 1.7;
}
.content pre code { background: none; border: none; padding: 0; }
.content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted-2); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: var(--ink); }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 13.5px; }
.content th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.content td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.content td:first-child { color: var(--ink); white-space: nowrap; }

/* callouts */
.note, .warn {
  border: 1px solid var(--border); border-left: 2px solid var(--ink);
  background: var(--surface); padding: 14px 18px; margin: 0 0 20px; font-size: 13.5px; color: var(--muted);
}
.warn { border-left-color: hsl(6 60% 42%); }
.note .t, .warn .t {
  display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 4px; font-weight: 500;
}

/* step list */
.stepper { counter-reset: step; list-style: none; margin: 0 0 24px; }
.stepper > li {
  counter-increment: step; position: relative; padding: 0 0 20px 44px; margin: 0;
  border-left: 1px solid var(--border); margin-left: 13px;
}
.stepper > li:last-child { border-left-color: transparent; }
.stepper > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: -14px; top: 0;
  width: 27px; height: 27px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--ink); font-size: 10px; font-weight: 500;
  font-family: "JetBrains Mono", monospace;
}
.stepper .t { display: block; color: var(--ink); font-weight: 500; font-size: 14.5px; margin-bottom: 2px; }

/* cards / page footer nav */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin-bottom: 24px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.cards a {
  display: block; padding: 22px 22px 26px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.cards a:hover { background: var(--surface-2); }
.cards .t { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.cards .d { font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { text-decoration: none; font-size: 13.5px; color: var(--muted); }
.pager a:hover { color: var(--ink); }
.pager .lbl { display: block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }

.logo-v { font-weight: 700; font-size: 15px; letter-spacing: -0.03em; }
