/* About and legal documents share the existing editorial shell. */
.docs-page .page-hero .display { font-size: clamp(52px, 7vw, 100px); line-height: 0.98; }
.docs-page .article { grid-template-columns: 240px minmax(0, 1fr); }
.docs-page .article__toc { max-height: calc(100dvh - 136px); overflow-y: auto; padding: 4px 12px 8px 4px; }
.docs-page .article__toc a { line-height: 1.5; }
.docs-page .article__toc a span:first-child { flex: 0 0 2ch; }
.docs-page .article__toc a span:last-child { min-width: 0; }
.docs-updated { color: var(--muted); font-size: 13px; }
.docs-prose { width: 100%; max-width: 70ch; min-width: 0; overflow-wrap: anywhere; }
.docs-prose :is(section, h2, h3)[id] { scroll-margin-top: 108px; }
.docs-prose h2,
.docs-prose h2.display { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; }
.docs-prose h3 { margin-top: 28px; font-size: 21px; line-height: 1.3; }
.docs-prose > section + section { margin-top: 48px; padding-top: 40px; }
.docs-prose p { margin-top: 18px; line-height: 1.7; }
.docs-prose :is(ul, ol) { margin-block: 18px; padding-left: 1.5em; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.docs-prose ul { list-style: disc; }
.docs-prose ol { list-style: decimal; }
.docs-prose li + li { margin-top: 10px; }
.docs-prose li :is(ul, ol) { margin-block: 10px; }
.docs-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.docs-prose a:hover { color: var(--ink); }
.docs-page a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 860px) {
  .docs-page .article { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .docs-page .article__toc { max-height: none; overflow: visible; padding: 0 0 28px; border-bottom: 1px solid var(--rule); }
  .docs-prose :is(section, h2, h3)[id] { scroll-margin-top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.docs-page) { scroll-behavior: auto; }
}
