/* Footer: the shared footer row uses a wide gutter that pushes inner pages wider than a phone screen */
footer .row.g-5 {
  --bs-gutter-x: 1.5rem;
}

/* long unbroken text (the website address) must wrap instead of widening the page */
.footer-contact-item > span,
.footer-contact-item > a {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Related-pages block (internal links) - used on inner pages */
.related-links {
  padding: 48px 0;
  background: #f4f8f4;
}

.related-links h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1b5e20;
}

.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
}

.related-links li a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  font-weight: 500;
  color: #1b5e20;
  text-decoration: none;
}

.related-links li a:hover,
.related-links li a:focus-visible {
  color: #f57c00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
