/* ==========================================================================
   Bagmati Samachar 2.0 — front-end styles
   --------------------------------------------------------------------------
    1. Tokens (light + dark)
    2. Base & accessibility
    3. Layout primitives
    4. Components: section heads, chips, media, cards, lists, boxes, forms
    5. Header: top bar, branding, navigation, ticker
    6. Drawer & search overlay
    7. Homepage sections
    8. Article
    9. Sidebar
   10. Archives, search, author, team, 404
   11. Footer, back-to-top, toast
   12. Ads & pop-up
   13. Motion, reduced motion, print
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
	/* Brand — the blue and red of the BS monogram. */
	--c-brand: #1b3f9e;
	--c-brand-50: #eef2fb;
	--c-brand-100: #dde5f5;
	--c-brand-200: #bac9ea;
	--c-brand-400: #5470b6;
	--c-brand-700: #163381;
	--c-brand-800: #122b6b;
	--c-brand-900: #0e204f;
	--c-brand-text: var(--c-brand);
	--c-accent: #d7192a;
	--c-accent-50: #fdeeef;
	--c-accent-100: #fadadd;
	--c-accent-700: #ac1422;
	--c-accent-text: #c3121f;

	/* Neutrals */
	--c-bg: #f3f5fa;
	--c-surface: #ffffff;
	--c-surface-2: #f7f8fc;
	--c-surface-3: #eef1f7;
	--c-border: #e3e7ef;
	--c-border-strong: #cdd4e1;
	--c-ink: #0c1424;
	--c-text: #232b3a;
	--c-muted: #5d6779;
	--c-subtle: #7e889b;
	--c-focus: #2f6bff;
	--c-skeleton: #e8ecf4;
	--c-skeleton-hi: #f5f7fb;
	--c-overlay: rgba(9, 14, 30, .62);
	--c-nav-from: var(--c-brand-800);
	--c-nav-to: var(--c-brand);

	/* Gradients */
	--g-brand: linear-gradient(120deg, var(--c-brand-900) 0%, var(--c-brand-700) 48%, var(--c-brand) 100%);
	--g-nav: linear-gradient(90deg, var(--c-nav-from), var(--c-nav-to) 60%, var(--c-nav-from));
	--g-accent: linear-gradient(135deg, var(--c-accent), var(--c-accent-700));
	--g-duo: linear-gradient(180deg, var(--c-brand) 0 50%, var(--c-accent) 50% 100%);
	--g-duo-x: linear-gradient(90deg, var(--c-brand) 0 50%, var(--c-accent) 50% 100%);
	--g-scrim: linear-gradient(180deg, rgba(6, 10, 24, 0) 28%, rgba(6, 10, 24, .5) 60%, rgba(6, 10, 24, .92) 100%);

	/* Type — Mukta handles Devanagari and Latin; line-heights leave room for matras. */
	--font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: .8125rem;
	--fs-sm: .875rem;
	--fs-base: 1rem;
	--fs-md: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-xl: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
	--fs-2xl: clamp(1.45rem, 1.2rem + 1.05vw, 2rem);
	--fs-3xl: clamp(1.75rem, 1.32rem + 1.85vw, 2.65rem);
	--fs-display: clamp(2rem, 1.3rem + 3vw, 3.5rem);
	--lh-heading: 1.6; /* every heading: generous room for Devanagari matras */

	/* Space — 4px scale */
	--sp-1: .25rem;
	--sp-2: .5rem;
	--sp-3: .75rem;
	--sp-4: 1rem;
	--sp-5: 1.25rem;
	--sp-6: 1.5rem;
	--sp-8: 2rem;
	--sp-10: 2.5rem;
	--sp-12: 3rem;
	--sp-16: 4rem;
	--section-gap: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
	--gutter: clamp(1rem, .55rem + 1.8vw, 1.5rem);
	--container: 1280px;
	--container-narrow: 880px;
	--side-w: 300px;

	/* Shape & depth */
	--r-xs: 4px;
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-pill: 999px;
	--sh-xs: 0 1px 2px rgba(16, 24, 40, .06);
	--sh-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
	--sh-md: 0 8px 20px -6px rgba(16, 24, 40, .14), 0 2px 6px -2px rgba(16, 24, 40, .06);
	--sh-lg: 0 22px 44px -14px rgba(16, 24, 40, .26), 0 8px 16px -8px rgba(16, 24, 40, .1);
	--sh-brand: 0 12px 26px -10px rgba(27, 63, 158, .55);

	/* Motion */
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--dur-1: 150ms;
	--dur-2: 240ms;
	--dur-3: 420ms;
	--dur-4: 700ms;

	/* Layout state */
	--nav-h: 56px;
	--adminbar: 0px;
	--article-size: 1.1875rem;

	color-scheme: light;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--c-brand-text: #8fb0ff;
	--c-brand-50: #131c35;
	--c-brand-100: #1a2647;
	--c-brand-200: #2c3f72;
	--c-accent-text: #ff7380;
	--c-accent-50: #2a151b;
	--c-accent-100: #3a1a21;

	--c-bg: #090e1b;
	--c-surface: #10172a;
	--c-surface-2: #141c31;
	--c-surface-3: #1a233b;
	--c-border: #222c45;
	--c-border-strong: #33405f;
	--c-ink: #f1f4fb;
	--c-text: #d2d8e5;
	--c-muted: #9ca6bb;
	--c-subtle: #7a859c;
	--c-focus: #7da2ff;
	--c-skeleton: #161f35;
	--c-skeleton-hi: #1e2944;
	--c-overlay: rgba(2, 5, 14, .72);
	--c-nav-from: #0d1838;
	--c-nav-to: #17296a;

	--sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
	--sh-sm: 0 1px 3px rgba(0, 0, 0, .45);
	--sh-md: 0 10px 24px -8px rgba(0, 0, 0, .6);
	--sh-lg: 0 26px 50px -16px rgba(0, 0, 0, .75);
}

body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --adminbar: 0px; } }
@media (max-width: 767px) { :root { --nav-h: 52px; --article-size: 1.125rem; } }

/* 2. Base & accessibility ================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + var(--adminbar) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	transition: background-color var(--dur-3) ease, color var(--dur-3) ease;
}

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; }

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-1) ease;
}
a:hover { color: var(--c-brand-text); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--c-ink);
	font-weight: 700;
	line-height: var(--lh-heading);
}

p { margin: 0 0 1em; }

button,
input,
select,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
	outline: 2px solid var(--c-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection { background: var(--c-brand-100); color: var(--c-ink); }

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	display: inline-block;
	vertical-align: -.2em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 2000;
	padding: 10px 18px;
	border-radius: var(--r-md);
	background: var(--c-ink);
	color: var(--c-surface);
	font-weight: 700;
	box-shadow: var(--sh-lg);
	transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: calc(12px + var(--adminbar)); color: var(--c-surface); }

.site-main:focus { outline: none; }

body.is-locked { overflow: hidden; padding-right: var(--scrollbar-w, 0px); }

/* 3. Layout primitives ===================================================== */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.layout {
	display: grid;
	gap: var(--sp-10);
	padding-block: var(--sp-8) var(--section-gap);
}
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) var(--side-w); gap: var(--sp-10); }
}
.layout__main { min-width: 0; }

.home-section { margin-block: var(--section-gap); }
.flash + .home-section,
.home-section:first-child { margin-top: var(--sp-8); }

.band {
	position: relative;
	margin-block: var(--section-gap);
	padding-block: var(--section-gap);
	isolation: isolate;
}
.band--tint { background: linear-gradient(180deg, var(--c-brand-50) 0%, var(--c-bg) 100%); }
.band--brand {
	background: var(--g-brand);
	color: #e6ebf7;
	overflow: hidden;
}
.band--brand::before,
.band--ink::before,
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(620px 300px at 92% -10%, rgba(215, 25, 42, .28), transparent 62%),
		radial-gradient(540px 280px at -5% 110%, rgba(255, 255, 255, .09), transparent 62%);
}
.band--ink {
	background: #0a1020;
	color: #dfe5f2;
	overflow: hidden;
}
.band--ink::before {
	background:
		radial-gradient(900px 420px at 88% -15%, rgba(42, 84, 196, .45), transparent 62%),
		radial-gradient(520px 260px at 0% 110%, rgba(215, 25, 42, .16), transparent 62%);
}

/* 4. Components ============================================================ */

/* Section heading: two-tone bar echoing the BS monogram. */
.section-head {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-bottom: var(--sp-5);
}
.section-head::after {
	content: "";
	order: 1;
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--c-border-strong), transparent);
}
.section-head__title {
	position: relative;
	margin: 0;
	padding-left: 15px;
	font-size: var(--fs-xl);
	font-weight: 800;
	line-height: var(--lh-heading);
}
.section-head__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .18em;
	bottom: .18em;
	width: 5px;
	border-radius: 3px;
	background: var(--g-duo);
}
.section-head__title a { color: inherit; }
.section-head__title a:hover { color: var(--c-brand-text); }
.section-head__more {
	order: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 6px 4px 12px;
	border-radius: var(--r-pill);
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--dur-2), background-color var(--dur-2), gap var(--dur-2) var(--ease-out);
}
.section-head__more .icon { width: 16px; height: 16px; }
.section-head__more:hover { color: var(--c-brand-text); background: var(--c-brand-50); gap: 8px; }
.section-head--sm { margin-bottom: var(--sp-4); }
.section-head--sm .section-head__title { font-size: var(--fs-lg); }
.section-head--light .section-head__title,
.section-head--light .section-head__title a { color: #fff; }
.section-head--light::after { background: linear-gradient(90deg, rgba(255, 255, 255, .28), transparent); }
.section-head--light .section-head__more { color: rgba(255, 255, 255, .78); }
.section-head--light .section-head__more:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* Category chip & badges */
.chip {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 3px 11px 2px;
	border-radius: var(--r-pill);
	background: var(--c-accent-50);
	color: var(--c-accent-text);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	transition: background-color var(--dur-2) ease, color var(--dur-2) ease, transform var(--dur-2) var(--ease-spring);
}
.chip:hover { background: var(--c-accent); color: #fff; transform: translateY(-1px); }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 13px 3px;
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 700;
}
.badge--breaking {
	background: var(--g-accent);
	color: #fff;
	animation: glow-pulse 2.4s ease-in-out infinite;
}
.badge--breaking .icon { width: 15px; height: 15px; }

/* Media: image frame with skeleton shimmer until loaded. */
.media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--r-md);
	background: var(--c-skeleton);
	isolation: isolate;
}
.media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3) ease;
}
.has-img-fx .media:not(.is-loaded) {
	background: linear-gradient(100deg, var(--c-skeleton) 30%, var(--c-skeleton-hi) 50%, var(--c-skeleton) 70%) 0 0 / 300% 100%;
	animation: shimmer 1.4s linear infinite;
}
.has-img-fx .media:not(.is-loaded) > .media__img,
.has-img-fx .media:not(.is-loaded) > picture .media__img { opacity: 0; }
:root[data-theme="dark"] .is-placeholder { filter: brightness(.38) saturate(.7); }

/* Cards ------------------------------------------------------------------ */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	min-width: 0;
}
.card__media { aspect-ratio: 16 / 10; }
.card__body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	min-width: 0;
}
.card__title {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 700;
	line-height: var(--lh-heading);
	color: var(--c-ink);
	text-wrap: pretty;
}
.card__title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size var(--dur-3) var(--ease-out), color var(--dur-2) ease;
}
.card:hover .card__title a,
.card__title a:focus-visible {
	color: var(--c-brand-text);
	background-size: 100% 1.5px;
}
.card:hover .media__img { transform: scale(1.06); }
.card__excerpt {
	margin: 0;
	color: var(--c-muted);
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Subtitle on featured cards: a bolder line between headline and summary. */
.card__subtitle { margin: 0; color: var(--c-text); font-size: var(--fs-md); font-weight: 600; line-height: 1.65; }
.card--hero .card__subtitle { font-size: var(--fs-lg); }
.card__subtitle + .card__excerpt { -webkit-line-clamp: 2; }
.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 10px;
	color: var(--c-subtle);
	font-size: var(--fs-xs);
	font-weight: 500;
}
.card__author { color: var(--c-accent-text); font-weight: 700; font-size: var(--fs-sm); }
.card__play {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--c-accent);
	box-shadow: var(--sh-md);
	transition: transform var(--dur-2) var(--ease-spring);
}
.card__play .icon { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card__play { transform: scale(1.12); }

.card--hero { gap: var(--sp-4); }
.card--hero .card__media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card--hero .card__title { font-size: var(--fs-2xl); font-weight: 800; line-height: var(--lh-heading); text-wrap: balance; }
.card--hero .card__excerpt { font-size: var(--fs-md); }

.card--row {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--sp-3);
}
.card--row .card__media {
	flex: 0 0 clamp(96px, 28%, 128px);
	aspect-ratio: 4 / 3;
	border-radius: var(--r-sm);
}
.card--row .card__title {
	font-size: var(--fs-base);
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card--compact { gap: 4px; }
.card--compact .card__title { font-size: var(--fs-base); font-weight: 600; }

/*
 * Story titles rendered as <h3> are 1.2rem in every card variant. The hero
 * and mosaic-lead rules are more specific, so featured headlines stay larger.
 */
h3.card__title,
.card--row h3.card__title,
.card--compact h3.card__title { font-size: 1.2rem; }

.card--numbered {
	display: grid;
	grid-template-columns: 2.4rem minmax(0, 1fr);
	gap: var(--sp-3);
	align-items: start;
}
.card__number {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.4px var(--c-brand-200);
	transition: color var(--dur-2) ease, -webkit-text-stroke-color var(--dur-2) ease;
}
.card--numbered:hover .card__number { color: var(--c-brand-200); }

/*
 * Overlay card: caption laid over the photo. Photo and caption share one grid
 * cell, so a long title makes the card taller instead of spilling over the
 * content around it.
 */
.card--overlay {
	display: grid;
	grid-template-areas: "stack";
	grid-template-columns: minmax(0, 1fr);
	height: 100%;
}
.card--overlay > .card__media,
.card--overlay > .card__body { grid-area: stack; }
.card--overlay .card__media { width: 100%; height: 100%; aspect-ratio: 4 / 3; }
.card--overlay .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--g-scrim);
	transition: opacity var(--dur-3) ease;
}
.card--overlay .card__body {
	position: relative;
	z-index: 2;
	align-self: end;
	padding: var(--sp-4);
	pointer-events: none;
}
.card--overlay .card__body a { pointer-events: auto; }
.card--overlay .card__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.card--overlay .card__meta { color: rgba(255, 255, 255, .82); }
.card--overlay:hover .card__title a,
.card--overlay .card__title a:focus-visible { color: #fff; }

.card--round {
	height: 100%;
	align-items: center;
	text-align: center;
	padding: var(--sp-6) var(--sp-5) var(--sp-5);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-xs);
	transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3);
}
.card--round::before {
	content: "”";
	position: absolute;
	top: 4px;
	right: 16px;
	font: 700 4.5rem/1 Georgia, "Times New Roman", serif;
	color: var(--c-brand-100);
	pointer-events: none;
}
.card--round:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.card--round .card__media {
	width: 116px;
	height: 116px;
	aspect-ratio: 1;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--c-brand), var(--c-brand-400), var(--c-accent), var(--c-brand));
}
.card--round .media__img { border-radius: 50%; border: 3px solid var(--c-surface); }
.card--round .card__body { align-items: center; }
.card--round .card__meta { flex-direction: column; gap: 0; }

.card--on-dark .card__title,
.card--on-dark .card__title a { color: #fff; }
.card--on-dark:hover .card__title a { color: #fff; }
.card--on-dark .card__meta { color: rgba(255, 255, 255, .66); }
.card--on-dark .media { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }

/* Card grids & lists */
.card-grid { display: grid; gap: var(--sp-8) var(--sp-5); }
@media (min-width: 560px) {
	.card-grid--2,
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card-grid__full { grid-column: 1 / -1; }

.stack-list { display: flex; flex-direction: column; }
.stack-list > * { padding-block: var(--sp-3); }
.stack-list > * + * { border-top: 1px solid var(--c-border); }
.stack-list > :first-child { padding-top: 0; }
.stack-list > :last-child { padding-bottom: 0; }
.stack-list--bullets .card--compact .card__title { position: relative; padding-left: 18px; }
.stack-list--bullets .card--compact .card__title::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--c-accent);
	transform: rotate(45deg);
	transition: transform var(--dur-3) var(--ease-spring);
}
.stack-list--bullets .card--compact:hover .card__title::before { transform: rotate(225deg) scale(1.2); }
.stack-list--bullets .card--compact .card__meta { padding-left: 18px; }

.box {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	box-shadow: var(--sh-xs);
}

/* Bylines & meta */
.byline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--c-ink);
	font-weight: 700;
}
.byline__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-brand-100);
	transition: box-shadow var(--dur-2) ease;
}
.byline:hover .byline__avatar { box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-brand); }
.byline:hover .byline__name { color: var(--c-brand-text); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item .icon { color: var(--c-subtle); width: 17px; height: 17px; }

/* Social icons */
.social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.social__link {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--c-surface-3);
	color: var(--c-muted);
	transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
.social__link .icon { width: 18px; height: 18px; }
.social__link:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--sh-md); }
.social__link--facebook:hover { background: #1877f2; }
.social__link--x:hover { background: #111; }
.social__link--youtube:hover { background: #ff0000; }
.social__link--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social__link--tiktok:hover { background: #010101; }
.social__link--linkedin:hover { background: #0a66c2; }
.social__link--telegram:hover { background: #229ed9; }
.social__link--whatsapp:hover { background: #25d366; }
.social__link--viber:hover { background: #7360f2; }

.contact { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact li { display: flex; align-items: flex-start; gap: 10px; }
.contact .icon { margin-top: 4px; width: 17px; height: 17px; color: var(--c-brand-text); }

/* Forms */
.search-form {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 4px 4px 18px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.search-form:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-100); }
.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--c-text);
}
.search-form__input::placeholder { color: var(--c-subtle); }
.search-form__submit {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--c-brand);
	color: #fff;
	transition: background-color var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.search-form__submit:hover { background: var(--c-brand-700); transform: scale(1.06); }
.search-form__submit .icon { width: 19px; height: 19px; }

.button-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: var(--sp-5);
	padding: 11px 22px;
	border-radius: var(--r-pill);
	background: var(--c-brand);
	color: #fff;
	font-weight: 700;
	box-shadow: var(--sh-brand);
	transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2);
}
.button-link:hover { color: #fff; background: var(--c-brand-700); transform: translateY(-2px); }

/* 5. Header ================================================================ */

.topbar {
	background: var(--c-brand-900);
	color: rgba(255, 255, 255, .86);
	font-size: var(--fs-xs);
}
:root[data-theme="dark"] .topbar { background: #060a16; }
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 38px;
}
.topbar__dates {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item + .topbar__item::before {
	content: "";
	width: 1px;
	height: 13px;
	margin-inline: 14px;
	background: rgba(255, 255, 255, .22);
}
.topbar__item .icon { width: 15px; height: 15px; opacity: .75; }
.topbar__item--clock time { font-variant-numeric: tabular-nums; }
.social--topbar { gap: 2px; }
.social--topbar .social__link {
	width: 30px;
	height: 30px;
	background: transparent;
	color: rgba(255, 255, 255, .78);
}
.social--topbar .social__link .icon { width: 15px; height: 15px; }
@media (max-width: 720px) {
	.topbar__item--ad,
	.topbar__end { display: none; }
}

.branding {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
}
.branding__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start; /* logo sits left whether or not a header ad is set */
	gap: var(--sp-6);
	padding-block: var(--sp-4);
}
.branding--with-ad .branding__inner { justify-content: space-between; }
.branding__logo { margin: 0; line-height: 0; font-size: inherit; }
.brand { display: inline-flex; align-items: center; }
.brand img {
	display: block;
	width: auto;
	max-width: min(100%, 380px);
	height: var(--logo-h, 84px);
	object-fit: contain;
}
.brand__text { color: var(--c-brand-text); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; }
.brand--dark { display: none; }
:root[data-theme="dark"] .branding__logo:has(.brand--dark) .brand--header:not(.brand--dark) { display: none; }
:root[data-theme="dark"] .brand--dark { display: inline-flex; }
:root[data-theme="dark"] .brand--header:not(.brand--dark) img,
:root[data-theme="dark"] .brand--drawer img {
	padding: 6px 10px;
	border-radius: var(--r-md);
	background: #fff;
}
.branding__ad { flex: 0 1 760px; min-width: 0; }
.branding__ad .bx-ad-unit { align-items: flex-end; }
@media (max-width: 900px) {
	.branding__inner,
	.branding--with-ad .branding__inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-3); padding-block: var(--sp-3); }
	.brand img { height: min(var(--logo-h, 84px), 64px); }
	.branding__ad { width: 100%; }
	.branding__ad .bx-ad-unit { align-items: center; }
}

/* Navigation */
.site-nav {
	position: relative;
	z-index: 50;
	background: var(--g-nav);
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06);
	transition: box-shadow var(--dur-3) ease;
}
.site-nav.is-sticky { position: sticky; top: var(--adminbar); }
.site-nav.is-stuck { box-shadow: 0 12px 30px -14px rgba(6, 14, 40, .6); }
.site-nav__inner {
	display: flex;
	align-items: center;
	gap: 4px;
	height: var(--nav-h);
}
.nav-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: var(--r-md);
	background: transparent;
	color: #fff;
	transition: background-color var(--dur-1) ease, transform var(--dur-2) var(--ease-spring);
}
.nav-btn:hover { background: rgba(255, 255, 255, .14); }
.nav-btn:active { transform: scale(.92); }
.nav-btn .icon { width: 22px; height: 22px; transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2); }
.nav-btn--theme .icon { grid-area: 1 / 1; }
.nav-btn--theme:hover .icon { transform: rotate(-24deg); }
.icon-sun { opacity: 0; transform: scale(.5) rotate(-90deg); }
:root[data-theme="dark"] .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .icon-moon { opacity: 0; transform: scale(.5) rotate(90deg); }

.site-nav__mark {
	display: inline-flex;
	align-items: center;
	flex: none;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width var(--dur-3) var(--ease-out), opacity var(--dur-2) ease, margin var(--dur-3) var(--ease-out);
}
.site-nav__mark img {
	display: block;
	width: auto;
	height: 36px;
	max-width: 130px;
	padding: 2px 6px;
	border-radius: var(--r-sm);
	background: #fff;
	object-fit: contain;
}
.site-nav.is-stuck .site-nav__mark { max-width: 150px; opacity: 1; margin-inline: 4px 8px; }

.site-nav__menu {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}
.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu--primary {
	display: flex;
	flex: none;
	align-items: center;
	flex-wrap: nowrap;
	gap: 2px;
}
.menu--primary > li { position: relative; flex: none; display: flex; align-items: center; }
.menu--primary > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 13px;
	border-radius: var(--r-sm);
	color: rgba(255, 255, 255, .94);
	font-size: var(--fs-md);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.menu--primary > li > a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 4px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transition: transform var(--dur-3) var(--ease-out);
}
.menu--primary > li > a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu--primary > li > a:hover::after,
.menu--primary > .current-menu-item > a::after,
.menu--primary > .current-menu-ancestor > a::after,
.menu--primary > .current-post-ancestor > a::after { transform: scaleX(1); }
.menu-icon { width: 20px; height: 20px; }

.submenu-toggle {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: -10px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
}
.submenu-toggle .icon { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease-out); }
.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

.menu--primary .sub-menu,
.menu-more__list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--c-surface);
	color: var(--c-text);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	box-shadow: var(--sh-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(.98);
	transform-origin: top left;
	transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.menu--primary li:hover > .sub-menu,
.menu--primary li:focus-within > .sub-menu,
.menu--primary li.is-open > .sub-menu,
.menu-more.is-open .menu-more__list { opacity: 1; visibility: visible; transform: none; }
.menu--primary .sub-menu a,
.menu-more__list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: var(--r-sm);
	color: var(--c-text);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color var(--dur-1), color var(--dur-1), padding var(--dur-2) var(--ease-out);
}
.menu--primary .sub-menu a:hover,
.menu-more__list a:hover { background: var(--c-brand-50); color: var(--c-brand-text); padding-left: 16px; }
.menu-more__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
.menu-more__list .submenu-toggle { display: none; }

.menu-more { position: relative; flex: none; }
.menu-more__list { left: auto; right: 0; max-height: min(70vh, 520px); overflow-y: auto; transform-origin: top right; }
.menu-more__btn {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-weight: 600;
	font-size: var(--fs-md);
}
.menu-more__btn:hover { background: rgba(255, 255, 255, .16); }
.menu-more__btn .icon { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.menu-more.is-open .menu-more__btn .icon { transform: rotate(180deg); }

.site-nav__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; padding-left: 4px; }

@media (max-width: 1023px) {
	.site-nav__menu {
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
		scroll-snap-type: x proximity;
	}
	.site-nav__menu::-webkit-scrollbar { display: none; }
	.menu--primary > li { scroll-snap-align: start; }
	.menu--primary > li > a { padding: 0 11px; font-size: var(--fs-base); }
	.menu--primary .sub-menu,
	.menu--primary .submenu-toggle,
	.menu-more { display: none !important; }
	.site-nav.is-stuck .site-nav__mark { display: none; }
}

/* Ticker */
.ticker {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	box-shadow: var(--sh-xs);
}
.ticker__inner { display: flex; align-items: center; gap: var(--sp-3); height: 48px; }
.ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: none;
	height: 30px;
	padding: 0 14px 0 12px;
	border-radius: var(--r-pill);
	background: var(--g-accent);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 700;
	box-shadow: 0 8px 18px -10px rgba(215, 25, 42, .75);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.live-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 2px solid rgba(255, 255, 255, .75);
	border-radius: 50%;
	animation: ping 1.6s var(--ease-out) infinite;
}
.ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.ticker__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ticker.is-ready .ticker__track { animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker.is-ready:hover .ticker__track,
.ticker.is-ready:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__item {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 0 26px;
	white-space: nowrap;
	font-weight: 600;
	color: var(--c-ink);
}
.ticker__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-accent);
	transform: translate(-50%, -50%);
}
.ticker__item a:hover { color: var(--c-brand-text); }
.ticker__time { color: var(--c-subtle); font-size: var(--fs-xs); font-weight: 500; }
.ticker__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border: 1px solid var(--c-border);
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-muted);
	transition: background-color var(--dur-1), color var(--dur-1);
}
.ticker__toggle:hover { background: var(--c-brand-50); color: var(--c-brand-text); }
.ticker__toggle .icon { width: 14px; height: 14px; }
.ticker__toggle .icon-play,
.ticker.is-paused .ticker__toggle .icon-pause { display: none; }
.ticker.is-paused .ticker__toggle .icon-play { display: block; }
@media (max-width: 600px) {
	.ticker__inner { gap: var(--sp-2); }
	.ticker__label { padding: 0 10px; font-size: var(--fs-xs); }
	.ticker__item { padding: 0 20px; font-size: var(--fs-sm); }
}

/* 6. Drawer & search overlay =============================================== */

.drawer { position: fixed; inset: 0; z-index: 100000; /* above the WP admin bar (99999) */ }
.drawer__backdrop,
.search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: var(--c-overlay);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity var(--dur-3) ease;
}
.drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(390px, 88vw);
	background: var(--c-surface);
	box-shadow: var(--sh-lg);
	transform: translateX(-104%);
	transition: transform var(--dur-3) var(--ease-out);
	outline: none;
}
.drawer.is-open .drawer__backdrop,
.search-overlay.is-open .search-overlay__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-bottom: 1px solid var(--c-border);
}
.brand--drawer img { height: 50px; max-width: 220px; }
.drawer__close,
.search-overlay__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--c-surface-3);
	color: var(--c-text);
	transition: background-color var(--dur-2), transform var(--dur-3) var(--ease-spring), color var(--dur-2);
}
.drawer__close:hover,
.search-overlay__close:hover { background: var(--c-accent); color: #fff; transform: rotate(90deg); }
.drawer__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	padding: var(--sp-5);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.drawer__about { margin: 0; color: var(--c-muted); }
.drawer__date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--r-md);
	background: var(--c-brand-50);
	color: var(--c-brand-text);
	font-weight: 600;
}
.menu--drawer > li { position: relative; border-bottom: 1px solid var(--c-border); }
.menu--drawer a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 44px 12px 4px;
	color: var(--c-ink);
	font-size: var(--fs-md);
	font-weight: 600;
	transition: color var(--dur-1), padding var(--dur-2) var(--ease-out);
}
.menu--drawer a:hover,
.menu--drawer .current-menu-item > a { color: var(--c-brand-text); padding-left: 12px; }
.menu--drawer .sub-menu { display: none; margin: 0; padding: 0 0 8px 14px; list-style: none; }
.menu--drawer li.is-open > .sub-menu { display: block; animation: fade-up var(--dur-3) var(--ease-out); }
.menu--drawer .sub-menu a { padding-block: 8px; font-size: var(--fs-base); font-weight: 500; color: var(--c-text); }
.menu--drawer .submenu-toggle {
	position: absolute;
	top: 7px;
	right: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	background: var(--c-surface-3);
}
.drawer.is-open .menu--drawer > li { animation: slide-in var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms + 90ms); }
.drawer__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	border-top: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: var(--fs-xs);
}
.drawer__copy { margin: 0; text-align: right; }

.theme-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-text);
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
}
.theme-switch__track {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: var(--r-pill);
	background: var(--c-border-strong);
	transition: background-color var(--dur-2);
}
.theme-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--sh-sm);
	transition: transform var(--dur-3) var(--ease-spring);
}
.theme-switch[aria-pressed="true"] .theme-switch__track { background: var(--c-brand); }
.theme-switch[aria-pressed="true"] .theme-switch__thumb { transform: translateX(20px); }

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 9vh, 110px) var(--gutter) var(--gutter);
}
.search-overlay__panel {
	position: relative;
	width: min(780px, 100%);
	max-height: calc(100dvh - clamp(32px, 14vh, 160px));
	overflow-y: auto;
	padding: var(--sp-4);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .55);
	opacity: 0;
	transform: translateY(-14px) scale(.98);
	transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out);
}
.search-overlay.is-open .search-overlay__panel { opacity: 1; transform: none; }
.search-overlay__form {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 6px 6px 6px 18px;
	border: 2px solid var(--c-border);
	border-radius: var(--r-md);
	transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.search-overlay__form:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-100); }
.search-overlay__icon { width: 24px; height: 24px; color: var(--c-brand-text); }
.search-overlay__input {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--c-ink);
	font-size: var(--fs-xl);
	font-weight: 600;
}
.search-overlay__input::placeholder { color: var(--c-subtle); font-weight: 500; }
.search-overlay__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-overlay__kbd {
	padding: 2px 7px;
	border: 1px solid var(--c-border-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	color: var(--c-muted);
	font: 600 11px/1.4 var(--font);
}
@media (max-width: 600px) { .search-overlay__kbd { display: none; } }
.search-overlay__hint { margin: 10px 4px 0; color: var(--c-subtle); font-size: var(--fs-sm); }
.search-overlay__results:empty { display: none; }
.search-overlay__results { margin-top: var(--sp-3); }
.search-overlay__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: var(--sp-5) 4px var(--sp-3);
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 700;
}
.search-overlay__label .icon { color: var(--c-accent); }
.search-overlay__popular { margin: 0; padding: 0; list-style: none; counter-reset: pop; display: grid; gap: 2px; }
.search-overlay__popular li { counter-increment: pop; }
.search-overlay__popular a {
	display: flex;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	color: var(--c-ink);
	font-weight: 600;
	transition: background-color var(--dur-1);
}
.search-overlay__popular a::before {
	content: counter(pop);
	flex: none;
	width: 1.6em;
	color: var(--c-brand-200);
	font-weight: 800;
}
.search-overlay__popular a:hover { background: var(--c-brand-50); }
.live-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.live-results__item a {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 10px;
	border-radius: var(--r-md);
	transition: background-color var(--dur-1);
	animation: fade-up var(--dur-3) var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}
.live-results__item a:hover,
.live-results__item a.is-active { background: var(--c-brand-50); }
.live-results__thumb {
	width: 76px;
	height: 56px;
	border-radius: var(--r-sm);
	background: var(--c-skeleton);
	object-fit: cover;
}
.live-results__title { display: block; color: var(--c-ink); font-weight: 700; line-height: 1.45; }
.live-results__meta { display: block; margin-top: 2px; color: var(--c-subtle); font-size: var(--fs-xs); }
.live-results__all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: var(--sp-2);
	padding: 12px;
	border-radius: var(--r-md);
	background: var(--c-surface-2);
	color: var(--c-brand-text);
	font-weight: 700;
	transition: background-color var(--dur-1), gap var(--dur-2);
}
.live-results__all:hover { background: var(--c-brand-50); gap: 10px; }
.live-results__state { padding: 18px 12px; color: var(--c-muted); text-align: center; }
mark {
	padding: 0 1px;
	background: linear-gradient(transparent 52%, rgba(255, 196, 0, .48) 0);
	color: inherit;
	border-radius: 2px;
}
:root[data-theme="dark"] mark { background: linear-gradient(transparent 52%, rgba(255, 196, 0, .32) 0); }

/* 7. Homepage sections ===================================================== */

/* Flash news: the signature big centred headlines. */
.flash { padding-top: var(--sp-8); }
.flash-item {
	max-width: 1120px;
	margin-inline: auto;
	padding-bottom: var(--sp-8);
	text-align: center;
}
.flash-item + .flash-item { padding-top: var(--sp-8); border-top: 1px solid var(--c-border); }
.flash-item__kicker { display: flex; justify-content: center; min-height: 6px; margin-bottom: var(--sp-3); }
.flash-item__kicker .chip { align-self: center; }
.flash-item__title {
	max-width: 1040px;
	margin: 0 auto var(--sp-4);
	font-size: var(--fs-display);
	font-weight: 800;
	line-height: var(--lh-heading);
	text-wrap: balance;
}
.flash-item__title a {
	color: var(--c-ink);
	background: linear-gradient(var(--c-accent), var(--c-accent)) 50% 100% / 0 3px no-repeat;
	transition: background-size var(--dur-3) var(--ease-out), color var(--dur-2) ease;
}
.flash-item__title a:hover { color: var(--c-brand-text); background-size: 100% 3px; }
.flash-item__subtitle { max-width: 860px; margin: 0 auto var(--sp-4); color: var(--c-text); font-size: var(--fs-xl); font-weight: 500; line-height: 1.6; text-wrap: balance; }
.flash-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2) var(--sp-5);
	margin-bottom: var(--sp-5);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}
.flash-item__meta .byline__avatar { width: 32px; height: 32px; }
.flash-item__media {
	aspect-ratio: 2 / 1;
	margin-bottom: var(--sp-5);
	border-radius: var(--r-lg);
	box-shadow: var(--sh-md);
}
.flash-item__media:hover .media__img { transform: scale(1.04); }
.flash-item__excerpt { max-width: 840px; margin: 0 auto; color: var(--c-text); font-size: var(--fs-lg); line-height: 1.85; }
.flash-item__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--sp-4);
	color: var(--c-brand-text);
	font-weight: 700;
	transition: gap var(--dur-2) var(--ease-out);
}
.flash-item__more:hover { gap: 11px; }
@media (max-width: 767px) {
	.flash-item__media { aspect-ratio: 16 / 10; }
}

/* Lead + list (+ ads) */
.lead-list__grid { display: grid; gap: var(--sp-8) var(--sp-6); }
@media (min-width: 768px) {
	.lead-list__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.lead-list__side { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.lead-list.has-side .lead-list__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) var(--side-w); }
	.lead-list.has-side .lead-list__side { grid-column: auto; }
}
.side-ads { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }

/* Grid + list */
.grid-list__grid { display: grid; gap: var(--sp-8); }
@media (min-width: 1024px) { .grid-list__grid { grid-template-columns: minmax(0, 1fr) var(--side-w); } }
.grid-list__side { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Columns */
.columns__grid { display: grid; gap: var(--sp-10) var(--sp-8); }
@media (min-width: 768px) {
	.columns__grid--2,
	.columns__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .columns__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.columns__col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.columns__col .section-head { margin-bottom: var(--sp-1); }

/* Opinion */
.opinion__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Feature + list */
.feature-list__grid { display: grid; gap: var(--sp-8); }
@media (min-width: 1100px) { .feature-list.has-second .feature-list__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.feature-list__body { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .feature-list__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.feature-list .card--hero .card__title { font-size: var(--fs-xl); }

/* Videos */
.video-hub { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .video-hub { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; } }
.player {
	aspect-ratio: 16 / 9;
	border-radius: var(--r-lg);
	background: #000;
	box-shadow: 0 26px 60px -26px rgba(0, 0, 0, .85);
}
.player__start {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
}
.player__start::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .45));
	transition: opacity var(--dur-3);
}
.player__start:hover .media__img { transform: scale(1.03); }
.player__button {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	margin: -39px 0 0 -39px;
	border-radius: 50%;
	background: var(--g-accent);
	color: #fff;
	animation: ring-pulse 2.2s ease-out infinite;
	transition: transform var(--dur-2) var(--ease-spring);
}
.player__button .icon { width: 30px; height: 30px; margin-left: 4px; }
.player__start:hover .player__button { transform: scale(1.1); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-hub__title { margin: var(--sp-4) 0 0; font-size: var(--fs-xl); line-height: var(--lh-heading); }
.video-hub__title a { color: #fff; }
.video-hub__title a:hover { color: #b9ccff; }
.video-hub__list { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.video-hub__item {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	align-items: center;
	gap: var(--sp-3);
	width: 100%;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .04);
	color: #e2e8f5;
	text-align: left;
	transition: background-color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.video-hub__item:hover { background: rgba(255, 255, 255, .09); transform: translateX(3px); }
.video-hub__item.is-active { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .12); box-shadow: inset 3px 0 0 var(--c-accent); }
.video-hub__thumb { aspect-ratio: 16 / 9; border-radius: var(--r-sm); }
.video-hub__play {
	position: absolute;
	left: 6px;
	bottom: 6px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	color: #fff;
}
.video-hub__play .icon { width: 12px; height: 12px; margin-left: 2px; }
.video-hub__label {
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 1023px) {
	.video-hub__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.video-hub__list li { scroll-snap-align: start; }
}

/* Photo mosaic. Every tile is a size container, so its caption adapts to the
   tile's own width rather than to the viewport. */
.mosaic { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic__item { container: tile / inline-size; }
.mosaic__item--lead { grid-column: 1 / -1; }
.mosaic__item--lead .card--overlay .card__title { font-size: var(--fs-2xl); }
@media (min-width: 900px) {
	.mosaic--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
	.mosaic--5 .mosaic__item--lead { grid-column: 1; grid-row: 1 / span 2; }
	/* The lead fills both rows; its photo is out of flow so a tall image cannot stretch them. */
	.mosaic--5 .mosaic__item--lead .card__media { aspect-ratio: auto; }
	.mosaic--5 .mosaic__item--lead .media__img { position: absolute; inset: 0; }
	.mosaic--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Narrow tiles: two caption lines and tighter padding keep the photo in view. */
@container tile (max-width: 299px) {
	.card--overlay .card__body { padding: var(--sp-3); }
	.card--overlay .card__title { -webkit-line-clamp: 2; }
}
/* Phone-sized tiles are too small to carry text over the photo, so the caption
   moves below it, as on a regular card. */
@media (max-width: 899px) {
	@container tile (max-width: 279px) {
		.card--overlay { display: flex; gap: var(--sp-2); }
		.card--overlay .card__media { height: auto; }
		.card--overlay .card__media::after { display: none; }
		.card--overlay .card__body { align-self: auto; padding: 0 0 var(--sp-3); pointer-events: auto; }
		.card--overlay .card__title { -webkit-line-clamp: 3; color: var(--c-ink); text-shadow: none; }
		.card--overlay:hover .card__title a,
		.card--overlay .card__title a:focus-visible { color: var(--c-brand-text); }
		.card--overlay .card__meta { color: var(--c-subtle); }
	}
}

/* 8. Article =============================================================== */

.read-progress {
	position: fixed;
	top: var(--adminbar);
	left: 0;
	right: 0;
	z-index: 1200;
	height: 3px;
	pointer-events: none;
}
.read-progress__bar {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--c-brand), var(--c-accent));
	transform: scaleX(var(--progress, 0));
	transform-origin: 0 50%;
}

.article-header {
	padding-block: var(--sp-6);
	background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
	border-bottom: 1px solid var(--c-border);
}
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 var(--sp-4);
	padding: 0;
	list-style: none;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}
.breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: var(--c-border-strong); }
.breadcrumbs a:hover { color: var(--c-brand-text); }
.article-header__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.article-title {
	margin: 0 0 var(--sp-4);
	/* 2.25rem on phones (was 1.75rem), growing to 3.5rem on desktop. */
	font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
	font-weight: 800;
	line-height: var(--lh-heading);
}
.article-subtitle {
	margin: 0 0 var(--sp-5);
	padding-left: var(--sp-4);
	border-left: 3px solid var(--c-accent);
	color: var(--c-text);
	font-size: var(--fs-xl);
	font-weight: 500;
	line-height: 1.65;
}
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-border);
}
.article-meta__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-5);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}
.article-meta__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share__btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-muted);
	transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
}
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { transform: translateY(-3px); color: #fff; box-shadow: var(--sh-md); }
.share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.share__btn--x:hover { background: #111; border-color: #111; }
.share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; }
.share__btn--viber:hover { background: #7360f2; border-color: #7360f2; }
.share__btn--telegram:hover { background: #229ed9; border-color: #229ed9; }
.share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share__btn--email:hover,
.share__btn--native:hover { background: var(--c-brand); border-color: var(--c-brand); }
.share__btn--copy:hover,
.share__btn--copy.is-done { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-surface); }
.share--large .share__btn { width: 46px; height: 46px; }
.share--large .share__btn .icon { width: 20px; height: 20px; }

.text-size { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--r-pill); overflow: hidden; background: var(--c-surface); }
.text-size__btn {
	height: 38px;
	padding: 0 13px;
	border: 0;
	background: transparent;
	color: var(--c-muted);
	font-weight: 700;
	transition: background-color var(--dur-1), color var(--dur-1);
}
.text-size__btn + .text-size__btn { border-left: 1px solid var(--c-border); }
.text-size__btn:hover { background: var(--c-brand-50); color: var(--c-brand-text); }
.text-size__btn span { font-size: .8em; }

.article .layout { padding-top: var(--sp-6); }
.article-featured { margin: 0 0 var(--sp-6); }
.article-featured .media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.article-featured figcaption {
	margin-top: var(--sp-2);
	padding-left: var(--sp-3);
	border-left: 2px solid var(--c-border-strong);
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.entry-content {
	color: var(--c-text);
	font-size: var(--article-size);
	line-height: 1.88;
	overflow-wrap: break-word;
	transition: font-size var(--dur-2) ease;
}
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { margin: 1.6em 0 .55em; font-size: 1.45em; }
.entry-content h3 { margin: 1.5em 0 .5em; font-size: 1.25em; }
.entry-content h4 { margin: 1.4em 0 .5em; font-size: 1.1em; }
.entry-content a {
	color: var(--c-brand-text);
	text-decoration: underline;
	text-decoration-color: var(--c-brand-200);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dur-2), color var(--dur-2);
}
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption,
.entry-content .wp-caption-text { margin-top: .5em; color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content blockquote {
	position: relative;
	margin: 1.7em 0;
	padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-10);
	border-left: 4px solid var(--c-brand);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	background: var(--c-brand-50);
	color: var(--c-ink);
	font-size: 1.04em;
}
.entry-content blockquote::before {
	content: "“";
	position: absolute;
	left: 12px;
	top: 2px;
	color: var(--c-brand-200);
	font: 700 3.2em/1 Georgia, "Times New Roman", serif;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--c-accent); }
.entry-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 9px 12px; border: 1px solid var(--c-border); text-align: left; }
.entry-content th { background: var(--c-surface-2); color: var(--c-ink); }
.entry-content hr { height: 1px; margin: 2em 0; border: 0; background: var(--c-border); }
.entry-content iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.entry-content iframe.is-fitted { width: 100% !important; height: auto !important; aspect-ratio: var(--ratio, 16 / 9); }
.entry-content::after { content: ""; display: table; clear: both; }

.page-links { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-6) 0; font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-8) 0 0; padding: 0; list-style: none; }
.tag-list a {
	display: inline-block;
	padding: 5px 13px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
	transition: border-color var(--dur-2), color var(--dur-2), background-color var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.tag-list a:hover { border-color: var(--c-brand); background: var(--c-brand-50); color: var(--c-brand-text); transform: translateY(-2px); }

.share-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	margin: var(--sp-8) 0;
	padding: var(--sp-5);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--sh-xs);
}
.share-panel__label { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); font-weight: 700; }
.share-panel__label .icon { color: var(--c-accent); }

.author-box {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--sp-5);
	margin: var(--sp-8) 0;
	padding: var(--sp-6);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	background: linear-gradient(135deg, var(--c-brand-50) 0%, var(--c-surface) 62%);
	overflow: hidden;
}
.author-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g-duo); }
.author-box__photo { flex: none; }
.author-box__photo img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px var(--c-surface), 0 0 0 5px var(--c-brand-200);
}
.author-box__kicker { margin: 0 0 2px; color: var(--c-accent-text); font-size: var(--fs-sm); font-weight: 700; }
.author-box__name { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); }
.author-box__bio { color: var(--c-muted); }
.author-box__more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-brand-text); font-weight: 700; transition: gap var(--dur-2) var(--ease-out); }
.author-box__more:hover { gap: 11px; }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

.comments { margin-top: var(--sp-10); }
.comments__frame {
	min-height: 140px;
	padding: var(--sp-4);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	background: var(--c-surface);
}
.comments__placeholder { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--c-subtle); }
.comments__frame.is-loaded .comments__placeholder { display: none; }

.related {
	padding-block: var(--section-gap);
	border-top: 1px solid var(--c-border);
	background: var(--c-surface);
}

/* 9. Sidebar =============================================================== */

.layout__side { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: var(--sp-6); height: 100%; }
.sidebar__end.is-sticky { position: sticky; top: calc(var(--nav-h) + var(--adminbar) + 20px); }
.tabs__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4);
	padding: 5px;
	border-bottom: 1px solid var(--c-border);
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	background: var(--c-surface-2);
}
.tabs__tab {
	padding: 9px 10px;
	border: 0;
	border-radius: var(--r-md);
	background: transparent;
	color: var(--c-muted);
	font-weight: 700;
	transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
.tabs__tab:hover { color: var(--c-ink); }
.tabs__tab[aria-selected="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-sm); }
.tabs__panel:not([hidden]) { animation: fade-up var(--dur-3) var(--ease-out); }
.sidebar .card--row .card__media { flex-basis: 96px; }
.sidebar__widgets { display: flex; flex-direction: column; gap: var(--sp-6); }
.widget-title { position: relative; padding-left: 13px; font-size: var(--fs-lg); }
.widget-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 3px; background: var(--g-duo); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-border); }

/* 10. Archives, search, author, team, 404 ================================== */

.page-hero {
	position: relative;
	padding-block: var(--sp-8) var(--sp-8);
	background: var(--g-brand);
	color: rgba(231, 236, 248, .85);
	overflow: hidden;
	isolation: isolate;
}
.page-hero .breadcrumbs ol { color: rgba(255, 255, 255, .72); }
.page-hero .breadcrumbs li + li::before { color: rgba(255, 255, 255, .35); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero__title { margin: 0 0 var(--sp-2); color: #fff; font-size: var(--fs-3xl); font-weight: 800; }
.page-hero__desc { max-width: 760px; color: rgba(255, 255, 255, .85); }
.page-hero__desc p:last-child { margin-bottom: 0; }
.page-hero__count {
	display: inline-flex;
	margin: var(--sp-2) 0 0;
	padding: 4px 13px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .13);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 600;
}
.page-hero__search .search-form { max-width: 580px; margin-top: var(--sp-4); }
.author-hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6); }
.author-hero__photo {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), var(--sh-lg);
}
.author-hero__kicker { margin: 0 0 2px; color: #ffc2c8; font-weight: 700; }

.archive-list__lead { margin-bottom: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--c-border); }
@media (min-width: 768px) {
	.archive-list__lead .card--hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--sp-6); }
}

/*
 * Story grid (Site Settings → Category Page). Columns follow the list's own
 * width, so they adapt to the sidebar as well as the screen: 1 column, then 2,
 * then 3 when chosen. The 3-column grid runs on 6 tracks so two cards left on
 * the last row can share it evenly; a card left alone spans the whole row
 * with its photo beside the text.
 */
.archive-list { container: archive / inline-size; }
.archive-list__grid { display: grid; gap: var(--sp-8) var(--sp-5); }
.archive-list__item .card__title { font-size: 1.2rem; }
.archive-list__ad { grid-column: 1 / -1; }
@container archive (min-width: 520px) {
	.archive-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.archive-list--cols-2 .is-last-2 { grid-column: 1 / -1; }
	.archive-list--cols-2 .is-last-2 > .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--sp-6); }
}
@container archive (min-width: 520px) and (max-width: 759.98px) {
	.archive-list--cols-3 .is-last-2 { grid-column: 1 / -1; }
	.archive-list--cols-3 .is-last-2 > .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--sp-6); }
}
@container archive (min-width: 760px) {
	.archive-list--cols-3 .archive-list__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.archive-list--cols-3 .archive-list__item { grid-column: span 2; }
	.archive-list--cols-3 .is-last-3-2 { grid-column: span 3; }
	.archive-list--cols-3 .is-last-3-1 { grid-column: 1 / -1; }
	.archive-list--cols-3 .is-last-3-1 > .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--sp-6); }
}

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--sp-10) 0 0; padding: 0; list-style: none; }
.pagination a,
.pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-text);
	font-weight: 700;
	transition: border-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2);
}
.pagination a:hover { border-color: var(--c-brand); color: var(--c-brand-text); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.pagination .current { border-color: var(--c-brand); background: var(--c-brand); color: #fff; box-shadow: var(--sh-brand); }
.pagination .dots { border: 0; background: none; }
.pagination .icon { width: 18px; height: 18px; }

.search-results { margin: 0; padding: 0; list-style: none; }
.search-result {
	display: grid;
	grid-template-columns: 34% minmax(0, 1fr);
	gap: var(--sp-5);
	padding-block: var(--sp-5);
	border-bottom: 1px solid var(--c-border);
}
.search-result:first-child { padding-top: 0; }
@media (min-width: 768px) { .search-result { grid-template-columns: 230px minmax(0, 1fr); } }
.search-result__media { aspect-ratio: 4 / 3; align-self: start; }
.search-result:hover .media__img { transform: scale(1.05); }
.search-result__body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.search-result__title { margin: 0; font-size: var(--fs-lg); line-height: var(--lh-heading); }
.search-result__excerpt { margin: 0; color: var(--c-muted); }

.empty-state { max-width: 560px; margin: var(--sp-8) auto; text-align: center; }
.empty-state__icon {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: var(--sp-4);
	border-radius: 50%;
	background: var(--c-brand-50);
	color: var(--c-brand-text);
}
.empty-state__icon .icon { width: 34px; height: 34px; }
.empty-state__title { font-size: var(--fs-xl); }

.team { padding-block: var(--sp-10) var(--section-gap); }
.team-intro { max-width: 760px; margin: var(--sp-8) auto 0; text-align: center; }
.team-group__title { margin: var(--sp-8) 0 var(--sp-5); font-size: var(--fs-xl); text-align: center; }
.team-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.team-card {
	padding: var(--sp-6) var(--sp-5);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--sh-xs);
	text-align: center;
	transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.staff-photo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; }
.staff-photo--initial { background: var(--g-brand); color: #fff; font-weight: 800; font-size: 1.15em; }
.team-card .staff-photo { margin: 0 auto var(--sp-4); font-size: 2rem; box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 6px var(--c-brand-100); }
.team-card__name { margin: 0; font-size: var(--fs-lg); }
.team-card__role { margin: 4px 0 0; color: var(--c-accent-text); font-weight: 600; }
.team-card__bio { margin-top: var(--sp-3); color: var(--c-muted); font-size: var(--fs-sm); }
.team-card__contact { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-4); }
.team-card__contact a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-surface-3);
	color: var(--c-muted);
	transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.team-card__contact a:hover { background: var(--c-brand); color: #fff; transform: translateY(-2px); }
.team-card__contact .icon { width: 17px; height: 17px; }
.team-empty { text-align: center; color: var(--c-muted); }

.not-found { padding-block: var(--sp-16) var(--sp-10); text-align: center; }
.not-found__code {
	margin: 0;
	font-size: clamp(5rem, 2.8rem + 10vw, 10rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(120deg, var(--c-brand) 20%, var(--c-accent) 80%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.not-found__title { margin-top: var(--sp-3); font-size: var(--fs-2xl); }
.not-found__text { color: var(--c-muted); }
.not-found .search-form { max-width: 520px; margin: var(--sp-6) auto 0; }
.page-body .entry-content { max-width: 820px; }

/* 11. Footer, back-to-top, toast =========================================== */

.site-footer {
	position: relative;
	margin-top: var(--section-gap);
	background: linear-gradient(180deg, #0d1a40 0%, #081129 100%);
	color: rgba(226, 232, 245, .78);
	overflow: hidden;
	isolation: isolate;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(700px 320px at 8% 0%, rgba(42, 84, 196, .38), transparent 62%),
		radial-gradient(620px 300px at 100% 100%, rgba(215, 25, 42, .18), transparent 62%);
}
.site-footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--g-duo-x); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
	display: grid;
	gap: var(--sp-10) var(--sp-8);
	padding-block: var(--sp-16) var(--sp-12);
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.site-footer__grid { grid-template-columns: 1.35fr 1.15fr 1fr .9fr; }
	.site-footer__grid.no-team { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-heading {
	position: relative;
	margin: 0 0 var(--sp-5);
	padding-bottom: var(--sp-3);
	color: #fff;
	font-size: var(--fs-lg);
}
.footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #6f8fe6, var(--c-accent));
}
.footer-logo .brand img { height: 72px; }
.brand--tile img { padding: 8px 12px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-md); }
.footer-title { margin: var(--sp-4) 0 var(--sp-2); color: #fff; font-size: var(--fs-xl); }
.footer-about { line-height: 1.75; }
.footer-regs { display: flex; flex-direction: column; gap: 8px; margin: var(--sp-4) 0 var(--sp-5); padding: 0; list-style: none; font-size: 1rem; }
.footer-regs li { display: flex; align-items: flex-start; gap: 8px; }
.footer-regs .icon { margin-top: 3px; color: #8fb0ff; }
.social--footer .social__link { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-team { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.footer-team__item { display: flex; align-items: center; gap: 12px; }
.footer-team__item .staff-photo { width: 40px; height: 40px; font-size: 1rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.footer-team--text .footer-team__item { padding-left: 12px; border-left: 2px solid rgba(255, 255, 255, .16); }
.footer-team__role { display: block; color: rgba(226, 232, 245, .6); font-size: var(--fs-xs); }
.footer-team__name { display: block; color: #fff; font-weight: 700; }
.footer-link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); color: #b9ccff; font-weight: 700; transition: gap var(--dur-2); }
.footer-link-more:hover { gap: 10px; }
.contact--footer .icon { color: #8fb0ff; }
.footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--sp-4); margin: 0; padding: 0; list-style: none; }
.footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
	transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.footer-menu a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .28);
	transition: background-color var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.footer-menu a:hover { transform: translateX(3px); }
.footer-menu a:hover::before { background: var(--c-accent); transform: scale(1.3); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); }
.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-2) var(--sp-6);
	padding-block: var(--sp-4);
	/* Keep the credit clear of the floating back-to-top button. */
	padding-inline-end: calc(var(--gutter) + 64px);
	font-size: var(--fs-sm);
}
.copyright,
.credit { margin: 0; }
.credit a { color: #fff; font-weight: 700; }
.credit a:hover { color: #ffb8bf; }

.to-top {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 900;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-brand-text);
	box-shadow: var(--sh-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity var(--dur-3) ease, transform var(--dur-3) var(--ease-spring), visibility var(--dur-3);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top.is-visible:hover { transform: translateY(-3px); }
.to-top .icon { width: 20px; height: 20px; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle {
	fill: none;
	stroke: var(--c-accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--scroll, 0) * 100);
}

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 100030;
	padding: 11px 20px;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: var(--c-surface);
	font-weight: 600;
	box-shadow: var(--sh-lg);
	opacity: 0;
	transform: translate(-50%, 18px);
	transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 12. Ads & pop-up ========================================================= */

.ad-slot { display: flex; flex-direction: column; align-items: center; margin-block: var(--sp-6); }
.ad-slot--banner {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.ad-slot--side { margin: 0; }
.ad-slot--drawer { margin: 0; }
.ad-slot > .bx-ads-items,
.ad-slot > .bx-ad-unit { width: 100%; }
.bx-ad-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bx-ad-unit a { display: block; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2); }
.bx-ad-unit a:hover { opacity: .94; }
.bx-ad-img,
.bx-ad-unit img,
.bx-ad-unit picture { display: block; max-width: 100%; height: auto; border-radius: var(--r-sm); }
.bx-ad-label { color: var(--c-subtle); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.bx-ads-items { display: flex; gap: var(--sp-4); }
.bx-ads-items--horizontal { flex-wrap: wrap; justify-content: center; }
.bx-ads-items--horizontal > .bx-ad-unit { flex: 1 1 260px; }
.bx-ads-items--vertical { flex-direction: column; align-items: center; }
.bx-ad-admin-hint {
	display: block;
	margin: 0 auto 6px;
	padding: 3px 10px;
	border: 1px dashed #d9a52b;
	border-radius: 6px;
	background: #fff6dc;
	color: #7a5200;
	font: 600 11px/1.4 ui-monospace, Consolas, monospace;
	text-align: center;
}
.ad-slot--inline { margin-block: var(--sp-6); }
.entry-content .ad-slot--inline { clear: both; }

.bx-skip-ad {
	position: fixed;
	inset: 0;
	z-index: 100020;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 9, 18, .78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity var(--dur-3) ease;
}
.bx-skip-ad.is-open { opacity: 1; }
.bx-skip-ad-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 620px;
	max-height: 92vh;
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: 0 34px 90px rgba(0, 0, 0, .5);
	overflow: hidden;
	transform: translateY(18px) scale(.97);
	transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3);
}
.bx-skip-ad.is-open .bx-skip-ad-content { transform: none; }
.bx-skip-ad.is-closing { opacity: 0; }
.bx-skip-ad.is-closing .bx-skip-ad-content { transform: translateY(-30px) scale(.96); }
.bx-skip-ad-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 60px 12px 16px; border-bottom: 1px solid var(--c-border); }
.bx-skip-ad-logo img { display: block; width: auto; max-height: 40px; }
.bx-skip-ad-tag { padding: 4px 10px; border: 1px solid var(--c-border); border-radius: var(--r-pill); color: var(--c-subtle); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.bx-skip-ad-body { overflow: auto; }
.bx-skip-ad-body img,
.bx-skip-ad-body picture { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 0; }
.bx-skip-ad-foot { position: relative; display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--c-border); background: var(--c-surface-2); }
.bx-skip-ad-progress { position: absolute; left: 0; right: 0; top: -1px; height: 3px; overflow: hidden; }
.bx-skip-ad-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-brand), var(--c-accent)); transform-origin: 0 50%; transform: scaleX(var(--remaining, 1)); transition: transform 1s linear; }
.bx-skip-ad-skip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--g-accent);
	color: #fff;
	font-weight: 700;
	transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2);
}
.bx-skip-ad-skip:hover { transform: translateX(2px); box-shadow: 0 10px 22px -10px rgba(215, 25, 42, .8); }
.bx-skip-ad-skip .icon { width: 18px; height: 18px; }
.bx-skip-ad-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .25); font-size: 12px; }
.bx-skip-ad-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, .6);
	color: #fff;
	transition: background-color var(--dur-2), transform var(--dur-3) var(--ease-spring);
}
.bx-skip-ad-close:hover { background: var(--c-accent); transform: rotate(90deg); }
.bx-skip-ad-close .icon { width: 18px; height: 18px; }

/* 13. Motion, reduced motion, print ======================================== */

.has-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes glow-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 42, .45); }
	50% { box-shadow: 0 0 0 9px rgba(215, 25, 42, 0); }
}
@keyframes ring-pulse {
	0% { box-shadow: 0 0 0 0 rgba(215, 25, 42, .55); }
	80%, 100% { box-shadow: 0 0 0 20px rgba(215, 25, 42, 0); }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.ticker.is-ready .ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.has-reveal [data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.topbar,
	.site-nav,
	.ticker,
	.ad-slot,
	.layout__side,
	.share,
	.share-panel,
	.text-size,
	.comments,
	.related,
	.site-footer,
	.to-top,
	.read-progress,
	.drawer,
	.search-overlay { display: none !important; }
	body { background: #fff; color: #000; }
	.layout--sidebar { display: block; }
	.entry-content { font-size: 12pt; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
