/* Compact shared footer inside each page's content box. */
.site-footer {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-body);
}

.footer-main {
  display: grid;
  align-items: center;
  gap: 12px;
}

.footer-name {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--theme-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.footer-statement {
  font-size: 11.5px;
  line-height: 1.5;
  text-wrap: balance;
}

.footer-affiliation {
  margin-top: 4px;
  color: var(--theme-muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.footer-navigation { align-self: center; }

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.footer-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--theme-accent);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer a:hover {
  color: var(--theme-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-muted);
  font-size: 9.5px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .site-footer { padding-top: 20px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .footer-link-row { justify-content: center; }
  .footer-link-row a { min-height: 28px; }
}

@media (min-width: 1250px) {
  /* Size the content box to its content and enclosed footer. */
  .main-content > article { min-height: 0; }
}
