/* LaTeX output inherits the active website palette and shared article layout. */
.w-latex-body {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.w-latex-body h2,
.w-latex-body h3 {
  margin-top: 2em;
}
.w-latex-body figure {
  margin: 2em auto;
  text-align: center;
}
.w-latex-body img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
}
.w-latex-body figcaption,
.w-latex-body caption {
  font-size: 0.9em;
  padding: 0.8em 0;
  text-align: center;
}
.w-latex-body table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: fit-content;
  max-width: 100%;
  margin: 1.5em auto;
  background: transparent;
}
.w-latex-body th,
.w-latex-body td {
  padding: 0.55em 0.8em;
  border-bottom: 1px solid var(--line, rgba(128, 128, 128, 0.25));
  background: transparent;
  vertical-align: top;
  text-align: left;
}
.w-latex-body math[display='block'] {
  display: block;
  overflow-x: auto;
  padding: 1em 0;
}
.w-latex-body {
  max-width: 960px;
  margin-inline: auto;
}
.w-latex-body [id] {
  scroll-margin-top: 125px;
}
.w-latex-body img[src$='.svg'] {
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-sizing: border-box;
}
.w-latex-body h5 {
  font-size: 1.1em;
  margin: 1.5em 0 0.5em;
}
.w-latex-body td {
  min-width: 120px;
}

/* Justify prose, leaving captions and table cells with their own alignment. */
.w-latex-body > p,
.w-latex-body section > p,
.w-latex-body .abstract p,
.w-paper-abstract,
.w-abstract-preview {
  text-align: justify;
  hyphens: auto;
}
.w-abstract-preview {
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.w-abstract-preview.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.w-abstract-excerpt button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
