/*
Theme Name: Newswire
Theme URI: https://example.com/newswire
Author: News Network
Description: Hybrid dark and cream news theme for a multisite network. Floating glass navigation, dark hero with bento grid, per-site accents, day mode by default with a saved dark toggle. No build step, no jQuery, no external requests.
Version: 0.3.4
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newswire
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Tokens (see docs/DESIGN.md). Day mode is the default; dark only by toggle.
   ========================================================================== */
:root {
	--ink: #0a0a0a;
	--ink-soft: #3a3a3a;
	--muted: #5f5b53;
	--paper: #ffffff;
	--cream: #f3efe6;
	--cream-2: #faf9f5;
	--night: #0a0a0a;
	--night-2: #171717;
	--navy: #171b31;
	--rule: #e3ddd0;
	--glass: rgba(255, 255, 255, .66);
	--glass-border: rgba(255, 255, 255, .35);
	--glass-menu: rgba(255, 255, 255, .94);
	--card: var(--cream-2);
	--link: var(--nw-accent);
	--focus: var(--nw-accent);
	--shadow: 0 10px 30px rgba(10, 10, 10, .12);

	--nw-accent: #c8102e;
	--nw-accent-2: #1d3557;
	--nw-accent-on-dark: #ff6b6b;
	--nw-on-accent-2: #ffffff;
	--nw-mesh-1: var(--nw-accent);
	--nw-mesh-2: var(--nw-accent-2);
	--nw-mesh-3: #171b31;

	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--r-pill: 999px;
	--r-tile: 24px;
	--r-hero: 20px;
	--r-card: 16px;
	--r-input: 12px;

	--wrap: 1240px;
	--gutter: 24px;
	--nav-h: 64px;
	--nav-top: 12px;
	--nav-offset: calc(var(--nav-h) + var(--nav-top) * 2);
	--sec-pad: 64px;
	--ease: 200ms ease-out;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #f3efe6;
	--ink-soft: #d6d2c8;
	--muted: #a19d94;
	--paper: #0f0f0f;
	--cream: #141414;
	--cream-2: #1a1a1a;
	--night: #050505;
	--night-2: #121212;
	--rule: #2a2a2a;
	--glass: rgba(20, 20, 20, .6);
	--glass-border: rgba(255, 255, 255, .08);
	--glass-menu: rgba(20, 20, 20, .94);
	--card: #1f1f1f;
	--link: var(--nw-accent-on-dark);
	--focus: var(--nw-accent-on-dark);
	--shadow: 0 10px 30px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* Dark bands: the footer always; hero, wire band, CTA and archive headers only in dark mode (they follow the theme). */
.nw-footer.nw-dark,
:root[data-theme="dark"] .nw-dark {
	--ink: #f3efe6;
	--ink-soft: #d6d2c8;
	--muted: #aaa69d;
	--rule: rgba(255, 255, 255, .14);
	--card: var(--night-2);
	--link: var(--nw-accent-on-dark);
	--focus: var(--nw-accent-on-dark);
	background: var(--night);
	color: var(--ink);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; margin: 0;
	clip: auto; clip-path: none; padding: 12px 20px; background: var(--ink); color: var(--paper);
	font: 600 15px var(--sans); border-radius: var(--r-pill); text-decoration: none;
}
.nw-lock { overflow: hidden; }

.nw-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nw-wrap--narrow { max-width: 792px; }
.nw-main { min-height: 50vh; padding: var(--nav-offset) 0 var(--sec-pad); }

/* Type scale */
.nw-label {
	margin: 0 0 12px;
	font: 600 .72rem/1.2 var(--mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
.nw-h1, .nw-title {
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.08;
	text-wrap: balance;
}
.nw-meta {
	margin: 0;
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--muted);
}
.nw-meta__sep { display: inline-block; width: 3px; height: 3px; margin: 0 10px 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.nw-empty { padding: 48px 0; color: var(--muted); }

/* ==========================================================================
   Floating glass nav
   ========================================================================== */
.nw-nav {
	position: sticky;
	top: var(--nav-top);
	z-index: 100;
	width: min(var(--wrap), calc(100% - var(--gutter) * 2));
	margin: var(--nav-top) auto calc(var(--nav-h) * -1 - var(--nav-top));
	color: var(--ink);
}
.nw-nav__pill {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--nav-h);
	padding: 0 10px 0 24px;
	border-radius: var(--r-pill);
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: 0 0 0 1px rgba(10, 10, 10, .05), var(--shadow);
	transition: box-shadow var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.nw-nav__pill { -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.nw-nav__pill { background: var(--glass-menu); }
}
.nw-nav.is-scrolled .nw-nav__pill { box-shadow: 0 0 0 1px rgba(10, 10, 10, .08), 0 14px 40px rgba(10, 10, 10, .22); }

.nw-brand { flex: 0 0 auto; }
.nw-brand__name {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-decoration: none; color: inherit; white-space: nowrap;
}
.nw-brand__mark {
	width: 14px; height: 14px; border-radius: 50%;
	background: conic-gradient(from 200deg, var(--nw-accent), var(--nw-accent-2), var(--nw-accent));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nw-accent) 22%, transparent);
}
.nw-brand .custom-logo { display: block; max-height: 34px; width: auto; }
.nw-brand__logo { display: block; line-height: 0; }
/* Brand kit logo: fixed height; long wordmarks shrink to fit narrow headers instead of pushing the buttons out. */
.nw-logo { display: block; height: 28px; width: auto; max-width: min(240px, 46vw); object-fit: contain; object-position: left center; }
.nw-logo--dark { display: none; }
:root[data-theme="dark"] .nw-logo--light { display: none; }
:root[data-theme="dark"] .nw-logo--dark { display: block; }

.nw-primary { flex: 1 1 auto; display: none; min-width: 0; }
.nw-primary .menu { display: flex; align-items: center; gap: 0; margin-inline: auto; }
.nw-primary .menu > li { position: relative; display: flex; align-items: center; }
.nw-primary .menu > li > a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 9px;
	font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--ink-soft); border-radius: var(--r-pill);
	white-space: nowrap; transition: background var(--ease), color var(--ease);
}
.nw-primary .menu > li > a:hover,
.nw-primary .menu > li:focus-within > a { background: rgba(10, 10, 10, .07); color: var(--ink); }
:root[data-theme="dark"] .nw-primary .menu > li > a:hover,
:root[data-theme="dark"] .nw-primary .menu > li:focus-within > a { background: rgba(255, 255, 255, .1); }
.nw-primary .current-menu-item > a,
.nw-primary .current-menu-ancestor > a,
.nw-primary .current-cat > a,
.nw-primary .current-cat-parent > a { color: var(--link); }
.nw-primary .menu-item-has-children > a { padding-right: 2px; }

.nw-subtoggle {
	display: inline-grid; place-items: center; width: 20px; height: 40px; margin-left: 0; padding: 0;
	background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--r-pill);
}
.nw-subtoggle svg { transition: transform var(--ease); }
.nw-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nw-primary .sub-menu {
	position: absolute; top: calc(100% + 20px); left: 0; z-index: 5; min-width: 224px; padding: 8px;
	background: var(--glass-menu); border: 1px solid var(--rule); border-radius: var(--r-hero); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nw-primary .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nw-primary .menu-item-has-children:hover > .sub-menu,
.nw-primary .menu-item-has-children:focus-within > .sub-menu,
.nw-primary .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nw-primary .sub-menu a {
	display: block; padding: 10px 14px; font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: 12px; color: var(--ink);
}
.nw-primary .sub-menu a:hover { background: color-mix(in srgb, var(--nw-accent-2) 12%, transparent); }

.nw-nav__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nw-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; transition: background var(--ease);
}
.nw-iconbtn:hover { background: rgba(10, 10, 10, .07); }
:root[data-theme="dark"] .nw-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.nw-burger { display: inline-grid; }
.nw-subscribe {
	display: none; align-items: center; min-height: 44px; margin-left: 4px; padding: 0 20px;
	font-size: .9rem; font-weight: 700; text-decoration: none; color: #fff; background: var(--nw-accent);
	border-radius: var(--r-pill); transition: transform var(--ease), filter var(--ease);
}
.nw-subscribe:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
/* Sun in dark mode, moon in day mode. */
.nw-i-sun { display: none; }
:root[data-theme="dark"] .nw-i-sun { display: block; }
:root[data-theme="dark"] .nw-i-moon { display: none; }

.nw-search {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 12px;
	background: var(--glass-menu); border: 1px solid var(--rule); border-radius: var(--r-tile); box-shadow: var(--shadow);
}
.nw-search[hidden] { display: none; }

@media (min-width: 1100px) {
	.nw-primary { display: flex; }
	.nw-subscribe { display: inline-flex; }
	.nw-burger { display: none; }
	/* Long logo or many sections: when the menu does not fit beside the logo, it moves into the menu button. */
	.nw-nav.is-crowded .nw-primary { display: none; }
	.nw-nav.is-crowded .nw-burger { display: inline-grid; }
}
/* Laptop widths: tighter section links, a slightly smaller logo and no Subscribe button (the newsletter box on every
   page stays), so five sections and "More" fit beside the longest logo. */
@media (min-width: 1100px) and (max-width: 1279px) {
	.nw-primary .menu > li > a { padding: 0 6px; font-size: .8rem; }
	.nw-subscribe { display: none; }
	.nw-nav__pill { gap: 8px; padding-left: 18px; }
	.nw-logo { height: 24px; }
}
@media (min-width: 640px) and (max-width: 1099px) { .nw-subscribe { display: inline-flex; } }
@media (max-width: 639px) {
	:root { --gutter: 16px; --nav-h: 56px; --sec-pad: 48px; }
	.nw-nav__pill { padding-left: 18px; }
	.nw-themebtn { display: none; }
}

/* Off-canvas glass panel */
.nw-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(10, 10, 10, .5); }
.nw-backdrop[hidden] { display: none; }
.nw-panel {
	position: fixed; z-index: 200; top: 12px; right: 12px; bottom: 12px; width: min(92vw, 380px);
	display: flex; flex-direction: column; gap: 16px; padding: 20px; overflow-y: auto;
	background: var(--glass-menu); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: var(--shadow);
	color: var(--ink);
	transform: translateX(115%); visibility: hidden;
	transition: transform 250ms ease-out, visibility 0s linear 250ms;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.nw-panel { background: color-mix(in srgb, var(--glass-menu) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
}
.nw-panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.nw-panel__head { display: flex; align-items: center; justify-content: space-between; }
.nw-panel__date { margin: 0; font: 600 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nw-panel .menu > li { border-bottom: 1px solid var(--rule); }
.nw-panel .menu > li { display: flex; flex-wrap: wrap; align-items: center; }
.nw-panel .menu > li > a { flex: 1; display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; text-decoration: none; }
.nw-panel .nw-subtoggle { width: 44px; height: 44px; }
.nw-panel .sub-menu { display: none; flex-basis: 100%; padding: 0 0 12px 12px; }
.nw-panel .is-open > .sub-menu { display: block; }
.nw-panel .sub-menu a { display: block; padding: 9px 0; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.nw-panel__actions { display: grid; gap: 10px; margin-top: auto; }
.nw-panel .nw-social a { color: var(--ink); }

/* Social round glass buttons */
.nw-social { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-social a {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	transition: background var(--ease), transform var(--ease);
}
.nw-panel .nw-social a { background: rgba(10, 10, 10, .05); border-color: var(--rule); }
.nw-social a:hover { background: var(--nw-accent); border-color: var(--nw-accent); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Buttons, pills, chips
   ========================================================================== */
.nw-btn, .nw-button, .nw-newsletter button, .nw-searchform button, .nw-comments .submit, .nw-form button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px;
	font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
	color: #fff; background: var(--nw-accent); border: 1px solid transparent; border-radius: var(--r-pill);
	transition: transform var(--ease), filter var(--ease), background var(--ease), color var(--ease);
}
.nw-btn:hover, .nw-button:hover, .nw-newsletter button:hover, .nw-searchform button:hover, .nw-comments .submit:hover, .nw-form button[type="submit"]:hover {
	color: #fff; filter: brightness(1.1); transform: translateY(-1px);
}
.nw-btn--light { color: #0a0a0a; background: #f3efe6; }
.nw-btn--light:hover { color: #0a0a0a; }
.nw-btn--ghost { color: var(--ink); background: transparent; border-color: var(--rule); }
.nw-btn--ghost:hover { color: var(--ink); background: rgba(10, 10, 10, .06); filter: none; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; filter: none !important; }

.nw-pill {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
	font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
	color: var(--ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill);
}
.nw-pill--read { background: var(--cream); border-color: var(--rule); text-transform: none; letter-spacing: .04em; }

.nw-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--nw-accent-on-dark); }
.nw-dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--nw-accent-on-dark);
	animation: nw-pulse 1.8s ease-out infinite;
}
@keyframes nw-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.nw-chip, .nw-kicker--chip {
	position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
	font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
	background: color-mix(in srgb, var(--nw-accent-2) 12%, transparent); border-radius: var(--r-pill);
	transition: background var(--ease), color var(--ease);
}
.nw-chip:hover, .nw-kicker--chip:hover { background: var(--nw-accent-2); color: var(--nw-on-accent-2); }
.nw-chip--dark { background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 255, 255, .18); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.nw-chip--dark { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.nw-kicker { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

.nw-pillink {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; flex: 0 0 auto;
	font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--ink);
	border: 1px solid var(--ink); border-radius: var(--r-pill);
	transition: background var(--ease), color var(--ease), transform var(--ease);
}
.nw-dark .nw-pillink { border-color: rgba(255, 255, 255, .4); }
.nw-pillink:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.nw-dark .nw-pillink:hover { color: #0a0a0a; }

/* ==========================================================================
   Dark bands (hero / archive header)
   ========================================================================== */
.nw-band { position: relative; overflow: hidden; margin-top: calc(var(--nav-offset) * -1); padding: calc(var(--nav-offset) + 32px) 0 var(--sec-pad); }
.has-adbar .nw-band { margin-top: 0; padding-top: 48px; }
.nw-band::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(50% 60% at 88% 0%, color-mix(in srgb, var(--nw-mesh-1) 38%, transparent), transparent 70%),
		radial-gradient(45% 55% at 0% 100%, color-mix(in srgb, var(--nw-mesh-2) 30%, transparent), transparent 70%);
}
.nw-band > .nw-wrap { position: relative; }

/* Status row */
.nw-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 40px; }
.nw-ticker {
	display: flex; align-items: center; flex: 1 1 320px; min-width: 0; min-height: 44px; padding: 4px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill); overflow: hidden;
}
.nw-ticker__label {
	flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
	font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--nw-accent); border-radius: var(--r-pill);
}
.nw-ticker__view { flex: 1; min-width: 0; overflow: hidden; margin-left: 12px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.nw-ticker__track { display: flex; gap: 40px; width: max-content; animation: nw-marquee 70s linear infinite; }
.nw-ticker:hover .nw-ticker__track, .nw-ticker:focus-within .nw-ticker__track { animation-play-state: paused; }
.nw-ticker__track a { display: block; padding: 6px 0; font-size: .9rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); }
.nw-ticker__track a:hover { text-decoration: underline; }
@keyframes nw-marquee { to { transform: translateX(-50%); } }

/* Optional market strip (empty by default) */
.nw-market { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: -12px 0 36px; font-family: var(--mono); font-size: .8rem; }
.nw-market li { display: flex; gap: 8px; align-items: baseline; }
.nw-market__l { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nw-market__v { font-weight: 600; }
.nw-market__c--up { color: #3ddc97; }
.nw-market__c--down { color: #ff6b6b; }

/* Author profile: role and links (byline, author box, author page) */
.nw-byline__role { font-weight: 500; color: var(--muted); }
.nw-author__role { margin: 2px 0 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.nw-author__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.nw-author__links a { display: inline-block; padding: 6px 12px; font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--r-pill); }
.nw-author__links a:hover { border-color: currentColor; }

/* Front: lead story with photo, top-stories rail, "Just in" row */
.nw-front { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
.nw-front__lead { display: grid; gap: 22px; }
.nw-front__media {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
	border-radius: var(--r-tile); background: var(--night-2, #1a1a1a);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -28px rgba(0, 0, 0, .55);
}
.nw-front__media > img, .nw-front__media > .nw-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.nw-front__lead:hover .nw-front__media > img, .nw-front__lead:hover .nw-front__media > .nw-ph { transform: scale(1.025); }
/* The one loud element: a glass plate on the photo, same material as the nav and the market capsules. */
.nw-front__plate {
	position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
	padding: 8px 14px; font: 600 .82rem/1.2 var(--sans); color: #fff;
	background: rgba(14, 14, 14, .42); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-pill);
	-webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.nw-front__plate time { font-weight: 500; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.nw-front__src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-front__src + time { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); }
.nw-front__body { display: grid; justify-items: start; gap: 14px; }
.nw-front__title {
	max-width: 24em; margin: 0;
	font-size: clamp(1.75rem, 1.05rem + 1.9vw, 2.75rem); font-weight: 780; letter-spacing: -.024em; line-height: 1.08; text-wrap: balance;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-front__title a { text-decoration: none; }
.nw-front__title a:hover { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .14em; }
.nw-front__stand {
	max-width: 64ch; margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-front__rail { padding-left: 32px; border-left: 1px solid var(--rule); }
.nw-front__rail > .nw-label { margin: 0 0 6px; color: var(--muted); }
.nw-rail { display: grid; margin: 0; padding: 0; list-style: none; }
.nw-rail__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--rule); }
.nw-rail__item:first-child { border-top: 0; }
.nw-rail__title {
	font-size: 1.0625rem; font-weight: 700; letter-spacing: -.008em; line-height: 1.3; text-decoration: none; text-wrap: pretty;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-rail__item:hover .nw-rail__title { text-decoration: underline; text-decoration-thickness: .06em; }
.nw-rail__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.nw-rail__thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--night-2, #1a1a1a); }
.nw-rail__thumb img, .nw-rail__thumb .nw-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-rail__thumb .nw-credit { display: none; } /* Too small to read; the credit shows on the story page. */
.nw-rail__item .nw-stretch:focus-visible { outline: none; }
.nw-rail__item .nw-stretch:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 12px; }

.nw-front__latest { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
.nw-front__latest > .nw-label { margin: 2px 0 0; color: var(--muted); }
.nw-justin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 36px; margin: 0; padding: 0; list-style: none; }
.nw-justin li { display: grid; align-content: start; gap: 6px; }
.nw-justin time { font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--link); }
.nw-justin a {
	font-size: .95rem; font-weight: 600; line-height: 1.38; text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-justin a:hover { text-decoration: underline; }

.nw-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nw-tile .nw-stretch:focus-visible, .nw-card .nw-stretch:focus-visible { outline: none; }
.nw-tile .nw-stretch:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-tile); }
.nw-card .nw-stretch:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-card); }

/* ==========================================================================
   Sections (cream)
   ========================================================================== */
.nw-sec { padding: var(--sec-pad) 0; }
.nw-sec--cream { background: var(--cream); --card: var(--cream-2); }
.nw-sec--paper { background: var(--cream-2); --card: var(--paper); }
:root[data-theme="dark"] .nw-sec--paper { --card: #1f1f1f; }
.nw-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.nw-sec__head .nw-label { margin-bottom: 8px; }
.nw-sec__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }

/* Grid + cards */
.nw-grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.nw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nw-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card);
	transition: transform var(--ease), box-shadow var(--ease);
}
.nw-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nw-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.nw-card__title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.nw-card__title a { text-decoration: none; }
.nw-card__title a:hover { text-decoration: none; color: inherit; }
.nw-card__ex { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card .nw-meta { margin-top: auto; }
.nw-card--compact { flex-direction: row; align-items: center; }
.nw-card--compact .nw-media { flex: 0 0 120px; }

/* Media: fixed 16:9 box, no layout shift */
.nw-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.nw-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.nw-card:hover .nw-media img { transform: scale(1.03); }
.nw-media--hero { border-radius: var(--r-tile); }
.nw-ph {
	display: block; background:
		radial-gradient(55% 70% at var(--px, 20%) var(--py, 25%), var(--nw-mesh-1) 0, transparent 70%),
		radial-gradient(60% 75% at calc(100% - var(--px, 20%)) calc(100% - var(--py, 25%)), var(--nw-mesh-2) 0, transparent 70%),
		radial-gradient(70% 80% at 50% 115%, var(--nw-mesh-3) 0, transparent 75%),
		var(--navy);
}
.nw-media .nw-ph { position: absolute; inset: 0; }

/* Wire band */
.nw-wire { padding: var(--sec-pad) 0; }
.nw-wire__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nw-wire__list li {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px;
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); transition: transform var(--ease), border-color var(--ease);
}
.nw-wire__list li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.nw-wire__head { font-size: 1rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.nw-wire__head:hover { text-decoration: underline; }
.nw-wire__src { flex: 0 0 auto; font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--link); text-decoration: none; }
a.nw-wire__src::after { content: " \2197"; }
a.nw-wire__src:hover { text-decoration: underline; }

/* CTA band */
.nw-cta {
	position: relative; overflow: hidden; padding: 96px 0; background:
		radial-gradient(50% 80% at 100% 0%, color-mix(in srgb, var(--nw-mesh-1) 45%, transparent), transparent 70%),
		radial-gradient(40% 70% at 0% 100%, color-mix(in srgb, var(--nw-mesh-2) 40%, transparent), transparent 70%),
		var(--navy);
}
.nw-cta__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.nw-cta .nw-label { color: var(--ink-soft); }
.nw-cta__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.nw-cta__text { max-width: 44ch; margin: 20px 0 0; color: var(--ink-soft); }
.nw-newsletter--cta { padding: 28px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-tile); }
.nw-newsletter__label { display: block; margin-bottom: 10px; font: 600 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nw-newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.nw-newsletter__row input { flex: 1 1 200px; }
.nw-newsletter input {
	min-height: 48px; padding: 0 16px; font: 1rem var(--sans); color: #fff;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r-input);
}
.nw-newsletter input::placeholder { color: var(--muted); }
.nw-newsletter input:disabled { opacity: .7; }
.nw-footer__note { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }

/* ==========================================================================
   Archive header + body
   ========================================================================== */
.nw-archhead { padding-bottom: 56px; }
.nw-archhead .nw-h1 { max-width: 18em; }
.nw-archhead__desc { max-width: 60ch; margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); }
.nw-archhead__desc p { margin: 0; }
.nw-archhead .nw-searchform { max-width: 560px; margin-top: 24px; }
.nw-archhead__author { display: flex; align-items: center; gap: 28px; }
.nw-archhead .nw-author__img { width: 112px; height: 112px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); }
.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nw-chips a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: .9rem; font-weight: 600; text-decoration: none;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-pill);
	transition: background var(--ease), color var(--ease), transform var(--ease);
}
.nw-chips a:hover { background: var(--nw-accent-2); border-color: var(--nw-accent-2); color: var(--nw-on-accent-2); transform: translateY(-1px); }
.nw-body { padding: var(--sec-pad) 0; background: var(--cream); --card: var(--cream-2); margin-bottom: calc(var(--sec-pad) * -1); }

.nw-crumbs { margin-bottom: 20px; font-size: .875rem; color: var(--muted); }
.nw-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.nw-crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .6; }
.nw-crumbs a { text-decoration: none; }
.nw-crumbs a:hover { text-decoration: underline; }
.nw-crumbs [aria-current] { color: var(--ink); }

/* Section feed: cards (default) or a headline list. The saved choice sits on <html data-nw-view>; wire sections
   open as a list until the reader picks a view. */
.nw-feedbar { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.nw-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: var(--r-pill); }
.nw-seg__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px;
	font: 600 .875rem/1 var(--sans); color: var(--ink-soft); background: none; border: 0; border-radius: var(--r-pill); cursor: pointer;
	transition: background var(--ease), color var(--ease);
}
.nw-seg__btn:hover { color: var(--ink); }
.nw-seg__btn[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.nw-seg__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nw-feed { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.nw-feed .nw-card__ex { display: none; }
.nw-meta__by { font-weight: 700; color: var(--ink); }
.nw-meta__by::after { content: " \2022 "; font-weight: 500; color: var(--ink-soft); }
.nw-feed .nw-meta__time { display: none; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card {
	flex-direction: row; align-items: flex-start; gap: 20px; padding: 20px 0;
	background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; overflow: visible;
}
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card:first-child { padding-top: 0; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card:hover { transform: none; box-shadow: none; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-media { flex: 0 0 176px; border-radius: 10px; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card__body { gap: 8px; padding: 0; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-credit { display: none; } /* Too small to read; the credit shows on the story page. */
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card__title { font-size: 1.25rem; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card:hover .nw-card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card__ex { display: -webkit-box; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-meta { margin-top: 2px; font-size: .8125rem; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-meta__time { display: inline; }
:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card .nw-stretch:focus-visible::after { border-radius: 10px; }
@media (max-width: 639px) {
	.nw-feedbar { justify-content: flex-start; margin-bottom: 16px; }
	:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card { gap: 14px; padding: 16px 0; }
	:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-media { flex-basis: 104px; border-radius: 8px; }
	:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card__title { font-size: 1.05rem; }
	:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-card__ex { font-size: .9rem; }
	:is(:root[data-nw-view="list"] .nw-feed, :root:not([data-nw-view]) .nw-feed--list) .nw-chip { display: none; }
}
.nw-feed__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.nw-feed__end { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 18px;
	font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-pill);
	transition: transform var(--ease), background var(--ease), color var(--ease);
}
a.page-numbers:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { background: none; border-color: transparent; }

/* Search form */
.nw-searchform { display: flex; gap: 8px; }
.nw-searchform input[type="search"] {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: 1rem var(--sans); color: var(--ink);
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-input);
}
.nw-dark .nw-searchform input[type="search"] { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }

/* ==========================================================================
   Article
   ========================================================================== */
.nw-article__head { max-width: 900px; margin-bottom: 32px; }
.nw-article__head .nw-kicker--chip { margin-bottom: 20px; }
.nw-article__head .nw-title { margin-bottom: 20px; }
.nw-standfirst { max-width: 60ch; margin: 0 0 24px; font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); }
.nw-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.nw-byline__img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.nw-byline__text { display: flex; flex-direction: column; gap: 2px; }
.nw-byline__by { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.nw-byline__by a { text-decoration: none; }
.nw-byline__by a:hover { text-decoration: underline; }
.nw-hero-img { margin: 0 0 48px; }
.nw-hero-img figcaption, .wp-caption-text { margin-top: 10px; font-size: .875rem; color: var(--muted); }

.nw-article-wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 320px); justify-content: space-between; gap: 48px 64px; align-items: start; }
.nw-sidebar { position: sticky; top: calc(var(--nav-offset) + 12px); }
.nw-side-block { padding: 24px; background: var(--cream); border-radius: var(--r-hero); }
.nw-side-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.nw-side-list li:first-child { border-top: 0; padding-top: 4px; }
.nw-side-list a { display: block; margin-bottom: 4px; font-size: .95rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.nw-side-list a:hover { text-decoration: underline; }
.nw-side-block + .nw-ad { margin-top: 28px; }

.nw-prose { font-size: 1.1875rem; line-height: 1.7; }
.nw-prose > * { max-width: 100%; }
.nw-prose p, .nw-prose ul, .nw-prose ol, .nw-prose blockquote, .nw-prose figure, .nw-prose table { margin: 0 0 1.35em; }
.nw-prose h2 { margin: 1.8em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.nw-prose h3 { margin: 1.6em 0 .5em; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.nw-prose a { color: var(--link); text-decoration-thickness: .1em; }
.nw-prose a:hover { text-decoration-thickness: .16em; }
.nw-prose ul { list-style: disc; padding-left: 1.4em; }
.nw-prose ol { list-style: decimal; padding-left: 1.4em; }
.nw-prose li { margin-bottom: .4em; }
.nw-prose blockquote { padding: 4px 0 4px 24px; font-size: 1.3rem; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; border-left: 4px solid var(--nw-accent); }
.nw-prose blockquote p { margin: 0; }
.nw-prose img { border-radius: var(--r-card); }
.nw-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 1rem; }
.nw-prose th, .nw-prose td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.nw-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.nw-prose figcaption { font-size: .875rem; color: var(--muted); }

.nw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.nw-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: .875rem; font-weight: 600; text-decoration: none; background: var(--cream); border-radius: var(--r-pill); }
.nw-tags a:hover { background: var(--nw-accent-2); color: var(--nw-on-accent-2); }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0; padding: 20px 0; border-block: 1px solid var(--rule); }
.nw-share .nw-label { margin: 0; }
.nw-share ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-share a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: .9rem; font-weight: 600; text-decoration: none;
	border: 1px solid var(--rule); border-radius: var(--r-pill); transition: background var(--ease), color var(--ease), transform var(--ease);
}
.nw-share a:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.nw-author { display: flex; gap: 20px; align-items: center; padding: 24px; margin-bottom: 32px; background: var(--cream); border-radius: var(--r-hero); }
.nw-author__img { flex: 0 0 auto; border-radius: 50%; }
.nw-author__name { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; }
.nw-author__name a { text-decoration: none; }
.nw-author__bio { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }

.nw-related { margin-top: var(--sec-pad); padding: var(--sec-pad) 0; background: var(--cream); --card: var(--cream-2); margin-bottom: calc(var(--sec-pad) * -1); }
.nw-related .nw-sec__title { margin-bottom: 28px; }

/* Wire post + pages */
.nw-wirepost, .nw-page { padding-block: 8px 24px; }
.nw-wirepost .nw-kicker--chip { margin-bottom: 20px; }
.nw-wirepost .nw-title, .nw-page .nw-title { margin-bottom: 16px; }
.nw-wirepost .nw-standfirst { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--nw-accent); }
.nw-wirepost .nw-standfirst p { margin: 0; }
.nw-wirepost__src { font-size: .95rem; color: var(--muted); }
.nw-wirepost__src a { color: var(--link); }
.nw-wirepost__orig { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.nw-wirepost__orig a { color: var(--link); }
.nw-wirepost__note { margin-top: 24px; font-size: .875rem; color: var(--muted); }
.nw-page .nw-prose { margin-top: 24px; }
.nw-404 { padding-block: 24px; }
.nw-404 p { color: var(--muted); }
.nw-404 .nw-searchform { margin: 24px 0; }

/* Comments */
.nw-comments { margin-top: 36px; }
.nw-comments .nw-sec__title { font-size: 1.4rem; }
.nw-comments__list { margin-block: 16px; }
.nw-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.nw-comments .children { padding-left: 24px; }
.nw-comments label { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; }
.nw-comments input[type="text"], .nw-comments input[type="email"], .nw-comments input[type="url"], .nw-comments textarea,
.nw-form input[type="text"], .nw-form input[type="email"], .nw-form textarea, .nw-form select {
	width: 100%; padding: 12px 14px; font: 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-input);
}
.nw-form label { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; }
.nw-form p { margin-bottom: 16px; }
.nw-form__hp { position: absolute; left: -9999px; }
.nw-form__notice { padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r-input); background: var(--cream); border: 1px solid var(--rule); }

/* WP core */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }

/* ==========================================================================
   Ad slots (reserved sizes, no layout shift)
   ========================================================================== */
.nw-ad { display: flex; align-items: center; justify-content: center; margin: 24px auto; background: var(--cream); }
.nw-ad--header, .nw-ad--footer { min-height: 90px; max-width: 970px; }
.nw-ad--in_article { min-height: 280px; }
.nw-ad--sidebar { min-height: 600px; width: 300px; max-width: 100%; }
@media (max-width: 760px) {
	.nw-ad--header, .nw-ad--footer { min-height: 100px; max-width: 100%; }
	.nw-ad--in_article { min-height: 250px; }
	.nw-ad--sidebar { min-height: 250px; width: 100%; }
}
.nw-adbar { padding: calc(var(--nav-offset) + 8px) var(--gutter) 0; background: var(--cream); }
.nw-main.has-adbar { padding-top: 0; }
.nw-adbar + .nw-main.has-adbar .nw-wrap:first-child { padding-top: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.nw-footer { margin-top: 0; font-size: .95rem; line-height: 1.55; overflow: hidden; }
.nw-footer a { text-decoration: none; }
.nw-footer a:hover { color: #fff; text-decoration: underline; }
.nw-footer__top { padding: 64px 0 24px; }
.nw-footer__mark {
	margin: 0; font-size: clamp(3rem, 12vw, 10rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; overflow-wrap: anywhere;
	background: linear-gradient(180deg, color-mix(in srgb, var(--nw-mesh-1) 70%, #fff) 0%, rgba(255, 255, 255, .04) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.nw-footer__tag { margin: 16px 0 0; max-width: 40ch; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.nw-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 40px 32px; padding-block: 40px; border-top: 1px solid var(--rule); }
.nw-footer__brand { margin-bottom: 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.nw-footer__brand .custom-logo { max-height: 44px; width: auto; }
.nw-footer__logo { display: block; height: 36px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.nw-footer__blurb { margin: 0 0 20px; max-width: 36ch; color: var(--muted); }
.nw-footer__col h2 { margin-bottom: 16px; font: 600 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nw-footer__col li { margin-bottom: 8px; }
.nw-footer__col a { display: inline-block; padding: 2px 0; }
.nw-footer__col p { color: var(--muted); margin-bottom: 12px; }
.nw-footer .nw-newsletter { display: flex; flex-direction: column; gap: 8px; }
.nw-footer .nw-newsletter button { width: 100%; }
.nw-footer__network { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px; border-top: 1px solid var(--rule); }
.nw-footer__network h2 { font: 600 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nw-footer__network ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nw-footer__bar { border-top: 1px solid var(--rule); background: rgba(255, 255, 255, .03); }
.nw-footer__bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 20px; color: var(--muted); font-size: .875rem; }
.nw-footer__bar p { margin: 0; }
.nw-totop { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.nw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.nw-footer__about, .nw-footer__news { grid-column: span 3; }
	.nw-footer__blurb { max-width: 60ch; }
}
@media (max-width: 899px) {
	.nw-cta__in { grid-template-columns: 1fr; }
	.nw-front { grid-template-columns: 1fr; gap: 32px; }
	.nw-front__rail { padding-left: 0; border-left: 0; }
	.nw-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.nw-rail__item:nth-child(2) { border-top: 0; }
	.nw-front__latest { grid-template-columns: 1fr; gap: 14px; }
	.nw-justin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-wire__list { grid-template-columns: 1fr; }
	.nw-article-wrap { grid-template-columns: minmax(0, 1fr); }
	.nw-sidebar { position: static; }
	.nw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-cta { padding: 64px 0; }
}
@media (max-width: 639px) {
	.nw-sec__head { flex-direction: column; align-items: flex-start; }
	.nw-grid--4, .nw-grid--3 { grid-template-columns: 1fr; }
	.nw-front { margin-top: 20px; }
	.nw-front__media { border-radius: 18px; }
	.nw-front__plate { left: 12px; bottom: 12px; font-size: .78rem; }
	.nw-rail, .nw-justin { grid-template-columns: 1fr; }
	.nw-rail__item:nth-child(2) { border-top: 1px solid var(--rule); }
	.nw-rail__item { grid-template-columns: minmax(0, 1fr) 84px; }
	.nw-footer__grid { grid-template-columns: 1fr 1fr; }
	.nw-footer__about, .nw-footer__news { grid-column: span 2; }
	.nw-archhead__author { flex-direction: column; align-items: flex-start; }
	.nw-author { flex-direction: column; align-items: flex-start; }
	.nw-status { margin-bottom: 28px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.nw-ticker__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.nw-ticker__track { width: auto; }
	.nw-ticker__track li[aria-hidden="true"] { display: none; }
	.nw-card:hover, .nw-tile:hover, .nw-wire__list li:hover { transform: none; }
	.nw-card:hover .nw-media img, .nw-tile:hover > img, .nw-tile:hover > .nw-ph { transform: none; }
	.nw-front__lead:hover .nw-front__media > img, .nw-front__lead:hover .nw-front__media > .nw-ph { transform: none; }
}

.home .nw-main { padding-bottom: 0; }


/* ==========================================================================
   Day mode for theme-following bands (hero, wire band, CTA, archive headers)
   ========================================================================== */
:root:not([data-theme="dark"]) .nw-dark:not(.nw-footer) { background: var(--cream); color: var(--ink); }
:root:not([data-theme="dark"]) .nw-hero .nw-pill,
:root:not([data-theme="dark"]) .nw-ticker { background: var(--paper); border-color: var(--rule); }
:root:not([data-theme="dark"]) .nw-dark:not(.nw-footer) .nw-pillink { border-color: var(--ink); }
:root:not([data-theme="dark"]) .nw-dark:not(.nw-footer) .nw-pillink:hover { color: var(--paper); }
:root:not([data-theme="dark"]) .nw-dot,
:root:not([data-theme="dark"]) .nw-dot::after { background-color: var(--nw-accent); border-color: var(--nw-accent); }
:root:not([data-theme="dark"]) .nw-dot::after { background: none; }
:root:not([data-theme="dark"]) .nw-market__c--up { color: #0b7a55; }
:root:not([data-theme="dark"]) .nw-market__c--down { color: #c8102e; }
:root:not([data-theme="dark"]) .nw-hero .nw-btn--light { color: var(--paper); background: var(--ink); }
:root:not([data-theme="dark"]) .nw-front__body .nw-chip--dark { background: color-mix(in srgb, var(--nw-accent-2) 12%, transparent); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="dark"]) .nw-front__media { box-shadow: 0 24px 50px -30px rgba(20, 30, 25, .45); }
:root:not([data-theme="dark"]) .nw-cta {
	background:
		radial-gradient(50% 80% at 100% 0%, color-mix(in srgb, var(--nw-mesh-1) 22%, transparent), transparent 70%),
		radial-gradient(40% 70% at 0% 100%, color-mix(in srgb, var(--nw-mesh-2) 18%, transparent), transparent 70%),
		var(--cream-2);
}
:root:not([data-theme="dark"]) .nw-dark:not(.nw-footer) .nw-searchform input[type="search"] { color: var(--ink); background: var(--paper); border-color: var(--rule); }
/* Image tiles keep light text over their dark gradient in both modes. */
.nw-tile--lead, .nw-tile--s0, .nw-tile--s1, .nw-tile--s2, .nw-tile--s3 { --ink: #f3efe6; --ink-soft: #d6d2c8; --muted: #c9c4ba; color: var(--ink); }

/* Market strip note */
.nw-market__note { margin: -24px 0 32px; font: .7rem/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }

/* Publisher images and their credit */
.nw-extimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-credit {
	position: absolute; top: 8px; right: 8px; z-index: 1; max-width: calc(100% - 16px); padding: 3px 7px; overflow: hidden;
	font: 600 .62rem/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; text-overflow: ellipsis;
	color: #fff; background: rgba(10, 10, 10, .62); border-radius: 6px; pointer-events: none;
}
.nw-wirepost__fig { margin: 16px 0 20px; }
.nw-wirepost__fig figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.nw-wirepost__fig figcaption a { color: var(--link); }

/* Homepage ad slots */
.nw-ad--home_top, .nw-ad--home_mid { min-height: 90px; max-width: 970px; }
@media (max-width: 760px) {
	.nw-ad--home_top, .nw-ad--home_mid { min-height: 250px; max-width: 100%; }
}

/* Wire sections: one box per section, two headlines each */
.nw-secgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nw-secgrid + .nw-ad, .nw-ad + .nw-secgrid { margin-top: 24px; }
.nw-secbox { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); }
.nw-secbox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--nw-accent); }
.nw-secbox__name { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.nw-secbox__name a, .nw-secbox__title a { color: var(--ink); text-decoration: none; }
.nw-secbox__name a:hover, .nw-secbox__title a:hover { text-decoration: underline; }
.nw-secbox__more { flex: 0 0 auto; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--link); text-decoration: none; }
.nw-secbox__item { display: flex; flex-direction: column; gap: 6px; }
.nw-secbox__item + .nw-secbox__item { padding-top: 12px; border-top: 1px solid var(--rule); }
.nw-secbox__item--lead .nw-media { border-radius: 10px; margin-bottom: 4px; }
.nw-secbox__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.nw-secbox .nw-meta { margin: 0; font-size: .8rem; }
/* "More sections": fills the last row of the grid. Two cells wide when one section box is alone on the row. */
.nw-secbox--more.is-wide { grid-column: span 2; }
.nw-secmore { display: grid; margin: 0; padding: 0; list-style: none; column-gap: 28px; }
.nw-secbox--more.is-wide .nw-secmore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nw-secmore li { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.nw-secmore li:last-child, .nw-secbox--more.is-wide .nw-secmore li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.nw-secmore__sec { font-size: .78rem; font-weight: 700; color: var(--link); text-decoration: none; }
.nw-secmore__title { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-secmore a:hover { text-decoration: underline; }
.nw-secmore .nw-meta { margin: 0; font-size: .8rem; }
@media (max-width: 1000px) { .nw-secgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nw-secgrid { grid-template-columns: 1fr; } .nw-secbox--more.is-wide { grid-column: auto; } .nw-secbox--more.is-wide .nw-secmore { grid-template-columns: 1fr; } }

/* Markets: one glass capsule per instrument, scrolling like the breaking ticker */
.nw-mkt { margin: -16px 0 10px; }
.nw-mkt__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nw-mkt__track { display: flex; width: max-content; padding: 4px 0; animation: nw-marquee 45s linear infinite; }
.nw-mkt:hover .nw-mkt__track, .nw-mkt:focus-within .nw-mkt__track { animation-play-state: paused; }
.nw-mkt__cap {
	display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; margin-right: 10px; padding: 9px 16px; white-space: nowrap;
	font-family: var(--mono); font-size: .8rem;
	background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-pill);
	box-shadow: 0 4px 14px rgba(10, 10, 10, .06), inset 0 1px 0 rgba(255, 255, 255, .5);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.nw-mkt__cap { -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
}
:root:not([data-theme="dark"]) .nw-mkt__cap { background: rgba(255, 255, 255, .72); border-color: var(--rule); }
:root[data-theme="dark"] .nw-mkt__cap { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.nw-mkt + .nw-market__note { margin: 0 0 32px; }
@media (prefers-reduced-motion: reduce) {
	.nw-mkt__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.nw-mkt__track { animation: none; }
	.nw-mkt__cap[aria-hidden="true"] { display: none; }
}
.nw-secgrid__ad { grid-column: 1 / -1; }
.nw-secgrid__ad .nw-ad { margin: 0 auto; }

/* Wire article: key points, excerpt label, source block at the end */
.nw-keypoints { margin: 24px 0; padding: 20px 24px; background: var(--cream-2); border: 1px solid var(--rule); border-left: 4px solid var(--nw-accent); border-radius: var(--r-card); }
.nw-keypoints__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.1rem; font-weight: 800; }
.nw-keypoints__tag { padding: 3px 8px; font: 600 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream); border: 1px solid var(--rule); border-radius: var(--r-pill); }
.nw-keypoints ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 1.05rem; line-height: 1.55; list-style: disc; }
.nw-keypoints li::marker { color: var(--nw-accent); }
.nw-keypoints__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.nw-wirepost__exh { margin: 24px 0 0; color: var(--muted); }
.nw-wirepost__source { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.nw-wirepost__source .nw-wirepost__note { margin-top: 16px; }
:root[data-theme="dark"] .nw-keypoints { background: var(--cream-2); }
.nw-story { margin: 28px 0; }
.nw-story > .nw-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.nw-story .nw-prose > .nw-ad, .nw-story .nw-prose > div { margin: 8px 0 1.35em; }
.nw-licence { margin: 20px 0; padding: 12px 16px; font-size: .9rem; line-height: 1.5; color: var(--muted); background: var(--cream-2); border: 1px solid var(--rule); border-radius: var(--r-card); }
.nw-licence a { color: var(--nw-accent); font-weight: 600; }
.nw-fulltext { margin-top: 8px; }
.nw-fulltext table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.nw-fulltext table table { display: table; }
.nw-fulltext th, .nw-fulltext td { padding: 6px 8px; border: 1px solid var(--rule); text-align: left; }
.nw-fulltext .nw-counter, .nw-fulltext img[width="1"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
