/**
 * Mobile footer compact layout v1.12.0
 * Scope: mobile/tablet only. Desktop footer remains unchanged.
 */
@media screen and (max-width: 820px) {
  .site-footer {
    padding: 30px 0 calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-footer__top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .footer-brand > p {
    max-width: 32em !important;
    margin-top: 12px !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
  }

  /* Keep only the useful top-level destinations on mobile. */
  .site-footer .footer-subnav {
    display: none !important;
  }

  .footer-map {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 18px !important;
  }

  .footer-map > div {
    min-width: 0 !important;
    padding: 14px 0 12px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
  }

  .footer-map h3 {
    margin: 0 0 9px !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
    letter-spacing: .13em !important;
  }

  .footer-map > div > a {
    margin: 5px 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  .site-footer__bottom {
    display: block !important;
    margin-top: 16px !important;
    padding: 14px 0 2px !important;
  }

  .site-footer__bottom p,
  .site-footer__bottom a {
    font-size: 8px !important;
    line-height: 1.5 !important;
  }

  .site-footer__bottom div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;
    margin-top: 8px !important;
  }
}

@media screen and (max-width: 380px) {
  .footer-map {
    gap: 0 14px !important;
  }

  .footer-map > div > a {
    font-size: 10.5px !important;
  }
}
