@layer components {
  /* One quiet line in the footer - never a banner, an interstitial, or anything that covers
     the page.

     _Layout already drops the whole footer on the running practice screen, so this cannot
     appear mid-session. MISSION.md draws that line ("the session is sacred") and existing
     code holds it; nothing here needs to re-check. */

  /* Copyright on the left, support line on the right, in the footer's single 60px row.
     On a narrow screen the support line wraps onto its own row underneath. */
  .av-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
  }

  /* .footer is nowrap with a 60px line-height. On a phone of 360px or narrower the copyright
     line is wider than the screen and pushed the page sideways, so let it wrap there with
     ordinary line spacing. */
  @media (max-width: 575.98px) {
    .av-footer-row > span {
      white-space: normal;
      line-height: 1.5;
      padding: 12px 0 6px;
    }
  }

  .av-support-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    /* .footer sets a 60px line-height to centre its copyright line; without this reset the
       support line takes 60px of its own. */
    line-height: 1.5;
  }

  .av-support-cta-text {
    font-size: 0.9375rem;
  }
}
