/* ══════════════════════════════════════════════════════════
   RagGo — Docs layout styles
   ══════════════════════════════════════════════════════════ */

.docs-shell {
  display: flex;
  min-height: calc(100vh - 62px); /* below nav */
}

/* ── Sidebar ─────────────────────────────────────────────── */
.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--bg-border);
  padding: 32px 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  background: var(--bg);
}

.docs-nav-section {
  margin-bottom: 24px;
  padding: 0 20px;
}
.docs-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.docs-nav-list a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  transition: all .15s;
}
.docs-nav-list a:hover { color: var(--text); background: var(--bg-card); }
.docs-nav-list a.active { color: var(--accent); background: rgba(191,66,23,.07); font-weight: 500; }

/* ── Content ─────────────────────────────────────────────── */
.docs-content {
  flex: 1;
  min-width: 0;
  padding: 48px 56px 80px;
  max-width: 760px;
}

.docs-content h1 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-bottom: 12px;
}
.docs-content h2 {
  font-size: 28px;
  margin-top: 52px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-border);
}
.docs-content h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.docs-content ul, .docs-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.docs-content li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 4px;
}
.docs-content a { color: var(--accent); }
.docs-content a:hover { text-decoration: underline; }

.docs-content pre {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.75;
}
.docs-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}
.docs-content pre code {
  background: none;
  padding: 0;
  color: #e8e2d6;
  font-size: 13px;
}

.docs-callout {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.docs-callout p { margin-bottom: 0; font-size: 14px; }
.docs-callout.info { border-left-color: var(--navy); }
.docs-callout.tip  { border-left-color: var(--green); }

.docs-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.docs-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.docs-breadcrumb a:hover { color: var(--accent); }

/* ── OS Tabs ─────────────────────────────────────────────── */
.os-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--bg-border); margin-bottom: 24px; }
.os-tabs .tab-btn {
  padding: 10px 22px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.os-tabs .tab-btn:hover { color: var(--text); }
.os-tabs .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.os-tabs .tab-btn svg { width: 16px; height: 16px; fill: currentColor; }

.os-tab-pane { display: none; }
.os-tab-pane.active { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .docs-shell { flex-direction: column; }
  .docs-sidebar { width: 100%; height: auto; position: relative; top: 0; border-right: none; border-bottom: 1px solid var(--bg-border); padding: 16px 0; }
  .docs-nav-section { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .docs-nav-label { display: none; }
  .docs-nav-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs-content { padding: 32px 24px 60px; }
}
