/* Shared footer geometry across the homepage and child routes. */
html body .site-footer {
  padding-block: 24px;
  border-top: 1px solid #2c3031;
}
html body .site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
html body .site-footer .footer-copy {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
html body .site-footer .motion-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
html body .site-footer .footer-top {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
@media (max-width: 600px) {
  html body .site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
  html body .site-footer .footer-copy { grid-column: 1; grid-row: 1; }
  html body .site-footer .footer-top { grid-column: 2; grid-row: 1; }
  html body .site-footer .motion-toggle { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media print { html body .site-footer { display: none; } }

/* Footer edges match the homepage; page motion control stays with content. */
html body .site-footer .footer-inner:not(:has(.motion-toggle)) {
  width: min(100% - 2 * var(--container-gutter, 32px), 1440px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) auto;
}
html body .site-footer .footer-inner:not(:has(.motion-toggle)) .footer-top { grid-column: 2; }
html body .route-motion-control {
  width: min(100% - 64px, 1200px);
  margin: 24px auto 32px;
  text-align: right;
}
@media (max-width: 600px) {
  html body .site-footer .footer-inner:not(:has(.motion-toggle)) { width: calc(100% - 32px); }
  html body .route-motion-control { width: calc(100% - 32px); }
}
