/**
 * Sovereign Kinetic — main.css
 *
 * The Sovereign Terminal newsroom, rebuilt in motion. Warm paper, deep navy
 * ink and one accent, soft radii, glass navigation and headlines set large
 * and tight. Navy panels and one accent block break the light so the page
 * keeps a rhythm instead of one long sheet.
 *
 * Colour is driven by four Customizer values (Appearance → Customize → Brand
 * Colors) printed on :root: --navy, --accent, --bg, --surface. Everything
 * else — text tints, hairlines, hover washes, the dark zones — is derived
 * from those with color-mix(), so changing the logo's colours recolours the
 * whole site from one place.
 *
 * Contents
 *   1.  Tokens
 *   2.  Reset & base
 *   3.  Layout shell
 *   4.  Header & navigation
 *   5.  Reveal system
 *   6.  Bands & section heads
 *   7.  Eyebrow, buttons, cards
 *   8.  Hero, market bar, marquee
 *   9.  Section layouts
 *   10. Single post
 *   11. Archive & pagination
 *   12. Sidebar
 *   13. Newsletter & forms
 *   14. Footer
 *   15. Widgets
 *   16. Utilities & responsive
 */

/* ═══ 1. Tokens ═══════════════════════════════════════════════════════════ */

:root {
	/* The four brand inputs. Defaults are read off the Money & Welfare logo
	   (navy lettering and shield, gold laurel); the Customizer overrides them
	   through an inline :root rule printed after this file. */
	--navy: #14284d;
	--accent: #c9a047;
	--bg: #f7f4ee;
	--surface: #ffffff;
	--accent-ink: #14284d;

	/* Derived — not meant to be edited. */
	--dk: color-mix(in srgb, var(--navy) 90%, #000);
	--text: color-mix(in srgb, var(--navy) 82%, #000);
	--text-2: color-mix(in srgb, var(--text) 74%, var(--bg));
	--text-3: color-mix(in srgb, var(--text) 52%, var(--bg));
	--line: color-mix(in srgb, var(--text) 13%, transparent);
	--line-strong: color-mix(in srgb, var(--text) 28%, transparent);
	--surface-2: color-mix(in srgb, var(--text) 5%, var(--bg));
	--tint: color-mix(in srgb, var(--text) 5%, transparent);
	--tint-2: color-mix(in srgb, var(--text) 9%, transparent);
	--accent-text: color-mix(in srgb, var(--accent) 58%, #000);
	--inv-bg: var(--text);
	--inv-fg: var(--bg);

	/* Market direction. Deep enough to read on paper; the dark zones lift them. */
	--pos: #0b8a52;
	--neg: #d23b2d;

	/* Legacy names. market-history.js reads the chart palette from these, and
	   the opt-in stylesheet still speaks them. */
	--red: var(--accent);
	--ink: var(--text);
	--ink-2: var(--text-2);
	--ink-3: var(--text-3);
	--fog: var(--line);
	--green: var(--pos);
	--paper: var(--bg);
	--paper-2: var(--surface-2);

	--font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	--r-s: 12px;
	--r-m: 22px;
	--r-l: 36px;
	--ease: cubic-bezier(.2, .7, .1, 1);

	--page-w: 1440px;
	--gutter: clamp(1rem, 3vw, 2.5rem);
	--edge: clamp(8px, 1.2vw, 18px);
	--logo-h: 40px;
	--band-y: clamp(3.5rem, 7vw, 6.5rem);
	--card-gap: clamp(1.25rem, 2vw, 2rem);
	--header-h: 64px;
}

/* The dark zones. One group re-points the same tokens to their light-on-navy
   values, so cards, rails, buttons and figures inside any of them read
   correctly without a second set of rules. */
.band--recess,
.hero .lead,
.century,
.site-footer,
.newsletter-band__form {
	--text: #f5f2ea;
	--text-2: color-mix(in srgb, #f5f2ea 76%, transparent);
	--text-3: color-mix(in srgb, #f5f2ea 52%, transparent);
	--line: color-mix(in srgb, #fff 14%, transparent);
	--line-strong: color-mix(in srgb, #fff 28%, transparent);
	--surface: color-mix(in srgb, var(--dk) 82%, #fff);
	--surface-2: color-mix(in srgb, var(--dk) 80%, #fff);
	--tint: color-mix(in srgb, #fff 6%, transparent);
	--tint-2: color-mix(in srgb, #fff 11%, transparent);
	--accent-text: color-mix(in srgb, var(--accent) 78%, #fff);
	--inv-bg: #fff;
	--inv-fg: var(--navy);
	--pos: #3ee89a;
	--neg: #ff7466;
	color: var(--text);
}

/* ═══ 2. Reset & base ═════════════════════════════════════════════════════ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

/* Lenis owns scrolling when it runs; these are the rules it ships with. */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* A faint lime bloom and film grain behind everything. Fixed, so it stays
   put as the page moves over it. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60rem 38rem at 88% -8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
		radial-gradient(50rem 34rem at -10% 40%, color-mix(in srgb, var(--navy) 6%, transparent), transparent 60%);
}

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

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-stretch: 90%;
	line-height: 1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

time,
.figure,
.card__date,
.market-fig__value,
.cat-row__count { font-variant-numeric: tabular-nums; }

::selection {
	background: var(--accent);
	color: var(--accent-ink);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 300;
	background: var(--accent);
	color: var(--accent-ink);
	padding: .8rem 1.2rem;
	font-weight: 700;
	border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus { left: 0; }

/* Reading / page progress */
.progress {
	position: fixed;
	inset: 0 0 auto;
	height: 3px;
	z-index: 200;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
}

/* ═══ 3. Layout shell ═════════════════════════════════════════════════════ */

.container {
	width: 100%;
	max-width: var(--page-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The header floats, so the page starts beneath it. */
.site-main {
	display: block;
	padding-top: calc(var(--header-h) + 28px);
}

/* ═══ 4. Header & navigation ══════════════════════════════════════════════ */

.site-header {
	position: fixed;
	inset: 14px 0 auto;
	z-index: 100;
	display: flex;
	justify-content: center;
	padding-inline: var(--gutter);
	pointer-events: none;
	transition: transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-140%); }

/* The WordPress toolbar is 32px (46px on narrow screens); the floating header
   sits beneath it for signed-in users. */
.admin-bar .site-header { top: 46px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 60px; } }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .progress { top: 46px; } }

.masthead {
	pointer-events: auto;
	width: 100%;
	max-width: var(--page-w);
	min-height: var(--header-h);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: .5rem .55rem .5rem 1.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 94%, transparent);
	border: 1px solid var(--line);
	box-shadow: 0 14px 44px color-mix(in srgb, var(--navy) 16%, transparent);
	transition: background .4s ease, box-shadow .4s ease;
}
@supports (backdrop-filter: blur(1px)) {
	.masthead {
		background: color-mix(in srgb, var(--surface) 68%, transparent);
		-webkit-backdrop-filter: blur(22px) saturate(1.6);
		backdrop-filter: blur(22px) saturate(1.6);
	}
	.site-header.is-scrolled .masthead { background: color-mix(in srgb, var(--surface) 84%, transparent); }
}

.masthead__brand { justify-self: start; }
.masthead__nav { justify-self: center; }
.masthead__action { justify-self: end; }

.site-header .custom-logo-link { display: block; }

.custom-logo {
	max-height: var(--logo-h);
	width: auto;
	object-fit: contain;
}

.site-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 85%;
	font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--text);
	display: inline-flex;
	align-items: center;
	gap: .3em;
}

.site-logo::after {
	content: "";
	width: .3em;
	height: .3em;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 .9em var(--accent);
}

/* The one action. */
.header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .8rem 1.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .88rem;
	cursor: pointer;
	transition: background .3s ease, transform .5s var(--ease), box-shadow .3s ease;
	will-change: transform;
}
.header-cta:hover,
.header-cta:focus-visible {
	background: var(--inv-bg);
	color: var(--inv-fg);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 24%, transparent);
}
.header-cta svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	transition: transform .4s var(--ease);
}
.header-cta:hover svg { transform: rotate(45deg); }
.header-cta--block { width: 100%; padding-block: 1rem; }

/* The burger: two bars that cross into an X. */
.menu-toggle {
	display: none;
	position: relative;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: transparent;
	cursor: pointer;
}
.menu-toggle span {
	position: absolute;
	left: 14px;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: .15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list > li { flex: none; position: relative; }

.nav-list a {
	position: relative;
	display: block;
	padding: .55rem clamp(.6rem, 1.2vw, 1rem);
	border-radius: 999px;
	font-weight: 500;
	font-size: .9rem;
	color: var(--text-2);
	white-space: nowrap;
	transition: color .25s ease, background .25s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible {
	color: var(--text);
	background: var(--tint-2);
}
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-menu-ancestor > a {
	color: var(--accent-text);
	background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 60;
	min-width: 220px;
	margin: 0;
	padding: .4rem;
	list-style: none;
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 18px 50px color-mix(in srgb, var(--navy) 22%, transparent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .4s var(--ease), visibility .3s;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.nav-list .sub-menu a { border-radius: var(--r-s); padding: .6rem .9rem; }

/* ── The drawer ───────────────────────────────────────────────────────── */

.nav-drawer {
	position: fixed;
	inset: 12px 12px 12px auto;
	z-index: 120;
	width: min(calc(100vw - 24px), 440px);
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border-radius: var(--r-l);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow-y: auto;
	transform: translateX(calc(100% + 24px));
	transition: transform .7s var(--ease);
}
.nav-drawer.is-open { transform: none; }

.nav-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1.2rem;
	margin-bottom: .6rem;
}

.nav-drawer__title {
	font: 500 .72rem var(--font-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.nav-close {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: transparent;
	cursor: pointer;
	transition: background .25s ease, transform .5s var(--ease);
}
.nav-close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.nav-close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
}

.nav-drawer .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav-drawer .nav-list > li { border-top: 1px solid var(--line); }
.nav-drawer .nav-list a {
	padding: .9rem 0;
	border-radius: 0;
	background: none;
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 600;
	font-stretch: 90%;
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.2rem);
	letter-spacing: -0.03em;
	white-space: normal;
}
.nav-drawer .nav-list a:hover { color: var(--accent-text); padding-left: .5rem; background: none; }
.nav-drawer .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	min-width: 0;
	padding: 0 0 .8rem 1rem;
	border: 0;
	border-left: 2px solid var(--accent);
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.nav-drawer .sub-menu a { font-family: var(--font-body); font-size: 1rem; font-stretch: 100%; padding: .4rem 0; color: var(--text-2); }

.nav-drawer__foot { margin-top: auto; padding-top: 2rem; }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 110;
	background: color-mix(in srgb, var(--navy) 55%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s ease;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ═══ 5. Reveal system ════════════════════════════════════════════════════ */
/* Elements below start lowered and transparent only while scripting is on;
   main.js lifts them as they scroll into view. Without JS — or if it stalls —
   nothing is ever hidden (see the .reveal-fallback timer in header.php). */

.js :is(
	.band__head, .card, .rowcard, .feature, .section-split__lead, .section-split__side,
	.market-fig, .panel, .political-control-widget, .newsletter-band, .century,
	.century-fact, .entry-header, .entry-media, .page-header, .related__title,
	.post-nav__item, .market-stat, .market-event, .share-row, .footer-col,
	.market-history__chart, .marquee
) {
	opacity: 0;
	transform: translateY(36px);
}

.js :is(
	.band__head, .card, .rowcard, .feature, .section-split__lead, .section-split__side,
	.market-fig, .panel, .political-control-widget, .newsletter-band, .century,
	.century-fact, .entry-header, .entry-media, .page-header, .related__title,
	.post-nav__item, .market-stat, .market-event, .share-row, .footer-col,
	.market-history__chart, .marquee
).is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity .9s var(--ease) calc(var(--d, 0) * 80ms),
		transform 1.1s var(--ease) calc(var(--d, 0) * 80ms);
}

.reveal-fallback :is(
	.band__head, .card, .rowcard, .feature, .section-split__lead, .section-split__side,
	.market-fig, .panel, .political-control-widget, .newsletter-band, .century,
	.century-fact, .entry-header, .entry-media, .page-header, .related__title,
	.post-nav__item, .market-stat, .market-event, .share-row, .footer-col,
	.market-history__chart, .marquee
),
.reveal-fallback .hero .lead__title { opacity: 1 !important; transform: none !important; }
.reveal-fallback .hero .lead__title .wi,
.hero-static .hero .wi { transform: none !important; }

/* ═══ 6. Bands & section heads ════════════════════════════════════════════ */

.band { padding-block: var(--band-y); }
.band--tight { padding-block: 1.5rem var(--band-y); }

/* The light panel: inset from the viewport edge, generously rounded. */
.band--recess {
	margin: 1rem var(--edge);
	padding-block: clamp(3rem, 6vw, 5.5rem);
	background: var(--dk);
	color: var(--text);
	border-radius: var(--r-l);
}

.band__inner {
	width: 100%;
	max-width: var(--page-w);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.band__head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding-bottom: 1.4rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
	border-bottom: 1px solid var(--line);
}

.band__mark {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 1.1rem color-mix(in srgb, var(--accent) 55%, transparent);
	flex: none;
}

.band__title {
	font-size: clamp(2rem, 1rem + 3.4vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
}
.band__title a { transition: color .3s ease; }
.band__title a:hover { color: var(--accent-text); }

.band__more {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .65rem 1.1rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.band__more:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
.band__more svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	transition: transform .4s var(--ease);
}
.band__more:hover svg { transform: rotate(45deg); }

/* Archive / page header */
.page-header {
	padding-bottom: 1.6rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--line);
}
.page-header__mark {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 1.1rem color-mix(in srgb, var(--accent) 55%, transparent);
	margin-bottom: 1.4rem;
}
.page-title {
	font-size: clamp(2.6rem, 1.2rem + 5vw, 6rem);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -0.045em;
}
.lead--medium .page-title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.2rem); line-height: 1; }
.lead--long .page-title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1.03; letter-spacing: -0.035em; }

.archive-description {
	margin-top: 1.1rem;
	max-width: 62ch;
	color: var(--text-2);
	font-size: 1.05rem;
}

/* ═══ 7. Eyebrow, buttons, cards ══════════════════════════════════════════ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	align-self: flex-start;
	padding: .38rem .75rem;
	border-radius: 999px;
	background: var(--tint);
	border: 1px solid var(--line);
	font: 500 .68rem/1 var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-text);
	transition: background .3s ease, color .3s ease;
}
.eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}
.eyebrow:hover { background: var(--accent); color: var(--accent-ink); }

.grid { display: grid; gap: var(--card-gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
	display: flex;
	flex-direction: column;
	position: relative;
}

.card__media {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 1.1rem;
	border-radius: var(--r-m);
	background: var(--surface-2);
}
.card__media--4x3 { aspect-ratio: 4 / 3; }
.card__media--16x9 { aspect-ratio: 16 / 9; }
.card__media--1x1 { aspect-ratio: 1 / 1; }

.card__img,
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.85) contrast(1.05);
	transform: scale(1.001);
	transition: filter .8s ease, transform 1.2s var(--ease);
}
.card:hover .card__img,
.card:hover .card__media img {
	filter: grayscale(0) contrast(1);
	transform: scale(1.07);
}

/* The arrow that blooms on the photograph when you reach for a card. */
.card__media::after {
	content: "↗";
	position: absolute;
	right: .9rem;
	bottom: .9rem;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font: 700 1.1rem/1 var(--font-body);
	opacity: 0;
	transform: scale(.4) rotate(-45deg);
	transition: opacity .35s ease, transform .6s var(--ease);
}
.card:hover .card__media::after { opacity: 1; transform: none; }

.card__body {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	flex: 1;
}

.card__title {
	font-size: clamp(1.15rem, 1rem + .35vw, 1.4rem);
	font-weight: 600;
	font-stretch: 95%;
	line-height: 1.12;
	letter-spacing: -0.025em;
}
.card__title a {
	background-image: linear-gradient(var(--accent), var(--accent));
	background-size: 0 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .5s var(--ease);
}
.card__title a:hover { background-size: 100% 2px; }

.card__excerpt {
	font-size: .94rem;
	color: var(--text-2);
	line-height: 1.55;
	margin: 0;
}

/* Every standfirst stops at three lines, so cards in a row line up whatever
   the excerpt's word count. */
.card__excerpt,
.lead__excerpt,
.feature__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.card__date,
.rowcard__date {
	margin-top: auto;
	padding-top: .25rem;
	font: 400 .72rem/1 var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
}

/* The cursor spotlight. main.js writes --mx / --my on pointer move. */
.market-fig,
.rowcard,
.panel,
.post-nav__item,
.market-stat {
	position: relative;
	overflow: hidden;
}
.market-fig::before,
.rowcard::before,
.panel:not(.panel--dark)::before,
.post-nav__item::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity .5s ease;
}
.rowcard > *,
.panel > *,
.post-nav__item > * { position: relative; }
.market-fig:hover::before,
.rowcard:hover::before,
.panel:hover::before,
.post-nav__item:hover::before { opacity: 1; }

/* ── The numbered row-card ────────────────────────────────────────────── */

.rowcard {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.1rem;
	align-items: start;
	padding: 1.4rem;
	border-radius: var(--r-m);
	background: var(--tint);
	border: 1px solid var(--line);
	transition: transform .6s var(--ease), border-color .3s ease;
}
.rowcard:hover { border-color: var(--line-strong); }

.rowcard__rank {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 80%;
	font-size: 2.6rem;
	line-height: .85;
	letter-spacing: -0.06em;
	color: var(--accent-text);
}
.rowcard__body { position: relative; }
.rowcard__title {
	font-size: 1.08rem;
	font-weight: 600;
	font-stretch: 95%;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-bottom: .6rem;
}
.rowcard__title a:hover { color: var(--accent-text); }

/* ═══ 8. Hero, market bar, marquee ════════════════════════════════════════ */

.hero {
	width: calc(100% - 2 * var(--edge));
	max-width: calc(var(--page-w) + 2 * var(--gutter));
	margin-inline: auto;
}

.hero .lead {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(32rem, 84vh, 54rem);
	border-radius: var(--r-l);
	overflow: hidden;
	isolation: isolate;
	background: var(--surface);
}

.hero .lead__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	overflow: hidden;
}
.hero .lead__media img {
	position: absolute;
	left: 0;
	top: -9%;
	width: 100%;
	height: 118%;
	object-fit: cover;
	filter: grayscale(.35) contrast(1.05) brightness(.9);
	transition: filter 1s ease, transform 1.6s var(--ease);
	will-change: transform;
}
.hero .lead:hover .lead__media img { filter: none; transform: scale(1.025); }

.hero .lead::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, color-mix(in srgb, var(--dk) 94%, transparent) 0%, color-mix(in srgb, var(--dk) 60%, transparent) 38%, color-mix(in srgb, var(--dk) 4%, transparent) 72%),
		linear-gradient(to right, color-mix(in srgb, var(--dk) 45%, transparent), transparent 55%);
}

.hero .lead__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.3rem;
	padding: clamp(1.4rem, 4vw, 3.75rem);
}

.lead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem;
	font: 400 .72rem var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-2);
}
.hero .lead__meta .eyebrow {
	background: color-mix(in srgb, var(--dk) 45%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* The headline is the artwork. Sized from its own length — the template tags
   the lead short / medium / long — so a twelve-word title never swallows the
   screen. main.js splits it into words and rises them in. */
.lead__title {
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}
.lead__title a:hover { color: var(--accent-text); }

.hero .lead__title {
	max-width: 21ch;
	font-size: clamp(2.5rem, 1rem + 6vw, 7rem);
	line-height: .92;
	letter-spacing: -0.05em;
	font-stretch: 85%;
	font-weight: 750;
}
.hero .lead--medium .lead__title { max-width: 26ch; font-size: clamp(2.1rem, 1rem + 4vw, 5rem); line-height: .96; }
.hero .lead--long .lead__title { max-width: 32ch; font-size: clamp(1.9rem, 1rem + 2.9vw, 3.7rem); line-height: 1; letter-spacing: -0.04em; }

.js .hero .lead__title { opacity: 0; }
.js .hero .lead__title.is-split { opacity: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.js .hero .wi { transform: translateY(112%); }

.lead__excerpt {
	max-width: 46ch;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--text-2);
	margin: 0;
}

.hero .lead__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	width: 100%;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line-strong);
}
.hero .lead__excerpt { color: var(--text-2); }

.lead__cta {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.6rem;
	border-radius: 999px;
	background: var(--inv-bg);
	color: var(--inv-fg);
	font-weight: 700;
	font-size: .9rem;
	transition: background .3s ease, color .3s ease, transform .5s var(--ease);
	will-change: transform;
}
.lead__cta:hover { background: var(--accent); color: var(--accent-ink); }
.lead__cta svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	transition: transform .4s var(--ease);
}
.lead__cta:hover svg { transform: translateX(4px); }

/* The split layout's lead (no hero treatment): photograph above headline. */
.lead__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--r-m);
	background: var(--surface-2);
}
.lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.85) contrast(1.05);
	transition: filter .8s ease, transform 1.2s var(--ease);
}
.lead__media:hover img { filter: none; transform: scale(1.04); }
.lead__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* ── The market bar ───────────────────────────────────────────────────── */

.market-bar { padding-inline: var(--edge); margin-top: calc(var(--edge) + 6px); }

.market-bar__inner {
	max-width: calc(var(--page-w) + 2 * var(--gutter));
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--edge);
}

.market-fig {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-height: 11rem;
	justify-content: space-between;
	padding: clamp(1.25rem, 2vw, 1.9rem);
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color .3s ease;
}
.market-fig:hover { border-color: var(--line-strong); }

.market-fig__value {
	position: relative;
	font-family: var(--font-display);
	font-weight: 750;
	font-stretch: 85%;
	font-size: clamp(2.4rem, 1.2rem + 3vw, 4.4rem);
	line-height: .9;
	letter-spacing: -0.05em;
	color: var(--text);
}
.market-fig__value--pos { color: var(--pos); }
.market-fig__value--neg { color: var(--neg); }

.market-fig__label {
	position: relative;
	font: 400 .72rem/1.45 var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
}

/* ── The desk marquee ─────────────────────────────────────────────────── */

.marquee {
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 5rem) 0;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; flex: none; }

.marquee__item {
	font-family: var(--font-display);
	font-weight: 750;
	font-stretch: 80%;
	font-size: clamp(3rem, 1rem + 8vw, 9rem);
	line-height: 1;
	letter-spacing: -0.05em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--line-strong);
	transition: color .4s ease, -webkit-text-stroke-color .4s ease;
}
.marquee__item:nth-child(4n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__item:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.marquee__dot {
	width: clamp(.8rem, 1.4vw, 1.4rem);
	height: clamp(.8rem, 1.4vw, 1.4rem);
	margin-inline: clamp(1.5rem, 3.5vw, 3.5rem);
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ 9. Section layouts ══════════════════════════════════════════════════ */

/* ── feature (on the paper panel) ─────────────────────────────────────── */

.feature {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: center;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.feature__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--r-l);
	background: var(--paper-2);
}
.feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(.85) contrast(1.04);
	transition: filter .8s ease, transform 1.4s var(--ease);
}
.feature__media:hover img { filter: none; transform: scale(1.05); }

.feature__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.2rem;
}

.feature__title {
	font-size: clamp(2rem, 1rem + 3vw, 4rem);
	font-weight: 700;
	line-height: .96;
	letter-spacing: -0.045em;
}
.feature__title a:hover { color: var(--accent-text); }

.feature__excerpt {
	max-width: 50ch;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--text-2);
	margin: 0;
}

.railrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--card-gap);
}

/* ── split ────────────────────────────────────────────────────────────── */

.section-split {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.section-split__lead .lead__media { aspect-ratio: 16 / 10; margin-bottom: 1.5rem; }
.section-split__lead .lead__body { gap: .9rem; }
.section-split__lead .lead__title {
	font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
	line-height: .98;
	letter-spacing: -0.045em;
}
.section-split__lead.lead--medium .lead__title { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.7rem); line-height: 1; }
.section-split__lead.lead--long .lead__title { font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.035em; }

/* The side stack sits on its own tile — a small bento cell. */
.section-split__side {
	display: grid;
	gap: 1.6rem;
	align-content: start;
	padding: clamp(1.1rem, 2vw, 1.6rem);
	border-radius: var(--r-l);
	background: var(--surface);
	border: 1px solid var(--line);
}
.section-split__side .card__title { font-size: 1.12rem; }

/* ═══ 10. Single post ═════════════════════════════════════════════════════ */

.content-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
}

.entry-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.3rem;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--line);
}

.entry-title {
	font-size: clamp(2.3rem, 1rem + 4.2vw, 5.2rem);
	font-weight: 750;
	font-stretch: 88%;
	line-height: .94;
	letter-spacing: -0.05em;
}
.lead--medium .entry-title { font-size: clamp(2rem, 1rem + 3vw, 3.9rem); line-height: .98; }
.lead--long .entry-title { font-size: clamp(1.8rem, 1rem + 2.1vw, 3rem); line-height: 1.02; letter-spacing: -0.04em; }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	font: 400 .74rem var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
}

.entry-media { margin: 0 0 2.5rem; }
.entry-media img { width: 100%; border-radius: var(--r-l); }

.entry-content {
	font-size: clamp(1.04rem, 1rem + .15vw, 1.14rem);
	line-height: 1.78;
	color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.entry-content > * + * { margin-top: 1.4rem; }

.entry-content h2 {
	font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
	letter-spacing: -0.04em;
	color: var(--text);
	margin-top: 3rem;
}
.entry-content h3 {
	font-size: 1.45rem;
	color: var(--text);
	margin-top: 2.25rem;
}

.entry-content a {
	color: var(--text);
	box-shadow: inset 0 -2px 0 var(--accent);
	transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.entry-content a:hover {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: none;
}

.entry-content blockquote {
	margin: 2.5rem 0;
	padding: .2rem 0 .2rem 1.75rem;
	border-left: 4px solid var(--accent);
	font-family: var(--font-display);
	font-weight: 600;
	font-stretch: 92%;
	font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	line-height: 1.18;
	letter-spacing: -0.03em;
	color: var(--text);
}
.entry-content blockquote p { margin-bottom: .6rem; }
.entry-content blockquote cite {
	display: block;
	font: 400 .74rem var(--font-mono);
	font-style: normal;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
}

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content li + li { margin-top: .5rem; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.5rem; }
.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .72em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.entry-content img { margin-block: 1.5rem; border-radius: var(--r-m); }

.entry-content code {
	background: var(--surface-2);
	padding: .15em .45em;
	border-radius: 6px;
	font: .88em var(--font-mono);
}

.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .94rem;
	border: 1px solid var(--line);
	border-radius: var(--r-s);
	overflow: hidden;
}
.entry-content th,
.entry-content td {
	padding: .8rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content th {
	background: var(--surface-2);
	font: 500 .72rem var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}

/* ── Share ────────────────────────────────────────────────────────────── */

.share-row {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-top: 2.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.share-row__label {
	margin-right: .6rem;
	font: 500 .72rem var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
}
.share-row__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	transition: background .3s ease, color .3s ease, border-color .3s ease, transform .5s var(--ease);
}
.share-row__link svg { width: 17px; height: 17px; fill: currentColor; }
.share-row__link:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	transform: translateY(-4px);
}

/* ── Previous / next ──────────────────────────────────────────────────── */

.post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--card-gap);
	margin-top: 2.75rem;
}
.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: .7rem;
	padding: 1.6rem;
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
	min-height: 100%;
	transition: border-color .3s ease;
}
.post-nav__item:hover { border-color: var(--line-strong); }
.post-nav__item--next { text-align: right; }
.post-nav__label {
	position: relative;
	font: 500 .68rem var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.post-nav__title {
	position: relative;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.025em;
}
.post-nav__item:hover .post-nav__title { color: var(--accent-text); }

.related { margin-top: 4rem; }
.related__title {
	font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
	letter-spacing: -0.04em;
	padding-bottom: 1.1rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--line);
}

/* ═══ 11. Archive & pagination ════════════════════════════════════════════ */

.archive-list { min-width: 0; }

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-top: 3.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
}
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding-inline: .9rem;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	font: 500 .85rem var(--font-mono);
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.pagination .page-numbers:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination .page-numbers.dots { border-color: transparent; }
.pagination .screen-reader-text { display: none; }

.no-results { padding: 4rem 0; font-size: 1.1rem; color: var(--text-2); }

/* ═══ 12. Sidebar ═════════════════════════════════════════════════════════ */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

.panel {
	padding: 1.6rem;
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
}

/* The newsletter panel is the accent one: the only thing in the rail that asks
   for an action, and the only thing that glows. */
.panel--dark {
	--text: var(--accent-ink);
	--text-2: color-mix(in srgb, var(--accent-ink) 78%, var(--accent));
	--text-3: color-mix(in srgb, var(--accent-ink) 58%, var(--accent));
	--line: color-mix(in srgb, var(--accent-ink) 22%, transparent);
	--line-strong: color-mix(in srgb, var(--accent-ink) 42%, transparent);
	--tint: color-mix(in srgb, var(--accent-ink) 8%, transparent);
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text);
}

.panel__heading {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	padding-bottom: 1rem;
	margin-bottom: 1.1rem;
	border-bottom: 1px solid var(--line);
}
.panel__text {
	position: relative;
	font-size: .94rem;
	line-height: 1.55;
	color: var(--text-2);
	margin-bottom: 1.2rem;
}

/* ── The category table ───────────────────────────────────────────────── */

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-row + .cat-row { border-top: 1px solid var(--line); }
.cat-row__link {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: .85rem 0;
	transition: padding-left .4s var(--ease), color .25s ease;
}
.cat-row__link:hover { color: var(--accent-text); padding-left: .6rem; }
.cat-row__name { font-weight: 600; font-size: .96rem; }
.cat-row__count { font: 400 .78rem var(--font-mono); color: var(--text-3); }
.cat-row__link:hover .cat-row__count { color: var(--accent-text); }

/* ═══ 13. Newsletter & forms ══════════════════════════════════════════════ */

/* The accent block: the page's loudest moment, and its single call to action. */
.newsletter-band {
	--text: var(--accent-ink);
	--text-2: color-mix(in srgb, var(--accent-ink) 78%, var(--accent));
	--text-3: color-mix(in srgb, var(--accent-ink) 58%, var(--accent));
	--line: color-mix(in srgb, var(--accent-ink) 22%, transparent);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 4vw, 4.5rem);
	padding: clamp(1.5rem, 4.5vw, 4.5rem);
	border-radius: var(--r-l);
	background: var(--accent);
	color: var(--text);
	position: relative;
	overflow: hidden;
}
.newsletter-band::before {
	content: "";
	position: absolute;
	width: 38rem;
	height: 38rem;
	right: -12rem;
	top: -16rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 65%);
	pointer-events: none;
}

.newsletter-band__pitch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.4rem;
}
.newsletter-band__mark {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--text);
}
.newsletter-band__title {
	font-size: clamp(2.4rem, 1rem + 4.4vw, 5.4rem);
	font-weight: 750;
	font-stretch: 85%;
	line-height: .92;
	letter-spacing: -0.05em;
}
.newsletter-band__text {
	max-width: 44ch;
	color: var(--text-2);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0;
}

.newsletter-band__features { list-style: none; margin: 0; padding: 0; width: 100%; }
.newsletter-band__features li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: center;
	padding: .85rem 0;
	border-top: 1px solid var(--line);
	font-size: .96rem;
	color: var(--text-2);
}
.newsletter-band__features li::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--text);
}
.newsletter-band__features strong { color: var(--text); font-weight: 700; }

/* The form sits on a navy tile cut into the accent block; the dark-zone
   tokens at the top of this file give its fields their light-on-navy skin. */
.newsletter-band__form {
	position: relative;
	align-self: start;
	padding: clamp(1.4rem, 2.5vw, 2.25rem);
	border-radius: var(--r-m);
	background: var(--dk);
}
.newsletter-band__form-title {
	font-size: 1.6rem;
	letter-spacing: -0.04em;
	padding-bottom: 1rem;
	margin-bottom: 1.3rem;
	border-bottom: 1px solid var(--line);
}

/* ── The form skin ────────────────────────────────────────────────────── */
/* The markup is unchanged — only the surface it wears. */

.st-optin__field { margin-bottom: 1rem; }

.st-optin__input {
	width: 100%;
	padding: 1rem 1.15rem;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-s);
	font-size: .96rem;
	color: var(--text);
	transition: border-color .25s ease, box-shadow .25s ease;
}
.st-optin__input::placeholder { color: var(--text-3); }
.st-optin__input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}

.st-optin__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.st-optin__consent { margin-bottom: 1.2rem; }
.st-optin__consent-label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .7rem;
	align-items: start;
	cursor: pointer;
}
.st-optin__checkbox {
	width: 18px;
	height: 18px;
	margin: .15rem 0 0;
	accent-color: var(--accent);
	cursor: pointer;
	flex: none;
}
.st-optin__consent-text { font-size: .78rem; line-height: 1.5; color: var(--text-2); }
.st-optin__consent-text a { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
.st-optin__consent-text a:hover { color: var(--accent-text); }

.st-optin__submit {
	width: 100%;
	padding: 1.05rem 1.2rem;
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
	transition: background .3s ease, box-shadow .3s ease, transform .4s var(--ease);
}
.st-optin__submit:hover:not(:disabled) { background: var(--inv-bg); color: var(--inv-fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent); }
.st-optin__submit:active:not(:disabled) { transform: scale(.98); }
.st-optin__submit:disabled { opacity: .5; cursor: not-allowed; }

.st-optin__message { margin: .9rem 0 0; font-size: .86rem; line-height: 1.5; }
.st-optin__message.is-error { color: var(--neg); }
.st-optin__message.is-success { color: var(--pos); }

.st-optin__footer {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	margin-top: 1rem;
	padding-top: .9rem;
	border-top: 1px solid var(--line);
	font: 400 .66rem var(--font-mono);
	letter-spacing: .02em;
	color: var(--text-3);
}

/* ── The modal ────────────────────────────────────────────────────────── */

.st-modal {
	position: fixed;
	inset: 0;
	z-index: 250;
	display: grid;
	place-items: center;
	padding: 1.5rem;
}
.st-modal[hidden] { display: none; }

.st-modal__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--navy) 62%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.st-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: 92vh;
	overflow-y: auto;
	padding: 2.4rem;
	border-radius: var(--r-l);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	box-shadow: 0 40px 120px color-mix(in srgb, var(--navy) 35%, transparent);
	animation: modal-in .7s var(--ease) both;
}
@keyframes modal-in {
	from { opacity: 0; transform: translateY(30px) scale(.96); }
	to { opacity: 1; transform: none; }
}

.st-modal__kicker {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font: 500 .7rem var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-text);
	margin-bottom: .9rem;
}
.st-modal__kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.st-modal__title { font-size: 2.1rem; letter-spacing: -0.045em; margin-bottom: .7rem; }
.st-modal__sub { font-size: .96rem; line-height: 1.55; color: var(--text-2); margin-bottom: 1.6rem; }

.st-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: transparent;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background .3s ease, color .3s ease, transform .5s var(--ease);
}
.st-modal__close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

/* ═══ 14. Footer ══════════════════════════════════════════════════════════ */

.site-footer {
	position: relative;
	margin: clamp(2rem, 4vw, 4rem) var(--edge) var(--edge);
	border-radius: var(--r-l);
	background: var(--dk);
	border: 1px solid var(--line);
	overflow: hidden;
}

.site-footer__inner {
	max-width: calc(var(--page-w) + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 5rem) var(--gutter) 0;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.5fr .85fr .85fr 1.3fr;
	gap: clamp(1.5rem, 3vw, 3.5rem);
	padding-bottom: clamp(2rem, 4vw, 4rem);
}

.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
/* The uploaded logo is a coloured seal on transparent: flattened to white it
   loses the shield, so it sits on a white plate in its own colours instead. */
.footer-brand__mark .custom-logo-link {
	display: inline-block;
	padding: .8rem 1.1rem;
	border-radius: var(--r-m);
	background: #fff;
}
.footer-brand__mark .custom-logo { max-height: 56px; width: auto; }
.footer-brand__mark .site-logo { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.footer-brand__text { max-width: 38ch; font-size: .96rem; line-height: 1.65; color: var(--text-2); margin: 0; }

.footer-col__heading {
	font: 500 .7rem var(--font-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-3);
	padding-bottom: .9rem;
	margin-bottom: .8rem;
	border-bottom: 1px solid var(--line);
}

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
	padding: .45rem 0;
	font-size: 1.02rem;
	color: var(--text-2);
	transition: color .25s ease, padding-left .4s var(--ease);
}
.footer-links a:hover { color: var(--accent-text); padding-left: .5rem; }

.footer-pitch { font-size: .96rem; line-height: 1.6; color: var(--text-2); margin-bottom: 1.3rem; }

.footer-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	width: 100%;
	padding: 1rem 1.2rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	font-size: .9rem;
	transition: background .3s ease, box-shadow .3s ease, transform .5s var(--ease);
}
.footer-cta:hover,
.footer-cta:focus-visible { background: var(--inv-bg); color: var(--inv-fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent); }
.footer-cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .4s var(--ease); }
.footer-cta:hover svg { transform: rotate(45deg); }

/* The wordmark at poster scale, fading into the panel. */
.footer-giant {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 85%;
	font-size: min(11.6vw, 14rem);
	line-height: .78;
	letter-spacing: -0.025em;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	margin: 0 calc(var(--gutter) * -1) -.07em;
	padding-top: .1em;
	background: linear-gradient(to bottom, color-mix(in srgb, #fff 24%, transparent), transparent 88%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.footer-base { border-top: 1px solid var(--line); position: relative; }
.footer-base__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.4rem;
}
.footer-copy { margin: 0; font: 400 .74rem var(--font-mono); letter-spacing: .04em; color: var(--text-3); }
.footer-base__mark {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 1rem var(--accent);
}

/* ── Back to top ──────────────────────────────────────────────────────── */

.to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 80;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--line-strong);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(.9);
	transition: opacity .4s ease, visibility .4s ease, transform .6s var(--ease), background .3s ease, color .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ═══ 15. Widgets ═════════════════════════════════════════════════════════ */

/* ── Political Control Over Time ──────────────────────────────────────── */

.political-control-widget {
	padding: 1.6rem;
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
}
.political-control-widget h3 {
	font-size: 1.5rem;
	letter-spacing: -0.04em;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.political-timeline { display: grid; gap: .55rem; }

.political-period {
	position: relative;
	padding: .85rem 1rem;
	border-radius: var(--r-s);
	background: var(--tint);
	border-left: 4px solid var(--line-strong);
}
.political-period--republican { border-left-color: var(--neg); }
.political-period--democrat { border-left-color: var(--text); }

.political-period__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.political-period__years { font-size: 1rem; font-weight: 700; font-stretch: 90%; letter-spacing: -0.02em; }
.political-period__party {
	font: 500 .6rem var(--font-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--text-3);
	padding: .28rem .6rem;
	border-radius: 999px;
	white-space: nowrap;
}
.political-period--republican .political-period__party { background: var(--neg); }
.political-period--democrat .political-period__party { background: var(--text); }

.political-period__return {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin-top: .4rem;
	font: 400 .7rem var(--font-mono);
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--text-3);
}
.political-period__value { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; text-transform: none; }
.political-period__value--pos { color: var(--pos); }
.political-period__value--neg { color: var(--neg); }
.political-period__value--tbd { color: var(--text-3); }

.political-control-widget .widget-footer { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.political-control-widget .disclaimer { font-size: .72rem; line-height: 1.5; color: var(--text-3); margin: 0; }

/* ── A Century of Decades ─────────────────────────────────────────────── */
/* Eleven columns on a dark tile, one per decade, rising from or falling below
   a centre line. Drawn in CSS from server-rendered heights — no canvas and no
   charting library. main.js grows the bars in as the section scrolls up. */

.century {
	position: relative;
	padding: clamp(1.5rem, 4.5vw, 4.5rem);
	border-radius: var(--r-l);
	background:
		radial-gradient(40rem 24rem at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
		var(--dk);
	border: 1px solid var(--line);
	overflow: hidden;
}

.century__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.century__mark {
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 1.1rem color-mix(in srgb, var(--accent) 55%, transparent);
	margin-bottom: 1.4rem;
}
.century__title {
	font-size: clamp(2.2rem, 1rem + 3.8vw, 4.8rem);
	font-weight: 750;
	font-stretch: 85%;
	line-height: .94;
	letter-spacing: -0.05em;
	margin-bottom: 1.1rem;
}
.century__standfirst { font-size: 1.05rem; line-height: 1.6; color: var(--text-2); margin: 0; }

.century__chart {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: .55rem;
	margin: 0;
}

.century-col {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .55rem;
	min-width: 0;
}
.century-col dd { margin: 0; }

.century-col__value {
	font: 500 .76rem var(--font-mono);
	letter-spacing: -0.03em;
	white-space: nowrap;
}
.century-col--up .century-col__value { color: var(--pos); }
.century-col--down .century-col__value { color: var(--neg); }

.century-col__track { position: relative; height: 210px; }
.century-col__track::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 76%;
	height: 1px;
	background: var(--line-strong);
}

.century-col__bar {
	position: absolute;
	left: 0;
	width: 100%;
	background: var(--accent);
	transition: background .3s ease, filter .3s ease;
}
.century-col--up .century-col__bar { bottom: 24%; border-radius: 8px 8px 0 0; }
.century-col--down .century-col__bar { top: 76%; background: var(--neg); border-radius: 0 0 8px 8px; }
.century-col:hover .century-col__bar { background: var(--inv-bg); }
.century-col--down:hover .century-col__bar { background: color-mix(in srgb, var(--neg) 60%, #fff); }

.century-col__label { font: 700 .82rem var(--font-mono); letter-spacing: -0.02em; }
.century-col__note { font-size: .68rem; line-height: 1.35; color: var(--text-3); }

.century__foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 2.5rem;
	align-items: end;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.9rem;
	border-top: 1px solid var(--line);
}

.century-fact { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.century-fact__label { font: 500 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.century-fact__value {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .6rem;
	font-family: var(--font-display);
	font-weight: 750;
	font-stretch: 85%;
	font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.century-fact__value--up { color: var(--pos); }
.century-fact__value--down { color: var(--neg); }
.century-fact__note { font-size: .86rem; color: var(--text-2); }

.century__more {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	padding: 1rem 1.6rem;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	font-size: .9rem;
	white-space: nowrap;
	transition: background .3s ease, box-shadow .3s ease, transform .5s var(--ease);
	will-change: transform;
}
.century__more:hover,
.century__more:focus-visible { background: var(--inv-bg); color: var(--inv-fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent); }
.century__more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; transition: transform .4s var(--ease); }
.century__more:hover svg { transform: rotate(45deg); }

.century__disclaimer { margin: 1.9rem 0 0; font-size: .74rem; line-height: 1.5; color: var(--text-3); max-width: 72ch; }

/* ── 100 Years of the Stock Market ────────────────────────────────────── */

/* minmax(0, 1fr): Chart.js writes a pixel width onto its canvas, and a bare
   track would take that as its minimum and push every sibling open. */
.market-history-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}

.market-history__loading {
	padding: 3rem 0;
	font-size: .94rem;
	color: var(--text-3);
	border-block: 1px solid var(--line);
	margin: 0;
}

.market-history__header { max-width: 60ch; }
.market-history__title {
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
	font-weight: 750;
	letter-spacing: -0.045em;
	margin-bottom: .7rem;
}
.market-history__subtitle { color: var(--text-2); font-size: 1.05rem; margin: 0; }

.market-history__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--edge);
}

.market-stat {
	padding: 1.5rem;
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
}
.market-stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.3rem + 1.8vw, 3.2rem);
	font-weight: 750;
	font-stretch: 85%;
	letter-spacing: -0.05em;
	line-height: .95;
	color: var(--accent-text);
}
.market-stat__label {
	display: block;
	font: 400 .7rem/1.4 var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-top: .7rem;
}

.market-history__controls {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .35rem;
	padding: .35rem;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	width: fit-content;
	max-width: 100%;
}
.market-history__btn {
	padding: .7rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-family: var(--font-body);
	font-size: .84rem;
	font-weight: 600;
	color: var(--text-2);
	cursor: pointer;
	transition: background .3s ease, color .3s ease;
}
.market-history__btn:hover { color: var(--text); background: var(--tint-2); }
.market-history__btn.is-active { background: var(--accent); color: var(--accent-ink); }

.market-history__chart {
	position: relative;
	min-height: 360px;
	padding: clamp(.75rem, 2vw, 1.75rem);
	border-radius: var(--r-l);
	background: var(--surface);
	border: 1px solid var(--line);
}

/* Each event is a card: the year large, the shock in a pill at the corner,
   the story beneath. Two across on desktop, one on a phone. */
.market-history__events {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--edge);
}
.market-event {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "year change" "body body";
	align-items: start;
	gap: 1.1rem 1rem;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	border-radius: var(--r-m);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color .3s ease;
}
.market-event:hover { border-color: var(--line-strong); }
.market-event__year {
	grid-area: year;
	font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
	font-weight: 750;
	font-stretch: 85%;
	line-height: .9;
	letter-spacing: -0.05em;
	color: var(--accent-text);
}
.market-event > div { grid-area: body; }
.market-event__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; margin-bottom: .4rem; }
.market-event__text { font-size: .95rem; color: var(--text-2); line-height: 1.5; margin: 0; }
.market-event__change {
	grid-area: change;
	padding: .4rem .85rem;
	border-radius: 999px;
	font: 700 .85rem/1 var(--font-mono);
	white-space: nowrap;
}
.market-event__change--pos { color: var(--pos); background: color-mix(in srgb, var(--pos) 13%, transparent); }
.market-event__change--neg { color: var(--neg); background: color-mix(in srgb, var(--neg) 12%, transparent); }

.market-history__disclaimer { font-size: .78rem; color: var(--text-3); margin: 0; max-width: 70ch; }

/* ═══ 16. Utilities & responsive ══════════════════════════════════════════ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.link-red {
	font-weight: 700;
	color: var(--accent-text);
	box-shadow: inset 0 -2px 0 currentColor;
}
.link-red:hover { color: var(--text); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
	font: 400 .74rem var(--font-mono);
	color: var(--text-3);
	padding-top: .6rem;
	border-top: 1px solid var(--line);
	margin-top: .7rem;
}

.sticky .card__title::before {
	content: "";
	display: inline-block;
	width: .45em;
	height: .45em;
	margin-right: .4em;
	border-radius: 50%;
	background: var(--accent);
}

/* ── Breakpoints ──────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
	.section-split { gap: 1.5rem; }
}

@media (max-width: 1080px) {
	.content-sidebar { grid-template-columns: 1fr; }
	.sidebar { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
	.footer__grid { grid-template-columns: repeat(2, 1fr); }

	.section-split { grid-template-columns: 1fr; }
	.section-split__side { grid-template-columns: repeat(2, 1fr); }

	.feature { grid-template-columns: 1fr; }
	.feature__media { aspect-ratio: 16 / 9; }

	.newsletter-band { grid-template-columns: 1fr; }
}

/* Below this the desks move into the drawer rather than wrapping the
   masthead onto a second row. */
@media (max-width: 1000px) {
	.menu-toggle { display: inline-block; }
	.nav-primary { display: none; }
	.masthead { grid-template-columns: 1fr auto; padding-left: 1.25rem; }
	.masthead__action { display: none; }
}

@media (max-width: 860px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.railrow { grid-template-columns: 1fr; }
	.market-bar__inner { grid-template-columns: repeat(2, 1fr); }
	.market-fig { min-height: 9rem; }

	.market-history__events { grid-template-columns: minmax(0, 1fr); }

	.century__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; }
	.century__more { grid-column: 1 / -1; justify-content: center; }

	.market-history__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	:root { --header-h: 58px; }

	.grid--2,
	.grid--3,
	.grid--4 { grid-template-columns: 1fr; }

	.sidebar,
	.section-split__side,
	.footer__grid { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { text-align: left; }

	.band__head { grid-template-columns: auto 1fr; row-gap: .8rem; }
	.band__more { grid-column: 1 / -1; width: fit-content; }

	.hero .lead { min-height: 34rem; }
	.hero .lead__foot { flex-direction: column; align-items: flex-start; }

	.market-bar__inner { grid-template-columns: 1fr 1fr; gap: 10px; }
	.market-fig { padding: 1.1rem; }

	.market-history__stats { grid-template-columns: minmax(0, 1fr); }
	.market-history__chart { padding: .75rem; min-height: 300px; }
	.market-history__controls { border-radius: var(--r-m); }

	.panel { padding: 1.3rem; }
	.st-modal__dialog { padding: 1.75rem; }
	.to-top { right: 1rem; bottom: 1rem; }

	/* ── The century chart turns on its side ──────────────────────────
	   Eleven vertical columns across a phone gives each about 25px, narrower
	   than the figure that labels it. Rotated into rows, each decade gets a
	   full line: the label, a bar growing from the left, and the figure. */
	.century__head { margin-bottom: 2rem; }

	.century__chart {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		gap: 0;
	}

	.century-col {
		display: grid;
		grid-template-columns: 3.6rem 1fr 4.2rem;
		align-items: center;
		gap: .75rem;
		padding: .65rem 0;
		border-top: 1px solid var(--line);
	}
	.century-col:first-child { border-top: 0; }

	.century-col__label { grid-column: 1; grid-row: 1; font-size: .86rem; }

	.century-col__track { grid-column: 2; grid-row: 1; height: 22px; }
	.century-col__track::after {
		top: 0;
		bottom: 0;
		left: 24%;
		right: auto;
		width: 1px;
		height: auto;
	}

	/* The inline height is a style attribute, so it takes !important to beat. */
	.century-col__bar {
		top: 0;
		bottom: auto;
		width: var(--bar, 100%);
		height: 100% !important;
	}
	.century-col--up .century-col__bar { left: 24%; border-radius: 0 6px 6px 0; }
	.century-col--down .century-col__bar { left: auto; right: 76%; border-radius: 6px 0 0 6px; }

	.century-col__value { grid-column: 3; grid-row: 1; text-align: right; font-size: .82rem; }
	.century-col__note { display: none; }

	.century__foot { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 420px) {
	.market-bar__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.js :is(.band__head, .card, .rowcard, .feature, .section-split__lead, .section-split__side,
	.market-fig, .panel, .political-control-widget, .newsletter-band, .century,
	.century-fact, .entry-header, .entry-media, .page-header, .related__title,
	.post-nav__item, .market-stat, .market-event, .share-row, .footer-col,
	.market-history__chart, .marquee) { opacity: 1; transform: none; }
	.js .hero .lead__title { opacity: 1; }
	.js .hero .wi { transform: none; }
}
