/* Help docs: uses the home page's tokens, header and footer (styles.css) */
.docs-page .site-header { position:sticky; background:rgba(244,245,251,.96); color:var(--night); box-shadow:0 1px 0 var(--line); backdrop-filter:blur(10px); }
.docs-page .nav-wrap nav>a[aria-current=page] { text-decoration:underline; opacity:1; }
.docs-hero { background:var(--cobalt); color:var(--white); padding:56px 0 52px; }
.docs-hero .crumbs { font-size:14px; opacity:.85; margin-bottom:14px; }
.docs-hero .crumbs a { color:inherit; }
.docs-hero h1 { font-size:clamp(44px,7vw,88px); line-height:.92; }
.docs-hero p { margin-top:18px; max-width:40em; font-size:clamp(17px,1.5vw,20px); }

.docs-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:56px; padding:48px 0 88px; }
.docs-toc { position:sticky; top:104px; align-self:start; font-size:15px; }
.docs-toc strong { display:block; font:800 13px/1 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.docs-toc a { display:block; padding:6px 0 6px 14px; border-left:2px solid var(--line); text-decoration:none; color:var(--muted); }
.docs-toc a:hover { color:var(--night); border-color:var(--cobalt); }
.docs-toc .toc-sub { padding-left:28px; font-size:14px; }

.doc { max-width:820px; min-width:0; }
.doc section { padding-top:8px; margin-bottom:52px; }
.doc h2 { font-size:clamp(32px,4vw,48px); margin-bottom:18px; }
.doc h3 { font:700 22px/1.25 var(--body); letter-spacing:0; margin:34px 0 10px; }
.doc h4 { font:700 17px/1.3 var(--body); margin:24px 0 8px; }
.doc p, .doc ul, .doc ol, .doc table, .doc pre, .doc .note { margin-bottom:16px; }
.doc ul { list-style:disc; padding-left:22px; }
.doc ol { list-style:decimal; padding-left:22px; }
.doc li { margin-bottom:6px; }
.doc a { color:var(--cobalt-deep); }
.doc code { font:14px/1.5 ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace; background:#e6e8f6; padding:2px 6px; border-radius:6px; overflow-wrap:anywhere; }
.doc pre { background:var(--night); color:#e9ecff; padding:18px 20px; border-radius:14px; overflow-x:auto; font-size:14px; line-height:1.55; }
.doc pre code { background:none; padding:0; color:inherit; overflow-wrap:normal; }
.doc pre { position:relative; }
.doc pre .copy { position:absolute; top:10px; right:10px; font:600 12px/1 var(--body); padding:7px 10px; border-radius:8px; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.08); color:#e9ecff; opacity:0; transition:opacity .15s; }
.doc pre:hover .copy, .doc pre .copy:focus-visible { opacity:1; }
@media(hover:none) { .doc pre .copy { opacity:1; } }
.doc table { width:100%; border-collapse:collapse; font-size:15px; background:var(--white); border-radius:12px; overflow:hidden; box-shadow:0 0 0 1px var(--line); display:block; overflow-x:auto; }
.doc table > tbody { display:table; width:100%; border-collapse:collapse; }
.doc th, .doc td { text-align:left; vertical-align:top; padding:10px 14px; border-bottom:1px solid var(--line); }
.doc th { background:#e9ecfb; font-weight:600; white-space:nowrap; }
.doc tr:last-child td { border-bottom:0; }
.doc .note { background:#fff6cf; border-left:4px solid var(--lemon); padding:14px 18px; border-radius:0 12px 12px 0; }
.endpoint { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:30px 0 10px; font:600 17px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; }
.endpoint .m { font:700 12px/1 var(--body); letter-spacing:.06em; padding:6px 9px; border-radius:6px; color:var(--white); background:var(--leaf); }
.endpoint .m.post { background:var(--cobalt); }
.endpoint .m.patch { background:#8a5a00; }
.endpoint .m.delete { background:var(--tomato); }

.docs-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:48px 0 88px; }
.docs-cards a { display:block; background:var(--white); border-radius:20px; padding:28px; text-decoration:none; box-shadow:0 0 0 1px var(--line); transition:transform .16s,box-shadow .16s; }
.docs-cards a:hover { transform:translateY(-3px); box-shadow:0 0 0 2px var(--cobalt); }
.docs-cards h2 { font-size:34px; margin-bottom:10px; }
.docs-cards p { color:var(--muted); font-size:16px; }
.docs-cards span { display:inline-block; margin-top:16px; font-weight:600; color:var(--cobalt-deep); }

@media(max-width:960px) {
  .docs-layout { grid-template-columns:minmax(0,1fr); gap:24px; padding-top:32px; }
  .docs-toc { position:static; display:none; }
  .docs-cards { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .docs-page .container { width:calc(100% - 32px); }
  .doc pre { margin-inline:-16px; border-radius:0; }
}
