/* Buttons are inline-block, so a wrapped row lands flush against the one above
 * and the only horizontal gap is the whitespace between the tags. Flex on the
 * button-only paragraph gives the same gap in both directions. */
.md-typeset p:has(> .md-button) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
