/* Markdown posts only. KaTeX keeps its own fonts and layout rules. */
.post-cover { max-width: var(--content-width); margin: 0 auto 2.5rem; }
.post-cover a { display: block; line-height: 0; }
.post-cover img { display: block; width: 100%; height: auto; }
.markdown-post { min-width: 0; }
.markdown-post .katex { font-size: 1em; }
.markdown-post .math-block { max-width: 100%; overflow-x: auto; padding-block: .35em; margin-block: 1em; }
.markdown-post .katex-display { margin: .5em 0; }
.markdown-post figure { margin: 2.5em 0; }
.markdown-post .plot { text-align: center; line-height: 0; }
.markdown-post .plot img { width: 100%; max-width: 100%; height: auto; vertical-align: middle; }
.markdown-post figcaption { margin-top: 1em; font-size: .88em; line-height: 1.5; color: var(--muted); }
.markdown-post figcaption p { margin: 0; }
.markdown-post :is([role="doc-bibliography"], [role="doc-endnotes"]) { font-size: .88em; }
.markdown-post .csl-entry { margin-block: 1em; overflow-wrap: anywhere; }
.markdown-post .csl-left-margin { float: left; }
.markdown-post .csl-right-inline { margin-left: 2.5em; }
.markdown-post :target { scroll-margin-top: 2em; }
.markdown-post blockquote { margin-inline: 1.4em; }
.markdown-post table { font-size: .9em; }
.markdown-post > p > img { display: block; width: 100%; height: auto; margin-block: 2em; }
.markdown-post .algorithm { border-block: 1px solid var(--muted); padding-block: .8em; counter-reset: algorithm-line; font-size: .92em; overflow-x: auto; }
.markdown-post .algorithm figcaption { margin: 0 0 1em; color: inherit; font-size: 1em; font-weight: 600; }
.markdown-post .algorithm p { margin-block: .6em; }
.markdown-post .algorithm ol { list-style: none; padding-inline-start: 2em; margin-block: .6em; }
.markdown-post .algorithm li { position: relative; counter-increment: algorithm-line; margin-block: .35em; }
.markdown-post .algorithm li::before { content: counter(algorithm-line); position: absolute; inset-inline-end: calc(100% + .6em); color: var(--muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.markdown-post .algorithm li > p { margin-block: .35em; }
@media print { .toc, .site-header, .post-footer { display: none; } }
