/* Docs */
.docs-main { padding: 0; min-height: calc(100vh - 60px); }
.docs-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 60px); }
.docs-side {
  border-right: 1px solid var(--border);
  padding: 28px 22px;
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.docs-group { margin-bottom: 22px; }
.docs-group-h { font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; margin: 0 0 8px 8px; text-transform: uppercase; }
.docs-nav-item {
  display: block; width: 100%; text-align: left;
  padding: 7px 10px;
  background: transparent; border: none;
  color: var(--fg-dim);
  font-size: 13px;
  border-radius: var(--radius-xs);
  border-left: 2px solid transparent;
  transition: color 0.12s, background 0.12s;
}
.docs-nav-item:hover { color: var(--fg); background: var(--panel); }
.docs-nav-item.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }

.docs-article { padding: 40px 56px 64px; max-width: 720px; }
.docs-breadcrumb { font-size: 10.5px; color: var(--muted); letter-spacing: 0.12em; margin-bottom: 14px; }
.docs-h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.025em; }
.docs-sec { margin-top: 32px; }
.docs-h2 { font-size: 20px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.docs-p { color: var(--fg-dim); line-height: 1.65; font-size: 15px; max-width: 70ch; }
.docs-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 800px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .docs-side::-webkit-scrollbar { display: none; }
  .docs-group { margin-bottom: 0; flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
  .docs-group-h {
    margin: 0 8px 0 0;
    white-space: nowrap;
    align-self: center;
  }
  .docs-nav-item {
    width: auto;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-xs);
  }
  .docs-nav-item.active { border-left: none; border-bottom-color: var(--accent); }
  .docs-article { padding: 28px 20px; }
}
