/* Native download, shown only after the shared App Store URL is set. */
:root main .medx-app-download[hidden] { display: none !important; }
:root main .medx-app-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(25, 21, 18, .16);
  text-align: left;
  color: #191512;
}
:root main .home-app .medx-app-download { max-width: 720px; margin-inline: auto; }
:root main .medx-app-download h3 {
  margin: 0;
  font: 500 26px/1.18 var(--font-display, ui-serif, Georgia, serif);
  letter-spacing: -.01em;
  text-wrap: balance;
  color: inherit;
}
:root main .medx-app-download p {
  margin: 6px 0 0;
  font: 400 15px/1.5 var(--font-ui, sans-serif);
  color: #4a4239;
}
/* Apple's minimum clear space: one quarter of the unmodified 40px badge height. */
:root main .medx-app-download a {
  display: inline-flex;
  flex: none;
  padding: 10px;
  margin: 0;
  border: 0;
  text-decoration: none;
  background: none;
  box-shadow: none;
  transform: none;
  transition: none;
}
:root main .medx-app-download a:focus-visible { outline: 2px solid #191512; outline-offset: 2px; }
:root main .medx-app-download img { display: block; width: 120px; height: 40px; max-width: none; border: 0; border-radius: 0; transform: none; }
@media (max-width: 620px) {
  :root main .medx-app-download h3 { font-size: 24px; }
}

/* Plexus places the same download block on its existing ink section. */
:root main .plx-portal .medx-app-download { color: #fff; border-top-color: rgba(255, 255, 255, .22); }
:root main .plx-portal .medx-app-download p { color: rgba(255, 255, 255, .78); }
:root main .plx-portal .medx-app-download a:focus-visible { outline-color: #fff; }
