/**
 * Vote Page frame — nominee renderer (Task 3).
 *
 * Styles `shining_render_nominees()` output (`.sa-nom`), which frames the
 * TotalPoll widget with a premium, poll-sourced nominee list. Three visual
 * layouts share the same markup/classes and are switched purely with a
 * modifier class: `.sa-nom--grid` (face grid, default), `.sa-nom--roster`
 * (two-column info cards), `.sa-nom--chips` (flowing compact chips).
 *
 * Ported + rescoped from the approved mockup (grid-a/g-item/g-name/g-grp,
 * grid-b/r-card/r-rank/r-name/r-grp/r-link, grid-c/chip/c-name/c-grp) into
 * `.sa-nom__*` BEM-ish parts, and re-pointed from literal hex to the theme's
 * `--sa-*` tokens (`tokens.css`) so it tracks the active palette.
 *
 * Never touches the TotalPoll plugin — this only styles our own frame markup.
 *
 * @package Shining
 */

/* Lazy-frame placeholder: a heavy poll's frame is fetched by vote-frame.js and
   swapped in for these. Empty until then — collapse it so it never adds a gap
   (and defeat any .entry-content div spacing it would otherwise inherit). */
.sa-vf-lazy { margin: 0 !important; padding: 0; min-height: 0; }
.sa-vf-lazy:empty { display: none; }

/* Voting-page article title — the <h1> at the top of a vote post — is rendered
   in UPPERCASE. Two guards, both body classes: `shining-vote-post` (added only
   on singular posts that host a poll, so ordinary articles / news / K-Pop /
   K-Drama posts are never touched) and `sa-vote-uc` (the "Force UPPERCASE
   titles" switch in the Vote Page studio, on by default — remove it to opt out
   site-wide). Both are set on <body>, so they combine without a descendant.

   Two selectors on purpose: the Typography studio pins the single title's
   casing at `html .single .entry-header h1.post-title.entry-title
   {text-transform:none}` (0,4,2) — pure/typography.php — which outranks the
   plain guard (0,3,1). The first selector (0,5,3) exists solely to beat that
   on the standard layout; the plain one still covers post layouts whose title
   sits outside `.entry-header` (e.g. the fullwidth featured-area header),
   where the typography rule never matches. */
html body.sa-vote-uc.shining-vote-post .entry-header h1.post-title.entry-title,
body.sa-vote-uc.shining-vote-post .entry-title {
	text-transform: uppercase;
}

.sa-nom {
	max-width: 1080px;
	margin: 34px auto;
	padding: 0 16px;
}

/* Nominee section header: uppercase, wide-tracked and gradient-filled, with a
   hairline-and-heart rule beneath it. Uppercase because this is a section
   LABEL, not a sentence — at display weight the extra tracking is what stops
   it reading as shouting. The rule does the separating so the heading itself
   needs no box or underline. */
.sa-nom__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 30px;   /* the breathing room between label and avatars */
}
.sa-nom__heading {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(19px, 2.9vw, 27px);
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: .14em;
	/* Tracking adds space AFTER the final letter too, which visually pushes a
	   centred line left. Pulling that back re-centres it optically. */
	text-indent: .14em;
	text-align: center;
	text-wrap: balance;
	margin: 0;
}

/* Hairline that fades out from a centre heart — the same rose motif the rest
   of the theme uses, at section scale. */
.sa-nom__rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: min(260px, 62%);
	color: var(--sa-heart);
}
.sa-nom__rule::before,
.sa-nom__rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sa-border-strong));
}
.sa-nom__rule::after { background: linear-gradient(90deg, var(--sa-border-strong), transparent); }
.sa-nom__heart { width: 11px; height: 11px; flex: none; }

@media (max-width: 480px) {
	.sa-nom__head { gap: 10px; margin-bottom: 22px; }
	.sa-nom__heading { letter-spacing: .1em; text-indent: .1em; }
}

/* Shared avatar shell — reused by all three nominee layouts AND the standings
   strip; sizes are set per-layout below. `shining_nominee_avatar()` always includes this base class, whether
   it renders an initials span or a `--photo` span wrapping an <img>. */
.sa-nom__av,
.sa-stand__av,
.sa-pulse__av {
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sa-gradient);
	color: var(--sa-on-accent);
	font-family: var(--sa-font-display);
	font-weight: 800;
	flex: none;
}

/* Real nominee photo — reproduce the hero's own focal crop so the FACE fills
   the circle (no "frame-in-frame"): the image is blown up past the visible
   frame and offset by the per-nominee focal point (--np-fx/--np-fy/--np-zoom).
   Verbatim from home.php's `.sa-hero__av--photo` rules, renamed only. */
.sa-nom__av--photo,
.sa-stand__av--photo,
.sa-pulse__av--photo{position:relative;background:var(--sa-surface-2);}
.sa-nom__av--photo img,
.sa-stand__av--photo img,
.sa-pulse__av--photo img{position:absolute;width:calc(var(--sa-focal-scale, 308%) * var(--np-zoom,1));height:calc(var(--sa-focal-scale, 308%) * var(--np-zoom,1));max-width:none;max-height:none;left:calc(var(--np-fx,.5) * (1 - 3.08 * var(--np-zoom,1)) * 100%);top:calc(var(--np-fy,.4) * (1 - 3.08 * var(--np-zoom,1)) * 100%);object-fit:cover;object-position:center 40%;}

.sa-nom__name {
	font-weight: 600;
	color: var(--sa-text);
}

.sa-nom__grp {
	color: var(--sa-violet-light);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Leak defense: each nominee is a full-width <a>, and when the frame renders
   inside `.entry-content` it inherits Jannah's gradient-underline for links
   (`background-image: linear-gradient(...)`), which stretches into a stray
   horizontal line across the whole grid row. Kill the inherited underline on
   every nominee link; the roster/chips layouts set their own background-COLOR
   separately, so only the leaked image is removed. `!important` because the
   base `.entry-content a` rule outranks our layout selectors and LiteSpeed
   combines CSS so source order can't be relied on. */
.sa-nom__item {
	background-image: none !important;
	text-decoration: none !important;
	box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Semantic list resets                                               */
/* ------------------------------------------------------------------ */
/* Both rosters are real <ul>/<ol> now. Inside .entry-content that means
   inheriting Jannah's prose list styling — bullets/numbers, a left indent, and
   a per-item font-size — none of which belong on a layout grid. Reset at the
   source and keep the layout rules untouched. !important because the prose
   rules are element-based inside a class-scoped ancestor and LiteSpeed combines
   CSS, so source order cannot settle it. See the note on .sa-nom__item. */
.sa-nom__list,
.sa-stand__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.sa-nom__cell,
.sa-stand__item {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit;
	line-height: inherit;
	min-width: 0;   /* let grid/flex children actually shrink */
}
.sa-nom__cell::marker,
.sa-stand__item::marker { content: ""; }
.sa-nom__cell::before,
.sa-stand__item::before { content: none !important; }

/* ------------------------------------------------------------------ */
/* Layout: grid — face gallery (default)                              */
/* ------------------------------------------------------------------ */
.sa-nom--grid .sa-nom__list {
	display: grid;
	grid-template-columns: repeat(var(--sa-nom-cols, 5), minmax(0, 1fr));
	gap: 18px 12px;
}
.sa-nom--grid .sa-nom__item {
	display: block;
	height: 100%;
	text-align: center;
	text-decoration: none;
	color: inherit;
	display: block;
}
/* ~28% smaller than the old 80px shell — tighter on desktop without going tiny;
   mobile shrinks further (and gains a column) in the responsive block below. */
.sa-nom--grid .sa-nom__av {
	width: 58px;
	height: 58px;
	margin: 0 auto 8px;
	font-size: 19px;
	transition: transform .2s ease;
}
.sa-nom--grid .sa-nom__name {
	display: block;
	font-size: 13px;
}
.sa-nom--grid .sa-nom__grp {
	display: block;
	font-size: 10.5px;
	margin-top: 2px;
}
.sa-nom--grid .sa-nom__item:hover .sa-nom__av {
	transform: translateY(-3px);
}

/* ------------------------------------------------------------------ */
/* Layout: roster — two-column info cards                             */
/* ------------------------------------------------------------------ */
.sa-nom--roster .sa-nom__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
}
.sa-nom--roster .sa-nom__item {
	height: 100%;   /* cards in a row match, whatever the name length */
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-border);
	border-radius: 14px;
	padding: 12px 14px;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.sa-nom--roster .sa-nom__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--sa-gradient);
}
.sa-nom--roster .sa-nom__item:hover {
	border-color: var(--sa-border-strong);
}
.sa-nom--roster .sa-nom__av {
	width: 54px;
	height: 54px;
	font-size: 19px;
}
.sa-nom--roster .sa-nom__rank {
	position: absolute;
	top: 10px;
	right: 12px;
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: 12px;
	color: var(--sa-text-dim);
}
.sa-nom--roster .sa-nom__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.sa-nom--roster .sa-nom__name {
	font-size: 15px;
}
.sa-nom--roster .sa-nom__grp {
	font-size: 12px;
}
.sa-nom--roster .sa-nom__link {
	color: var(--sa-text-dim);
	font-size: 11.5px;
	margin-top: 3px;
}

/* ------------------------------------------------------------------ */
/* Layout: chips — compact, flowing                                   */
/* ------------------------------------------------------------------ */
.sa-nom--chips .sa-nom__list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: center;
}
.sa-nom--chips .sa-nom__item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 6px 14px 6px 6px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.sa-nom--chips .sa-nom__item:hover {
	border-color: var(--sa-border-strong);
}
.sa-nom--chips .sa-nom__av {
	width: 34px;
	height: 34px;
	font-size: 13px;
}
.sa-nom--chips .sa-nom__name {
	font-size: 13.5px;
}
.sa-nom--chips .sa-nom__grp {
	margin-left: 2px;
	font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 720px) {
	.sa-nom--grid .sa-nom__list {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 14px 8px;
	}
	.sa-nom--grid .sa-nom__av { width: 60px; height: 60px; margin-bottom: 6px; font-size: 18px; }
	.sa-nom--grid .sa-nom__name { font-size: 12.5px; }
	.sa-nom--grid .sa-nom__grp { font-size: 10px; }
	.sa-nom--roster .sa-nom__list { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: 3 across (was 2), with much shorter row rhythm so the whole roster
   fits in far less vertical space — no more tall scrolling. Avatar + gaps
   tightened to fit a ~360px viewport while the face + name stay readable. */
@media (max-width: 460px) {
	.sa-nom--grid .sa-nom__list {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 14px 6px;
	}
	.sa-nom--grid .sa-nom__av { width: 58px; height: 58px; margin-bottom: 5px; font-size: 17px; }
	.sa-nom--grid .sa-nom__name { font-size: 11.5px; line-height: 1.2; }
	.sa-nom--grid .sa-nom__grp { font-size: 9px; margin-top: 1px; }
	.sa-nom__heading { margin-bottom: 12px; }
	.sa-nom { margin: 22px auto; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-nom--grid .sa-nom__av,
	.sa-nom--roster .sa-nom__item,
	.sa-nom--chips .sa-nom__item {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* "About this poll" info panel v2 — four styles rendered by            */
/* `shining_render_poll_info()`: Holo Pass (default), Countdown         */
/* Marquee, Live Board and Aurora Strip. All share `.sa-pinfo__card`:   */
/* a 1px gradient hairline (double-background trick, no extra element)  */
/* plus a specular shine sweep — a transform-only overlay that runs     */
/* FIVE times with a ~2s rest between passes, then stops for good. The  */
/* sweep only starts when the card scrolls into view (`.is-lit`, set    */
/* by vote-frame.js) so nothing animates unseen below the fold.         */
/* The "time left" chip + window meter are hydrated client-side.        */
/* ------------------------------------------------------------------ */
.sa-pinfo {
	max-width: 1080px;
	margin: 26px auto;
	padding: 0 16px;
}
/* While a poll is open the panel ships its closed twin next to it, hidden, so
   a cached page can flip framing without a request (vote-frame.js). Stated
   explicitly because `[hidden]` is only a UA `display: none` and the panel
   lives inside .entry-content, where a prose rule setting `display` on a
   section would silently out-rank it and render BOTH copies. */
.sa-pinfo[hidden] { display: none !important; }
/* Shared gradient-text helper (nominee heading + every panel style). */
.sa-nom__heading.sa-grad,
.sa-pinfo .sa-grad {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
/* Tutorial link (board + strip; holo/marquee restyle it). */
.sa-pinfo__tut {
	display: inline-block;
	color: var(--sa-violet-light);
	font-weight: 600;
	font-size: 12.5px;
	text-decoration: none;
}
.sa-pinfo__tut:hover { text-decoration: underline; }

/* -- The shared premium frame ----------------------------------------- */
.sa-pinfo__card {
	position: relative;
	border: 1px solid transparent;
	border-radius: 18px;
	overflow: hidden;
	background:
		linear-gradient(180deg, var(--sa-surface-1), var(--sa-bg-2)) padding-box,
		linear-gradient(130deg, var(--sa-border-strong), var(--sa-border) 30%, var(--sa-border) 62%, var(--sa-border-strong)) border-box;
}
/* The shine sweep. Finite by design: 5 passes, each cycle = ~1.3s of
   sweep + ~2.1s of rest, then the animation ends and the overlay parks
   off-canvas. transform-only = GPU-composited, no layout/paint work. */
.sa-pinfo__card::before {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .12) 50%, transparent 58%);
	transform: translateX(-101%);
}
.sa-pinfo.is-lit .sa-pinfo__card::before {
	animation: sa-pinfo-sweep 3.4s ease-in-out .4s 5;
}
@keyframes sa-pinfo-sweep {
	0% { transform: translateX(-101%); }
	38% { transform: translateX(101%); }
	100% { transform: translateX(101%); }
}

/* Pulsing "live" dot. The ring colour follows the active palette. */
.sa-pinfo__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sa-violet);
	flex: none;
	animation: sa-pinfo-p 1.9s infinite;
}
@keyframes sa-pinfo-p {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sa-violet) 50%, transparent); }
	70% { box-shadow: 0 0 0 8px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
.sa-pinfo__heart {
	width: 13px;
	height: 13px;
	color: var(--sa-heart);
	flex: none;
}

/* "9 days left" chip — hydrated by vote-frame.js from data-sa-timeleft. */
.sa-pinfo__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--sa-violet-light);
	border: 1px solid var(--sa-border-strong);
	border-radius: 999px;
	padding: 5px 11px;
	letter-spacing: .04em;
	white-space: nowrap;
	background: rgba(255, 255, 255, .04);
	background: color-mix(in srgb, var(--sa-violet) 8%, transparent);
}
.sa-pinfo__chip-ic { width: 12px; height: 12px; flex: none; }

/* Voting-window meter (holo + marquee). Bar width hydrated client-side. */
.sa-pinfo__meterwrap { margin-top: 18px; max-width: 430px; }
.sa-pinfo__meter {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .09);
	background: color-mix(in srgb, var(--sa-text) 10%, transparent);
	overflow: hidden;
}
.sa-pinfo__meter i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--sa-gradient);
}
.sa-pinfo__meterfoot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 600;
	margin-top: 7px;
}

@media (prefers-reduced-motion: reduce) {
	.sa-pinfo.is-lit .sa-pinfo__card::before { animation: none; }
	.sa-pinfo__dot { animation: none; }
}

/* -- A · Holo Pass (default) ------------------------------------------ */
.sa-holo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.sa-pinfo--holo.is-nostub .sa-holo { grid-template-columns: minmax(0, 1fr); }
.sa-holo__main {
	padding: clamp(20px, 4.5vw, 30px);
	min-width: 0;
	/* The stub's rows set the card's height, and the closed state has less to
	   say on this side than the open one (no eyebrow, no countdown, no meter) —
	   so its content is centred against the stub rather than stranded at the
	   top of a half-empty column. Horizontal alignment stays LEFT in every
	   state: this is a ticket, and centring one state would read as a different
	   component rather than the same card later on. */
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(115deg, rgba(255, 255, 255, .04), transparent 55%);
	background: linear-gradient(115deg, color-mix(in srgb, var(--sa-violet) 8%, transparent), transparent 55%);
}
.sa-holo__eyerow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.sa-holo__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sa-violet);
	font-weight: 700;
}
.sa-holo__eyebrow.is-closed { color: var(--sa-text-dim); }
.sa-holo__date { line-height: .92; }
.sa-holo__d1 {
	display: block;
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(44px, 9vw, 60px);
	letter-spacing: -.02em;
}
.sa-holo__d2 {
	display: block;
	font-family: var(--sa-font-display);
	font-weight: 600;
	font-size: clamp(14px, 3vw, 16.5px);
	color: var(--sa-text);
	letter-spacing: .02em;
	margin-top: 9px;
}
.sa-holo__headline {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(26px, 5vw, 38px);
	letter-spacing: -.02em;
	line-height: 1;
}
/* The closed announcement, CENTRED. It carries the whole message on its own now
   that the duplicate eyebrow above it is gone, so the lock, the headline and the
   thank-you line are centred together as one block — a half-centred block reads
   as a mistake, not a choice. */
.sa-pinfo--holo.is-ended .sa-holo__main { align-items: center; text-align: center; }

/* The ended red. A stop signal, deliberately not the palette accent and not the
   heart: it has to mean the same thing in every palette, and the heart already
   means "vote = love". */
.sa-holo__headline--closed {
	/* NOT a flex row. As a flex sibling the lock sat at the left edge of the
	   centred group, and once the headline wrapped to two lines it drifted a
	   long way from the words it belongs to. Inline keeps it glued to the first
	   word and centred with the text, however the line breaks. */
	display: block;
	text-wrap: balance;
	background: var(--sa-closed-grad, linear-gradient(120deg, #FF7A6B 0%, #FF3D5A 48%, #C2185B 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* A soft bloom under the type so the red carries on the dark surface without
	   having to shout at full saturation. */
	filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--sa-closed, #FF3D5A) 35%, transparent));
}
.sa-holo__lock {
	display: inline-block;
	width: .62em;
	height: .62em;
	margin-right: .3em;
	vertical-align: -.02em;
	/* The mark keeps a SOLID colour: `background-clip: text` clips to glyphs, so
	   an icon inside the gradient headline would be clipped to nothing and
	   disappear. It takes the gradient's midpoint instead. */
	color: var(--sa-closed, #FF3D5A);
}
/* The eyerow is empty in the closed state (no eyebrow, and the chip only ever
   renders while a poll is running), so it must not leave a 16px gap behind. */
.sa-holo__eyerow:empty { display: none; }

.sa-holo__closes {
	color: var(--sa-text-muted);
	font-size: 13px;
	margin-top: 13px;
	display: flex;
	align-items: center;
	gap: 7px;
}
.sa-holo__tut {
	display: inline-block;
	margin-top: 16px;
	background: var(--sa-gradient);
	color: var(--sa-on-accent);
	font-weight: 700;
	font-size: 13px;
	border-radius: 999px;
	padding: 9px 18px;
	text-decoration: none;
}

/* Stub: the perforated fact column. */
.sa-holo__stub {
	position: relative;
	padding: clamp(18px, 4vw, 22px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	border-left: 2px dashed var(--sa-border-strong);
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
		var(--sa-surface-2);
}
/* Perforation notches, anchored to the STUB so they follow the tear line in
   both orientations (left edge on desktop, top edge on mobile). */
.sa-holo__notch {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sa-bg);
	border: 1px solid var(--sa-border);
	transform: translate(-50%, -50%);
	z-index: 2;
}
.sa-holo__notch--t { left: 0; top: 0; }
.sa-holo__notch--b { left: 0; top: 100%; }
/* label on top, big value left, context right — all on one baseline grid */
.sa-holo__si {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	column-gap: 10px;
}
.sa-holo__lab {
	grid-column: 1 / -1;
	font-size: 11.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
	margin-bottom: 2px;
}
.sa-holo__v {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(24px, 6vw, 27px);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text);
}
.sa-holo__v--sm { font-size: clamp(16px, 4.4vw, 18px); }
.sa-holo__sub {
	font-size: 11.5px;
	color: var(--sa-text-muted);
	font-weight: 600;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
/* Serial + CSS barcode — fan-pass flavour, zero image bytes. */
.sa-holo__serial {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 4px;
	padding-top: 13px;
	border-top: 1px solid var(--sa-border);
}
.sa-holo__serial span:first-child {
	font-size: 10px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
}
.sa-holo__bars {
	flex: 1;
	max-width: 96px;
	height: 16px;
	opacity: .5;
	background: repeating-linear-gradient(90deg, var(--sa-text-dim) 0 1px, transparent 1px 3px, var(--sa-text-dim) 3px 5px, transparent 5px 6px);
}

@media (max-width: 640px) {
	/* The perforation ROTATES instead of disappearing: the tear goes
	   horizontal and the notches move to its ends, so the card still
	   reads as a ticket on a phone. */
	.sa-holo { grid-template-columns: minmax(0, 1fr); }
	.sa-holo__stub {
		border-left: none;
		border-top: 2px dashed var(--sa-border-strong);
	}
	.sa-holo__notch--t { left: 0; top: 0; }
	.sa-holo__notch--b { left: 100%; top: 0; }
}

/* -- B · Countdown Marquee -------------------------------------------- */
.sa-mq__body { padding: clamp(20px, 4.5vw, 30px); }
.sa-mq__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.sa-mq__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sa-violet);
	font-weight: 700;
}
.sa-mq__eyebrow.is-closed { color: var(--sa-text-dim); }
.sa-mq__hero {
	display: flex;
	align-items: center;
	gap: clamp(16px, 4vw, 28px);
	flex-wrap: wrap;
}
.sa-mq__num {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(64px, 14vw, 96px);
	line-height: .85;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}
.sa-mq__side { min-width: 0; flex: 1; }
.sa-mq__side b {
	display: block;
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(20px, 5vw, 26px);
	letter-spacing: -.01em;
	line-height: 1.1;
	color: var(--sa-text);
}
.sa-mq__side span {
	display: block;
	color: var(--sa-text-muted);
	font-size: 13.5px;
	margin-top: 6px;
}
.sa-mq__side .sa-pinfo__tut { margin-top: 10px; }
.sa-mq__body .sa-pinfo__meterwrap { max-width: none; margin-top: 20px; }
.sa-mq__stats {
	display: grid;
	grid-template-columns: repeat(var(--sa-mq-cols, 3), minmax(0, 1fr));
	gap: 1px;
	background: var(--sa-border);
	border-top: 1px solid var(--sa-border);
}
.sa-mq__cell {
	background: var(--sa-surface-2);
	background: color-mix(in srgb, var(--sa-surface-2) 72%, transparent);
	padding: 15px 12px 16px;
	text-align: center;
}
.sa-mq__cv {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(22px, 6vw, 26px);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text);
}
.sa-mq__cv--sm { font-size: clamp(15px, 4.2vw, 18px); }
.sa-mq__cl {
	font-size: 11px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
	margin-top: 4px;
}

/* -- C · Live Board ---------------------------------------------------- */
.sa-lbd { padding: clamp(20px, 4.5vw, 30px); }
.sa-lbd__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.sa-lbd__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sa-violet);
	font-weight: 700;
}
.sa-lbd__eyebrow.is-closed { color: var(--sa-text-dim); }
.sa-lbd__hero { margin-top: 16px; }
.sa-lbd__lab {
	font-size: 11.5px;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
}
.sa-lbd__num {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(48px, 12vw, 84px);
	line-height: .95;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.sa-lbd__climb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sa-text-muted);
	font-size: 13px;
	font-weight: 600;
	margin-top: 8px;
}
.sa-lbd__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 22px;
}
.sa-lbd__tile {
	border: 1px solid var(--sa-border);
	border-radius: 13px;
	padding: 13px 14px;
	background: var(--sa-surface-2);
	background: color-mix(in srgb, var(--sa-surface-2) 62%, transparent);
}
.sa-lbd__tv {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(19px, 5vw, 24px);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text);
}
.sa-lbd__tv small {
	font-size: 12px;
	font-weight: 600;
	color: var(--sa-text-muted);
	letter-spacing: 0;
}
.sa-lbd__tl {
	font-size: 10.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
	margin-top: 3px;
}
.sa-lbd__tut { margin-top: 14px; }
@media (max-width: 430px) {
	.sa-lbd__tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sa-lbd__tile--wide { grid-column: 1 / -1; }
}

/* -- D · Aurora Strip --------------------------------------------------- */
.sa-strip__rail {
	height: 3px;
	background: var(--sa-gradient);
	border-radius: 18px 18px 0 0;
}
.sa-strip__in {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.sa-strip__cell {
	padding: clamp(18px, 4vw, 26px) clamp(16px, 3.4vw, 24px);
	border-right: 1px solid var(--sa-border);
	min-width: 0;
}
.sa-strip__cell:last-child { border-right: none; }
.sa-strip__cell--lead {
	background: radial-gradient(130% 100% at 0 0, rgba(255, 255, 255, .04), transparent 60%);
	background: radial-gradient(130% 100% at 0 0, color-mix(in srgb, var(--sa-violet) 7%, transparent), transparent 60%);
}
.sa-strip__lab {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-weight: 700;
	display: block;
	margin-bottom: 8px;
}
.sa-strip__v {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(21px, 6vw, 26px);
	letter-spacing: -.01em;
	line-height: 1.08;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text);
}
.sa-strip__v--sm { font-size: clamp(16px, 4.4vw, 19px); }
.sa-strip__v small {
	display: block;
	font-family: var(--sa-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--sa-text-muted);
	margin-top: 5px;
	letter-spacing: 0;
}
.sa-strip__foot {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--sa-text-muted);
	font-size: 12px;
	font-weight: 600;
	margin-top: 6px;
}
.sa-strip__tut { margin-top: 10px; }
@media (max-width: 640px) {
	.sa-strip__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sa-strip__cell { border-bottom: 1px solid var(--sa-border); }
	.sa-strip__cell:nth-child(2n) { border-right: none; }
	.sa-strip__cell--lead {
		grid-column: 1 / -1;
		border-right: none;
	}
	.sa-strip__cell:last-child,
	.sa-strip__cell:nth-last-child(2):not(.sa-strip__cell--lead) { border-bottom: none; }
}

/* ------------------------------------------------------------------ */
/* Feature banner (Task 5) — `[shining_banner]`. Two interchangeable    */
/* styles: `.sa-banner--banner` (cinematic wide image, uncropped via a  */
/* blurred cover-fill layer behind a sharp object-fit:contain image,    */
/* caption overlay with expand/collapse) and `.sa-banner--duo` (two     */
/* framed image cards). Caption clamp/expand hooks into the EXISTING    */
/* `[data-sa-caption-toggle]` handler in vote-frame.js (Task 4) which    */
/* toggles `.sa-banner.is-open`. Ported + rescoped from the mockup's     */
/* `.fi-a*` (-> banner) / `.fi-b*` (-> duo) blocks into `.sa-banner__*`  */
/* BEM-ish parts, re-pointed from literal hex to the theme's `--sa-*`   */
/* tokens so it tracks the active palette.                              */
/* ------------------------------------------------------------------ */
.sa-banner {
	max-width: 1080px;
	margin: 26px auto;
	padding: 0 16px;
}

/* -- banner (default): one cinematic wide image ----------------------- */
.sa-banner--banner {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--sa-border);
	min-height: 240px;
	display: flex;
	align-items: flex-end;
}
.sa-banner__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(26px) saturate(1.2);
	transform: scale(1.1);
}
.sa-banner__img {
	position: relative;
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	display: block;
}
.sa-banner__cap-wrap {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 18px;
	z-index: 2;
}
.sa-banner__cap-wrap::before {
	content: "";
	position: absolute;
	inset: -40px -22px -18px;
	background: linear-gradient(180deg, transparent, rgba(6, 15, 12, .85));
	z-index: -1;
}
.sa-banner__ec {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sa-violet);
	font-weight: 600;
}
.sa-banner__title {
	font-weight: 800;
	font-size: 22px;
	margin: 3px 0;
}
.sa-banner__cap {
	color: var(--sa-text);
	opacity: .9;
	font-size: 13.5px;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--sa-cap-lines, 2);
	overflow: hidden;
}
.sa-banner.is-open .sa-banner__cap {
	-webkit-line-clamp: unset;
}
.sa-banner__more {
	margin-top: 6px;
	background: none;
	border: none;
	color: var(--sa-violet-light);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	font-size: 12.5px;
}

/* -- duo: two framed image cards --------------------------------------- */
.sa-banner--duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
}
.sa-banner__card {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--sa-border);
	background: var(--sa-surface-2);
}
.sa-banner__im {
	height: 170px;
	background-size: cover;
	background-position: center;
}
.sa-banner__cc {
	padding: 13px 16px;
}

@media (max-width: 600px) {
	.sa-banner--duo {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -- slideshow: JS carousel, degrades to first slide when JS is off ---- */
.sa-banner--slideshow { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--sa-border); background: var(--sa-surface-2); }
/* Two inherited-style leaks had to be closed here, both measured live:
     1. `.sa-banner` above sets `padding: 0 16px` for the cinematic caption. On
        the slideshow that shrank the slide 32px narrower than its own frame.
     2. `.single .entry-content figure { margin: 2rem 0 }` (0,3,1) outranks any
        plain `.sa-slides__slide` rule, so each slide was pushed 33px DOWN
        inside a fixed-height frame with overflow:hidden — which is what
        clipped the bottom of the artwork.
   !important because both live in .entry-content and LiteSpeed combines CSS,
   so source order cannot be relied on. Same pattern as `.sa-nom__item`. */
.sa-banner--slideshow { padding: 0 !important; }
.sa-banner--slideshow .sa-slides__slide { margin: 0 !important; padding: 0 !important; }
.sa-banner--slideshow .sa-slides__slide img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }

/* Blurred fill behind each slide. The poster is shown WHOLE (`contain`), and
   the leftover space is filled with an out-of-focus copy of the same image
   rather than a flat panel — so a 16:9 frame can hold artwork of any shape
   without ever cropping it, and without the dead letterbox bars that make a
   `contain` fit look broken. Costs no extra request: it is the same file the
   slide already loaded. */
.sa-slides__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--sa-slide-bg);
	background-size: cover;
	background-position: center;
	filter: blur(26px) saturate(1.25);
	transform: scale(1.18);
	opacity: .5;
	pointer-events: none;
}
.sa-banner--slideshow .sa-lbtrig,
.sa-banner--slideshow .sa-slides__slide img { position: relative; z-index: 1; }
/* With a ratio set (the default, 16/9) the frame is fixed and the artwork
   crops to fill it. That keeps a mixed-size set from resizing the banner as
   each slide fades in, and reserves the box before the image lands so there is
   no layout shift. The un-cropped original is one tap away in the lightbox, so
   nothing is actually lost by cropping here. `natural` opts back out. */
.sa-banner--slideshow.has-ratio { aspect-ratio: var(--sa-slide-ratio, 16 / 9); }
.sa-banner--slideshow.has-ratio .sa-slides__slide,
.sa-banner--slideshow.has-ratio .sa-lbtrig--fill { height: 100%; }
/* `contain`, not `cover`: the whole poster stays visible inside the fixed
   frame and the blurred backdrop above fills the rest. The frame still
   reserves its box before the image lands, so there is no layout shift. */
.sa-banner--slideshow.has-ratio .sa-slides__slide img { height: 100%; max-height: none; object-fit: contain; }
/* JS-off fallback: show only the first slide and hide the (inert) controls,
   so a JS-disabled visitor sees one clean image instead of a stacked list.
   Gated on the absence of `sa-js-slides` (added by the carousel JS) to avoid a
   specificity fight with the active-slide rules below. */
html:not(.sa-js-slides) .sa-banner--slideshow .sa-slides__slide:not(:first-child),
html:not(.sa-js-slides) .sa-banner--slideshow .sa-slides__dots,
html:not(.sa-js-slides) .sa-banner--slideshow .sa-slides__arrow { display: none; }
/* When JS is on, stack slides and cross-fade; JS-off shows only the first. */
html.sa-js-slides .sa-banner--slideshow .sa-slides__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
html.sa-js-slides .sa-banner--slideshow .sa-slides__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
html.sa-js-slides .sa-banner--slideshow .sa-slides__slide img { height: 100%; }
.sa-slides__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 7px; justify-content: center; z-index: 3; }
.sa-slides__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.sa-slides__dot.is-active { background: var(--sa-gradient); width: 20px; border-radius: 999px; }
/* 8px dot, ~44px hit area; the pad stops at half the 7px gap. */
.sa-slides__dot { position: relative; }
.sa-slides__dot::before { content: ""; position: absolute; inset: -18px -3.5px; }
.sa-slides__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sa-border-strong); background: rgba(8,17,13,.55); color: var(--sa-text); font-size: 20px; cursor: pointer; backdrop-filter: blur(6px); }
.sa-slides__arrow--prev { left: 12px; }
.sa-slides__arrow--next { right: 12px; }

/* -- when the controls are allowed to show ------------------------------- */
/* The rule is the POINTER, not the viewport width: "show it when I hover with
   a mouse" is a statement about the input device, and a narrowed desktop window
   still has a mouse while a 1024px tablet still has none. `hover: none` is also
   what already gates the zoom hint below, so both halves of the overlay answer
   to one question.

   Nothing is lost on touch: the carousel advances itself every 5s and swipe is
   bound in vote-frame.js, so hiding the arrows removes the chrome, not the
   navigation. Tapping the slide still opens the lightbox — the whole slide is
   the trigger — so only the hint disappears, never the ability. */
@media (hover: none) {
	.sa-banner--slideshow .sa-slides__arrow,
	.sa-banner--slideshow .sa-slides__dots { display: none !important; }
}

@media (hover: hover) {
	.sa-banner--slideshow .sa-slides__arrow,
	.sa-banner--slideshow .sa-slides__dots {
		opacity: 0;
		/* Invisible controls must not eat clicks: without this the arrow would
		   still swallow a click meant for the artwork underneath it. Focusability
		   is unaffected — pointer-events does not reach the keyboard — which is
		   what makes the :focus-within reveal below work. */
		pointer-events: none;
		transition: opacity .18s ease;
	}
	.sa-banner--slideshow:hover .sa-slides__arrow,
	.sa-banner--slideshow:hover .sa-slides__dots,
	/* A keyboard user has no pointer to discover these with. Tabbing into the
	   carousel reveals them, so the controls are reachable rather than merely
	   present. Do NOT swap the opacity above for visibility/display — either one
	   would make the buttons unfocusable and this selector unreachable. */
	.sa-banner--slideshow:focus-within .sa-slides__arrow,
	.sa-banner--slideshow:focus-within .sa-slides__dots {
		opacity: 1;
		pointer-events: auto;
	}
}

/* ==========================================================================
   Lightbox trigger + overlay
   ========================================================================== */

/* -- trigger -------------------------------------------------------------- */
/* The button IS the image box in slideshow/gallery cells, so it has to reset
   every default a <button> brings (padding, border, background, font) or it
   would draw a chrome frame around the artwork. */
.sa-lbtrig {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: zoom-in;
	-webkit-appearance: none;
	appearance: none;
}
.sa-lbtrig img { display: block; width: 100%; }

/* The ⤢ affordance. Hidden until hover on pointer devices — the artwork is the
   thing being looked at — but always visible on touch, where there is no hover
   to discover it with. */
.sa-lbtrig__ic {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--sa-border-strong);
	background: rgba(10, 8, 14, .58);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
}
.sa-lbtrig__ic::before,
.sa-lbtrig__ic::after {
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border: 2px solid var(--sa-text);
}
.sa-lbtrig__ic::before { top: 9px;  left: 9px;  border-right: 0; border-bottom: 0; }
.sa-lbtrig__ic::after  { right: 9px; bottom: 9px; border-left: 0;  border-top: 0; }

.sa-lbtrig:hover .sa-lbtrig__ic,
.sa-lbtrig:focus-visible .sa-lbtrig__ic { opacity: 1; }
/* In a slideshow the frame is taller than the `contain`ed image, so hovering
   the letterboxed area never touched the trigger and the hint stayed hidden
   while the arrows around it appeared. Let the frame reveal it too, so the
   whole overlay arrives and leaves as one. */
.sa-banner--slideshow:hover .sa-slides__slide.is-active .sa-lbtrig__ic,
.sa-banner--slideshow:focus-within .sa-slides__slide.is-active .sa-lbtrig__ic { opacity: 1; }
/* On touch the hint used to sit there permanently, on the theory that there is
   no hover to discover it with. In practice it was one more thing parked on top
   of the artwork on the smallest screen. Tapping the image still opens the
   lightbox; the affordance is what goes, not the feature. */
@media (hover: none) {
	.sa-lbtrig__ic { display: none !important; }
}
.sa-lbtrig:focus-visible {
	outline: 2px solid var(--sa-focus);
	outline-offset: 3px;
}

/* Corner variant: used by the cinematic banner, where the image is absolutely
   positioned and must NOT be wrapped. Sits over the artwork as its own control. */
/* Scoped for the same reason as `.sa-lbx .sa-lbx__btn` above: this trigger is a
   focusable button whose position is load-bearing. */
.sa-banner .sa-lbtrig--corner {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 34px;
	height: 34px;
	z-index: 3;
}
/* Hidden until the pointer is over the banner — the artwork is the thing being
   looked at. Revealed by hovering the FRAME, not just the 34px button: hunting
   for a control you cannot see is not a discovery mechanism. */
.sa-banner .sa-lbtrig--corner .sa-lbtrig__ic { inset: 0; right: auto; bottom: auto; opacity: 0; }
.sa-banner:hover .sa-lbtrig--corner .sa-lbtrig__ic,
.sa-banner:focus-within .sa-lbtrig--corner .sa-lbtrig__ic { opacity: .85; }
.sa-banner .sa-lbtrig--corner:hover .sa-lbtrig__ic,
.sa-banner .sa-lbtrig--corner:focus-visible .sa-lbtrig__ic { opacity: 1; transform: scale(1.06); }

/* -- auto-gallery wrapper ------------------------------------------------- */
.sa-autogal { margin: 26px 0; }

/* -- overlay -------------------------------------------------------------- */
html.sa-lbx-lock,
html.sa-lbx-lock body { overflow: hidden; }
/* Position:fixed + the JS-set top offset is what stops iOS Safari scrolling
   the page behind the overlay; overflow:hidden alone does not hold there. */
html.sa-lbx-lock body { position: fixed; width: 100%; }

/* 🔴 `sa-lbx`, not `sa-lb`. The leaderboard section is `<section class="sa-lb">`
   (leaderboard.css), and this lightbox used to claim the same bare class. On the
   front end the two stylesheets never met, so nothing showed — but the moment
   both load on one page (a `[shining_leaderboard]` next to a nominee gallery, or
   the block editor, where every block's CSS is present at once) the leaderboard
   inherits `position:fixed; inset:0; opacity:0` and DISAPPEARS behind an
   invisible full-screen overlay. Measured in the editor, where a leaderboard
   block collapsed to 0px tall while its contents floated over the canvas.
   Every class in this family is JS-generated (vote-frame.js), so nothing
   persisted refers to it and the rename is contained. */
.sa-lbx {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .18s ease;
	overscroll-behavior: contain;
}
.sa-lbx.is-open { opacity: 1; }
.sa-lbx[hidden] { display: none; }

.sa-lbx__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 4, 10, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.sa-lbx__stage {
	position: relative;
	z-index: 1;
	max-width: min(94vw, 1400px);
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transform: scale(.985);
	transition: transform .2s ease;
}
.sa-lbx.is-open .sa-lbx__stage { transform: scale(1); }

.sa-lbx__img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	object-fit: contain;
}

.sa-lbx__cap {
	margin: 0;
	max-width: 62ch;
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sa-text-dim, rgba(255, 255, 255, .72));
}
.sa-lbx__cap[hidden] { display: none; }

/* Scoped under `.sa-lbx` (0,2,0) on purpose. skin.css:336 sets
   `a:focus-visible, button:focus-visible { position: relative }` to stop the
   focus ring being clipped by an overflow-hidden ancestor — and at (0,1,1)
   that outranks a bare `.sa-lbx__btn`. Since we move focus to the close button
   the moment the lightbox opens, the unscoped version made that button drop
   out of its corner and land in the middle of the artwork. */
.sa-lbx .sa-lbx__btn {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--sa-border-strong);
	background: rgba(18, 14, 24, .72);
	color: var(--sa-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background .15s ease, transform .15s ease;
}
.sa-lbx .sa-lbx__btn:hover { background: rgba(38, 30, 50, .9); transform: scale(1.05); }
.sa-lbx .sa-lbx__btn:focus-visible { outline: 2px solid var(--sa-focus); outline-offset: 2px; }
.sa-lbx .sa-lbx__btn[hidden] { display: none; }

.sa-lbx .sa-lbx__close { top: 16px; right: 16px; font-size: 18px; }
.sa-lbx .sa-lbx__nav { top: 50%; transform: translateY(-50%); }
.sa-lbx .sa-lbx__nav:hover { transform: translateY(-50%) scale(1.05); }
.sa-lbx .sa-lbx__nav--prev { left: 16px; }
.sa-lbx .sa-lbx__nav--next { right: 16px; }

.sa-lbx__count {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 2;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	background: rgba(18, 14, 24, .72);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
	color: var(--sa-text-dim, rgba(255, 255, 255, .78));
}
.sa-lbx__count[hidden] { display: none; }

/* On a phone the side arrows would sit on top of the artwork, so they move to
   the bottom edge where the thumb already is. */
@media (max-width: 600px) {
	.sa-lbx__stage { max-width: 96vw; }
	.sa-lbx .sa-lbx__nav { top: auto; bottom: 16px; transform: none; }
	.sa-lbx .sa-lbx__nav:hover { transform: scale(1.05); }
	.sa-lbx .sa-lbx__nav--prev { left: 22px; }
	.sa-lbx .sa-lbx__nav--next { right: 22px; }
	.sa-lbx__count { bottom: 26px; }
	.sa-lbx__img { max-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-lbx,
	.sa-lbx__stage,
	.sa-lbx__btn,
	.sa-lbtrig__ic,
	.sa-banner--slideshow .sa-slides__arrow,
	.sa-banner--slideshow .sa-slides__dots { transition: none; }
	.sa-lbx__stage { transform: none; }
	.sa-banner .sa-lbtrig--corner:hover .sa-lbtrig__ic { transform: none; }
}

/* ==========================================================================
   Standings strip — "who's leading", per-poll. The only JS it uses is the
   winner-mode flip in vote-frame.js (initStand); everything else is CSS.
   ========================================================================== */

.sa-stand {
	position: relative;
	max-width: 720px;              /* narrower than the nominee grid: a ranking
	                                  reads as a column, not a full-bleed slab */
	margin: 32px auto;
	padding: 22px 20px 18px;
	border: 1px solid var(--sa-border);
	border-radius: 20px;
	background:
		radial-gradient(90% 75% at 50% -25%, color-mix(in srgb, var(--sa-heart) 8%, transparent), transparent 62%),
		radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .05), transparent 60%),
		var(--sa-surface-2);
	overflow: hidden;
}
/* A single hairline of the brand gradient across the top edge, fading out at
   the corners — the whole "premium" budget of this component is spent on the
   header, so the rows below need no borders or glows to look considered. */
.sa-stand::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: var(--sa-gradient);
	opacity: .9;
	-webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
	mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* -- centred header ------------------------------------------------------- */
.sa-stand__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 9px;
	margin-bottom: 16px;
}
/* The eyebrow is a SPLIT pill — a LIVE tag in the palette colour, then the
   running total — with a gradient hairline border drawn by the same
   padding-box/border-box two-layer trick as .sa-pinfo__card. */
.sa-stand__live {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(var(--sa-surface-2), var(--sa-surface-2)) padding-box,
		linear-gradient(90deg, color-mix(in srgb, var(--sa-heart) 55%, transparent), var(--sa-border) 45%, var(--sa-border) 72%, color-mix(in srgb, var(--sa-heart) 35%, transparent)) border-box;
	font-size: 10.5px;
	line-height: 1;
}
.sa-stand__livetag {
	--sa-violet: var(--sa-heart);   /* recolours the shared pulsing dot + its ring */
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sa-heart);
	background: color-mix(in srgb, var(--sa-heart) 13%, transparent);
	border-right: 1px solid var(--sa-border);
}
.sa-stand__livetag .sa-pinfo__dot { width: 6px; height: 6px; }
.sa-stand__count {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px 6px 11px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	font-variant-numeric: tabular-nums;
}
/* Title, v2: smaller on purpose — the five rows are the show, the heading only
   introduces them — set between two hairlines that fade outward and a pair of
   softly twinkling hearts. */
.sa-stand__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: clamp(17px, 2.6vw, 22px);
	line-height: 1.15;
	letter-spacing: -.01em;
}
.sa-stand__title::before,
.sa-stand__title::after {
	content: "";
	flex: 0 1 56px;
	height: 1px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sa-heart) 45%, var(--sa-border)));
}
.sa-stand__title::after {
	background: linear-gradient(90deg, color-mix(in srgb, var(--sa-heart) 45%, var(--sa-border)), transparent);
}
.sa-stand__tt { min-width: 0; text-wrap: balance; }
.sa-stand__hm {
	width: 11px;
	height: 11px;
	flex: none;
	color: var(--sa-heart);
	animation: sa-stand-tw 2.8s ease-in-out infinite;
}
.sa-stand__title .sa-stand__hm:last-of-type { animation-delay: -1.4s; }
@keyframes sa-stand-tw {
	0%, 100% { transform: scale(1); opacity: .5; }
	50% { transform: scale(1.18); opacity: 1; }
}
.sa-stand__sub {
	font-size: 12px;
	line-height: 1.5;
	color: var(--sa-text-dim);
	max-width: 46ch;
}

/* -- The Chase: #2's gap to #1, and its pace (chase.php) -------------------
   A flat band between the header and the rows — two hairlines that fade at
   the ends, no panel of its own (the strip is already the surface). The gap
   figure is the one number in it set in the brand gradient: it is the thing
   people will repeat. Scoped under .sa-stand so the article's prose rules
   (`.entry-content p`, `b`) cannot reach it. */
.sa-stand .sa-chase {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin: 0 0 14px;
	padding: 11px 8px 12px;
	text-align: center;
}
.sa-stand .sa-chase::before,
.sa-stand .sa-chase::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sa-border-strong), transparent);
}
.sa-stand .sa-chase::before { top: 0; }
.sa-stand .sa-chase::after { bottom: 0; }
/* `[hidden]` is only display:none in the UA sheet — any author display rule
   beats it, so the pace line's own flex would keep drawing an empty row. */
.sa-stand .sa-chase [hidden] { display: none !important; }
.sa-stand .sa-chase__eye {
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sa-heart);
}
.sa-stand .sa-chase__gap {
	margin: 0;
	max-width: 40ch;
	font-size: 15px;
	line-height: 1.4;
	color: var(--sa-text-dim);
	text-wrap: balance;
}
.sa-stand .sa-chase__n { font-weight: 700; color: var(--sa-text); }
.sa-stand .sa-chase__v {
	font-weight: 800;
	font-size: 1.12em;
	font-variant-numeric: tabular-nums;
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-stand .sa-chase__pace {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 7px;
	margin: 0;
	max-width: 52ch;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--sa-text-dim);
	text-wrap: balance;
}
.sa-stand .sa-chase__ico {
	flex: none;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	transform: translateY(-1px);
}
/* closing: the gap is shrinking — an accent arrow pointing up the board */
.sa-stand .sa-chase__pace--closing .sa-chase__ico,
.sa-stand .sa-chase__pace--short .sa-chase__ico { border-bottom: 7px solid var(--sa-heart); }
.sa-stand .sa-chase__pace--closing .sa-chase__ptxt { color: var(--sa-text); }
/* widening: the leader is pulling away — the same arrow, turned, in dim ink */
.sa-stand .sa-chase__pace--widening .sa-chase__ico { border-top: 7px solid var(--sa-text-dim); }
/* Fan Rally: "RALLY FOR …" — a quiet uppercase link with the rose heart,
   never a second button inside the standings. Prefixed with the strip and the
   theme wrapper because article link colours otherwise win (.entry-content). */
.sa-stand .sa-chase__rally,
#tie-wrapper .sa-stand a.sa-chase__rally {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sa-text);
	box-shadow: none;
}
.sa-stand .sa-chase__rheart { width: 12px; height: 12px; flex: none; color: var(--sa-heart); }
.sa-stand .sa-chase__rarrow { color: var(--sa-heart); transition: transform .18s ease; }
@media (hover: hover) {
	#tie-wrapper .sa-stand a.sa-chase__rally:hover { color: var(--sa-heart); }
	.sa-stand .sa-chase__rally:hover .sa-chase__rarrow { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
	.sa-stand .sa-chase__rarrow { transition: none; }
}
/* An open race only: a cached page flipped to winner mode drops it. */
.sa-stand--closed .sa-chase { display: none; }

/* -- rows ----------------------------------------------------------------- */
.sa-stand__list { display: flex; flex-direction: column; gap: 4px; }

/* A 4-column grid so rank digits, bars and numbers stay aligned down the
   column no matter how long a name runs. */
.sa-stand__row {
	display: grid;
	grid-template-columns: 1.6rem 42px minmax(0, 1fr) 4.2rem;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 14px;
	border: 1px solid transparent;
	text-decoration: none;
	color: inherit;
	/* Leak defense: a full-width <a> inside .entry-content inherits Jannah's
	   gradient link-underline, which stretches into a stray line across the
	   row. Same fix as .sa-nom__item — see the note above it. */
	background-image: none !important;
	text-decoration: none !important;
	transition: background-color .16s ease, border-color .16s ease;
}
a.sa-stand__row:hover {
	background-color: var(--sa-surface-2);
	border-color: var(--sa-border);
}

/* The leader gets a tinted plate. Everyone below is quiet, so first place
   reads instantly without a medal or a trophy.
   background-COLOR, not a gradient: the leak defense above forces
   `background-image: none !important` to kill Jannah's inherited link
   underline, and that !important also swallowed the tint when it was written
   as a linear-gradient. A flat tint is not affected. */
.sa-stand__item:first-child .sa-stand__row {
	background-color: color-mix(in srgb, var(--sa-heart) 10%, transparent);
	border-color: color-mix(in srgb, var(--sa-heart) 28%, transparent);
}
.sa-stand__item:first-child a.sa-stand__row:hover {
	background-color: color-mix(in srgb, var(--sa-heart) 16%, transparent);
	border-color: color-mix(in srgb, var(--sa-heart) 44%, transparent);
}

.sa-stand__rank {
	font-family: var(--sa-font-display);
	font-weight: 800;
	font-size: 15px;
	text-align: center;
	color: var(--sa-text-dim);
	font-variant-numeric: tabular-nums;
}
.sa-stand__item:first-child .sa-stand__rank { color: var(--sa-heart); font-size: 19px; }
.sa-stand__item:nth-child(2) .sa-stand__rank,
.sa-stand__item:nth-child(3) .sa-stand__rank { color: var(--sa-text); }

/* The avatar ring is drawn on a wrapper, not the avatar itself: the avatar
   clips its own overflow to stay circular, so a ring on it would be cut off. */
.sa-stand__ava {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	padding: 2px;
	background: var(--sa-border);
}
.sa-stand__item:first-child .sa-stand__ava { background: var(--sa-gradient); }
.sa-stand__av { width: 100%; height: 100%; font-size: 14px; }

.sa-stand__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Name + group on one line, bar underneath. The tight line-height is
   deliberate: .entry-content sets 1.62 for prose, which on a 13px label adds
   ~9px of dead space per row — 45px across the strip for nothing. */
.sa-stand__top {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
	line-height: 1.2;
}
.sa-stand__name {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.2;
	color: var(--sa-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 0 1 auto;   /* the long part shrinks first */
}
.sa-stand__grp {
	font-size: 10px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	white-space: nowrap;
	/* The group tag absorbs essentially the whole deficit before the name gives
	   up a single pixel. Equal shrink factors were not enough: on a 360px phone
	   "Hyunjin / STRAY KIDS" still truncated to "Hyun… / STRAY KI…", and the
	   idol's name is the one word in this row that must never be cut. */
	flex: 0 1 auto;
	flex-shrink: 999;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--sa-surface-2);
}
.sa-stand__item:first-child .sa-stand__grp { color: var(--sa-text); }

.sa-stand__bar {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var(--sa-border);
	overflow: hidden;
}
.sa-stand__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--sa-gradient);
}
/* Only the leader's bar glows; on every bar it would just be noise. */
.sa-stand__item:first-child .sa-stand__fill {
	box-shadow: 0 0 12px color-mix(in srgb, var(--sa-heart) 55%, transparent);
}

.sa-stand__num {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	line-height: 1.15;
}
.sa-stand__pct {
	font-family: var(--sa-font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--sa-text);
	font-variant-numeric: tabular-nums;
}
.sa-stand__item:first-child .sa-stand__pct { color: var(--sa-heart); font-size: 17px; }
.sa-stand__votes {
	font-size: 10.5px;
	color: var(--sa-text-dim);
	font-variant-numeric: tabular-nums;
}

/* -- winner mode (poll closed) ---------------------------------------------
   Flipped on by the server for fresh renders and by vote-frame.js for cached
   ones. Everything below is a reveal of markup that is ALWAYS present — the
   badge ships in row 1 on every render precisely so the client-side flip has
   something to show without building DOM. */

/* The pulse stops: nothing is live any more. */
.sa-stand--closed .sa-pinfo__dot { animation: none; box-shadow: none; }

/* WINNER badge — brand gradient, not gold: fan-choice energy, not a gala. */
.sa-stand__wbadge {
	display: none;
	align-items: center;
	flex: none;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
	font-size: 9px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.sa-stand--closed .sa-stand__item:first-child .sa-stand__wbadge { display: inline-flex; }

/* The champion's plate steps up one notch from the live leader tint. */
.sa-stand--closed .sa-stand__item:first-child .sa-stand__row {
	position: relative;
	overflow: hidden;
	background-color: color-mix(in srgb, var(--sa-heart) 14%, transparent);
	border-color: color-mix(in srgb, var(--sa-heart) 55%, transparent);
}
/* Celebration shine across the winner row — same finite spec as the info
   panel's sweep (5 passes, then parked), armed by .is-lit only once seen. */
.sa-stand--closed .sa-stand__item:first-child .sa-stand__row::after {
	content: "";
	position: absolute;
	inset: -2px;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .10) 50%, transparent 58%);
	transform: translateX(-101%);
}
.sa-stand--closed.is-lit .sa-stand__item:first-child .sa-stand__row::after {
	animation: sa-pinfo-sweep 3.4s ease-in-out .4s 5;
}

@media (max-width: 480px) {
	.sa-stand { padding: 18px 12px 14px; border-radius: 16px; margin: 26px auto; }
	.sa-stand__title { gap: 8px; }
	.sa-stand__title::before,
	.sa-stand__title::after { flex-basis: 22px; }
	.sa-stand__sub { font-size: 11.5px; }
	.sa-stand .sa-chase__gap { font-size: 14px; }
	.sa-stand .sa-chase__pace { font-size: 12px; }
	.sa-stand__row { grid-template-columns: 1.1rem 34px minmax(0, 1fr) 3rem; gap: 8px; padding: 7px 6px; }
	.sa-stand__ava { width: 34px; height: 34px; }
	.sa-stand__name { font-size: 13px; }
	.sa-stand__grp { font-size: 9px; padding: 1px 5px; }
	.sa-stand__pct { font-size: 13.5px; }
	.sa-stand__item:first-child .sa-stand__pct { font-size: 15px; }
	.sa-stand__votes { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-stand__row { transition: none; }
	.sa-stand__hm { animation: none; opacity: .85; }
	.sa-stand--closed.is-lit .sa-stand__item:first-child .sa-stand__row::after { animation: none; }
}

/* The gradient-text utility `.sa-grad` lives in skin.css; these headings carry
   the treatment themselves so this stylesheet stands up on its own (see the
   same note in follow.css, which owns the Follow title's copy). */
.sa-stand__tt,
.sa-nom__heading {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}


/* ===========================================================================
   Vote Pulse strip — poll vitals under the title (the vacated metabar slot)
   =========================================================================== */

.sa-pulse {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 14px 0 2px;
}

.sa-pulse__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: var(--sa-radius-pill);
	border: 1px solid var(--sa-border);
	background: color-mix(in srgb, var(--sa-surface-1) 55%, transparent);
	font-size: 12.5px;
	line-height: 1.4;
	letter-spacing: .01em;
	color: var(--sa-text-muted);
	white-space: nowrap;
}
.sa-pulse__chip b {
	font-weight: 700;
	color: var(--sa-text);
	font-variant-numeric: tabular-nums;
}
/* The chip's own display would beat the UA's [hidden] rule — restate it, or a
   zero-surge momentum chip renders "+0" instead of disappearing. */
.sa-pulse__chip[hidden] { display: none; }

.sa-pulse__ic { width: 14px; height: 14px; flex: none; display: block; }
.sa-pulse__total .sa-pulse__ic { color: var(--sa-pink); fill: var(--sa-pink); }
.sa-pulse__cd .sa-pulse__ic { color: var(--sa-gold); }
.sa-pulse__mo .sa-pulse__ic { color: var(--sa-gold); }

/* Status pill — the one chip allowed to carry a full accent tint. */
.sa-pulse__status {
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 11px;
}
.sa-pulse__status b { font-weight: 700; }
.sa-pulse__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sa-pulse__status.is-live {
	border-color: color-mix(in srgb, var(--sa-vote) 45%, transparent);
	background: color-mix(in srgb, var(--sa-vote) 14%, transparent);
}
.sa-pulse__status.is-live b { color: var(--sa-vote-2); }
.sa-pulse__status.is-live .sa-pulse__dot {
	background: var(--sa-vote);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--sa-vote) 55%, transparent);
	animation: sa-pulse-dot 2.2s ease-out infinite;
}
.sa-pulse__status.is-soon {
	border-color: color-mix(in srgb, var(--sa-gold) 45%, transparent);
	background: color-mix(in srgb, var(--sa-gold) 12%, transparent);
}
.sa-pulse__status.is-soon b { color: var(--sa-gold); }
.sa-pulse__status.is-soon .sa-pulse__dot { background: var(--sa-gold); }
.sa-pulse__status.is-closed { border-color: var(--sa-border-strong); }
.sa-pulse__status.is-closed b { color: var(--sa-text); }
.sa-pulse__status.is-closed .sa-pulse__dot { background: var(--sa-text-dim); }

/* "Open" — the window is open and voting works, but nothing has been voted in
   for days, so the badge does not claim activity.
   🔴 Deliberately NOT styled like `is-closed`: this race is votable, and making
   it look finished would cost real votes. It keeps the accent, at lower
   intensity, and gives up only the pulse. See pure/activity.php. */
.sa-pulse__status.is-quiet {
	border-color: color-mix(in srgb, var(--sa-vote) 26%, transparent);
	background: color-mix(in srgb, var(--sa-vote) 7%, transparent);
}
.sa-pulse__status.is-quiet b { color: color-mix(in srgb, var(--sa-vote-2) 72%, var(--sa-text)); }
.sa-pulse__status.is-quiet .sa-pulse__dot {
	background: color-mix(in srgb, var(--sa-vote) 55%, transparent);
	animation: none;   /* the pulse IS the claim being withdrawn */
}

/* Same withdrawal on the standings header tag. */
.sa-stand__live.is-quiet .sa-stand__livetag .sa-pinfo__dot { animation: none; opacity: .7; }

@keyframes sa-pulse-dot {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sa-vote) 55%, transparent); }
	70%  { box-shadow: 0 0 0 6px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* Momentum — warm tint; it earns the emphasis by only existing while surging. */
.sa-pulse__mo {
	border-color: color-mix(in srgb, var(--sa-gold) 40%, transparent);
	background: color-mix(in srgb, var(--sa-gold) 10%, transparent);
}
.sa-pulse__mo b { color: var(--sa-gold); }

/* Facepile — the standings' avatar pipeline at chip scale. The ring is the
   page background so the overlap reads as a deliberate stack, not a collision. */
.sa-pulse__faces { padding-left: 6px; }
.sa-pulse__stack { display: inline-flex; align-items: center; }
.sa-pulse__av {
	width: 24px;
	height: 24px;
	font-size: 9px;
	box-shadow: 0 0 0 2px var(--sa-bg);
}
.sa-pulse__stack .sa-pulse__av + .sa-pulse__av { margin-left: -8px; }

/* Voting-window meter (optional) — a full-width hairline under the chips. */
.sa-pulse__meter {
	flex-basis: 100%;
	height: 3px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--sa-text-dim) 22%, transparent);
	overflow: hidden;
}
.sa-pulse__meter i {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--sa-gradient);
}

/* Compact, not cramped, on small screens. */
@media (max-width: 640px) {
	.sa-pulse { gap: 6px; margin-top: 12px; }
	.sa-pulse__chip { font-size: 11.5px; padding: 4px 10px; gap: 5px; }
	.sa-pulse__status { font-size: 10px; }
	.sa-pulse__ic { width: 13px; height: 13px; }
	.sa-pulse__av { width: 21px; height: 21px; font-size: 8px; }
	.sa-pulse__stack .sa-pulse__av + .sa-pulse__av { margin-left: -7px; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-pulse__status.is-live .sa-pulse__dot { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BALLOT RECEIPT — the panel that appears the moment a vote lands.

   Three looks (champion / stub / slip) chosen in Vote Page → Ballot Receipt.
   They share every atom below; only the frame differs.

   Server-rendered inert and `[hidden]`; receipt.js removes the attribute. There
   is deliberately NO CSS that can reveal it — a stylesheet must never be able
   to show a panel whose contents have not been filled in.
   ═══════════════════════════════════════════════════════════════════════════ */

.sa-receipt { margin: 22px 0; animation: sa-rc-in .42s cubic-bezier(.22,.8,.3,1) both; }

/* 🔴 `[hidden]` is only `display:none` in the UA stylesheet, so ANY author
   `display` rule silently beats it — the standing bar is `display:block`, and
   it kept drawing a 5px line under the name while still reporting hidden=true.
   Every part of this card is revealed by dropping the attribute, so the
   attribute has to win everywhere, once, rather than per element. */
.sa-receipt [hidden] { display: none !important; }
@keyframes sa-rc-in {
	from { opacity: 0; transform: translateY(10px) scale(.995); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sa-receipt { animation: none; } }

/* ── Shared atoms ────────────────────────────────────────────────────────── */

.sa-rc__eyebrow {
	display: flex; align-items: center; gap: .45rem; margin: 0 0 6px;
	font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--sa-text-muted, #96A6C6);
}
/* The rose heart is a small MARK, not a peer of the accent button. Keeping it
   at label scale is what stops the fixed rose and the palette gradient reading
   as two competing identities inside one card. */
.sa-rc__hm { width: .85em; height: .85em; flex: none; color: var(--sa-heart, #F4F7FB); }

.sa-rc__name { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.sa-rc__grp {
	font-size: .8rem; font-weight: 700; letter-spacing: .02em;
	color: var(--sa-vote-2, var(--sa-vote, #3B82F6));
}
.sa-rc__grp:empty { display: none; }
.sa-rc__sub { margin: 2px 0 0; font-size: .78rem; color: var(--sa-text-muted, #96A6C6); }

/* The face. Same --np-* crop formula as the standings rows and the Pulse
   facepile, so one idol is framed identically everywhere on the page. */
.sa-rc__av {
	flex: none; display: grid; place-items: center; overflow: hidden;
	width: 104px; height: 128px; border-radius: 13px;
	background: var(--sa-surface-2, #172033);
	font-size: 1.9rem; font-weight: 800; color: var(--sa-text-muted, #96A6C6);
}
.sa-rc__av--round { width: 62px; height: 62px; border-radius: 50%; font-size: 1.2rem; }
.sa-rc__av.is-photo { position: relative; }
.sa-rc__av.is-photo img {
	position: absolute;
	width: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1)); height: calc(var(--sa-focal-scale, 308%) * var(--np-zoom, 1));
	max-width: none; max-height: none;
	left: calc(var(--np-fx, .5) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	top:  calc(var(--np-fy, .4) * (1 - 3.08 * var(--np-zoom, 1)) * 100%);
	object-fit: cover; object-position: center 40%;
}

/* Standing — the second-biggest thing on the card, not a grey sentence. */
.sa-rc__stand { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.sa-rc__rank {
	font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
	font-variant-numeric: tabular-nums;
	background: var(--sa-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sa-rc__of {
	display: flex; flex-direction: column; font-size: .72rem; line-height: 1.35;
	color: var(--sa-text-muted, #96A6C6);
}
.sa-rc__bar {
	display: block; height: 5px; border-radius: 3px; margin: 10px 0 6px;
	background: var(--sa-surface-2, #172033); overflow: hidden;
}
.sa-rc__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--sa-gradient); }
.sa-rc__gap { margin: 0; font-size: .76rem; color: var(--sa-text-muted, #96A6C6); }

.sa-rc__acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.sa-rc__share {
	appearance: none; border: 0; cursor: pointer; font: inherit;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .68rem 1.35rem; border-radius: var(--sa-radius-pill, 999px);
	font-size: .84rem; font-weight: 800; letter-spacing: .01em;
	color: var(--sa-on-accent, #fff); background: var(--sa-gradient);
	/* A tighter, lower shadow. The old one was a 26px halo that bled a coloured
	   glow across the whole card and read as a 2010s "glowing button"; a contact
	   shadow lifts it off the surface without lighting up its neighbours. */
	box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--sa-vote, #3B82F6) 85%, transparent),
		inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
	transition: transform .16s ease, filter .2s ease, box-shadow .2s ease;
}
.sa-rc__shico { width: 15px; height: 15px; flex: none; }
@media (hover: hover) {
	.sa-rc__share:hover {
		transform: translateY(-1px); filter: saturate(1.06);
		box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--sa-vote, #3B82F6) 90%, transparent),
			inset 0 1px 0 color-mix(in srgb, #fff 26%, transparent);
	}
}
.sa-rc__share:active { transform: scale(.985); }
.sa-rc__share:focus-visible { outline: 2px solid var(--sa-vote-2, #22D3EE); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.sa-rc__share { transition: none; }
	.sa-rc__share:active { transform: none; }
}

.sa-rc__cd, .sa-rc__ready { font-size: .78rem; color: var(--sa-text-muted, #96A6C6); }
.sa-rc__cd b { color: var(--sa-text, #E9EEF8); font-variant-numeric: tabular-nums; }
.sa-rc__ready { color: var(--sa-vote-2, #22D3EE); font-weight: 700; }
/* The way to My Votes — a quiet uppercase link, never a second button
   competing with Share. */
.sa-rc__my,
#tie-wrapper a.sa-rc__my {
	margin-left: auto;
	font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--sa-text-muted, #96A6C6); text-decoration: none; white-space: nowrap;
}
.sa-rc__my:hover,
#tie-wrapper a.sa-rc__my:hover { color: var(--sa-heart); }
.sa-rc__x2 { margin: 10px 0 0; font-size: .78rem; font-weight: 700; color: var(--sa-vote-2, #22D3EE); }

/* Fan Rally — the second action. An outline pill (the gradient as a 1.5px
   ring) so it never competes with Share as an equal; the rose heart is the
   only fill. #tie-wrapper: article link colours outrank a bare class here. */
.sa-rc__rally,
#tie-wrapper a.sa-rc__rally {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .62rem 1.15rem; border-radius: var(--sa-radius-pill, 999px);
	font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: var(--sa-on-accent, #fff); text-decoration: none; white-space: nowrap;
	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;
}
.sa-rc__rallyheart { width: 14px; height: 14px; flex: none; color: var(--sa-heart, #F4F7FB); }
/* The article's ID-level link rules underline on hover; a button never does. */
#the-post .entry-content a.sa-rc__rally,
#the-post .entry-content a.sa-rc__rally:hover,
#the-post .entry-content a.sa-rc__rally:focus,
#the-post .entry-content a.sa-rc__rally span,
#tie-wrapper a.sa-rc__rally:hover span,
#content a.sa-rc__rally:hover,
#content a.sa-chase__rally:hover { text-decoration: none; }
@media (hover: hover) {
	.sa-rc__rally:hover,
	#tie-wrapper a.sa-rc__rally:hover { transform: translateY(-1px); filter: brightness(1.12); color: var(--sa-on-accent, #fff); }
}
.sa-rc__rally:focus-visible { outline: 2px solid var(--sa-vote-2, #22D3EE); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.sa-rc__rally,
	#tie-wrapper a.sa-rc__rally { transition: none; }
}

/* ── A · Champion Frame (default) ────────────────────────────────────────── */

/* A gradient hairline drawn as a 1px padding ring rather than a border, so the
   accent can fade along the edge instead of boxing the card in solid colour. */
.sa-receipt--champion .sa-rc__ring {
	border-radius: calc(var(--sa-radius, 16px) + 2px); padding: 1px;
	background: linear-gradient(140deg,
		color-mix(in srgb, var(--sa-vote, #3B82F6) 65%, transparent),
		color-mix(in srgb, var(--sa-vote-2, #22D3EE) 22%, transparent) 45%,
		transparent 78%);
}
.sa-receipt--champion .sa-rc__in {
	border-radius: var(--sa-radius, 16px); padding: 20px;
	/* A light source in the top-left corner, behind the face. A flat panel reads
	   as a placeholder on a dark page; this reads as an object being lit. */
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--sa-vote, #3B82F6) 13%, transparent), transparent 58%),
		var(--sa-surface-1, #111623);
}

/* Zone 1 — the face beside the identity. `center` rather than `start`: the
   identity block is now short (three lines), so aligning both to the middle is
   what keeps the pair looking deliberate. */
.sa-receipt--champion .sa-rc__lead {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center;
}
.sa-receipt--champion .sa-rc__av {
	width: 96px; height: 120px;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--sa-vote-2, #22D3EE) 40%, transparent),
		0 14px 30px -18px color-mix(in srgb, var(--sa-vote, #3B82F6) 90%, transparent);
}
.sa-receipt--champion .sa-rc__id { min-width: 0; }
.sa-receipt--champion .sa-rc__name { font-size: 1.42rem; }
.sa-receipt--champion .sa-rc__sub {
	margin-top: 4px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Zone 2 — the numbers. Spans the FULL card width, which is what removes the
   empty gutter the old single-column layout left under the 120px face. */
.sa-receipt--champion .sa-rc__stats {
	margin-top: 18px; padding-top: 16px;
	border-top: 1px solid color-mix(in srgb, currentColor 11%, transparent);
}
.sa-receipt--champion .sa-rc__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.sa-receipt--champion .sa-rc__stat {
	display: flex; flex-direction: column; gap: 5px;
	padding: 11px 13px; min-width: 0;
	border-radius: var(--sa-radius-sm, 12px);
	background: color-mix(in srgb, currentColor 5%, transparent);
	box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent);
}
.sa-receipt--champion .sa-rc__statl {
	font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
	color: var(--sa-text-muted, #96A6C6);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sa-receipt--champion .sa-rc__statv {
	font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--sa-text, #E9EEF8);
}
/* The shared `.sa-rc__rank` paints its number as a gradient through
   background-clip:text. Inside a strip of three equal tiles that makes one of
   them shout for no reason, and it competes with the cyan the third tile takes
   when the pick is in front — so the champion frame opts out explicitly rather
   than leaving an invisible clipped gradient under an opaque colour that merely
   happens to win the cascade. */
.sa-receipt--champion .sa-rc__statv.sa-rc__rank {
	font-size: 1.32rem;
	background: none;
	-webkit-background-clip: border-box; background-clip: border-box;
	color: var(--sa-text, #E9EEF8);
}
/* Being in front is the one outcome worth colouring. */
.sa-receipt--champion .sa-rc__stat.is-front {
	background: color-mix(in srgb, var(--sa-vote-2, #22D3EE) 13%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sa-vote-2, #22D3EE) 30%, transparent);
}
.sa-receipt--champion .sa-rc__stat.is-front .sa-rc__statv { color: var(--sa-vote-2, #22D3EE); }

/* The meter, with the field size as its caption — so a 0.1% sliver still has
   something legible next to it saying what it is a slice of. */
.sa-receipt--champion .sa-rc__meter {
	display: flex; align-items: center; gap: 12px; margin-top: 12px;
}
.sa-receipt--champion .sa-rc__bar { flex: 1 1 auto; margin: 0; height: 6px; }
.sa-receipt--champion .sa-rc__bar i {
	/* A minimum-width fill still needs to be visible at 0.1%. */
	min-width: 3px;
	box-shadow: 0 0 10px color-mix(in srgb, var(--sa-vote, #3B82F6) 55%, transparent);
}
.sa-receipt--champion .sa-rc__meterc {
	flex: 0 0 auto; font-size: .68rem; font-weight: 700;
	color: var(--sa-text-muted, #96A6C6);
	font-variant-numeric: tabular-nums;
}
.sa-receipt--champion .sa-rc__meterc:empty { display: none; }

/* Zone 3 — act. A rule separates the decision from the report above it. */
.sa-receipt--champion .sa-rc__foot {
	margin-top: 16px; padding-top: 15px;
	border-top: 1px solid color-mix(in srgb, currentColor 11%, transparent);
}
.sa-receipt--champion .sa-rc__acts { margin-top: 0; justify-content: space-between; }

/* ── B · Holo Stub ───────────────────────────────────────────────────────── */

.sa-receipt--stub .sa-rc__ticket {
	display: grid; grid-template-columns: minmax(0, 1fr) 168px;
	border-radius: var(--sa-radius, 16px); overflow: hidden;
	background: var(--sa-surface-1, #111623);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sa-receipt--stub .sa-rc__main { padding: 20px; min-width: 0; }
.sa-receipt--stub .sa-rc__row { display: flex; align-items: center; gap: 14px; }
.sa-receipt--stub .sa-rc__stub {
	position: relative; padding: 20px 16px; text-align: center;
	display: grid; align-content: center; gap: 4px;
	background:
		radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--sa-vote-2, #22D3EE) 16%, transparent), transparent 60%),
		var(--sa-surface-2, #172033);
}
.sa-receipt--stub .sa-rc__stub::before {
	content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
	border-left: 2px dashed color-mix(in srgb, currentColor 22%, transparent);
}
/* The punch holes read as holes only if they match the page behind them. */
.sa-receipt--stub .sa-rc__notch {
	position: absolute; left: -8px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--sa-bg, #0A0D14);
}
.sa-receipt--stub .sa-rc__notch--t { top: -8px; }
.sa-receipt--stub .sa-rc__notch--b { bottom: -8px; }
.sa-receipt--stub .sa-rc__stublbl {
	font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--sa-text-muted, #96A6C6);
}
.sa-receipt--stub .sa-rc__stubbig {
	font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	background: var(--sa-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sa-receipt--stub .sa-rc__dl { display: flex; gap: 22px; margin: 16px 0 6px; padding: 0; }
.sa-receipt--stub .sa-rc__dl div { display: grid; gap: 2px; }
.sa-receipt--stub .sa-rc__dl dt {
	font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--sa-text-muted, #96A6C6);
}
.sa-receipt--stub .sa-rc__dl dd {
	margin: 0; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.sa-receipt--stub .sa-rc__rank { font-size: 1rem; }

/* ── C · Confirmation Slip ───────────────────────────────────────────────── */

/* The moment a vote lands, staged: one centred column — the face in a
   gradient halo with its rank, the name in the palette gradient, the standing
   as two chips, then the actions. The card is OUR component (the flat-surface
   rule strips Jannah's inherited panels, not brand surfaces): a deep surface
   lit by two palette glows, inside a 1px gradient hairline. */
.sa-receipt--slip {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: calc(var(--sa-radius, 16px) + 4px);
	border: 1px solid transparent;
	background:
		linear-gradient(165deg,
			color-mix(in srgb, var(--sa-violet, #00A870) 14%, var(--sa-surface-1, #111623)) 0%,
			var(--sa-surface-1, #111623) 46%,
			color-mix(in srgb, var(--sa-magenta, #00C389) 10%, var(--sa-surface-1, #111623)) 100%) padding-box,
		linear-gradient(140deg,
			color-mix(in srgb, var(--sa-violet, #00A870) 70%, transparent),
			color-mix(in srgb, currentColor 10%, transparent) 42%,
			color-mix(in srgb, var(--sa-magenta, #00C389) 60%, transparent)) border-box;
	box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--sa-magenta, #00C389) 55%, transparent);
	text-align: center;
}
.sa-receipt--slip .sa-rc__sheen { height: 3px; background: var(--sa-gradient); }
/* Two soft lights behind the face — painted, never animated. */
.sa-receipt--slip .sa-rc__glow {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60% 46% at 50% 0%, color-mix(in srgb, var(--sa-violet, #00A870) 26%, transparent), transparent 70%),
		radial-gradient(42% 36% at 100% 100%, color-mix(in srgb, var(--sa-magenta, #00C389) 16%, transparent), transparent 72%);
}
.sa-receipt--slip .sa-rc__slip {
	display: flex; flex-direction: column; align-items: center;
	padding: 26px 22px 20px;
}

/* The face, in a gradient halo, with the rank pinned to it. */
.sa-receipt--slip .sa-rc__hero { position: relative; width: 92px; height: 92px; margin-bottom: 14px; }
.sa-receipt--slip .sa-rc__halo {
	position: absolute; inset: -4px; border-radius: 50%;
	background: var(--sa-gradient);
	box-shadow: 0 0 34px -6px color-mix(in srgb, var(--sa-magenta, #00C389) 60%, transparent);
}
.sa-receipt--slip .sa-rc__av {
	position: relative; width: 92px; height: 92px; border-radius: 50%; font-size: 1.6rem;
	box-shadow: 0 0 0 3px var(--sa-surface-1, #111623);
}
.sa-receipt--slip .sa-rc__rank {
	position: absolute; right: -10px; bottom: -4px;
	padding: .3rem .6rem; border-radius: var(--sa-radius-pill, 999px);
	font-size: .78rem; font-weight: 800; letter-spacing: .01em; line-height: 1;
	color: var(--sa-on-accent, #fff); -webkit-text-fill-color: currentColor;
	background: var(--sa-gradient); background-clip: border-box; -webkit-background-clip: border-box;
	box-shadow: 0 0 0 3px var(--sa-surface-1, #111623), 0 6px 14px -6px rgba(0, 0, 0, .6);
}
.sa-receipt--slip .sa-rc__eyebrow {
	justify-content: center; margin: 0 0 6px;
	font-size: .66rem; letter-spacing: .2em; color: var(--sa-text-dim, #C9D2E3);
}
.sa-receipt--slip .sa-rc__l1 {
	margin: 0; max-width: 100%;
	font-family: var(--sa-font-display); font-size: clamp(1.45rem, 4.6vw, 1.85rem);
	font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.sa-receipt--slip .sa-rc__l1 b,
#tie-wrapper .sa-receipt--slip .sa-rc__l1 b {
	background: var(--sa-gradient); -webkit-background-clip: text; background-clip: text;
	/* An ID-level article rule colours <b>; the fill colour is what clips. */
	color: transparent; -webkit-text-fill-color: transparent;
	overflow-wrap: anywhere;
}
.sa-receipt--slip .sa-rc__l2 {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0;
}
.sa-receipt--slip .sa-rc__chip {
	padding: .38rem .8rem; border-radius: var(--sa-radius-pill, 999px);
	font-size: .76rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
	color: var(--sa-text, #E9EEF8);
	background: color-mix(in srgb, currentColor 7%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sa-receipt--slip .sa-rc__chip:empty { display: none; }

/* Actions: centred. Share and Rally side by side, equal height; the cooldown
   and My Votes share the line beneath them. */
.sa-receipt--slip .sa-rc__acts {
	justify-content: center; gap: 10px 12px; margin-top: 20px; width: 100%;
}
.sa-receipt--slip .sa-rc__share,
.sa-receipt--slip .sa-rc__rally,
#tie-wrapper .sa-receipt--slip a.sa-rc__rally {
	min-height: 46px; padding-left: 1.4rem; padding-right: 1.4rem;
}
.sa-receipt--slip .sa-rc__cd,
.sa-receipt--slip .sa-rc__ready { flex-basis: 100%; order: 3; }
.sa-receipt--slip .sa-rc__my,
#tie-wrapper .sa-receipt--slip a.sa-rc__my { margin-left: 0; order: 4; }
.sa-receipt--slip .sa-rc__x2 { padding: 0 22px 14px; margin: 0; }

/* ── Premium pass: Champion + Stub share the Slip's surface ───────────────
   Each style keeps its own layout (the champion's face-and-tiles, the stub's
   torn ticket); what they now share is the lit surface — a palette-tinted
   gradient, two soft glows, a gradient hairline — the haloed face, the name in
   the gradient, and actions centred under a rule. */

.sa-receipt--champion .sa-rc__ring {
	padding: 1px;
	border-radius: calc(var(--sa-radius, 16px) + 4px);
	background: linear-gradient(140deg,
		color-mix(in srgb, var(--sa-violet, #00A870) 75%, transparent),
		color-mix(in srgb, currentColor 10%, transparent) 42%,
		color-mix(in srgb, var(--sa-magenta, #00C389) 65%, transparent));
	box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--sa-magenta, #00C389) 55%, transparent);
}
.sa-receipt--champion .sa-rc__in,
.sa-receipt--stub .sa-rc__main {
	background:
		radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--sa-violet, #00A870) 24%, transparent), transparent 70%),
		radial-gradient(50% 50% at 100% 100%, color-mix(in srgb, var(--sa-magenta, #00C389) 14%, transparent), transparent 72%),
		linear-gradient(165deg,
			color-mix(in srgb, var(--sa-violet, #00A870) 12%, var(--sa-surface-1, #111623)) 0%,
			var(--sa-surface-1, #111623) 50%,
			color-mix(in srgb, var(--sa-magenta, #00C389) 8%, var(--sa-surface-1, #111623)) 100%);
}
.sa-receipt--champion .sa-rc__in { border-radius: calc(var(--sa-radius, 16px) + 3px); padding: 22px; }

/* The ticket: a gradient hairline round the whole thing, and the stub lit
   in the palette instead of a flat second grey. */
.sa-receipt--stub .sa-rc__ticket {
	border: 1px solid transparent;
	border-radius: calc(var(--sa-radius, 16px) + 4px);
	background:
		linear-gradient(var(--sa-surface-1, #111623), var(--sa-surface-1, #111623)) padding-box,
		linear-gradient(140deg,
			color-mix(in srgb, var(--sa-violet, #00A870) 75%, transparent),
			color-mix(in srgb, currentColor 10%, transparent) 42%,
			color-mix(in srgb, var(--sa-magenta, #00C389) 65%, transparent)) border-box;
	box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--sa-magenta, #00C389) 55%, transparent);
}
.sa-receipt--stub .sa-rc__stub {
	background:
		radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, #fff 16%, transparent), transparent 70%),
		linear-gradient(160deg,
			color-mix(in srgb, var(--sa-violet, #00A870) 55%, var(--sa-surface-2, #172033)),
			color-mix(in srgb, var(--sa-magenta, #00C389) 45%, var(--sa-surface-2, #172033)));
}
.sa-receipt--stub .sa-rc__stublbl { color: color-mix(in srgb, #fff 78%, transparent); }
.sa-receipt--stub .sa-rc__stubbig {
	font-family: var(--sa-font-display); font-size: 2.1rem; letter-spacing: -.03em;
	background: none; -webkit-background-clip: border-box; background-clip: border-box;
	color: var(--sa-on-accent, #fff); -webkit-text-fill-color: currentColor;
	text-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* The face, haloed. */
.sa-receipt--champion .sa-rc__av,
.sa-receipt--stub .sa-rc__av {
	box-shadow:
		0 0 0 2px var(--sa-surface-1, #111623),
		0 0 0 4px color-mix(in srgb, var(--sa-magenta, #00C389) 70%, var(--sa-violet, #00A870)),
		0 14px 34px -12px color-mix(in srgb, var(--sa-magenta, #00C389) 60%, transparent);
}
.sa-receipt--stub .sa-rc__av { width: 66px; height: 66px; }

/* The name, in the gradient. #tie-wrapper: an ID-level article rule colours
   <b>, and the fill colour is what clips. */
.sa-receipt--champion .sa-rc__name b,
.sa-receipt--stub .sa-rc__name b,
#tie-wrapper .sa-receipt--champion .sa-rc__name b,
#tie-wrapper .sa-receipt--stub .sa-rc__name b {
	font-family: var(--sa-font-display);
	background: var(--sa-gradient); -webkit-background-clip: text; background-clip: text;
	color: transparent; -webkit-text-fill-color: transparent;
}

/* Champion: the tiles lit from within instead of a flat grey. */
.sa-receipt--champion .sa-rc__stat {
	background: linear-gradient(160deg, color-mix(in srgb, var(--sa-violet, #00A870) 12%, transparent), color-mix(in srgb, currentColor 4%, transparent));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 9%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
}

/* Actions: centred, equal height, under a rule; the cooldown and My Votes
   on the line beneath. */
.sa-receipt--champion .sa-rc__acts,
.sa-receipt--stub .sa-rc__acts {
	justify-content: center; gap: 10px 12px; width: 100%;
}
.sa-receipt--stub .sa-rc__acts {
	margin-top: 18px; padding-top: 16px;
	border-top: 1px solid color-mix(in srgb, currentColor 11%, transparent);
}
.sa-receipt--champion .sa-rc__share,
.sa-receipt--stub .sa-rc__share,
.sa-receipt--champion .sa-rc__rally,
.sa-receipt--stub .sa-rc__rally,
#tie-wrapper .sa-receipt--champion a.sa-rc__rally,
#tie-wrapper .sa-receipt--stub a.sa-rc__rally {
	min-height: 46px; padding-left: 1.4rem; padding-right: 1.4rem;
}
.sa-receipt--champion .sa-rc__cd,
.sa-receipt--champion .sa-rc__ready,
.sa-receipt--stub .sa-rc__cd,
.sa-receipt--stub .sa-rc__ready { flex-basis: 100%; order: 3; text-align: center; }
.sa-receipt--champion .sa-rc__my,
.sa-receipt--stub .sa-rc__my,
#tie-wrapper .sa-receipt--champion a.sa-rc__my,
#tie-wrapper .sa-receipt--stub a.sa-rc__my { margin-left: 0; order: 4; }
.sa-receipt--champion .sa-rc__x2,
.sa-receipt--stub .sa-rc__x2 { text-align: center; }

/* The champion and stub carry their eyebrow, name and race line as <p> inside
   .entry-content, whose ID-level prose rule set all three at body size — the
   name read no bigger than the race title under it. Restated at that depth. */
#the-post .entry-content .sa-receipt .sa-rc__eyebrow { margin: 0 0 6px; font-size: .66rem; line-height: 1.3; letter-spacing: .18em; }
#the-post .entry-content .sa-receipt--champion .sa-rc__name { margin: 2px 0 0; font-size: 1.6rem; line-height: 1.1; }
#the-post .entry-content .sa-receipt--stub .sa-rc__name { margin: 0; font-size: 1.35rem; line-height: 1.12; }
#the-post .entry-content .sa-receipt .sa-rc__sub { margin: 4px 0 0; font-size: .8rem; line-height: 1.35; }
#the-post .entry-content .sa-receipt .sa-rc__gap { font-size: .78rem; }

/* ── What to do next ─────────────────────────────────────────────────────── */

.sa-rc__next { margin-top: 18px; padding-top: 15px; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.sa-receipt--slip .sa-rc__next {
	margin: 0 22px; padding: 16px 0 18px; text-align: left;
	border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.sa-receipt--slip .sa-rc__nexth { text-align: center; }
/* The heading is a <p> inside .entry-content, whose ID-level prose rule set it
   at body size (16px) — it read as a second headline under the receipt. */
#tie-wrapper .sa-receipt .sa-rc__nexth,
#the-post .entry-content .sa-receipt .sa-rc__nexth { margin: 0 0 10px; font-size: .62rem; line-height: 1.4; letter-spacing: .16em; }
/* The stub's ticket is a closed shape, so this section sits outside it and
   would otherwise float on the page background with nothing holding it. Give
   it the card's own surface and tuck it under the ticket as one object. */
.sa-receipt--stub .sa-rc__next {
	margin: -1px 0 0; padding: 15px 20px 18px;
	background: var(--sa-surface-1, #111623);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-top: 0;
	border-radius: 0 0 var(--sa-radius, 16px) var(--sa-radius, 16px);
}
.sa-receipt--stub .sa-rc__ticket { border-radius: var(--sa-radius, 16px) var(--sa-radius, 16px) 0 0; }
/* …unless there is nothing to tuck: then the ticket keeps all four corners. */
.sa-receipt--stub .sa-rc__ticket:only-child { border-radius: var(--sa-radius, 16px); }
.sa-rc__nexth {
	margin: 0 0 10px; font-size: .6rem; font-weight: 800; letter-spacing: .14em;
	text-transform: uppercase; color: var(--sa-text-muted, #96A6C6);
}
.sa-rc__nextl {
	list-style: none; margin: 0; padding: 0; display: grid;
	/* minmax(0,…) never a bare fraction — a long vote title must be allowed to
	   shrink its column instead of forcing the row wider. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 8px;
}
/* A chevron column, so the row reads as somewhere to GO rather than as a
   disabled input field — which is exactly how the flat two-column version read
   whenever the vote had no featured image. */
.sa-rc__nextl a {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; gap: 10px; align-items: center;
	padding: 8px; border-radius: var(--sa-radius-sm, 12px);
	background: var(--sa-surface-2, #172033);
	border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
	text-decoration: none; color: inherit;
	transition: border-color .18s ease, transform .16s ease, background .18s ease;
}
.sa-rc__nextl a::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px;
	border-right: 2px solid currentColor; border-top: 2px solid currentColor;
	transform: rotate(45deg); opacity: .38;
	transition: opacity .18s ease, transform .18s ease;
}
@media (hover: hover) {
	.sa-rc__nextl a:hover {
		transform: translateY(-1px);
		border-color: color-mix(in srgb, var(--sa-vote, #3B82F6) 45%, transparent);
		background: color-mix(in srgb, var(--sa-vote, #3B82F6) 9%, var(--sa-surface-2, #172033));
	}
	.sa-rc__nextl a:hover::after { opacity: .85; transform: rotate(45deg) translate(1px, -1px); }
}
.sa-rc__nextl a:focus-visible {
	outline: 2px solid var(--sa-vote-2, #22D3EE); outline-offset: 2px;
}
.sa-rc__nextimg { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; display: block; }
/* A vote with no featured image gets the ⚽ mark rather than an empty grey square
   that reads as a failed image. */
.sa-rc__nextimg--none {
	position: relative;
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--sa-vote, #3B82F6) 26%, var(--sa-surface-1, #111623)),
		var(--sa-surface-1, #111623));
}
.sa-rc__nextimg--none::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 17px; height: 17px;
	background-color: color-mix(in srgb, var(--sa-vote-2, #22D3EE) 80%, transparent);
	-webkit-mask: var(--sa-heart-mask) center / contain no-repeat;
	mask: var(--sa-heart-mask) center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) {
	.sa-rc__nextl a, .sa-rc__nextl a::after { transition: none; }
	.sa-rc__nextl a:hover { transform: none; }
}
.sa-rc__nextbody { min-width: 0; display: grid; gap: 2px; }
.sa-rc__nextt {
	font-size: .8rem; font-weight: 700; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sa-rc__nextd { font-size: .64rem; font-weight: 800; letter-spacing: .04em; color: var(--sa-vote-2, #22D3EE); }
/* Empty until receipt.js fills it from data-sa-ends — no stray gap meanwhile. */
.sa-rc__nextd:empty { display: none; }

/* 🔴 .entry-content LEAK GUARD. The receipt is injected INTO the article, so
   single.css's prose rules apply to it — and `.single .entry-content ul > li`
   paints a gradient diamond ::before on every list item plus 1.9rem of indent.
   That marker showed up floating beside each next-up card. Prose styling must
   not reach a component that only happens to live in the same container, so
   these rules cancel it at the same specificity depth. */
.single .entry-content .sa-rc__nextl { margin: 0; padding: 0; }
.single .entry-content .sa-rc__nextl > li { padding-left: 0; margin: 0; }
.single .entry-content .sa-rc__nextl > li::before { content: none; display: none; }
.single .entry-content .sa-rc__dl { margin: 16px 0 6px; }

@media (max-width: 640px) {
	.sa-receipt--champion .sa-rc__in { padding: 15px; }
	.sa-receipt--champion .sa-rc__lead { grid-template-columns: 74px minmax(0, 1fr); gap: 13px; }
	.sa-rc__av { width: 76px; height: 94px; }
	.sa-receipt--champion .sa-rc__av { width: 74px; height: 92px; }
	.sa-rc__name, .sa-receipt--champion .sa-rc__name { font-size: 1.24rem; }
	.sa-rc__rank { font-size: 1.5rem; }

	/* Three tiles in ~330px would be 100px each — too narrow for "79,317" beside
	   a 10px uppercase label. Position and share stay paired on the top row
	   (both are short), and the gap figure takes the full width beneath, which is
	   also the number most worth the room. */
	.sa-receipt--champion .sa-rc__stats { margin-top: 15px; padding-top: 14px; }
	.sa-receipt--champion .sa-rc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.sa-receipt--champion .sa-rc__stat:last-child { grid-column: 1 / -1; }
	.sa-receipt--champion .sa-rc__statv,
	.sa-receipt--champion .sa-rc__statv.sa-rc__rank { font-size: 1.18rem; }
	.sa-receipt--champion .sa-rc__meter { gap: 10px; margin-top: 10px; }

	.sa-receipt--champion .sa-rc__foot { margin-top: 14px; padding-top: 13px; }
	/* Full-width button with the cooldown centred beneath it, rather than the two
	   fighting for one row and wrapping unevenly. */
	.sa-receipt--champion .sa-rc__acts { flex-direction: column; align-items: stretch; gap: 9px; }
	.sa-receipt--champion .sa-rc__cd,
	.sa-receipt--champion .sa-rc__ready { text-align: center; }
	.sa-rc__share { width: 100%; text-align: center; }
	.sa-receipt--champion .sa-rc__in { padding: 17px; }
	.sa-receipt--champion .sa-rc__rally,
	#tie-wrapper .sa-receipt--champion a.sa-rc__rally,
	.sa-receipt--stub .sa-rc__share,
	.sa-receipt--stub .sa-rc__rally,
	#tie-wrapper .sa-receipt--stub a.sa-rc__rally { width: 100%; justify-content: center; }
	.sa-receipt--stub .sa-rc__acts { flex-direction: column; align-items: stretch; }
	.sa-receipt--champion .sa-rc__my,
	#tie-wrapper .sa-receipt--champion a.sa-rc__my,
	.sa-receipt--stub .sa-rc__my,
	#tie-wrapper .sa-receipt--stub a.sa-rc__my { align-self: center; }
	.sa-receipt--slip .sa-rc__slip { padding: 24px 16px 18px; }
	.sa-receipt--slip .sa-rc__acts { flex-direction: column; align-items: stretch; }
	.sa-receipt--slip .sa-rc__share,
	.sa-receipt--slip .sa-rc__rally,
	#tie-wrapper .sa-receipt--slip a.sa-rc__rally { width: 100%; justify-content: center; }
	.sa-receipt--slip .sa-rc__cd,
	.sa-receipt--slip .sa-rc__ready,
	.sa-receipt--slip .sa-rc__my,
	#tie-wrapper .sa-receipt--slip a.sa-rc__my { align-self: center; text-align: center; }
	.sa-receipt--slip .sa-rc__next { margin: 0 16px; }
	.sa-receipt--stub .sa-rc__ticket { grid-template-columns: minmax(0, 1fr); }
	.sa-receipt--stub .sa-rc__stub { padding: 14px; }
	.sa-receipt--stub .sa-rc__stub::before {
		left: 12px; right: 12px; top: 0; bottom: auto;
		border-left: 0; border-top: 2px dashed color-mix(in srgb, currentColor 22%, transparent);
	}
	.sa-receipt--stub .sa-rc__notch--t { left: -8px; top: -8px; }
	.sa-receipt--stub .sa-rc__notch--b { left: auto; right: -8px; top: -8px; bottom: auto; }
}

/* ── Vote integrity panel (opt-in; see shining_render_integrity) ─────────── */

.sa-integ {
	margin: 20px 0;
	padding: 14px 18px;
	border-radius: var(--sa-radius-sm, 12px);
	background: var(--sa-surface-1, rgba(255, 255, 255, .03));
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sa-integ__h {
	margin: 0 0 8px;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sa-text-muted, #9aa0ab);
}
.sa-integ__stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.sa-integ__stat { display: flex; align-items: baseline; gap: .4rem; font-size: .78rem; color: var(--sa-text-muted, #9aa0ab); }
.sa-integ__stat b { font-size: 1.05rem; font-weight: 800; color: inherit; font-variant-numeric: tabular-nums; }
.sa-integ__t { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--sa-text-muted, #9aa0ab); }
