/* ── DOCS ── */
.docs-body { overflow: auto; height: auto; }
.docs-layout {
  display: flex;
  max-width: 1200px;
  margin: 60px auto 0;
  min-height: calc(100vh - 60px);
}
.docs-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 32px 16px;
  border-right: 1px solid var(--border);
}
.docs-sidebar__section { margin-bottom: 28px; }
.docs-sidebar__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--text3);
  margin-bottom: 8px;
}
.docs-sidebar__link {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text2);
  border-radius: var(--radius);
  transition: var(--transition);
  margin-bottom: 2px;
}
.docs-sidebar__link:hover { color: var(--text); background: var(--bg2); }
.docs-sidebar__link--active { color: var(--accent); background: var(--accent-dim); }
.docs-main {
  flex: 1;
  padding: 40px 48px;
  max-width: 780px;
}
.docs-section {
  margin-bottom: 64px;
  padding-top: 16px;
}
.docs-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.docs-section h1 { margin-bottom: 16px; }
.docs-section h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.docs-section h4 { font-size: .9rem; margin: 20px 0 10px; color: var(--text); font-family: var(--sans); font-weight: 600; }
.docs-section p { margin-bottom: 14px; font-size: 14px; line-height: 1.7; }
.docs-section a { color: var(--accent); }
.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid;
  margin: 16px 0;
  font-size: 13px;
}
.callout--info { background: var(--accent-dim); border-color: var(--accent); color: var(--text2); }
.callout--warn { background: #1a1000; border-color: #ff9900; color: #cc8800; }
.callout strong { color: var(--text); display: block; margin-bottom: 4px; }
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}
.docs-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg2);
  color: var(--text2);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.docs-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
  line-height: 1.5;
}
.docs-table td code { color: var(--accent); background: var(--accent-dim); padding: 2px 6px; border-radius: 3px; }
.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.endpoint-header code { font-size: 14px; color: var(--text); }
.method {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .05em;
  font-weight: 500;
}
.method--post { background: rgba(255,69,0,.15); color: var(--accent); }
.method--get { background: rgba(0,230,118,.1); color: var(--green); }

@media (max-width: 768px) {
  .docs-sidebar { display: none; }
  .docs-main { padding: 24px 20px; }
}
