.docs-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}

.docs-shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px; max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px;
}

.docs-nav {
  position: sticky; top: 88px; align-self: start;
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid var(--line); padding-left: 2px;
}
.docs-nav a {
  color: var(--muted); font-size: 13px; padding: 5px 12px;
  border-left: 2px solid transparent; margin-left: -3px;
}
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--text); border-left-color: var(--accent); }

.docs-body { min-width: 0; }
.docs-body section { padding-bottom: 44px; }
.docs-body h1 { font-size: 30px; margin: 0 0 12px; }
.docs-body h2 {
  font-size: 21px; margin: 0 0 14px; padding-top: 12px;
  scroll-margin-top: 80px;
}
.docs-body section { scroll-margin-top: 80px; }
.docs-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 26px 0 10px; }
.docs-body p { max-width: 68ch; }
.lede { font-size: 16px; color: var(--muted); max-width: 62ch; }
.docs-body code { font-family: var(--mono); font-size: 0.92em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.docs-body .snippet code { background: none; padding: 0; }
.docs-body pre.snippet { white-space: pre; margin: 0 0 14px; line-height: 1.55; color: var(--text); }
.docs-body .table { margin-bottom: 14px; }
.docs-body .table td { font-size: 13px; }
.docs-body .table code { font-size: 12px; }

.endpoint { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.endpoint code { font-size: 14px; background: var(--panel-2); padding: 4px 10px; border-radius: 6px; }
.verb {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 6px;
}
.verb-post { background: rgba(62, 207, 142, 0.15); color: var(--ok); }
.verb-get { background: rgba(91, 140, 255, 0.15); color: var(--accent); }

.status-code {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ok); background: rgba(62, 207, 142, 0.12);
  padding: 3px 8px; border-radius: 999px; margin-left: 8px;
  text-transform: none;
}

.callout {
  border-left: 3px solid var(--accent); background: var(--panel);
  padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 18px 0;
  font-size: 13px; max-width: 68ch;
}

/* language tabs */
.tabs { margin-bottom: 14px; }
.tab-strip { display: flex; gap: 2px; margin-bottom: -1px; }
.tab {
  background: transparent; border: 1px solid transparent; border-bottom: none;
  color: var(--muted); padding: 7px 14px; cursor: pointer;
  border-radius: 8px 8px 0 0; font-size: 13px;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: #0b0d12; border-color: var(--line); color: var(--text);
}
.tab-panel { display: none; border-radius: 0 8px 8px 8px !important; }
.tab-panel.active { display: block; }

.docs-footer { border-top: 1px solid var(--line); padding-top: 18px; }

@media (max-width: 820px) {
  .docs-shell { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav {
    position: static; flex-direction: row; flex-wrap: wrap;
    border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px;
  }
  .docs-nav a { border-left: 0; margin-left: 0; }
  .docs-nav a.active { border-left: 0; color: var(--accent); }
}
