/* Keep the visible menu sequence and keyboard reading order together. */
.footer_component .footer_grid {
  grid-template-areas: none;
  grid-template-rows: none;
}

@media screen and (max-width: 767px) {
  .footer_component .footer_primary-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .footer_component .footer_secondary-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer_component .footer_mid-links--wide {
    grid-column: 1 / -1;
  }

  .footer_component .footer_mid-links,
  .footer_component .footer_links {
    min-width: 0;
    width: 100%;
    gap: 0.5rem;
  }

  .footer_component .footer_subheading {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  /* Page exports clamp footer links to one line; mobile menus need the full label. */
  .footer_component .footer_link {
    display: block;
    min-height: 1.75rem;
    padding-block: 0.125rem;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    line-height: 1.5;
  }

  .footer_component .footer_bot-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-items: start;
  }

  .footer_component .footer_socials {
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .footer_component .footer_social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}
