/* Sitewide footer — light grey background, dark text (all pages) */
footer {
  background: #e8e8e8 !important;
  color: #111111 !important;
}

footer p,
footer h4,
footer a:not(.rt-footer-social-link),
footer span:not(.rt-footer-social-label),
footer li,
footer address {
  color: #444444 !important;
}

footer h4 {
  color: #666666 !important;
}

footer .footer-bottom p,
footer .site-footer-bottom p {
  color: #666666 !important;
}

footer a:not(.rt-footer-social-link):hover {
  color: #245ca8 !important;
}

footer img[alt*="Relay"],
footer img[alt*="relay"] {
  filter: none !important;
}

footer [style*="border-bottom"] {
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.rt-footer-social-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.rt-footer-social,
.site-footer-social.rt-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* All pages — black icons on white chips */
footer .rt-footer-social a.rt-footer-social-link,
footer a.rt-footer-social-link,
.rt-footer-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(11, 17, 32, 0.14) !important;
  color: #0b1120 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  text-decoration: none !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

footer .rt-footer-social a.rt-footer-social-link i,
footer .rt-footer-social a.rt-footer-social-link .ti,
footer a.rt-footer-social-link i,
footer a.rt-footer-social-link .ti,
.rt-footer-social-link i,
.rt-footer-social-link .ti {
  color: #0b1120 !important;
}

footer .rt-footer-social a.rt-footer-social-link:hover,
footer a.rt-footer-social-link:hover,
.rt-footer-social-link:hover {
  transform: translateY(-2px) !important;
  background: #245ca8 !important;
  border-color: #245ca8 !important;
  color: #ffffff !important;
}

footer .rt-footer-social a.rt-footer-social-link:hover i,
footer .rt-footer-social a.rt-footer-social-link:hover .ti,
footer a.rt-footer-social-link:hover i,
footer a.rt-footer-social-link:hover .ti,
.rt-footer-social-link:hover i,
.rt-footer-social-link:hover .ti {
  color: #ffffff !important;
}

.rt-footer-social-link .rt-footer-social-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  main p,
  footer p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-bottom,
  .site-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .rt-footer-social,
  .site-footer-social.rt-footer-social {
    justify-content: center !important;
    width: 100%;
  }

  footer .rt-footer-social a.rt-footer-social-link,
  footer a.rt-footer-social-link,
  .rt-footer-social-link {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  footer [style*="grid-template-columns"] {
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
