/* ==========================================================================
   The user guide (docs-content.html): public at /docs and the app's Docs page.
   Only .docs* classes, since the app loads this next to style.css.
   ========================================================================== */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 40px 0 64px; align-items: start; }
.docs-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: var(--fs-sm); }
.docs-toc b { display: block; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-xs); margin-bottom: var(--sp-2); }
.docs-toc a { display: block; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; }
.docs-toc a:hover { background: var(--surface-2); color: var(--ink); }
.docs-toc a[aria-current] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: var(--sp-5); padding-top: var(--sp-6); }
  .docs-toc { position: static; max-height: none; columns: 2; }
}
.docs { max-width: 46em; font-size: 15px; line-height: 1.65; }
.docs > header h1 { font-size: 34px; letter-spacing: -0.025em; margin-bottom: var(--sp-2); }
.docs > header p { color: var(--ink-2); font-size: var(--fs-lg); margin: 0; }
.docs section { scroll-margin-top: 84px; padding-top: var(--sp-8); }
.docs h2 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: var(--sp-3); padding-top: var(--sp-6); border-top: 1px solid var(--hairline); }
.docs h3 { font-size: 16px; margin: var(--sp-5) 0 var(--sp-1); }
.docs p, .docs ul, .docs ol { margin: 0 0 var(--sp-3); }
.docs ul, .docs ol { padding-left: 1.3em; }
.docs li { margin: 3px 0; }
.docs code { font-size: .88em; }
.docs pre { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); overflow-x: auto; font-size: 13px; line-height: 1.5; }
.docs pre code { background: none; border: 0; padding: 0; }
.docs .docs-tip { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-3); }
.docs .docs-tip > :last-child { margin-bottom: 0; }
.docs kbd { font: 600 12px var(--font); padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--hairline-strong); }
.docs dl { margin: 0 0 var(--sp-3); }
.docs dt { font-weight: 650; }
.docs dd { margin: 0 0 var(--sp-2) 0; color: var(--ink-2); }
/* the website's pages per section (server/site.js) */
.docs-page section { padding-top: 0; }
.docs-page h1 { font-size: 34px; letter-spacing: -0.025em; margin-bottom: var(--sp-4); }
.docs-crumbs { color: var(--ink-3); font-size: var(--fs-sm); margin: 0 0 var(--sp-2) !important; }
.docs-crumbs a { color: var(--ink-2); }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-8); }
@media (max-width: 600px) { .docs-cards { grid-template-columns: 1fr; } }
.docs-card {
  display: block; padding: var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); line-height: 1.5;
}
.docs-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.docs-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.docs-pager { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--hairline); }
.docs-pager a { display: block; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.docs-pager a:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.docs-pager a[rel="next"] { text-align: right; margin-left: auto; }
.docs-pager small { display: block; color: var(--ink-3); font-weight: 500; font-size: var(--fs-xs); }

/* inside the app, the guide sits in #main */
.docs-in-app { padding: 0 var(--sp-6); }
.docs-in-app .docs-layout { padding-top: var(--sp-6); }
.docs-in-app .docs-toc { top: var(--sp-6); }
@media (max-width: 600px) { .docs-in-app { padding: 0 var(--sp-4); } }
