/* Site footer, shared by every page (src/_includes/footer.njk).
   Relies on the page stylesheet for the colour/type tokens (--ink, --white, --wrap)
   and the .wrap utility. */

.site-footer {
  padding: 39px 0 46px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1185px, 100% - 32px);
}

.site-footer address {
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer__links {
  text-align: right;
}

.site-footer__links a {
  text-decoration: underline;
}

/* ---------- Phone layout ---------- */
@media (max-width: 800px) {
  .site-footer {
    padding: 32px 0 39px;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 11px;
    width: min(var(--wrap), 100% - 32px);
  }

  .site-footer__links {
    align-self: center;
  }
}
