/* Compact footer shared by the homepage and the three commercial articles. */
body .site-footer.footer-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 24px 48px;
  margin: 0;
  padding: 32px 4vw 24px;
}

body .site-footer.footer-compact .footer-brand {
  min-width: 0;
  align-self: start;
}

body .site-footer.footer-compact .brand {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-self: start;
}

body .site-footer.footer-compact .footer-tagline {
  max-width: 330px;
  margin: 16px 0 0;
  padding: 0;
  font: 24px/1.2 var(--serif);
  letter-spacing: -.015em;
}

body .site-footer.footer-compact nav {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

body .site-footer.footer-compact .footer-link-group {
  min-width: 0;
}

body .site-footer.footer-compact .footer-link-group h2 {
  margin: 0 0 8px;
  padding: 0;
  font: 600 12px/1.5 var(--sans);
  letter-spacing: 0;
}

body .site-footer.footer-compact nav a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 4px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body .site-footer.footer-compact nav a:hover,
body .site-footer.footer-compact nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body .site-footer.footer-compact a:focus-visible,
body .site-footer.footer-compact button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

body .site-footer.footer-compact .footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

body .site-footer.footer-compact .footer-origin {
  display: flex;
  grid-column: auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font: 400 12px/1.5 var(--sans);
}

body .site-footer.footer-compact .motion-toggle {
  grid-column: auto;
  flex-shrink: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
}

@media (max-width: 760px) {
  body .site-footer.footer-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 20px 24px;
  }

  body .site-footer.footer-compact nav {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
  }

  body .site-footer.footer-compact nav a {
    min-height: 44px;
    padding: 8px 0;
  }

  body .site-footer.footer-compact .footer-bottom {
    grid-column: 1;
    gap: 8px 20px;
    margin: 0;
    padding: 14px 0 0;
  }
}

@media (max-width: 360px) {
  body .site-footer.footer-compact {
    padding-left: 16px;
    padding-right: 16px;
  }

  body .site-footer.footer-compact nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
}
