/* Documentation pages: the same bar, type and colours as the home page, set for reading. */
.docs-wrap { display: grid; grid-template-columns: 240px minmax(0, 760px) 220px; gap: 56px; padding: 56px var(--gut) 120px; justify-content: center; }

.docs-nav .docs-pick { display: none; }
.docs-nav section + section { margin-top: 32px; }
.docs-nav h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.docs-nav ul, .toc ul { list-style: none; }
.docs-nav li a, .toc li a { display: block; padding: 4px 0; font-size: 16px; color: var(--dim); text-decoration: none; }
.docs-nav li a:hover, .toc li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.docs-nav li a[aria-current] { color: var(--ink); font-weight: 700; }
.docs-nav, .toc { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; }
.toc h2 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.toc li a { font-size: 15px; }

.doc { font-size: 18px; line-height: 1.6; }
.doc h1 { font-size: clamp(32px, 5vw, 80px); hyphens: auto; overflow-wrap: anywhere; font-weight: 900; font-stretch: 118%; letter-spacing: -.04em; line-height: .92; margin-bottom: 32px; text-wrap: balance; }
.doc h2 { font-size: clamp(28px, 2.5vw, 40px); font-weight: 900; font-stretch: 118%; letter-spacing: -.035em; line-height: 1; margin: 64px 0 16px; padding-top: 24px; border-top: 3px solid var(--ink); }
.doc h3 { font-size: 22px; font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; margin: 40px 0 8px; }
.doc h4 { font-size: 18px; font-weight: 700; margin: 32px 0 8px; }
.doc p, .doc ul, .doc ol, .doc pre, .doc blockquote, .doc .table { margin-bottom: 20px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc li > ul { margin: 4px 0 0; }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc strong { font-weight: 700; }
.doc code { font-family: var(--code); font-size: .88em; background: #ebe8df; padding: 1px 5px; }
.doc pre { background: var(--ink); color: var(--paper); padding: 20px 24px; overflow-x: auto; font-size: 15px; line-height: 1.65; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc blockquote { border-left: 6px solid var(--blue); padding: 4px 0 4px 20px; color: var(--dim); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc .table { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; }
.doc th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; }
.doc td { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; vertical-align: top; }
.doc img { margin: 8px 0; }
.doc hr { border: 0; border-top: 2px solid var(--ink); margin: 48px 0; }

@media (max-width: 1180px) { .docs-wrap { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .docs-nav { position: static; max-height: none; }
  .docs-nav .docs-pick { display: block; } .docs-nav .docs-list { display: none; }
  .docs-pick > summary { font-weight: 700; cursor: pointer; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .docs-pick[open] > summary { margin-bottom: 16px; }
}
.docs-wrap > * { min-width: 0; }
.doc :is(p, li, td) { overflow-wrap: break-word; }
@media (max-width: 820px) { .docs-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .doc h1 { font-size: 9vw; } }
.doc h2 { hyphens: auto; overflow-wrap: break-word; }
