/**
 * SHARE TO STORY (story.php + story-share.js).
 *
 * The button is an outline pill like RALLY — a 1.5px gradient ring, never a
 * second filled CTA competing with VOTE / Share your pick — carrying the
 * Story ring mark, so it reads as "this goes to my Story" before the words do.
 * #tie-wrapper / #the-post: article link rules outrank a bare class here.
 */

.sa-story,
#tie-wrapper a.sa-story {
	display: inline-flex;
	align-items: center;
	justify-content: center; /* stretched to a full row in the receipt */
	gap: .5rem;
	padding: .62rem 1.15rem .62rem .9rem;
	border-radius: var(--sa-radius-pill, 999px);
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	color: var(--sa-on-accent, #fff);
	border: 1.5px solid transparent;
	background: linear-gradient(var(--sa-surface, #1a1220), var(--sa-surface, #1a1220)) padding-box,
		var(--sa-gradient) border-box;
	transition: transform .16s ease, filter .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.sa-story[hidden] { display: none !important; }
.sa-story__ico { width: 18px; height: 18px; flex: none; color: var(--sa-on-accent, #fff); }
#the-post .entry-content a.sa-story,
#the-post .entry-content a.sa-story:hover,
#the-post .entry-content a.sa-story:focus,
#the-post .entry-content a.sa-story span,
#tie-wrapper a.sa-story:hover span,
#content a.sa-story:hover { text-decoration: none; }
@media (hover: hover) {
	.sa-story:hover,
	#tie-wrapper a.sa-story:hover { transform: translateY(-1px); filter: brightness(1.12); color: var(--sa-on-accent, #fff); }
}
.sa-story:active { transform: scale(.97); }
.sa-story:focus-visible { outline: 2px solid var(--sa-vote-2, #22D3EE); outline-offset: 3px; }

/* The rally page: its own row under the VOTE button, a touch larger. */
.sa-rally__story { margin-top: 1rem; }
.sa-rally__story .sa-story,
#tie-wrapper .sa-rally__story a.sa-story { padding: .8rem 1.4rem .8rem 1.1rem; font-size: .84rem; }

/* The Winner card: beside its share pill. */
.sa-win__story { display: inline-flex; }

/* ── the note ─────────────────────────────────────────────────────────── */
.sa-story-toast {
	position: fixed;
	left: 50%;
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 100000;
	max-width: min(92vw, 420px);
	padding: .8rem 1.1rem;
	border-radius: 14px;
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	color: var(--sa-text, #F4EEFF);
	background: var(--sa-surface-2, #221830);
	border: 1px solid color-mix(in srgb, var(--sa-up, #2EE59D) 45%, transparent);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}
.sa-story-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	.sa-story,
	#tie-wrapper a.sa-story,
	.sa-story-toast { transition: none; }
}
