/*
  Official App Store / Google Play badges — SINGLE SOURCE OF TRUTH for badge sizing.

  Apple's badge is served as SVG from Apple's marketing toolbox, so it scales without
  loss. Google's is the official web badge, committed to /assets so the site does not
  depend on a third-party image host for it.

  Both files are bare artwork with no built-in clear space, so matching HEIGHT is what
  makes them read as the same size. The rendered widths differ slightly on purpose:
  the badges have different aspect ratios (Apple 2.99:1, Google 3.37:1), and forcing
  equal widths would distort one of them.

  App Store always leads — first in a row, top in a stack.
*/
.hum-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hum-badges--stack {
  flex-direction: column;
  align-items: flex-start;
}
.hum-badge {
  /* Do not shrink. As a flex item with auto width the anchor would otherwise size
     from the image while the image sized from the anchor, and both collapse to 0. */
  flex: 0 0 auto;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
}
.hum-badge img {
  height: 52px;
  width: auto;
  display: block;
  /* Most pages set a global img{max-width:100%}. Against a zero-width flex parent that
     resolves to zero, so it has to be opted out of here. */
  max-width: none;
}
.hum-badge:focus-visible {
  outline: 3px solid #52ADA2;
  outline-offset: 3px;
  border-radius: 8px;
}
@media (max-width: 480px) {
  .hum-badge img { height: 46px; }
}
