/* Shared footer layout for every public page. */
footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Sidebar pages use the same 1280px shell as their .layout wrapper. */
footer.site-footer-wide {
  width: min(1280px, calc(100% - 2rem));
}

footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  color: var(--navy);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

footer .footer-brand img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
}

footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

footer .footer-links li {
  display: flex;
  align-items: center;
  margin: 0;
}

footer .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 0.72rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  transform: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

footer .footer-links a:hover {
  color: var(--blue);
}

footer > p,
footer > .footer-right {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 980px) {
  footer {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  footer > p,
  footer > .footer-right {
    text-align: center;
  }
}

@media (max-width: 560px) {
  footer {
    width: min(1280px, calc(100% - 1.25rem));
  }
}
