/* ═══════════════════════════════════════════════════════════
   API documentation drawer — builds on tutorial.css doc blocks
   ═══════════════════════════════════════════════════════════ */

.api-endpoint { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); }
.api-endpoint .doc-section__body { gap: 10px; }
.api-group {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin: 20px 0 8px;
}

.api-method {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 52px; height: 22px; padding: 0 6px; border-radius: 5px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.api-method--get { background: var(--success-soft); color: var(--success); }
.api-method--post { background: var(--running-soft); color: var(--running); }
.api-method--patch { background: var(--warning-soft); color: var(--warning); }

.api-path {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.api-path code { background: none; border: 0; padding: 0; font-size: 13px; color: var(--text); }

.api-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.api-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.api-table th, .api-table td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.api-table tr:last-child td { border-bottom: 0; }
.api-table th { background: var(--surface-2); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.api-table td { color: var(--text-2); }
.api-table td:first-child { white-space: nowrap; }
.api-table td:first-child code { color: var(--primary-text); }

.api-code {
  margin: 0; padding: 12px 14px; overflow-x: auto; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; color: var(--text-2);
}
.api-code code { background: none; border: 0; padding: 0; font-size: inherit; word-break: normal; white-space: pre; }
.hl-key { color: var(--primary-text); }
.hl-str { color: var(--success); }
.hl-num { color: var(--warning); }

.api-notes { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.api-notes .doc-sub { margin: 0 0 10px; }
