/* Hide Astra's old Welcome footer only if the shared R1 footer is present. */
body.home.xl-learner-surface:has(.xl-r1-footer) #colophon.site-footer,
body.home.xl-learner-surface #colophon.site-footer[hidden] {
  display: none !important;
}
body.xl-learner-surface:has(.xl-r1-footer) [data-xl-learn-pwa-v1],
body.xl-learner-surface [data-xl-learn-pwa-v1][hidden] {
  display: none !important;
}

/* Match R2's existing mobile-action layout on Learn, without changing it. */
body.xl-learner-surface .xl-r1-footer .xl-r1-app-links .xl-r21-install-fallback {
  color: #082c5c;
  background: #fff;
  border-color: #fff;
  text-decoration: none;
}
body.xl-learner-surface .xl-r1-footer .xl-r1-app-links .xl-r21-install-fallback:focus-visible {
  outline: 3px solid #ffb742;
  outline-offset: 3px;
}
