/* Inventory trees: shrink to fit the column, but never enlarge past intrinsic SVG size. */
.quarto-figure img[src*="inventory-tree"],
figure img[src*="inventory-tree"],
img[src*="inventory-tree"] {
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Yellow highlight (same family as tree .hi fills) */
mark, .mark {
  background-color: #fff59d;
  padding: 0.1em 0.15em;
  border-radius: 0.15em;
}

/* Match stochastic-control course theorem boxes
   (static/css/style.scss uses Bootstrap $secondary / $dark). */
.theorem:not(.exercise):not(.example) {
  display: block;
  padding-top: 1em;
  padding-left: 0.5em;
  padding-right: 0.5em;
  padding-bottom: 0.5em;
  border: 1px solid #343a40;
  background-color: #e9ecef;
}
