/* Clean scientific documentation styling aligned with Multiwfn online manual */
.md-typeset {
  font-size: 0.82rem;
  line-height: 1.65;
}

.md-typeset h1 {
  color: #1f4e79;
  font-weight: 700;
  border-bottom: 2px solid #1f4e79;
  padding-bottom: 0.3rem;
}

.md-typeset h2 {
  color: #2e75b6;
  font-weight: 600;
}

.md-typeset pre,
.md-typeset pre code {
  font-size: 0.74rem;
  line-height: 1.45;
}

.md-typeset pre {
  overflow-x: auto;
}

.md-typeset .arithmatex {
  overflow-x: auto;
  overflow-y: hidden;
}

/* Styled scientific figures */
.md-typeset figure.guide-fig {
  margin: 1.3rem auto;
  text-align: center;
  max-width: 100%;
}

.md-typeset figure.guide-fig img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.md-typeset figure.guide-fig figcaption {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
}

.md-typeset figure.guide-fig figcaption strong {
  color: #1f4e79;
}

/* Centered compact tables */
.md-typeset__table {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.md-typeset table:not([class]) {
  font-size: 0.76rem;
}

.md-typeset table:not([class]) th {
  background-color: #1f4e79;
  color: #ffffff;
  font-weight: 600;
}

/* Top-level nav items bold */
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  font-weight: 600;
}
