/* "Join the conversation" links (_socialLinks.ejs), shared by both layouts */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 14px 0;
  font-size: 15px;
  text-align: center;
}

.social-links-label {
  color: var(--ink-6);
  font-weight: 600;
}

.social-links-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--line-3);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.social-links .social-link:focus-visible {
  border-color: var(--brand);
  background: var(--brand-wash);
}

@media (hover: hover) {
  .social-links .social-link:hover {
    border-color: var(--brand);
    background: var(--brand-wash);
  }
}

/* Outranks the content pages' `a:hover { text-decoration: underline }`, which
   sticks after a tap on touch screens. */
.social-links .social-link:hover {
  text-decoration: none;
}

.social-links .social-link i {
  font-size: 1.25em;
}

/* Compact: sits under a dialog's primary buttons without competing with them.
   The ::before (positioned from inside the 1px border) extends the tap target
   back to 44px. */
.social-links--compact {
  gap: 6px 10px;
  font-size: 13px;
}

.social-links--compact .social-links-label {
  color: var(--ink-3);
  font-weight: 400;
}

.social-links--compact .social-link {
  position: relative;
  min-height: 34px;
  padding: 0 12px;
  gap: 6px;
  font-weight: 500;
  color: var(--ink-6);
}

.social-links--compact .social-link::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.social-link--facebook i {
  color: #1877f2;
}

.social-link--discord i {
  color: #5865f2;
}

/* Footer: icon only, 44px tap targets side by side. Positioned so the tall
   ascenders of the legal line below can't take the bottom edge of the target. */
.social-icons {
  display: inline-flex;
  flex-shrink: 0;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  font-size: 1.2em;
}

/* 44px tap target: 32px line + the 6px+6px padding of .hamburger-menu-section a */
.hamburger-menu-section a.social-menu-link {
  line-height: 32px;
}
