/* ==========================================================================
   FX24NEWS — main stylesheet
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-total) + 24px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 var(--fs-ui)/1.55 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--c-primary); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; background: #fff; border-radius: var(--r); }
.hp { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- Layout 70 / 30 ---------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
	padding-bottom: 72px;
}
.layout__main { min-width: 0; }
.sidebar { min-width: 0; align-self: stretch; } /* full column height: room for the sticky ad to travel */
/* The sidebar scrolls with the page; its last block (the sticky ad zone) sticks under the header + ticker
   until the column ends, centred in the free height (--rail-top from main.js). Pure CSS while scrolling. */
.sidebar__sticky { display: flex; flex-direction: column; gap: 28px; height: 100%; }
.sidebar__sticky > .widget--sticky, .sidebar__sticky > .plc--rail-sticky { position: sticky; top: var(--rail-top, calc(var(--head-total) + 24px)); will-change: transform; contain: layout paint; } /* own GPU layer */
/* Tablet keeps the right rail (narrower), phones stack it under the content. */
@media (max-width: 1024px) {
	.layout, .layout--article { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.sidebar__sticky { gap: 22px; }
}
@media (max-width: 767px) {
	.layout, .layout--article { grid-template-columns: 1fr; gap: 40px; }
	.sidebar__sticky { height: auto; }
	.sidebar__sticky > .widget--sticky, .sidebar__sticky > .plc--rail-sticky { position: static; }
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
/* Inside the main column the width depends on the rail: let cards fit what is there. */
.layout__main .grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.layout__main .grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.section { padding-top: 56px; }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	padding-bottom: 14px; margin-bottom: 24px;
	border-bottom: 2px solid var(--c-primary);
}
.section-head__title { font-size: var(--fs-h2); color: var(--c-primary); }
.section-head__more {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 var(--fs-meta)/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em;
	color: var(--c-primary); white-space: nowrap;
}
.section-head__more .icon { transition: transform var(--t) var(--ease-out); }
.section-head__more:hover { color: var(--c-accent); }
.section-head__more:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.progress {
	position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
	background: var(--c-accent);
	transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
	transition: transform 400ms var(--ease-out), opacity 200ms linear;
	pointer-events: none;
}
.progress.is-active { opacity: 1; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff; /* opaque: a blurred, translucent sticky header re-blurs whatever scrolls under it on every frame */
	border-bottom: 1px solid var(--c-line);
	will-change: transform; /* own GPU layer (no `contain`: the dropdown panels hang outside the header box) */
	transition: box-shadow var(--t) var(--ease-std);
}
/* Desktop: the dark ticker is the header's bottom edge, no light rule under it (≤1024 it sits in the header row
   and the rule separates the white header from the page). */
@media (min-width: 1025px) { .site-header { border-bottom: 0; } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.is-scrolled .site-header { box-shadow: 0 6px 24px -18px rgba(2, 26, 51, .5); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* Desktop: icon + word (Search · Q&A · Login / Log out); narrower, the words stay for screen readers only. */
.site-header__tools .icon-btn--label { display: inline-flex; align-items: center; width: auto; gap: 8px; padding: 0 12px 0 10px; font: 600 .75rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text); white-space: nowrap; }
.icon-btn--label:hover { color: var(--c-primary); }
.icon-btn--label.is-signed::after { top: 6px; left: 26px; right: auto; }
/* Narrower screens: no room for the words next to the nav — icons only (words for screen readers). */
@media (max-width: 1340px) {
	.site-header__tools .icon-btn--label { display: inline-grid; width: 40px; padding: 0; }
	.icon-btn--label .icon-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
	.icon-btn--label.is-signed::after { top: 7px; left: auto; right: 7px; }
}
.icon-btn.site-header__burger { display: none; } /* desktop: the nav is inline; phones / tablets: the tab bar's Menu opens it */

.logo { display: inline-flex; align-items: baseline; font: 700 1.625rem/1 var(--f-logo); letter-spacing: -.02em; flex-shrink: 0; color: var(--c-primary); }
.logo img { height: 36px; width: auto; }
.logo__svg { display: block; height: 40px; width: auto; color: #04203A; }
.icon-btn.is-signed { position: relative; }
.icon-btn.is-signed::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 2px #fff; } /* signed in */
.site-footer .logo__svg { color: #fff; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
	color: var(--c-primary); transition: background var(--t-fast) var(--ease-std), color var(--t-fast);
}
.icon-btn:hover { background: var(--c-surface); }
.icon-btn--outline { border: 1px solid var(--c-line-strong); }
.icon-btn[aria-pressed="true"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* Nav (desktop) */
.nav { flex: 1; min-width: 0; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; list-style: none; }
.nav__item--d0 { display: flex; align-items: center; }
.nav__link {
	position: relative; display: block; padding: 22px 10px;
	font: 500 .8125rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em;
	color: var(--c-text); white-space: nowrap;
	transition: color var(--t-fast);
}
.nav__link::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 14px; height: 2px;
	background: var(--c-accent); transform: scaleX(0); transform-origin: 0 50%;
	transition: transform var(--t) var(--ease-out);
}
.nav__item--d0:hover > .nav__link, .nav__item.is-current > .nav__link { color: var(--c-primary); }
.nav__item--d0:hover > .nav__link::after, .nav__item--d0.is-current > .nav__link::after { transform: scaleX(1); }
.nav__toggle { margin-left: -6px; padding: 6px 4px; color: var(--c-meta); transition: transform var(--t) var(--ease-out); }
.nav__item.is-open > .nav__toggle { transform: rotate(180deg); }

.nav__panel {
	position: absolute; top: calc(100% - 6px); left: -12px; min-width: 260px; z-index: 50;
	padding: 10px; border-radius: 12px; background: #fff;
	border: 1px solid var(--c-line); box-shadow: var(--shadow-3);
	display: none; /* no idle compositor layers; opening plays a keyframe animation */
}
.nav__item--d0:hover > .nav__panel, .nav__item--d0:focus-within > .nav__panel, .nav__item.is-open > .nav__panel {
	display: block; animation: fx24-drop 240ms var(--ease-out) both;
}
@keyframes fx24-drop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nav__sub { list-style: none; }
.nav__sublink {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 12px; border-radius: 6px; font: 500 .9375rem/1.3 var(--f-head); color: var(--c-text);
	transition: background var(--t-fast), color var(--t-fast), padding var(--t) var(--ease-out);
}
.nav__sublink::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: all var(--t) var(--ease-out); color: var(--c-accent); }
.nav__sublink:hover { background: var(--c-surface); color: var(--c-primary); }
.nav__sublink:hover::after { opacity: 1; transform: none; }
.nav__item.is-current > .nav__sublink { color: var(--c-accent); }

/* Mega menu: "FX24 System" console — host line, brand + console card, 4 columns, sync status.
   Wide: centred on the header container, not on the item. Phones/tablets: plain list in the sheet. */
.site-header__inner { position: relative; }
.nav__item.is-mega { position: static; }
.nav__panel--mega { top: calc(100% - 6px); left: 50%; translate: -50% 0; }
.nav__sys-host, .nav__sys-side, .nav__sys-status { display: none; }
.nav__promo { min-width: 0; }
.nav__sheet-foot { display: none; }
@media (min-width: 1025px) {
	.nav__panel--mega {
		--sys-red: #D11239; --sys-grey: #94A3B8; --sys-line: rgba(148, 163, 184, .22);
		width: min(1216px, calc(100vw - 32px)); padding: 18px 32px 26px; border: 1px solid #13233A; border-radius: var(--r-lg); color: #fff;
		background:
			radial-gradient(35% 60% at 22% 88%, rgba(209, 18, 57, .10), transparent 70%),
			radial-gradient(45% 70% at 8% 20%, rgba(30, 64, 175, .16), transparent 70%),
			#050C18;
	}
	.nav__item--d0:hover > .nav__panel--mega, .nav__item--d0:focus-within > .nav__panel--mega, .nav__item.is-open > .nav__panel--mega {
		display: grid; grid-template-columns: 270px minmax(0, 1fr); grid-template-areas: "host host" "side cols" "side status"; column-gap: clamp(24px, 3vw, 40px);
	}
	.nav__sys-host { grid-area: host; display: block; margin-bottom: 44px; font: 400 .6875rem/1.2 var(--f-mono); letter-spacing: .06em; color: #64748B; }
	.nav__sys-host i { font-style: normal; margin: 0 4px; }
	.nav__sys-host b { font-weight: 400; color: #E2E8F0; }
	.nav__sys-side { grid-area: side; display: grid; align-content: start; gap: 56px; }
	.nav__sys-brand {
		justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 16px;
		border: 1px solid rgba(148, 163, 184, .4); border-radius: var(--r-xs); background: rgba(15, 23, 42, .55);
		font: 500 1.375rem/1 var(--f-body); letter-spacing: .02em; color: #fff;
	}
	.nav__sys-brand::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sys-red); }
	.nav__sys-brand em { font: 400 1.375rem/1 var(--f-mono); font-style: normal; color: var(--sys-red); letter-spacing: .04em; }
	/* Side = brand badge width; the first column keeps its longest item on one line, the rest share what is left. */
	.nav__panel--mega > .nav__sub { grid-area: cols; display: grid; grid-template-columns: max-content repeat(3, minmax(0, auto)); gap: 20px; align-content: start; }
	@media (max-width: 1199px) { .nav__panel--mega > .nav__sub { grid-template-columns: repeat(4, minmax(0, auto)); } } /* no room to keep it on one line */
	/* Wide screens: a wider panel and promo column, so the promo card and every column heading keep one line. */
	@media (min-width: 1440px) {
		.nav__panel--mega { width: min(1400px, calc(100vw - 32px)); }
		.nav__item--d0:hover > .nav__panel--mega, .nav__item--d0:focus-within > .nav__panel--mega, .nav__item.is-open > .nav__panel--mega { grid-template-columns: 330px minmax(0, 1fr); }
		.nav__panel--mega .nav__heading { white-space: nowrap; }
	}
	.nav__panel--mega .nav__heading {
		padding: 0 0 6px; margin-bottom: 14px; border-bottom: 2px solid var(--sys-red);
		font: 500 .8125rem/1.45 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sys-red);
	}
	.nav__panel--mega .nav__sub--1 .nav__sublink {
		display: block; padding: 7px 0; border-radius: 0; background: none;
		font: 400 .75rem/1.45 var(--f-mono); text-transform: lowercase; color: #CBD5E1;
		text-indent: -1.4em; padding-left: 1.4em; /* hanging "> " on wrapped lines */
	}
	.nav__panel--mega .nav__sublink::before { content: "> "; white-space: pre; transition: color var(--t-fast); }
	.nav__panel--mega .nav__sublink::after { display: none; }
	.nav__panel--mega .nav__sublink:hover { background: none; color: #fff; }
	.nav__panel--mega .nav__sublink:hover::before, .nav__panel--mega .nav__item.is-current > .nav__sublink::before { color: var(--sys-red); }
	.nav__panel--mega .nav__item.is-current > .nav__sublink { color: #fff; }
	.nav__sys-status { grid-area: status; display: block; justify-self: end; align-self: end; margin-top: 36px; font: 400 .6875rem/1.2 var(--f-mono); letter-spacing: .06em; color: #94A3B8; }
	.nav__sys-status b { font-weight: 400; color: #fff; }
}
.nav__heading {
	display: block; padding: 0 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--c-line);
	font: 700 .8125rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary);
}
.nav__sub--1 .nav__sublink { font-size: .875rem; padding: 8px 12px; }

/* Ticker */
.ticker {
	/* the site's dark FX24 System surface (footer, stage, affiliate cards): deep navy with a blue glow */
	background: radial-gradient(55% 260% at 88% 0%, rgba(30, 64, 175, .42), transparent 70%), linear-gradient(180deg, #0B1C3A, #06121F);
	color: #E2E8F0;
}
.ticker__inner { display: flex; align-items: center; gap: 16px; height: 40px; }
.ticker__badge {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 5px 10px 5px 8px; border-radius: var(--r-xs);
	background: var(--c-accent); font: 700 .6875rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase;
}
/* Edge fades are overlays, not a mask: a mask is re-applied on every frame of the marquee. */
.ticker__viewport {
	flex: 1; overflow: hidden; position: relative;
	/* soft edges on any background */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.ticker__track { display: flex; width: max-content; list-style: none; animation: fx24-marquee 70s linear infinite; will-change: transform; } /* own GPU layer: moved, never repainted */
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
/* The ticker always runs, including with "reduce motion" (owner's decision); hover/focus pauses it. */
.ticker__track li { padding-right: 48px; position: relative; font: 400 .8125rem/40px var(--f-head); white-space: nowrap; }
.ticker__track li::after { content: ""; position: absolute; right: 21px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); transform: translateY(-50%); }
.ticker__track a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes fx24-marquee { to { transform: translateX(-50%); } }

/* "Live" dot: a few pulses after load, then still — an endless pulse also kept frames coming. */
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ticker__badge .pulse { background: #fff; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; animation: fx24-pulse 1.6s var(--ease-out) 3; }
@keyframes fx24-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* Search overlay (live search, see search.js) */
.search-overlay {
	position: fixed; inset: 0; z-index: 150; display: grid; justify-items: center; align-items: start;
	padding: min(12vh, 110px) 16px 16px; pointer-events: none;
}
.search-overlay[hidden] { display: grid; visibility: hidden; }
.search-open #fx24-search, .faq-open #fx24-faqbox { visibility: visible; } /* search and the FAQ overlay share the look */
.search-panel {
	pointer-events: auto; width: min(760px, 100%); max-height: min(78vh, 760px); display: flex; flex-direction: column;
	background: #fff; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(2, 26, 51, .45), 0 0 0 1px rgba(4, 48, 92, .06);
	overflow: hidden; opacity: 0; transform: translateY(-14px) scale(.985);
	transition: opacity 220ms var(--ease-std), transform 320ms var(--ease-out);
}
.search-open #fx24-search .search-panel, .faq-open #fx24-faqbox .search-panel { opacity: 1; transform: none; }
.search-form { display: flex; align-items: center; gap: 12px; color: var(--c-meta); }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent;
	font: 500 1.375rem/1 var(--f-head); color: var(--c-text);
}
.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form--live { height: 68px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--c-line); flex-shrink: 0; }
.search-form--live > .icon { color: var(--c-primary); }
.search-form__kbd, .search-hint kbd {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px;
	border: 1px solid var(--c-line-strong); border-bottom-width: 2px; font: 500 .6875rem/1 var(--f-head); color: var(--c-meta); background: #fff;
}
.search-form__close { display: none; }
.search-form__spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c-line); border-top-color: var(--c-accent); opacity: 0; transition: opacity 150ms; }
.search-form.is-loading .search-form__spinner { opacity: 1; animation: fx24-spin 700ms linear infinite; } /* spins only while searching */
@keyframes fx24-spin { to { transform: rotate(360deg); } }

.search-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 14px 18px; }
.search-block { padding: 12px 8px 4px; }
.search-block h3, .search-block__head h3 {
	font: 700 .6875rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--c-meta); margin-bottom: 12px;
}
.search-block__head { display: flex; justify-content: space-between; align-items: baseline; }
.search-block__clear { font: 500 .75rem/1 var(--f-head); color: var(--c-link); }
.search-block .chips { gap: 6px; }
.search-block .chip { height: 32px; }
.search-block .chip.is-active { background: var(--c-primary); color: #fff; }

.recent { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.recent li { display: inline-flex; align-items: center; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow var(--t-fast); }
.recent li:hover { box-shadow: inset 0 0 0 1px var(--c-primary); }
.recent__item { padding: 7px 4px 7px 14px; font: 500 .8125rem/1 var(--f-head); }
.recent__remove { width: 26px; height: 26px; margin-right: 4px; border-radius: 50%; color: var(--c-meta); font-size: 1rem; line-height: 1; }
.recent__remove:hover { background: var(--c-surface); color: var(--c-accent); }

.sr-list { display: grid; gap: 2px; }
.sr {
	display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border-radius: 12px;
	transition: background var(--t-fast); animation: fx24-sr-in 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes fx24-sr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr:hover, .sr.is-active { background: var(--c-surface); }
.sr__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface); }
.sr__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.sr:hover .sr__media img, .sr.is-active .sr__media img { transform: scale(1.06); }
.sr__body { display: grid; gap: 4px; min-width: 0; }
.sr__kicker { display: flex; align-items: center; gap: 10px; font: 700 .6875rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary); }
.sr__kicker .badge { font-size: .625rem; }
.sr__title { font: 600 1rem/1.3 var(--f-head); color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr__text { font-size: .8125rem; line-height: 1.4; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr__meta { font: 400 .75rem/1.2 var(--f-head); color: var(--c-meta); }
.sr__go { color: var(--c-primary); opacity: 0; transform: translateX(-6px); transition: opacity var(--t-fast), transform var(--t) var(--ease-out); }
.sr:hover .sr__go, .sr.is-active .sr__go { opacity: 1; transform: none; }
.sr mark, .search-block mark { background: rgba(209, 18, 57, .12); color: inherit; border-radius: 3px; padding: 0 1px; }

.sr--skeleton { animation: none; }
.sr--skeleton .sr__media, .sr--skeleton .sr__body span {
	background: linear-gradient(90deg, var(--c-surface) 0, #E8EDF3 50%, var(--c-surface) 100%) 0 0 / 200% 100%;
	animation: fx24-shimmer 1.2s linear infinite; border-radius: 4px;
}
.sr--skeleton .sr__body span { display: block; height: 10px; }
.sr--skeleton .sr__body span:nth-child(1) { width: 25%; }
.sr--skeleton .sr__body span:nth-child(2) { width: 85%; height: 14px; }
.sr--skeleton .sr__body span:nth-child(3) { width: 40%; }
@keyframes fx24-shimmer { to { background-position: -200% 0; } }

.search-all {
	display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 8px 0; padding: 14px; border-radius: 10px;
	background: var(--c-surface-2); border: 1px solid var(--c-line); font: 500 .875rem/1 var(--f-head); color: var(--c-primary);
	transition: background var(--t-fast), color var(--t-fast);
}
.search-all:hover, .search-all.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.search-empty { padding: 36px 16px; text-align: center; color: var(--c-text-2); }
.search-empty__title { font: 600 1.0625rem/1.3 var(--f-head); color: var(--c-text); margin-bottom: 6px; }
.search-hint { display: flex; gap: 18px; padding: 10px 22px; border-top: 1px solid var(--c-line); background: var(--c-surface-2); font: 400 .75rem/1 var(--f-head); color: var(--c-meta); flex-shrink: 0; }
.search-hint span { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 640px) {
	.search-overlay { padding: 0; }
	.search-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; transform: translateY(24px); }
	.search-form--live { height: 60px; padding: 0 6px 0 16px; }
	.search-form input[type="search"] { font-size: 1.125rem; }
	.search-form__kbd, .search-hint { display: none; }
	.search-form__close { display: inline-grid; }
	.search-body { padding: 4px 6px calc(24px + env(safe-area-inset-bottom)); }
	.sr { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 8px; }
	.sr__go, .sr__text { display: none; }
}
.search-form--inline { padding: 0 8px 0 18px; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: #fff; margin-bottom: 20px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search-form--inline:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(4, 48, 92, .08); }
.search-form--inline input[type="search"] { font-size: 1.125rem; }

.scrim {
	position: fixed; inset: 0; z-index: 90; background: rgba(2, 26, 51, .45);
	opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease-std), visibility 0s linear var(--t);
}
.menu-open .scrim, .search-open .scrim, .faq-open .scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-open .scrim, .faq-open .scrim { z-index: 140; }

/* ---------- UI atoms ---------- */
.btn {
	--btn-bg: var(--c-primary);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: var(--r-sm);
	background: var(--btn-bg); color: #fff;
	font: 600 .875rem/1 var(--f-head); letter-spacing: .02em; white-space: nowrap;
	transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t) var(--ease-std), filter var(--t-fast);
}
.btn:hover { filter: brightness(1.08); box-shadow: var(--shadow-2); }
.btn:active { transform: scale(.97); }
.btn--accent { --btn-bg: var(--c-accent); }
.btn--ghost { background: transparent; color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--c-primary); filter: none; }
.btn--sm { height: 34px; padding: 0 14px; font-size: .8125rem; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn .icon { transition: transform var(--t) var(--ease-out); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }

.tag {
	font: 700 var(--fs-kicker)/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-primary);
	transition: color var(--t-fast);
}
a.tag:hover { color: var(--c-accent); }
.pill {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-xs);
	background: var(--c-primary); color: #fff;
	font: 700 .6875rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em;
}
.badge {
	display: inline-flex; align-items: center; gap: 6px;
	font: 700 .6875rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--breaking { color: #fff; background: var(--c-accent); padding: 5px 8px; border-radius: var(--r-xs); }
.badge--breaking::before { background: #fff; }
.badge--exclusive { color: var(--c-primary); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 400 var(--fs-meta)/1.3 var(--f-head); color: var(--c-meta); }
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta__author { color: var(--c-text); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-pill);
	background: var(--c-surface); color: var(--c-text); font: 500 .8125rem/1 var(--f-head);
	transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.chip:hover { background: #E3E9F0; }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--c-primary); color: #fff; }
.chip__count { font-size: .75rem; opacity: .65; }
.chip--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); height: 32px; }
.chip--ghost.is-active { box-shadow: none; }
.chips--sub { margin-top: 12px; }

/* ---------- Cards ---------- */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-surface); border-radius: var(--r-img); box-shadow: var(--shadow-img); transition: box-shadow var(--t) var(--ease-std), transform var(--t) var(--ease-out); }
.card:hover .thumb { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), opacity 300ms; }
.thumb--empty { background: linear-gradient(135deg, var(--c-surface), #E2E8F0); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; margin-bottom: 16px; }
.card:hover .thumb__img { transform: scale(1.04); }
.card__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 400ms var(--ease-out), color var(--t-fast); }
.card:hover .card__title a { background-size: 100% 1px; color: var(--c-primary); }
.card__excerpt { color: var(--c-text-2); font-size: .9375rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.rows { list-style: none; }
.row {
	display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line);
	transition: background var(--t-fast);
}
.row:first-child { padding-top: 4px; }
.row__time { font: 600 .8125rem/1.6 var(--f-head); color: var(--c-meta); font-variant-numeric: tabular-nums; }
.row__kicker { display: flex; gap: 12px; margin-bottom: 4px; }
.row__title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.row__title a:hover { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.day-head { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent); padding: 28px 0 8px; }
.day-head:first-child { padding-top: 0; }

/* News Today page: a timeline. Day head (date + story count) over rows of time + dot on the rail, then a
   card with read time, lead and thumbnail. */
.feed-day + .feed-day { margin-top: 36px; }
.feed-day .day-head { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; font: 700 .8125rem/1.2 var(--f-head); }
.feed-day .day-head::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.day-head__count { padding: 4px 9px; border-radius: var(--r-pill); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); font: 500 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: none; color: var(--c-meta); }
.day-head.is-today .day-head__label { display: inline-flex; align-items: center; gap: 8px; }
.day-head.is-today .day-head__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); animation: feed-pulse 1.8s ease-out infinite; }
@keyframes feed-pulse { 0% { box-shadow: 0 0 0 0 rgba(209, 18, 57, .45); } 100% { box-shadow: 0 0 0 9px rgba(209, 18, 57, 0); } }

.rows--feed { position: relative; }
.row--rich { position: relative; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 0; border-bottom: 0; }
.row--rich:first-child { padding-top: 0; }
.row--rich::before { content: ""; position: absolute; left: 63.5px; top: 0; bottom: 0; width: 1px; background: var(--c-line); } /* the rail */
.row--rich:first-child::before { top: 22px; }
.row--rich:last-child::before { bottom: auto; height: 22px; }
.row--rich:only-child::before { display: none; }
.row--rich .row__time { position: relative; padding-top: 14px; font: 500 .8125rem/1.6 var(--f-mono); color: var(--c-meta); }
.row--rich .row__time::after {
	content: ""; position: absolute; left: 60px; top: 19px; width: 8px; height: 8px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 2px var(--c-line-strong); transition: background var(--t-fast), box-shadow var(--t-fast);
}
.row--rich:hover .row__time::after { background: var(--c-primary); box-shadow: 0 0 0 2px var(--c-primary), 0 0 0 6px rgba(4, 48, 92, .12); }
.row--rich.is-live .row__time { color: var(--c-accent); }
.row--rich.is-live .row__time::after { background: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); animation: feed-pulse 1.8s ease-out infinite; }
.row__card {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 14px 16px; margin: 0 -16px 0 0;
	border-radius: var(--r); transition: background var(--t-fast), box-shadow var(--t);
}
.row--rich:hover .row__card { background: #fff; box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card); }
.row--rich + .row--rich .row__card { position: relative; }
.row--rich + .row--rich .row__card::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--c-line); }
.row--rich:hover .row__card::before, .row--rich:hover + .row--rich .row__card::before { opacity: 0; }
.row--rich .row__kicker { align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.row__read { font: 500 .75rem/1 var(--f-body); color: var(--c-meta); }
.row__read::before { content: "·"; margin-right: 10px; color: var(--c-line-strong); }
.row--rich .row__title { font-size: 1.1875rem; line-height: 1.3; }
.row--rich .row__title a { transition: color var(--t-fast); }
.row--rich:hover .row__title a { color: var(--c-primary); }
.row__lead { margin-top: 6px; font-size: .9375rem; line-height: 1.55; color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__media { display: block; width: 168px; }
.row__media .thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-img); }
.row__media .thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.row--rich:hover .row__media .thumb__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .day-head.is-today .day-head__label::before, .row--rich.is-live .row__time::after { animation: none; } }

.mini { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 6px; }
.mini:last-child { border-bottom: 0; }
.mini__title { font: 600 1rem/1.35 var(--f-head); transition: color var(--t-fast); }
.mini__title:hover { color: var(--c-primary); }

.panel { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-1); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 4px; }

/* ---------- Home ---------- */
.frontpage { padding-top: 32px; }
/* ---------- Home stage: full-width slider, right column laid over it ----------
   Slides stack in the viewport and cross-fade (the leaving one stays opaque under the arriving one, so the
   picture never dips to the background). Timing is the active dot's CSS fill animation: its end advances
   the slide (main.js), pausing it pauses the slider. Desktop: the aside (sponsored zone + Most Popular)
   floats over the picture and picks slides; ≤1180 it drops under the slider as plain links. */
.stage {
	/* Exactly one screen under the header + ticker (--stage-top is measured by main.js). */
	--stage-h: max(460px, calc(100svh - var(--stage-top, 108px)));
	--stage-aside: 384px;
	--stage-gap: 56px;
	--stage-ms: 7000ms;
	--stage-red: #D11239;
	position: relative; display: grid; grid-template-rows: var(--stage-h); height: var(--stage-h); isolation: isolate; overflow: hidden;
	background: var(--c-primary-900); color: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.stage__viewport, .stage__rail { grid-area: 1 / 1; min-height: 0; }
.stage [hidden] { display: none !important; } /* promo variants waiting for the rotation pick */
.stage__viewport { position: relative; overflow: hidden; touch-action: pan-y; } /* horizontal swipes go to main.js */
/* Swipe: the active slide's content follows the finger, springs back or hands over on release. */
.stage__slide .stage__body, .stage__slide .stage__promo-shot, .stage__slide .stage__promo-caption { transition: translate 360ms var(--ease-out), opacity 360ms var(--ease-out); }
.stage.is-dragging .stage__slide.is-active :is(.stage__body, .stage__promo-shot, .stage__promo-caption) { translate: calc(var(--drag, 0px) * .6) 0; opacity: .75; transition: none; }

.stage__slide {
	position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end;
	visibility: hidden; opacity: 0; transition: opacity 0s linear 900ms, visibility 0s linear 900ms;
}
.stage__slide.is-active { z-index: 2; visibility: visible; opacity: 1; transition: opacity 900ms var(--ease-out); }
.stage__media { position: absolute; inset: 0; overflow: hidden; background: var(--c-primary-900); }
.stage__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0s linear 900ms; }
.stage__slide.is-active .stage__img { transform: none; transition: transform 1800ms var(--ease-out); }
.stage__media::after {
	content: ""; position: absolute; inset: 0;
	/* Light: darkens only under the text (bottom-left) and the column (right edge); the picture keeps its contrast. */
	background:
		linear-gradient(90deg, rgba(2, 26, 51, .62) 0%, rgba(2, 26, 51, .28) 34%, rgba(2, 26, 51, 0) 58%, rgba(2, 26, 51, .22) 100%),
		linear-gradient(0deg, rgba(2, 26, 51, .78) 0%, rgba(2, 26, 51, .25) 30%, rgba(2, 26, 51, 0) 52%);
}

.stage__frame {
	position: relative; z-index: 1;
	padding-bottom: 100px; padding-right: calc(var(--gutter) + var(--stage-aside) + var(--stage-gap));
}
.stage__body { max-width: 780px; }
.stage__slide:not(.is-active) .stage__body { opacity: 0; transition: opacity 200ms; }
.stage__slide.is-active .stage__body > * { animation: stage-up 900ms var(--ease-out) both; }
.stage__slide.is-active .stage__body > :nth-child(2) { animation-delay: 70ms; }
.stage__slide.is-active .stage__body > :nth-child(3) { animation-delay: 140ms; }
.stage__slide.is-active .stage__body > :nth-child(4) { animation-delay: 210ms; }
@keyframes stage-up { from { opacity: 0; transform: translateY(22px); } }
.stage__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.stage__kicker .pill { background: var(--c-accent); }
.stage__kicker .badge { color: #fff; }
.stage__kicker:empty { display: none; }
.stage__title {
	font-size: clamp(2rem, 1rem + 2.3vw, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance;
	margin-bottom: 18px; text-shadow: 0 2px 24px rgba(2, 26, 51, .35);
}
.stage__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 500ms var(--ease-out); }
.stage__title a:hover { background-size: 100% 2px; }
.stage__lead {
	font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 640px; margin-bottom: 18px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stage .meta { color: rgba(255, 255, 255, .66); }
.stage .meta__author { color: #fff; }

@media (max-height: 760px) {
	.stage__lead { -webkit-line-clamp: 1; }
	.stage__title { -webkit-line-clamp: 3; }
}
@media (max-height: 640px) {
	.stage__lead { display: none; }
}

/* Counter + progress dots */
.stage__nav { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 3; pointer-events: none; }
.stage__controls { display: flex; align-items: center; gap: 10px; width: max-content; pointer-events: auto; }
.stage__count { margin-right: 6px; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .06em; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.stage__count b { font-weight: 500; color: #fff; }
.stage__count span { margin: 0 6px; }
.stage__dots { display: flex; gap: 6px; }
.stage__dot { position: relative; width: 32px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.stage__dot i, .stage__progress::after {
	content: ""; position: absolute; inset: 0; background: var(--stage-red);
	transform: scaleX(0); transform-origin: left;
}
.stage__dot.is-active i, .stage__item.is-active .stage__progress::after { transform: none; }
.stage.is-auto .stage__dot.is-active i,
.stage.is-auto .stage__item.is-active .stage__progress::after { animation: stage-fill var(--stage-ms) linear both; }
.stage.is-auto.is-held .stage__dot.is-active i,
.stage.is-auto.is-held .stage__item.is-active .stage__progress::after { animation-play-state: paused; }
@keyframes stage-fill { from { transform: scaleX(0); } to { transform: none; } }
html:not(.js) .stage__controls { display: none; }

/* Promo slide (FX24 Placements "home-hero", format "slide"): the banner whole, framed, over a blurred copy
   of itself; it sits left of the column like the article text does. */
.stage .stage__promo { position: absolute; inset: 0; display: block; }
.stage__promo-bg { position: absolute; inset: -60px; overflow: hidden; }
.stage__promo-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.3) brightness(.5); transform: scale(1.1); }
.stage__promo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 26, 51, .2), rgba(2, 26, 51, .65) 70%); }
.stage__promo-frame {
	position: relative; z-index: 1; display: flex; align-items: center; height: 100%;
	padding-top: 28px; padding-bottom: 76px; padding-right: calc(var(--gutter) + var(--stage-aside) + var(--stage-gap));
}
.stage__promo-shot {
	position: relative; display: block; max-width: 100%; border-radius: var(--r-lg); overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -36px rgba(0, 0, 0, .85);
	transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
a.stage__promo-shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 50px 90px -36px rgba(0, 0, 0, .9); }
.stage__promo-shot picture { display: contents; }
.stage__promo-img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--stage-h) - 104px); }
.stage__promo-label {
	position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: var(--r-xs);
	font: 500 .625rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45);
}
.stage__promo-caption { display: none; }
.stage__slide:not(.is-active) .stage__promo-frame { opacity: 0; transition: opacity 200ms; }
.stage__slide.is-active .stage__promo-shot { animation: stage-up 900ms var(--ease-out) both; }

/* Right column over the slider: the promo preview first, then Most Popular */
.stage__rail { position: relative; z-index: 4; display: flex; justify-content: flex-end; align-items: flex-start; padding-block: 24px; overflow: hidden; pointer-events: none; }
/* Never taller than the stage: the zone keeps its size, Most Popular shows the rows that fit (main.js). */
.stage__aside { display: flex; flex-direction: column; gap: 12px; width: var(--stage-aside); max-height: 100%; pointer-events: auto; }
.stage__aside > .plc { flex: none; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.stage__aside > .plc:not(.is-filled):not(.is-empty) { background: rgba(255, 255, 255, .06); }
/* Promo preview: a thumbnail of the promo slide; picks it like a Most Popular row. */
.stage__ad {
	position: relative; flex: none; display: block; padding: 10px; border-radius: var(--r); overflow: hidden; color: #fff;
	background: rgba(6, 17, 31, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .7);
	transition: box-shadow var(--t) var(--ease-std);
}
/* The ad's own accent (creative field, --promo-accent on the card / slide) frames the preview and colours the kicker. */
.stage__ad.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--promo-accent, var(--c-accent)) 60%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.stage__ad-shot { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #06111F; }
.stage__ad-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 600ms var(--ease-out); }
.stage__ad:hover .stage__ad-shot img { transform: scale(1.04); }
.stage__ad-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 5px; padding: 12px 6px 6px; }
.stage__ad-kicker { font: 500 .6875rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--promo-accent, var(--stage-red)); }
.stage__ad-kicker i { font-style: normal; color: var(--c-on-dark-2); }
.stage__ad-title { grid-row: 2; font: 600 .9375rem/1.3 var(--f-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage__ad-cta {
	grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-sm);
	font: 600 .75rem/1 var(--f-mono); letter-spacing: .04em; white-space: nowrap; background: #D11239; color: #fff;
	box-shadow: 0 4px 10px -6px rgba(209, 18, 57, .8); transition: filter var(--t-fast);
}
.stage__ad:hover .stage__ad-cta { filter: brightness(1.1); }
.stage__ad .stage__progress { top: auto; bottom: 0; }
/* Short screens: a row card (thumbnail left) leaves room for the list. */
@media (min-width: 1181px) and (max-height: 860px) {
	.stage__ad { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: center; }
	.stage__ad-shot { aspect-ratio: 16 / 10; }
	.stage__ad-body { grid-template-columns: 1fr; padding: 0; }
	.stage__ad-cta { grid-column: 1; grid-row: 3; justify-self: start; height: 28px; margin-top: 2px; }
}
.stage__popular {
	min-height: 0; overflow: hidden; padding: 18px 22px 4px; border-radius: var(--r);
	background: rgba(2, 20, 40, .6); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.stage__popular-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-red); }
.stage__list { list-style: none; }
.stage__item { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.stage__num { padding-top: 1px; font: 500 .75rem/1 var(--f-mono); color: rgba(255, 255, 255, .36); transition: color var(--t); }
.stage__item-kicker { display: flex; gap: 10px; margin-bottom: 6px; font: 700 .6875rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-2); }
.stage__item-read { font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .7; }
.stage__item[hidden] { display: none; }
.stage__item-title {
	font: 600 .9375rem/1.35 var(--f-head); color: rgba(255, 255, 255, .72); transition: color var(--t);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stage__item-title::after { content: ""; position: absolute; inset: 0; } /* the whole row picks / opens */
.stage__item:hover .stage__item-title, .stage__item.is-active .stage__item-title { color: #fff; }
.stage__item.is-active .stage__num { color: var(--stage-red); }
.stage__progress { position: absolute; top: -1px; left: 0; right: 0; height: 2px; overflow: hidden; }

.qotd {
	--qotd-line: rgba(4, 48, 92, .12);
	margin: 0; position: relative; overflow: hidden; border-radius: var(--r);
	background: radial-gradient(rgba(4, 48, 92, .07) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--c-surface-2);
	box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card);
}
.qotd__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px;
	border-bottom: 1px solid var(--qotd-line); background: rgba(255, 255, 255, .7);
	font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
}
.qotd__label { display: inline-flex; align-items: center; gap: 10px; color: var(--c-accent); }
.qotd__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(209, 18, 57, .12); }
.qotd__status { display: inline-flex; align-items: center; gap: 8px; color: var(--c-meta); letter-spacing: .1em; white-space: nowrap; }
.qotd__status::after { content: ""; width: 3px; height: 12px; background: var(--c-accent); }
.qotd__body { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 30px 28px 26px; }
.qotd__prompt { font: 500 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.45 var(--f-mono); color: var(--c-accent); }
.qotd__text { margin: 0; font: 500 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.45 var(--f-head); color: var(--c-primary); text-wrap: pretty; }
/* Cursor blinks a few times once the card scrolls in, then stays (an endless blink keeps frames coming). */
.qotd__cursor { display: inline-block; width: .5em; height: 1.05em; margin-left: .2em; vertical-align: -.15em; border-radius: 2px; background: var(--c-accent); }
.qotd.is-in .qotd__cursor { animation: qotd-blink 1s steps(1) 4 300ms; }
@keyframes qotd-blink { 50% { opacity: 0; } }
.qotd__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 28px; padding: 14px 0 18px; border-top: 1px dashed var(--qotd-line); }
.qotd__author {
	display: inline-flex; align-items: center; gap: .6em; min-height: 36px; padding: 0 14px; border-radius: var(--r-sm);
	background: #EEF1F5; box-shadow: 0 1px 2px rgba(4, 48, 92, .08), 0 6px 14px -10px rgba(4, 48, 92, .3);
	font: 500 .8125rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text);
}
.qotd__author::before { content: "[ —"; color: var(--c-accent); }
.qotd__author::after { content: "]"; color: var(--c-accent); }
.qotd__sys { font: 400 .6875rem/1 var(--f-mono); letter-spacing: .12em; color: var(--c-meta); }

.weekly { background: var(--c-primary-900); color: var(--c-on-dark); padding: 72px 0; margin: 16px 0 0; }
.weekly__title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .18em; color: #D11239; text-align: center; margin-bottom: 36px; }
.weekly__grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 40px; align-items: center; }
.weekly__text { font: 400 1.0625rem/1.6 var(--f-body); color: var(--c-on-dark-2); display: grid; gap: 16px; justify-items: start; }
.weekly__text p { margin: 0; }
.weekly__text--quote { font: 300 italic clamp(1.375rem, 1rem + 1.2vw, 2rem)/1.3 var(--f-head); color: #fff; }
.weekly__media { aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .06); overflow: hidden; border-radius: var(--r-img); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); }
.weekly__media img { width: 100%; height: 100%; object-fit: cover; }
.weekly .btn--primary { --btn-bg: var(--c-accent); }

.affiliate { padding: 80px 0 88px; background: var(--c-surface-2); }
.affiliate__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--c-primary); }
.affiliate__title { font-size: var(--fs-h2); color: var(--c-primary); text-transform: uppercase; letter-spacing: .02em; }
.affiliate__sub { font: 600 .8125rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .16em; color: var(--c-accent); }
.partners { margin-bottom: var(--gap); }
.partner {
	display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 28px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow-card);
	transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-std), border-color var(--t);
}
.partner img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--t), opacity var(--t); }
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.partner:hover img { filter: none; opacity: 1; }
.affiliate__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--gap); }
.more-card {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-card);
	font: 600 1.0625rem/1.3 var(--f-head); color: var(--c-primary); position: relative; transition: box-shadow var(--t), transform var(--t) var(--ease-out);
}
.more-card img { width: 48px; height: 48px; object-fit: contain; }
.more-card__label { position: absolute; top: 12px; left: 24px; font: 700 .6875rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--c-meta); }
.more-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.cta-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: var(--r);
	background: radial-gradient(120% 140% at 100% 0, #0B4A86 0, var(--c-primary) 45%, var(--c-ink-deep) 100%); color: #fff;
	box-shadow: 0 24px 48px -28px rgba(2, 26, 51, .7);
}
.cta-banner__title { font: 700 clamp(1.375rem, 1rem + 1vw, 1.75rem)/1.2 var(--f-head); margin-bottom: 6px; }
.cta-banner__text { color: var(--c-on-dark-2); }

/* ---------- Page top, archives ---------- */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font: 400 .8125rem/1.4 var(--f-head); color: var(--c-meta); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current] { color: var(--c-text); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem/1 var(--f-head); color: var(--c-primary); white-space: nowrap; }
.back-link .icon { transition: transform var(--t) var(--ease-out); }
.back-link:hover .icon { transform: translateX(-4px); }

/* Static pages (page.php): room before the footer */
article.page { padding-bottom: 80px; }

/* ---------- About (template-about.php) ---------- */
.about { padding-top: 32px; padding-bottom: 80px; }
.about-hero {
	position: relative; overflow: hidden; padding: 44px 48px 40px; border-radius: var(--r-lg); color: #fff;
	background: radial-gradient(60% 80% at 100% 0%, rgba(30, 64, 175, .22), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(209, 18, 57, .1), transparent 70%), #031426;
	box-shadow: 0 30px 60px -36px rgba(2, 26, 51, .7), inset 0 0 0 1px rgba(148, 163, 184, .14);
}
.about-hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: #D11239; }
.about-hero__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px rgba(209, 18, 57, .7); }
.about-hero__title { font: 600 clamp(2rem, 1.4rem + 2.2vw, 3.25rem)/1.08 var(--f-body); letter-spacing: -.025em; }
.about-hero__sub { margin-top: 12px; max-width: 760px; font-size: 1.0625rem; color: #94A3B8; }
.about-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid rgba(148, 163, 184, .16); }
.about-hero__stats dt { font: 600 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1 var(--f-body); letter-spacing: -.02em; }
.about-hero__stats dd { margin: 8px 0 0; font: 400 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.about-intro { max-width: 900px; margin-top: 48px; font-size: 1.125rem; color: var(--c-text-2); }
.about-intro > * + * { margin-top: 14px; }
.about-section { margin-top: 64px; }
.about-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.about-person {
	display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r); background: #fff;
	box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card); transition: transform var(--t) var(--ease-out), box-shadow var(--t);
}
.about-person:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-lift); }
.about-person__initials { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary); color: #fff; font: 600 1rem/1 var(--f-mono); letter-spacing: .04em; }
.about-person__name { font-size: 1.125rem; color: var(--c-text); }
.about-person__role { margin-top: 4px; font: 600 .8125rem/1.35 var(--f-head); color: var(--c-accent); }
.about-person__focus { margin-top: 6px; font-size: .875rem; color: var(--c-meta); }
.about-policy { display: grid; gap: 14px; list-style: none; counter-reset: pol; }
.about-policy li {
	counter-increment: pol; position: relative; padding: 20px 24px 20px 72px; border-radius: var(--r); background: var(--c-surface-2);
	box-shadow: inset 0 0 0 1px var(--c-line);
}
.about-policy li::before { content: counter(pol, decimal-leading-zero); position: absolute; left: 24px; top: 21px; font: 500 .875rem/1.4 var(--f-mono); color: var(--c-accent); }
.about-policy h3 { font-size: 1.0625rem; color: var(--c-text); }
.about-policy p { margin-top: 4px; color: var(--c-text-2); font-size: .9375rem; }
.about-faq .prose > .qa-group:first-child { margin-top: 0; }
.about-disclaimer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: .8125rem; line-height: 1.6; color: var(--c-meta); }
.about-disclaimer strong { color: var(--c-text); }

/* FAQ page: <details class="qa"> accordions in the content */
.prose .lead { font-size: 1.1875rem; color: var(--c-text-2); }
.prose .qa-group { margin-top: 48px; font: 500 .8125rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.prose .qa-group + .qa { margin-top: 16px; }
.prose .qa { margin-top: 10px; border-radius: var(--r); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); transition: background var(--t-fast), box-shadow var(--t); }
.prose .qa[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card); }
.prose .qa summary {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
	font: 600 1.0625rem/1.4 var(--f-head); color: var(--c-text);
}
.prose .qa summary::-webkit-details-marker { display: none; }
.prose .qa summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--f-mono); color: var(--c-accent); transition: transform var(--t) var(--ease-out); }
.prose .qa[open] summary::after { transform: rotate(45deg); }
.prose .qa summary:hover { color: var(--c-primary); }
.qa__a { padding: 0 22px 20px; font-size: 1rem; color: var(--c-text-2); }
.qa__a > * + * { margin-top: 12px; }
.prose .risk-note { margin-top: 40px; padding: 18px 22px; border-radius: var(--r); background: rgba(209, 18, 57, .06); font-size: .9375rem; color: var(--c-text-2); }

@media (max-width: 767px) {
	.about { padding-top: 16px; }
	.about-hero { margin-inline: calc(var(--gutter) * -1); padding: 32px var(--gutter); border-radius: 0 0 var(--r-lg) var(--r-lg); }
	.about-hero__stats { gap: 20px 32px; }
	.about-team { grid-template-columns: 1fr; }
	.about-policy li { padding: 18px 18px 18px 56px; }
	.about-policy li::before { left: 18px; }
}

/* ---------- Legal documents (template-legal.php) ----------
   Facts card + sticky contents + numbered sections; the light FX24 System look of the Quote of the Day. */
.legal { padding-top: 40px; padding-bottom: 80px; }
.legal__head { grid-area: head; max-width: 860px; margin-bottom: 32px; }
.legal__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.legal__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(209, 18, 57, .12); }
.legal__title { font-size: var(--fs-h1); color: var(--c-primary); letter-spacing: -.02em; }
.legal__layout { display: grid; grid-template-columns: 310px minmax(0, 860px); grid-template-areas: "toc head" "toc body"; column-gap: 48px; align-items: start; }
.legal__body { grid-area: body; }
/* Level with the title; sticky without an inner scroll: a list taller than the screen scrolls with the page until
   its end shows, then sticks (--toc-h from main.js). */
.legal__toc { grid-area: toc; position: sticky; top: min(calc(var(--head-total) + 24px), calc(100vh - var(--toc-h, 0px) - 24px)); }
/* The list fills the screen height under the header, items spread evenly (a longer list keeps its own height). */
.legal__toc ol { min-height: calc(100vh - var(--head-total) - 48px - 26px); align-content: space-between; }
.legal__toc summary { list-style: none; margin-bottom: 12px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c-meta); cursor: default; }
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol { display: grid; gap: 1px; list-style: none; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc li > a {
	display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm);
	font: 500 .8125rem/1.3 var(--f-head); color: var(--c-text-2); transition: background var(--t-fast), color var(--t-fast);
}
.legal__toc li > a::before { content: counter(toc, decimal-leading-zero); font: 500 .75rem/1.5 var(--f-mono); color: var(--c-meta); }
.legal__toc li > a:hover { background: var(--c-surface); color: var(--c-primary); }
.legal__toc li > a.is-current { background: var(--c-surface); color: var(--c-primary); }
.legal__toc li > a.is-current::before { color: var(--c-accent); }

.legal-meta {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 40px; padding: 4px 24px; border-radius: var(--r);
	background: radial-gradient(rgba(4, 48, 92, .07) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--c-surface-2);
	box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card);
}
.legal-meta > div { padding: 14px 0; border-bottom: 1px dashed rgba(4, 48, 92, .14); }
.legal-meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.legal-meta > div:nth-child(odd) { padding-right: 20px; }
.legal-meta dt { margin-bottom: 4px; font: 500 .6875rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
.legal-meta dd { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--c-text); }
.legal-meta a { color: var(--c-link); }
.legal__body { font-size: 1rem; }
.legal__body h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 1.375rem; scroll-margin-top: calc(var(--head-total) + 24px); }
.legal__body h3 { margin-top: 28px; font-size: 1.0625rem; color: var(--c-text); }
.legal__body > * + * { margin-top: 16px; }

@media (max-width: 1024px) {
	.legal__head { margin-bottom: 0; }
	.legal__layout { grid-template-columns: 1fr; grid-template-areas: "head" "toc" "body"; gap: 24px; }
	.legal__toc ol { min-height: 0; }
	.legal__toc { position: static; max-height: none; padding: 16px 18px; border-radius: var(--r); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); }
	.legal__toc summary { display: flex; justify-content: space-between; align-items: center; margin: 0; cursor: pointer; }
	.legal__toc summary::after { content: "+"; font-size: 1.125rem; line-height: 1; color: var(--c-accent); transition: transform var(--t) var(--ease-out); }
	.legal__toc details[open] summary::after { transform: rotate(45deg); }
	.legal__toc details[open] summary { margin-bottom: 12px; }
	.legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
	.legal { padding-top: 24px; }
	.legal-meta { grid-template-columns: 1fr; padding: 4px 18px; }
	.legal-meta > div:nth-last-child(2) { border-bottom: 1px dashed rgba(4, 48, 92, .14); }
	.legal-meta > div:nth-child(odd) { padding-right: 0; }
}

/* ---------- Industry Solution (provider sections' landing block, inc/solution.php) ----------
   FX24 System frame per the client spec: JetBrains Mono status bar, Inter headings, #94A3B8 copy, #D11239. */
.sol {
	--sol-red: #D11239; --sol-grey: #94A3B8; --sol-line: rgba(148, 163, 184, .16); --sol-card: #0F1B2D;
	position: relative; isolation: isolate; overflow: hidden; margin: 32px 0 72px; padding: 28px 56px 48px;
	border-radius: var(--r-lg); color: #fff; font-family: var(--f-body);
	background: radial-gradient(70% 60% at 85% 0%, rgba(30, 64, 175, .16), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(209, 18, 57, .08), transparent 70%), #030C1A;
	box-shadow: 0 30px 60px -36px rgba(2, 26, 51, .7), inset 0 0 0 1px var(--sol-line);
}
.sol__decor { position: absolute; z-index: -1; right: -40px; bottom: -60px; color: rgba(148, 163, 184, .1); pointer-events: none; }
.sol__decor .icon { width: 360px; height: 360px; stroke-width: 2.4; }
.sol--split .sol__decor { right: -80px; bottom: -110px; }

.sol__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 52px; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.sol__state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--sol-grey); }
.sol__label { display: inline-flex; align-items: center; gap: 10px; color: var(--sol-red); letter-spacing: .12em; }
.sol__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px rgba(209, 18, 57, .7); }
.sol__meta { display: inline-flex; align-items: center; gap: 14px; }
.sol__meta::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgba(148, 163, 184, .5); }
.sol__status { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 6px 10px 6px 12px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--sol-line); color: #fff; }
.sol__status::after { content: ""; width: 7px; height: 14px; border-radius: 1px; background: var(--sol-red); }

.sol__head { padding-bottom: 28px; margin-bottom: 44px; border-bottom: 1px solid var(--sol-line); }
.sol__title { margin-bottom: 14px; font: 600 clamp(2rem, 1.4rem + 2vw, 3rem)/1.1 var(--f-body); letter-spacing: -.02em; color: #fff; }
.sol__lead { max-width: 960px; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--sol-grey); }
.sol strong { font-weight: 600; color: #CBD5E1; }

.sol__heading { margin-bottom: 32px; }
.sol__heading--center { text-align: center; }
.sol__heading h2 { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-body); color: #fff; letter-spacing: -.01em; }
.sol__heading p { margin-top: 8px; color: #CBD5E1; }

.sol__cards { display: grid; grid-template-columns: repeat(var(--sol-cols, 3), minmax(0, 1fr)); gap: 24px; }
.sol-card {
	display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border-radius: var(--r);
	background: var(--sol-card); box-shadow: inset 0 0 0 1px var(--sol-line), 0 20px 40px -30px rgba(0, 0, 0, .8);
	transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-std);
}
.sol-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .28), 0 28px 48px -30px rgba(0, 0, 0, .9); }
.sol-card__title { display: flex; align-items: center; gap: 12px; font: 500 1.375rem/1.25 var(--f-body); color: #fff; letter-spacing: -.005em; }
.sol-card__title.is-accent { color: var(--sol-red); text-transform: uppercase; }
.sol-card__icon { flex: none; display: inline-grid; place-items: center; color: var(--sol-red); }
.sol-card__lead { font-size: 1.125rem; line-height: 1.5; color: #E2E8F0; }
.sol-card__text { font-size: 1rem; line-height: 1.6; color: var(--sol-grey); }
.sol-card__text + .sol-card__text { margin-top: 10px; }
.sol-card__list { display: grid; gap: 14px; margin-top: 8px; list-style: none; }
.sol-card__list li { position: relative; padding-left: 26px; color: var(--sol-grey); line-height: 1.45; }
.sol-card__list li::before { content: ""; position: absolute; left: 2px; top: .25em; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Split: cards stacked left, side panel right */
.sol--split .sol__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sol--split .sol__cards { grid-template-columns: 1fr; gap: 16px; }
.sol--split .sol-card { gap: 8px; padding: 24px 28px; }
.sol--split .sol-card__title { font-size: 1.375rem; }
.sol--split .sol-card__text { padding-left: 32px; }
.sol__side { padding-top: 6px; }
.sol__side-title { margin-bottom: 28px; font: 500 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-body); color: #fff; }
.sol__side-title.is-accent { color: var(--sol-red); }
.sol__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin: 0 0 44px; }
.sol__items dt { margin-bottom: 8px; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sol-red); }
.sol__items dd { margin: 0; line-height: 1.55; color: #CBD5E1; }
.sol__side-sub { margin-bottom: 18px; font: 500 1.375rem/1.25 var(--f-body); color: #fff; }
.sol__note { margin-top: 16px; font: 400 .75rem/1.5 var(--f-mono); color: #fff; opacity: .85; }

/* Bottom CTA */
.sol__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 48px; }
.sol__foot--center { justify-content: center; }
.sol__foot-text p { max-width: 720px; font: 500 clamp(1.0625rem, 1rem + .4vw, 1.375rem)/1.45 var(--f-body); color: #fff; }
.sol__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; }
.sol__chips li { padding: 6px 10px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .3); background: rgba(30, 64, 175, .12); font: 400 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #7C93B8; }
.sol__chips li::before { content: "[ "; }
.sol__chips li::after { content: " ]"; }
.sol__cta {
	display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 52px; padding: 0 32px; border-radius: var(--r-sm);
	background: var(--sol-red); color: #fff; font: 700 .9375rem/1 var(--f-mono); letter-spacing: .04em;
	box-shadow: 0 10px 24px -10px rgba(209, 18, 57, .7); transition: filter var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.sol__cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sol__ctas { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.sol__cta--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .4); }
.sol__cta--ghost:hover { background: rgba(148, 163, 184, .1); filter: none; }
.sol__cta--card { align-self: flex-start; min-height: 44px; margin-top: auto; padding: 0 22px; font-size: .8125rem; }
.sol-card__list li.is-pair { display: grid; gap: 4px; }
.sol-card__list li.is-pair b { font-weight: 500; color: #fff; }
.sol__cta:active { transform: scale(.98); }

@media (max-width: 1024px) {
	.sol { padding: 24px 32px 36px; }
	.sol__cards { grid-template-columns: repeat(min(var(--sol-cols, 3), 2), minmax(0, 1fr)); }
	.sol--split .sol__body { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
	.sol { margin: 0 calc(var(--gutter) * -1) 36px; padding: 20px var(--gutter) 32px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
	.sol__bar { align-items: flex-start; margin-bottom: 32px; }
	.sol__meta { display: none; }
	.sol__head { margin-bottom: 28px; }
	.sol__cards { grid-template-columns: 1fr; gap: 14px; }
	.sol--split .sol-card__text { padding-left: 0; }
	.sol__items { grid-template-columns: 1fr; }
	.sol__foot { flex-direction: column; align-items: stretch; }
	.sol__ctas, .sol__cta { width: 100%; }
	.sol__ctas .sol__cta { flex: 1 1 auto; }
	.sol__decor .icon { width: 240px; height: 240px; }
}

.archive-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--c-line); }
.archive-head__title { font-size: var(--fs-h1); color: var(--c-primary); margin-bottom: 12px; }
.archive-head--chip .archive-head__desc { margin-top: 18px; }
.archive-head__desc { max-width: 760px; color: var(--c-text-2); font-size: 1.0625rem; margin-bottom: 24px; }
.archive-intro { margin-bottom: 40px; padding: 32px; border-radius: var(--r); background: var(--c-surface-2); }
.archive-grid { row-gap: 44px; }
.empty { padding: 40px; text-align: center; color: var(--c-meta); background: var(--c-surface-2); border-radius: var(--r); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-sm);
	font: 600 .875rem/1 var(--f-head); color: var(--c-text); transition: background var(--t-fast), color var(--t-fast);
}
.pager a.page-numbers:hover { background: var(--c-surface); color: var(--c-primary); }
.pager .current { background: var(--c-primary); color: #fff; }
.pager .dots { min-width: 24px; color: var(--c-meta); }

.author-head { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--c-line); }
.avatar { border-radius: 50%; object-fit: cover; }
.author-head__pos { font: 600 .8125rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent); margin-bottom: 12px; }
.author-head__bio { color: var(--c-text-2); max-width: 680px; }

.subpages { margin-top: 40px; }
.subpage { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-radius: var(--r); border: 1px solid var(--c-line); background: #fff; box-shadow: var(--shadow-card); font: 600 1.0625rem/1.3 var(--f-head); color: var(--c-primary); transition: all var(--t) var(--ease-out); }
.subpage:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.notfound { padding: 80px var(--gutter) 120px; text-align: center; }
.notfound__code { font: 900 clamp(6rem, 20vw, 11rem)/1 var(--f-head); color: var(--c-surface); -webkit-text-stroke: 2px var(--c-primary); margin-bottom: 8px; }
.notfound .search-form { max-width: 560px; margin: 32px auto; }

/* ---------- Article ---------- */
.layout--article { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
/* Same breakpoints as .layout (declared here so they win over the rule above). */
@media (max-width: 1024px) { .layout--article { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; } }
@media (max-width: 767px) { .layout--article { grid-template-columns: 1fr; gap: 40px; } }
.article__head { margin-bottom: 28px; }
.article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.readtime {
	display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-left: auto; padding: 0 10px 0 8px; border-radius: var(--r-pill);
	background: var(--c-surface); color: var(--c-text-2); font: 500 .75rem/1 var(--f-head); letter-spacing: .02em; white-space: nowrap; cursor: default;
}
.readtime .icon { color: var(--c-accent); }
.readtime__dot { width: 3px; height: 3px; margin: 0 2px; border-radius: 50%; background: currentColor; opacity: .5; }
.readtime strong { font-weight: 700; color: var(--c-primary); }
@media (max-width: 640px) { .readtime { margin-left: 0; } }
.article__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.article__lead { font: 500 1.1875rem/1.6 var(--f-body); color: var(--c-text-2); margin-bottom: 24px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-block: 1px solid var(--c-line); }
.byline__author { display: flex; align-items: center; gap: 12px; }
.byline__author strong { display: block; font: 600 .9375rem/1.3 var(--f-head); }
.byline__author:hover strong { color: var(--c-primary); }
.byline__tools { display: flex; gap: 8px; }

.takeaways { background: var(--c-surface); border-radius: var(--r); padding: 24px 28px; margin: 0 0 28px; box-shadow: inset 0 0 0 1px var(--c-line); }
.takeaways__title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-primary); margin-bottom: 12px; }
.takeaways ul { list-style: none; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-left: 22px; font: 500 1rem/1.5 var(--f-head); }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--c-accent); }

.article__figure { margin: 0 0 32px; }
.article__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-img); }
.article__figure figcaption { margin-top: 10px; font-size: var(--fs-meta); color: var(--c-meta); }

.prose { font: 400 var(--fs-body)/1.7 var(--f-body); color: var(--c-text); }
.prose > * + * { margin-top: 24px; }
.prose h2, .prose h3, .prose h4 { color: var(--c-primary); margin-top: 44px; scroll-margin-top: calc(var(--head-total) + 24px); }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-accent); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose ul li::marker { color: var(--c-accent); }
.prose figure { margin-inline: 0; }
.prose img { height: auto; border-radius: var(--r-img); }
.prose figcaption { margin-top: 10px; font-size: var(--fs-meta); color: var(--c-meta); }
.prose blockquote, .prose .wp-block-quote {
	margin-inline: 0; padding: 24px 28px; border-radius: var(--r); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line);
	font: italic 400 1.25rem/1.55 var(--f-head); color: var(--c-text-2);
}
.prose blockquote cite, .prose blockquote footer { display: block; margin-top: 12px; font: normal 600 .8125rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c-meta); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; width: auto !important; height: auto !important; }
.prose th, .prose thead td { background: var(--c-surface); font: 600 .8125rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: var(--c-primary); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; }
.prose .field-label { font-weight: 600; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tags a { display: inline-block; padding: 7px 12px; border-radius: var(--r-xs); background: var(--c-surface); font: 500 .8125rem/1 var(--f-head); color: var(--c-primary); transition: background var(--t-fast), color var(--t-fast); }
.tags a:hover { background: var(--c-primary); color: #fff; }
.layout__main .markets__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1181px) { .markets__grid[data-extra] > :last-child { display: none; } } /* desktop: 3 across */
@media (max-width: 1180px) { .layout__main .markets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* 2×2 */
@media (max-width: 560px) { .layout__main .markets__grid { grid-template-columns: 1fr; } }
.read-next { margin-top: 24px; }
.has-infinite [data-infinite] ~ .pager { display: none; } /* infinite scroll replaces it (kept for crawlers) */
/* Scroll anchoring must keep the cards in view still, not the loader / footer under the list: anchored to those,
   the browser scrolls down with every appended batch and the loader stays in view — an endless load loop. */
.feed-status, .pager, .sidebar, .site-footer { overflow-anchor: none; }
/* Even rows: always two columns (4 cards = 2×2), one on phones. */
.layout__main .read-next .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .layout__main .read-next .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Ads ---------- */
/* Sponsored zones (FX24 Placements) inside theme layouts */
.prose > .plc, .plc--after-article { margin-block: 36px; }
.prose .plc a { color: inherit; text-decoration: none; }
.prose .plc .plc-btn--primary { color: #fff; }
.archive-grid > .plc, .feed-batch > .plc { grid-column: 1 / -1; }
.frontpage > .plc--home-billboard { margin: 8px 0 32px; }
.search-idle > .plc { margin: 12px 8px 4px; }

/* ---------- Sidebar widgets ---------- */
.widget__title {
	display: flex; align-items: center; gap: 10px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--c-accent); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--c-primary);
}
.trending { list-style: none; }
.trending__item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.trending--thumbs .trending__item { grid-template-columns: 34px 64px 1fr; }
.trending__num { font: 800 1.375rem/1 var(--f-head); color: var(--c-line-strong); font-variant-numeric: tabular-nums; transition: color var(--t); }
.trending__item:hover .trending__num { color: var(--c-accent); }
.trending__thumb .thumb { aspect-ratio: 1; }
.trending__title { display: block; font: 600 .9375rem/1.35 var(--f-head); margin-bottom: 6px; transition: color var(--t-fast); }
.trending__title:hover { color: var(--c-primary); }

/* Subscribe box in the "FX24 System" style of the ad cards (FX24 Placements). */
.subscribe {
	padding: 20px 20px 22px; border-radius: var(--r); color: #fff; position: relative; overflow: hidden;
	background:
		radial-gradient(60% 40% at 50% 100%, rgba(209, 18, 57, .14), transparent 70%),
		radial-gradient(50% 40% at 85% 10%, rgba(30, 64, 175, .18), transparent 70%),
		#06111F;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), 0 18px 40px -24px rgba(2, 26, 51, .55);
}
.subscribe::before {
	content: "NEWSLETTER"; display: flex; align-items: center; gap: 8px; padding-bottom: 14px; margin-bottom: 18px;
	border-bottom: 1px solid rgba(148, 163, 184, .16); font: 500 .6875rem/1.2 var(--f-mono); letter-spacing: .08em; color: #D11239;
}
.subscribe__title { font: 600 1.375rem/1.35 var(--f-body); margin-bottom: 8px; }
.subscribe__text { color: #94A3B8; margin-bottom: 8px; }
.subscribe__form { display: grid; gap: 10px; margin-top: 18px; }
.subscribe__form input[type="email"] {
	height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid rgba(148, 163, 184, .28);
	background: rgba(148, 163, 184, .06); color: #fff; font: 400 .875rem/1 var(--f-mono); outline: 0; transition: border-color var(--t-fast), background var(--t-fast);
}
.subscribe__form input::placeholder { color: #94A3B8; }
.subscribe__form input:focus { border-color: #D11239; background: rgba(148, 163, 184, .1); }
.subscribe__form input.is-invalid { border-color: #D11239; }
.subscribe__form .btn { --btn-bg: #D11239; height: 46px; border-radius: var(--r-sm); font: 700 .8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; }
.subscribe__msg { font-size: .8125rem; min-height: 1em; color: var(--c-on-dark-2); }
.subscribe__msg.is-ok { color: #7EE2A8; }
.subscribe__msg.is-error { color: #D11239; }

.social-card {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 300px; min-height: 120px; padding: 20px;
	border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-card);
}
.social-card__head { display: flex; gap: 12px; align-items: center; }
.social-card__head strong { display: block; font: 600 .9375rem/1.2 var(--f-head); }
.social-card__head span { font-size: var(--fs-meta); color: var(--c-meta); }
.widget_custom_html, .widget_media_image { max-width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--c-ink-deep); color: var(--c-on-dark-2); padding: 44px 0 28px;
	border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -18px 40px -30px rgba(2, 26, 51, .5);
}
.site-footer__main {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
	padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .logo { color: #fff; }
.site-footer__tagline { margin-top: 6px; font: 500 .8125rem/1.4 var(--f-head); color: var(--c-on-dark-2); }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.site-footer__links a { font: 500 .875rem/1.3 var(--f-head); transition: color var(--t-fast); }
.site-footer__links a:hover, .site-footer__links .current-menu-item a { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-top: 20px; font-size: .75rem; line-height: 1.5; color: #6B7C90; }
.site-footer__disclaimer { max-width: 620px; text-align: right; }
.socials { display: flex; gap: 8px; }
.socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(127, 140, 160, .35); transition: all var(--t-fast); }
.socials a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.author-head .socials a { color: var(--c-primary); margin-top: 16px; }

/* ---------- Tab bar (mobile app-style) ---------- */
.tabbar { display: none; }

/* ---------- Toast ---------- */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 300; padding: 12px 18px; border-radius: var(--r);
	background: var(--c-ink-deep); color: #fff; font: 500 .875rem/1 var(--f-head); box-shadow: var(--shadow-3);
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all 300ms var(--ease-spring);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Motion: reveal + lazy images ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.fx24-lazy { opacity: 0; }
.fx24-lazy-loaded { animation: fx24-fade 400ms var(--ease-out) both; }
@keyframes fx24-fade { from { opacity: 0; } to { opacity: 1; } }

/* Reduced motion: keep fades and colour changes, drop travel (scrolling, sliding, zooming). */
@media (prefers-reduced-motion: reduce) {
	.js .reveal { transform: none; transition: opacity 500ms var(--ease-std); }
	.card:hover .thumb__img, .stage__img, .sr:hover .sr__media img, .sr.is-active .sr__media img { transform: none; }
	.pulse::after { animation-duration: 2.4s; }
	.stage__slide.is-active .stage__body > * { animation-name: fx24-fade; }
	.search-panel, .search-open .search-panel { transform: none; }
	@keyframes fx24-drop { from { opacity: 0; } to { opacity: 1; } }
	@keyframes fx24-sr-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.nav__link { padding-inline: 7px; font-size: .75rem; }

	/* Stage: the aside drops under the slider and turns into a light panel of plain links. */
	.stage { --stage-h: max(420px, calc(100svh - var(--stage-top, 108px))); grid-template-rows: var(--stage-h) auto; height: auto; background: none; color: inherit; overflow: visible; }
	.stage__viewport { background: var(--c-primary-900); color: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); }
	.stage__rail { grid-area: 2 / 1; display: block; padding-block: 28px 0; overflow: visible; pointer-events: auto; }
	.stage__aside { width: auto; max-height: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
	.stage__aside > .plc { box-shadow: none; }
	.stage__aside > .plc:not(.is-filled):not(.is-empty) { background: var(--c-surface); }
	.stage__frame { padding-right: var(--gutter); padding-bottom: 88px; }
	.stage__promo-frame { flex-direction: column; justify-content: center; align-items: stretch; gap: 22px; padding-right: var(--gutter); padding-bottom: 64px; }
	.stage__promo-shot { align-self: center; }
	.stage__promo-img { max-height: calc(var(--stage-h) - 260px); }
	.stage__promo-caption { display: grid; justify-items: start; gap: 8px; }
	.stage__promo-caption .stage__ad-cta { grid-column: auto; grid-row: auto; height: 42px; margin-top: 8px; padding: 0 18px; font-size: .8125rem; }
	.stage__promo-title { font: 800 clamp(1.375rem, 1rem + 2vw, 2rem)/1.15 var(--f-head); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
	.stage__ad { display: none; } /* the promo slide carries its own caption + button here */
	.stage__aside { grid-template-columns: 1fr; }
	.stage__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.stage__media::after { background: linear-gradient(0deg, rgba(2, 26, 51, .85) 0%, rgba(2, 26, 51, .4) 35%, rgba(2, 26, 51, 0) 62%); } /* light, under the text only */
	.stage__popular { background: var(--c-surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--c-line); }
	.stage__popular-title { color: var(--c-accent); }
	.stage__item { border-top-color: var(--c-line); }
	.stage__num { color: var(--c-meta); }
	.stage__item-kicker { color: var(--c-primary); }
	.stage__item.is-active .stage__num { color: var(--c-accent); }
	.stage__item-title { color: var(--c-text); }
	.stage__item:hover .stage__item-title, .stage__item.is-active .stage__item-title { color: var(--c-primary); }
	.stage__progress { display: none; }
}

@media (max-width: 1024px) {
	.weekly__grid { grid-template-columns: 1fr 1fr; }
	.weekly__media { grid-column: 1 / -1; order: -1; }
	.affiliate__row { grid-template-columns: 1fr; }

	/* Nav becomes a bottom sheet opened from the tab bar / burger. The sheet is position: fixed inside the
	   header, so the header must not be a containing block here (no will-change / contain). */
	.site-header { will-change: auto; }
	.nav {
		position: fixed; inset: auto 0 0 0; z-index: 120; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
		background: #fff; border-radius: 20px 20px 0 0; padding: 0 20px calc(24px + env(safe-area-inset-bottom));
		transform: translateY(105%); transition: transform 380ms var(--ease-sheet); box-shadow: var(--shadow-3);
	}
	.menu-open .nav { transform: none; }
	/* Grab handle (swipe down / tap outside / Esc close the sheet) */
	.nav::before { content: ""; position: sticky; top: 0; z-index: 1; display: block; width: 40px; height: 4px; margin: 10px auto 6px; border-radius: 2px; background: var(--c-line-strong); box-shadow: 0 -10px 0 10px #fff; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item--d0 { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
	.nav__link { flex: 1; padding: 18px 0; font-size: .9375rem; }
	.nav__link::after { display: none; }
	.nav__item.is-current > .nav__link { color: var(--c-accent); }
	.nav__toggle { margin: 0; padding: 12px; }
	.nav__panel, .nav__panel--mega {
		position: static; width: 100%; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; border-radius: 0; translate: none;
	}
	/* Touch: no hover-open; the chevron toggles the accordion. */
	.nav__item--d0:hover > .nav__panel, .nav__item--d0:focus-within > .nav__panel { display: none; }
	.nav__item.is-open > .nav__panel { display: block; animation: fx24-fade 240ms var(--ease-out); }
	.nav__panel--mega > .nav__sub { grid-template-columns: 1fr; gap: 16px; }
	.nav__sublink { padding: 10px 8px; }
}

@media (max-width: 1024px) {
	body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
	.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom);
		background: #fff; /* opaque: no per-frame blur under a fixed bar */
		border-top: 1px solid var(--c-line);
	}
	.tabbar__item {
		position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 12px;
		font: 500 .6875rem/1 var(--f-head); color: var(--c-meta); -webkit-tap-highlight-color: transparent;
		transition: color var(--t-fast);
	}
	.tabbar__item .icon { transition: transform 300ms var(--ease-spring); }
	.tabbar__item:active .icon { transform: scale(.86); }
	.tabbar__item.is-active { color: var(--c-primary); }
	.tabbar__item.is-active::before { content: ""; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-accent); animation: fx24-tab 300ms var(--ease-spring); }
	@keyframes fx24-tab { from { transform: scaleX(0); } to { transform: scaleX(1); } }
	.toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
	.stage { --stage-h: max(420px, calc(100svh - var(--stage-top, 94px) - var(--tabbar-h) - env(safe-area-inset-bottom))); }
	.site-header__tools [data-search-open], .site-header__tools [data-faq-open] { display: none; } /* in the tab bar */

	/* One bar: logo · Breaking News capsule · profile. The header row's children join the header grid
	   (display: contents); the nav is a fixed sheet here, out of the grid. */
	.site-header {
		display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
		height: var(--header-h); padding-inline: var(--gutter);
	}
	.site-header__inner { display: contents; }
	.site-header .logo { grid-column: 1; grid-row: 1; }
	.site-header__tools { grid-column: 3; grid-row: 1; margin-left: 0; }
	.site-header .ticker { grid-column: 2; grid-row: 1; min-width: 0; border-radius: var(--r-pill); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), inset 0 1px 2px rgba(0, 0, 0, .35); }
	.site-header .ticker__inner { height: 34px; padding-inline: 4px 0; gap: 10px; }
	.ticker__badge { border-radius: var(--r-pill); }
	.ticker__track li { line-height: 34px; }
}

@media (max-width: 640px) {
	.site-header__inner { gap: 12px; }
	.logo { font-size: 1.3125rem; }
	.logo__svg { height: 32px; }
	.site-header { column-gap: 10px; }
	/* Phones: the badge keeps its pulse, the label goes (the capsule is narrow). */
	.ticker__badge { gap: 0; padding: 7px; font-size: 0; }
	.ticker__track li { font-size: .75rem; }
	.frontpage { padding-top: 16px; }
	.stage__aside { grid-template-columns: 1fr; gap: 20px; }
	.stage__list { grid-template-columns: 1fr; }
	.stage__frame { padding-bottom: 72px; }
	.stage__title { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem); -webkit-line-clamp: 4; }
	.stage__lead { font-size: 1rem; }
	.stage__nav { bottom: 28px; }
	.stage__dot { width: 16px; } /* stays rendered: the active dot's animation times the slider */
	.row { grid-template-columns: 44px 1fr; gap: 12px; }
	.row__title { font-size: 1rem; }
	.row--rich { grid-template-columns: 54px minmax(0, 1fr); gap: 4px; }
	.row--rich::before { left: 49.5px; }
	.row--rich .row__time { font-size: .75rem; }
	.row--rich .row__time::after { left: 46px; }
	.row__card { gap: 12px; padding: 12px 0 12px 10px; margin: 0; }
	.row--rich + .row--rich .row__card::before { left: 10px; right: 0; }
	.row--rich:hover .row__card { background: none; box-shadow: none; }
	.row--rich .row__title { font-size: 1rem; }
	.row__lead { display: none; }
	.row__media { width: 88px; }
	.row__media .thumb { aspect-ratio: 1; }
	.qotd__bar { padding-inline: 18px; }
	.qotd__status { display: none; }
	.qotd__body { grid-template-columns: 20px minmax(0, 1fr); padding: 22px 18px 20px; }
	.qotd__foot { margin-inline: 18px; }
	.qotd__sys { display: none; }
	.weekly { padding: 48px 0; }
	.weekly__grid { grid-template-columns: 1fr; gap: 24px; }
	.affiliate { padding: 56px 0; }
	.cta-banner { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
	.page-top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 0; }
	.byline { flex-wrap: wrap; }
	.takeaways { padding: 20px; }
	.article__figure { margin-inline: calc(var(--gutter) * -1); }
	.article__img { border-radius: 0; box-shadow: none; }
	.site-footer { padding-top: 36px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
	.site-footer__main { grid-template-columns: 1fr auto; }
	.site-footer__nav { grid-column: 1 / -1; grid-row: 2; }
	.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
	.site-footer__bottom { flex-direction: column; }
	.site-footer__disclaimer { text-align: left; }
	.author-head { flex-direction: column; }
}

/* ---------- Home: Latest (infinite feed) ---------- */
.latest { padding-top: 72px; }
.feed { display: grid; gap: 44px; }
.feed-batch { row-gap: 44px; }
.feed-status { display: grid; place-items: center; min-height: 80px; padding: 24px 0 8px; }
.feed-sentinel { width: 100%; height: 1px; }
.feed-status.is-loading::before {
	content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--c-line); border-top-color: var(--c-accent);
	animation: fx24-spin 700ms linear infinite;
}
.feed-end { font: 500 .8125rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--c-meta); }

/* "Load more": centred pill between hairlines, progress under it */
.feed-more { display: grid; justify-items: center; gap: 12px; width: 100%; padding: 16px 0 8px; }
.feed-more__btn {
	position: relative; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 28px;
	border-radius: var(--r-pill); background: #fff; color: var(--c-primary);
	box-shadow: inset 0 0 0 1.5px var(--c-primary), 0 12px 28px -18px rgba(4, 48, 92, .55);
	font: 700 .9375rem/1 var(--f-head); letter-spacing: .02em;
	transition: background var(--t) var(--ease-std), color var(--t) var(--ease-std), box-shadow var(--t) var(--ease-std), transform var(--t-fast) var(--ease-out);
}
.feed-more__btn::before, .feed-more__btn::after {
	content: ""; position: absolute; top: 50%; width: min(22vw, 180px); height: 1px; pointer-events: none;
}
.feed-more__btn::before { right: calc(100% + 20px); background: linear-gradient(90deg, transparent, var(--c-line-strong)); }
.feed-more__btn::after { left: calc(100% + 20px); background: linear-gradient(90deg, var(--c-line-strong), transparent); }
.feed-more__icon {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--c-primary); color: #fff; transition: background var(--t), transform 400ms var(--ease-spring);
}
.feed-more__btn:hover { background: var(--c-primary); color: #fff; box-shadow: inset 0 0 0 1.5px var(--c-primary), 0 18px 36px -18px rgba(4, 48, 92, .7); }
.feed-more__btn:hover .feed-more__icon { background: var(--c-accent); transform: translateY(3px); }
.feed-more__btn.is-retry:hover .feed-more__icon { transform: rotate(-200deg); } /* "Try again": the arrow turns instead of dropping */
.feed-more__btn:active { transform: scale(.97); }
.feed-more__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.feed-more__btn.is-loading { cursor: progress; background: var(--c-surface-2); color: var(--c-text-2); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.feed-more__btn.is-loading .feed-more__icon { background: transparent; border: 2.5px solid var(--c-line); border-top-color: var(--c-accent); animation: fx24-spin 700ms linear infinite; }
.feed-more__btn.is-loading .feed-more__icon .icon { display: none; }
.feed-more__count { font: 400 .8125rem/1.3 var(--f-head); color: var(--c-meta); }
.feed-more__count b { color: var(--c-text); font-weight: 600; }
.feed-more__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.feed-more__bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transition: width 600ms var(--ease-out); }
.feed-status.is-loading:has(.feed-more)::before { display: none; }
@media (max-width: 640px) {
	.feed-more__btn { width: 100%; justify-content: space-between; }
	.feed-more__btn::before, .feed-more__btn::after { display: none; }
}

.mini-footer { padding-top: 18px; border-top: 1px solid var(--c-line); font: 400 .75rem/1.5 var(--f-head); color: var(--c-meta); }
.mini-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.mini-footer__links a:hover { color: var(--c-primary); }

@media (max-width: 1024px) {
	.nav__sheet-foot { display: block; padding: 8px 0 12px; }
	.nav__sheet-foot .mini-footer { border-top: 0; }
}

/* ---------- Affiliate Program (template-affiliate.php) ----------
   The whole page on the dark FX24 System background; three blurred glows drift slowly behind the content
   (transform only — composited, no repaint; off for reduced motion). Cards are glass on the dark, no rules. */
body.page-template-template-affiliate, body.page-template-template-providers { background: #050C18; }
/* overflow: clip (not hidden) keeps position: sticky working inside (the providers hub's contents) */
.aff { position: relative; isolation: isolate; overflow: clip; color: #fff; background: #050C18; }
.aff__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aff__glow i {
	position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55;
	will-change: transform; animation: aff-drift 26s ease-in-out infinite alternate;
}
.aff__glow i:nth-child(1) { top: -25vmax; left: -15vmax; background: radial-gradient(closest-side, rgba(30, 64, 175, .55), transparent); }
.aff__glow i:nth-child(2) { top: 30%; right: -25vmax; background: radial-gradient(closest-side, rgba(209, 18, 57, .28), transparent); animation-duration: 32s; animation-delay: -8s; }
.aff__glow i:nth-child(3) { bottom: -30vmax; left: 20%; background: radial-gradient(closest-side, rgba(14, 116, 144, .35), transparent); animation-duration: 38s; animation-delay: -16s; }
@keyframes aff-drift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
	100% { transform: translate3d(-6vmax, 10vmax, 0) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .aff__glow i { animation: none; } }

.aff__inner { padding-top: 48px; padding-bottom: 96px; }
.aff-card {
	position: relative; border-radius: var(--r-lg); background: #0A1628; /* opaque: logos blend with it (screen) */
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14), 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.aff-card__label { position: absolute; top: 22px; right: 26px; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #CBD5E1; }

.aff-hero { padding: 44px 48px 44px 64px; }
.aff-hero__title { margin-bottom: 28px; padding-right: 120px; font: 800 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1.1 var(--f-head); letter-spacing: -.02em; color: #fff; }
.aff-hero__why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-bottom: 28px; }
.aff-hero__k { display: inline-flex; align-items: center; gap: 18px; font: 600 1.25rem/1.4 var(--f-head); color: #fff; }
.aff-hero__arrow { display: inline-flex; color: #D11239; }
.aff-hero__text { display: grid; gap: 4px; font: 400 1.25rem/1.45 var(--f-head); color: #94A3B8; }
.aff-hero__text .is-strong { color: #E2E8F0; }
.aff-btn {
	display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--r-sm);
	background: #D11239; color: #fff; font: 600 .8125rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
	box-shadow: 0 14px 28px -16px rgba(209, 18, 57, .9); transition: filter var(--t-fast), transform var(--t-fast);
}
.aff-btn:hover { filter: brightness(1.1); color: #fff; }
.aff-btn:active { transform: scale(.98); }

.aff-section { margin-top: 56px; }
.aff-section__title { margin-bottom: 20px; font: 800 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--f-head); letter-spacing: -.01em; color: #fff; }
.aff-section__title--accent { color: #D11239; }

.aff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aff-stat { display: grid; gap: 6px; padding: 20px 24px 22px; }
.aff-stat__k { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #D11239; }
.aff-stat__label { margin-top: 6px; font: 400 .8125rem/1.4 var(--f-mono); letter-spacing: .04em; color: #94A3B8; }
.aff-stat__label::before { content: "> "; color: #64748B; }
.aff-stat__value { font: 500 clamp(1.5rem, 1.25rem + .8vw, 1.875rem)/1.1 var(--f-mono); letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }

/* 4 across; an incomplete last row is centred */
.aff-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.aff-partner {
	flex: 0 0 calc((100% - 60px) / 4); min-width: 0; min-height: 190px; display: grid; justify-items: center; align-content: center; gap: 10px;
	padding: 26px 20px 30px; text-align: center; color: #fff;
	transition: transform var(--t) var(--ease-out), box-shadow var(--t), background var(--t);
}
.aff-partner:hover { transform: translateY(-4px); background: #0E1E36; box-shadow: inset 0 0 0 1px rgba(209, 18, 57, .45), 0 30px 60px -36px rgba(0, 0, 0, .9); color: #fff; }
.aff-partner__icon { display: inline-flex; color: #fff; }
.aff-partner__name { max-width: 100%; font: 600 1.375rem/1.2 var(--f-head); letter-spacing: -.01em; }
.aff-partner__name.is-long { font-size: 1.0625rem; letter-spacing: .01em; white-space: nowrap; } /* same visual weight as the short names */
/* Logos: white silhouettes on transparent (made from the partners' files), sized to fit */
.aff-partner__logo { display: block; width: 168px; height: 64px; max-width: 100%; }
.aff-partner__logo img { width: 100%; height: 100%; object-fit: contain; opacity: .9; transition: opacity var(--t); } /* white-on-transparent files */
.aff-partner:hover .aff-partner__logo img { opacity: 1; }
.aff-partner__sub { padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .14); font: 400 .8125rem/1.4 var(--f-body); color: #94A3B8; }
.aff-partner__go { position: absolute; right: 16px; bottom: 14px; display: inline-flex; color: #D11239; opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t) var(--ease-out); }
.aff-partner:hover .aff-partner__go { opacity: 1; transform: none; }

.aff-offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px 40px 52px; }
.aff-offer__title { margin-bottom: 12px; font: 600 1.625rem/1.2 var(--f-head); color: #fff; }
.aff-offer__text { display: flex; gap: 12px; max-width: 520px; font-size: .9375rem; line-height: 1.5; color: #CBD5E1; }
.aff-offer__text .icon { flex: none; margin-top: 2px; color: #D11239; }
.aff-offer .aff-btn { flex: none; margin-top: 20px; }

@media (max-width: 1024px) {
	.aff-partner { flex-basis: calc((100% - 20px) / 2); }
	.aff-hero { padding: 36px 32px; }
	.aff-offer { flex-direction: column; align-items: flex-start; padding: 40px 32px 32px; }
	.aff-offer .aff-btn { margin-top: 0; }
}
@media (max-width: 640px) {
	.aff__inner { padding-top: 24px; padding-bottom: 64px; }
	.aff-hero { padding: 48px 20px 28px; }
	.aff-card__label { top: 18px; right: 20px; }
	.aff-hero__title { padding-right: 0; }
	.aff-hero__k, .aff-hero__text { font-size: 1.0625rem; }
	.aff-stats { grid-template-columns: 1fr; gap: 12px; }
	.aff-partners { gap: 12px; }
	.aff-partner { flex-basis: calc((100% - 12px) / 2); min-height: 150px; padding: 20px 12px 24px; }
	.aff-partner__name { font-size: 1.0625rem; }
	.aff-partner__name.is-long { font-size: .75rem; white-space: normal; }
	.aff-partner__logo { width: 128px; height: 52px; }
	.aff-offer { padding: 48px 20px 24px; }
	.aff-section { margin-top: 40px; }
}

/* ---------- For Brokers / Providers hub (template-providers.php) ----------
   Left: the mega menu's FX24 System panel, standing up — groups and sections, sticky like the legal contents
   (no inner scroll; a list taller than the screen scrolls with the page first). Right: the picked section's
   landing block, swapped in place by main.js. Phones: a sticky "Sections" picker over the block. */
.hub { padding-top: 32px; padding-bottom: 72px; }
.hub__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.hub__nav { position: sticky; z-index: 5; top: min(calc(var(--head-total) + 24px), calc(100vh - var(--hub-h, 0px) - 24px)); }
.hub__picker > summary { display: none; }
.hub__panel {
	--sys-red: var(--c-accent); --sys-line: rgba(148, 163, 184, .22);
	padding: 22px 22px 18px; border-radius: var(--r-lg); color: #fff;
	background: radial-gradient(60% 40% at 15% 100%, rgba(209, 18, 57, .10), transparent 70%), radial-gradient(70% 50% at 0% 0%, rgba(30, 64, 175, .18), transparent 70%), #050C18;
	box-shadow: inset 0 0 0 1px #13233A, 0 30px 60px -36px rgba(2, 26, 51, .7);
}
.hub__brand {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
	border: 1px solid rgba(148, 163, 184, .4); border-radius: var(--r-xs); background: rgba(15, 23, 42, .55);
	font: 500 1.0625rem/1 var(--f-body); letter-spacing: .02em;
}
.hub__brand::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sys-red); }
.hub__brand em { font: 400 1.0625rem/1 var(--f-mono); font-style: normal; color: var(--sys-red); }
.hub__group + .hub__group { margin-top: 18px; }
.hub__head { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 2px solid var(--sys-red); font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sys-red); }
.hub__group ul { list-style: none; }
.hub__link {
	position: relative; display: block; padding: 5px 8px 5px 1.6em; margin: 0 -8px; border-radius: var(--r-xs);
	font: 400 .75rem/1.45 var(--f-mono); color: #CBD5E1; transition: background var(--t-fast), color var(--t-fast);
}
.hub__link::before { content: ">"; position: absolute; left: 8px; color: #64748B; transition: color var(--t-fast); }
.hub__link:hover { color: #fff; background: rgba(148, 163, 184, .08); }
.hub__link:hover::before { color: var(--sys-red); }
.hub__link.is-current { color: #fff; background: rgba(209, 18, 57, .16); box-shadow: inset 2px 0 0 var(--sys-red); }
.hub__link.is-current::before { color: var(--sys-red); }
.hub__status { margin-top: 18px; font: 400 .625rem/1.4 var(--f-mono); letter-spacing: .06em; color: #94A3B8; }
.hub__status b { font-weight: 400; color: #fff; }

.hub__view { container-type: inline-size; min-width: 0; transition: opacity 180ms var(--ease-std); }
.hub__view.is-loading { opacity: .45; pointer-events: none; }
.hub__view .sol { margin: 0; border-radius: var(--r-lg); background: radial-gradient(70% 60% at 85% 0%, rgba(30, 64, 175, .16), transparent 70%), #0A1628; } /* the affiliate cards' surface on the shared dark page */
.hub__panel { background: #0A1628 !important; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14), 0 30px 60px -40px rgba(0, 0, 0, .8) !important; }
.aff--hub .hub { padding-top: 48px; padding-bottom: 96px; }
.hub__view.is-in .sol { animation: hub-in 420ms var(--ease-out) both; }
@keyframes hub-in { from { opacity: 0; transform: translateY(8px); } }
/* The block in a narrower column than its section page */
@container (max-width: 1000px) {
	.hub__view .sol { padding: 24px 32px 36px; }
	.hub__view .sol__cards { grid-template-columns: repeat(min(var(--sol-cols, 3), 2), minmax(0, 1fr)); }
	.hub__view .sol--split .sol__body { grid-template-columns: 1fr; gap: 40px; }
}
@container (max-width: 600px) {
	.hub__view .sol { padding: 20px 18px 28px; }
	.hub__view .sol__cards { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 1024px) {
	.hub { padding-top: 20px; }
	.hub__layout { grid-template-columns: 1fr; gap: 16px; }
	.hub__nav { top: calc(var(--head-total) + 8px); }
	.hub__picker > summary {
		display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: var(--r); cursor: pointer; list-style: none;
		background: #050C18; color: #fff; box-shadow: inset 0 0 0 1px #13233A, 0 14px 30px -18px rgba(2, 26, 51, .7);
	}
	.hub__picker > summary::-webkit-details-marker { display: none; }
	.hub__picker-k { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
	.hub__picker-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .9375rem/1.2 var(--f-head); }
	.hub__picker > summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border: solid #94A3B8; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t) var(--ease-out); }
	.hub__picker[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
	/* The open list hangs under the bar in the viewport (fixed, placed by main.js), never past the screen's
	   bottom or under the footer / tab bar; the page above the footer keeps it on top. */
	.aff--hub { z-index: 1; }
	.hub__panel {
		position: fixed; z-index: 94; left: var(--gutter); right: var(--gutter); top: var(--hub-pt, 140px);
		max-height: calc(100dvh - var(--hub-pt, 140px) - var(--tabbar-h) - env(safe-area-inset-bottom) - 12px);
		overflow-y: auto; overscroll-behavior: contain;
	}
	.hub__brand, .hub__status { display: none; }
	.hub__link { padding-block: 8px; font-size: .8125rem; }
}

/* Affiliate: TSG Continuity Insurance popup (template-parts/affiliate-insurance.php, native <dialog>) */
.aff-modal { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: transparent; color: #fff; overflow: visible; }
.aff-modal::backdrop { background: rgba(2, 8, 18, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.aff-modal[open] { animation: aff-modal-in 320ms var(--ease-out); }
@keyframes aff-modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.aff-modal__card {
	position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 40px 44px 36px; border-radius: var(--r-lg);
	background: linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px) 0 0 / 100% 64px, linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px) 0 0 / 64px 100%, #001428;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16), 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.aff-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: none; color: #94A3B8; cursor: pointer; }
.aff-modal__close:hover { background: rgba(148, 163, 184, .12); color: #fff; }
.ins__mono { font-family: var(--f-mono); }
.ins__red { color: #D11239; }
.ins__dim { color: #94A3B8; }
.ins__head { padding: 0 32px 0 4px; margin-bottom: 28px; } /* clear of the × */
.ins__title { display: flex; align-items: center; gap: 12px; font: 600 1.625rem/1.2 var(--f-body); color: #fff; }
.ins__title svg { flex: none; color: #D11239; }
.ins__sub { margin: 10px 0 0 34px; font-size: 1.0625rem; line-height: 1.45; color: #E2E8F0; }
.ins__box { margin: 0 0 28px; padding: 18px 22px; border-radius: var(--r-sm); background: rgba(30, 50, 80, .55); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16); font-size: .875rem; line-height: 1.55; color: #E2E8F0; }
.ins__code { margin-top: 12px; font-size: 1rem; line-height: 1.6; }
.ins__k { margin: 0 0 14px 24px; font-size: .9375rem; color: #fff; }
.ins__k .ins__mono, .ins__k .ins__red { font-family: var(--f-mono); font-size: 1rem; letter-spacing: .02em; }
.ins__list { display: grid; gap: 16px; margin: 0 0 32px 24px; list-style: none; }
.ins__list li { position: relative; display: grid; gap: 2px; padding-left: 28px; }
.ins__list li::before { content: ">"; position: absolute; left: 0; top: 0; font-family: var(--f-mono); color: #fff; }
.ins__list b { font-size: 1rem; color: #fff; }
.ins__list span { font-size: .875rem; line-height: 1.45; color: #94A3B8; }
.ins__dim2 { color: #CBD5E1; }
.ins__big { margin-top: 16px; font-size: 1.0625rem; line-height: 1.5; }
.ins__foot { margin: 36px 0 24px; text-align: center; font-size: 1rem; line-height: 1.6; color: #E2E8F0; }
.ins__foot b { color: #fff; }
.ins__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ins__pdf { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; text-decoration: underline; text-underline-offset: 4px; }
.ins__pdf:hover { color: #fff; }
@media (max-width: 640px) {
	.aff-modal { width: 100%; max-height: 100dvh; margin: auto 0 0; inset: auto 0 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
	.aff-modal__card { max-height: 92dvh; padding: 32px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
	.ins__title { font-size: 1.3125rem; }
	.ins__sub, .ins__k, .ins__list { margin-left: 0; }
	.ins__code { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .aff-modal[open] { animation: none; } }

/* Section chips (inc/sections.php): categories, and under the picked one its sub-categories (smaller,
   joined by a hairline). Phones / tablets: each row scrolls sideways, no wrapping. */
.chips-nav { display: grid; gap: 10px; }
.chips--l2 { position: relative; gap: 6px; padding-left: 18px; }
.chips--l2::before { content: ""; position: absolute; left: 6px; top: -4px; bottom: 50%; width: 8px; border: solid var(--c-line-strong); border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 6px; }
.chips--l2 .chip { height: 34px; padding: 0 14px; font-size: .8125rem; background: transparent; box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.chips--l2 .chip:hover { box-shadow: inset 0 0 0 1px var(--c-primary); }
.chips--l2 .chip.is-active { background: var(--c-accent); box-shadow: none; color: #fff; }
.chips--l2 { animation: chips-in 260ms var(--ease-out); }
@keyframes chips-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 767px) {
	.chips-nav .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.chips-nav .chips::-webkit-scrollbar { display: none; }
	.chips-nav .chip { flex: none; scroll-snap-align: start; }
	.chips--l2::before { display: none; }
	/* Sub-categories: always two rows, no scrolling — equal columns (--cols = half the count, from PHP),
	   long names wrap inside their chip. */
	.chips-nav .chips--l2 { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 6px; overflow: visible; margin-inline: 0; padding: 0; }
	.chips-nav .chips--l2 .chip { height: auto; min-height: 34px; justify-content: center; padding: 6px 8px; font-size: .75rem; line-height: 1.15; text-align: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .chips--l2 { animation: none; } }

