/* Reader-facing technical figures and server-rendered mathematical notation. */
.doc-figure{margin:20px 0 0;min-width:0}
.doc-figure-viewport{overflow-x:auto;border:1px solid #e6eaea;border-radius:16px;background:#fff;scrollbar-width:thin}
.doc-figure img{display:block;width:100%;min-width:640px;height:auto;margin:0}
.doc-figure figcaption{font-size:12px;line-height:1.7;color:#626262;margin-top:12px;max-width:75ch}
.doc-figure figcaption a{display:inline-block;color:#b33d12;text-decoration:underline;text-underline-offset:3px;margin-left:4px}
.doc-math{padding:22px 20px;overflow-x:auto;background:#faf9f7;margin:22px 0 0;color:#202020}
.doc-math .katex-display{margin:0;text-align:left;min-width:max-content}
.doc-math .katex-display>.katex{text-align:left;font-size:1.05em}
.doc-article section:has(.doc-figure){margin-bottom:42px}
@media(max-width:760px){.doc-math{padding:18px 15px}.doc-math .katex-display>.katex{font-size:1em}.doc-figure figcaption{font-size:12px}.doc-figure img{min-width:580px}}
@media print{.doc-figure-viewport{overflow:visible;border:0}.doc-figure img{min-width:0;width:100%}.doc-figure figcaption a{display:none}.doc-math{break-inside:avoid}.doc-figure{break-inside:avoid}}
