/* Shared copy-to-clipboard feedback for every public email link. */
a[data-copy-email] {
  position: relative;
}

a[data-copy-email]::after {
  content: attr(data-copy-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 100;
  width: max-content;
  max-width: min(220px, calc(100vw - 24px));
  padding: 6px 9px;
  border: 1px solid rgba(0, 54, 96, 0.16);
  border-radius: 2px;
  background: rgba(241, 238, 234, 0.97);
  color: #003660;
  box-shadow: 0 7px 24px rgba(0, 54, 96, 0.12);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

a[data-copy-email]:hover::after,
a[data-copy-email]:focus-visible::after,
a[data-copy-email].is-copy-feedback::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

:root[data-theme="dark"] a[data-copy-email]::after {
  border-color: rgba(241, 238, 234, 0.16);
  background: rgba(4, 21, 36, 0.97);
  color: #f1eeea;
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.28);
}

.email-copy-status {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  a[data-copy-email]::after {
    transition: none;
  }
}
