/* Tighter page title + top spacing (theme default is roomy: h1 2em
   with 1.25em bottom margin, plus .6rem content padding and .4rem spacer) */
.md-content__inner {
  padding-top: 0;
}
.md-content__inner:before {
  height: 0.2rem;
}
.md-typeset h1 {
  font-size: 1.5em;
  margin: 0 0 0.6em;
}

/* Round 2: remaining whitespace trims (theme defaults in comments) */
.md-main__inner {
  margin-top: 0.75rem; /* theme: 1.5rem gap below the fixed header */
}
.md-content__inner {
  margin-bottom: 0.6rem; /* theme: 0 .8rem 1.2rem */
}
/* Photo paragraph only (pages have a single <p><img></p>) */
.md-typeset p:has(> img:only-child) {
  margin: 0.5em 0;
}
/* Cap photo height so photo + table fit on one screen */
.md-typeset p:has(> img:only-child) img {
  max-height: 55vh;
}
/* Info table cells (theme: .9375em 1.25em at .64rem font) */
.md-typeset table:not([class]) td {
  padding: 0.45em 0.6em;
}
