/* Compact footer: explicit typography prevents legacy paragraph styles leaking in. */
.site-footer-wrap .site-footer {
  padding-block: 28px 14px;
}

.site-footer .footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 0 0 20px;
}

.site-footer .footer-grid--compact {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.site-footer .footer-brand-column {
  max-width: 300px;
}

.site-footer p {
  font: 400 12px/1.5 var(--sans);
}

.site-footer .footer-brand-column > p {
  margin: 12px 0 0;
}

.site-footer .footer-heading {
  margin: 0 0 10px;
  font: 400 9px/1.4 var(--mono);
  letter-spacing: .1em;
}

.site-footer .footer-details > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 9px 0;
}

.site-footer .footer-details dt {
  padding-top: 2px;
  font: 500 8px/1.5 var(--mono);
}

.site-footer .footer-details dd {
  min-width: 0;
  margin: 0;
  font: 400 11px/1.5 var(--sans);
  text-align: left;
  overflow-wrap: anywhere;
}

.site-footer .footer-social-link {
  min-height: 30px;
  padding: 4px 0;
  border-bottom: 0;
  font: 400 12px/1.4 var(--sans);
}

.site-footer .footer-social-name {
  gap: 8px;
}

.site-footer .footer-social-handle {
  margin: 0 0 6px;
  padding: 0 0 8px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font: 400 11px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.site-footer .footer-social-note {
  max-width: none;
  margin: 8px 0 0;
  font: 400 11px/1.5 var(--sans);
}

.site-footer .footer-bottom {
  gap: 12px;
  padding-top: 12px;
  font: 400 10px/1.4 var(--mono);
}

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

  .site-footer .footer-grid:not(.footer-grid--compact) .footer-brand-column {
    grid-column: 1 / -1;
    max-width: none;
  }

  .site-footer .footer-brand-column > p {
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .site-footer-wrap .site-footer {
    padding-block: 22px 12px;
  }

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

  .site-footer .footer-brand-column {
    max-width: none;
  }

  .site-footer .footer-brand-column > p {
    max-width: none;
    margin-top: 10px;
  }

  .site-footer .footer-details-column,
  .site-footer .footer-social-column {
    padding-top: 0;
  }

  .site-footer .footer-details > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .site-footer .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    gap: 6px 12px;
  }

  .site-footer .footer-bottom > small:first-child {
    flex-basis: 100%;
  }

  .site-footer .footer-bottom > span {
    order: 0;
  }
}
