/* =========================================================
   EntryLap V21 — mobile edge alignment, footer readability,
   and header-connected navigation refinement.
   Loaded after V20. Desktop remains unchanged.
   ========================================================= */

@media (max-width: 820px) {
  /*
   * Hero outcome rail
   * Keep the horizontal swipe interaction while aligning the
   * rail with the same content edge used by the rest of mobile.
   */
  .hero-outcomes {
      box-sizing: border-box !important;
      width: calc(100% + 10px) !important;
      max-width: calc(100% + 10px) !important;
      margin: 12px 0 0 !important;
      padding: 0 0 0px !important;
      scroll-padding-inline: 0 !important;
      margin-left: -5px !important;
  }

  .hero-outcomes article {
    flex-basis: min(82vw, 342px) !important;
    scroll-margin-inline: 0 !important;
  }

.site-nav {
    top: 61px !important;
    transform-origin: top center;
}

  .site-nav.is-open {
    animation: v21MenuIn .26s cubic-bezier(.22,.78,.22,1) both !important;
  }

  /*
   * Footer type scale
   * Increase reading size without changing the compact
   * two-column mobile information architecture.
   */
  .footer-top p {
    font-size: 13.8px !important;
    line-height: 1.55 !important;
  }

  .footer-grid {
    row-gap: 28px !important;
  }

  .footer-grid > div {
    gap: 10px !important;
  }

  .footer-grid strong {
    margin-bottom: 4px !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }

  .footer-grid a {
    min-height: 22px;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .footer-grid a > i {
    width: 15px !important;
    font-size: 12px !important;
  }

  .footer-bottom {
    gap: 9px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 580px) {
  .hero-outcomes article {
    flex-basis: min(60vw, 330px) !important;
  }

  .footer-grid {
    gap: 27px 16px !important;
  }

  .footer-grid a {
    font-size: 12.75px !important;
  }
}

@media (max-width: 360px) {
  .footer-top p,
  .footer-grid a {
    font-size: 12.5px !important;
  }

  .footer-grid strong {
    font-size: 13px !important;
  }

  .footer-bottom {
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav.is-open {
    animation: none !important;
  }
}

@keyframes v21MenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
