/* Carried over verbatim from the 2026-08 live site. */
body {
    font-family: serif;
    font-size: 14px;
    line-height: 1.45;
    margin: 50px 0;
    padding: 0 50px;
}

#content {
    width: 500px;
    max-width: 100%;
}

p,
li,
blockquote {
    overflow-wrap: break-word;
}

blockquote {
    border-left: 1px solid #ddd;
    margin: 1em 0 1em 1.25em;
    margin-inline-start: 1.25em;
    margin-inline-end: 0;
    padding-left: 1em;
}

pre {
    overflow-x: auto;
    white-space: pre-wrap;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.footnotes {
    font-size: 0.95em;
}

.footnote-ref {
    white-space: nowrap;
}

.log-entry {
    margin-bottom: 2.5em;
}

.log-date {
    margin-bottom: 1em;
}

.log-entry img {
    max-width: 100%;
    height: auto;
}

.tex-entry {
    font-size: 1em;
    line-height: inherit;
}

.tex-entry img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.tex-entry span.math-tex {
    display: inline-block;
}

.tex-entry div.math-display,
.tex-entry div.par-math-display {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    margin: 0.35em 0 0.45em;
}

.tex-entry div.math-display img,
.tex-entry div.par-math-display img {
    max-width: none;
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
        margin: 24px 0;
        padding: 0 18px;
    }

    #content {
        width: auto;
        max-width: none;
    }

    blockquote {
        margin-left: 0;
        margin-inline-start: 0;
        margin-inline-end: 0;
        padding-left: 0.75em;
    }
}

/* ---- additions for the Hakyll rebuild ---- */

/* Build-time MathJax: long display math scrolls instead of overflowing the column. */
mjx-container[display="true"] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

figure.tikz {
    margin: 1em 0;
    text-align: center;
    overflow-x: auto;
}

figure.tikz svg {
    max-width: 100%;
    height: auto;
}

figure.tikz figcaption,
figure figcaption {
    font-size: 0.95em;
    margin-top: 0.35em;
}

/* Callouts and AMS-style theorem blocks (Obsidian `> [!type]`). */
.callout {
    border-left: 1px solid #ddd;
    margin: 1em 0 1em 1.25em;
    padding-left: 1em;
}

.callout-title {
    font-variant: small-caps;
}

.theorem,
.proof {
    margin: 1em 0;
}

.theorem.theorem,
.theorem.lemma,
.theorem.proposition,
.theorem.corollary,
.theorem.conjecture,
.theorem.claim {
    font-style: italic;
}

.theorem strong,
.theorem .math {
    font-style: normal;
}

.qed {
    float: right;
}

/* Wikilinks to drafts render as plain text. */
.unlinked {
    color: inherit;
}

/* LaTeX documents (make4ht). */
.tex-entry .maketitle {
    text-align: center;
    margin-bottom: 1.5em;
}

.tex-entry .titleHead {
    font-size: 1.3em;
    font-weight: normal;
}

.tex-entry .sectionHead,
.tex-entry .subsectionHead {
    font-size: 1.05em;
}

.tex-entry .newtheorem,
.tex-entry .proof {
    margin: 1em 0;
}

.tex-entry .cmti-10,
.tex-entry .cmti-12,
.tex-entry .cmsl-10 {
    font-style: italic;
}

.tex-entry .cmbx-10,
.tex-entry .cmbx-12 {
    font-weight: bold;
}

.tex-entry .cmtt-10,
.tex-entry .cmtt-12 {
    font-family: monospace;
}

.tex-entry .cmcsc-10 {
    font-variant: small-caps;
}

.paper-pdf {
    margin: 0 0 1em;
}

ul.friends li {
    margin-bottom: 0.35em;
}

.tex-entry .center {
    text-align: center;
}
