/* AffixIO floating social follow rail */
.affix-social-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.affix-social-rail__panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem 0.75rem;
  background: #1d2128;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 8px 28px rgba(16, 19, 23, 0.28);
}

.affix-social-rail__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfc5cd;
  margin-bottom: 0.25rem;
  user-select: none;
}

.affix-social-rail__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.affix-social-rail__link:hover,
.affix-social-rail__link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(-2px);
  outline: none;
}

.affix-social-rail__link:focus-visible {
  box-shadow: 0 0 0 2px #295f4e;
}

.affix-social-rail__link svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.affix-social-rail__link--x svg {
  color: #f5f2ea;
}

.affix-social-rail__link--linkedin svg {
  color: #0a66c2;
}

@media (max-width: 640px) {
  .affix-social-rail {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .affix-social-rail__panel {
    flex-direction: row;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .affix-social-rail__label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
    margin-right: 0.15rem;
  }
}

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