/* docs.css: two-column reference layout on top of site.css (sticky TOC, readable tables, LTR code blocks). */
.docs { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 56px); padding: 40px var(--pad) 80px; max-width: 1180px; margin: 0 auto; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.toc a:hover { color: var(--ink); }
.doc { min-width: 0; max-width: 800px; }
.doc h1 { font-size: clamp(30px, 3.6vw, 44px); }
.doc h2 { font-size: 24px; margin: 52px 0 12px; scroll-margin-top: 80px; max-width: none; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: #3f3f46; }
.doc p + p { margin-top: 10px; }
.doc a { color: var(--accent-hover); }
.doc :not(pre) > code { background: var(--ground); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font: 13px var(--mono); unicode-bidi: plaintext; }
.doc pre { background: #18181b; color: #e4e4e7; border-radius: var(--r-box); padding: 18px 20px; overflow-x: auto; margin: 14px 0; font: 13px/1.7 var(--mono); white-space: pre-wrap; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: var(--b) solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--muted); font-size: 13px; }
.doc td:first-child { white-space: nowrap; }
.steps-list, .doc ul { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 6px; }
.note { font-size: 15px; color: var(--muted) !important; border-inline-start: 2px solid var(--accent); padding-inline-start: 12px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; padding-top: 24px; } .toc { display: none; } }
/* Guide / errors pages: breadcrumbs, numbered steps and the closing call to action. */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; }
.doc h3[id] { scroll-margin-top: 80px; }
.cta-box { margin-top: 56px; padding: 28px; border-radius: var(--r-box); background: linear-gradient(180deg, #fff8ee, #fff); border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 8px; font-size: 22px; }
.cta-box p { margin-bottom: 18px; }
.cta-box .btn { color: #fff; text-decoration: none; }
.howto { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; margin: 18px 0; }
.howto > li { counter-increment: step; position: relative; min-width: 0; padding-inline-start: 48px; }
.howto > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.doc .howto h2 { margin: 2px 0 8px; font-size: 21px; }
.byline { font-size: 14px; color: var(--muted) !important; margin: -4px 0 18px; }
.byline a { color: inherit !important; }
