/* ==========================================================================
   Sovereign Terminal v6 — "Markets Inference" newspaper redesign
   --------------------------------------------------------------------------
   A light editorial ground with a serif masthead voice. The page is a soft
   warm grey; every module is a white card sitting on it. One deep forest
   green carries the CTAs, and near-black bands carry the trending strip and
   the footer.

   The token NAMES are inherited from earlier builds and kept deliberately:
   ~3800 rules below refer to them, so renaming would rewrite the whole file
   for no visual gain. Their MEANING is stable from v5 — only the values moved:

     --navy-*  an ASCENDING surface ramp. --navy-800 is the card white; each
               step away is a progressively more tinted panel. The -900/-850
               "deep" steps are the tinted wells, so code that reached for a
               deeper navy to sink a panel still sinks it.
     --ink-*   dark-to-light: -100 the strongest headline ink, -500 the
               quietest meta. Every `color: var(--ink-…)` keeps its hierarchy.
     --violet-* are legacy aliases of the accent, so old rules recolour with
               the Customizer along with everything else. The accent is now
               GREEN; the names are historical, not descriptive.

   Sections in order:
     1  Tokens
     2  Reset / base
     3  Typography primitives
     4  Buttons, chips, badges
     5  Header / navigation
     6  Cards (the shared article-card vocabulary)
     7  Front page sections
     8  Newsletter band
     9  Footer
    10  Archive / category
    11  Single post
    12  Static page
    13  404
    14  Utilities, motion, print
   ========================================================================== */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */
:root {
	/* Surfaces. -800 is the CARD, not the page: in this design the page ground
	   is grey and content sits on white plates above it, which is the inverse
	   of v5 where the page itself was white. Panels that need to read as
	   inset step towards -900.

	   -800 → white card / module ground.
	   -850 → a whisper of grey: table stripes, quiet insets.
	   -900 → the page ground itself, and the most tinted wells.
	   -750 → image placeholders, sitting just off the card.
	   -700 / -600 → progressively firmer fills for chips and avatars. */
	--navy-800: #FFFFFF;
	--navy-850: #F7F7F5;
	--navy-900: #F0F0EE;
	--navy-750: #E8E8E4;
	--navy-700: #DCDCD6;
	--navy-600: #C7C7C0;

	/* The accent: a deep forest green, taken from the reference's Subscribe
	   button. Deep enough to hold white text at AA, saturated enough to read
	   as a deliberate brand colour rather than a neutral. The Customizer
	   overwrites all four of these at runtime — see st_customizer_css() —
	   so they are only the shipped default.
	   -400 is a lighter step for hovers on dark grounds; -600/-300 are the
	   deeper steps used for pressed states and text on light grounds. */
	--violet-500: #2F5D3A;
	--violet-400: #3E7A4C;
	--violet-600: #24492D;
	--violet-300: #24492D;

	/* Semantic aliases. New components reference these; the --violet-* names
	   survive only so existing rules keep working. */
	--brand: #2F5D3A;
	--brand-dark: #24492D;
	--brand-light: #EDF3EE;

	/* The page sits on a soft warm grey; cards are the white above it. This
	   figure/ground relationship is the whole structure of the design. */
	--page-bg: #F0F0EE;
	--card-bg: #FFFFFF;

	/* The near-black used by the TRENDING NOW band, the footer, the section
	   label tags and the single-post hero scrim. Not pure black: a hint of
	   warmth keeps it from vibrating against the serif type. */
	--slate-900: #16171A;
	--slate-800: #1E2024;
	--slate-700: #2A2D32;

	/* Ink on paper. -100 is a near-black with a trace of warmth rather than
	   pure #000, which vibrates under a serif at display weight. Every step
	   clears AA on the -800/-850/-900 grounds. */
	--ink-100: #111214;
	--ink-200: #26282C;
	--ink-300: #45484E;
	--ink-400: #5D6068;
	--ink-500: #6E7279;

	/* Hairlines: a whisper for divisions inside a card, a firmer one for rules
	   that must hold a heading. */
	--line-soft: rgba(17, 18, 20, 0.10);
	--line-firm: rgba(17, 18, 20, 0.22);

	/* Category accents — the eyebrow labels above card titles. Each is deep
	   enough to hold as small uppercase text on white at AA. */
	--amber: #8A5A00;
	--red: #B22A1F;
	--green: #2F5D3A;
	--sky: #2A5FA8;
	--rose: #A83A5B;
	--teal: #146B63;

	/* Type. A transitional serif carries every headline; Inter takes meta,
	   eyebrows, buttons and nav, where a serif in letterspaced caps at 11px
	   would turn to mush. */
	--font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Fluid display scale. Every headline size is a clamp so the layout never
	   needs a breakpoint purely to resize type. Tightened from v5: this design
	   is denser and its largest headline is the hero, not a splash. */
	--fs-display: clamp(1.9rem, 3.6vw, 2.9rem);
	--fs-h1: clamp(1.7rem, 3.1vw, 2.5rem);
	--fs-h2: clamp(1.3rem, 2.2vw, 1.75rem);
	--fs-h3: clamp(1.05rem, 1.5vw, 1.22rem);
	--fs-lead: clamp(1rem, 1.3vw, 1.1rem);
	--fs-body: 1rem;
	--fs-sm: 0.875rem;
	--fs-xs: 0.75rem;
	--fs-micro: 0.6875rem;

	/* Rhythm */
	--gap: clamp(1rem, 1.8vw, 1.5rem);
	--gap-lg: clamp(1.5rem, 3vw, 2.5rem);
	--pad-section: clamp(2.25rem, 4.5vw, 3.75rem);
	--container: 1200px;
	--container-narrow: 760px;

	/* Corners are nearly square in this design — a newspaper plate, not an app
	   card. --radius-lg is kept for the few genuinely rounded things (the
	   subscribe box, modal) and --radius-pill for true pills. */
	--radius: 3px;
	--radius-lg: 8px;
	--radius-pill: 999px;

	--logo-h: 40px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur: 0.28s;
}
/* ── 2. Reset / base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Light-only, declared in CSS as well as the <meta> in header.php so native
	   UI — scrollbars, form controls, autofill, spellcheck underlines — follows
	   the theme even if the document is served from cache. */
	color-scheme: light;
	/* Fixed header height plus breathing room, so an in-page anchor never
	   lands with its heading tucked under the masthead. */
	scroll-padding-top: 120px;
}

body {
	/* The PAGE is grey in this design and modules are white plates on top of
	   it, which is the inverse of the previous build. Templates that want the
	   white card surface ask for it explicitly (.panel, .card--wide, …). */
	background: var(--page-bg);
	color: var(--ink-200);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

img {
	height: auto;
}

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

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

button {
	background: none;
	border: 0;
	cursor: pointer;
}

ul,
ol {
	list-style: none;
	padding: 0;
}

:focus-visible {
	/* -500 rather than the dark build's -300: the focus ring must be the
	   loudest thing on a pale surface, and -300 is now a deeper shade used for
	   text rather than the bright tint it was on navy. */
	outline: 2px solid var(--violet-500);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--violet-500);
	color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 3.5vw, 2.5rem);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.section-pad {
	padding-block: var(--pad-section);
}

.section-pad--tight {
	padding-block: clamp(2rem, 4vw, 3.25rem);
}

/* Raised band: one step lighter than the page, used to separate a section
   without introducing a second hue. */
.is-raised {
	background: var(--navy-850);
}

.is-deep {
	background: var(--navy-900);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--violet-500);
	color: #fff;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ── 3. Typography primitives ────────────────────────────────────────────── */

/* The reference's signature: heavy condensed uppercase, tracked tight, with
   a line-height under 1 so multi-line headlines lock into a block. */
.display,
.sec-head__title,
.pulse-head__title,
.error-page__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	line-height: 0.96;
	color: var(--ink-100);
}

/* Kicker: the small letterspaced label above a headline. Reads as the desk
   or story angle — "RACE TO REDUCE", "GAME GUIDE" in the reference. */
.kicker {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--ink-400);
	margin-bottom: 0.55rem;
}

.kicker--accent {
	color: var(--violet-300);
}

/* Byline: uppercase, tracked, quiet. Never competes with the headline. */
.byline {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink-400);
	line-height: 1.4;
}

.byline__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--navy-700);
}

.byline--lg .byline__avatar {
	width: 44px;
	height: 44px;
}

.byline--plain .byline__avatar {
	display: none;
}

.byline__stack {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.byline__name {
	color: var(--ink-300);
}

.byline--lg .byline__name {
	font-size: var(--fs-xs);
	color: var(--ink-200);
}

.byline__role,
.byline__sep,
.byline time {
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--ink-500);
	text-transform: none;
}

.byline__role {
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* Meta row: reading time and date, hairline separated. */
.metarow {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	font-size: var(--fs-micro);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-500);
}

.metarow__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.metarow svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	opacity: 0.75;
}

/* Section heading: the rule-and-title pattern that opens every band. */
.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gap);
	flex-wrap: wrap;
	padding-bottom: 1.1rem;
	margin-bottom: var(--gap-lg);
	border-bottom: 1px solid var(--line-firm);
}

.sec-head__title {
	font-size: var(--fs-h2);
}

.sec-head__kicker {
	font-size: var(--fs-sm);
	color: var(--ink-400);
	max-width: 44ch;
}

/* Centred variant — the reference's "ON THE PULSE" band. */
.sec-head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 0;
	gap: 0.5rem;
	margin-bottom: var(--gap-lg);
}

.sec-head--center .sec-head__title {
	font-size: var(--fs-h1);
}

/* ── 4. Buttons, chips, badges ───────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	border-radius: var(--radius-pill);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--violet-500);
	color: #fff;
}

.btn--primary:hover {
	background: var(--violet-400);
}

.btn--ghost {
	border-color: var(--line-firm);
	color: var(--ink-200);
}

.btn--ghost:hover {
	border-color: var(--violet-500);
	/* Was white-on-violet-tint. On paper the fill stays a pale violet wash and
	   the label goes to the accent, which is the higher-contrast pairing. */
	color: var(--violet-600);
	background: rgba(58, 50, 224, 0.09);
}

/* The inverse button: on the old dark ground this was white-on-navy. It is
   still the "solid, non-accent" CTA, so on paper it inverts to ink-on-white.
   Used inside violet bands where a violet button would disappear. */
.btn--light {
	background: var(--ink-100);
	color: #fff;
}

.btn--light:hover {
	background: var(--ink-200);
	color: #fff;
}

/* Inside a violet band the ghost button's ink border and label would vanish,
   so it reverts to the white-on-dark treatment there. .brief is excluded on
   purpose: its only button sits inside the white card, not on the band. */
.showcase .btn--ghost,
.statband .btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.showcase .btn--ghost:hover,
.statband .btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* A white solid button reads best inside those same bands.
   NOT .brief: its button lives inside the white card on the violet band, not
   on the band itself, so white-on-white would erase it. The card's button
   keeps the default ink/violet .btn--light treatment. */
.showcase .btn--light,
.statband .btn--light {
	background: #fff;
	color: var(--violet-600);
}

.showcase .btn--light:hover,
.statband .btn--light:hover {
	background: var(--ink-200);
	color: #fff;
}

/* The brief panel's submit sits on white inside the form card, so it stays the
   loudest thing there: solid accent, white label. The button carries
   .btn--primary already — this keeps the pairing explicit and survives the
   button class being swapped again. */
.brief__field .newsletter-form__btn {
	background: var(--violet-500);
	color: #fff;
}

.brief__field .newsletter-form__btn:hover {
	background: var(--violet-600);
	color: #fff;
}

.btn--sm {
	padding: 0.55rem 1.05rem;
	font-size: var(--fs-micro);
}

.btn--lg {
	padding: 0.95rem 1.9rem;
	font-size: var(--fs-sm);
}

.btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* The circular chevron affordance that trails "Read now" / "View all". */
.arrow-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
	transition: transform var(--dur) var(--ease);
}

.arrow-badge svg {
	width: 11px;
	height: 11px;
	/* The glyph is knocked out of the filled circle by painting it the colour
	   of the surface behind the badge — now white rather than navy. */
	color: var(--navy-800);
}

.btn--ghost .arrow-badge svg,
a:hover > .arrow-badge svg {
	color: var(--navy-800);
}

/* On a violet or otherwise dark fill the badge itself is white (it uses
   currentColor), so the knocked-out glyph must go dark instead of white-on-
   white. Covers the showcase card, stat band and every filled CTA. */
.showcase__cue .arrow-badge svg,
.statband .arrow-badge svg,
.btn--primary .arrow-badge svg,
.deskcard .arrow-badge svg {
	color: var(--violet-600);
}

a:hover > .arrow-badge,
.btn:hover .arrow-badge {
	transform: translateX(2px);
}

.arrow-badge--violet {
	background: var(--violet-500);
}

.arrow-badge--violet svg {
	color: #fff;
}

.arrow-badge--lg {
	width: 30px;
	height: 30px;
}

.arrow-badge--lg svg {
	width: 15px;
	height: 15px;
}

/* The category chip is defined in section 6b, where the redesign turns it
   from a filled pill into a bare letterspaced eyebrow. The v5 pill rule that
   stood here overrode it on source order and is removed. */

/* Eyebrow with a pulsing dot — used on archive and 404 heroes. */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-micro);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--violet-300);
}

.badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--violet-500);
	box-shadow: 0 0 0 0 rgba(58, 50, 224, 0.6);
	animation: st-pulse 2.4s infinite;
}

/* The ring fades to fully transparent, so the colour it fades FROM only has to
   match whatever set the dot's own shadow — the footer status dot overrides
   both. Left as a transparent-violet ramp for that reason. */
@keyframes st-pulse {
	70% {
		box-shadow: 0 0 0 8px rgba(58, 50, 224, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(58, 50, 224, 0);
	}
}

/* ── 5. Header / navigation ──────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--card-bg);
	border-bottom: 1px solid var(--line-soft);
	transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header--scrolled {
	/* Translucent white rather than translucent navy, and a far lighter
	   shadow: on paper the 0.42 black shadow of the dark build read as a
	   smudge. The hairline border does most of the separating work now. */
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--line-firm);
	box-shadow: 0 6px 24px rgba(17, 18, 20, 0.08);
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	min-height: 74px;
}

/* Brand. The customizer logo is inherited untouched — only its height is
   ours, driven by --logo-h from st_customizer_css(). */
.masthead__brand .custom-logo-link,
.masthead__brand .custom-logo {
	display: block;
}

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

.site-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--ink-100);
}

/* Desktop nav sits inline in the masthead, as in the reference: wordmark
   left, the desk list immediately beside it, utilities right. */
.nav-primary {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.8vw, 1.9rem);
	flex-wrap: wrap;
}

.nav-list a {
	display: inline-block;
	/* A step up from --fs-micro: at 600 the desk names read as quiet metadata,
	   and the masthead wants them to carry as navigation. 700 at 0.8rem holds
	   the letterspacing without the caps closing up. */
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	color: var(--ink-200);
	padding-block: 0.35rem;
	position: relative;
	transition: color var(--dur) var(--ease);
}

.nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease);
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-cat > a {
	color: var(--ink-100);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after,
.nav-list .current-cat > a::after {
	transform: scaleX(1);
}

.masthead__util {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-shrink: 0;
}

/* Mobile menu toggle — hidden until the desk row can no longer fit. */
/* ── The burger ──────────────────────────────────────────────────────────────
   A bare icon button rather than the outlined "MENU" pill that stood here. The
   pill carried a word, a border and a radius into a masthead that otherwise
   holds only the wordmark, and it read as a third piece of furniture competing
   with the logo. An icon alone is enough — the affordance is universal — and
   it leaves the bar quiet.

   The three bars morph into an X on open. The middle bar fades and the outer
   two rotate onto the same centre line, so the transition happens in place. */
.menu-pill {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-right: -9px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	color: var(--ink-100);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.menu-pill:hover {
	background: var(--navy-850);
}

/* The label is for screen readers only — the icon carries the meaning. */
.menu-pill__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.menu-pill__bars {
	position: relative;
	display: block;
	width: 22px;
	height: 14px;
}

.menu-pill__bars span {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.26s var(--ease), opacity 0.16s var(--ease),
		width 0.26s var(--ease);
}

.menu-pill__bars span:nth-child(1) {
	top: 0;
}

.menu-pill__bars span:nth-child(2) {
	top: 6px;
	/* The middle bar is short at rest, which gives the icon a little character
	   instead of three identical rules; it grows to full width before fading. */
	width: 70%;
}

.menu-pill__bars span:nth-child(3) {
	top: 12px;
}

.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(2) {
	width: 100%;
	opacity: 0;
}

.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Drawer-only furniture. Hidden by default; the 1080px block below turns both
   on, where the masthead pill is hidden and the nav becomes a panel. */
.nav-subscribe,
.nav-head {
	display: none;
}

/* The scrim behind the drawer. Present in the DOM at all widths but inert
   until the drawer opens, so there is nothing to insert on first tap. */
.nav-scrim {
	display: none;
}

/* Locks the page behind an open drawer, so scrolling the drawer does not
   scroll the article underneath it. Set on <body> by main.js. */
body.nav-open {
	overflow: hidden;
}

@media (max-width: 1080px) {
	.menu-pill {
		display: inline-flex;
	}

	/* Hidden below the desktop breakpoint, so the masthead carries only the
	   wordmark and the burger. The newsletter is still reachable — the drawer
	   carries its own subscribe link, and the footer band is a scroll away. */
	.masthead__util .btn {
		display: none;
	}

	/* NOTE ON STACKING — the drawer must not live inside .site-header.
	   The header is sticky with z-index:100, which makes it a stacking context,
	   so a descendant's z-index is only ever compared against the header's own
	   children — never against the scrim, which is a child of <body> at 110.
	   The menu therefore painted UNDER the overlay and looked dimmed.

	   main.js moves .nav-primary out to <body> at this breakpoint (see
	   "Drawer relocation"), making it a sibling of the scrim so these z-indexes
	   mean what they say. Three in-place fixes were tried first and all fail:
	     - raising the header lifts the logo clear of the scrim too;
	     - dissolving the context (position:static) reflows a stuck header and
	       the page jumps under the reader;
	     - dimming .masthead with opacity creates a NEW stacking context and
	       re-traps the drawer. */

	.nav-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(17, 18, 20, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
	}

	.nav-scrim.is-open {
		opacity: 1;
		visibility: visible;
	}

	/* ── The drawer ──────────────────────────────────────────────────────────
	   A panel sliding in from the right, rather than the full-width sheet that
	   used to drop out of the masthead. The sheet pushed the page down, had no
	   scrim, and on a long menu ran past the fold with no way to scroll it.

	   Fixed rather than absolute so it is measured against the viewport: it
	   then spans the full height, scrolls internally, and is unaffected by the
	   sticky header's own stacking. */
	.nav-primary {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 120;
		display: block;
		width: min(320px, 86vw);
		background: var(--card-bg);
		border-bottom: 0;
		border-left: 1px solid var(--line-soft);
		box-shadow: -18px 0 44px rgba(17, 18, 20, 0.14);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.nav-primary.is-open {
		transform: none;
		visibility: visible;
	}

	/* The drawer's own header: a title and the close button, so the panel has a
	   way out that does not depend on finding the burger behind the scrim. */
	.nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 18px 20px;
		border-bottom: 1px solid var(--line-soft);
	}

	.nav-head__title {
		font-family: var(--font-body);
		font-size: var(--fs-micro);
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--ink-500);
	}

	.nav-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		margin-right: -6px;
		border-radius: var(--radius);
		color: var(--ink-200);
		transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
	}

	.nav-close:hover {
		background: var(--navy-850);
		color: var(--ink-100);
	}

	.nav-close svg {
		width: 17px;
		height: 17px;
		stroke: currentColor;
		stroke-width: 2;
		fill: none;
		stroke-linecap: round;
	}

	/* The menu itself is always in flow inside the drawer — the drawer's own
	   transform does the showing and hiding, so the list needs no display
	   toggle of its own. */
	.nav-menu {
		display: block;
		width: 100%;
		padding: 8px 0 20px;
		text-align: left;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding-inline: 0;
	}

	.nav-list li {
		width: 100%;
		border-bottom: 1px solid var(--line-soft);
	}

	.nav-list li:last-child {
		border-bottom: 1px solid var(--line-soft);
	}

	/* Rows read left-to-right like a list, not centred like a splash screen,
	   and each carries a chevron so it reads as a destination. */
	.nav-list a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		padding: 15px 20px;
		font-size: 0.9rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-align: left;
		color: var(--ink-200);
		transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
	}

	.nav-list a::after {
		/* The desktop underline is replaced by a chevron. Drawn with borders on
		   the existing ::after so no extra markup is needed. */
		content: "";
		display: block;
		position: static;
		flex-shrink: 0;
		width: 7px;
		height: 7px;
		border: 0;
		border-top: 1.5px solid var(--line-firm);
		border-right: 1.5px solid var(--line-firm);
		transform: rotate(45deg);
		background: none;
		transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
	}

	.nav-list a:hover,
	.nav-list .current-menu-item > a,
	.nav-list .current-cat > a {
		background: var(--navy-850);
		color: var(--ink-100);
	}

	.nav-list a:hover::after,
	.nav-list .current-menu-item > a::after,
	.nav-list .current-cat > a::after {
		border-color: var(--brand);
		transform: rotate(45deg) translate(2px, -2px);
	}

	.nav-subscribe {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.6rem;
		margin: 20px 20px 0;
		padding: 0.85rem 1.1rem;
		background: var(--brand);
		border-radius: var(--radius);
		color: #fff;
		font-size: var(--fs-micro);
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.12em;
		transition: background var(--dur) var(--ease);
	}

	.nav-subscribe:hover {
		background: var(--brand-dark);
	}

	.nav-subscribe .arrow-badge {
		background: #fff;
	}

	.nav-subscribe .arrow-badge svg {
		color: var(--brand);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nav-primary,
	.nav-scrim,
	.menu-pill__bars span {
		transition: none;
	}
}

@media (max-width: 640px) {
	.masthead {
		min-height: 62px;
	}
}

/* Reading progress bar on single posts */
.read-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 200;
	background: transparent;
	pointer-events: none;
}

.read-progress__fill {
	height: 100%;
	width: 0;
	background: var(--violet-400);
}

/* ── 6. Section labels & shared module furniture ─────────────────────────── */
/* The black tag that names every section — "LATEST NEWS", "TRENDING NOW",
   "RELATED POSTS". A near-black plate with letterspaced white micro-caps and a
   notched right edge, which is what gives the design its newspaper stamp.
   The notch is a clip-path rather than a pseudo-element so the plate can carry
   a background image or a border without the notch fighting it. */
.section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--slate-900);
	color: #fff;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	padding: 10px 26px 10px 16px;
	margin: 0;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* Centred variant used by the full-width dark bands, where the tag sits over
   a rule that runs the width of the section. */
.section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: var(--gap);
}

.section-head--center {
	justify-content: center;
}

/* The hairline that trails a section label out to the edge of its column. */
.section-head__rule {
	flex: 1;
	height: 1px;
	background: var(--line-soft);
}

/* ── 6b. The category eyebrow ────────────────────────────────────────────── */
/* Replaces the filled chip of previous builds. In this design a card's
   category is a small letterspaced caps label in the category's own colour,
   sitting above the headline with no plate behind it — the plate treatment is
   reserved for the section tags, so the two never compete.

   .chip keeps its name because st_the_category_chips() prints it and the
   inline --chip-bg/--chip-fg custom properties come with it. Here only
   --chip-bg is used, as the TEXT colour. */
.chip {
	display: inline-block;
	color: var(--chip-bg, var(--brand));
	background: none;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	padding: 0;
	border-radius: 0;
	transition: color var(--dur) var(--ease);
}

.chip:hover {
	color: var(--ink-100);
	background: none;
}

.chip--sm {
	font-size: var(--fs-micro);
}

/* On a photograph the eyebrow has no contrast guarantee from the category
   colour, so the on-media variant drops to white and leans on the scrim. */
.chip--on-media {
	color: #fff;
}

.card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

/* ── 7. Layout shell ─────────────────────────────────────────────────────── */
/* The page ground is grey; the main column and the sidebar are white plates
   on top of it. .layout is the grey band, .layout__grid the two-column split. */
.layout {
	background: var(--page-bg);
	padding: var(--gap-lg) 0;
}

.layout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: var(--gap-lg);
	align-items: start;
}

.layout__main {
	min-width: 0;
}

@media (max-width: 1000px) {
	.layout__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── 7b. Hero ────────────────────────────────────────────────────────────── */
/* One large lead story beside two stacked secondaries. The lead is a cover
   card — photograph with the headline burned into its lower third — while the
   secondaries are conventional image-over-text cards. */
.hero {
	background: var(--page-bg);
	padding: var(--gap-lg) 0 0;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--gap);
	align-items: stretch;
}

@media (max-width: 900px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	/* The lead keeps the full width when the row folds to two columns,
	   otherwise it would shrink to the same size as its secondaries and the
	   hierarchy the section exists to express would disappear. */
	.hero__lead {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── The lead cover card ─────────────────────────────────────────────────── */
.hero-lead {
	position: relative;
	display: block;
	min-height: 340px;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-750);
	isolation: isolate;
}

.hero-lead__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	transition: transform 0.6s var(--ease);
}

.hero-lead:hover .hero-lead__img {
	transform: scale(1.03);
}

/* The scrim. A bottom-weighted gradient rather than a flat overlay, so the
   photograph stays legible at the top of the frame where there is no text. */
.hero-lead__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(10, 11, 13, 0.9) 0%,
		rgba(10, 11, 13, 0.72) 22%,
		rgba(10, 11, 13, 0.18) 55%,
		rgba(10, 11, 13, 0) 78%
	);
}

/* The whole card is clickable through this layer; the caption sits above it
   so its own links (the eyebrow) stay independently clickable without
   nesting anchors, which is invalid and gets unnested by the parser. */
.hero-lead__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.hero-lead__body {
	position: relative;
	z-index: 3;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
	padding: clamp(18px, 3vw, 30px);
	color: #fff;
}

/* Re-enable pointer events only on the things that are actually links, so the
   caption does not swallow clicks meant for the cover link beneath it. */
.hero-lead__body a {
	pointer-events: auto;
}

.hero-lead__title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: #fff;
	margin: 0 0 10px;
	text-wrap: balance;
}

.hero-lead__title a {
	color: inherit;
}

.hero-lead__meta {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.78);
}

/* ── The two stacked secondaries ─────────────────────────────────────────── */
.hero-side {
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	height: 100%;
}

.hero-side__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--navy-750);
	overflow: hidden;
}

.hero-side__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.hero-side:hover .hero-side__img {
	transform: scale(1.04);
}

.hero-side__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 18px;
}

.hero-side__title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--ink-100);
	margin: 0;
}

.hero-side__title a:hover {
	color: var(--brand);
}

.hero-side__date {
	font-size: var(--fs-xs);
	color: var(--ink-500);
}

.hero-side__excerpt {
	font-size: var(--fs-sm);
	line-height: 1.55;
	color: var(--ink-400);
	margin: 2px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── 8. The article card grid ────────────────────────────────────────────── */
/* The main column's two-up grid of stories. Each card is image, eyebrow,
   serif headline, excerpt, date — stacked, on the white plate. */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap-lg) var(--gap);
}

@media (max-width: 560px) {
	.card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: none;
	border: 0;
	padding: 0;
}

.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-750);
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.card:hover .card__img {
	transform: scale(1.04);
}

.card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__title {
	font-family: var(--font-display);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.012em;
	color: var(--ink-100);
	margin: 0 0 6px;
	text-wrap: pretty;
}

.card__title a {
	color: inherit;
	transition: color var(--dur) var(--ease);
}

.card__title a:hover {
	color: var(--brand);
}

.card__meta {
	order: -1;
	font-size: var(--fs-xs);
	color: var(--ink-500);
	margin-bottom: 8px;
}

/* The date is printed above the excerpt in this design, so the meta row is
   pulled up by `order` rather than being moved in every template. */
.card__excerpt {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--ink-400);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__sep {
	margin: 0 6px;
	color: var(--ink-500);
}

/* Safety net for the trailing odd card. front-page.php promotes the last card
   to the full-width variant when the count is odd, but that variant needs a
   photograph to carry its headline — a post with no artwork stays half width
   and the hole comes back. This makes any last-and-only card on its row span
   both columns as a plain card, which closes the row without pretending to be
   a cover plate.

   :nth-child(odd) is what identifies it: in a two-column grid the odd-numbered
   children start each row, so a last child that is also odd is alone on its
   row. The rule is scoped to the two-column layout, since at one column every
   card already spans the grid. */
@media (min-width: 561px) {
	.card-grid > .card:last-child:nth-child(odd):not(.card--wide) {
		grid-column: 1 / -1;
	}

	/* Spanning the row would otherwise stretch a 16/10 image to double width.
	   The media keeps its column measure and the text sits beside it, which
	   turns the stray card into a wide horizontal one rather than a giant. */
	.card-grid > .card:last-child:nth-child(odd):not(.card--wide) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--gap);
		align-items: start;
	}

	.card-grid > .card:last-child:nth-child(odd):not(.card--wide) .card__media {
		margin-bottom: 0;
	}
}

/* A full-width cover card that can be dropped into the grid to break the
   rhythm — the reference uses one mid-column. */
.card--wide {
	grid-column: 1 / -1;
	position: relative;
	min-height: 260px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--navy-750);
	isolation: isolate;
}

.card--wide .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	margin: 0;
	border-radius: 0;
	z-index: 0;
}

.card--wide .card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(10, 11, 13, 0.88) 0%,
		rgba(10, 11, 13, 0.55) 40%,
		rgba(10, 11, 13, 0) 75%
	);
}

.card--wide .card__body {
	position: relative;
	z-index: 2;
	justify-content: flex-end;
	min-height: 260px;
	padding: clamp(16px, 2.6vw, 26px);
	color: #fff;
}

.card--wide .card__title {
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	color: #fff;
}

/* On the cover variant the caption is burned into the photograph and reads
   bottom-up: eyebrow, headline, date. The base rule lifts the date above
   everything with order:-1, which is right for the standing cards but puts the
   date above the category here — so the order is reset and the date falls back
   to its source position, last. */
.card--wide .card__meta {
	order: 0;
	color: rgba(255, 255, 255, 0.78);
	margin: 6px 0 0;
}

.card--wide .card__excerpt {
	display: none;
}

/* ── 8b. Load more / pagination ──────────────────────────────────────────── */
.loadmore {
	display: flex;
	justify-content: center;
	margin-top: var(--gap-lg);
}

.loadmore__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	justify-content: center;
	background: var(--card-bg);
	border: 1px solid var(--line-firm);
	border-radius: var(--radius);
	padding: 13px 22px;
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-200);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		border-color var(--dur) var(--ease);
}

.loadmore__btn:hover {
	background: var(--slate-900);
	border-color: var(--slate-900);
	color: #fff;
}

.pagination {
	margin-top: var(--gap-lg);
}

.pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination__list a,
.pagination__list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	background: var(--card-bg);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-300);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
		border-color var(--dur) var(--ease);
}

.pagination__list a:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.pagination__list .current {
	background: var(--slate-900);
	border-color: var(--slate-900);
	color: #fff;
}

/* ── 9. Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	min-width: 0;
}

.panel {
	background: var(--card-bg);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 18px;
}

/* The trivia widget draws its own complete card — background, border, radius
   and padding all come from .economic-trivia-widget. Leaving the panel's box
   on the wrapper nested one card inside another and doubled the inset, so the
   wrapper here is stripped back to a bare positioning element. Same reasoning
   as .footer-col--quote, which hosts the quotes widget. */
.panel--trivia {
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

/* The sidebar module heading: centred letterspaced caps on a tinted bar,
   matching the "INDUSTRY TALK" / "BUSINESS UPDATE" treatment in the design. */
.panel__heading {
	display: block;
	background: var(--navy-850);
	margin: -18px -18px 16px;
	padding: 12px 16px;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ink-100);
	border-bottom: 1px solid var(--line-soft);
}

/* The heading's trailing dot from the old build has no place in the new
   design's centred bar, so it is hidden rather than removed from every
   template that prints it. */
.panel__dot {
	display: none;
}

.panel__intro {
	font-size: var(--fs-sm);
	line-height: 1.55;
	color: var(--ink-400);
	margin: 0 0 12px;
	text-align: center;
}

/* ── The subscribe panel ─────────────────────────────────────────────────── */
/* The green-bordered box from the reference: a pale tint inside a green rule,
   with the form's own fields on white. */
.panel--subscribe {
	background: var(--brand-light);
	border-color: var(--brand);
	text-align: center;
}

.panel--subscribe .panel__heading {
	background: none;
	border-bottom: 0;
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--ink-100);
}

/* ── The categories panel ────────────────────────────────────────────────── */
/* A ruled list of desks with a post count each. The colour swatch is the same
   hue the category's chips carry everywhere else on the site, handed in as
   --cat-accent from st_term_color(), so a desk is recognisable by hue rather
   than needing a stylesheet rule per term. */
.cat-list {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.cat-list__item + .cat-list__item {
	border-top: 1px solid var(--line-soft);
}

.cat-list__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-200);
	transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

/* The swatch. A pseudo-element rather than markup, so the template stays a
   plain name-and-count pair. */
.cat-list__link::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--cat-accent, var(--brand));
	transition: transform var(--dur) var(--ease);
}

.cat-list__link:hover {
	color: var(--cat-accent, var(--brand));
	padding-left: 4px;
}

.cat-list__link:hover::before {
	transform: scale(1.25);
}

.cat-list__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Pushed to the right edge and set in tabular figures so the column of counts
   lines up down the list. */
.cat-list__count {
	margin-left: auto;
	flex-shrink: 0;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--ink-500);
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.cat-list__link,
	.cat-list__link::before {
		transition: none;
	}
}

/* ── The story list used by INDUSTRY TALK / BUSINESS UPDATE / EDITORS' PICKS */
.minilist {
	display: flex;
	flex-direction: column;
}

.minilist__item {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}

.minilist__item:first-child {
	padding-top: 0;
}

.minilist__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.minilist__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-750);
}

.minilist__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.minilist__body {
	min-width: 0;
}

.minilist__title {
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.008em;
	color: var(--ink-100);
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--dur) var(--ease);
}

.minilist__item:hover .minilist__title {
	color: var(--brand);
}

.minilist__date {
	font-size: var(--fs-xs);
	color: var(--ink-500);
}

/* ── 10. Trending board ──────────────────────────────────────────────────────
   A ranked countdown rather than another card row. Trending stories are
   inherently ordered, so the section leads with the rank: oversized outline
   numerals carry the layout and the photography is reduced to one lead frame.

   This is deliberately the odd section on the page. Every other block here —
   the hero, the card grid, You May Have Missed, Related — is some arrangement
   of picture-above-headline. Repeating that a fifth time on a dark ground
   would have made the band read as "the same thing, but darker". A numbered
   board is a different object: it is scanned down, not across, and the number
   is what the eye lands on first.

   Structure: a full-bleed near-black band; inside it a two-column split with
   the #1 story as a large framed lead on the left, and ranks 02-05 as a ruled
   list on the right. Below 900px the list drops under the lead. */
.trending {
	position: relative;
	background: var(--slate-900);
	color: #fff;
	padding: var(--pad-section) 0;
	overflow: hidden;
}

/* A faint grid ruled across the whole band — the ghost of a trading screen.
   Two repeating-linear-gradients rather than an image, so it costs nothing and
   scales to any width. Masked to fade out towards the bottom so it never
   competes with the text sitting on it. */
.trending::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(to right, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 104px),
		repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 104px);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
	pointer-events: none;
}

/* Everything sits above the ruled grid. */
.trending .container {
	position: relative;
	z-index: 1;
}

/* ── The band's header: label, rule, and a live pip ──────────────────────── */
.trending__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(20px, 3vw, 34px);
}

/* The section tag inverts on the dark ground — white plate, dark text. */
.trending__head .section-label {
	background: #fff;
	color: var(--slate-900);
}

.trending__rule {
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.16);
}

/* The same live pip the market panel uses, so the two read as the same kind
   of always-moving data. */
.trending__live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.trending__pip {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand);
	animation: st-pulse 2.4s var(--ease) infinite;
}

/* ── The split ───────────────────────────────────────────────────────────── */
.trending__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	/* Stretch, not start: the rank list is shorter than the lead and floated at
	   the top of the row. Letting it fill the height and distributing its rows
	   (below) squares the two columns off against each other. */
	align-items: stretch;
}

@media (max-width: 900px) {
	.trending__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── The #1 story ────────────────────────────────────────────────────────── */
.tlead {
	position: relative;
	display: block;
}

.tlead__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--slate-800);
}

.tlead__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.tlead:hover .tlead__img {
	transform: scale(1.04);
}

/* The rank plate, notched into the top-left corner of the photograph — the
   same notch the section tags carry, so the two read as one system. */
.tlead__rank {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: inline-flex;
	align-items: baseline;
	background: #fff;
	color: var(--slate-900);
	padding: 9px 20px 9px 14px;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.tlead__body {
	padding-top: 16px;
}

.tlead__chips {
	margin-bottom: 9px;
}

.tlead__chips .chip {
	color: rgba(255, 255, 255, 0.62);
}

.tlead__chips .chip:hover {
	color: #fff;
}

.tlead__title {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.1vw, 1.7rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.018em;
	color: #fff;
	margin: 0 0 8px;
	text-wrap: balance;
}

/* The headline underlines itself on hover, drawn left to right. A background
   gradient rather than text-decoration, because only background-size can be
   transitioned. */
.tlead__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: background-size var(--dur) var(--ease);
}

.tlead__title a:hover {
	background-size: 100% 1px;
}

.tlead__excerpt {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.62);
	margin: 0 0 10px;
	max-width: 54ch;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tlead__date {
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.45);
}

/* The ranks share one column, opened in the template after the lead. Without
   a wrapper each .trank would become its own grid item and land in the lead's
   column. */
.trending__list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

/* ── Ranks 02-05 ─────────────────────────────────────────────────────────── */
/* A ruled list. The numeral is an outline glyph doing the work a thumbnail
   would normally do — which is the whole point of the section. */
.trank {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(14px, 1.8vw, 22px);
	align-items: center;
	padding: clamp(14px, 1.8vw, 20px) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	transition: border-color var(--dur) var(--ease);
}

/* The last row closes the list off; every other row is separated by its own
   top rule. */
.trank:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* The accent marks the hovered row here, where a 1px line on a dark ground
   reads as a highlight rather than as a darkening. */
.trank:hover {
	border-top-color: var(--brand);
}

.trank:hover + .trank {
	border-top-color: var(--brand);
}

.trank:last-child:hover {
	border-bottom-color: var(--brand);
}

/* Outlined rather than filled: at this size a solid numeral would out-shout
   the headline beside it, which is the actual content. -webkit-text-stroke is
   the only way to outline text; where it is unsupported the transparent fill
   would hide the glyph, so the fill is restored in an @supports-not below. */
.trank__num {
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 3.6vw, 3.1rem);
	font-weight: 700;
	line-height: 0.82;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.34);
	font-variant-numeric: tabular-nums;
	user-select: none;
	transition: color var(--dur) var(--ease),
		-webkit-text-stroke-color var(--dur) var(--ease);
}

@supports not (-webkit-text-stroke: 1px red) {
	.trank__num {
		color: rgba(255, 255, 255, 0.34);
	}
}

/* On hover the numeral fills solid white and the outline drops. Deliberately
   NOT the accent: this band is near-black, the house accent is a deep forest
   green, and filling an outlined glyph with it made the hovered numeral read
   DARKER than its resting state — the interaction looked like dimming. A
   white fill is the only value on this ground that unambiguously reads as
   "lit up", and it stays correct whatever accent the Customizer is set to.
   The accent still marks the row: it drives the brightening top rule. */
.trank:hover .trank__num {
	color: #fff;
	-webkit-text-stroke-color: transparent;
}

.trank__body {
	min-width: 0;
}

.trank__chips {
	margin-bottom: 5px;
}

.trank__chips .chip {
	color: rgba(255, 255, 255, 0.5);
}

.trank__chips .chip:hover {
	color: #fff;
}

.trank__title {
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--dur) var(--ease);
}

.trank:hover .trank__title {
	color: rgba(255, 255, 255, 0.78);
}

.trank__date {
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.tlead__img,
	.trank__num,
	.trank__title,
	.trending__pip {
		transition: none;
		animation: none;
	}
}

/* ── 11. "You May Have Missed" / "Related Posts" ─────────────────────────────
   A three-column magazine row: a wide landscape frame on top, then the
   category, the headline in serif, and the date.

   This block has been through two earlier shapes. It began as four dark cover
   tiles with the headline burned into the photograph, which repeated what the
   hero lead and the trending board already do — three photo-slabs in a row made
   the page read as one dark strip. It then became a tight two-column ruled
   index with 72px thumbnails, which fixed the repetition but ran too dense to
   sit between two heavy dark bands.

   This version keeps that light, text-led ground but gives it room: bigger
   photography, three to a row, and generous vertical space between entries.
   The rule under each entry is gone — the whitespace does the separating, so
   the block breathes instead of ticking.

   The same markup serves the front page, single.php's related row and 404.php,
   so all three share one look. */
.missed {
	background: var(--page-bg);
	padding: var(--pad-section) 0;
	border-top: 1px solid var(--line-soft);
}

.missed__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(20px, 3vw, 34px);
}

.missed__rule {
	flex: 1;
	height: 1px;
	background: var(--line-soft);
}

/* The count sitting at the end of the header rule — "8 stories". Quiet, but it
   tells the reader how much is here before they start scanning. */
.missed__count {
	flex-shrink: 0;
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-500);
	font-variant-numeric: tabular-nums;
}

/* ── The row ─────────────────────────────────────────────────────────────── */
/* Three across at desktop, two at tablet, one on a phone. The row gap is much
   larger than the column gap so stacked entries read as separate stories
   rather than as a dense grid. */
.missed__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: clamp(20px, 2.6vw, 34px);
	row-gap: clamp(30px, 4vw, 48px);
}

@media (max-width: 900px) {
	.missed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.missed__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── One entry ───────────────────────────────────────────────────────────── */
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* ── The photograph ──────────────────────────────────────────────────────── */
/* 3:2 landscape — wider than the 16/10 the cards above use, so this row reads
   as a different object rather than as more of the same. */
.tile__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-750);
	margin-bottom: 14px;
}

/* A post with no artwork gets a ruled placeholder rather than a blank grey
   panel — a hairline border and a faint diagonal, so the entry still reads as
   deliberate. The modifier is set by the template, not inferred, because an
   :empty check would also match while a lazy image is still resolving. */
.tile__media--empty {
	border: 1px solid var(--line-soft);
	background-color: var(--navy-850);
	background-image: linear-gradient(
		135deg,
		transparent calc(50% - 1px),
		var(--line-soft) 50%,
		transparent calc(50% + 1px)
	);
}

.tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.tile:hover .tile__img {
	transform: scale(1.04);
}

/* ── Text ────────────────────────────────────────────────────────────────── */
.tile__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tile__rail {
	margin-bottom: 7px;
}

.tile__title {
	font-family: var(--font-display);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.014em;
	color: var(--ink-100);
	margin-bottom: 8px;
	transition: color var(--dur) var(--ease);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-wrap: pretty;
}

.tile:hover .tile__title {
	color: var(--brand);
}

/* The whole entry is clickable: this link is stretched over the card, so the
   photograph and the meta are part of the target without any of them being
   nested inside an anchor. */
.tile__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tile__date {
	margin-top: auto;
	font-size: var(--fs-xs);
	color: var(--ink-500);
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.tile__img,
	.tile__title {
		transition: none;
	}
}

/* ── 12. Footer ──────────────────────────────────────────────────────────── */
.site-footer {
	background: var(--slate-900);
	color: rgba(255, 255, 255, 0.72);
	padding: var(--pad-section) 0 0;
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap-lg);
	padding-bottom: var(--pad-section);
}

@media (max-width: 900px) {
	.footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Each footer column is a bordered plate on the dark ground, matching the
   three boxed columns in the reference. */
.footer-col {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	padding: 18px;
}

/* The quote column has no heading bar and no list, so it would otherwise sit
   as a short card at the top of a row whose height is set by the two story
   lists beside it. Making it a flex column, and stretching the widget chain
   inside it, lets the quote card fill the row and centre its text — which is
   what the design shows.

   The chain matters: the shortcode prints
   .footer-col > .investor-quotes-container > .investor-quotes-widget,
   and a `height:100%` on the innermost element does nothing unless every
   ancestor between it and the sized box also stretches. */
.footer-col--quote {
	display: flex;
	flex-direction: column;
	padding: 0;
	background: none;
	border: 0;
}

.footer-col--quote .investor-quotes-container {
	display: flex;
	flex: 1;
	min-height: 0;
}

/* Beats the shortcode's inline `height:auto` — that attribute is on the
   container, this targets the widget inside it, so no !important is needed. */
.footer-col--quote .investor-quotes-widget {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.footer-col__heading {
	display: block;
	margin: -18px -18px 14px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
}

/* The footer's story lists reuse .minilist, recoloured for the dark ground. */
.footer-col .minilist__item {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-col .minilist__media {
	background: var(--slate-700);
}

.footer-col .minilist__title {
	color: rgba(255, 255, 255, 0.92);
}

.footer-col .minilist__item:hover .minilist__title {
	color: #fff;
}

.footer-col .minilist__date {
	color: rgba(255, 255, 255, 0.5);
}

/* The base bar: legal menu and copyright, on a slightly deeper ground. */
.footer-base {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 18px 0;
}

.footer-base__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.footer-copy {
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.footer-legal__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
}

.footer-legal__menu a {
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.62);
	transition: color var(--dur) var(--ease);
}

.footer-legal__menu a:hover {
	color: #fff;
}

/* ── 13. Single post ─────────────────────────────────────────────────────── */
/* A full-bleed hero with the headline burned in, then the article beside the
   same sidebar the listings use. */
.single-hero {
	position: relative;
	min-height: clamp(280px, 42vw, 460px);
	margin: 0 0 var(--gap);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--slate-800);
	isolation: isolate;
}

.single-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.single-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(10, 11, 13, 0.88) 0%,
		rgba(10, 11, 13, 0.6) 45%,
		rgba(10, 11, 13, 0.15) 100%
	);
}

.single-hero__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: inherit;
	padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 56px);
	text-align: center;
	color: #fff;
}

/* On the hero the category is a filled plate rather than a bare eyebrow — it
   needs to hold its own against the photograph. */
.single-hero__chips .chip {
	background: var(--slate-900);
	color: #fff;
	padding: 5px 11px;
	border-radius: var(--radius);
}

.single-hero__chips .chip:hover {
	background: var(--brand);
	color: #fff;
}

.single-hero__title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.2vw, 2.4rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.018em;
	color: #fff;
	margin: 12px 0 10px;
	max-width: 900px;
	text-wrap: balance;
}

.single-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.82);
}

.single-hero__meta svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
}

/* The headless variant: a post with no featured image still needs a header,
   so the same block renders on the page ground with dark ink. */
.single-head {
	margin-bottom: var(--gap);
	padding: clamp(18px, 3vw, 32px);
	background: var(--card-bg);
	border-radius: var(--radius);
	text-align: center;
}

.single-head__title {
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.018em;
	color: var(--ink-100);
	margin: 10px 0 8px;
	text-wrap: balance;
}

.single-head__standfirst {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--ink-400);
	margin: 0 auto 10px;
	max-width: 60ch;
}

.single-head__meta {
	font-size: var(--fs-xs);
	color: var(--ink-500);
}

/* ── 13b. Share row ──────────────────────────────────────────────────────── */
/* The coloured network buttons from the reference, printed above and below the
   article body. Each network's colour is an inline --share-bg on the link, so
   adding a network needs no new rule. */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--gap);
}

.share__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--navy-850);
	border-radius: var(--radius);
	padding: 9px 14px;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-200);
}

.share__label svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--share-bg, var(--slate-900));
	color: #fff;
	border-radius: var(--radius);
	padding: 9px 14px;
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1;
	transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.share__btn:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}

.share__btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* ── 13c. Article body ───────────────────────────────────────────────────── */
.single-article {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: clamp(18px, 3vw, 34px);
}

/* The hero is full-bleed inside the article plate, so it cancels the plate's
   own padding rather than sitting inset within it. */
.single-article > .single-hero {
	margin: calc(-1 * clamp(18px, 3vw, 34px));
	margin-bottom: var(--gap);
	border-radius: var(--radius) var(--radius) 0 0;
}

.single-content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--ink-300);
}

.single-content > * + * {
	margin-top: 1.15em;
}

.single-content h2,
.single-content h3,
.single-content h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--ink-100);
	margin-top: 1.8em;
}

.single-content h2 {
	font-size: 1.45rem;
}

.single-content h3 {
	font-size: 1.2rem;
}

.single-content h4 {
	font-size: 1.05rem;
}

.single-content a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-content a:hover {
	color: var(--brand-dark);
}

.single-content img,
.single-content figure {
	border-radius: var(--radius);
}

.single-content blockquote {
	border-left: 3px solid var(--brand);
	background: var(--navy-850);
	padding: 14px 18px;
	font-family: var(--font-display);
	font-size: 1.08rem;
	font-style: italic;
	color: var(--ink-200);
}

.single-content ul,
.single-content ol {
	padding-left: 1.3em;
}

.single-content ul {
	list-style: disc;
}

.single-content ol {
	list-style: decimal;
}

.single-content li + li {
	margin-top: 0.4em;
}

/* ── 13d. Tags and prev/next ─────────────────────────────────────────────── */
.single-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: var(--gap);
	padding-top: var(--gap);
	border-top: 1px solid var(--line-soft);
}

.single-tags__label {
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-500);
}

.single-tags a {
	background: var(--navy-850);
	border-radius: var(--radius);
	padding: 5px 11px;
	font-size: var(--fs-xs);
	color: var(--ink-300);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.single-tags a:hover {
	background: var(--brand);
	color: #fff;
}

.postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	margin-top: var(--gap);
	padding: var(--gap) 0 0;
	border-top: 1px solid var(--line-soft);
}

@media (max-width: 560px) {
	.postnav {
		grid-template-columns: minmax(0, 1fr);
	}
}

.postnav__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.postnav__item--next {
	text-align: right;
	align-items: flex-end;
}

.postnav__label {
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-500);
}

.postnav__title {
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.32;
	color: var(--ink-100);
	transition: color var(--dur) var(--ease);
}

.postnav__title:hover {
	color: var(--brand);
}

/* ── 14. Empty state ─────────────────────────────────────────────────────── */
.empty {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: clamp(24px, 5vw, 48px);
	text-align: center;
	color: var(--ink-400);
}

.empty__title {
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	font-weight: 700;
	color: var(--ink-100);
	margin-bottom: 8px;
}

/* ── 15. Archive header ──────────────────────────────────────────────────── */
.archive-head {
	margin-bottom: var(--gap);
	padding-bottom: var(--gap);
	border-bottom: 1px solid var(--line-soft);
}

.archive-head__kicker {
	font-size: var(--fs-micro);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 6px;
}

.archive-head__title {
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink-100);
	margin: 0;
}

.archive-head__desc {
	margin-top: 10px;
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--ink-400);
	max-width: 70ch;
}

/* ── 12. Static page ─────────────────────────────────────────────────────── */
.page-main {
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--pad-section);
}

.page-header {
	padding-bottom: 1.5rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--line-firm);
}

.page-header__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.018em;
	line-height: 0.98;
	font-size: clamp(2rem, 4.4vw, 3.2rem);
	color: var(--ink-100);
}

.page-header__updated {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: var(--fs-micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ink-500);
}

.page-hero {
	margin-bottom: 1.75rem;
}

.page-hero__img {
	width: 100%;
	border-radius: var(--radius);
}

/* ── 13. 404 ─────────────────────────────────────────────────────────────── */
.error-main {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--pad-section);
}

.error-page {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	max-width: 62ch;
	padding-bottom: var(--pad-section);
}

/* The oversized ghost numeral behind the copy. Pushed off the right edge and
   clipped, so it reads as a graphic rather than as text to be read. */
.error-page__code {
	position: absolute;
	top: -0.28em;
	right: -0.08em;
	z-index: -1;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(9rem, 26vw, 20rem);
	line-height: 0.8;
	letter-spacing: -0.05em;
	color: var(--violet-500);
	/* Lowered from 0.16: a dark violet numeral on white at that opacity read as
	   solid grey text competing with the headline, where on navy it was a faint
	   ghost. This keeps it as background texture. */
	opacity: 0.1;
	pointer-events: none;
	user-select: none;
}

.error-page__title {
	font-size: var(--fs-h1);
}

.error-page__desc {
	font-size: var(--fs-lead);
	color: var(--ink-300);
}

.error-page__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.4rem;
}

.error-recent {
	padding-top: var(--gap-lg);
	border-top: 1px solid var(--line-firm);
}

/* ── 14. Utilities, motion, print ────────────────────────────────────────── */
.u-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Stretches a link over its whole card. Used where the card cannot be an
   <a> because it already contains links (chips, bylines). */
.stretch-hit::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Scroll reveal. The hidden initial state is gated on .js so a visitor
   without JavaScript never sees permanently invisible content. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.tickerbar__track {
		animation: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.brief,
	.single-sidebar,
	.postrail,
	.related,
	.article-nav,
	.read-progress,
	.tickerbar {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.single-layout {
		grid-template-columns: 1fr;
	}

	/* The scrim and its artwork do not print, so the headline needs its ink
	   back. .phero--art .phero__title is more specific than a bare
	   .phero__title, so the light-theme white would otherwise win here and
	   print an invisible headline. */
	.phero__title,
	.phero--art .phero__title,
	.phero--art .phero__standfirst,
	.article-content {
		color: #000;
		text-shadow: none;
	}

	.phero__media,
	.phero__scrim {
		display: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDESIGN LAYER
   Card-on-grey blog layout: ticker, hero slider, two-column list + sidebar,
   and the "You May Have Missed" row. Declared after the original rules so it
   wins on equal specificity without needing !important.
   ══════════════════════════════════════════════════════════════════════════ */

/* The ground colour goes on <html> as well: on a short page (a 404, an empty
   archive) the body box stops before the viewport does, and the browser would
   paint its own white canvas below it. */
html {
	background: var(--page-bg);
}

body {
	background: var(--page-bg);
	color: var(--ink-200);
	font-family: var(--font-body);
	/* Keeps the footer at the bottom of the viewport on short pages. */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body > .site-main,
body > main {
	flex: 1 0 auto;
}

/* The gutter scales with the viewport rather than taking a fixed 2rem bite:
   on a 390px phone that fixed inset cost ~8% of the usable width, which made
   cards and headlines feel cramped. padding-inline (not width) also keeps the
   box intact when a child sets its own width. */
.container {
	width: 100%;
	max-width: var(--container);
	padding-inline: clamp(0.75rem, 3vw, 1.5rem);
	margin-inline: auto;
}

/* Re-stated after the rule above, which would otherwise reset the narrow
   variant's max-width back to the full container. */
.container--narrow {
	max-width: var(--container-narrow);
}

/* ── Static pages (legal, about, contact) ────────────────────────────────────
   These are read top to bottom rather than scanned, so the card is capped at a
   comfortable measure instead of spanning the full grid — which previously left
   a wide empty gutter beside the text. The newsletter band below keeps the full
   container width. */

.page-main .container--narrow {
	/* A little wider than the 760px reading measure: legal pages carry long
	   nested lists that read badly when the indent eats the line. */
	max-width: 860px;
}

.static-page {
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.page-header__title {
	/* Legal headings are set in caps by the editor; letting them run at display
	   size makes the page shout. */
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	letter-spacing: -0.01em;
}

.page-header {
	padding-bottom: 1.1rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--line-soft);
}

.page-header__updated {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: var(--ink-500);
}

.page-content {
	font-size: 0.98rem;
	line-height: 1.75;
	color: var(--ink-300);
	/* An earlier rule caps this at 68ch. The card itself is now sized to a
	   reading measure, so the inner cap only produced a gutter inside it. */
	max-width: none;
}

/* Section headings inside the editor content. Legal pages often use plain
   paragraphs as pseudo-headings, so bold text gets a little breathing room. */
.page-content h2,
.page-content h3,
.page-content h4 {
	font-family: var(--font-display);
	color: var(--ink-100);
	line-height: 1.3;
	margin-top: 2rem;
	margin-bottom: 0.6rem;
}

.page-content h2 { font-size: 1.25rem; }
.page-content h3 { font-size: 1.08rem; }
.page-content h4 { font-size: 1rem; }

.page-content > p > strong:only-child {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--ink-100);
}

.page-content ul,
.page-content ol {
	margin-block: 1rem;
	padding-left: 1.35rem;
}

.page-content li {
	margin-bottom: 0.5rem;
}

.page-content li::marker {
	color: var(--brand);
}

.page-content a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.page-content a:hover {
	text-decoration: none;
}

.page-content table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 1.25rem;
	font-size: 0.9rem;
}

.page-content th,
.page-content td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--line-soft);
	text-align: left;
	vertical-align: top;
}

.page-content th {
	background: var(--page-bg);
	color: var(--ink-100);
	font-weight: 700;
}

/* Long legal tables should scroll inside the card rather than widen the page. */
.page-content .wp-block-table,
.page-content figure.wp-block-table {
	overflow-x: auto;
}

/* ═══ THANK YOU — full-screen newsletter confirmation ════════════════════════
   The page-thank-you.php template. One centred column that fills the viewport
   below the sticky masthead, so the confirmation is the only thing on screen.
   min-height rather than height: the copy must be free to grow past the fold
   on a short window or at large text sizes instead of being clipped. */
.thanks {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Viewport less the 74px masthead and the ticker bar beneath it, so the
	   card centres in the space actually left over rather than pushing the
	   footer a screen further down. svh keeps mobile browser chrome from
	   shunting the column off-screen as the URL bar collapses. */
	min-height: calc(100svh - 74px - 3.1rem);
	padding: clamp(3rem, 9vh, 7rem) 0;
	background: var(--page-bg);
}

.thanks__inner {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	background: var(--card-bg);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 3.25rem);
}

/* The check mark. Sized in em so the disc tracks the icon inside it. */
.thanks__badge {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: var(--brand-light);
	color: var(--brand);
}

.thanks__badge svg {
	width: 1.9rem;
	height: 1.9rem;
}

.thanks__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-micro);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand);
	margin: 0 0 0.75rem;
}

.thanks__pip {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand);
}

.thanks__title {
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink-100);
	margin: 0 0 1rem;
	text-wrap: balance;
}

.thanks__sub {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--ink-300);
	margin: 0 0 1rem;
}

.thanks__note {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--ink-500);
	margin: 0 0 2rem;
}

.thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* Below the masthead breakpoint the card loses its frame and the section its
   grey ground, so the message sits directly on the page the way the rest of
   the mobile layout does. */
@media (max-width: 600px) {
	.thanks {
		background: var(--card-bg);
	}

	.thanks__inner {
		border: 0;
		padding-inline: 0;
	}
}

/* ── 17. Opt-in form ─────────────────────────────────────────────────────────
   The form's own presentation lives in inc/optin-form/optin-form.css, which is
   enqueued after this file and already draws every colour from --brand and the
   --ink-*/--line-* ramp. Duplicating those rules here only created a second
   place to edit and a specificity race, so the block that stood here is gone.
   Only the sidebar-specific framing the module cannot know about remains. */

/* Inside the green subscribe panel the fields sit on the tint, so they take
   the card white to lift off it. */
.panel--subscribe .st-optin__input {
	background: var(--card-bg);
}

.panel--subscribe .st-optin__consent-text,
.panel--subscribe .st-optin__footer {
	text-align: left;
}

/* ── 18. Sidebar market snapshot ─────────────────────────────────────────── */
.market-list {
	display: flex;
	flex-direction: column;
}

.market-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 54px auto;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
}

.market-row:first-child {
	padding-top: 0;
}

.market-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.market-row__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.market-row__label {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-100);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.market-row__sym {
	font-size: var(--fs-micro);
	color: var(--ink-500);
}

.market-row__spark {
	display: block;
	height: 26px;
}

.market-row__spark svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* Direction colours ride on the row, so the sparkline (currentColor) and the
   change figure move together. */
.market-row.is-up {
	color: var(--green);
}

.market-row.is-down {
	color: var(--red);
}

.market-row.is-flat {
	color: var(--ink-500);
}

.market-row__figures {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.market-row__price {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-100);
	font-variant-numeric: tabular-nums;
}

.market-row__change {
	font-size: var(--fs-micro);
	font-weight: 600;
	color: currentColor;
	font-variant-numeric: tabular-nums;
}

.market-foot {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--line-soft);
	font-size: var(--fs-micro);
	color: var(--ink-500);
}

/* The live pip: a small accent dot that breathes, so the panel reads as a
   feed rather than a static table. */
.market-foot__pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	animation: st-pulse 2.4s var(--ease) infinite;
}

@keyframes st-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.market-foot__pulse {
		animation: none;
	}
}
