/* Voroa Docs - professional, SEO-first static docs. Vercel Geist system: ink on near-white,
   blue accent for links/focus. */
:root {
  /* accent = Vercel blue (links / active nav / focus) */
  --primary: #0070f3;
  --primary-hover: #0761d1;
  --primary-dark: #0761d1;
  --primary-soft: #d3e5ff;
  /* ink / body / mute text ladder */
  --text: #171717;
  --text-2: #4d4d4d;
  --text-3: #8f8f8f;
  /* structural hairline + surfaces */
  --border: #ebebeb;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --canvas: #fafafa;
  --green: #0070f3;
  --radius: 12px;
  --maxw: 1240px;
  --sidebar-w: 250px;
  --rail-w: 220px;
  --header-h: 60px;
  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand-word {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.brand-docs {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.header-cta {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
}
.header-cta:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- layout ---------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
  gap: 28px;
  align-items: start;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 20px 0;
}
.nav-summary {
  display: none;
}
.nav-group {
  margin-bottom: 16px;
}
.nav-group-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  border-left: 2px solid transparent;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

/* ---------- content ---------- */
.content {
  min-width: 0;
  padding: 24px 0 42px;
}
.doc-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}
.doc h1 {
  margin: 0 0 9px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.9px;
}
.doc-lede {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}
.doc-body {
  font-size: 15px;
}
.doc-body h2 {
  margin: 25px 0 9px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.4px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.doc-body h3 {
  margin: 18px 0 7px;
  font-size: 17px;
  font-weight: 650;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* markdown-it-anchor headerLink - heading text hi link hai; rang inherit rahe */
.doc-body h2 a,
.doc-body h3 a {
  color: inherit;
}
.doc-body h2 a:hover,
.doc-body h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}
.doc-body p {
  margin: 0 0 11px;
}
.doc-body ul,
.doc-body ol {
  margin: 0 0 11px;
  padding-left: 20px;
}
.doc-body li {
  margin: 4px 0;
}
.doc-body li::marker {
  color: var(--text-3);
}
.doc-body strong {
  font-weight: 650;
  color: var(--text);
}
.doc-body a {
  color: var(--primary);
  font-weight: 500;
}
.doc-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
.doc-body pre {
  margin: 0 0 14px;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
}
.doc-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 13.5px;
}
.doc-body blockquote {
  margin: 0 0 14px;
  padding: 3px 12px;
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  color: var(--text-2);
}

.doc-meta {
  margin-top: 28px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* prev / next */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 0;
  max-width: 48%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.pager-link:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  text-decoration: none;
}
.pager-next {
  text-align: right;
  margin-left: auto;
}
.pager-dir {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
.pager-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- home ---------- */
.home-section {
  margin-top: 24px;
}
.home-section h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.doc-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.doc-card a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.doc-card a:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  text-decoration: none;
}
.doc-card-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.doc-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ---------- TOC rail ---------- */
.rail {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  padding: 28px 0;
}
.toc-title {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc-list li {
  margin: 0;
}
.toc-list a {
  display: block;
  padding: 3px 0 3px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.toc-list a:hover {
  color: var(--primary);
  text-decoration: none;
}
.toc-l3 a {
  padding-left: 26px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* Site footer moved to the shared home (shared/footer.mjs -> FOOTER_CSS, `.site-foot*`
   classes appended to this stylesheet at build). Do not re-add `.site-footer`/`.foot*`
   rules here. */

/* ---------- responsive ---------- */
/* hide TOC rail earlier (narrow desktop / tablet) */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
  .rail {
    display: none;
  }
}

/* mobile: sidebar collapses into a <details> menu above the content */
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 0 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-details {
    padding-bottom: 9px;
  }
  .nav-summary {
    display: block;
    cursor: pointer;
    list-style: none;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    background: var(--surface-2);
  }
  .nav-summary::-webkit-details-marker {
    display: none;
  }
  .nav-summary::after {
    content: '';
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg);
  }
  .nav-details[open] .nav-summary::after {
    transform: rotate(-135deg);
    margin-top: 9px;
  }
  .nav {
    padding: 10px 4px 0;
  }
  .content {
    padding: 18px 0 34px;
  }
  .doc h1 {
    font-size: 23px;
  }
}

/* desktop: force the <details> nav open + hide the summary (single markup for both) */
@media (min-width: 821px) {
  .nav-details > .nav {
    display: block !important;
  }
}


/* ---------- shared site footer (shared/footer.mjs) ---------- */
.site-foot { background: var(--surface-2); border-top: 1px solid var(--border); }
.site-foot-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 48px;
}
.site-foot-brand .brand { display: inline-flex; align-items: center; gap: 9px; }
.site-foot-tag {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34ch;
}
.site-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-foot-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.site-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot-col a { font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.site-foot-col a:hover { color: var(--primary); }
.site-foot-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.site-foot-bar a { color: var(--text-2); }
@media (max-width: 820px) {
  .site-foot-top { grid-template-columns: 1fr; gap: 30px; padding: 40px 24px 28px; }
  .site-foot-cols { grid-template-columns: 1fr 1fr; }
}
