/* Icon links to Connections' social accounts. The list is filled in at build time from
   site/site.config.json (scripts/social-links.mjs). The icons take the colour of the text
   around them: light in the navy footer, navy in the homepage contact section. */

.social-links {
  --social-hover: var(--c-bronze-deep, #7d5a2e);
  display: flex;
  flex-wrap: wrap;
  /* Each link is a 40px target around a 20px icon; the negative margin lines the first icon
     up with the text above it. */
  margin: var(--space-5, 1.5rem) 0 0 -.625rem;
  padding: 0;
  list-style: none;
}

.social-links:empty { display: none; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: inherit;
  transition: color .2s var(--ease, ease);
}

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

.social-links svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer .social-links { --social-hover: var(--c-sandstone, #c7ac92); }

/* The enquiry page's footer is a compact row of contact details. */
.site-footer__inner .social-links { margin-top: .5rem; }
