/* Footer layout switches at the requested 700px breakpoint. */
.footer-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(20px, 3.2vw, 42px);
  row-gap: 0;
  padding-bottom: 36px;
}

.footer-brand {
  grid-column: auto;
}

.footer-links {
  --footer-link-gap: 15px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  justify-items: start;
  column-gap: 24px;
  row-gap: var(--footer-link-gap);
  margin: 0;
}

.footer-links .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 calc(var(--footer-link-gap) - 3px);
}

.footer-links a {
  grid-column: 1;
  align-items: flex-start;
}

.footer-links a:nth-child(2) { grid-row: 2; }
.footer-links a:nth-child(3) { grid-column: 2; grid-row: 2; }
.footer-links a:nth-child(4) { grid-row: 3; }
.footer-links a:nth-child(5) { grid-column: 2; grid-row: 3; }
.footer-links a:nth-child(6) { grid-row: 4; }
.footer-links a:nth-child(7) { grid-column: 2; grid-row: 4; }

@media (max-width: 699px) {
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-brand > p {
    margin: 8px 0 0;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    --footer-link-gap: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin: 40px auto 0;
  }

  .footer-links .eyebrow {
    align-self: center;
    margin: 0 0 -5px;
  }

  .footer-links a { align-items: center; }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
}
