/* Only exact-label scheduling links receive this attribute from the script.
   The scoped !important wins over the earlier transform locks and legacy
   inline mousemove transforms; remove the old magnetic handlers on integration. */
a[href][data-conversation-magnetic] {
  transform: none !important;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.22, .61, .36, 1), background-color 250ms, color 250ms, border-color 250ms, box-shadow 250ms, gap 250ms;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a[href][data-conversation-magnetic] {
    transform: translate3d(var(--conversation-x, 0px), var(--conversation-y, 0px), 0) scale(1) !important;
  }

  a[href][data-conversation-magnetic][data-magnetic-active] {
    transform: translate3d(var(--conversation-x, 0px), var(--conversation-y, 0px), 0) scale(1.04) !important;
  }
}

/* A two-color ring stays distinct on white, gold, and navy button contexts. */
a[href][data-conversation-magnetic]:focus-visible {
  outline: 2px solid var(--navy, #0f2e4d);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white, #fff);
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  a[href][data-conversation-magnetic],
  a[href][data-conversation-magnetic]::after {
    transform: none !important;
    transition: none !important;
  }

  a.close-btn[data-conversation-magnetic]:hover { gap: 14px; }
}

@media (forced-colors: active) {
  a[href][data-conversation-magnetic]:focus-visible {
    outline-color: CanvasText;
    box-shadow: none;
  }
}
