/*
 * Football Arena — premium widget layer.
 *
 * Two halves:
 *   1. `.sa-w*` — the four Shining widgets (Live Standings / Closing Soon /
 *      Trending Idols / Winners' Circle) + compact sidebar tuning for the
 *      Ongoing Votes cards.
 *   2. A premium restyle of the GENERIC widget area (Jannah's editorial
 *      widgets) — typography, spacing, hover micro-interactions. Sidebar
 *      widgets stay FLAT by design (skin.css strips the .container-wrapper
 *      panel); premium here means rhythm and detail, not boxes.
 *
 * Token-driven throughout (tokens.css is the single source of truth).
 */

/* ══════════════════════════════════════════════════════════════════════════
   1a. Widget head — shared crown for every sidebar widget.

   The markup comes from shining_widget_head_params() (widgets.php), which
   rewrites before_title/after_title for every widget in a non-footer area:

       .widget-title.sa-wh > .the-subtitle
           .sa-wh__stack
               .sa-wh__eyebrow   ← tiny tracked gradient line ("✦ Fan voted")
               .sa-wh__title     ← the widget's title, display face
           .sa-wh__chip          ← a real fact ("4 open", "Jul 2026")

   Two parts of the old head are gone on purpose. Jannah's `widget-title-icon`
   (the decorative pin, the same glyph family on every widget) is not printed at
   all any more — dropping its after_title took it with it. And the 44px
   gradient stub is replaced by nothing: the eyebrow already brands the block,
   so a rule under it would be a third divider in a stack that has two.

   No <hr>-style border here either — the space between head and body IS the
   separation. That is what makes this treatment read as editorial rather than
   as a boxed module.
   ══════════════════════════════════════════════════════════════════════════ */
.sidebar .widget {
	margin-bottom: 2.2rem;
}
.sidebar .widget-title,
.sa-wh {
	margin-bottom: 1rem;
}

.sa-wh .the-subtitle {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: 0;
	position: relative;
	/* Jannah's own head styles are per-option and land at high specificity
	   (`#tie-body .sidebar .widget-title`); this head owns its own surface. */
	background: none;
	border: 0;
}
/* Whatever a "widget title style" option in the base theme wanted to draw. */
#tie-body .sidebar .widget-title.sa-wh::before,
#tie-body .sidebar .widget-title.sa-wh::after,
#tie-body .sidebar .widget-title.sa-wh .the-subtitle::before,
#tie-body .sidebar .widget-title.sa-wh .the-subtitle::after {
	content: none !important;
	display: none !important;
}

.sa-wh__stack {
	display: block;
	min-width: 0;
}
.sa-wh__eyebrow {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: .24rem;
	font-family: var(--sa-font-body);
	font-size: .6rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .24em;
	text-transform: uppercase;
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-wh__spark {
	/* The ✦ rides the gradient with the words — it is one painted line. */
	font-size: .82em;
	line-height: 1;
}
.sa-wh__title {
	display: block;
	font-family: var(--sa-font-display);
	font-size: 1.34rem;
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -.015em;
	color: var(--sa-text);
	text-transform: none;
}
.sa-wh__chip {
	margin-left: auto;
	margin-top: .3rem;
	flex: none;
	align-self: flex-start;
	font-size: .62rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .13em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--sa-text-muted);
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: 4px 10px;
}

/* The head never renders the base theme's icon; belt and braces for any widget
   area that somehow still prints one (a plugin re-registering a sidebar). */
.sa-wh .widget-title-icon {
	display: none;
}

/* Legacy head — kept for any widget area the rewrite does not reach (the
   filter is scoped to non-footer areas, and a plugin can opt one out). */
.sidebar .widget-title:not(.sa-wh) .the-subtitle {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: .01em;
	padding-bottom: .55rem;
	position: relative;
}
.sidebar .widget-title:not(.sa-wh) .the-subtitle::before {
	content: "\2726"; /* ✦ */
	font-size: .78em;
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transform: translateY(-1px);
}
.sidebar .widget-title:not(.sa-wh) .the-subtitle::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-gradient);
}

/* ══════════════════════════════════════════════════════════════════════════
   1b. Shared Shining-widget atoms.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w {
	font-size: .88rem;
}
.sa-w ol,
.sa-w ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Avatar — the shared focal-crop formula, verbatim from vote-frame.css
   (`.sa-nom__av--photo img`), renamed only: the image is blown up to
   308% × zoom of the frame and offset by the per-nominee focal point. */
.sa-w-av {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--sa-gradient);
	color: var(--sa-on-accent);
	font-family: var(--sa-font-display);
	font-size: .72rem;
	font-weight: 800;
}
.sa-w-av--photo {
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-border);
}
.sa-w-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%;
}

/* Group tag riding a name. */
.sa-w-grp {
	font-style: normal;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--sa-pink);
}

/* Footer row: context + "more" link. */
.sa-w-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: .9rem;
	padding-top: .7rem;
	border-top: 1px solid var(--sa-border);
	font-size: .78rem;
	color: var(--sa-text-dim);
}
.sa-w-more {
	margin-left: auto;
	font-family: var(--sa-font-display);
	font-size: .78rem;
	font-weight: 700;
	color: var(--sa-violet-light);
	transition: color .18s ease, transform .18s ease;
}
.sa-w-more:hover {
	color: var(--sa-pink);
	transform: translateX(2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   1c. Live Standings.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-stand__poll {
	margin: 0 0 .8rem;
	font-size: .78rem;
	font-weight: 600;
	color: var(--sa-text-dim);
}
.sa-w-stand__item + .sa-w-stand__item {
	margin-top: .35rem;
}
.sa-w-stand__row {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem .55rem;
	border-radius: var(--sa-radius-sm);
	color: var(--sa-text);
	transition: background .18s ease, transform .18s ease;
}
a.sa-w-stand__row:hover {
	background: var(--sa-surface-1);
	transform: translateX(2px);
}
a.sa-w-stand__row:hover .sa-w-stand__name {
	color: var(--sa-violet-light);
}
.sa-w-stand__rank {
	flex: 0 0 1.15rem;
	font-family: var(--sa-font-display);
	font-size: .8rem;
	font-weight: 700;
	color: var(--sa-text-dim);
	text-align: center;
}
.sa-w-stand__item.is-lead .sa-w-stand__rank {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-w-stand__item.is-lead .sa-w-av {
	border-color: var(--sa-border-strong);
	box-shadow: 0 0 0 2px rgba(0,195,137, .18);
}
.sa-w-stand__meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .3rem;
}
.sa-w-stand__name {
	font-weight: 600;
	font-size: .85rem;
	line-height: 1.25;
	color: var(--sa-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .18s ease;
}
.sa-w-stand__bar {
	display: block;
	height: 4px;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-surface-2);
	overflow: hidden;
}
.sa-w-stand__bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--sa-gradient);
	transition: width .6s cubic-bezier(.22, .8, .3, 1);
}
.sa-w-stand__val {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .1rem;
	line-height: 1.1;
}
.sa-w-stand__val b {
	font-family: var(--sa-font-display);
	font-size: .82rem;
	font-weight: 700;
	color: var(--sa-text);
}
.sa-w-stand__val i {
	font-style: normal;
	font-size: .68rem;
	color: var(--sa-text-dim);
}
.sa-w-stand__total b {
	color: var(--sa-text-muted);
	font-weight: 700;
}
/* A vote count that just moved (live refresh) pops once. */
@keyframes sa-w-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); color: var(--sa-pink); }
	100% { transform: scale(1); }
}
.sa-w-bump {
	display: inline-block;
	animation: sa-w-bump .45s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   1d. Closing Soon.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-close__item + .sa-w-close__item {
	margin-top: .4rem;
}
.sa-w-close__row {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	padding: .65rem .7rem;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sa-w-close__row:hover {
	background: var(--sa-surface-1);
	border-color: var(--sa-border-strong);
	transform: translateY(-1px);
}
.sa-w-close__title {
	font-weight: 600;
	font-size: .85rem;
	line-height: 1.3;
	color: var(--sa-text);
	transition: color .18s ease;
}
.sa-w-close__row:hover .sa-w-close__title {
	color: var(--sa-violet-light);
}
.sa-w-close__meta {
	display: flex;
	align-items: center;
	gap: .6rem;
}
.sa-w-close__cd {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .72rem;
	font-weight: 700;
	color: var(--sa-text-muted);
	background: var(--sa-surface-2);
	border-radius: var(--sa-radius-pill);
	padding: .22rem .6rem;
}
.sa-w-close__cd b {
	font-family: var(--sa-font-display);
	color: var(--sa-text);
}
.sa-w-close__ic {
	width: .8rem;
	height: .8rem;
}
/* Under 24h: the chip warms up. */
.sa-w-close__cd.is-soon {
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
}
.sa-w-close__cd.is-soon b {
	color: var(--sa-on-accent, #fff);
}
.sa-w-close__cd.is-closed {
	background: var(--sa-surface-2);
	color: var(--sa-text-dim);
}
.sa-w-close__votes {
	font-size: .74rem;
	color: var(--sa-text-dim);
}

/* ══════════════════════════════════════════════════════════════════════════
   1e. Trending Idols.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-trend__item + .sa-w-trend__item {
	margin-top: .35rem;
}
.sa-w-trend__row {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem .55rem;
	border-radius: var(--sa-radius-sm);
	transition: background .18s ease, transform .18s ease;
}
a.sa-w-trend__row:hover {
	background: var(--sa-surface-1);
	transform: translateX(2px);
}
a.sa-w-trend__row:hover .sa-w-trend__name {
	color: var(--sa-violet-light);
}
.sa-w-trend__rank {
	flex: 0 0 1.15rem;
	font-family: var(--sa-font-display);
	font-size: .8rem;
	font-weight: 700;
	color: var(--sa-text-dim);
	text-align: center;
}
.sa-w-trend__item:first-child .sa-w-trend__rank {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sa-w-trend__meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .12rem;
}
.sa-w-trend__name {
	font-weight: 600;
	font-size: .85rem;
	line-height: 1.25;
	color: var(--sa-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .18s ease;
}
.sa-w-trend__poll {
	font-size: .7rem;
	color: var(--sa-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sa-w-trend__chip {
	flex: 0 0 auto;
	font-family: var(--sa-font-display);
	font-size: .72rem;
	font-weight: 700;
	color: var(--sa-text-muted);
	background: var(--sa-surface-2);
	border-radius: var(--sa-radius-pill);
	padding: .22rem .55rem;
}
.sa-w-trend__chip.is-up {
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
}

/* ══════════════════════════════════════════════════════════════════════════
   1f. Winners' Circle — rotating champion spotlight + avatar-thumb pager.
   Server renders slide 0 visible, the rest [hidden]; widgets.js only swaps
   which one shows. The shine sweep is FINITE (two passes per activation,
   armed by JS) per the house shine rule.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-win__slide[hidden] {
	display: none; /* explicit — a display rule on the slide would outrank [hidden] */
}

/* The result stands on a card of its own, matching the champion cards on the
   homepage (.sa-lbw): an accent bloom out of the top-right corner over a
   surface that lifts down the panel, and a hairline of light along the top
   edge. Two surfaces showing the same thing should look like one system —
   before this the sidebar's champion floated loose on the widget background. */
.sa-w-win__stage {
	position: relative;
	padding: .9rem .95rem 1rem;
	border-radius: var(--sa-radius);
	border: 1px solid var(--sa-border);
	background:
		radial-gradient(120% 88% at 100% 0%, color-mix(in srgb, var(--sa-violet) 15%, transparent) 0%, transparent 62%),
		linear-gradient(180deg, var(--sa-surface-2), var(--sa-surface-1) 72%);
	overflow: hidden;
}
.sa-w-win__stage::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sa-violet) 55%, #fff) 28%, transparent 82%);
	opacity: .55;
	pointer-events: none;
}
.sa-w-win__hero {
	display: flex;
	align-items: center;
	gap: .75rem;
}

/* Gradient ring around the champion, with the bounded shine sweep. */
.sa-w-win__ring {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	padding: 3px;
	border-radius: 50%;
	background: var(--sa-gradient);
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0,195,137, .22);
}
.sa-w-win__ring .sa-w-av {
	width: 100%;
	height: 100%;
	font-size: .95rem;
}
.sa-w-win__ring::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
	transform: translateX(-130%);
	pointer-events: none;
}
.sa-w-win__ring.is-lit::after {
	animation: sa-w-winshine 1.15s ease .2s 2;
}
@keyframes sa-w-winshine {
	from { transform: translateX(-130%); }
	to   { transform: translateX(130%); }
}

.sa-w-win__who {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.sa-w-win__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem;
}
.sa-w-win__badge {
	display: inline-flex;
	align-items: center;
	gap: .28rem;
	font-family: var(--sa-font-display);
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sa-on-accent, #fff);
	background: var(--sa-gradient);
	border-radius: var(--sa-radius-pill);
	padding: .2rem .55rem;
	box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--sa-violet) 90%, transparent);
}
.sa-w-win__heart {
	width: .72rem;
	height: .72rem;
}
.sa-w-win__month {
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--sa-text-dim);
	background: var(--sa-surface-2);
	border-radius: var(--sa-radius-pill);
	padding: .2rem .55rem;
}
.sa-w-win__name {
	font-family: var(--sa-font-display);
	font-size: 1.04rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--sa-text);
}
.sa-w-win__name .sa-w-grp {
	font-size: .66rem;
}

.sa-w-win__for {
	margin: .6rem 0 0;
	font-size: .8rem;
	line-height: 1.4;
	color: var(--sa-text-dim);
}
.sa-w-win__won {
	font-weight: 700;
	color: var(--sa-text-muted);
}
.sa-w-win__for a {
	font-weight: 600;
	color: var(--sa-text);
	transition: color .18s ease;
}
.sa-w-win__for a:hover {
	color: var(--sa-violet-light);
}

/* Vote-share bar + counts. */
.sa-w-win__bar {
	display: block;
	height: 6px;
	margin-top: .6rem;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-surface-2);
	overflow: hidden;
}
.sa-w-win__bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--sa-gradient);
	transition: width .8s cubic-bezier(.22, .8, .3, 1);
}
.sa-w-win__votes {
	margin: .45rem 0 0;
	font-size: .78rem;
	color: var(--sa-text-dim);
}
.sa-w-win__votes b {
	font-family: var(--sa-font-display);
	font-size: .9rem;
	font-weight: 800;
	/* The champion's number carries the accent on both surfaces. */
	color: var(--sa-violet-light);
}
/* A footnote, and a hairline says so better than a smaller font alone. */
.sa-w-win__runner {
	margin: .55rem 0 0;
	padding-top: .5rem;
	border-top: 1px solid var(--sa-border);
	font-size: .74rem;
	color: var(--sa-text-dim);
}

/* Avatar-thumb pager: the recent champions as round photo buttons. */
/* The bench, under the stage: every other recent champion as a face you can
   flip to. Outside the card so the card stays "this result". */
.sa-w-win__pager {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: .75rem;
}
.sa-w-win__thumb {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 2px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: .55;
	transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.sa-w-win__thumb .sa-w-av {
	width: 100%;
	height: 100%;
	font-size: .68rem;
}
.sa-w-win__thumb:hover {
	opacity: .85;
	transform: translateY(-1px);
}
.sa-w-win__thumb.is-on {
	opacity: 1;
	background: var(--sa-gradient);
}
.sa-w-win__thumb:focus-visible {
	opacity: 1;
	outline: 2px solid var(--sa-violet-light);
	outline-offset: 2px;
}
.sa-w-win__count {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════════════════
   1g. Ongoing Votes cards in a sidebar — compact single column.
   The grid cards are sized for main-content width; a 30% rail needs a
   tighter rhythm, smaller type and no multi-column squeeze.
   ══════════════════════════════════════════════════════════════════════════ */
.sidebar .widget .sa-votes--grid {
	grid-template-columns: minmax(0, 1fr);
	gap: .9rem;
}
.sidebar .widget .sa-votes-section {
	margin: 0;
}
.sidebar .widget .sa-votecard__title {
	font-size: .92rem;
	line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. Generic widget-area restyle (Jannah editorial widgets).
   ══════════════════════════════════════════════════════════════════════════ */

/* Posts-list widget: rounded thumbs, gentle slide + tint on hover. */
.sidebar .widget.posts-list-big-first .post,
.sidebar .widget.posts-list li {
	transition: transform .18s ease;
}
.sidebar .widget.posts-list li:hover {
	transform: translateX(2px);
}
.sidebar .widget .post-thumbnail,
.sidebar .widget .post-thumbnail img {
	border-radius: var(--sa-radius-sm);
	overflow: hidden;
}
.sidebar .widget .post-title a {
	transition: color .18s ease;
}
.sidebar .widget .post-title a:hover {
	color: var(--sa-violet-light);
}
.sidebar .widget .post-meta {
	color: var(--sa-text-dim);
}

/* Tabs widget: pill tabs on a flat rail. */
.sidebar .widget-tabs .tabs-wrapper .tabs li {
	border-radius: var(--sa-radius-pill);
	overflow: hidden;
}
.sidebar .widget-tabs .tabs-wrapper .tabs li a {
	border-radius: var(--sa-radius-pill);
	font-family: var(--sa-font-display);
	font-size: .78rem;
	font-weight: 700;
}
.sidebar .widget-tabs .tabs-wrapper .tabs li.active a {
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
}

/* Categories / archive-style link lists: count as a soft pill on the right. */
.sidebar .widget_categories li,
.sidebar .widget.categories-widget li {
	border-color: var(--sa-border);
}
.sidebar .widget_categories li a:hover,
.sidebar .widget.categories-widget li a:hover {
	color: var(--sa-violet-light);
}

/* The Categories Grid widget's "horizontal" layout is a `flex-wrap: nowrap`
   strip with `overflow-x: auto` — designed for a full-width row, where the
   categories fit. In a sidebar rail (30% of the measure) the second chip is
   sliced mid-word and the only way to reach the rest is a horizontal scroll
   with no scrollbar and nothing to suggest one exists: it reads as a broken
   widget, not as a scroller. In a rail it wraps instead, which is what the
   space asks for. Untouched everywhere else — the strip is right where it has
   room. */
.sidebar .widget .categories-block-horizontal .categories-layout-scroll {
	flex-wrap: wrap;
	overflow-x: visible;
}

/* Tag cloud → brand pills. */
.sidebar .widget .tagcloud a {
	display: inline-block;
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	padding: .28rem .7rem;
	margin: 0 .3rem .45rem 0;
	font-size: .74rem !important;
	color: var(--sa-text-muted);
	transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.sidebar .widget .tagcloud a:hover {
	color: var(--sa-pink);
	border-color: var(--sa-border-strong);
	transform: translateY(-1px);
}

/* Newsletter + login inputs: flat fields with a brand focus ring. */
.sidebar .widget input[type="text"],
.sidebar .widget input[type="email"],
.sidebar .widget input[type="password"],
.sidebar .widget input[type="url"] {
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
	color: var(--sa-text);
	transition: border-color .18s ease;
}
.sidebar .widget input[type="text"]:focus,
.sidebar .widget input[type="email"]:focus,
.sidebar .widget input[type="password"]:focus,
.sidebar .widget input[type="url"]:focus {
	border-color: var(--sa-border-strong);
}

/* Comments-avatar widget: round faces, hover tint. */
.sidebar .widget.comments-avatar li .comment-avatar img {
	border-radius: 50%;
	border: 1px solid var(--sa-border);
}

/* Social icons widget: round chips with a gradient hover. */
.sidebar .widget .social-icons a {
	border-radius: 50%;
	transition: transform .18s ease, box-shadow .18s ease;
}
.sidebar .widget .social-icons a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* ══════════════════════════════════════════════════════════════════════════
   1g. Latest News — a lead featured card + compact photo rows.
   Accent tint rides on --vc-acc (set by shining_vertical_style_attr() per card);
   it falls back to the palette pink when a post has no featured category.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-news__lead {
	display: block;
	margin-bottom: 1.1rem;
	color: var(--sa-text);
}
.sa-w-news__lwrap {
	position: relative;
	display: block;
	border-radius: var(--sa-radius);
	overflow: hidden;
}
.sa-w-news__lfig {
	position: relative;
	display: block;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: var(--sa-surface-2);
}
.sa-w-news__lfig .sa-w-news__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.sa-w-news__lead:hover .sa-w-news__lfig .sa-w-news__img {
	transform: scale(1.05);
}
/* A bottom gradient scrim so the overlay chip stays legible over any photo. */
.sa-w-news__lwrap::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	background: linear-gradient(to top, rgba(10, 7, 16, .82), rgba(10, 7, 16, 0));
	pointer-events: none;
}
.sa-w-news__lbody {
	display: block;
	padding-top: .7rem;
}
.sa-w-news__ltitle {
	display: block;
	font-family: var(--sa-font-display);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--sa-text);
	transition: color .18s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sa-w-news__lead:hover .sa-w-news__ltitle {
	color: var(--vc-acc, var(--sa-pink));
}

/* The category chip — frosted overlay on the lead image, inline pill on rows. */
.sa-w-news__cat {
	font-family: var(--sa-font-display);
	font-size: .64rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--vc-acc-2, var(--sa-pink));
}
.sa-w-news__cat--over {
	position: absolute;
	left: .6rem;
	bottom: .6rem;
	z-index: 1;
	padding: .28rem .55rem;
	border-radius: var(--sa-radius-pill);
	color: var(--sa-on-accent, #fff);
	background: color-mix(in srgb, var(--vc-acc, var(--sa-pink)) 78%, transparent);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

/* Compact rows. */
.sa-w-news__item + .sa-w-news__item {
	margin-top: .3rem;
	padding-top: .75rem;
	border-top: 1px solid var(--sa-border);
}
.sa-w-news__row {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	padding: .35rem .3rem;
	margin: 0 -.3rem;
	border-radius: var(--sa-radius-sm);
	color: var(--sa-text);
	transition: background .18s ease;
}
.sa-w-news__row:hover {
	background: var(--sa-surface-1);
}
.sa-w-news__thumb {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: var(--sa-radius-sm);
	overflow: hidden;
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-border);
}
.sa-w-news__thumb .sa-w-news__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.sa-w-news__row:hover .sa-w-news__thumb .sa-w-news__img {
	transform: scale(1.07);
}
/* No-image fallback tile. */
.sa-w-news__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.2rem;
	background: var(--sa-gradient);
	color: var(--sa-on-accent);
}
.sa-w-news__lfig .sa-w-news__ph {
	font-size: 2rem;
}
.sa-w-news__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .18rem;
}
.sa-w-news__title {
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.32;
	color: var(--sa-text);
	transition: color .18s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sa-w-news__row:hover .sa-w-news__title {
	color: var(--vc-acc, var(--sa-pink));
}

/* Meta row — date · reading time. */
.sa-w-news__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .3rem;
	margin-top: .1rem;
	font-size: .72rem;
	color: var(--sa-text-dim);
}
.sa-w-news__lbody .sa-w-news__meta {
	margin-top: .45rem;
}
.sa-w-news__sep {
	font-style: normal;
	opacity: .5;
}
.sa-w-news__rt {
	color: var(--sa-text-muted);
}

/* Reduced motion: keep every hover/count transition instant, never shine. */
@media (prefers-reduced-motion: reduce) {
	.sa-w-win__ring.is-lit::after {
		animation: none;
	}
	.sa-w-stand__bar i,
	.sa-w-stand__row,
	.sa-w-trend__row,
	.sa-w-close__row,
	.sa-w-win__bar i,
	.sa-w-win__thumb,
	.sa-w-win__for a,
	.sa-w-more,
	.sa-w-news__row,
	.sa-w-news__title,
	.sa-w-news__ltitle,
	.sa-w-news__img,
	.sidebar .widget.posts-list li,
	.sidebar .widget .tagcloud a,
	.sidebar .widget .social-icons a {
		transition: none;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   1h. Poll Winner — "The Vitrine".

   One winner poster at a time in a fixed 4:5 frame, edge-lit by a one-pixel
   gradient rim with a soft bloom behind it, its caption laid OVER the artwork
   on a scrim, and the result plus the way in underneath.

   🔴 THE RATIO IS FIXED, AND THAT REVERSES AN EARLIER RULE. This block used to
   say "the poster is never cropped — the frame takes whatever ratio the artwork
   has", written after a 4:5 `object-fit: cover` sliced the sides off a 16:9
   featured-image fallback. The cropping was real; the conclusion was too broad.
   Because every frame shares one grid cell (below), the stage grows to the
   tallest of them, so ONE 16:9 photo among 4:5 posters left ~430px of dead
   space under it — measured on the live install, 2026-09-01.

   `contain` instead of `cover` keeps the whole artwork AND the fixed ratio; the
   band it leaves is filled by a blurred copy of the same file, emitted server
   side only when the source is not already 4:5 (shining_pw_needs_backdrop), so
   a purpose-made poster still costs exactly one image.
   ══════════════════════════════════════════════════════════════════════════ */
/* The stage stacks every frame in ONE grid cell, so its height is the TALLEST
   frame's and stepping through the pager never resizes the sidebar under the
   reader's cursor. Frames that are not showing are `visibility: hidden`, which
   also takes them out of the tab order and the accessibility tree — no `hidden`
   attribute, so there is no display:none/display:grid fight to lose. Without
   JavaScript the server-marked `.is-on` frame is simply the one that shows. */
.sa-pw__stage {
	display: grid;
}
.sa-pw__slide {
	grid-area: 1 / 1;
	display: grid;
	gap: .7rem;
	align-content: start;
	transition: opacity .28s ease;
}
.sa-pw__slide:not(.is-on) {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* The frame: a 1px gradient edge, and a bloom that leaks out from behind it.
   The bloom sits at z-index 0 UNDER the artwork (z-index 1) rather than at -1:
   a negative index would escape this element (it creates no stacking context of
   its own) and paint behind the page surface, where nothing can see it.
   --vc-acc is the entry's category accent when it has one; the palette gradient
   otherwise. */
.sa-pw__shot {
	position: relative;
	display: block;
	padding: 1px;
	border-radius: var(--sa-radius);
	background: var(--sa-gradient);
	box-shadow: 0 20px 48px -20px rgba(0, 0, 0, .92);
	color: inherit;
}
.sa-pw__shot::after {
	content: "";
	position: absolute;
	inset: 18% 6% -9%;
	z-index: 0;
	border-radius: 50%;
	background: var(--vc-grad, var(--sa-gradient));
	filter: blur(38px);
	opacity: .3;
	pointer-events: none;
}

/* One ratio for every entry. `contain` on the poster, `cover` on the blurred
   backdrop underneath it. */
.sa-pw__art {
	position: relative;
	z-index: 1;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: calc(var(--sa-radius) - 1px);
	background: var(--sa-bg-2);
}
.sa-pw__back {
	position: absolute;
	inset: -12%;
	width: 124%;
	height: 124%;
	object-fit: cover;
	filter: blur(26px) saturate(1.2) brightness(.5);
	transform: scale(1.06);
}
.sa-pw__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s ease;
}
/* Only the letterboxed case: sit the artwork high so the band it leaves gathers
   under it, where the shelf already is. */
.sa-pw__art--fit .sa-pw__img {
	object-position: 50% 18%;
}
a.sa-pw__shot:hover .sa-pw__img {
	transform: scale(1.025);
}

/* Chips ride the top edge: category on the left (drawn only when the set spans
   more than one), month on the right. */
.sa-pw__chips {
	position: absolute;
	z-index: 2;
	inset: 9px 9px auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.sa-pw__cat {
	margin-right: auto;
	font-size: .55rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--sa-on-accent);
	background: var(--vc-grad, var(--sa-gradient));
	border-radius: var(--sa-radius-pill);
	padding: 5px 9px;
}
.sa-pw__month {
	font-size: .56rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(6, 8, 14, .62);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--sa-radius-pill);
	padding: 4px 9px;
}

/* The shelf sits ON the artwork over a scrim. That is what lets an award title
   of any length cost the frame nothing in height — the reason the stage can be
   one grid cell without sizing itself to the wordiest entry. */
.sa-pw__shelf {
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	display: block;
	padding: 3rem .85rem .85rem;
	/* Deep on purpose: a winner poster carries its OWN name lockup at the
	   bottom, and a light scrim let it ghost through behind the widget's
	   caption — two names, one on top of the other. */
	background: linear-gradient(to top, rgba(4, 6, 11, .985) 26%, rgba(4, 6, 11, .9) 56%, transparent);
}
.sa-pw__award {
	display: block;
	font-size: .58rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--vc-acc-2, var(--sa-pink));
	margin-bottom: .3rem;
}
.sa-pw__name {
	display: block;
	font-family: var(--sa-font-display);
	font-size: 1.36rem;
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.025em;
	color: #fff;
}
.sa-pw__idol {
	display: block;
}
.sa-pw__grp {
	display: block;
	margin-top: .26rem;
	font-style: normal;
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
}

.sa-pw__stat {
	margin: 0;
	display: flex;
	align-items: center;
	gap: .45rem;
	flex-wrap: wrap;
	font-size: .76rem;
	color: var(--sa-text-muted);
	font-variant-numeric: tabular-nums;
}
.sa-pw__stat b {
	color: var(--sa-text);
	font-weight: 700;
}
.sa-pw__dot {
	width: 3px;
	height: 3px;
	flex: none;
	border-radius: 50%;
	background: var(--sa-text-dim);
}

/* The way in. Uppercase, because every call to action on this site is. */
.sa-pw__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .68rem .9rem;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-gradient);
	color: var(--sa-on-accent);
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: transform .16s ease, box-shadow .16s ease;
}
.sa-pw__cta:hover,
.sa-pw__cta:focus-visible {
	color: var(--sa-on-accent);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -12px var(--sa-violet);
}
.sa-pw__cta i {
	font-style: normal;
}

/* Pager: a segmented rail. Six identical dots say "there are more"; segments
   say how many more and which one you are on. The bar itself is 3px, so the
   button carries vertical padding to reach a real hit area. */
.sa-pw__pager {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: .55rem;
}
.sa-pw__seg {
	appearance: none;
	flex: 1;
	padding: 7px 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}
.sa-pw__seg::before {
	content: "";
	display: block;
	height: 3px;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-text-dim);
	opacity: .4;
	transition: opacity .22s ease, background .22s ease;
}
.sa-pw__seg:hover::before {
	opacity: .7;
}
.sa-pw__seg.is-on::before {
	opacity: 1;
	background: var(--sa-gradient);
}
.sa-pw__count {
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
	font-size: .62rem;
}

@media (prefers-reduced-motion: reduce) {
	.sa-pw__img,
	.sa-pw__cta,
	.sa-pw__seg::before,
	.sa-pw__slide {
		transition: none;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Idol Birthdays (birthdays.php) — widget + `shining/birthdays` block.
   Flat rows; today's celebrants get the gradient ring and a rose label.
   ══════════════════════════════════════════════════════════════════════════ */
.sa-w-bday__item[hidden] { display: none !important; } /* display outranks [hidden] */
.sa-w-bday__item + .sa-w-bday__item { border-top: 1px solid var(--sa-border); }
.sa-w-bday__row {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .55rem 0;
	color: var(--sa-text) !important;
	text-decoration: none !important;
}
.sa-w-bday__body { display: grid; min-width: 0; flex: 1 1 auto; gap: .1rem; }
.sa-w-bday__name {
	font-family: var(--sa-font-display);
	font-weight: 700;
	font-size: .9rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sa-w-bday__meta { font-size: .76rem; color: var(--sa-text-dim); }
.sa-w-bday__cake { flex: none; font-size: 1rem; opacity: .35; }
.sa-w-bday__item.is-today .sa-w-av { box-shadow: 0 0 0 2px var(--sa-bg), 0 0 0 4px var(--sa-heart); }
.sa-w-bday__item.is-today .sa-w-bday__when { color: var(--sa-heart); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sa-w-bday__item.is-today .sa-w-bday__cake { opacity: 1; }
a.sa-w-bday__row:hover .sa-w-bday__name { color: var(--sa-pink); }

.sa-bday-block { margin: 2rem 0; }
.sa-bday-block .sa-bday-block__title {
	margin: 0 0 .6rem !important;
	font-family: var(--sa-font-display);
	font-size: 1.3rem !important;
}
.sa-bday-block .sa-bday-block__title::before { content: none !important; }
