/* body text a little above mdBook's 1.6rem; code scales with it */
.content main { font-size: 1.7rem; }
.content p, .content ol, .content ul { line-height: 1.6em; }
.content pre > code { line-height: 1.5; }
html, body { font-family: "IBM Plex Sans", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:root { --mono-font: "IBM Plex Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace, monospace; }
/* the text keeps mdBook's column width; a listing, a table or a diagram that needs more room takes
   it from the page on both sides, so that it stays centred on the column */
.content main { max-width: none; }
.content main > * { box-sizing: border-box; max-width: var(--content-max-width); margin-left: auto; margin-right: auto; }
.content main > :is(pre, .table-wrapper, .mermaid-figure) { max-width: 100%; }
/* on a window wide enough for them, mdBook stands its previous and next arrows in 90px strips at
   the page edges. main spans the page, so it keeps clear of the strips: their width less the 5px
   padding of .content. The two conditions are the ones in mdBook's chrome.css. */
@media only screen and (width > 1080px) {
    .content main { padding-inline: 85px; }
}
@media only screen and (max-width: 1380px) {
    #mdbook-sidebar-toggle-anchor:checked ~ .page-wrapper .content main { padding-inline: 0; }
}
/* a listing fills the column and grows past it only as far as its longest line needs */
.content main > pre { width: fit-content; min-width: min(var(--content-max-width), 100%); }
/* a table is centred; it wraps its text at the column width and grows past that only for
   words that cannot break */
.content table { max-width: var(--content-max-width); margin: 1em auto; }
.content table td, .content table th { vertical-align: top; }
/* mdBook's table rule colour is nearly the page colour: draw the rows with a visible one */
.content table td, .content table th { border: 1px solid var(--icons); }
.content .table-wrapper { overflow-x: auto; }
/* an image is centred. Its paragraph is a text block like any other, so an image wider than the
   column is scaled down to it; a click enlarges it with mdBook's own zoom. */
.content img { display: block; margin-left: auto; margin-right: auto; height: auto; background: #fff; }
/* a diagram is centred too; it is drawn dark on light whatever the page theme, like a figure on paper */
.content .mermaid-figure { background: #fff; color: #000; border-radius: 4px; padding: 1.2rem 1.6rem;
                           box-sizing: border-box; width: fit-content; max-width: 100%; margin: 1.2em auto; }
.content .mermaid-figure svg { display: block; max-width: 100%; height: auto; }
