/* API documentation page. */
.docs { padding: 24px 0 72px; }
.docs__head { max-width: 760px; margin-bottom: 28px; }
.docs__head h1 { margin: 6px 0 10px; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.docs__layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs__toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: 0.92rem; }
.docs__toc a { padding: 7px 10px; border-radius: 8px; color: var(--text-muted); }
.docs__toc a:hover { background: var(--card-bg); color: var(--text); text-decoration: none; }
.docs__body { min-width: 0; max-width: 860px; }
.docs__body section { padding: 8px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.docs__body section:last-child { border-bottom: 0; }
.docs__body h2 { margin: 12px 0 10px; font-size: 1.5rem; scroll-margin-top: 90px; }
.docs__body p, .docs__body li { line-height: 1.6; }
.docs__body code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.docs__body pre { margin: 10px 0 16px; padding: 14px 16px; border-radius: 12px; background: #0b1020; color: #d7defa; overflow-x: auto; line-height: 1.5; }
.docs__body pre code { padding: 0; background: none; color: inherit; font-size: 0.85rem; }
.docs__table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.docs__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.docs__table th, .docs__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.docs__table th { background: var(--card-bg); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.docs__table tr:last-child td { border-bottom: 0; }
.docs__table td:nth-child(2) code { white-space: nowrap; }
.m { display: inline-block; min-width: 54px; padding: 2px 8px; border-radius: 6px; text-align: center; font-size: 0.75rem; font-weight: 800; color: #fff; }
.m--get { background: #23a55a; } .m--post { background: #4f46e5; } .m--delete { background: #dc2626; }
@media (max-width: 860px) {
  .docs__layout { grid-template-columns: minmax(0, 1fr); }
  .docs__toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}
