/* Logo on the landing page: a GAHM wind field, floated beside the title so the
   heading sits alongside it on wide screens and stacks on narrow ones. */
img.gahm-logo {
  float: right;
  width: 160px;
  max-width: 35%;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 6px;
}

@media (max-width: 50rem) {
  img.gahm-logo {
    float: none;
    display: block;
    width: 120px;
    margin: 0 0 1rem 0;
  }
}

/* Figures pulled out of the .docx files carry inch-based inline sizing from Word.
   build_docs.py strips that and tags them .doc-figure so they scale with the page. */
img.doc-figure {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Display equations from pandoc can be wider than the content column. */
mjx-container[jax="CHTML"][display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0;
}

/* Wide parameter tables (configuration reference) should scroll rather than clip. */
.main-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
