/* Phone-width conversion fixes. Added by the server after styles.css. */
@media (max-width: 640px) {
  body.has-store-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* The header store button was cut off at the right edge. */
  .masthead { flex-wrap: wrap; }
  .masthead-nav { flex-wrap: wrap; }
  /* Home: price and download buttons come before the long description. */
  body.home .hero { display: flex; flex-direction: column; align-items: center; }
  body.home .hero > .hero-sub { order: 1; margin-top: 24px; margin-bottom: 12px; }
  body.home .hero > .rating-badge,
  body.home .hero > .midi-note,
  body.home .hero > .hero-staff { order: 2; }
  body.home .hero > .hero-staff { width: 100%; }
  body.home .hero > .price-line { margin-top: 20px; }
}
/* Article pages colour every link; the bar button keeps dark text on gold. */
body .sticky-cta a.sticky-cta-btn,
body .sticky-cta a.sticky-cta-btn:visited,
body .sticky-cta a.sticky-cta-btn:hover { color: #16130b; text-decoration: none; }

/* Practice tools render after load: hold the screen open so the content below does not jump. */
@media (scripting: enabled) {
  #tool-root:empty { min-height: 100vh; }
}
