/*
 * Social-media module styles.
 * Keep this file in sync with ../scss/social-icons.scss.
 */

.social-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 2.3rem;
}

.social-links {
  display: block;
}

.social-links__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0.25rem 1rem;
  list-style: none;
}

.social-links__item {
  margin: 0;
  padding: 0;
}

.social-links__link {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  line-height: 1;
  color: #327e9f;
  text-decoration: none;
  touch-action: manipulation;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  transition:
    color 0.16s ease,
    opacity 0.16s ease;
}

.social-links__link:hover {
  color: #2f4d5a;
}

.social-links__link:focus {
  outline: 2px solid #2f4d5a;
  outline-offset: 0;
  box-shadow: 0 0 0 2px #fff;
}

.social-links__link:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

.social-links__link:focus-visible {
  outline: 2px solid #2f4d5a;
  outline-offset: 0;
  box-shadow: 0 0 0 2px #fff;
}

.social-links__logo {
  display: block;
  flex: none;
  height: 24px;
  width: auto;
  fill: currentColor;
}

.social-links__logo--x {
  height: 23px;
}

.social-links__logo--facebook {
  height: 24px;
}

.social-links__logo--linkedin {
  height: 24px;
}

.home .social-icon {
  margin-top: -5rem;
  margin-bottom: 0;
  padding-bottom: 1.8rem;
}

.home .social-links__link {
  color: #fff;
}

.home .social-links__link:hover {
  color: #fff;
  opacity: 0.78;
}

.home .social-links__link:focus,
.home .social-links__link:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 2px #2f4d5a;
}

@media (prefers-reduced-motion: reduce) {
  .social-links__link {
    transition: none;
  }
}

@media (forced-colors: active) {
  .social-links__link {
    color: LinkText;
  }

  .social-links__link:focus,
  .social-links__link:focus-visible {
    outline-color: Highlight;
    box-shadow: none;
  }

}
