.document-page .document-main {
  width: min(100% - 40px, 820px);
  margin: 40px auto 64px;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.document-heading h1 { font-size: 2.25rem; line-height: 1.2; margin: 8px 0 20px; }
.document-heading > p { max-width: 70ch; }
.document-dates { color: var(--muted); font-size: 0.9rem; }
.document-toc { border-block: 1px solid var(--line); padding: 20px 0; margin: 28px 0; }
.document-toc h2 { font-size: 1rem; margin-top: 0; }
.document-toc ul { columns: 2; padding-left: 20px; margin-bottom: 0; }
.document-toc li { break-inside: avoid; margin-bottom: 6px; padding-right: 12px; }
.document-body section { margin-block: 36px; scroll-margin-top: 100px; }
.document-body h2 { font-size: 1.4rem; line-height: 1.35; }
.document-body h3 { font-size: 1.1rem; margin-top: 26px; }
.document-body p { margin: 12px 0; }
.document-body li { padding-left: 4px; margin-block: 12px; }
.document-body dt { font-weight: 700; margin-top: 18px; }
.document-body dd { margin: 4px 0 0; }
.document-main a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.document-main code { font-size: 0.92em; }
.document-related { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.document-related [aria-current] { font-weight: 700; }
.document-page :focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--surface); color: var(--text); }
.skip-link:focus { top: 12px; }
.document-page .header-search { display: none; }
.document-page .footer-links a { padding-block: 4px; }
@media (max-width: 600px) {
  .document-page .document-main { width: calc(100% - 32px); margin-top: 28px; }
  .document-heading h1 { font-size: 1.9rem; }
  .document-toc ul { columns: 1; }
  .document-body section { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .document-page .site-header, .document-page .site-footer, .document-page .mobile-tabs,
  .document-toc, .document-related, .skip-link { display: none; }
  .document-page { background: white !important; color: black; }
  .document-page .document-main { width: 100%; margin: 0; }
  .document-main a { color: inherit; }
}
