/* ═══════════════════════════════════════════════════════════════════════════
   SHINING AWARDS — brand skin (deep-fork visual layer)
   Loaded AFTER Jannah's stylesheet (see brand.php) so it wins. Everything is
   token-driven (--sa-*, tokens.css), so the whole look tracks the active style
   preset (Spotlight / Bias / Lightstick / Custom). No core template edits —
   this restyles Jannah's real output selectors into the Shining identity.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base surfaces ─────────────────────────────────────────────────────────
   Jannah drives its ENTIRE dark palette through two custom properties
   (defaults #1f2024 / #27292d). Remapping them turns every dark container —
   page, wrappers, mag-boxes, cards — into the deep Shining near-black at once. */
html.dark-skin,
.dark-skin {
	--tie-dark-skin-bg-main: var(--sa-bg);       /* page background → #0A0E1A */
	--tie-dark-skin-bg: var(--sa-surface-1);     /* boxes/cards → #121A2B */
}

/* Jannah's OWN brand variables. base.css declares `--brand-color:#0669ff` on
   :root and derives a lot from it — nav active states, link accents, buttons,
   `--main-nav-primary-color`. De-branding never remapped these, so that stock
   blue kept leaking through anywhere our own `--sa-*` rules didn't happen to
   cover (it was the blue capsule + 5px underline on the active nav item).
   Point them at the palette so leftovers inherit the brand instead of Jannah's.

   🔴 `:root:root:root`, not `:root`. When a colour is set in the base theme's
   own options, TIELABS_STYLES emits `:root:root{--brand-color: …}` — specificity
   (0,2,0), which BEAT the (0,1,0) this rule used to have. The palette lost to a
   setting most editors have never opened, and the result was an off-brand colour
   turning up on anything the base theme colours: measured on a site whose
   palette was Aurora (teal) while its hero title and vote button read blue.
   Three chained `:root`s (0,3,0) put the palette back in charge, and
   style-switcher.php additionally feeds that option FROM the palette so the two
   agree instead of racing. */
:root:root:root,
html.dark-skin,
.dark-skin {
	--brand-color: var(--sa-violet);
	--dark-brand-color: var(--sa-violet-deep);
	--bright-color: var(--sa-text);
}

html, body {
	background: var(--sa-bg) !important;
	color: var(--sa-text);
	font-family: var(--sa-font-body);
	-webkit-font-smoothing: antialiased;
}

#wrapper, #content, .container, .main-content, .theiaStickySidebar {
	background: transparent;
}

/* Brand-tinted text selection + scrollbar — small "own-identity" flourishes. */
::selection { background: var(--sa-magenta); color: var(--sa-on-accent, #fff); }
::-moz-selection { background: var(--sa-magenta); color: var(--sa-on-accent, #fff); }
* { scrollbar-color: var(--sa-violet) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sa-bg-2); }
::-webkit-scrollbar-thumb {
	background: var(--sa-gradient);
	border-radius: var(--sa-radius-pill);
	border: 2px solid var(--sa-bg-2);
}

/* ── Typography scale ─────────────────────────────────────────────────────
   Clash Display for headings, tightened + bolder for the K-pop poster feel. */
h1, h2, h3, h4, h5,
.post-title, .widget-title, .page-header h1, .page-title,
.mag-box-title, .block-head, .entry-title {
	font-family: var(--sa-font-display);
	color: var(--sa-text);
	letter-spacing: -.01em;
}
h1, h2, .page-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.entry .post-title, .single .post-title { font-weight: 700; }
p, li, .post-excerpt, .entry { line-height: 1.6; }

a { color: var(--sa-violet-light); transition: color .18s ease; }
a:hover { color: var(--sa-pink); }

/* Gradient-text utility. */
.sa-grad {
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ── Masthead ─────────────────────────────────────────────────────────────
   The header carries the signature gradient so it tracks the active preset.
   !important beats Jannah's header-background option (inline #tie-wrapper
   #theme-header, 2 IDs). Nav / menu / top-bar stay on the dark surface. */
#theme-header { background: var(--sa-gradient) !important; border-color: var(--sa-border); }
.header-main, #main-nav, .main-menu, .top-bar {
	background: var(--sa-bg-2);
	border-color: var(--sa-border);
}
/* Beat Jannah's saved header-background option (inline CSS at #tie-wrapper
   #theme-header #main-nav — 3 IDs — carrying the old violet gradient). Only
   !important overrides an inline-derived rule regardless of specificity, so the
   nav strip tracks our token instead of a stale purple→teal gradient. */
#tie-wrapper #theme-header #main-nav,
#tie-wrapper #main-nav.fixed-nav { background: var(--sa-bg-2) !important; border-color: var(--sa-border); }
#tie-wrapper #theme-header #main-nav .main-menu-wrapper,
#tie-wrapper #main-nav.fixed-nav .main-menu-wrapper { background: transparent !important; }
/* Menu hover / current gets a brand underline instead of Jannah's block bg. */
#main-nav .menu > li > a:hover,
#main-nav .menu > .current-menu-item > a { color: var(--sa-text); }

/* ── Archive / page headers ───────────────────────────────────────────────
   Give Jannah's plain page/term title a Shining treatment: gradient text +
   an accent underline bar. Targets `.page-title` (archive/category/search) and
   mag-box / block titles (homepage builder). */
.page-title,
.entry-header-outer .page-title {
	display: inline-block;
	background: var(--sa-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(1.9rem, 4vw, 3rem);
	margin-bottom: .35em;
}
.entry-header-outer { position: relative; }
.entry-header-outer .page-title::after {
	content: "";
	display: block;
	width: 3.2rem;
	height: 4px;
	margin-top: .5rem;
	border-radius: var(--sa-radius-pill);
	background: var(--sa-gradient);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────────
   style.css:1448-1451 hardcodes `#breadcrumb, #breadcrumb a:not(:hover)` to
   `#666`. That is a mid-grey chosen for Jannah's white skin; on our dark
   surfaces it lands at roughly 3:1 against the page and reads as disabled text.
   The trail was the last chrome element still painted by a literal hex rather
   than the palette.

   Two tokens rather than one: the ancestors are secondary navigation and should
   recede, while the current page is a label and should sit at body weight. The
   delimiter is quieter than both. Hover lifts to the accent, matching every
   other link in the skin.

   Every selector is prefixed with `#tie-wrapper` — two ids against Jannah's one,
   so we win on SPECIFICITY rather than on source order. That is not belt and
   braces: LiteSpeed combines all enqueued CSS into a single file and does not
   preserve enqueue order, and it demonstrably put skin.css at byte ~9.5k and
   style.css at ~88k in the combined output — our rule came FIRST and lost. "Our
   sheet is enqueued after Jannah's" is not a guarantee on this site (the same
   reason bridge.css leans on !important). Measured, not assumed. */
#tie-wrapper #breadcrumb,
#tie-wrapper #breadcrumb a:not(:hover) {
	color: var(--sa-text-muted);
}
#tie-wrapper #breadcrumb a:hover {
	color: var(--sa-violet);
}
#tie-wrapper #breadcrumb .delimiter {
	color: var(--sa-text-dim);
}
#tie-wrapper #breadcrumb .current,
#tie-wrapper #breadcrumb em:last-of-type {
	color: var(--sa-text);
	font-style: normal;
}

/* Homepage-builder block titles (mag-box) — accent bar + display face. */
.mag-box-title, .block-head > h3, .widget-title {
	position: relative;
	font-family: var(--sa-font-display);
	text-transform: none;
}
.mag-box-title > span, .block-head > h3 > span {
	border-bottom: 3px solid transparent;
	border-image: var(--sa-gradient) 1;
	padding-bottom: .35rem;
}

/* ── Post cards (archive + homepage-builder blocks) ───────────────────────
   Poster-style: rounded, bordered, lift + gradient glow on hover, and a slow
   thumbnail zoom. Works for the horizontal archive item and grid blocks. */
.post-item, .post-listing .post, .mag-box .post, .posts-wrapper .post,
.single-post-box, .widget.timeline-widget .post {
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius);
	box-shadow: var(--sa-shadow-card);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-item:hover, .post-listing .post:hover, .mag-box .post:hover,
.posts-wrapper .post:hover {
	transform: translateY(-4px);
	border-color: var(--sa-border-strong);
	box-shadow: 0 16px 44px rgba(0, 0, 0, .55), var(--sa-glow);
}
/* Thumbnail: clip + zoom on hover, subtle bottom scrim for legibility. */
.post-item .post-thumbnail, .post .post-thumbnail { position: relative; overflow: hidden; }
.post-item .post-thumbnail img, .post .post-thumbnail img {
	transition: transform .5s ease;
	width: 100%;
}
.post-item:hover .post-thumbnail img, .post:hover .post-thumbnail img {
	transform: scale(1.06);
}
.post-item .post-thumbnail::after, .post .post-thumbnail::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(15, 11, 22, .45) 100%);
	pointer-events: none;
}
.post-details { padding: 1.1rem 1.25rem 1.25rem; }
.post-item .post-title a, .post .post-title a {
	color: var(--sa-text);
	transition: color .18s ease;
}
.post-item:hover .post-title a, .post:hover .post-title a { color: var(--sa-violet-light); }
.post-excerpt { color: var(--sa-text-muted); }

/* Post meta — muted, compact. */
.post-meta, .post-meta a { color: var(--sa-text-dim); }
.post-meta a:hover { color: var(--sa-pink); }

/* Category badge → unified gradient pill. (Overrides Jannah's per-category
   colour for a consistent brand look; to keep category colours instead, remove
   this block.) */
.post-cat, .post-cat a, span.post-cat {
	display: inline-block;
	background: var(--sa-gradient) !important;
	color: var(--sa-on-accent, #fff) !important;
	font-family: var(--sa-font-display);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .2rem .6rem;
	border-radius: var(--sa-radius-pill);
}

/* ── Buttons ──────────────────────────────────────────────────────────────
   Gradient pills with a lift + glow on hover. */
.button, button, input[type="submit"], .more-link, .read-more,
.more-link.button, .pagination a, .tie-btn {
	background: var(--sa-gradient);
	color: var(--sa-on-accent, #fff);
	border: 0;
	border-radius: var(--sa-radius-pill);
	font-family: var(--sa-font-display);
	font-weight: 700;
	letter-spacing: .03em;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover,
.more-link:hover, .read-more:hover, .more-link.button:hover {
	color: var(--sa-on-accent, #fff);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
	filter: saturate(1.1);
}

/* ── Flat surfaces — no inherited card panel ──────────────────────────────
   Jannah wraps the article, every sidebar widget, the comments block, related
   and read-next in `.container-wrapper`, which assets/css/style.css paints as
   `--tie-dark-skin-bg-main` + a 1px rgba(255,255,255,.1) border.

   Our bridge already maps that fill to `--sa-bg` — the SAME colour as the page
   — so the panel contributed no fill at all, only a faint outline that read as
   an empty placeholder box around the article and each widget. Strip it: brand
   surfaces are our own `.sa-*` components, not the base theme's boxes.

   `!important` is deliberate, and for the same reason bridge.css needs it:
   LiteSpeed combines all enqueued CSS into one file, so "our sheet loads after
   Jannah's" is NOT a guarantee. Verified live — without it, style.css's
   `.dark-skin .container-wrapper` won the tie on equal specificity and the
   fill stayed painted. */
.container-wrapper,
.dark-skin .container-wrapper,
html.dark-skin .container-wrapper {
	background: transparent !important;
	border-width: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	/* 🔴 `opacity: .99` — Jannah's own layer-promotion hack, and the reason a
	   sticky ad went UNDER the comments.

	   The same skin rule that paints the panel also sets `opacity: .99` on every
	   `.container-wrapper`. A sub-1 opacity CREATES A STACKING CONTEXT, so
	   `article#the-post` becomes one — and a `position: fixed` element the ad
	   script parks inside the in-article slot is trapped in it, no matter how
	   large its own z-index. `#comments-box` and `#add-comment-block` are
	   themselves .99 opacity groups LATER in tree order, so they paint on top:
	   the floating video ended up behind the comment form (verified live —
	   setting this one property to 1 is what puts the ad back on top).

	   We paint no panel here, so the hack has nothing left to fix. */
	opacity: 1 !important;
}
/* The same hack, on the elements Jannah applies it to outside .container-wrapper.
   Same reason: never leave a stacking context lying around an ad slot. */
.widget-title,
#footer .widget,
.side-aside .widget { opacity: 1 !important; }

/* ── Footer widgets ───────────────────────────────────────────────────────
   NOTE: this rule used to read `#sidebar .widget, .footer-widget-area .widget`.
   There is no element with id="sidebar" — Jannah renders `<aside class="sidebar">`
   — so the first selector never matched anything and sidebar widgets silently
   fell through to the `.container-wrapper` panel above. Sidebar widgets are
   deliberately flat now, so only the footer keeps a surface. */
.footer-widget-area .widget {
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-sm);
}
#theme-footer, .footer-widget-area { background: var(--sa-bg-2); border-color: var(--sa-border); }
#footer-nav, .footer-bottom { border-color: var(--sa-border); }
/* Footer social icons → gradient on hover. */
.footer-widget-area .social-icons a:hover,
#footer .social-icons a:hover { color: var(--sa-pink); }

/* ── Misc brand touches ───────────────────────────────────────────────────*/
hr { border-color: var(--sa-border); }
blockquote {
	border-left: 4px solid transparent;
	border-image: var(--sa-gradient) 1;
	background: var(--sa-surface-1);
	border-radius: var(--sa-radius-sm);
}
input[type="text"], input[type="search"], input[type="email"], textarea, select {
	background: var(--sa-surface-1);
	border: 1px solid var(--sa-border);
	color: var(--sa-text);
	border-radius: var(--sa-radius-sm);
}
input:focus, textarea:focus, select:focus { border-color: var(--sa-border-strong); }

/* ── Keyboard focus ring (WCAG 2.4.7 / 1.4.11) ────────────────────────────────
   One consistent, high-visibility indicator for every interactive element. A
   two-tone ring: a transparent real `outline` (kept for Windows High-Contrast /
   forced-colors, where box-shadow is ignored) plus a box-shadow ring whose inner
   band is the page-bg colour and outer band the brand focus colour — so it stays
   ≥3:1 against BOTH dark surfaces and the light end of gradient buttons. Scoped to
   :focus-visible so it only shows for keyboard/AT users, never on mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible,
.button:focus-visible, .tie-btn:focus-visible,
.more-link:focus-visible, .read-more:focus-visible,
summary:focus-visible {
	/* A VISIBLE coloured outline is the primary ring: it can't be overridden by an
	   element's own box-shadow (some brand pills set one at high specificity) and it
	   sits in the offset gap over the dark page bg, so it always reads. The two-tone
	   box-shadow is a nicety layered on top where it survives — its inner band is the
	   page-bg colour so pills/inputs keep their shape with no jump. */
	outline: 2px solid var(--sa-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--sa-bg), 0 0 0 4px var(--sa-focus);
}
/* Don't let the ring get clipped where an ancestor hides overflow (cards etc). */
a:focus-visible, button:focus-visible { position: relative; z-index: 1; }

/* ── The [hidden] assertion, once, for every component we own ──────────────
   `hidden` is only `display: none` in the USER-AGENT stylesheet, so any author
   rule that gives an element a `display` outranks it and the element stays on
   screen. Thirteen components had worked this out separately and each carries
   its own companion rule with its own comment explaining the same trap; the
   fourteenth (the leaderboard row) had not, and its category filter shipped
   hiding nothing — every row stayed visible while only the matching ones were
   renumbered, so the board showed duplicate ranks.

   Scoped to our own class prefix so it cannot reach base-theme markup, and
   !important because there is no case where `hidden` should lose: every one of
   those thirteen rules resolves to `display: none` too. This makes the trap
   structurally unreachable for the NEXT component instead of relying on
   whoever writes it remembering. */
[class*="sa-"][hidden] {
	display: none !important;
}

/* Visible to assistive tech only. Lived in votes.css, which is conditionally
   enqueued — but live regions and headings-for-AT are needed on the homepage
   rails and the article surfaces too, so it belongs in the always-on layer. */
.sa-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Vote love-mark (was the ✦ sparkle, now a heart). Rose by default. */
.sa-sparkle {
	width: 1em; height: 1em;
	display: inline-block;
	vertical-align: -.125em;
	color: var(--sa-heart);
}

/* Eyebrow / label love-mark rendered as a ::before mask, so a fixed rose heart
   in the EXACT shining_heart_svg() shape leads a label whose text stays its own
   colour. Add `sa-heartmark` alongside a label class (e.g. .sa-home-eyebrow). */
.sa-heartmark::before {
	content: "";
	display: inline-block;
	width: .9em; height: .9em;
	margin-right: .45em;
	vertical-align: -.13em;
	background-color: var(--sa-heart);
	-webkit-mask: var(--sa-heart-mask) center / contain no-repeat;
	        mask: var(--sa-heart-mask) center / contain no-repeat;
}

/* ── Share fallback menu (share.js, desktop / no Web Share) ────────────────────
   A small fixed popover of explicit share targets, appended to <body> and
   positioned under the share button. */
/* ============================================================================
   SHARE BUTTONS — three premium, brand-coloured styles (Share studio → style)
   a = Solid Brand Circles (default) · b = Expanding Pills · c = Glass Segmented Bar
   Each network keeps its real brand hue via --c; the copy-link accent tracks the
   active --sa-* palette (Nova/Ember/Cobalt…). One clean "Share this" heading —
   no per-row label.
   ==========================================================================*/

/* per-network brand colour — shared by the inline buttons AND the fallback menu */
.sa-shico-btn--facebook,  .sa-sharemenu__item--facebook  { --c: #1877F2; }
.sa-shico-btn--whatsapp,  .sa-sharemenu__item--whatsapp  { --c: #25D366; }
.sa-shico-btn--telegram,  .sa-sharemenu__item--telegram  { --c: #229ED9; }
.sa-shico-btn--line,      .sa-sharemenu__item--line      { --c: #06C755; }
.sa-shico-btn--reddit,    .sa-sharemenu__item--reddit    { --c: #FF4500; }
.sa-shico-btn--pinterest, .sa-sharemenu__item--pinterest { --c: #E60023; }
.sa-shico-btn--email,     .sa-sharemenu__item--email     { --c: #8A94A6; }
.sa-shico-btn--x,         .sa-sharemenu__item--x         { --c: #E7E9EA; } /* light icon; dark fill handled per style */
.sa-shico-btn--copy,      .sa-sharemenu__item--copy      { --c: var(--sa-violet-light, #4BE3B0); }
.sa-sharemenu__item--more { --c: var(--sa-text-muted, #A9B6C8); }

.sa-shico { width: 1.15rem; height: 1.15rem; display: block; }
.sa-shico-ic { display: grid; place-items: center; }
.sa-shico-check { display: none; }
.sa-shico-lbl { display: none; }
.sa-shico-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; text-decoration: none; border: 0; background: transparent; font: inherit; color: inherit;
	transition: transform .22s cubic-bezier(.2,.9,.3,1.3), background .2s ease, color .2s ease, box-shadow .2s ease; }
.sa-shico-btn:focus-visible { outline: 2px solid var(--sa-focus); outline-offset: 2px; }

/* Entry-content leak defence: inside .entry-content, Jannah paints links with its
   post-links accent (e.g. #e74c3c red) + a gradient underline, which bleeds into
   the SVG glyphs via currentColor. Force our own glyph colours (!important beats
   `.single .entry-content a`, and survives LiteSpeed CSS-combine re-ordering) and
   strip the underline. */
.sa-shareinline a.sa-shico-btn, .sa-shareinline button.sa-shico-btn { text-decoration: none !important; }
/* GEOMETRY lock. The share block is injected INTO .entry-content, so any
   `.entry-content a` rule outranks our (0,2,0) button rules and reshapes the
   controls — the Links studio's "Sweep" style did exactly that, flattening the
   round brand circles into padded 4px rectangles while the Copy <button> stayed
   round. single.css now excludes component links, but this lock means no future
   prose-link rule (ours or the base theme's) can deform them again. Each style
   sets its own radius below; these three just strip inherited box metrics. */
.sa-shareinline .sa-shico-btn { padding: 0 !important; margin: 0 !important; }
.sa-shareinline--a .sa-shico-btn { border-radius: 50% !important; }
.sa-shareinline--b .sa-shico-btn { border-radius: 999px !important; }
.sa-shareinline--c .sa-shico-btn { border-radius: 12px !important; }
.sa-shareinline--a .sa-shico-btn { color: #fff !important; }
.sa-shareinline--b .sa-shico-btn { color: var(--c) !important; }
.sa-shareinline--b .sa-shico-btn:hover, .sa-shareinline--b .sa-shico-btn:focus-visible { color: #fff !important; }
.sa-shareinline--c .sa-shico-btn { color: var(--c) !important; }
.sa-shareinline--c a.sa-shico-btn { background-image: none !important; } /* strip the leaked underline (C links are transparent) */

/* row wrapper */
.sa-shareinline { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }

/* a — Solid Brand Circles (default): filled brand colour, gloss, springy hover */
.sa-shareinline--a .sa-shico-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden; color: #fff;
	background: var(--c); box-shadow: 0 5px 15px color-mix(in srgb, var(--c) 38%, transparent); }
.sa-shareinline--a .sa-shico-btn::before { content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,.26), transparent 55%); pointer-events: none; }
.sa-shareinline--a .sa-shico-btn:hover, .sa-shareinline--a .sa-shico-btn:focus-visible {
	transform: translateY(-5px) scale(1.08); box-shadow: 0 14px 28px color-mix(in srgb, var(--c) 58%, transparent); }
.sa-shareinline--a .sa-shico-btn--x { background: #1D1F22; }
.sa-shareinline--a .sa-shico-btn--copy { background: var(--sa-gradient); box-shadow: 0 5px 15px rgba(0,195,137,.4); }

/* b — Expanding Pills: coloured circle that slides open to show the name on hover */
.sa-shareinline--b .sa-shico-btn { height: 2.75rem; border-radius: 999px; overflow: hidden; justify-content: flex-start;
	color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--sa-surface-1));
	border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.sa-shareinline--b .sa-shico-ic { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; }
.sa-shareinline--b .sa-shico-lbl { display: block; max-width: 0; opacity: 0; white-space: nowrap;
	font-weight: 700; font-size: .85rem; transition: max-width .28s ease, opacity .2s ease, padding .28s ease; }
.sa-shareinline--b .sa-shico-btn:hover, .sa-shareinline--b .sa-shico-btn:focus-visible {
	color: #fff; background: var(--c); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 44%, transparent); }
.sa-shareinline--b .sa-shico-btn:hover .sa-shico-lbl, .sa-shareinline--b .sa-shico-btn:focus-visible .sa-shico-lbl {
	max-width: 9rem; opacity: 1; padding-right: 1rem; }
.sa-shareinline--b .sa-shico-btn--x:hover, .sa-shareinline--b .sa-shico-btn--x:focus-visible { background: #1D1F22; color: #fff; }
.sa-shareinline--b .sa-shico-btn--copy:hover, .sa-shareinline--b .sa-shico-btn--copy:focus-visible { background: var(--sa-gradient); color: var(--sa-on-accent, #fff); }

/* c — Glass Segmented Bar: one frosted bar of brand-coloured icons + hairlines */
.sa-shareinline--c { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 16px;
	background: rgba(255,255,255,.045); border: 1px solid var(--sa-border-strong);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 28px rgba(0,0,0,.32); }
.sa-shareinline--c .sa-shico-btn { width: 2.75rem; height: 2.75rem; border-radius: 12px; color: var(--c); }
.sa-shareinline--c .sa-shico-btn:hover, .sa-shareinline--c .sa-shico-btn:focus-visible {
	background: color-mix(in srgb, var(--c) 20%, transparent); transform: translateY(-3px);
	box-shadow: 0 8px 16px color-mix(in srgb, var(--c) 28%, transparent); }
.sa-shareinline--c .sa-shico-btn:not(:last-child)::after { content: ""; position: absolute; right: -1px; top: 9px; bottom: 9px;
	width: 1px; background: rgba(255,255,255,.07); }
.sa-shareinline--c .sa-shico-btn:hover::after, .sa-shareinline--c .sa-shico-btn:hover + .sa-shico-btn::after { opacity: 0; }

/* copy-link confirmation swap (all styles) */
.sa-share-copy.is-copied { color: #fff; }
.sa-shareinline--a .sa-share-copy.is-copied, .sa-shareinline--c .sa-share-copy.is-copied { background: var(--sa-gradient); }
.sa-shareinline--b .sa-share-copy.is-copied { background: var(--sa-gradient); border-color: transparent; }
.sa-share-copy.is-copied .sa-shico-ic > .sa-shico:not(.sa-shico-check) { display: none; }
.sa-share-copy.is-copied .sa-shico-check { display: block; }

/* ── post-page share block (auto-injected into single-post content) ──────── */
.sa-shareblock { clear: both; width: 100%; margin: 2.2rem 0; padding: 1.3rem 1.35rem; border: 1px solid var(--sa-border); border-radius: 16px;
	background: linear-gradient(180deg, var(--sa-surface-1), var(--sa-bg-2));
	display: flex; flex-direction: column; align-items: center; text-align: center; }
.sa-shareblock__head { display: flex; align-items: center; gap: .5em; margin-bottom: .2rem;
	font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sa-text-muted); }
.sa-shareblock__hb { width: 1em; height: 1em; color: var(--sa-heart); }
.sa-shareblock .sa-shareinline { margin-top: .7rem; }

/* ── the compact share TRIGGER (share.php → shining_share_compact_html) ──────
   One pill instead of a row of five brand circles. Used by the Winner block, and
   available to any surface that wants share without the chrome. */
.sa-sharebtn {
	display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
	font: inherit; font-size: .81rem; font-weight: 700; line-height: 1;
	padding: .66em 1.05em .66em .85em; border-radius: var(--sa-radius-pill, 999px);
	color: var(--sa-text); text-decoration: none;
	background: color-mix(in srgb, var(--sa-text) 6%, transparent);
	border: 1px solid var(--sa-border-strong);
	transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sa-sharebtn__ic { display: grid; place-items: center; width: 1.15em; height: 1.15em; }
.sa-sharebtn__svg { width: 100%; height: 100%; display: block; }
.sa-sharebtn:hover, .sa-sharebtn[aria-expanded="true"] {
	transform: translateY(-1px);
	background: color-mix(in srgb, var(--sa-violet) 16%, transparent);
	border-color: color-mix(in srgb, var(--sa-violet) 55%, transparent);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--sa-violet) 24%, transparent);
}
.sa-sharebtn:focus-visible { outline: 2px solid var(--sa-focus); outline-offset: 2px; }

/* ── the share POPOVER (share.js — compact trigger, card + hero triggers) ────
   A small panel of brand tiles: anchored under its button on a roomy screen, a
   bottom sheet on a phone. Each tile carries its network's hue at rest and fills
   on hover, matching the inline styles. */
.sa-sharemenu {
	position: fixed; z-index: 9999; width: min(320px, calc(100vw - 16px)); padding: 10px;
	display: flex; flex-direction: column; gap: 8px;
	background: linear-gradient(180deg, var(--sa-surface-2), var(--sa-surface-1));
	border: 1px solid var(--sa-border-strong); border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
	transition: opacity .16s ease, transform .16s cubic-bezier(.2,.9,.3,1.15);
}
.sa-sharemenu.is-open { opacity: 1; transform: none; }
.sa-sharemenu[hidden] { display: none; }
.sa-sharemenu__bd { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sa-sharemenu__bd[hidden] { display: none; }

.sa-sharemenu__hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0; }
.sa-sharemenu__ttl {
	font-family: var(--sa-font-display); font-size: .68rem; font-weight: 800;
	letter-spacing: .16em; text-transform: uppercase; color: var(--sa-text-dim);
}
.sa-sharemenu__x {
	display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto;
	border: 0; border-radius: 8px; background: none; color: var(--sa-text-dim); cursor: pointer;
	transition: background .16s, color .16s;
}
.sa-sharemenu__x svg { width: 16px; height: 16px; }
.sa-sharemenu__x:hover { background: color-mix(in srgb, var(--sa-text) 10%, transparent); color: var(--sa-text); }

/* Flex, not a grid: with five networks an auto-fit grid leaves a hole in the
   last row's third column. Flex lets the last row's tiles stretch and stay
   centred. */
.sa-sharemenu__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
/* Scoped to the grid on purpose: the panel itself is a COLUMN flex container, so
   an unscoped `flex: 1 1 82px` would give the copy-link row an 82px flex-basis in
   the vertical axis and stretch it into a slab. */
.sa-sharemenu__grid > .sa-sharemenu__item { flex: 1 1 82px; min-width: 0; }
.sa-sharemenu__item {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px;
	padding: .7rem .35rem .6rem; border: 0; background: none; border-radius: 13px;
	font: inherit; font-size: .7rem; font-weight: 600; color: var(--sa-text-muted);
	cursor: pointer; text-decoration: none; text-align: center;
	transition: background .16s ease, color .16s ease;
}
.sa-sharemenu__ic {
	width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center;
	background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c);
	transition: background .16s, color .16s, transform .18s cubic-bezier(.2,.9,.3,1.3), box-shadow .16s;
}
.sa-sharemenu__ic svg { width: 1.2rem; height: 1.2rem; }
.sa-sharemenu__label { line-height: 1.2; overflow-wrap: anywhere; }
.sa-sharemenu__item:hover, .sa-sharemenu__item:focus-visible { background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--sa-text); }
.sa-sharemenu__item:hover .sa-sharemenu__ic, .sa-sharemenu__item:focus-visible .sa-sharemenu__ic {
	background: var(--c); color: #fff; transform: translateY(-2px) scale(1.06);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.sa-sharemenu__item:focus-visible { outline: 2px solid var(--sa-focus); outline-offset: -2px; }
.sa-sharemenu__item--x .sa-sharemenu__ic { color: var(--sa-text); }
.sa-sharemenu__item--x:hover .sa-sharemenu__ic, .sa-sharemenu__item--x:focus-visible .sa-sharemenu__ic { background: #1D1F22; color: #fff; }

/* Copy link: a full-width row under the grid, visually the panel's footer. */
.sa-sharemenu__copy {
	flex: 0 0 auto; flex-direction: row; justify-content: center; gap: 10px; width: 100%;
	padding: .62rem .8rem; border-radius: 12px; font-size: .78rem; font-weight: 700;
	color: var(--sa-text); background: color-mix(in srgb, var(--sa-text) 5%, transparent);
	border: 1px solid var(--sa-border);
}
.sa-sharemenu__copy .sa-sharemenu__ic { width: 28px; height: 28px; border-radius: 9px; }
.sa-sharemenu__copy .sa-sharemenu__ic svg { width: 1rem; height: 1rem; }
.sa-sharemenu__copy:hover .sa-sharemenu__ic { background: var(--sa-gradient); }

/* Phone: dock to the bottom edge, where the thumb already is. */
.sa-sharemenu.is-sheet {
	left: 0 !important; right: 0; top: auto !important; bottom: 0;
	width: 100%; max-width: none; padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 22px 22px 0 0; border-bottom: 0;
	transform: translateY(14px); transform-origin: bottom center;
}
.sa-sharemenu.is-sheet.is-open { transform: none; }
.sa-sharemenu.is-sheet .sa-sharemenu__grid > .sa-sharemenu__item { flex-basis: 74px; }

@media (prefers-reduced-motion: reduce) {
	.sa-sharemenu, .sa-sharemenu__ic, .sa-sharebtn { transition: none; }
	.sa-sharemenu { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.post-item, .post, .post-thumbnail img, .button, .more-link { transition: none; }
}

/* ==========================================================================
   Advertisement slots (Jannah e3lan + shining_ad_*) — dark-skin pass
   The wrappers come from TIELABS_ADVERTISMENT::get_ad(): `.stream-item-<pos>`
   around the slot, `.stream-title` label, `.stream-item-size` CLS box. Our
   own slots (ads.php) reuse `.stream-item` + `.sa-adslot`. Deliberately
   conservative: label + centring + spacing, nothing that could fight an ad
   network's own iframe sizing.
   ========================================================================== */
.stream-item,
[class*="stream-item-"] { text-align: center; }
.stream-item { margin: 26px auto; }

/* 🔴 An ad slot must NEVER be a stacking context.
   Jannah's base.css ships `.stream-item { position: relative; z-index: 2 }`.
   That z-index makes the slot a stacking context, and a network's sticky /
   floating unit — PubFuture's video player detaching to `position: fixed` —
   is then TRAPPED inside it: the whole slot, player included, paints at
   z-index 2 of #tie-wrapper, so any later page element with z-index >= 3
   (the Winner block's facts band, the Poster Wall deck cards) draws over the
   ad. The unit's own z-index is irrelevant;
   2147483647 does not help, nothing does.

   This is the SECOND cage on the same slot. v2.8.6 removed the outer one
   (Jannah's `opacity: .99` on `.container-wrapper`, ~line 280) which was
   masking this inner one — hence the earlier note that the slot's z-index
   was "a red herring". With the outer cage gone it is the binding one.

   `z-index: auto` (position stays `relative`, which alone creates nothing)
   puts a fixed ad child directly in #tie-wrapper's stacking context, where
   its own huge z-index wins over all page content. Deliberately still BELOW
   the off-canvas menu, the search popup and the TotalPoll modal — those live
   outside #tie-wrapper and must stay on top when the user opens them.
   Verified live: `elementFromPoint` over a fixed stand-in in the in-post slot
   returns page elements at z-index 2 and returns the stand-in at auto.

   `!important` for the same reason bridge.css uses it: LiteSpeed combines CSS,
   so "our file loads after Jannah's" is not a guarantee at equal specificity.

   Word-boundary selectors on purpose: `.theme-header` carries Jannah's
   `no-stream-item` flag class, and it needs to keep its own `z-index: 999`. */
.stream-item,
[class^="stream-item-"],
[class*=" stream-item-"],
.sa-adslot { z-index: auto !important; }
.stream-title {
	display: block;
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sa-text-dim);
	text-decoration: none;
}
a.stream-title:hover { color: var(--sa-text); }
.stream-item-size { margin-inline: auto; max-width: 100%; }
.stream-item img { max-width: 100%; height: auto; }

/* Our grid slots span the full card row (/news/, archive takeover). */
.sa-votes--grid > .sa-adslot { grid-column: 1 / -1; width: 100%; margin: 6px auto; }


/* Threads — not in the base icon font (tiefonticon), so the mark is a mask
   filled with currentColor. Registered in brand.php (TieLabs/social_networks). */
.tie-icon-threads:before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.social-icons-item .threads-social-icon { background-color: #000000 !important; }
.social-icons-item .threads-social-icon span { color: #000000; }
.dark-skin .social-icons-item .threads-social-icon span { color: #FFFFFF; }
