/* Stop TeX4ht web.css from hijacking WordPress layout */
body {
  max-width: unset !important;
  padding: 0 !important;
  margin: 0 !important;
  background: unset !important;
  color: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
}

/* Apply the "academic page" styling ONLY to the embedded TeX content */
#texwrap {
  max-width: 1180px;
  padding: 20px 14px 30px; /* reduced so no huge gaps */
  margin: 0 auto;
  background: #fff;
  color: #0b5a46;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

/* Scope links and headings */
#texwrap a {
  color: #0b5a46;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#texwrap h1,
#texwrap h2,
#texwrap h3 {
  margin-top: 0.2em;
}