.tf-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 40;
}

.tf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border, #e2ddd8);
  background: var(--card, #fff);
  color: var(--ink, #0a1628);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06);
  cursor: pointer;
  font: 850 12px/1 "Inter", system-ui, sans-serif;
  padding: 9px 12px;
  white-space: nowrap;
}

.tf-share-btn:hover,
.tf-share.open .tf-share-btn {
  border-color: var(--gold, #d4920a);
  color: var(--gold, #d4920a);
}

.tf-share-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: min(360px, 82vw);
  padding: 9px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2ddd8);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(10, 22, 40, 0.18);
  z-index: 160;
}

.tf-share.open .tf-share-popover {
  display: flex;
}

.tf-share-link {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--bg2, #f0ede8);
  color: var(--ink, #0a1628);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: 900 12px/1 "Inter", system-ui, sans-serif;
  padding: 0 8px;
  text-decoration: none;
}

.tf-share-link:hover,
.tf-share-link:focus {
  background: var(--ink, #0a1628);
  color: #fff;
  outline: none;
}

.tf-share-link.linkedin { color: #0a66c2; }
.tf-share-link.x { color: #111; }
.tf-share-link.facebook { color: #1877f2; }
.tf-share-link.reddit { color: #ff4500; }
.tf-share-link.whatsapp { color: #128c7e; }
.tf-share-link.telegram { color: #229ed9; }
.tf-share-link.email { color: #5a4630; }
.tf-share-link.sms { color: #1a7a4a; }
.tf-share-link.copy.copied { background: #e8f5ed; color: #1a7a4a; }

@media (max-width: 620px) {
  .tf-share-popover {
    left: 0;
    right: auto;
  }
}
