/* Shared typography for native LaTeXML HTML and its embedded reading version. */
body:has(> .ltx_page_main),
body:has(> .ltx_page_content) {
  background: #fcfcf9;
  color: #25292c;
  font:
    18px/1.8 Georgia,
    "Times New Roman",
    serif;
  margin: 0;
  padding: 40px max(24px, calc((100vw - 850px) / 2));
}
.ltx_document {
  max-width: 850px;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.ltx_title_document {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 400;
}
.ltx_title_section,
.ltx_title_subsection {
  font-weight: 400;
  line-height: 1.35;
}
.ltx_authors,
.ltx_dates {
  font-size: 16px;
  color: #62676b;
}
.ltx_abstract {
  margin: 30px 0;
  border-block: 1px solid #dedfe0;
  padding: 20px 0;
}
.ltx_title_abstract {
  font:
    bold 14px Arial,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
}
.ltx_p {
  margin-block: 0 1.25em;
}
table.ltx_equation {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}
.ltx_eqn_center_padleft,
.ltx_eqn_center_padright {
  width: 50%;
}
.ltx_align_center {
  text-align: center;
}
.ltx_align_left {
  text-align: left;
}
.ltx_align_right {
  text-align: right;
}
.ltx_Math[display="block"] {
  margin: 14px auto;
  font-size: 1.2em;
}
.ltx_ref {
  color: #426f8d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ltx_tag_section {
  color: #62676b;
  margin-right: 7px;
}
.ltx_theorem {
  border-left: 2px solid #a5bbc9;
  padding: 12px 20px;
  margin-block: 24px;
  background: #f1f3f5;
}
.ltx_proof {
  margin-block: 22px;
}
.ltx_itemize,
.ltx_enumerate {
  padding-left: 28px;
}
.ltx_figure {
  text-align: center;
  margin: 25px 0;
}
.ltx_figure img {
  max-width: 100%;
  height: auto;
}
.ltx_tabular {
  max-width: 100%;
  border-collapse: collapse;
}
.ltx_tabular td {
  padding: 6px;
}
.ltx_page_footer {
  font:
    12px Arial,
    sans-serif;
  color: #62676b;
  margin-top: 35px;
}
.latexml-content .ltx_title_document,
.latexml-content .ltx_authors,
.latexml-content .ltx_dates,
.latexml-content .ltx_abstract {
  display: none;
}
.latexml-content .ltx_document {
  max-width: none;
}
.latexml-content .ltx_title_section {
  scroll-margin-top: 80px;
}
.latexml-content table.ltx_equation {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.latexml-content .ltx_equation tbody {
  display: table;
  width: 100%;
}
.latexml-content .ltx_section {
  margin-top: 35px;
}
.latexml-content .ltx_section:first-of-type {
  margin-top: 0;
}
math {
  font-family: math;
}
img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .ltx_title_document {
    font-size: 32px;
  }
  body:has(> .ltx_page_main),
  body:has(> .ltx_page_content) {
    padding: 24px 20px;
  }
  table.ltx_equation {
    display: block;
    overflow-x: auto;
  }
  .ltx_equation tbody {
    display: table;
    width: 100%;
  }
}

.paper-reader .latexml-content [id] {
  scroll-margin-top: 80px;
}
