/* Documentation shares the site's colours, type and navigation. */
.doc { max-width: 940px; overflow-wrap: anywhere; }
.doc .lead { max-width: none; margin-bottom: 28px; }
.doc h2 { margin-top: 48px; line-height: 1.2; }
.doc h3 { margin-top: 30px; font-size: 23px; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 8px; font-size: 18px; }
.doc p { margin: 14px 0; }
.doc li { margin: 7px 0; }
.doc li > ul, .doc li > ol { margin-top: 8px; }
.doc code { font: .88em/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: #eee5ff; padding: 2px 5px; border-radius: 4px; }
.doc pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--night-deep); color: #fff; border: var(--outline); border-radius: 14px; }
.doc pre code { display: block; padding: 0; background: none; color: inherit; overflow-wrap: normal; }
.doc blockquote { margin: 24px 0; border-left: 6px solid var(--pink); padding: 2px 22px; background: #fff; }
.doc hr { border: 0; border-top: 2px dashed #cec0e8; margin: 32px 0; }
.doc .table-wrap { overflow-x: auto; margin: 20px 0; }
.doc .table-wrap table { margin: 0; }
.doc th { background: #eee5ff; }
.doc td, .doc th { min-width: 100px; }
.doc .align-center { text-align: center; }
.doc .align-right { text-align: right; }
.doc .anchor { margin-left: .4em; color: var(--muted); font-size: .65em; text-decoration: none; }
.doc .anchor:hover, .doc .anchor:focus { color: var(--pink-dark); text-decoration: underline; }
.doc .doc-source { border-top: 2px dashed #cec0e8; margin-top: 44px; padding-top: 18px; color: var(--muted); font-size: 14px; }
.doc .doc-file { display: block; color: var(--muted); font-size: 13px; }
.doc .doc-list { padding-left: 24px; }
.doc .doc-list li { margin-bottom: 14px; break-inside: avoid; }
.doc .contents { display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 18px 22px; background: #fff; border: var(--outline); border-radius: 14px; }
.doc section { padding: 0; }
.doc .note { padding: 14px 20px; background: #fff0ba; border: 2px solid var(--ink); border-radius: 12px; }
@media (max-width: 600px) {
  html:has(.doc) { scroll-padding-top: 168px; }
  .doc { padding-top: 36px; }
  .doc pre { padding: 14px; font-size: 14px; }
  .doc ul, .doc ol { padding-left: 24px; }
  .doc .contents { padding: 14px; }
}
