/* Shared by the React pages and static blog. Keep the number copyable on desktop. */
a.ws-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0.45em;
  width: fit-content;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
}

.ws-phone-link__label { display: none; }

a.ws-phone-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  a.ws-phone-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* A full button gives small screens and touch pointers a comfortable target. */
@media (max-width: 767px), (pointer: coarse) {
  a.ws-phone-link {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
  }

  .ws-phone-link__label { display: inline; }
  a.ws-phone-link:active { opacity: 0.7; }
}

/* The header keeps the full number in its accessible name at narrow widths. */
@media (max-width: 600px) {
  .ws-phone-link--compact .ws-phone-link__number { display: none; }
}
