.fch-footer-contact .fch-social-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 3.75rem), 1fr));
  max-inline-size: 21rem;
  gap: 14px 10px;
  margin-block-start: 22px;
  padding-block-start: 20px;
  border-block-start: 1px solid #ffffff1c;
}

.fch-footer-contact .fch-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-inline-size: 0;
  margin: 0;
  padding: 2px 0;
  border-radius: 8px;
  color: #d5e3ec;
  text-align: center;
  text-decoration: none;
}

.fch-social-link .fch-social-disc {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: #f9fcff;
  box-shadow: 0 2px 6px #00162635;
  transition: transform .2s ease;
}

.fch-social-link img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* Keep the animated border inside the tile, clear of other links and labels. */
.fch-social-preset .fch-social-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--social-color, #65b9cf);
  border-radius: inherit;
  pointer-events: none;
  animation: fch-social-glow 5s ease-in-out var(--social-delay, 0s) infinite;
}

.fch-social-link .fch-social-caption {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-size: .75rem;
  font-weight: 600;
}

.fch-footer-contact .fch-social-link:focus-visible {
  color: #ffe0a8;
  outline: 2px solid #ffd080;
  outline-offset: 2px;
}

@media (hover: hover) {
  .fch-footer-contact .fch-social-link:hover { color: #ffe0a8; }
  .fch-social-link:hover .fch-social-disc { transform: translateY(-2px); }
}

@keyframes fch-social-glow { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .fch-social-preset .fch-social-disc::after { animation: none; opacity: .22; }
  .fch-social-link .fch-social-disc { transition: none; }
  .fch-social-link:hover .fch-social-disc { transform: none; }
}
