/* jiab: a plain, readable style for the HTML LaTeXML makes. Loaded after
   LaTeXML's own CSS, it changes only what is needed: a measure for reading,
   one sans-serif and one monospace family, code chunks as blocks (input
   set apart from output), figures and tables that fit the page. */

:root {
  --jiab-text: #1f2328;
  --jiab-muted: #59636e;
  --jiab-rule: #d8dee4;
  --jiab-link: #0b5cad;
  --jiab-code-bg: #f6f8fa;
  --jiab-input-bar: #0b5cad;
  --jiab-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jiab-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

body {
  margin: 0;
  background: #fff;
  color: var(--jiab-text);
  font-family: var(--jiab-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* The page is light whatever the reader's colour scheme. LaTeXML.css, in
   prefers-color-scheme: dark, makes the page black and inverts the
   lightness of every colour the document gives (--ltx-fg-color,
   --ltx-stroke-color, ...): on jiab's white page a TikZ or picture drawing
   (black strokes, text in foreignObject) became white on white, and
   \textcolor pale. These are LaTeXML.css's light-scheme rules, kept in
   both schemes. */
@media (prefers-color-scheme: dark) {
  :root { background-color: #fff; color: var(--jiab-text); }
  .ltx_foreignobject_content { color: inherit; }
  [style*="--ltx-fg-color:"] { color: var(--ltx-fg-color); }
  [style*="--ltx-bg-color:"] { background-color: var(--ltx-bg-color); }
  [style*="--ltx-border-color:"] { border-color: var(--ltx-border-color); }
  [style*="--ltx-fill-color:"] { fill: var(--ltx-fill-color); }
  [style*="--ltx-stroke-color:"] { stroke: var(--ltx-stroke-color); }
}

.ltx_page_main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  box-sizing: border-box;
}

/* Font faces are this style's alone: the document's families (\rmfamily,
   \sffamily, fontspec's \setmainfont, a class's fonts), which LaTeXML
   carries over as classes, are not followed; typewriter (code) is. Sizes
   (\small, \footnotesize, \large), bold and italic are the document's. */
.ltx_font_serif, .ltx_font_sansserif { font-family: inherit !important; }
/* \tiny (50%) and the like, legible in print, are not on a screen: text is
   never smaller than \scriptsize (70%). */
.ltx_text[style*="font-size:50%"], .ltx_text[style*="font-size:60%"],
.ltx_p[style*="font-size:50%"], .ltx_p[style*="font-size:60%"] { font-size: 70% !important; }
.ltx_title_document, .ltx_title, h1, h2, h3, h4, h5, h6 { font-family: var(--jiab-font); }

/* Paragraphs: spaced, not indented. */
.ltx_p { margin: 0 0 0.9em; }
.ltx_para > .ltx_p:first-child,
.ltx_title_abstract + .ltx_p,
section.ltx_pruned_first > .ltx_title + .ltx_para > .ltx_p,
section.ltx_indent_first > .ltx_title + .ltx_para > .ltx_p { text-indent: 0; }

a, .ltx_ref { color: var(--jiab-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Title block, left-aligned. */
.ltx_title_document {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 650;
  text-align: left;
  margin: 0 0 0.6rem;
}
.ltx_subtitle { text-align: left; margin-left: 0; padding-left: 0; color: var(--jiab-muted); }
.ltx_authors, .ltx_dates, .ltx_role_author, .ltx_date {
  text-align: left;
  margin: 0.25rem 0;
  color: var(--jiab-muted);
}
/* Authors: one block per author (name, then the affiliation lines, then
   the e-mail), side by side, wrapping. LaTeXML's default runs them inline
   (lines of different authors interleave), with "and" separators and the
   e-mail in a hover pop-up behind a blue *. */
.ltx_authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.ltx_authors .ltx_creator { display: block; margin: 0; text-align: left; }
.ltx_authors .ltx_author_before, .ltx_authors .ltx_author_after { display: none; }
.ltx_authors .ltx_personname { display: block; font-size: 0.95rem; }
.ltx_authors .ltx_personname::first-line { color: var(--jiab-text); font-weight: 600; }
.ltx_authors .ltx_author_notes { display: block; font-size: 0.88rem; }
.ltx_authors .ltx_author_notes::before { content: none; }
.ltx_authors .ltx_author_notes .ltx_author_notes_content,
.ltx_authors .ltx_author_notes:hover .ltx_author_notes_content {
  visibility: visible; opacity: 1; position: static;
  border: 0; box-shadow: none; padding: 0; background: none; font-size: inherit;
}
.ltx_authors .ltx_contact { display: block; }
.ltx_authors .ltx_contact_name { display: none; }
/* The author block in the page's sizes (\footnotesize affiliations). */
.ltx_authors [style*="font-size"], .ltx_dates [style*="font-size"] { font-size: inherit !important; }
/* A \thanks in \author (an address, an e-mail, a funder), a dagger with a
   hover pop-up on a line of its own under the name: a line of the author's
   block, as its affiliation. */
.ltx_authors .ltx_note.ltx_role_thanks { display: block; font-size: 0.88rem; }
.ltx_authors .ltx_role_thanks .ltx_note_mark, .ltx_authors .ltx_role_thanks .ltx_note_type { display: none; }
.ltx_authors .ltx_role_thanks .ltx_note_outer,
.ltx_authors .ltx_role_thanks .ltx_note_content,
.ltx_authors .ltx_role_thanks:hover .ltx_note_content {
  display: block; position: static; visibility: visible; opacity: 1; max-width: none;
  border: 0; box-shadow: none; padding: 0; margin: 0; background: none; font-size: inherit;
}

/* A title block made by hand, in a document without \title
   (\begin{center}{\Large\bf Title}\\ authors \\ date\end{center}; 26
   CRAN vignettes), which LaTeXML leaves as centred paragraphs, maybe
   between rules (\hrule) in a minipage (SelectionTools): the document's
   first centred paragraphs are styled as the title (two paragraphs if the
   bold title has a blank line: scatterplot3d), the author (the next one)
   and the date or affiliation (the others), in the page's sizes; a
   tabular of affiliations side by side is left-aligned with them. */
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center {
  text-align: left;
  margin: 0.25rem 0;
  color: var(--jiab-muted);
  font-size: 0.95rem;
}
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center * { font-size: inherit !important; }
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child,
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center:has(> .ltx_font_bold[style*="font-size"]:only-child) {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--jiab-text);
  margin: 0 0 0.6rem;
}
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center:has(> .ltx_font_bold[style*="font-size"]:only-child) {
  margin-top: -0.6rem;
}
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child *,
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center:has(> .ltx_font_bold[style*="font-size"]:only-child) * {
  font-weight: inherit;
}
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:not(:has(> .ltx_font_bold[style*="font-size"]:only-child)) + .ltx_p.ltx_align_center,
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center:not(:has(> .ltx_font_bold[style*="font-size"]:only-child)),
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center:first-child:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center:has(> .ltx_font_bold[style*="font-size"]:only-child) + .ltx_p.ltx_align_center {
  color: var(--jiab-text);
  font-weight: 600;
}
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center .ltx_tabular { margin-left: 0; text-align: left; }
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_p.ltx_align_center .ltx_tabular .ltx_td { text-align: left; padding-left: 0 !important; padding-right: 2rem !important; }
:is(.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child > .ltx_para:first-of-type,
    .ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child) > .ltx_rule { display: none !important; }
.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child:has(> .ltx_para:first-of-type > .ltx_p.ltx_align_center:first-child) {
  width: auto !important;
  margin-bottom: 1.5rem;
}
.ltx_document:not(:has(.ltx_title_document)) > .ltx_logical-block:first-child:has(> .ltx_para:first-of-type > .ltx_p.ltx_align_center:first-child) > .ltx_rule { display: none !important; }
.ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child:has(> .ltx_p.ltx_align_center) {
  margin-bottom: 1.5rem;
}

/* A title set by hand in large type, not centred, as the document's first
   paragraph ({\Huge\bf Title}, Epi's five vignettes): the title. */
.ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child > .ltx_p:only-child:has(> :is([style*="font-size:173%"], [style*="font-size:207%"], [style*="font-size:249%"], [style*="font-size:298%"]):first-child) {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.6rem;
}
.ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child > .ltx_p:only-child:has(> :is([style*="font-size:173%"], [style*="font-size:207%"], [style*="font-size:249%"], [style*="font-size:298%"]):first-child) * {
  font-size: inherit !important;
  font-weight: inherit;
  background: none;
  padding: 0;
}
.ltx_document:not(:has(.ltx_title_document)) > .ltx_para:first-child > .ltx_p:only-child:has(> :is([style*="font-size:173%"], [style*="font-size:207%"], [style*="font-size:249%"], [style*="font-size:298%"]):first-child) .ltx_font_typewriter > :is(.ltx_font_serif, .ltx_font_sansserif) {
  font-family: var(--jiab-font) !important;
}

/* A centred paragraph right after the title block (\maketitle
   \begin{center}Institute, City\end{center}: BonEV, TideHarmonics), text
   only, not a heading set by hand ({\large\bf Summary}): a line of the
   block, as an affiliation. */
.ltx_document > :is(.ltx_authors, .ltx_dates) + .ltx_para:has(> .ltx_p.ltx_align_center:only-child):not(:has(img, svg, math, .ltx_tabular, .ltx_p > .ltx_font_bold:only-child)) > .ltx_p {
  text-align: left;
  margin: -1rem 0 1.5rem;
  color: var(--jiab-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
/* A titlepage environment (8 CRAN vignettes), laid out by hand: rules,
   centred or coloured lines in \Huge, \Large, minipages side by side.
   Left-aligned, in the page's colours and sizes, without the rules; its
   paragraph in the largest type (\LARGE and up) is the title, the
   minipages (authors, institution) sit side by side as authors do. */
.ltx_titlepage { margin: 0 0 1.5rem; color: var(--jiab-muted); font-size: 0.95rem; line-height: 1.45; }
.ltx_titlepage :is(.ltx_p, .ltx_para, .ltx_block) { text-align: left !important; margin: 0.25rem 0; }
.ltx_titlepage * { font-size: inherit !important; color: inherit !important; }
.ltx_titlepage :is(.ltx_rule, .ltx_leader) { display: none !important; }
.ltx_titlepage .ltx_minipage { display: inline-block; vertical-align: top; width: auto !important; margin: 0.5rem 2.5rem 0.5rem 0; }
.ltx_titlepage .ltx_p:has(> :is([style*="font-size:173%"], [style*="font-size:207%"], [style*="font-size:249%"], [style*="font-size:298%"])) {
  font-size: 2rem !important;
  line-height: 1.25;
  font-weight: 650;
  color: var(--jiab-text) !important;
  margin: 0 0 0.6rem;
}
.ltx_titlepage .ltx_p:has(> :is([style*="font-size:173%"], [style*="font-size:207%"], [style*="font-size:249%"], [style*="font-size:298%"])) * { font-weight: inherit; }

/* A footnote in \title (\thanks), which LaTeXML takes out as a note after
   the title and shows as a dagger with a hover pop-up, detached from the
   title: a small line under it. */
.ltx_pubnotes { display: block; margin: -0.3rem 0 0.8rem; font-size: 0.88rem; color: var(--jiab-muted); }
.ltx_pubnotes::before { content: none !important; }
.ltx_pubnotes .ltx_pubnotes_content, .ltx_pubnotes:hover .ltx_pubnotes_content {
  display: block; visibility: visible; opacity: 1; position: static;
  border: 0; box-shadow: none; padding: 0; background: none; font-size: inherit; color: inherit;
}
.ltx_pubnotes .ltx_pubnote { display: block; }

/* Abstract and keywords. */
.ltx_abstract {
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--jiab-rule);
  background: #fafbfc;
}
.ltx_title_abstract {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jiab-muted);
  margin: 0 0 0.4rem;
}
.ltx_abstract .ltx_p:last-child { margin-bottom: 0; }

/* Headings. A chapter (report, book) is one heading, its tag before the
   title as for sections, a little larger than a section's. */
.ltx_title_chapter, .ltx_title_part {
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 3rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--jiab-rule);
}
.ltx_title_chapter .ltx_tag, .ltx_title_part .ltx_tag {
  display: inline;
  font-size: inherit;
  margin: 0 0.5em 0 0;
  color: var(--jiab-muted);
}
.ltx_title_section, .ltx_title_appendix, .ltx_title_bibliography {
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.3;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--jiab-rule);
}
.ltx_title_subsection { font-size: 1.2rem; font-weight: 650; margin: 1.8rem 0 0.6rem; }
.ltx_title_subsubsection { font-size: 1.05rem; font-weight: 650; margin: 1.4rem 0 0.5rem; }
.ltx_section, .ltx_subsection, .ltx_subsubsection, .ltx_appendix { margin-top: 0; }
.ltx_tag_section, .ltx_tag_subsection, .ltx_tag_subsubsection { color: var(--jiab-muted); margin-right: 0.5em; }
/* The title and the headings are this style's alone, whatever the document
   sets in them (\title{{\Large\bf ...}}, a titlesec or sectsty format,
   \section{\color{blue} ...}): one size, one weight (a bold \pkg{} in a
   JSS title, which LaTeXML marks bold and the rest "medium", is the
   title's weight, as in print, where the whole title is bold), no
   colour. A title that LaTeXML marks typewriter as a whole (\title{The
   \tt{R} package}, \title{Introduction to \texttt{tbnb}}) keeps its size
   (not code's 0.9em, below), and its other parts the page's face. */
:is(.ltx_title_document, .ltx_title_chapter, .ltx_title_part, .ltx_title_section, .ltx_title_appendix,
    .ltx_title_bibliography, .ltx_title_subsection, .ltx_title_subsubsection) :is([style*="font-size"], .ltx_font_typewriter):not(.ltx_framed *) {
  font-size: inherit !important;
}
.ltx_title_document[style*="font-size"] { font-size: 2rem !important; }
/* A box in the title (\fbox{\vbox{\footnotesize A note...}}, surveillance):
   a note above the title, in the text's weight, at its own size. */
.ltx_title_document .ltx_framed {
  display: block; width: auto !important; margin: 0 0 0.75rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--jiab-rule) !important; border-radius: 6px;
  font-size: 1.1rem; font-weight: 400; line-height: 1.45; color: var(--jiab-muted);
}
:is(.ltx_title_document, .ltx_title_chapter, .ltx_title_part, .ltx_title_section, .ltx_title_appendix,
    .ltx_title_bibliography, .ltx_title_subsection, .ltx_title_subsubsection):is(.ltx_font_bold, .ltx_font_medium),
:is(.ltx_title_document, .ltx_title_chapter, .ltx_title_part, .ltx_title_section, .ltx_title_appendix,
    .ltx_title_bibliography, .ltx_title_subsection, .ltx_title_subsubsection) :is(.ltx_font_bold, .ltx_font_medium) {
  font-weight: 650;
}
:is(.ltx_title_document, .ltx_title_chapter, .ltx_title_part, .ltx_title_section, .ltx_title_appendix,
    .ltx_title_bibliography, .ltx_title_subsection, .ltx_title_subsubsection, .ltx_subtitle, .ltx_authors, .ltx_dates):is([style*="--ltx-fg-color"], [style*="--ltx-bg-color"]),
:is(.ltx_title_document, .ltx_title_chapter, .ltx_title_part, .ltx_title_section, .ltx_title_appendix,
    .ltx_title_bibliography, .ltx_title_subsection, .ltx_title_subsubsection, .ltx_subtitle, .ltx_authors, .ltx_dates) :is([style*="--ltx-fg-color"], [style*="--ltx-bg-color"]) {
  color: inherit !important;
  background: none !important;
}
.ltx_title.ltx_font_typewriter > :is(.ltx_font_serif, .ltx_font_sansserif) { font-family: var(--jiab-font) !important; }

/* Code: one monospace family throughout (knitr's highlighting marks some
   tokens serif). */
.ltx_font_typewriter, .ltx_verbatim, .ltx_verbatim *, .ltx_listing.ltx_lstlisting, .ltx_listing.ltx_lstlisting *,
code, pre, kbd, samp {
  font-family: var(--jiab-mono);
}
.ltx_font_typewriter:where(:not(.ltx_title)) { font-size: 0.9em; }
.ltx_verbatim .ltx_font_typewriter, .ltx_lstlisting .ltx_font_typewriter { font-size: 1em; }

/* Inline code: \code, \texttt, \verb. */
.ltx_p > .ltx_text.ltx_font_typewriter:not(.ltx_verbatim),
.ltx_item .ltx_text.ltx_font_typewriter:not(.ltx_verbatim),
code.ltx_verbatim {
  background: var(--jiab-code-bg);
  border-radius: 3px;
  padding: 0.05em 0.25em;
  white-space: pre-wrap;
}

/* Code blocks, whatever made them, look alike: a shaded block, left-aligned
   (also where LaTeX centred it), in one size, the input set apart from the
   output by a bar. They come as
   - <pre>: knitr's input (alltt, marked jiab_input) and output (verbatim);
   - one fixed-width inline block per line: Sweave's and other fancyvrb
     environments (input slanted), which sat side by side in a wide window,
     often in the paragraph of the text after the chunk. With xleftmargin
     each line is wrapped in a second inline block, with a frame
     (frame=single) the lines are in a framed span, and in a framed.sty box
     each line can be a paragraph of its own;
   - .ltx_listing.ltx_lstlisting: listings, a block per line (a listing
     with a caption is also a figure.ltx_lstlisting). (Other .ltx_listing,
     algorithm2e's and algorithmic's, are not code: LaTeXML's layout.)
   Selectors below name a fancyvrb line as
   :is(.ltx_verbatim.ltx_inline-block:not(<in a wrapper or a frame>),
       <a wrapper>:not(<in a frame>)). */
pre.ltx_verbatim, .ltx_listing.ltx_lstlisting {
  display: block;
  background: var(--jiab-code-bg);
  border: 0 !important;
  border-radius: 6px;
  padding: 0.75rem 1rem !important;
  margin: 0 0 1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
  text-indent: 0;
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
}
.ltx_centering > pre.ltx_verbatim, pre.ltx_verbatim.ltx_centering,
.ltx_centering > .ltx_lstlisting, .ltx_lstlisting.ltx_centering {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
/* A listing's lines are blocks, its tokens (spaces too) spans: the
   newlines between and after them are not lines. */
.ltx_listing.ltx_lstlisting { white-space: normal; }
.ltx_lstlisting .ltx_listingline { display: block; white-space: nowrap; min-height: 1.5em; }
.ltx_lstlisting .ltx_listingline > * { white-space: pre; }
.ltx_lstlisting .ltx_listing_data { display: none; }
/* A size the document gives code (fancyvrb's fontsize, listings'
   basicstyle=\small, a chunk in \footnotesize) is followed, relative to the
   text as in print: a block whose lines or tokens carry one is not made
   smaller first. */
.ltx_listing.ltx_lstlisting:has([style*="font-size"]), pre.ltx_verbatim:has([style*="font-size"]) { font-size: 1em; }
/* LaTeXML gives a code line or block the document's size as a percentage
   of the text (\footnotesize: 80%); code is smaller than text here, so the
   percentage is taken of the code's size, as in print: a \footnotesize
   chunk is 80% of a normal one. */
.ltx_verbatim.ltx_inline-block[style*="font-size:50%"], pre.ltx_verbatim[style*="font-size:50%"] { font-size: calc(0.86rem * 0.5) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:60%"], pre.ltx_verbatim[style*="font-size:60%"] { font-size: calc(0.86rem * 0.6) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:70%"], pre.ltx_verbatim[style*="font-size:70%"] { font-size: calc(0.86rem * 0.7) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:80%"], pre.ltx_verbatim[style*="font-size:80%"] { font-size: calc(0.86rem * 0.8) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:90%"], pre.ltx_verbatim[style*="font-size:90%"] { font-size: calc(0.86rem * 0.9) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:110%"], pre.ltx_verbatim[style*="font-size:110%"] { font-size: calc(0.86rem * 1.1) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:120%"], pre.ltx_verbatim[style*="font-size:120%"] { font-size: calc(0.86rem * 1.2) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:144%"], pre.ltx_verbatim[style*="font-size:144%"] { font-size: calc(0.86rem * 1.44) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:173%"], pre.ltx_verbatim[style*="font-size:173%"] { font-size: calc(0.86rem * 1.73) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:207%"], pre.ltx_verbatim[style*="font-size:207%"] { font-size: calc(0.86rem * 2.07) !important; }
.ltx_verbatim.ltx_inline-block[style*="font-size:249%"], pre.ltx_verbatim[style*="font-size:249%"] { font-size: calc(0.86rem * 2.49) !important; }
/* fancyvrb's lines. Long lines scroll with their paragraph, not each on its
   own, each line's shading as wide as the longest. */
:is(.ltx_verbatim.ltx_inline-block:not(.ltx_inline-block:has(> .ltx_verbatim.ltx_inline-block:only-child) > *, .ltx_framed_verbatim > *),
    .ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block:only-child):not(.ltx_framed_verbatim > *)) {
  display: block;
  width: max-content !important;
  min-width: 100%;
  white-space: pre;
  background: var(--jiab-code-bg);
  border: 0 !important;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0 1rem !important;
  margin: 0;
  text-align: left;
  text-indent: 0;
  box-sizing: border-box;
}
.ltx_p:has(> .ltx_inline-block > .ltx_verbatim, > .ltx_verbatim.ltx_inline-block, > .ltx_framed_verbatim) { overflow-x: auto; }
/* A paragraph that ends with code: the code's margin is the space after. */
.ltx_p:has(> .ltx_inline-block:last-child > .ltx_verbatim, > .ltx_verbatim.ltx_inline-block:last-child, > .ltx_framed_verbatim:last-child) { margin-bottom: 0; }
/* The wrapper is the line: what it wraps, plain text. The em spaces
   before it (xleftmargin's indent) take no room, as code is aligned with
   the text. */
.ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block:only-child):not(.ltx_framed_verbatim > *),
.ltx_framed_verbatim:not(.ltx_verbatim) > .ltx_inline-block:has(> .ltx_inline-block) { font-size: 0 !important; }
.ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block:only-child) > .ltx_verbatim.ltx_inline-block {
  display: inline;
  white-space: pre;
  width: auto !important;
  padding: 0 !important;
  background: none;
  font-size: 0.86rem !important;
}
/* The first and last lines of a run pad and round the block, and space it
   from text before it in its paragraph. (Lines in figure panels: below.) */
:is(.ltx_verbatim.ltx_inline-block:not(.ltx_inline-block:has(> .ltx_verbatim.ltx_inline-block:only-child) > *, .ltx_framed_verbatim > *),
    .ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block:only-child):not(.ltx_framed_verbatim > *)):is(:first-child, :not(.ltx_inline-block) + *):not(.ltx_figure_panel > *) {
  padding-top: 0.75rem !important;
  margin-top: 0.5rem;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
:is(.ltx_verbatim.ltx_inline-block:not(.ltx_inline-block:has(> .ltx_verbatim.ltx_inline-block:only-child) > *, .ltx_framed_verbatim > *),
    .ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block:only-child):not(.ltx_framed_verbatim > *)):is(:last-child, :not(:has(+ .ltx_inline-block))):not(.ltx_figure_panel > *) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
/* A line that is a paragraph of its own (in a framed.sty box, a list
   item): the paragraphs of a run of input, or of output, make one block. */
.ltx_p:has(> .ltx_verbatim.ltx_inline-block:only-child, > .ltx_inline-block:only-child > .ltx_verbatim:only-child) {
  margin: 0;
  width: auto !important;
}
.ltx_p:has(> .ltx_verbatim.ltx_inline-block.ltx_font_slanted:only-child)
  + .ltx_p > .ltx_verbatim.ltx_inline-block.ltx_font_slanted:only-child,
.ltx_p:has(> .ltx_verbatim.ltx_inline-block:not(.ltx_font_slanted):only-child)
  + .ltx_p > .ltx_verbatim.ltx_inline-block:not(.ltx_font_slanted):only-child {
  padding-top: 0 !important;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.ltx_p:has(+ .ltx_p > .ltx_verbatim.ltx_inline-block.ltx_font_slanted:only-child)
  > .ltx_verbatim.ltx_inline-block.ltx_font_slanted:only-child,
.ltx_p:has(+ .ltx_p > .ltx_verbatim.ltx_inline-block:not(.ltx_font_slanted):only-child)
  > .ltx_verbatim.ltx_inline-block:not(.ltx_font_slanted):only-child {
  padding-bottom: 0 !important;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
/* fancyvrb's frames (frame=single) would box every line: the frame is the
   block, its lines plain. A framed.sty box (framed, shaded) that starts
   with code is no box: the code is. */
.ltx_framed_verbatim:not(.ltx_verbatim) {
  display: block;
  background: var(--jiab-code-bg);
  border: 0 !important;
  border-radius: 6px;
  padding: 0.75rem 1rem !important;
  margin: 0.5rem 0 1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre;
  text-align: left;
  text-indent: 0;
}
.ltx_framed_verbatim:not(.ltx_verbatim) > .ltx_inline-block {
  display: block;
  width: auto !important;
  padding: 0 !important;
  background: none;
  font-size: 0.86rem !important;
}
.ltx_framed_verbatim:not(.ltx_verbatim) > .ltx_inline-block > .ltx_inline-block {
  display: inline;
  width: auto !important;
  white-space: pre;
  font-size: 0.86rem !important;
}
.ltx_framed:not(.ltx_lstlisting):has(> .ltx_p:first-child > .ltx_verbatim.ltx_inline-block:only-child) {
  border: 0 !important;
  padding: 0 !important;
  background: none;
}
/* Code is one colour, jiab's, as it is one font: the colours a document
   gives code (knitr's grey #585858 for the chunk and its highlighting,
   Sweave's formatcom=\color, listings' basicstyle and backgrounds) are not
   followed, so code and output look the same on every page. */
pre.ltx_verbatim, pre.ltx_verbatim *,
.ltx_verbatim.ltx_inline-block, .ltx_verbatim.ltx_inline-block *,
.ltx_listing.ltx_lstlisting, .ltx_listing.ltx_lstlisting * {
  color: var(--jiab-text) !important;
}
pre.ltx_verbatim *, .ltx_verbatim.ltx_inline-block *, .ltx_listing.ltx_lstlisting * {
  background: none !important;
}

/* In a figure, LaTeXML's layout centres and shrinks each paragraph: one
   holding a code line (with the plot after it: robustbase) takes the
   figure's width, the code left-aligned, the plot still centred. */
.ltx_figure > .ltx_p:has(> .ltx_verbatim.ltx_inline-block) { align-self: stretch; width: 100%; }

/* knitr writes a chunk as consecutive <pre>s, one per source expression and
   per output (and a vignette's own hooks, plain verbatim, likewise: geostatsp),
   which its PDF shows in one frame: they are one block here, the input,
   where knitr marks it, keeping its bar. */
pre.ltx_verbatim:has(+ pre.ltx_verbatim) {
  margin-bottom: 0 !important;
  padding-bottom: 0.15rem !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
pre.ltx_verbatim + pre.ltx_verbatim {
  margin-top: 0 !important;
  padding-top: 0.15rem !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Code in a centred or otherwise set paragraph (a chunk inside center,
   \centering, a minipage): LaTeXML puts each line in a paragraph of its
   own, centred, with a fixed width. A paragraph that holds only a code line
   is a line of a block: left-aligned, full width, joined to the next. */
.ltx_p:not(.ltx_figure_panel):has(> .ltx_verbatim.ltx_inline-block:only-child) {
  width: auto !important; margin: 0 !important; text-align: left;
}
.ltx_p:not(.ltx_figure_panel):has(> .ltx_verbatim.ltx_inline-block:only-child) > .ltx_verbatim {
  padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-radius: 0;
}
.ltx_p:not(.ltx_figure_panel):has(> .ltx_verbatim.ltx_inline-block:only-child):first-child > .ltx_verbatim,
.ltx_p:not(:has(> .ltx_verbatim.ltx_inline-block:only-child)) + .ltx_p:not(.ltx_figure_panel):has(> .ltx_verbatim.ltx_inline-block:only-child) > .ltx_verbatim {
  padding-top: 0.75rem; border-top-left-radius: 6px; border-top-right-radius: 6px;
}
.ltx_p:not(.ltx_figure_panel):has(> .ltx_verbatim.ltx_inline-block:only-child):not(:has(+ .ltx_p:not(.ltx_figure_panel) > .ltx_verbatim.ltx_inline-block:only-child)) > .ltx_verbatim {
  padding-bottom: 0.75rem; margin-bottom: 1rem; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
}

/* Code in a figure (a Sweave figure chunk with echo=TRUE): LaTeXML makes
   each line a figure panel, a centred fixed-width flex cell of its own.
   Such cells take the full width, left-aligned, and a run of them is one
   block (lines unpadded but the run's first and last; !important over the
   paragraph lines' padding above). A cell can also hold a whole chunk, a
   line per inline block (a Schunk inside a figure environment): only
   its first and last lines are the run's. */
/* LaTeXML's panels of a figure sit in a flex box up to 60rem wide, centred:
   wider than the page, so panels were clipped on both sides. */
.ltx_flex_figure { max-width: 100%; }
.ltx_flex_figure .ltx_flex_cell { max-width: 100%; min-width: 0; }
.ltx_flex_figure .ltx_flex_cell .ltx_graphics { max-width: 100% !important; }
.ltx_flex_cell:has(> .ltx_figure_panel > .ltx_verbatim) {
  flex: 0 0 100%; max-width: 100%; margin: 0; padding: 0;
}
.ltx_flex_cell > .ltx_figure_panel:has(> .ltx_verbatim) {
  width: auto !important; text-align: left; margin: 0;
}
.ltx_flex_cell > .ltx_figure_panel > .ltx_verbatim.ltx_inline-block {
  padding-top: 0 !important; padding-bottom: 0 !important; margin: 0; border-radius: 0;
}
.ltx_flex_cell:has(> .ltx_figure_panel > .ltx_verbatim):first-child > .ltx_figure_panel > .ltx_verbatim:first-child,
.ltx_flex_cell:not(:has(> .ltx_figure_panel > .ltx_verbatim)) + .ltx_flex_break + .ltx_flex_cell > .ltx_figure_panel > .ltx_verbatim:first-child {
  padding-top: 0.75rem !important; border-top-left-radius: 6px; border-top-right-radius: 6px;
}
.ltx_flex_cell:has(> .ltx_figure_panel > .ltx_verbatim):last-child > .ltx_figure_panel > .ltx_verbatim:last-child,
.ltx_flex_cell:has(> .ltx_figure_panel > .ltx_verbatim):not(:has(+ .ltx_flex_break + .ltx_flex_cell > .ltx_figure_panel > .ltx_verbatim)) > .ltx_figure_panel > .ltx_verbatim:last-child {
  padding-bottom: 0.75rem !important; margin-bottom: 1rem; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
}
.ltx_flex_figure:has(.ltx_figure_panel > .ltx_verbatim) .ltx_flex_break { display: none; }
/* Input followed by its output (a cell of each, in such a figure):
   two blocks, as in the text. */
.ltx_flex_cell:has(+ .ltx_flex_break + .ltx_flex_cell > .ltx_figure_panel > .ltx_verbatim:not(.ltx_font_slanted):first-child)
  > .ltx_figure_panel > .ltx_verbatim.ltx_font_slanted:last-child {
  padding-bottom: 0.75rem !important; margin-bottom: 0.5rem; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
}
.ltx_flex_cell:has(> .ltx_figure_panel > .ltx_verbatim.ltx_font_slanted:last-child) + .ltx_flex_break + .ltx_flex_cell
  > .ltx_figure_panel > .ltx_verbatim:not(.ltx_font_slanted):first-child {
  padding-top: 0.75rem !important; border-top-left-radius: 6px; border-top-right-radius: 6px;
}

/* Input: Sweave's (Sinput, CodeInput: slanted), knitr's (jiab_input).
   Input and output are separate blocks, the input marked by a bar. */
pre.ltx_verbatim.jiab_input,
.ltx_verbatim.ltx_inline-block.ltx_font_slanted:not(.ltx_inline-block:has(> .ltx_verbatim.ltx_inline-block:only-child) > *, .ltx_framed_verbatim > *),
.ltx_inline-block:not(.ltx_verbatim):has(> .ltx_verbatim.ltx_inline-block.ltx_font_slanted:only-child):not(.ltx_framed_verbatim > *),
.ltx_framed_verbatim:not(.ltx_verbatim):has(> .ltx_font_slanted) {
  border-left: 3px solid var(--jiab-input-bar) !important;
  padding-left: calc(1rem - 3px) !important;
}
.ltx_verbatim.ltx_font_slanted, .ltx_verbatim .ltx_font_slanted { font-style: normal; }
/* knitr's messages and warnings: italic typewriter text set as its own
   paragraph, shown as output. */
.ltx_noindent > .ltx_p:has(> .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child) {
  background: var(--jiab-code-bg);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
}
.ltx_noindent > .ltx_p > .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child {
  font-style: normal; background: none; padding: 0;
}
/* A message per paragraph: the messages in a row make one block. */
.ltx_noindent:has(> .ltx_p > .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child)
  + .ltx_noindent > .ltx_p:has(> .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child) {
  padding-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.ltx_noindent:has(+ .ltx_noindent > .ltx_p > .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child)
  > .ltx_p:has(> .ltx_text.ltx_font_typewriter.ltx_font_italic:first-child) {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Figures and tables fit the page; images keep their aspect ratio.
   LaTeXML sizes graphics inline (style="width:43em; height:43em;
   aspect-ratio:432/432"): a figure narrowed to the page kept its height,
   and an SVG <object> sat centred in a box with empty space above and
   below. The height follows from the width and the aspect ratio. */
.ltx_figure, .ltx_table { margin: 1.5rem 0; max-width: 100%; }
.ltx_figure img, .ltx_graphics, img.ltx_graphics, object.ltx_graphics {
  max-width: 100%;
  height: auto !important;
}
/* Pages of a PDF the document includes (pdfpages' \includepdf, images of
   the pages: latexml-macros.tex), the column's width, each a sheet. */
.jiab_pdfpage img.ltx_graphics {
  width: 100%;
  border: 1px solid var(--jiab-rule);
  margin: 0.5rem 0;
}
/* Text of a picture environment (latexml-picture.tex) is one line, as in
   TeX: LaTeXML sizes each text's box with TeX's fonts, and the page's font,
   wider, broke it in two lines. LaTeXML.css centres a box whose only
   element is math, even with text before it ("a $x$"), which is then
   pushed left out of the box: centred only while it fits. */
.jiab_picture .ltx_foreignobject_container { white-space: nowrap; }
.jiab_picture .ltx_foreignobject_container:has(> .ltx_foreignobject_content > math:only-child) {
  justify-content: safe center;
}
.ltx_caption {
  font-size: 0.9rem;
  color: var(--jiab-muted);
  line-height: 1.45;
  margin-top: 0.5rem;
  max-width: 40rem;
}
/* Not justified (in a narrow figure that spreads the words): left-aligned;
   a short caption is still centred, as the figure centres its box. */
.ltx_caption, .ltx_figure .ltx_caption, .ltx_table .ltx_caption { text-align: left; }
.ltx_tag_figure, .ltx_tag_table { font-weight: 650; color: var(--jiab-text); }
.ltx_table, .ltx_figure { overflow-x: auto; }
.ltx_tabular { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
/* A tabular outside a table float (in a paragraph) scrolls in the same way. */
.ltx_p > table.ltx_tabular, .ltx_para > table.ltx_tabular {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.ltx_p > table.ltx_tabular > tbody, .ltx_para > table.ltx_tabular > tbody { display: table; }
.ltx_p > table.ltx_tabular.ltx_centering, .ltx_para > table.ltx_tabular.ltx_centering { margin-left: auto; margin-right: auto; }
/* Long URLs break rather than widen the page. */
a.ltx_url, .ltx_url { overflow-wrap: anywhere; }
.ltx_tabular .ltx_td, .ltx_tabular .ltx_th { padding: 0.2em 0.6em; }

/* An array declared with more columns than its rows use ({*{20}l} for 5)
   gets empty cells up to the declared number in every row from LaTeXML,
   each with its column spacing: blank space after the matrix, which LaTeX
   does not draw. Empty cells after a row's last entry are left out.
   TODO: fix upstream. */
mtd:empty:not(:has(~ mtd:not(:empty))) { display: none; }

/* Display math scrolls rather than overflowing. A table does not scroll:
   the equation's table is a scrolling block, its rows a table in it (one
   anonymous table for an equation group's row groups, which keeps their
   columns aligned). */
table.ltx_eqn_table { display: block; max-width: 100%; overflow-x: auto; }
table.ltx_eqn_table:not(:has(> tbody + tbody)) > tbody { display: table; width: 100%; }
.ltx_eqn_eqno { color: var(--jiab-muted); }

/* Table of contents (and lists of figures, tables), titled as the abstract. */
.ltx_TOC { margin: 1.5rem 0 2rem; font-size: 0.95rem; }
.ltx_TOC > .ltx_title {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jiab-muted);
  margin: 0 0 0.5rem;
}
.ltx_TOC .ltx_tag_ref { color: var(--jiab-muted); margin-right: 0.25em; }
.ltx_TOC ol, .ltx_TOC ul { list-style: none; padding-left: 0; margin: 0; }
.ltx_TOC ol ol, .ltx_TOC ul ul { padding-left: 1.25em; }
.ltx_TOC .ltx_tocentry { margin: 0.15em 0; }

/* On a wide screen, the table of contents (\tableofcontents) is a column
   to the right of the text, which follows the reader (sticky; its own
   scroll if taller than the window). It stays where LaTeX put it in the
   markup: a right float as wide as its negative margin takes no room from
   the text beside it, and the text and contents together are centred.
   Lists of figures and tables stay in the text. On a narrow screen, and in
   print, the contents stay in the text where they are. */
@media screen and (min-width: 68rem) {
  .ltx_page_main:has(nav.ltx_TOC.ltx_toc_toc) {
    max-width: 63rem;
    padding-right: 18.25rem;
  }
  nav.ltx_TOC.ltx_toc_toc {
    float: right;
    clear: right;
    position: sticky;
    top: 1.5rem;
    width: 14rem;
    margin: 0 -17rem 1rem 0;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--jiab-muted);
    padding-left: 1rem;
    border-left: 1px solid var(--jiab-rule);
    box-sizing: border-box;
  }
  nav.ltx_TOC.ltx_toc_toc .ltx_tocentry { margin: 0.3em 0; }
  nav.ltx_TOC.ltx_toc_toc ol ol { padding-left: 0.9em; }
  nav.ltx_TOC.ltx_toc_toc a { color: var(--jiab-muted); }
  nav.ltx_TOC.ltx_toc_toc a:hover { color: var(--jiab-link); text-decoration: none; }
}

/* Boxes: minipage and \parbox. Their widths are LaTeXML's, in pt, a
   fraction of the column where the document gives one (\textwidth is the
   column's: latexml-macros.tex), never wider than the column (a narrow
   screen, a box of absolute width); a word or line longer than the box
   breaks inside it. Their paragraphs are spaced as text, the last one
   without space after (\\ in a box is a line break, not a paragraph). */
.ltx_minipage, .ltx_parbox {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
:is(.ltx_minipage, .ltx_parbox) > .ltx_p:last-child,
:is(.ltx_minipage, .ltx_parbox) > .ltx_para:last-child > .ltx_p:last-child { margin-bottom: 0; }
/* A minipage begun between paragraphs (two minipages of 0.48\textwidth
   side by side, \hfill between), or in another box, is a block of its own
   in LaTeXML (ltx_para, ltx_logical-block, ltx_block), so the boxes were
   stacked; in TeX a minipage is a box in a line, which these are again
   (aligned by their [t]/[b] option, LaTeXML's ltx_align_*). Panels of a
   figure (figure.ltx_minipage) are LaTeXML's layout. */
.ltx_minipage:is(.ltx_para, .ltx_logical-block, .ltx_block) { display: inline-block; }
/* \fbox, \fcolorbox, \framebox: the frame keeps \fboxsep (3pt) from what it
   frames, and is never wider than the column. (Code frames: above.) A
   framed list (framed.sty's leftbar around an enumerate) keeps its tags
   inside the frame, not on its rule. */
span.ltx_framed:not(.ltx_framed_verbatim, .ltx_lstlisting),
.ltx_inline-block.ltx_framed:not(.ltx_framed_verbatim, .ltx_lstlisting, .ltx_verbatim) {
  padding: 3pt;
  max-width: 100%;
  box-sizing: border-box;
}
:is(.ltx_itemize, .ltx_enumerate, .ltx_description).ltx_framed { margin-left: 0; padding: 0.25em 0.5em 0.25em 2em; }

/* A document whose text is typewriter (\familydefault is \ttdefault:
   latexml-macros.tex) is monospace, headings too. */
.jiab_ttfamily, .jiab_ttfamily :is(.ltx_title, .ltx_title_document, h1, h2, h3, h4, h5, h6) {
  font-family: var(--jiab-mono);
}
.jiab_ttfamily { font-size: 0.9em; }
.jiab_ttfamily .ltx_font_typewriter:not(.ltx_verbatim) { font-size: 1em; }

/* Lists. LaTeXML sets an item's first paragraph as an inline block after
   its tag, which drops below the tag when the paragraph is long: the tag
   hangs in the margin instead, the paragraphs are blocks. */
.ltx_itemize, .ltx_enumerate { margin-left: 1.25em; }
.ltx_itemize > .ltx_item, .ltx_enumerate > .ltx_item { position: relative; white-space: normal; }
li.ltx_item > .ltx_tag {
  position: absolute;
  right: 100%;
  margin: 0 0.5em 0 0;
  min-width: 0;
  white-space: nowrap;
}
.ltx_item .ltx_tag + .ltx_para { display: block; }
.ltx_item .ltx_tag + .ltx_para .ltx_p { display: block; }
.ltx_item .ltx_p { margin-bottom: 0.3em; }

/* Bibliography. */
.ltx_bibliography { font-size: 0.92rem; }
.ltx_bibitem { margin-bottom: 0.5em; }
.ltx_bibliography .ltx_tag_bibitem { color: var(--jiab-muted); }

/* Footnotes: LaTeXML shows them on hover. */
.ltx_note_mark { color: var(--jiab-link); }
.ltx_note_content {
  background: #fff;
  border: 1px solid var(--jiab-rule);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.88rem;
  padding: 0.6rem 0.8rem;
}

/* What LaTeXML could not convert: visible, not alarming. */
.ltx_ERROR {
  color: #9a3412;
  background: #fff7ed;
  font-family: var(--jiab-mono);
  font-size: 0.85em;
  border-radius: 3px;
  padding: 0 0.2em;
}

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .ltx_page_main { padding: 1.5rem 1rem 3rem; }
  .ltx_title_document, .ltx_title_document[style*="font-size"] { font-size: 1.6rem !important; }
}

@media print {
  .ltx_page_main { max-width: none; padding: 0; }
  .ltx_verbatim.ltx_inline-block, pre.ltx_verbatim, .ltx_framed_verbatim,
  .ltx_lstlisting .ltx_listingline > * { white-space: pre-wrap; overflow: visible; }
  .ltx_lstlisting, .ltx_p { overflow: visible; }
  .ltx_verbatim.ltx_inline-block, .ltx_inline-block:has(> .ltx_verbatim) { width: auto !important; min-width: 0; }
}
