/* V31 — responsive footer grid and wrapping for every screen size. */
body .site-footer .footer-top {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
}

body .site-footer .footer-top > div,
body .site-footer .footer-bottom > div {
  min-width: 0;
}

body .site-footer .footer-top a:not(.nav-brand),
body .site-footer .footer-top span,
body .site-footer .footer-bottom a {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  body .site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  body .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body .site-footer .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 26px 22px;
  }

  body .site-footer .footer-brand {
    grid-column: auto;
  }

  body .site-footer .footer-discover__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  body .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body .site-footer .footer-bottom > div {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
}

@media (max-width: 380px) {
  body .site-footer .footer-discover__links,
  body .site-footer .footer-bottom > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
