/* Shared mobile outros. Opt-in classes keep offer-specific endings and desktop intact.
   Maintain this source, then rebuild HOME with maintenance/build-home.py. */
.footer-mobile-break { display: none; }

@media (max-width: 768px) {
  /* No viewport-height sizing: short phones and tall phones use the same rhythm.
     min-height is only a floor; wrapping and enlarged text can grow the footer. */
  body footer.footer-mobile:is(.footer-outro, .patron-outro) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 460px;
    max-height: none;
    margin: 0;
    padding: 72px 20px max(24px, env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) > :is(.footer-outro-content, .patron-outro-inner) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
    max-width: 560px;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) :is(h2, .footer-outro-heading) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  body footer.footer-mobile.footer-mobile--conversation :is(h2, .footer-outro-heading) {
    font-size: clamp(1.375rem, 6.6vw, 2.5rem);
  }

  body footer.footer-mobile.footer-mobile--production :is(h2, .footer-outro-heading) {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .footer-mobile-break { display: initial; }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) :is(.footer-contact-action, .premium-final-actions--footer) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) :is(.ui-text-cta, .offer-contact-cta, .pearl-cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.055em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) :is(.ui-text-cta, .offer-contact-cta, .pearl-cta) svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) .footer-socials {
    gap: 14px;
    margin: 0;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) .footer-social-link {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  body footer.footer-mobile:is(.footer-outro, .patron-outro) .footer-social-link svg {
    width: 30px;
    height: 30px;
  }

  /* Keep legal/return links in flow so they cannot overlap enlarged content. */
  body footer.footer-mobile:is(.footer-outro, .patron-outro) > :is(.footer-copy, .patron-home-seo-link) {
    position: relative;
    inset: auto;
    z-index: 3;
    width: 100%;
    max-width: 560px;
    margin: 48px 0 0;
    transform: none;
    text-align: center;
  }
}
