/* Herkos - shared styles
   Dark, technical surface. One accent gradient: teal -> indigo.
   System font stacks only. No external fonts, no CDN. */

:root {
  /* surface */
  --bg:        #0d1320;
  --bg-1:      #111829;
  --bg-2:      #161e30;
  --panel:     #1a2336;
  --panel-2:   #1f2940;
  --line:      #2a3550;
  --line-2:    #394763;

  /* text */
  --fg:        #e7ecf3;
  --fg-muted:  #aab4c2;
  --fg-dim:    #7b8694;
  --fg-faint:  #5b6675;

  /* accent: teal -> indigo */
  --teal:      #2dd4bf;
  --teal-dim:  #14b8a6;
  --indigo:    #6366f1;
  --indigo-dim:#4f46e5;
  --grad:      linear-gradient(100deg, var(--teal) 0%, var(--teal-dim) 100%);
  --grad-soft: linear-gradient(100deg, rgba(45,212,191,0.14) 0%, rgba(20,184,166,0.14) 100%);

  /* status */
  --ok:        #2dd4bf;
  --warn:      #f5b14c;
  --bad:       #f3766e;

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code",
          Menlo, Consolas, "Liberation Mono", monospace;

  /* rhythm */
  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 9px;
  --pad: clamp(20px, 5vw, 40px);

  --shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 18px 50px -24px rgba(0,0,0,0.7);
  --shadow-lg: 0 30px 80px -40px rgba(0,0,0,0.85);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient depth field - the sonar/depth motif, fixed behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(45,212,191,0.09), transparent 62%),
    radial-gradient(760px 480px at 12% 4%, rgba(45,212,191,0.06), transparent 58%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 60%, var(--bg) 100%);
  pointer-events: none;
}

/* faint horizontal depth lines, like sonar bands */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.015) 100%);
  background-size: 100% 88px;
  pointer-events: none;
  opacity: 0.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #5ee6d3; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

code, kbd, samp { font-family: var(--mono); }

::selection { background: rgba(45,212,191,0.28); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mono { font-family: var(--mono); }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.nowrap { white-space: nowrap; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  z-index: 100;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: rgba(13,19,32,0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.62rem;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand .mark { display: block; width: 48px; height: 48px; }
.brand .word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--fg-muted);
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.nav a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav a.cta {
  color: var(--bg);
  background: var(--grad);
  font-weight: 600;
}
.nav a.cta:hover { color: var(--bg); filter: brightness(1.06); }
.nav .gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav .gh svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  width: 40px;
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--pad) 18px;
    background: rgba(13,19,32,0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a { padding: 12px 12px; }
  .nav a.cta { text-align: center; margin-top: 6px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: var(--bg);
  box-shadow: 0 10px 30px -12px rgba(45,212,191,0.5);
}
.btn-primary:hover { color: var(--bg); filter: brightness(1.07); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  color: var(--fg);
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.06); border-color: #36425a; }
.btn svg { width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.section-tight { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--grad);
}

.section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
.section .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 60ch;
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(64px, 11vw, 130px);
  padding-bottom: clamp(40px, 8vw, 80px);
  position: relative;
}
.hero-inner { position: relative; z-index: 2; }
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.025);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero .tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 16ch;
}
.hero h1 .lead { color: var(--fg); }
.hero .sub {
  font-size: clamp(1.08rem, 2.3vw, 1.32rem);
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}
.hero .cta-note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fg-dim);
}

/* depth motif behind hero - concentric sonar arcs via inline svg container */
.hero-depth {
  position: absolute;
  z-index: 1;
  top: -40px;
  right: -120px;
  width: min(720px, 80vw);
  height: 720px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
@media (max-width: 760px) {
  .hero-depth { opacity: 0.32; right: -42%; top: 10px; }
}

/* ---------- cards / grid ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--fg-muted); margin-bottom: 0; font-size: 0.97rem; }
.card .ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  background: var(--grad-soft);
  color: var(--teal);
}
.card .ic svg { width: 19px; height: 19px; }

/* ---------- terminal block ---------- */
.terminal {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #090c12;
  box-shadow: var(--shadow-lg);
}
.terminal .bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1a2336, #0b0f1a);
  border-bottom: 1px solid var(--line);
}
.terminal .bar .dots { display: inline-flex; gap: 7px; }
.terminal .bar .dots i {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block; background: #2a3343;
}
.terminal .bar .dots i:nth-child(1) { background: #e0686250; }
.terminal .bar .dots i:nth-child(2) { background: #e0b36250; }
.terminal .bar .dots i:nth-child(3) { background: #6fcf9750; }
.terminal .bar .title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-left: 4px;
}
.terminal pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--fg);
  overflow-x: auto;
  tab-size: 2;
}
.terminal pre .c-prompt { color: var(--indigo); }
.terminal pre .c-cmd { color: var(--fg); }
.terminal pre .c-comment { color: var(--fg-faint); }
.terminal pre .c-ok { color: var(--ok); font-weight: 600; }
.terminal pre .c-warn { color: var(--warn); }
.terminal pre .c-key { color: var(--teal); }
.terminal pre .c-num { color: #c4a6ff; }
.terminal pre .c-dim { color: var(--fg-dim); }
.terminal pre .c-hash { color: var(--fg-dim); word-break: break-all; }

/* ---------- copy command block ---------- */
.cmd {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #090c12;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 0 14px;
}
.cmd pre {
  margin: 0;
  padding: 15px 18px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--fg);
  overflow-x: auto;
  flex: 1;
  line-height: 1.6;
}
.cmd pre .c-prompt { color: var(--indigo); user-select: none; }
.cmd pre .c-comment { color: var(--fg-faint); }
.cmd pre .c-flag { color: var(--teal); }
.copy-btn {
  flex: 0 0 auto;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0 15px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.copy-btn:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { color: var(--ok); }

/* ---------- spangate diagram ---------- */
.diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  padding: 28px;
  box-shadow: var(--shadow);
}
.diagram svg { width: 100%; height: auto; display: block; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
}
.step .n {
  counter-increment: step;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--grad);
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 10px; }

/* ---------- limits / bypass ---------- */
.limits {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245,177,76,0.05), transparent 40%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  padding: clamp(24px, 4vw, 38px);
}
.limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.limit-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
}
.limit-list li .x {
  margin-top: 4px;
  width: 18px; height: 18px;
  color: var(--warn);
  flex: 0 0 auto;
}
.limit-list li b { color: var(--fg); font-weight: 600; }
.limit-list li span { color: var(--fg-muted); }
.limit-list code {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.86em;
  color: var(--teal);
}

.callout {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--teal);
  background: rgba(45,212,191,0.05);
  color: var(--fg-muted);
  font-size: 0.97rem;
}
.callout b { color: var(--fg); }

/* ---------- pills / meta ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fg-muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.02);
}
.pill svg { width: 14px; height: 14px; color: var(--teal); }

/* ---------- big CTA ---------- */
.cta-band {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 56px);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(99,102,241,0.16), transparent 70%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--fg-muted); max-width: 52ch; margin: 0 auto 26px; }
.cta-band .cta-row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: rgba(0,0,0,0.2);
  margin-top: 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .col h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.site-footer .col a {
  display: block;
  color: var(--fg-muted);
  font-size: 0.93rem;
  padding: 4px 0;
}
.site-footer .col a:hover { color: var(--fg); }
.site-footer .foot-brand { max-width: 280px; }
.site-footer .foot-brand p { color: var(--fg-dim); font-size: 0.9rem; margin: 10px 0 0; }
.site-footer .legal {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--fg-faint);
  font-size: 0.85rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   DOCS LAYOUT
   ========================================================= */
.docs {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px var(--pad) 80px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 86px;
  align-self: start;
}
.docs-side nav { display: block; }
.docs-side .grp {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 20px 0 8px;
  padding-left: 12px;
}
.docs-side .grp:first-child { margin-top: 0; }
.docs-side a {
  display: block;
  color: var(--fg-muted);
  font-size: 0.92rem;
  padding: 7px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
}
.docs-side a:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.docs-side a[aria-current="page"] {
  color: var(--fg);
  background: var(--grad-soft);
  border-left-color: var(--teal);
  font-weight: 550;
}

.docs-main { min-width: 0; }
.docs-main .crumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.docs-main .crumb a { color: var(--fg-dim); }
.docs-main .crumb a:hover { color: var(--teal); }
.docs-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}
.docs-main .page-lede {
  font-size: 1.12rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 62ch;
}
.docs-main h2 {
  font-size: 1.45rem;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 10px;
  scroll-margin-top: 80px;
}
.docs-main h3 {
  font-size: 1.12rem;
  margin-top: 30px;
  margin-bottom: 10px;
  scroll-margin-top: 80px;
}
.docs-main p { color: var(--fg-muted); }
.docs-main ul, .docs-main ol { color: var(--fg-muted); padding-left: 22px; }
.docs-main li { margin: 6px 0; }
.docs-main strong { color: var(--fg); font-weight: 600; }
.docs-main a { color: var(--teal); }
.docs-main a:hover { text-decoration: underline; }

.docs-main p code,
.docs-main li code,
.docs-main td code {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1.5px 6px;
  font-size: 0.86em;
  color: var(--teal);
  word-break: break-word;
}

.docs-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}
.docs-main th, .docs-main td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.docs-main th {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line-2);
}
.docs-main td { color: var(--fg-muted); }
.docs-main tr:hover td { background: rgba(255,255,255,0.015); }

.note {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--teal);
  background: rgba(45,212,191,0.05);
}
.note.warn { border-left-color: var(--warn); background: rgba(245,177,76,0.05); }
.note p { margin: 0; color: var(--fg-muted); }
.note p code { color: var(--teal); }
.note .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.note.warn .label { color: var(--warn); }

.docs-foot {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.docs-foot .edit {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.docs-foot .edit svg { width: 15px; height: 15px; }
.docs-foot .pager { display: inline-flex; gap: 10px; }
.docs-foot .pager a {
  font-size: 0.9rem;
  color: var(--fg-muted);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 14px;
}
.docs-foot .pager a:hover { color: var(--fg); border-color: #36425a; text-decoration: none; }

/* mobile docs sidebar */
.docs-side-toggle { display: none; }
@media (max-width: 880px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-side {
    position: static;
    top: auto;
    margin-bottom: 8px;
  }
  .docs-side-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line-2);
    color: var(--fg);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 10px;
  }
  .docs-side-toggle svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
  .docs-side-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .docs-side nav {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 18px;
    background: var(--bg-2);
  }
  .docs-side nav[data-open="true"] { display: block; }
}

/* utility spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 20px; }

/* heading anchors: hover reveals a "#" you can click to copy a deep link */
.docs-main h1, .docs-main h2, .docs-main h3 { position: relative; }
.heading-anchor { margin-left: .4em; color: var(--fg-muted); opacity: 0; text-decoration: none; font-weight: 400; transition: opacity .15s ease; }
.docs-main h1:hover .heading-anchor,
.docs-main h2:hover .heading-anchor,
.docs-main h3:hover .heading-anchor { opacity: .55; }
.heading-anchor:hover { opacity: 1; color: #2dd4bf; }
