/* API docs — shares tokens with site.css */
.docs-page { padding: 44px 0 70px; }
.docs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.docs-head h1 { max-width: 760px; }
.docs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 52px; align-items: start; }
.doc-toc { position: sticky; top: 92px; border-top: 1px solid var(--line); padding-top: 18px; }
.doc-toc p { margin: 0 0 10px; color: var(--muted-2); font: 10px var(--mono); letter-spacing: .05em; }
.doc-toc a { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; text-decoration: none; padding: 3px 0; }
.doc-toc a:hover { color: var(--accent); }
.doc-toc .toc-num { color: var(--muted-2); font: 9px var(--mono); margin-right: 6px; }
.doc-main { max-width: 860px; min-width: 0; }
.doc-section { scroll-margin-top: 92px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; }
.doc-main h2 { margin: 0 0 8px; font-size: 30px; }
.doc-main h3 { margin: 28px 0 8px; font: 600 15px/1.4 var(--sans); }
.doc-main h4 { margin: 22px 0 6px; font: 600 13px/1.5 var(--sans); }
.doc-main p { color: var(--muted); line-height: 1.8; }
.doc-main ul, .doc-main ol { color: var(--muted); padding-left: 22px; line-height: 1.9; }
.doc-kicker { color: var(--accent); font: 10px var(--mono); letter-spacing: .06em; margin: 0 0 6px !important; }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-family: var(--mono); font-size: 12px; }
.method { display: inline-block; min-width: 58px; text-align: center; padding: 4px 7px; border-radius: 4px; background: #e9eee2; color: #4a6341; font: 10px var(--mono); }
.method.post { background: #fae9e3; color: var(--accent); }
.method.get { background: #e8eef7; color: #375c86; }
.method.delete { background: #f7e7e4; color: #9b3b2e; }
.method.put { background: #f5edd9; color: #7c5b23; }
.code-card { margin: 12px 0 18px; background: var(--code); border-radius: 8px; overflow: hidden; border: 1px solid #332e26; }
.code-head { display: flex; justify-content: space-between; padding: 9px 13px; color: #8b8172; font: 9px var(--mono); border-bottom: 1px solid #332e26; background: #1d1a16; }
.code-card pre { margin: 0; padding: 15px 16px; overflow: auto; color: #e8dfd0; font: 11px/1.75 var(--mono); }
.code-card code { font: inherit; }
.tok-key { color: #e3ad8c; }
.tok-str { color: #b9c99f; }
.tok-num { color: #d0ad78; }
.tok-com { color: #7b7163; }
.doc-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.doc-table th { text-align: left; padding: 9px 11px; background: #faf6ee; color: var(--muted-2); font: 10px var(--mono); border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table code { font: 10px var(--mono); background: #f4efe5; padding: 1px 4px; border-radius: 3px; }
.doc-note { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fbf5ea; color: var(--muted); font-size: 12px; line-height: 1.8; }
.doc-note strong { color: var(--ink); }
.doc-nav-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.doc-nav-bottom a { color: var(--muted); }
@media (max-width: 900px) {
  .docs-body { grid-template-columns: 1fr; gap: 22px; }
  .doc-toc { position: static; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
  .doc-toc a { display: inline-block; margin-right: 14px; }
  .docs-head { display: block; }
  .doc-main h2 { font-size: 25px; }
}
