/* Bella Runs: share buttons, the "Link copied" toast and the card a share link points at (share.js). */
.share-btn .share-ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.share-btn { gap: 8px; }
.rec-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.rec .rec-acts .btn { margin-top: 0; }
.card-h .share-btn { margin-left: auto; }
.sect-h .share-btn { grid-column: -2; justify-self: end; align-self: start; margin-top: 4px; }
@media (max-width: 900px) { .sect-h .share-btn { grid-column: 1; justify-self: start; } }
.cal-detail .share-btn { margin-left: 8px; vertical-align: middle; min-height: 32px; padding: 4px 12px; font-size: var(--fs-sm); }

.share-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden; pointer-events: none;
  max-width: min(92vw, 520px); overflow-wrap: anywhere; text-align: center;
  font-family: var(--ff-body); font-size: var(--fs-md); font-weight: 600; color: var(--bg); background: var(--ink);
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-lg, var(--shadow));
  transition: opacity .2s, transform .3s var(--spring, ease), visibility 0s linear .2s; }
.share-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .3s var(--spring, ease), visibility 0s; }

.share-target { animation: share-glow 2.4s ease-out; }
@keyframes share-glow {
  0%, 30% { box-shadow: 0 0 0 3px var(--copper-2), var(--shadow); }
  100% { box-shadow: 0 0 0 3px transparent, var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  .share-toast, .share-toast.show { transition: none; }
  .share-target { animation: none; outline: 3px solid var(--copper-2); outline-offset: 2px; }
}
/* share links always show the main wheel, so another wheel's page (?wheel=) has no Share buttons */
body.other-wheel .share-btn { display: none; }
