/**
 * Follow CTA — the inline-SVG social block.
 *
 * Split out of vote-frame.css. That file is the vote page's whole surface —
 * standings, nominees, the holo panel, the pulse strip, the receipt — and at
 * 94 KB it was the single heaviest stylesheet the site shipped. The Follow band
 * is placed on the HOMEPAGE (via the Theme Builder module), and it was dragging
 * all 94 KB along with it to use twelve selectors: measured, 15 of vote-frame's
 * 259 class selectors matched anything in the homepage DOM, and all but two of
 * those fifteen were `.sa-follow__*`.
 *
 * So the band now owns its rules. Nothing here changed except which file it
 * lives in — the declarations are verbatim, including the list resets copied
 * down from vote-frame.css's shared block, so the band renders identically on a
 * page that loads both files and on one that loads only this.
 *
 * @package Shining
 */

/* ------------------------------------------------------------------ */
/* Semantic list resets                                               */
/* ------------------------------------------------------------------ */
/* The band is a real <ul>. Inside .entry-content that means inheriting Jannah's
   prose list styling — bullets, a left indent, a per-item font-size — none of
   which belong on a layout grid. !important because the prose rules are
   element-based inside a class-scoped ancestor and LiteSpeed combines CSS, so
   source order cannot settle it. */
.sa-follow__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.sa-follow__cell {
	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-follow__cell::marker { content: ""; }
.sa-follow__cell::before { content: none !important; }

/* ==========================================================================
   Follow CTA — inline-SVG social block, no images, no JS
   ========================================================================== */

/* The gradient-text utility `.sa-grad` lives in skin.css. Every heading in THIS
   file leans on it, which was fine on the front end and broke the moment the
   block was previewed in the editor with only tokens.css + this file loaded:
   `.sa-grad` was undefined, so the titles fell back to black on a dark card.
   A stylesheet should stand up on its own — these three carry the treatment
   themselves. Identical declarations, so skin.css winning changes nothing. */
.sa-follow__title {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sa-follow {
	position: relative;
	/* Narrower than it was (900px). The tiles below are compact squares now, and
	   six of them centred in a 900px card left the block reading as a wide empty
	   panel with something small floating in it. */
	max-width: 720px;
	margin: 34px auto;
	padding: 22px 18px 20px;
	border: 1px solid var(--sa-border);
	border-radius: 20px;
	background:
		radial-gradient(120% 100% at 50% -30%, rgba(255, 255, 255, .05), transparent 62%),
		var(--sa-surface-2);
	overflow: hidden;
}
/* Top hairline: full-bleed gradient that fades out at both ends rather than
   stopping dead against the rounded corners. */
.sa-follow::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--sa-violet) 18%, var(--sa-violet-light) 50%, var(--sa-violet) 82%, transparent);
	opacity: .9;
}

.sa-follow__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 5px;
	margin-bottom: 16px;
}
/* Leak defense: inside `.entry-content` this H2 picks up the article accent bar
   (`.single .entry-content h2::before`) plus its left padding — a 5px gradient
   tick pinned to the left of a CENTRED heading, which reads as a rendering bug.
   Same fix `.sa-related` already carries; see the note above it. */
.sa-follow__title::before { content: none !important; display: none !important; }
/* !important on the type, not just the box: inside `.entry-content` the article
   scale wins on specificity — `.single .entry-content h2` (0,3,1) rendered this
   heading at 32px and `.entry-content p` pushed the sub-line to 17px, so every
   size set here was decorative. LiteSpeed combines the stylesheets, so source
   order cannot settle it either. Same class of leak as `.sa-nom__item`. */
.sa-follow__title {
	font-family: var(--sa-font-display);
	font-weight: 700 !important;
	/* Compact on purpose: this is a footer-of-the-article CTA, not the page's
	   headline, and at the article's own H2 size it out-shouted the vote title. */
	font-size: clamp(16px, 2.1vw, 20px) !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
	margin: 0 !important;
	padding-left: 0 !important;
	text-wrap: balance;
}
.sa-follow__sub {
	margin: 0 !important;
	max-width: 52ch;
	font-size: 12px !important;
	line-height: 1.5 !important;
	color: var(--sa-text-dim);
}

/* Centred flex-wrap rather than a grid. The network count is whatever the site
   configured (2 to 7), so any fixed column count is wrong for someone — and an
   auto-fit grid leaves the last row hanging at the left edge, which reads as a
   layout bug rather than a choice. Wrapping centred means an orphan row lands
   under the middle and looks deliberate at every count.
   `flex-basis` is a floor, never a bare 1fr: a track that refuses to shrink
   below its content clips on a 360px phone. */
.sa-follow__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
}
/* `0 1` — shrink, never grow. With `1 1` a two-chip last row split the whole
   width between them and rendered 230px wide next to 172px chips above: same
   component, two sizes, one row apart. Not growing keeps every chip identical
   and lets `justify-content: center` place the leftovers. */
/* A near-square tile, not a wide row. The old 172px chip laid the icon and the
   name side by side, so six of them tiled into what read as a link list; stacked
   vertically the same content makes a compact card the eye takes in as one unit. */
.sa-follow__cell {
	flex: 0 1 104px;
	min-width: 0;
	max-width: 100%;
}

.sa-follow__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 9px;
	height: 100%;
	/* Roughly square (~104 x ~88): a tile, not a button. The 6px side padding is
	   what buys the handle enough room to print in full instead of ellipsising —
	   "@shiningawardsofc" is the longest one a site is likely to have. */
	padding: 16px 6px 14px;
	border: 1px solid var(--sa-border);
	border-radius: 16px;
	/* `--sa-surface` is not a token (the tiles used to compute to transparent and
	   sat flat on the panel). Tint the panel surface instead, so the tile reads
	   as raised at every palette. */
	background-color: color-mix(in srgb, var(--sa-surface-1) 72%, transparent);
	color: inherit;
	/* Leak defense: inside .entry-content these anchors inherit Jannah's
	   gradient link-underline, which draws a stray bar across each tile.
	   Same fix as .sa-nom__item — see the note above it. */
	background-image: none !important;
	text-decoration: none !important;
	overflow: hidden;
	transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}
/* A hairline of light along the top edge — the one detail that separates a tile
   from a rectangle. Sits above the fill, under the content. */
.sa-follow__item::after {
	content: "";
	position: absolute;
	inset: 0 22% auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}
/* Hover only where there IS hover: on a phone a tap left the tile lifted and
   tinted in its brand colour until the next tap elsewhere. */
@media (hover: hover) {
	.sa-follow__item:hover {
		/* The brand colour appears on hover only. Six saturated logos side by side
		   would fight the palette and each other; on hover it reads as feedback. */
		border-color: color-mix(in srgb, var(--sa-fbrand) 55%, transparent);
		background-color: color-mix(in srgb, var(--sa-fbrand) 11%, var(--sa-surface-1));
		transform: translateY(-3px);
	}
}
.sa-follow__item:focus-visible {
	outline: 2px solid var(--sa-focus);
	outline-offset: 2px;
}

.sa-follow__ic {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 13px;
	background: color-mix(in srgb, var(--sa-fbrand) 15%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sa-fbrand) 26%, transparent);
	color: var(--sa-fbrand);
	transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
@media (hover: hover) {
.sa-follow__item:hover .sa-follow__ic {
	background: color-mix(in srgb, var(--sa-fbrand) 26%, transparent);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--sa-fbrand) 45%, transparent),
		0 8px 20px -10px var(--sa-fbrand);
	transform: scale(1.04);
}
}
.sa-follow__svg { width: 19px; height: 19px; display: block; }

.sa-follow__meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; width: 100%; }
.sa-follow__net {
	font-weight: 700;
	font-size: 12.5px;
	line-height: 1.25;
	color: var(--sa-text);
}
.sa-follow__handle {
	/* Was 9.5px (9px on a phone): below what most readers can read at arm's
	   length. Long handles still end in an ellipsis. */
	font-size: 11px;
	letter-spacing: -.01em;
	line-height: 1.3;
	color: var(--sa-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 480px) {
	.sa-follow { padding: 18px 12px 14px; border-radius: 16px; margin: 26px auto; }
	.sa-follow__head { margin-bottom: 13px; }
	.sa-follow__list { gap: 8px; }
	/* Exactly three across, whatever the well turns out to be. A fixed px basis
	   was off by a few pixels once `.entry-content` padding was in play and the
	   row silently fell back to two — the percentage cannot drift. */
	.sa-follow__cell { flex-basis: calc((100% - 16px) / 3); }
	.sa-follow__item { padding: 12px 6px 10px; gap: 7px; border-radius: 14px; }
	.sa-follow__ic { width: 34px; height: 34px; border-radius: 11px; }
	.sa-follow__svg { width: 16px; height: 16px; }
	.sa-follow__net { font-size: 11.5px; }
	.sa-follow__handle { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-follow__item { transition: none; }
	.sa-follow__item:hover { transform: none; }
}
