/* The tutorial text: an article column in the style of arXiv's HTML papers. */
.scroll { height: 100%; overflow-y: auto; scroll-behavior: smooth; }
.paper {
  max-width: 45em;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  font-family: var(--serif);
  font-size: calc(1.6rem * var(--text-zoom, 1));
  line-height: 1.5;
  user-select: text;
  -webkit-user-select: text;
  text-align: justify;
  hyphens: auto;
}
.paper p { margin: 0.6em 0; }
.titleblock { text-align: center; margin-bottom: 2.5rem; hyphens: none; }
.titleblock h1 { font-size: 1.65em; font-weight: normal; line-height: 1.25; margin-bottom: 1rem; }
.titleblock .author { font-size: 1.06em; }
.titleblock .mail { font-family: "LM Mono", var(--mono); font-size: 0.95em; }

.paper h2, .paper h3 { font-weight: bold; text-align: left; hyphens: none; line-height: 1.25; scroll-margin-top: 1rem; }
.paper h2 { font-size: 1.32em; margin: 1.6em 0 0.6em; }
.paper h3 { font-size: 1.08em; margin: 1.4em 0 0.5em; }
.secnum { margin-right: 0.9em; }

.paper a.ref, .paper a.cite, .paper a.ext, .paper .mail, .applink a { color: var(--accent); }
.paper a:hover { text-decoration: underline; }
.applink { font-family: var(--font); font-size: 0.6em; margin: -0.2rem 0 0.8rem !important; text-align: left; }

.paper ul, .paper ol { margin: 0.5em 0 0.5em 1.7em; }
.paper li { margin: 0.15em 0; }
.paper li > p { margin: 0.2em 0; }
.paper dl { margin: 0.5em 0; }
.paper dt { font-weight: bold; float: left; margin-right: 0.5em; }
.paper dd { margin: 0.35em 0; }
.paper dd > p:first-child { margin-top: 0; }
.paper dd > p { margin: 0.3em 0; }
.paper blockquote { margin: 0.6em 2em; }

.dmath { display: block; overflow-x: auto; overflow-y: hidden; padding: 0.1em 0; scrollbar-width: none; }
.dmath::-webkit-scrollbar { display: none; }
mjx-container[display="true"] { margin: 0.7em 0 !important; }
mjx-container { color: var(--text); }

.paper figure { margin: 1.4rem 0; text-align: center; scroll-margin-top: 1rem; }
.paper figure img { max-width: 100%; height: auto; }
.paper figcaption { font-size: 0.92em; margin-top: 0.6rem; text-align: justify; }
/* dark theme: invert the figure, then blend so that its white areas take the panel color */
:root[data-theme="dark"] .paper figure img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }

.tablewrap { overflow-x: auto; }
.paper table { border-collapse: collapse; width: 100%; text-align: left; hyphens: none; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); }
.paper figure.small table { font-size: 0.92em; }
.paper th, .paper td { padding: 0.25em 0.5em 0.25em 0; vertical-align: top; font-weight: normal; }
.paper th:last-child, .paper td:last-child { padding-right: 0; }
.paper thead tr:last-child th { border-bottom: 1px solid var(--text); }

.bib { list-style: none; margin: 0 !important; font-size: 0.92em; text-align: left; hyphens: none; }
.bib li { position: relative; padding-left: 2.6em; margin: 0.25em 0; scroll-margin-top: 1rem; }
.bibnum { position: absolute; left: 0; }
.paper :target { background: var(--accent-soft); border-radius: 0.2rem; }

@media (max-width: 800px) {
  .paper { padding: 1.25rem 0.9rem 3rem; font-size: calc(1.15rem * var(--text-zoom, 1)); text-align: left; }
  .titleblock h1 { font-size: 1.35em; }
}
.nb { white-space: nowrap; }

/* lettered list: a) b) c) */
.paper ol.alpha > li::marker { content: counter(list-item, lower-alpha) ")\00a0"; }

.paper strong.topic { font-weight: bold; margin-right: 0.3em; }

/* the original problem statement */
.paper .statement { margin: 0.6em 1.5em; font-size: 0.92em; }
.paper .statement p { margin: 0.4em 0; }
.paper .stmt-author { display: block; text-align: right; }
.paper ul.labeled { list-style: none; margin-left: 1.2em; }
.paper ul.labeled > li { position: relative; }
.paper ul.labeled .itemlabel { position: absolute; left: -1.6em; }
.paper h4 { font-size: 1em; font-weight: bold; margin: 1.2em 0 0.4em; text-align: left; scroll-margin-top: 1rem; }
.paper .footnote { font-size: 0.85em; color: var(--text-dim); }
.paper .partlabel { font-family: var(--font); font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 0.4rem; }
.paper .problist { list-style: none; margin: 0.4em 0 1em 0 !important; }
.paper .problist li { margin: 0.25em 0; }
.paper .problist .pid { display: inline-block; min-width: 4.2em; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.paper .problist a { color: var(--accent); }
.paper .pagenav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-family: var(--font); font-size: 0.6em; }
.paper .pagenav a { color: var(--accent); }
