/* ==========================================================================
   Tikho Kalam 2.0 — front-end styles
   --------------------------------------------------------------------------
   Modern news design for तीखो कलम: Anek Devanagari headlines over a Mukta
   body, a light slate page with white cards, the logo's blue ("तीखो") and
   red ("कलम"), a solid blue menu bar and pen-stroke accents (slanted nib
   markers, red underlines) instead of newspaper rules.

    1. Tokens (light, plain, dark)
    2. Base & accessibility
    3. Layout primitives & bands
    4. Components: section heads, kickers, media, cards, lists, boxes, forms
    5. Header: top bar, masthead, 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 of "तीखो" and the red of "कलम" in the logo. */
	--c-brand: #0f56a6;
	--c-brand-50: #edf3fa;
	--c-brand-100: #d6e4f4;
	--c-brand-200: #a9c6e8;
	--c-brand-400: #4a83c4;
	--c-brand-700: #0c4688;
	--c-brand-800: #0a386d;
	--c-brand-900: #07264a;
	--c-brand-text: var(--c-brand);
	--c-accent: #e12d2e;
	--c-accent-50: #fdeeee;
	--c-accent-100: #fad6d6;
	--c-accent-700: #b52122;
	--c-accent-text: #c42526;

	/* Neutrals: a cool slate family. The page is a very light grey so white
	   cards and boxes lift off it; Site Settings can make it plain white.
	   Muted and subtle text keep 4.5:1+ contrast on both. */
	--c-bg: #f3f5f8;
	--c-surface: #ffffff;
	--c-surface-2: #f7f9fc;
	--c-surface-3: #edf1f6;
	--c-border: #e1e6ee;
	--c-border-strong: #c9d2de;
	--c-rule: #0f1b2d;
	--c-ink: #0f1b2d;
	--c-text: #26344a;
	--c-muted: #526076;
	--c-subtle: #5f6d83;
	--c-focus: #1f6fd1;
	--c-skeleton: #e6ebf2;
	--c-skeleton-hi: #f5f7fa;
	--c-overlay: rgba(9, 16, 28, .64);
	--c-band: #0b2547;
	--c-band-deep: #081a33;
	--c-on-band: #e3ebf6;

	/* Gradients */
	--g-accent: linear-gradient(135deg, var(--c-accent), var(--c-accent-700));
	/* Brand stripe in the logo's proportions: blue "तीखो", red "कलम". */
	--g-stripe: linear-gradient(90deg, var(--c-brand) 0 44%, var(--c-accent) 44% 100%);
	--texture: url("../img/pen-lines-ink.svg");
	--g-scrim: linear-gradient(180deg, rgba(8, 12, 20, 0) 30%, rgba(8, 12, 20, .5) 62%, rgba(8, 12, 20, .9) 100%);
	--g-band:
		radial-gradient(820px 360px at 100% 0%, rgba(225, 45, 46, .2), transparent 62%),
		radial-gradient(720px 340px at 0% 100%, rgba(74, 131, 196, .34), transparent 62%);

	/* Type */
	--font: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Anek Devanagari", "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", 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.13rem + .5vw, 1.5rem);
	--fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 2.05rem);
	--fs-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
	--fs-display: clamp(2rem, 1.3rem + 3vw, 3.6rem);
	--lh-head: 1.45; /* Devanagari needs room above and below for 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.5rem, 1.8rem + 2.8vw, 4.25rem);
	--gutter: clamp(1rem, .55rem + 1.8vw, 1.5rem);
	--container: 1280px;
	--container-narrow: 860px;
	--side-w: 300px;

	/* Shape & depth: tighter radii inside, softer on containers. */
	--r-xs: 4px;
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-pill: 999px;
	--sh-xs: 0 1px 2px rgba(7, 38, 74, .06);
	--sh-sm: 0 1px 3px rgba(7, 38, 74, .08), 0 1px 2px rgba(7, 38, 74, .04);
	--sh-md: 0 12px 28px -12px rgba(7, 38, 74, .22), 0 2px 6px -2px rgba(7, 38, 74, .06);
	--sh-lg: 0 26px 52px -20px rgba(7, 38, 74, .34), 0 8px 16px -8px rgba(7, 38, 74, .1);

	/* 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: 54px;
	--adminbar: 0px;
	--article-size: 1.1875rem;

	color-scheme: light;
}

/* Site Settings → General → "Light grey page background" off: plain white. */
:root:not([data-theme="dark"]) body.is-plain {
	--c-bg: #ffffff;
	--c-surface: #ffffff;
	--c-surface-2: #f6f8fb;
	--c-surface-3: #eef1f6;
	--c-border: #e3e8ef;
	--c-border-strong: #cbd3de;
	--c-skeleton: #eaeef4;
	--c-skeleton-hi: #f6f8fb;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--c-brand-text: #8cbcf0;
	--c-brand-50: #0f1f33;
	--c-brand-100: #142a44;
	--c-brand-200: #224266;
	--c-accent-text: #ff8a8a;
	--c-accent-50: #2a1517;
	--c-accent-100: #3b1b1e;

	--c-bg: #0b111a;
	--c-surface: #111924;
	--c-surface-2: #151f2c;
	--c-surface-3: #1b2636;
	--c-border: #233042;
	--c-border-strong: #34445b;
	--c-rule: #d4dce7;
	--c-ink: #eef2f7;
	--c-text: #cfd6e0;
	--c-muted: #9aa6b6;
	--c-subtle: #7d899b;
	--c-focus: #7fb0ff;
	--c-skeleton: #172130;
	--c-skeleton-hi: #1f2b3d;
	--c-overlay: rgba(2, 6, 12, .74);
	--c-band: #0f1d30;
	--c-band-deep: #08101b;
	--texture: url("../img/pen-lines.svg");

	--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; } }
/* Height of the sticky menu, when it is sticky; pinned elements sit below it. */
body { --nav-offset: 0px; }
body.has-sticky-nav { --nav-offset: calc(var(--nav-h) + 2px); } /* + its two 1px rules */
@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) + var(--article-strip, 0px) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.7;
	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-family: var(--font-head);
	font-weight: 700;
	line-height: var(--lh-head);
	overflow-wrap: break-word; /* Never let one long word widen the page. */
}

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: 3px;
}

::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 & bands ============================================= */

.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-12); }
}
.layout__main { min-width: 0; }

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

/* Full-width bands. The two dark ones (brand, ink) share the same deep blue
   family as the footer, so they read as a deliberate rhythm, not accidents. */
.band {
	position: relative;
	margin-block: var(--section-gap);
	padding-block: var(--section-gap) calc(var(--section-gap) + var(--sp-2));
	isolation: isolate;
}
.band--tint {
	background: var(--c-surface);
	border-block: 1px solid var(--c-border);
}
.band--brand,
.band--ink {
	background: var(--c-band);
	color: var(--c-on-band);
	overflow: hidden;
}
.band--ink { background: var(--c-band-deep); }
.band--brand::before,
.band--ink::before,
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("../img/pen-lines.svg") 0 0 / 260px repeat, var(--g-band);
}

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

/* Section heading: a hairline with a red pen-stroke underline beneath the
   title, and a slanted blue nib in front of it. */
.section-head {
	position: relative;
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
	margin-bottom: var(--sp-6);
	border-bottom: 1px solid var(--c-border-strong);
}
.section-head__title {
	display: flex;
	align-items: center;
	gap: .5em;
	margin: 0 auto -1px 0;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--c-accent);
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1.3;
}
.section-head__title::before {
	content: "";
	flex: none;
	width: .28em;
	height: .95em;
	border-radius: 2px;
	background: var(--c-brand);
	transform: skewX(-16deg) translateY(-.04em);
}
.section-head__title a { color: inherit; }
.section-head__title a:hover { color: var(--c-brand-text); }
.section-head__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
	padding: 3px 8px 3px 12px;
	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;
	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); border-color: var(--c-brand-200); 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); padding-bottom: 8px; }
.section-head--light { border-bottom-color: rgba(255, 255, 255, .2); }
.section-head--light .section-head__title::before { background: #fff; }
.section-head--light .section-head__title,
.section-head--light .section-head__title a { color: #fff; }
.section-head--light .section-head__more { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .22); background: transparent; }
.section-head--light .section-head__more:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); }

/* Category labels: a red word led by a short pen stroke that lengthens on hover. */
.kicker {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 7px;
	color: var(--c-accent-text);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.kicker::before {
	content: "";
	width: 14px;
	height: 3px;
	border-radius: 2px;
	background: currentColor;
	transition: width var(--dur-3) var(--ease-out);
}
.kicker:hover { color: var(--c-accent); }
.kicker:hover::before { width: 22px; }

/* Category tags in the article header. */
.chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 13px 2px;
	border: 1px solid var(--c-accent-100);
	border-radius: var(--r-pill);
	background: var(--c-accent-50);
	color: var(--c-accent-text);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.5;
	transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.chip:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.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(--c-accent);
	color: #fff;
	animation: glow-pulse 2.4s ease-in-out infinite;
}
.badge--breaking .icon { width: 15px; height: 15px; }

/* Media: image frame with a 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(.4) 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: 1.15rem;
	font-weight: 600;
	line-height: var(--lh-head);
	color: var(--c-ink);
	text-wrap: pretty;
}
.card__title a { transition: color var(--dur-2) ease; }
.card:hover .card__title a,
.card__title a:focus-visible { color: var(--c-brand-text); }
.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;
}
.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, .95);
	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); }
.card--hero .card__title { font-size: var(--fs-2xl); font-weight: 700; text-wrap: balance; }
.card--hero .card__excerpt { font-size: var(--fs-md); }

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

.card--compact { gap: 4px; }
.card--compact .card__title { font-size: 1.05rem; font-weight: 500; }

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

/* Overlay card: caption over the photo; photo and caption share one grid
   cell so long titles grow the card instead of spilling out. */
.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; border-radius: var(--r-lg); }
.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-5);
	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; }

/* Round (portrait) cards: hearsay / opinion columns. */
.card--round {
	height: 100%;
	align-items: center;
	text-align: center;
	padding: var(--sp-8) var(--sp-5) var(--sp-6);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	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: 6px;
	left: 18px;
	font: 800 4.5rem/1 var(--font-head);
	color: var(--c-accent-100);
	pointer-events: none;
}
.card--round:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card--round .card__media {
	width: 112px;
	height: 112px;
	aspect-ratio: 1;
	padding: 3px;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--c-brand) 0 45%, var(--c-accent) 45% 100%);
}
.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(228, 236, 245, .66); }
.card--on-dark .media { box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .8); }

/* Card grids & lists */
.card-grid { display: grid; gap: var(--sp-8) var(--sp-6); }
@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)); }
}

.stack-list { display: flex; flex-direction: column; }
.stack-list > * { padding-block: var(--sp-4); }
.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: 0;
	top: .74em;
	width: 9px;
	height: 3px;
	border-radius: 2px;
	background: var(--c-accent);
	transition: width var(--dur-3) var(--ease-out);
}
.stack-list--bullets .card--compact:hover .card__title::before { width: 13px; }
.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-md);
	padding: var(--sp-5);
}

/* 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: 30%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px var(--c-border-strong);
	transition: box-shadow var(--dur-2) ease;
}
.byline:hover .byline__avatar { box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px 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: var(--r-md);
	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:active { transform: translateY(0) scale(.96); }
.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: 12px; 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); }
.contact a { overflow-wrap: anywhere; }

/* 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); }
.search-form__submit:active { transform: scale(.95); }
.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: 0 12px 24px -12px rgba(15, 86, 166, .7);
	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); }
.button-link:active { transform: translateY(0) scale(.98); }

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

/* Top bar (used with the left-aligned masthead). */
.topbar {
	background: var(--c-brand-900);
	color: rgba(255, 255, 255, .86);
	font-size: var(--fs-xs);
}
:root[data-theme="dark"] .topbar { background: #060b12; }
.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; }
}

/* Masthead */
.site-header::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--g-stripe);
}
.masthead { position: relative; isolation: isolate; }
.masthead { background: var(--c-surface); }
.masthead__inner {
	display: grid;
	align-items: center;
	gap: var(--sp-3) var(--sp-6);
	padding-block: var(--sp-6) var(--sp-5);
}
.masthead__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%, 420px);
	height: var(--logo-h, 84px);
	object-fit: contain;
}
.brand__text { color: var(--c-brand-text); font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 800; line-height: 1.3; }
.brand--dark { display: none; }
:root[data-theme="dark"] .masthead__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 12px;
	border-radius: var(--r-md);
	background: #ffffff;
}

.masthead--center .masthead__inner {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	text-align: center;
}
.masthead--center .masthead__logo { grid-column: 2; grid-row: 1; justify-self: center; }
.masthead__tagline {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: -2px 0 0;
	color: var(--c-muted);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: .02em;
}
.masthead__tagline::before,
.masthead__tagline::after {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--c-border-strong);
}
.masthead__side {
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.masthead__side--start { grid-column: 1; justify-self: start; align-items: flex-start; text-align: left; }
.masthead__side--end { grid-column: 3; justify-self: end; align-items: flex-end; text-align: right; }
.masthead__date { display: flex; flex-direction: column; margin: 0; padding-left: 12px; border-left: 3px solid var(--c-accent); line-height: 1.35; }
.masthead__weekday { color: var(--c-accent-text); font-size: var(--fs-sm); font-weight: 700; }
.masthead__bs { color: var(--c-ink); font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.masthead__side--start .masthead__meta { padding-left: 15px; }
.masthead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 12px;
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 500;
}
.masthead__clock { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.masthead__clock .icon { width: 14px; height: 14px; color: var(--c-accent); }
.masthead__follow { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.social--masthead { gap: 6px; }
.social--masthead .social__link {
	width: 36px;
	height: 36px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	color: var(--c-brand-text);
	box-shadow: var(--sh-xs);
}
.social--masthead .social__link:hover { border-color: transparent; }
.social--masthead .social__link .icon { width: 16px; height: 16px; }
.masthead__today { display: none; }
.masthead__banner { padding-bottom: var(--sp-5); }
.masthead__banner .bx-ad-unit { align-items: center; }

/* Left: logo | header ad | today's date. Without an ad the date block sits at
   the far right; with one, the date gives way below 1200px. */
.masthead--left .masthead__inner { grid-template-columns: auto minmax(0, 1fr) auto; padding-block: var(--sp-5); }
.masthead--left .masthead__logo { grid-column: 1; grid-row: 1; }
.masthead--left .masthead__ad { grid-column: 2; grid-row: 1; }
.masthead--left .masthead__end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: var(--sp-5); }
.masthead--left .masthead__side--end { align-items: flex-end; text-align: right; }
.masthead--left .masthead__end .social--masthead { padding-left: var(--sp-5); border-left: 1px solid var(--c-border); }
.masthead--left .masthead__date { align-items: flex-end; padding: 0 12px 0 0; border-left: 0; border-right: 3px solid var(--c-accent); }
.masthead--left .masthead__meta { justify-content: flex-end; padding-right: 15px; }
.masthead__ad { justify-self: end; width: 100%; max-width: 760px; min-width: 0; }
.masthead__ad .bx-ad-unit { align-items: flex-end; }
@media (max-width: 1199px) { .masthead--left.masthead--with-ad .masthead__end { display: none; } }

@media (max-width: 1023px) {
	.masthead--center .masthead__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--sp-5) var(--sp-4); gap: var(--sp-2); }
	.masthead--center .masthead__logo,
	.masthead__tagline { grid-column: 1; }
	.masthead__side { display: none; }
	.masthead__today {
		grid-column: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		margin: 2px 0 0;
		color: var(--c-muted);
		font-size: var(--fs-sm);
		font-weight: 600;
	}
	.masthead__today .icon { width: 15px; height: 15px; color: var(--c-accent); }
	.brand img { height: min(var(--logo-h, 84px), 64px); }
}
@media (max-width: 1023px) {
	.masthead--left .masthead__inner { grid-template-columns: auto minmax(0, 1fr); padding-block: var(--sp-4); }
	.masthead--left .masthead__end { display: none; }
	.masthead--left .masthead__today { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; text-align: right; }
	.masthead--left .masthead__ad { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
	.masthead__ad { justify-self: stretch; max-width: none; }
	.masthead__ad .bx-ad-unit { align-items: center; }
}
@media (max-width: 520px) {
	.masthead--left .masthead__today { flex-direction: column; align-items: flex-end; gap: 0; font-size: var(--fs-xs); line-height: 1.45; }
	.masthead--left .masthead__today .icon { display: none; }
}
@media (max-width: 480px) {
	.brand img { height: min(var(--logo-h, 84px), 54px); }
	.masthead__tagline::before,
	.masthead__tagline::after { width: 18px; }
}

/* Navigation: a solid brand-blue bar with white type; a red pen stroke marks
   the current section. Dark mode swaps the blue for a raised surface. */
.site-nav {
	--nav-fg: rgba(255, 255, 255, .94);
	--nav-hover: rgba(255, 255, 255, .12);
	--nav-line: rgba(255, 255, 255, .28);
	position: relative;
	z-index: 50;
	background: var(--c-brand);
	color: #fff;
	border-top: 1px solid transparent;
	border-bottom: 1px solid var(--c-brand-700);
	transition: box-shadow var(--dur-3) ease, background-color var(--dur-3) ease;
}
.site-nav.is-sticky { position: sticky; top: var(--adminbar); }
.site-nav.is-stuck {
	background: color-mix(in srgb, var(--c-brand) 94%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	box-shadow: 0 12px 30px -14px rgba(7, 38, 74, .55);
}
:root[data-theme="dark"] .site-nav {
	--nav-fg: var(--c-ink);
	--nav-hover: var(--c-surface-3);
	--nav-line: var(--c-border-strong);
	background: var(--c-surface);
	color: var(--c-ink);
	border-top-color: var(--c-border);
	border-bottom-color: var(--c-border);
}
:root[data-theme="dark"] .site-nav.is-stuck { background: color-mix(in srgb, var(--c-surface) 92%, transparent); }
.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: var(--nav-fg, var(--c-ink));
	transition: background-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-2) var(--ease-spring);
}
.nav-btn:hover { background: var(--nav-hover, var(--c-surface-3)); color: var(--nav-fg, var(--c-brand-text)); }
.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--search {
	display: inline-flex;
	gap: 8px;
	width: auto;
	padding: 0 14px;
	border: 1px solid var(--nav-line, var(--c-border));
	border-radius: var(--r-pill);
}
.nav-btn--search .icon { width: 19px; height: 19px; }
.nav-btn__label { font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 767px) {
	.nav-btn--search { width: 42px; padding: 0; border-color: transparent; justify-content: center; }
	.nav-btn__label { display: none; }
}
.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: 34px;
	max-width: 130px;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}
.site-nav.is-stuck .site-nav__mark { max-width: 150px; opacity: 1; margin-inline: 2px 6px; }

.site-nav__home {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin-right: 2px;
	border-radius: var(--r-md);
	color: var(--nav-fg, var(--c-brand-text));
	transition: background-color var(--dur-2), color var(--dur-2);
}
.site-nav__home .icon { width: 21px; height: 21px; }
.site-nav__home:hover { background: var(--nav-hover, var(--c-brand-50)); color: var(--nav-fg, var(--c-brand-text)); }
.site-nav__home.is-current { background: var(--c-accent); color: #fff; }

.site-nav__menu {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	height: 100%;
}
.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu--primary {
	display: flex;
	flex: none;
	align-items: center;
	flex-wrap: nowrap;
	height: 100%;
}
.menu--primary > li { position: relative; flex: none; display: flex; align-items: center; height: 100%; }
.menu--primary > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 12px;
	color: var(--nav-fg, var(--c-ink));
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.menu--primary > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;
	height: 4px;
	border-radius: 4px 4px 0 0;
	background: var(--c-accent);
	opacity: 0;
	transform: scaleX(.4);
	transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
}
.menu--primary > li > a:hover { color: #fff; background: var(--nav-hover, transparent); }
:root[data-theme="dark"] .menu--primary > li > a:hover { color: var(--c-brand-text); }
/* A static marker on the current section only (no hover underline). */
.menu--primary > .current-menu-item > a::after,
.menu--primary > .current-menu-ancestor > a::after,
.menu--primary > .current-post-ancestor > a::after { opacity: 1; transform: none; }
.menu--primary > .current-menu-item > a,
.menu--primary > .current-post-ancestor > a { color: #fff; }
:root[data-theme="dark"] .menu--primary > .current-menu-item > a,
:root[data-theme="dark"] .menu--primary > .current-post-ancestor > a { color: var(--c-brand-text); }
.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: var(--r-sm);
	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% + 1px);
	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), inset 0 3px 0 var(--c-accent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	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; height: 100%; display: flex; align-items: center; }
.menu-more__list { left: auto; right: 0; max-height: min(70vh, 520px); overflow-y: auto; }
.menu-more__btn {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 36px;
	padding: 0 12px 0 14px;
	border: 1px solid var(--nav-line, var(--c-border));
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--nav-fg, var(--c-ink));
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--fs-md);
	transition: border-color var(--dur-1), color var(--dur-1), background-color var(--dur-1);
}
.menu-more__btn:hover { border-color: currentColor; background: var(--nav-hover, transparent); }
.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: 4px; margin-left: auto; padding-left: 6px; }

@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 12px, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(90deg, transparent 0, #000 12px, #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 10px; font-size: var(--fs-base); }
	.menu--primary > li > a::after { left: 10px; right: 10px; }
	.menu--primary .sub-menu,
	.menu--primary .submenu-toggle,
	.menu-more { display: none !important; }
	.site-nav.is-stuck .site-nav__mark { display: none; }
}
@media (max-width: 420px) {
	.site-nav__home { display: none; }
}

/* Ticker */
.ticker {
	background: var(--c-surface-2);
	border-bottom: 1px solid var(--c-border);
}
.ticker__inner { display: flex; align-items: center; gap: var(--sp-3); height: 46px; }
.ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: none;
	height: 30px;
	padding: 0 15px 0 13px;
	border-radius: var(--r-pill);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 700;
}
.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 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), 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 24px;
	white-space: nowrap;
	font-weight: 600;
	color: var(--c-ink);
}
.ticker__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	background: var(--c-accent);
	transform: translate(-50%, -50%) rotate(45deg);
}
.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: 32px;
	height: 32px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	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(400px, 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: 3px solid var(--c-rule);
}
.brand--drawer img { height: 48px; max-width: 230px; }
.drawer__close,
.search-overlay__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: var(--r-md);
	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-left: 3px solid var(--c-accent);
	background: var(--c-surface-2);
	color: var(--c-ink);
	font-family: var(--font-head);
	font-weight: 700;
}
.drawer__date .icon { color: var(--c-accent); }
.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-family: var(--font-head);
	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: 8px;
	right: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: var(--r-sm);
	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: var(--r-sm);
	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-family: var(--font);
	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-accent);
	font-family: var(--font-head);
	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-family: var(--font-head); font-weight: 700; line-height: 1.5; }
.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, .45) 0);
	color: inherit;
	border-radius: 2px;
}
:root[data-theme="dark"] mark { background: linear-gradient(transparent 52%, rgba(255, 196, 0, .3) 0); }

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

/* Flash news: the big centred headlines Nepali readers expect at the top. */
.flash { padding-top: var(--sp-10); }
.flash-item {
	position: relative;
	max-width: 1120px;
	margin-inline: auto;
	padding-bottom: var(--sp-10);
	text-align: center;
}
.flash-item + .flash-item { padding-top: var(--sp-10); border-top: 1px solid var(--c-border-strong); }
.flash-item:last-child { padding-bottom: var(--sp-4); }
.flash-item + .flash-item::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	width: 64px;
	height: 4px;
	margin-left: -32px;
	border-radius: 4px;
	background: var(--g-stripe);
}
.flash-item__kicker { display: flex; justify-content: center; min-height: 6px; margin-bottom: var(--sp-3); }
.flash-item__kicker .kicker { align-self: center; }
.flash-item__title {
	max-width: 1060px;
	margin: 0 auto var(--sp-4);
	font-size: var(--fs-display);
	font-weight: 700;
	line-height: 1.38;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.flash-item__title a {
	color: var(--c-ink);
	transition: color var(--dur-2) ease;
}
.flash-item__title a:hover { color: var(--c-brand-text); }
.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-6);
	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.03); }
.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 { padding-top: var(--sp-6); }
	.flash-item { padding-bottom: var(--sp-8); }
	.flash-item + .flash-item { padding-top: var(--sp-8); }
	.flash-item__media { aspect-ratio: 16 / 10; }
}

/* Lead + list (+ ads) */
.lead-list__grid { display: grid; gap: var(--sp-8) var(--sp-8); }
@media (min-width: 768px) {
	.lead-list__grid { grid-template-columns: minmax(0, 1.35fr) 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.35fr) minmax(0, 1fr) var(--side-w); }
	.lead-list.has-side .lead-list__side { grid-column: auto; }
	.lead-list__list { padding-left: var(--sp-8); border-left: 1px solid var(--c-border); }
	.lead-list:not(.has-side) .lead-list__list { padding-left: var(--sp-8); }
}
.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) var(--sp-10); }
@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); }
.box--list,
.feature-list__side { box-shadow: inset 0 3px 0 var(--c-brand); }

/* Most read: a white insert with a featured #1 and a numbered list. */
.trending {
	position: relative;
	padding-block: var(--sp-10) var(--sp-12);
	background: var(--c-surface);
	border-block: 1px solid var(--c-border);
}
.trending .section-head { margin-bottom: var(--sp-6); }
.trending__grid { display: grid; gap: var(--sp-8) var(--sp-10); }
@media (min-width: 900px) { .trending__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); } }
.trending__lead { position: relative; }
.trending__rank {
	position: absolute;
	top: -18px;
	left: -6px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--r-md);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 14px 26px -14px rgba(193, 39, 45, .9);
}
.trending__lead .card__title { font-size: var(--fs-xl); font-weight: 800; }
.trending__list {
	display: grid;
	gap: var(--sp-6) var(--sp-8);
	margin: 0;
	padding: 0;
	list-style: none;
	align-content: start;
}
@media (min-width: 600px) { .trending__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trending__item { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--c-border); }
.trending__item .card__number { font-size: 2.6rem; }

/* Columns */
.columns__grid { display: grid; gap: var(--sp-10) var(--sp-10); }
@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 + .columns__col { position: relative; }
}
.columns__col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.columns__col .section-head { margin-bottom: var(--sp-1); }

/* Opinion / hearsay */
.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) var(--sp-10); }
@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) var(--sp-8); }
@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); }

/* Rail: horizontal scroll-snap row */
.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, calc((100% - var(--sp-6) * 3) / 4));
	gap: var(--sp-6);
	margin: 0;
	padding: 0 0 var(--sp-4);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--c-border-strong) transparent;
}
.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--c-border-strong); }
.rail__track:focus-visible { outline-offset: 6px; }
.rail__item { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1023px) { .rail__track { grid-auto-columns: minmax(220px, 42%); } }
@media (max-width: 600px) { .rail__track { grid-auto-columns: 78%; gap: var(--sp-4); } }
.rail-controls { display: flex; gap: 6px; }
.rail-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2), opacity var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.rail-btn .icon { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.rail-btn:active:not(:disabled) { transform: scale(.94); }
.rail-btn:disabled { opacity: .35; cursor: default; }

/* 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-md);
	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); }
.video-hub__title a { color: #fff; }
.video-hub__title a:hover { color: #b8d4f2; }
.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.5;
	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. Each tile is a size container, so captions adapt to the
   tile's own width rather than 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); font-weight: 800; }
@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; }
	.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)); }
}
@container tile (max-width: 299px) {
	.card--overlay .card__body { padding: var(--sp-3); }
	.card--overlay .card__title { -webkit-line-clamp: 2; font-size: 1.05rem; }
}
@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: var(--c-accent);
	transform: scaleX(var(--progress, 0));
	transform-origin: 0 50%;
}

.article-header { padding-block: var(--sp-8) var(--sp-6); }

/*
 * Pinned headline (Site Settings → Articles → "Sticky headline bar"). When
 * the real headline scrolls under the menu, this full-width copy slides in
 * just below the menu and stays until the end of the article. It is fixed,
 * outside the page flow, so showing or hiding it never moves the content.
 */
.article-pin {
	position: fixed;
	top: calc(var(--nav-offset) + var(--adminbar));
	left: 0;
	right: 0;
	z-index: 45;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	box-shadow: 0 16px 26px -22px rgba(0, 31, 62, .55);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out), visibility var(--dur-2);
	pointer-events: none;
}
/* Clickable only while shown, so the hidden bar never blocks the page under it. */
.article-pin.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
:root[data-theme="dark"] .article-pin { box-shadow: 0 16px 26px -18px rgba(0, 0, 0, .8); }
.article-pin__title {
	/* Margin, not padding: a clamped headline must not peek into its padding. */
	margin: var(--sp-3) 0 var(--sp-2);
	color: var(--c-ink);
	font-family: var(--font-head);
	font-size: clamp(1.25rem, .9rem + 1.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.6; /* Room for vowel marks, so a clamped line never peeks in. */
	letter-spacing: -.005em;
	text-wrap: balance;
	/* Full length; only an unusually long headline is cut, after three lines. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* The article meta row, repeated beneath the pinned headline. */
.article-pin .article-meta--pinned {
	gap: var(--sp-2) var(--sp-4);
	padding-block: var(--sp-2) var(--sp-3);
	border-bottom: 0;
}
.article-pin .article-meta--pinned .byline__avatar { width: 30px; height: 30px; }
.article-pin .article-meta--pinned .share__btn,
.article-pin .article-meta--pinned .text-size__btn { width: 34px; height: 34px; }
.article-pin .article-meta--pinned .text-size__btn { width: auto; padding: 0 10px; }
.article-pin .article-meta--pinned .share__btn .icon { width: 16px; height: 16px; }
/*
 * Phones: one compact row - author and date on the left; on the right the
 * phone's own share sheet (or copy link where that is missing) and A−/A+ -
 * and at most two headline lines, so the bar stays small while reading.
 */
@media (max-width: 767px) {
	.article-pin__title { -webkit-line-clamp: 2; }
	.article-pin .article-meta--pinned { flex-wrap: nowrap; gap: var(--sp-3); }
	.article-pin .article-meta--pinned .article-meta__info { flex: 1 1 auto; flex-wrap: nowrap; gap: var(--sp-3); min-width: 0; padding-left: 4px; overflow: hidden; white-space: nowrap; }
	/* The author stays whole (photo ring included); a long date gives way with "…". */
	.article-pin .article-meta--pinned .byline { flex: none; }
	.article-pin .article-meta--pinned .meta-item { min-width: 0; }
	.article-pin .article-meta--pinned .meta-item time { overflow: hidden; text-overflow: ellipsis; }
	.article-pin .article-meta--pinned .meta-item--read,
	.article-pin .article-meta--pinned .meta-item--views,
	.article-pin .article-meta--pinned .share__btn:not(.share__btn--native):not(.share__btn--copy),
	.article-pin .article-meta--pinned .share:has(.share__btn--native:not([hidden])) .share__btn--copy { display: none; }
	.article-pin .article-meta--pinned .article-meta__tools { flex: none; flex-wrap: nowrap; gap: 8px; }
	.article-pin .article-meta--pinned .share__btn { width: 32px; height: 32px; }
	.article-pin .article-meta--pinned .text-size__btn { height: 32px; padding: 0 8px; }
}

/* The header lines up with the story column (container minus sidebar). */
.article-header__inner > * { max-width: 940px; }
@media (min-width: 1024px) { .article-header__inner > * { max-width: calc(100% - var(--side-w) - var(--sp-12)); } }
.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-4); }
.article-title {
	margin: 0 0 var(--sp-4);
	font-size: clamp(2rem, 1.45rem + 2.5vw, 3.3rem);
	font-weight: 800;
	line-height: 1.42;
	letter-spacing: -.005em;
	text-wrap: balance;
}
.article-subtitle {
	margin: 0 0 var(--sp-6);
	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-block: var(--sp-4);
	border-block: 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: var(--r-md);
	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:active { transform: translateY(0) scale(.95); }
.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-md); 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:disabled { opacity: .4; cursor: default; }
.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-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 {
	max-width: 760px;
	color: var(--c-text);
	font-size: var(--article-size);
	line-height: 1.95;
	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-sm); }
.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.8em 0;
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-8);
	border-left: 4px solid var(--c-accent);
	color: var(--c-ink);
	font-family: var(--font-head);
	font-size: 1.08em;
	font-weight: 600;
	line-height: 1.8;
}
.entry-content blockquote::before {
	content: "“";
	position: absolute;
	left: 10px;
	top: -6px;
	color: var(--c-accent-100);
	font: 800 2.6em/1 var(--font-head);
}
.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-sm); }
.entry-content iframe.is-fitted { width: 100% !important; height: auto !important; aspect-ratio: var(--ratio, 16 / 9); }
.entry-content .wp-video,
.entry-content video { max-width: 100%; }
.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 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	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) 0;
	border-block: 1px solid var(--c-border);
}
.share-panel__label { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); font-family: var(--font-head); 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-top: 3px solid var(--c-brand);
	border-radius: 0 0 var(--r-md) var(--r-md);
	background: var(--c-surface);
}
.author-box__photo { flex: none; }
.author-box__photo img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 30%;
	object-fit: cover;
}
.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-md);
	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); }
/*
 * Floating sidebar (wide screens). main.js sets --side-top: below the menu
 * (and the pinned headline bar on articles) when the sidebar fits on screen,
 * or negative so a taller sidebar scrolls until its end shows, then stays.
 */
@media (min-width: 1024px) {
	.sidebar.is-floating {
		position: sticky;
		top: var(--side-top, calc(var(--nav-offset) + var(--adminbar) + 20px));
	}
}
.tabs { padding-top: 0; box-shadow: inset 0 3px 0 var(--c-brand); }
.tabs__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 calc(var(--sp-5) * -1) var(--sp-4);
	border-bottom: 1px solid var(--c-border);
}
.tabs__tab {
	position: relative;
	padding: 12px 10px;
	border: 0;
	background: transparent;
	color: var(--c-muted);
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 700;
	transition: color var(--dur-2), background-color var(--dur-2);
}
.tabs__tab::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: -1px;
	height: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transition: transform var(--dur-3) var(--ease-out);
}
.tabs__tab:hover { color: var(--c-ink); }
.tabs__tab[aria-selected="true"] { color: var(--c-ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel:not([hidden]) { animation: fade-up var(--dur-3) var(--ease-out); }
.sidebar .card--row .card__media { flex-basis: 96px; }
.sidebar .box:not(.tabs) { box-shadow: inset 0 3px 0 var(--c-brand); }
.box .section-head { border-top: 0; padding-top: 0; }
.box .section-head::before { display: none; }
.sidebar__widgets { display: flex; flex-direction: column; gap: var(--sp-6); }
.widget-title { display: flex; align-items: center; gap: .5em; font-size: var(--fs-lg); }
.widget-title::before { content: ""; width: .42em; height: .42em; background: var(--c-accent); }
.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 header: kicker, big title, a hairline with a short red stroke underneath. */
.page-hero {
	position: relative;
	padding-block: var(--sp-8) var(--sp-6);
}
.page-hero { isolation: isolate; }
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--texture) 100% 0 / 340px repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
	opacity: .6;
}
.page-hero > .container { position: relative; }
.page-hero > .container::after {
	content: "";
	display: block;
	height: 3px;
	margin-top: var(--sp-6);
	background: linear-gradient(90deg, var(--c-accent) 0 72px, transparent 72px), linear-gradient(var(--c-border-strong), var(--c-border-strong)) 0 100% / 100% 1px no-repeat;
}
.page-hero__kicker { margin: 0 0 4px; }
.page-hero__title { margin: 0 0 var(--sp-2); font-size: var(--fs-3xl); font-weight: 700; line-height: 1.38; }
.page-hero__desc { max-width: 760px; color: var(--c-muted); font-size: var(--fs-md); }
.page-hero__desc p:last-child { margin-bottom: 0; }
.page-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: var(--sp-2) 0 0;
	padding: 3px 13px;
	border-radius: var(--r-pill);
	background: var(--c-surface-3);
	color: var(--c-muted);
	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: 30%;
	object-fit: cover;
	box-shadow: var(--sh-md);
}
.author-hero__kicker { margin: 0 0 2px; color: var(--c-accent-text); 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-8); }
}

/*
 * Story grid (Site Settings → Category Page). Columns follow the list's own
 * width, so they adapt to the sidebar as well as the screen. The 3-column
 * grid runs on 6 tracks so two cards left on the last row can share it; a
 * card left alone spans the row with its photo beside the text.
 */
.archive-list { container: archive / inline-size; }
.archive-list__grid { display: grid; gap: var(--sp-8) var(--sp-6); }
.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 a:active { transform: translateY(0); }
.pagination .current { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }
.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); }
.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: var(--r-lg);
	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-8) var(--sp-5) var(--sp-6);
	border: 1px solid var(--c-border);
	border-top: 3px solid var(--c-brand);
	border-radius: 0 0 var(--r-md) var(--r-md);
	background: var(--c-surface);
	text-align: center;
	transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.staff-photo { display: inline-grid; place-items: center; flex: none; border-radius: 30%; object-fit: cover; }
.staff-photo--initial { background: linear-gradient(135deg, var(--c-brand-400), var(--c-brand-800)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15em; }
.team-card .staff-photo { margin: 0 auto var(--sp-4); font-size: 2rem; }
.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: var(--r-md);
	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-family: var(--font-head);
	font-size: clamp(5rem, 2.8rem + 10vw, 10rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--c-brand-text);
}
.not-found__code span { color: var(--c-accent); }
.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: var(--c-band-deep);
	color: rgba(228, 236, 245, .78);
	overflow: hidden;
	isolation: isolate;
}
.site-footer::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--g-stripe);
}
.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.45fr 1.05fr 1fr .95fr; }
	.site-footer__grid.no-team { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-heading {
	display: flex;
	align-items: center;
	gap: .5em;
	margin: 0 0 var(--sp-5);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-size: var(--fs-lg);
}
.footer-heading::before { content: ""; width: .26em; height: .9em; border-radius: 2px; background: var(--c-accent); transform: skewX(-16deg); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-4); }
.footer-brand .brand img { height: 72px; max-width: 220px; border-radius: var(--r-lg); }
.brand--tile img { padding: 8px 12px; border-radius: var(--r-md); background: #ffffff; box-shadow: var(--sh-md); }
.footer-title { margin: 0; color: #fff; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.3; }
.footer-tagline { margin: 2px 0 0; color: rgba(228, 236, 245, .62); font-size: var(--fs-sm); }
.footer-about { margin-top: var(--sp-5); line-height: 1.8; }
.footer-regs { display: flex; flex-direction: column; gap: 8px; margin: var(--sp-4) 0 var(--sp-5); padding: 0; list-style: none; }
.footer-regs li { display: flex; align-items: flex-start; gap: 8px; }
.footer-regs .icon { margin-top: 3px; color: #8ab8e8; }
.social--footer { margin-top: var(--sp-5); }
.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__name { display: block; color: #fff; font-weight: 700; }
.footer-team__role { display: block; color: rgba(228, 236, 245, .6); font-size: var(--fs-xs); }
.footer-link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); color: #b8d4f2; font-weight: 700; transition: gap var(--dur-2); }
.footer-link-more:hover { gap: 10px; }
.contact--footer .icon { color: #8ab8e8; }
.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: 8px;
	height: 2px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .35);
	transition: background-color var(--dur-2), width var(--dur-2) var(--ease-out);
}
.footer-menu a:hover { transform: translateX(3px); }
.footer-menu a:hover::before { background: var(--c-accent); width: 12px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .22); }
.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	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; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(228, 236, 245, .85); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.credit a { color: #fff; font-weight: 700; }
.credit a:hover { color: #ffc0c3; }

.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-md);
	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: 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-xs); }
.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: var(--r-sm);
	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, 10, 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: 3px 10px; border: 1px solid var(--c-border); border-radius: var(--r-xs); 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: 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-md);
	background: var(--c-accent);
	color: #fff;
	font-weight: 700;
	transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2), background-color var(--dur-2);
}
.bx-skip-ad-skip:hover { background: var(--c-accent-700); transform: translateX(2px); box-shadow: 0 10px 22px -10px rgba(193, 39, 45, .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-xs); 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: var(--r-md);
	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(193, 39, 45, .45); }
	50% { box-shadow: 0 0 0 9px rgba(193, 39, 45, 0); }
}
@keyframes ring-pulse {
	0% { box-shadow: 0 0 0 0 rgba(193, 39, 45, .55); }
	80%, 100% { box-shadow: 0 0 0 20px rgba(193, 39, 45, 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,
	.masthead__side,
	.layout__side,
	.share,
	.share-panel,
	.text-size,
	.comments,
	.related,
	.site-footer,
	.to-top,
	.read-progress,
	.article-pin,
	.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; }
}
