/* Typography for document text. Used by the editor, the public reading pages and the PDF, so what an editor sees
   is what readers get. Add class "doc-body" to the container. Colours come from variables with light fallbacks
   (the editor and PDF use the fallbacks; the public site overrides them for dark mode). */
.doc-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.75; overflow-wrap: anywhere; }
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4, .doc-body h5, .doc-body h6 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.3; margin: 1.8em 0 .6em; scroll-margin-top: 5rem; }
.doc-body h1 { font-size: 1.9rem; }
.doc-body h2 { font-size: 1.5rem; }
.doc-body h3 { font-size: 1.2rem; }
.doc-body h4, .doc-body h5, .doc-body h6 { font-size: 1.05rem; }
.doc-body > :first-child { margin-top: 0; }
.doc-body p { margin: 0 0 1em; }
.doc-body ul, .doc-body ol { margin: 0 0 1em; padding-left: 1.6em; }
.doc-body li { margin: .25em 0; }
.doc-body li > ul, .doc-body li > ol { margin-bottom: 0; }
.doc-body a { color: var(--doc-link, #1f6feb); }
.doc-body a.anchor { margin-left: .4em; font-weight: 400; text-decoration: none; opacity: 0; color: var(--doc-muted, #5d6675); }
.doc-body :is(h1, h2, h3, h4, h5, h6):hover > a.anchor, .doc-body a.anchor:focus { opacity: 1; }
.doc-body blockquote { margin: 1em 0; padding: .25em 1em; border-left: 4px solid var(--doc-line, #c9d1de); color: var(--doc-muted, #4b5565); }
.doc-body hr { border: 0; border-top: 1px solid var(--doc-line, #d5dbe5); margin: 2em 0; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95em; }
.doc-body th, .doc-body td { border: 1px solid var(--doc-line, #c9d1de); padding: .5em .7em; text-align: left; vertical-align: top; }
.doc-body th { background: var(--doc-head, #eef1f6); }
.doc-body img { max-width: 100%; height: auto; }
.doc-body .table-wrap { overflow-x: auto; margin: 1em 0; }
.doc-body .table-wrap table { margin: 0; }
.doc-body pre, .doc-body code { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; }
.doc-body pre { padding: .8em 1em; background: var(--doc-head, #eef1f6); border-radius: 6px; overflow-x: auto; }
