/* page-docs-content.css — single-doc reading view (sidebar + article) */

body.docs-page {
  background: #08121C;
  color: #c4ced9;
  margin: 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--topbar-height, 64px) + 16px) 0 0;
  min-height: calc(100vh - 64px);
  align-items: start;
}

/* ─── Sidebar ───────────────────────────────────── */
.docs-sidebar {
  position: sticky;
  top: calc(var(--topbar-height, 64px) + 24px);
  align-self: start;
  padding: 24px 18px 24px 24px;
  font-size: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.docs-sidebar-section {
  margin-bottom: 22px;
}
.docs-sidebar-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1abc9c;
  margin: 0 0 8px;
}
.docs-sidebar-section a {
  display: block;
  padding: 6px 10px;
  color: rgba(230, 237, 243, 0.65);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 120ms ease, background 120ms ease;
}
.docs-sidebar-section a:hover {
  color: #e6edf3;
  background: rgba(255,255,255,0.04);
}
.docs-sidebar .docs-back-link {
  color: #1abc9c;
  font-weight: 600;
  font-size: 13px;
}

/* ─── Content area ─────────────────────────────── */
.docs-content {
  padding: 24px 36px 60px;
  min-width: 0;  /* allow long code to shrink */
}
.docs-breadcrumb {
  font-size: 12.5px;
  color: rgba(230, 237, 243, 0.45);
  margin-bottom: 18px;
}
.docs-breadcrumb a {
  color: rgba(26, 188, 156, 0.85);
  text-decoration: none;
}
.docs-breadcrumb a:hover { color: #1abc9c; }

.docs-article {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 36px 44px;
  font-size: 15px;
  line-height: 1.7;
  color: #c4ced9;
  max-width: 880px;
}
.docs-article h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #e6edf3;
  line-height: 1.25;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 14px;
}
.docs-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 36px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 8px;
}
.docs-article h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 28px 0 10px;
}
.docs-article h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #e6edf3;
  margin: 22px 0 8px;
}
.docs-article p {
  margin: 0 0 14px;
}
.docs-article a {
  color: #1abc9c;
  text-decoration: underline;
  text-decoration-color: rgba(26, 188, 156, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 120ms ease;
}
.docs-article a:hover { text-decoration-color: #1abc9c; }
.docs-article ul, .docs-article ol {
  padding-left: 24px;
  margin: 0 0 14px;
}
.docs-article li {
  margin-bottom: 4px;
}
.docs-article li > p { margin-bottom: 4px; }
.docs-article strong { color: #e6edf3; font-weight: 600; }
.docs-article em { color: #e6edf3; }
.docs-article hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 28px 0;
}

/* Inline code & code blocks */
.docs-article code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13px;
  color: #1abc9c;
}
.docs-article pre {
  background: rgba(8, 18, 28, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.docs-article pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #e6edf3;
}

/* Tables */
.docs-article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
}
.docs-article th {
  background: rgba(13, 27, 42, 0.7);
  color: #1abc9c;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.docs-article td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #c4ced9;
}
.docs-article tr:last-child td { border-bottom: 0; }
.docs-article tr:hover td { background: rgba(255,255,255,0.02); }

/* Blockquotes / callouts */
.docs-article blockquote {
  border-left: 3px solid #1abc9c;
  background: rgba(26, 188, 156, 0.06);
  padding: 12px 16px;
  margin: 0 0 16px;
  color: #c4ced9;
  border-radius: 0 6px 6px 0;
}
.docs-article blockquote p:last-child { margin-bottom: 0; }

/* Images (e.g. screenshots) */
.docs-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 8px 0;
}

/* Page footer (back link) */
.docs-page-footer {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.docs-page-footer .docs-back-link {
  color: #1abc9c;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Footer override — keep dark, no extra padding for docs page */
.docs-footer { margin-top: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 24px;
  }
  .docs-content {
    padding: 24px;
  }
  .docs-article {
    padding: 24px;
  }
}

/* Smooth in-page anchor jumps + offset for fixed topbar */
html { scroll-behavior: smooth; }
.docs-article h1[id],
.docs-article h2[id],
.docs-article h3[id],
.docs-article h4[id] {
  scroll-margin-top: 96px; /* topbar height + breadcrumb + small breathing room */
}
.docs-article a[href^="#"]:hover {
  text-decoration-color: #1abc9c;
}
