/*
Theme Name: Newsline
Theme URI: https://example.com/newsline
Author: Ric
Description: A fast, fully customizable digital news theme. 300+ Customizer options control colours, dark mode, animations, featured videos, fonts, layout, header, breaking-news ticker, homepage sections (drag to reorder), article page, archives, Most Read, newsletter, ads, footer, every text label, SEO and custom code. Built on core WordPress with no plugins required.
Version: 2.1.0
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsline
Tags: news, blog, two-columns, left-sidebar, right-sidebar, custom-logo, custom-colors, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens (defaults — the Customizer overrides these)
   ========================================================================== */
:root {
	--accent: #e4002b;
	--accent-text: #fff;
	--ink: #0b0f19;
	--text: #1a1d24;
	--muted: #5b6270;
	--line: #e6e8ec;
	--bg: #fff;
	--surface: #f4f5f7;
	--card: #fff;
	--link: var(--accent);
	--header-bg: rgba(255, 255, 255, .92);
	--header-color: var(--ink);
	--topbar-bg: #0b0f19;
	--topbar-color: #fff;
	--ticker-bg: var(--surface);
	--ticker-label: var(--accent);
	--band-bg: #0b0f19;
	--band-color: #fff;
	--nl-bg: var(--surface);
	--nl-color: var(--ink);
	--footer-bg: #0b0f19;
	--footer-color: #b8bdc7;
	--footer-head: #fff;
	--font-head: "Inter Tight", system-ui, sans-serif;
	--font-ui: "Inter", system-ui, sans-serif;
	--font-body: "Source Serif 4", Georgia, serif;
	--fs-base: 16px;
	--fs-article: 19px;
	--head-scale: 1;
	--head-weight: 700;
	--head-track: -.02em;
	--wrap: 1280px;
	--sidebar: 340px;
	--radius: 10px;
	--radius-sm: 6px;
	--btn-radius: 999px;
	--media-ratio: 16/10;
	--header-h: 72px;
	--logo-h: 44px;
	--logo-h-m: 34px;
	--wordmark: 30px;
	--hero-h: 520px;
	--hero-shade: .88;
	--single-width: 700px;
	--opinion-gray: 1;
	--gutter: clamp(16px, 3vw, 32px);
	--shadow: 0 1px 2px rgba(11, 15, 25, .06), 0 8px 24px rgba(11, 15, 25, .06);
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #f2f4f7;
	--text: #e3e6eb;
	--muted: #9aa3b2;
	--line: #262c36;
	--bg: #0d1117;
	--surface: #151a22;
	--card: #151a22;
	--header-bg: rgba(13, 17, 23, .9);
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--fs-base)/1.55 var(--font-ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: var(--head-track); margin: 0 0 .5em; font-weight: var(--head-weight); }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--accent-text); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { margin-block: clamp(32px, 5vw, 56px); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border: 0; border-radius: var(--btn-radius); cursor: pointer;
	font: 600 15px/1 var(--font-ui); transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-accent, .btn-accent:hover { background: var(--accent); color: var(--accent-text); }
.btn-dark, .btn-dark:hover { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--header-color);
	transition: background .15s;
}
.icon-btn:hover { background: var(--surface); }

/* ==========================================================================
   Top bar & header
   ========================================================================== */
.topbar { background: var(--topbar-bg); color: var(--topbar-color); font-size: 13px; }
.topbar a { color: inherit; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.topbar-date { font-weight: 500; opacity: .85; white-space: nowrap; }
.topbar-text { opacity: .9; font-weight: 500; }
.topbar-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-nav a:hover { opacity: .75; color: inherit; }
.social { display: flex; flex-wrap: wrap; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; opacity: .85; color: inherit; }
.social a:hover { opacity: 1; color: inherit; background: rgba(255,255,255,.12); }
.social .icon { width: 16px; height: 16px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg);
	border-bottom: 1px solid var(--line);
}
.header--blur { backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
.header--static { position: relative; }
.admin-bar .site-header { top: 32px; }
.admin-bar .header--static { top: 0; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.brand .custom-logo, .brand .logo-dark { max-height: var(--logo-h); width: auto; }
.brand .logo-dark { display: none; }
.logo-by-width .brand .custom-logo, .logo-by-width .brand .logo-dark { width: var(--logo-w); max-width: 100%; height: auto; max-height: none; }
.brand .custom-logo-link { display: block; }
[data-theme="dark"] .brand.has-dark-logo .custom-logo-link { display: none; }
[data-theme="dark"] .brand.has-dark-logo .logo-dark { display: block; }
[data-theme="dark"] .logo-invert .brand .custom-logo { filter: invert(1) hue-rotate(180deg); }
.wordmark { font: 800 var(--wordmark)/1 var(--font-head); letter-spacing: -.045em; color: var(--header-color); white-space: nowrap; }
.wordmark:hover { color: var(--header-color); }
.wordmark-dot { color: var(--accent); }
.site-tagline { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font: 600 15px/1 var(--font-ui); color: var(--header-color); white-space: nowrap; }
.primary-nav .menu > li > a { position: relative; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-category-ancestor > a::after,
.primary-nav .current-post-ancestor > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; z-index: 5;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 10px 12px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Centred / stacked header layouts */
@media (min-width: 1025px) {
	.header--centered .header-inner, .header--stacked .header-inner {
		display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "left brand actions" "nav nav nav"; gap: 0 20px; padding-top: 18px;
	}
	.header--stacked .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; }
	.header--centered .brand { grid-area: brand; align-items: center; text-align: center; }
	.header--stacked .brand { grid-area: brand; }
	.header--centered .header-actions, .header--stacked .header-actions { grid-area: actions; justify-self: end; }
	.header--centered .primary-nav, .header--stacked .primary-nav { grid-area: nav; margin-top: 16px; border-top: 1px solid var(--line); padding-block: 6px; }
	.header--centered .primary-nav .menu { justify-content: center; }
	.header--centered .header-left { grid-area: left; }
}
.header-left { display: none; }

.search-panel { border-top: 1px solid var(--line); padding: 16px 0; background: var(--bg); }
.search-form { display: flex; gap: 8px; max-width: 720px; }
.search-panel .search-form { margin-inline: auto; }
.search-field {
	flex: 1; min-width: 0; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: var(--btn-radius);
	background: var(--surface); font-size: 16px; outline: none;
}
.search-field:focus { border-color: var(--accent); background: var(--bg); }
.search-form .btn { padding: 0 18px; }

/* Ticker */
.ticker { background: var(--ticker-bg); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 44px; overflow: hidden; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	padding: 6px 12px; border-radius: 4px; background: var(--ticker-label); color: var(--accent-text);
	font: 800 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-list { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track:hover .ticker-list { animation-play-state: paused; }
.ticker-list li { font: 600 14px/1 var(--font-ui); white-space: nowrap; position: relative; }
.ticker-list li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header-ad, .ad-slot--inline { text-align: center; }
.header-ad { padding-block: 16px; }
.ad-label { display: block; font: 600 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.ad-slot img { margin-inline: auto; }

/* ==========================================================================
   Story components
   ========================================================================== */
.kicker {
	display: inline-block; margin-bottom: 8px;
	font: 700 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--accent);
}
.kicker:hover { color: var(--ink); }
.kicker--lg { font-size: 13px; }
.kicker-normalcase .kicker { text-transform: none; letter-spacing: 0; font-size: 13px; }
.kicker-pill .kicker { background: var(--accent); color: var(--accent-text); padding: 5px 9px 4px; border-radius: 4px; }
.kicker-pill .kicker:hover { color: var(--accent-text); filter: brightness(1.1); }
.kicker-none .story .kicker { display: none; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.meta-author { font-weight: 600; color: var(--text); }
.meta-sep { opacity: .6; }

.story { position: relative; }
.story-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: var(--media-ratio); }
.story-media { position: relative; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-title { font-size: calc(19px * var(--head-scale)); margin: 0 0 8px; line-height: 1.22; }
.story-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
.story:hover .story-title a { background-size: 100% 1.5px; color: var(--ink); }
.story-excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 10px; }

.thumb-fallback {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 85%, #000) 0%, #0b0f19 70%);
}
.thumb-fallback span { font: 800 48px/1 var(--font-head); color: rgba(255,255,255,.9); letter-spacing: -.04em; }

.story--card .story-body { padding-top: 14px; }

/* Overlay (lead story) */
.story--overlay { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: var(--hero-h); color: #fff; }
.story--overlay .story-media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.story--overlay .story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,calc(var(--hero-shade) * .6)) 60%, rgba(0,0,0,var(--hero-shade)) 100%); }
.story--overlay .story-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3.5vw, 40px); z-index: 1; }
.story--overlay .kicker { background: var(--accent); color: var(--accent-text); padding: 6px 10px; border-radius: 4px; display: inline-block !important; }
.story--overlay .story-title { font-size: calc(clamp(28px, 3.6vw, 46px) * var(--head-scale)); line-height: 1.06; letter-spacing: -.03em; color: #fff; max-width: 22ch; margin-bottom: 12px; }
.story--overlay .story-title a:hover, .story--overlay:hover .story-title a { color: #fff; }
.story--overlay .story-excerpt { color: rgba(255,255,255,.85); font-size: 17px; max-width: 60ch; }
.story--overlay .meta, .story--overlay .meta-author { color: rgba(255,255,255,.8); }

/* Lead as card */
.story--lead .story-media { aspect-ratio: auto; height: var(--hero-h); }
.story--lead .story-title { font-size: calc(clamp(26px, 3.2vw, 40px) * var(--head-scale)); line-height: 1.08; }
.story--lead .story-excerpt { font-size: 17px; }

/* List (thumb right) */
.story--list { display: grid; grid-template-columns: 1fr 112px; gap: 16px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line); }
.story--list:last-child { border-bottom: 0; }
.story--list .story-media { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.story--list .story-body { grid-column: 1; grid-row: 1; }
.story--list .story-title { font-size: calc(16.5px * var(--head-scale)); }
.story--list .kicker { font-size: 11px; margin-bottom: 6px; }
.story--list .thumb-fallback span { font-size: 26px; }

/* Text only */
.story--text { padding-block: 14px; border-bottom: 1px solid var(--line); }
.story--text .story-title { font-size: calc(16.5px * var(--head-scale)); }

/* Section heading styles */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-top: 3px solid var(--ink); padding-top: 12px; }
.section-title { font-size: calc(20px * var(--head-scale)); margin: 0; display: flex; align-items: center; gap: 10px; }
.section-title span::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: 1px; }
.widget .section-title { border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 16px; }

.st-underline .section-head { border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); }
.st-underline .section-title span { display: inline-block; padding-bottom: 10px; margin-bottom: -1px; border-bottom: 3px solid var(--accent); }
.st-underline .widget .section-title { border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); }
.st-block .section-head { border-top: 0; padding-top: 0; border-bottom: 3px solid var(--accent); }
.st-block .section-title span { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 8px 14px 6px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.st-block .widget .section-title { border-top: 0; padding-top: 0; border-bottom: 3px solid var(--accent); }
.st-simple .section-head { border-top: 0; padding-top: 0; }
.st-simple .widget .section-title { border-top: 0; padding-top: 0; }
.st-underline .section-title span::before, .st-block .section-title span::before, .st-simple .section-title span::before { display: none; }

.see-all { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font-ui); color: var(--muted); }
.see-all .icon { width: 16px; height: 16px; transition: transform .2s; }
.see-all:hover .icon { transform: translateX(3px); }
.opinion-band .see-all { color: inherit; opacity: .8; }

/* Grids */
.grid { display: grid; gap: clamp(20px, 2.5vw, 28px); }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--rows { row-gap: 0; }
.grid--rows > .story--list:last-child, .grid--rows > .story--text:last-child { border-bottom: 1px solid var(--line); }
.center-btn { text-align: center; margin-top: 32px; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(20px, 3vw, 32px); }
.hero--full { grid-template-columns: minmax(0, 1fr); }
.hero--side-left .hero-lead { order: 2; }
.hero-lead { min-height: var(--hero-h); }
.hero--card .hero-lead { min-height: 0; }
.hero-side .section-head { margin-bottom: 4px; }
.hero-side .story:first-of-type { padding-top: 12px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: clamp(28px, 4vw, 56px); align-items: start; margin-block: clamp(32px, 5vw, 56px); }
.sidebar-left .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar-left .layout-side { order: -1; }
.layout.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout-main > .section:first-child { margin-top: 0; }
.layout--article { margin-top: 0; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 36px; }
.no-sticky-side .sticky-side { position: static; }

.cat-grid { display: grid; gap: 22px; }
.cat-section--feature .cat-grid { grid-template-columns: 1.25fr 1fr; gap: 0 28px; }
.cat-section--feature .cat-grid > .story:first-child { grid-row: span 20; }
.cat-section--feature .cat-grid > .story:first-child .story-title { font-size: calc(24px * var(--head-scale)); }
.cat-section--feature .story--list { padding-block: 14px; }
.cat-section--feature .story--list:nth-child(2) { padding-top: 0; }
.cat-section--row .cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-section--row .story-title { font-size: calc(16.5px * var(--head-scale)); }
.cat-section--grid .cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-section--list .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.cat-section--list .story--list:last-child { border-bottom: 1px solid var(--line); }
.layout--full .cat-section--feature .cat-grid { grid-template-columns: 1.5fr 1fr; }

.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { counter-increment: rank; display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; padding-block: 14px; border-bottom: 1px solid var(--line); font: 600 15.5px/1.35 var(--font-head); color: var(--ink); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before { content: counter(rank); font: 800 34px/1 var(--font-head); color: var(--accent); letter-spacing: -.05em; opacity: .9; }
.rank-list--thumbs li { grid-template-columns: 84px 1fr; gap: 14px; }
.rank-list--thumbs li::before { display: none; }
.rank-list--thumbs .rank-thumb { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.rank-list--thumbs .rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-list--thumbs .thumb-fallback span { font-size: 22px; }

.widget { font-size: 15px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding-block: 8px; border-bottom: 1px solid var(--line); }

/* Block widgets (default WordPress sidebar) */
.widget .wp-block-heading, .widget h2:not(.section-title) { font-size: 18px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 14px; }
.widget .wp-block-search__label { display: block; font: var(--head-weight) 18px/1.2 var(--font-head); color: var(--ink); border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 14px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-width: 0; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); }
.wp-block-search__button { padding: 0 18px; border: 0; border-radius: var(--btn-radius); background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; }
.widget .wp-block-latest-posts li, .widget .wp-block-categories li, .widget .wp-block-archives li { padding-block: 10px; font-weight: 500; }
.widget .wp-block-latest-comments { padding: 0; color: var(--muted); }

.opinion-band { background: var(--band-bg); color: var(--band-color); padding-block: clamp(40px, 6vw, 64px); margin-block: clamp(32px, 5vw, 56px); }
.opinion-band .section-head { border-color: var(--accent); }
.opinion-band .section-title { color: inherit; }
.opinion { border-left: 1px solid color-mix(in srgb, var(--band-color) 16%, transparent); padding-left: 20px; }
.opinion-avatar { border-radius: 50%; width: 56px; height: 56px; margin-bottom: 14px; filter: grayscale(var(--opinion-gray)); }
.opinion-author { display: block; font: 700 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 10px; }
.opinion-title { font: italic 400 calc(21px * var(--head-scale))/1.3 var(--font-body); color: inherit; letter-spacing: 0; }
.opinion-upright .opinion-title { font-style: normal; }
.opinion-title a:hover { color: inherit; opacity: .8; }

/* Newsletter */
.newsletter { background: var(--nl-bg); color: var(--nl-color); border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.newsletter h2 { font-size: calc(clamp(24px, 2.6vw, 32px) * var(--head-scale)); margin-bottom: 6px; color: inherit; }
.newsletter p { opacity: .8; margin: 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 14px 20px; border: 1.5px solid var(--line); border-radius: var(--btn-radius); background: var(--bg); color: var(--text); outline: none; }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-note { font-size: 12.5px; margin-top: 10px !important; }

/* ==========================================================================
   Article
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.article-header { max-width: 1100px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 24px; }
.article-header > * { max-width: 860px; }
.article-header--center { text-align: center; }
.article-header--center > * { margin-inline: auto; }
.article-header--center .byline { justify-content: center; }
.article-header--center .byline .share { margin-left: 0; }
.article-title { font-size: calc(clamp(32px, 4.6vw, 56px) * var(--head-scale)); line-height: 1.05; letter-spacing: calc(var(--head-track) - .015em); margin-bottom: 18px; }
.standfirst { font: 400 clamp(19px, 2vw, 23px)/1.45 var(--font-body); color: var(--muted); margin-bottom: 24px; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 18px; border-block: 1px solid var(--line); }
.byline-avatar { border-radius: 50%; }
.byline-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.byline-meta { color: var(--muted); font-size: 13px; }
.byline .share { margin-left: auto; }

.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: .15s; }
.share-btn .icon { width: 17px; height: 17px; }
.share-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-btn.copied { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-text) !important; }
.share-dark .share-btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-dark .share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.share-brand .share-btn { color: #fff; border: 0; }
.share-brand .share-whatsapp { background: #25d366; }
.share-brand .share-x { background: #000; }
.share-brand .share-facebook { background: #1877f2; }
.share-brand .share-linkedin { background: #0a66c2; }
.share-brand .share-telegram { background: #229ed9; }
.share-brand .share-email { background: #5b6270; }
.share-brand .share-copy { background: var(--accent); color: var(--accent-text); }
.share-brand .share-btn:hover { filter: brightness(1.12); color: #fff; }
.share-outline .share-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }

.article-hero { max-width: 1100px; margin-block: 8px 36px; }
.article-hero-media { position: relative; overflow: hidden; border-radius: var(--radius); }
.article-hero img { width: 100%; }
.article-hero-media img { display: block; }
.article-hero--above { margin-top: clamp(20px, 3vw, 32px); margin-bottom: 0; }
.article-hero--content { max-width: calc(var(--single-width) + 2 * var(--gutter)); }
.article-hero--full { max-width: none; padding-inline: 0; }
.article-hero--full .article-hero-media { border-radius: 0; }
.article-hero--full img { max-height: 80vh; object-fit: cover; }
.article-hero--full figcaption { padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.article-hero figcaption, .entry-content figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

.layout--article { max-width: 1100px; grid-template-columns: minmax(0, 1fr) min(var(--sidebar), 320px); }
.sidebar-left .layout--article { grid-template-columns: min(var(--sidebar), 320px) minmax(0, 1fr); }
.layout--article.layout--full { grid-template-columns: minmax(0, 1fr); }
.page-article { max-width: calc(var(--single-width) + 2 * var(--gutter) + 120px); }

.entry-content { font: 400 var(--fs-article)/1.75 var(--font-body); color: var(--text); max-width: var(--single-width); }
.layout--full .entry-content, .layout--full .article-footer { margin-inline: auto; }
.entry-content > * { margin-block: 0 1.35em; }
.has-dropcap > p:first-of-type::first-letter { float: left; font: 800 4.1em/.82 var(--font-head); padding: 6px 10px 0 0; color: var(--accent); }
.entry-content h2 { font-size: calc(28px * var(--head-scale)); margin-top: 1.8em; }
.entry-content h3 { font-size: calc(22px * var(--head-scale)); margin-top: 1.6em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote, .entry-content .wp-block-pullquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font: italic 400 1.26em/1.45 var(--font-body); color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: 10px; font: 600 13px/1 var(--font-ui); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--font-ui); }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .alignwide { margin-inline: calc(-1 * clamp(0px, 5vw, 60px)); max-width: none; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.inline-ad { margin: 2em 0; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); }

.article-footer { max-width: var(--single-width); margin-top: 40px; display: grid; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font: 700 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.tags a { padding: 7px 14px; border-radius: var(--btn-radius); background: var(--surface); font: 600 13px/1 var(--font-ui); }
.tags a:hover { background: var(--accent); color: var(--accent-text); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-block: 1px solid var(--line); font-weight: 600; }
.author-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box p { margin: 0; color: var(--muted); font-size: 15px; }
.author-box .author-box-name { font: 700 17px/1.3 var(--font-head); color: var(--ink); margin-bottom: 4px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font: 600 15px/1.35 var(--font-head); color: var(--ink); }
.post-nav a:hover { border-color: var(--accent); }
.post-nav span { display: block; font: 600 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.post-nav .next { text-align: right; grid-column: 2; }

/* Comments */
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 8px 54px; }
.comment-content { margin-left: 54px; }
.reply { margin-left: 54px; font-size: 13px; font-weight: 600; color: var(--accent); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--accent); outline: none; }
.comment-reply-title { font-size: 22px; }

/* ==========================================================================
   Archive, search, 404
   ========================================================================== */
.archive-header { padding-block: clamp(32px, 5vw, 56px) 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.archive-title { font-size: calc(clamp(34px, 5vw, 60px) * var(--head-scale)); font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
.archive-desc { color: var(--muted); font-size: 18px; max-width: 65ch; }
.archive-search { margin-top: 16px; }
.author-head { display: flex; gap: 24px; align-items: center; }
.author-head img { border-radius: 50%; }
.archive-lead { margin-block: clamp(28px, 4vw, 40px); }
.archive-lead .story--card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.archive-lead .story-body { padding: 0; }
.archive-lead .story-title { font-size: calc(clamp(24px, 2.6vw, 32px) * var(--head-scale)); line-height: 1.1; }
.archive-grid { padding-top: 28px; border-top: 1px solid var(--line); }
.archive-grid.grid-2 .story-title { font-size: calc(20px * var(--head-scale)); }
.layout-main > .archive-grid:first-child { border-top: 0; padding-top: 32px; }
.archive-grid.grid-1 { gap: 0; }
.archive-grid.grid-1 .story--list { grid-template-columns: 1fr 240px; gap: 24px; padding-block: 22px; }
.archive-grid.grid-1 .story--list .story-title { font-size: calc(21px * var(--head-scale)); }
.archive-grid.grid-1 .story--list .story-media { aspect-ratio: var(--media-ratio); }

.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--btn-radius); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-numbers:hover:not(.current) { border-color: var(--accent); }

.empty-state { padding-block: 40px; }
.error-404 { text-align: center; padding-block: clamp(48px, 8vw, 96px) 16px; max-width: 760px; }
.error-404 .search-form { margin: 28px auto; }
.error-code { font: 800 clamp(96px, 16vw, 180px)/1 var(--font-head); letter-spacing: -.06em; color: var(--accent); margin: 0 0 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-color); font-size: 15px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--footer-head); }
.footer-grid { display: grid; grid-template-columns: var(--footer-cols, 1.6fr repeat(3, 1fr)); gap: 40px; padding-block: clamp(44px, 6vw, 72px); }
.wordmark--light, .wordmark--light:hover { color: var(--footer-head); display: inline-block; margin-bottom: 16px; }
.footer-logo img { width: var(--footer-logo-w); max-width: 100%; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 38ch; }
.footer-social { margin-top: 18px; }
.footer-social a { background: color-mix(in srgb, var(--footer-color) 14%, transparent); width: 36px; height: 36px; }
.footer-title, .site-footer .wp-block-heading { color: var(--footer-head); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 5px; border: 0; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--footer-color) 18%, transparent); font-size: 13px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.footer-bottom p { margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 20px; }

.back-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top .icon { transform: rotate(-90deg); }

/* ==========================================================================
   Animations (each switched on by a body class from the Customizer)
   ========================================================================== */
.story-media img, .rank-thumb img {
	--s: 1; --r: 0deg; --b: 1; --g: 0;
	transform: scale(var(--s)) rotate(var(--r));
	filter: brightness(var(--b)) grayscale(var(--g));
	transition: transform var(--hover-ms, 500ms) ease, filter var(--hover-ms, 500ms) ease, opacity .6s ease;
}
.fx-color .story-media img, .fx-color .rank-thumb img { --g: 1; }
.fx-bright .story-media img { --b: .93; }
@media (hover: hover) {
	.fx-zoom .story:hover .story-media img, .fx-zoom .rank-list li:hover .rank-thumb img { --s: var(--hover-scale, 1.05); }
	.fx-tilt .story:hover .story-media img { --s: calc(var(--hover-scale, 1.05) + .03); --r: 1.2deg; }
	.fx-bright .story:hover .story-media img { --b: 1.07; }
	.fx-color .story:hover .story-media img, .fx-color .rank-list li:hover .rank-thumb img { --g: 0; }
}
@media (hover: none) { .fx-color .story-media img, .fx-color .rank-thumb img { --g: 0; } }

/* Slow zoom (Ken Burns) */
@keyframes nl-kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(var(--kb-scale, 1.08)) translate(-1%, -1%); } }
.anim-kb .hero .story--overlay .story-media img,
.anim-kb .hero .story--lead .story-media img,
.anim-kb-single .article-hero-media > img { animation: nl-kb var(--kb-dur, 20s) ease-in-out infinite alternate; }
.anim-parallax .article-hero-media > img { animation: none; }

/* Fade in on scroll (class added by JS, so content never hides without JS) */
.anim-fade .nl-fade { opacity: 0; transform: translateY(var(--fade-dist, 18px)); transition: opacity var(--fade-ms, 600ms) ease, transform var(--fade-ms, 600ms) ease; }
.anim-fade .nl-fade.is-in { opacity: 1; transform: none; }

/* Blur-up loading */
@keyframes nl-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.anim-blur .story-media:not(.is-loaded), .anim-blur .rank-thumb:not(.is-loaded) {
	background: linear-gradient(100deg, var(--surface) 30%, color-mix(in srgb, var(--surface) 70%, var(--bg)) 50%, var(--surface) 70%);
	background-size: 200% 100%; animation: nl-shimmer 1.3s linear infinite;
}
.js .anim-blur img.nl-lazy { opacity: 0; filter: blur(12px); }
.js .anim-blur img.nl-lazy.is-loaded { opacity: 1; filter: brightness(var(--b, 1)) grayscale(var(--g, 0)); }

/* Parallax */
.anim-parallax .article-hero-media > img { transform: translate3d(0, var(--py, 0px), 0) scale(1.15); will-change: transform; transition: none; }

/* ==========================================================================
   Featured video
   ========================================================================== */
.play-badge {
	position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	padding: 0; border-radius: 999px; color: #fff; pointer-events: none;
	font: 700 12px/1 var(--font-ui);
}
.play-badge .play-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--play); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .25s; }
.play-badge .play-dot svg { width: 22px; height: 22px; margin-left: 3px; }
.play-badge .play-time { background: rgba(0,0,0,.72); padding: 5px 8px; border-radius: 4px; }
.story:hover .play-badge .play-dot { transform: scale(1.1); }
.badge-center .play-badge { flex-direction: column; }
.badge-corner .play-badge { left: 10px; top: auto; bottom: 10px; transform: none; flex-direction: row; }
.badge-corner .play-badge .play-dot { width: 36px; height: 36px; }
.badge-corner .play-badge .play-dot svg { width: 16px; height: 16px; }
.story--list .play-badge .play-dot, .rank-thumb .play-badge .play-dot { width: 30px; height: 30px; }
.story--list .play-badge .play-dot svg, .rank-thumb .play-badge .play-dot svg { width: 13px; height: 13px; margin-left: 2px; }
.story--list .play-time, .rank-thumb .play-time { display: none; }
.story--overlay .play-badge { top: 38%; }
.story--overlay .play-badge .play-dot { width: 72px; height: 72px; }
.story--overlay .play-badge .play-dot svg { width: 30px; height: 30px; }

.nl-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.nl-player--vertical { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.nl-player > img, .nl-player iframe, .nl-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nl-player video { object-fit: contain; background: #000; }
.nl-player .nl-embed { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; background: #000; }
.nl-player .nl-embed > * { max-width: 100%; }
.nl-player-btn {
	position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45));
}
.nl-player-btn .play-dot { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--play); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.nl-player-btn .play-dot svg { width: 32px; height: 32px; margin-left: 4px; }
.nl-player-btn:hover .play-dot { transform: scale(1.08); }
.nl-player .play-time { position: absolute; z-index: 3; right: 12px; bottom: 12px; background: rgba(0,0,0,.75); color: #fff; font: 700 12px/1 var(--font-ui); padding: 6px 8px; border-radius: 4px; pointer-events: none; }
.nl-player.is-playing .nl-player-btn, .nl-player.is-playing > img, .nl-player.is-playing .play-time { display: none; }
.article-hero .nl-player { border-radius: var(--radius); }

/* Homepage video section */
.video-band { background: var(--hv-bg); color: var(--hv-color); padding-block: clamp(40px, 6vw, 64px); margin-block: clamp(32px, 5vw, 56px); }
.video-band .section-head { border-color: var(--accent); }
.video-band .section-title, .video-band .see-all { color: inherit; }
.video-band .see-all { opacity: .8; }
.video-feature { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.video-main-title { font-size: calc(clamp(20px, 2.2vw, 28px) * var(--head-scale)); color: inherit; margin: 16px 0 6px; }
.video-main-title a:hover { color: inherit; opacity: .85; }
.video-main .meta, .video-main .meta-author, .video-band .meta, .video-band .meta-author { color: color-mix(in srgb, var(--hv-color) 70%, transparent); }
.video-list { display: grid; gap: 4px; max-height: 560px; overflow-y: auto; }
.video-item { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: start; width: 100%; padding: 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.video-item:hover, .video-item.is-active { background: color-mix(in srgb, var(--hv-color) 10%, transparent); }
.video-item .vi-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.08); }
.video-item .vi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-item .vi-title { font: 600 15px/1.35 var(--font-head); display: block; }
.video-item .vi-time { display: inline-block; margin-top: 6px; font-size: 12px; opacity: .7; }
.video-item .play-badge .play-dot { width: 30px; height: 30px; }
.video-item .play-badge .play-dot svg { width: 13px; height: 13px; }
.video-item .play-time { display: none; }
.video-band .story-title, .video-band .story-title a { color: inherit; }
.video-band .story:hover .story-title a { color: inherit; }
.video-band .kicker { color: var(--accent); }
.video-grid-vertical { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.video-grid-vertical > * { scroll-snap-align: start; }
.vcard { position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; background: #000; }
.vcard > a, .vcard > button { position: absolute; inset: 0; display: block; border: 0; padding: 0; cursor: pointer; background: none; color: #fff; text-align: left; }
.vcard img { width: 100%; height: 100%; object-fit: cover; }
.vcard .vcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.vcard .vcard-title { font: 700 15px/1.3 var(--font-head); color: #fff; }
.vcard .nl-player { position: absolute; inset: 0; aspect-ratio: auto; max-width: none; border-radius: 0; }
.vcard .nl-player.is-playing ~ .vcard-body { display: none; }
.vcard .vcard-body { z-index: 3; }
.vcard .play-time { top: 12px; bottom: auto; right: 12px; }
.vcard .play-badge .play-time { display: none; }
.vcard > a .play-badge { top: 42%; }
.video-band--grid .nl-player--vertical, .video-main .nl-player--vertical { aspect-ratio: 16 / 9; max-width: none; }
.video-main .nl-player--vertical > img { object-fit: contain; }
.video-band--grid .story-body { padding-top: 14px; }

/* WordPress core classes */
.wp-caption { max-width: 100%; }
.wp-block-image figcaption { text-align: left; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.primary-nav .menu a { padding-inline: 9px; font-size: 14.5px; }
	.layout { grid-template-columns: minmax(0, 1fr) min(var(--sidebar), 300px); }
	.sidebar-left .layout { grid-template-columns: min(var(--sidebar), 300px) minmax(0, 1fr); }
	.cat-section--row .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
	.menu-toggle { display: inline-grid; margin-left: -8px; }
	.header-inner { gap: 12px; min-height: min(var(--header-h), 64px); }
	.brand { flex: 1; min-width: 0; }
	.brand .custom-logo, .brand .logo-dark { max-height: var(--logo-h-m); }
	.logo-by-width .brand .custom-logo, .logo-by-width .brand .logo-dark { width: var(--logo-w-m); max-height: none; }
	.site-tagline { display: none; }
	.primary-nav {
		position: fixed; inset: 0 30% 0 0; max-width: 360px; z-index: 60;
		background: var(--bg); padding: 80px 20px 24px; overflow-y: auto;
		transform: translateX(-102%); transition: transform .28s ease; box-shadow: var(--shadow);
	}
	.nav-open .site-header { z-index: 80; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.nav-open .primary-nav { transform: none; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
	.primary-nav .menu { flex-direction: column; flex-wrap: nowrap; gap: 0; }
	.primary-nav .menu a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.nav-open .menu-toggle { position: fixed; top: 14px; left: 20px; z-index: 70; color: var(--ink); }

	.hero { grid-template-columns: 1fr; }
	.hero--side-left .hero-lead { order: 0; }
	.hero-lead { min-height: min(var(--hero-h), 440px); }
	.story--overlay { min-height: min(var(--hero-h), 440px); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.layout, .layout--article, .sidebar-left .layout, .sidebar-left .layout--article { grid-template-columns: minmax(0, 1fr); }
	.sidebar-left .layout-side { order: 0; }
	.sticky-side { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	body { font-size: calc(var(--fs-base) - .5px); }
	.topbar-date { font-size: 12px; }
	.topbar-nav, .topbar-text { display: none; }
	.header-cta { display: none; }
	.cta-mobile .header-cta { display: inline-flex; padding: 8px 12px; font-size: 13px; margin-left: 2px; }
	.wordmark { font-size: min(var(--wordmark), 22px); }
	.hero { margin-top: 16px; }
	.hero:not(.hero--card) .hero-lead { min-height: min(var(--hero-h), 400px); margin-inline: calc(-1 * var(--gutter)); }
	.story--overlay { border-radius: 0; min-height: min(var(--hero-h), 400px); }
	.story--overlay .story-excerpt { display: none; }
	.story--lead .story-media { height: auto; aspect-ratio: var(--media-ratio); }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.grid-2 > .story--card:not(:first-child), .grid-3 > .story--card:not(:first-child), .grid-4 > .story--card:not(:first-child) { display: grid; grid-template-columns: 1fr 112px; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
	.grid > .story--card:not(:first-child) .story-media { grid-column: 2; grid-row: 1; aspect-ratio: 4/3; border-radius: var(--radius-sm); }
	.grid > .story--card:not(:first-child) .story-body { grid-column: 1; grid-row: 1; padding: 0; }
	.grid > .story--card:not(:first-child) .story-title { font-size: calc(16.5px * var(--head-scale)); }
	.grid > .story--card:not(:first-child) .story-excerpt { display: none; }
	.grid > .story--card:not(:first-child) .thumb-fallback span { font-size: 26px; }
	.cat-section--feature .cat-grid, .layout--full .cat-section--feature .cat-grid, .cat-section--list .cat-grid { grid-template-columns: 1fr; }
	.cat-section--feature .cat-grid > .story:first-child { grid-row: auto; margin-bottom: 8px; }
	.cat-section--feature .story--list:nth-child(2) { padding-top: 14px; }
	.cat-section--row .cat-grid, .cat-section--grid .cat-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
	.cat-section--row .story-title, .cat-section--grid .story-title { font-size: calc(15px * var(--head-scale)); }
	.cat-section--row .kicker, .cat-section--grid .kicker { display: none; }
	.archive-lead .story--card { grid-template-columns: 1fr; gap: 0; }
	.archive-lead .story-body { padding-top: 14px; }
	.archive-grid.grid-1 .story--list { grid-template-columns: 1fr 112px; gap: 16px; padding-block: 16px; }
	.archive-grid.grid-1 .story--list .story-title { font-size: calc(16.5px * var(--head-scale)); }
	.archive-grid.grid-1 .story--list .story-excerpt { display: none; }
	.opinion { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--band-color) 16%, transparent); padding: 20px 0 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
	.opinion-avatar { grid-row: span 2; margin: 0; }
	.opinion:not(:has(.opinion-avatar)) { display: block; }
	.newsletter-inner { grid-template-columns: 1fr; }
	.newsletter-form { flex-direction: column; }
	.byline .share { margin-left: 0; width: 100%; }
	.article-header--center .byline .share { justify-content: center; }
	.article-hero { padding-inline: 0; }
	.article-hero-media { border-radius: 0; }
	.article-hero figcaption { padding-inline: var(--gutter); }
	.entry-content { font-size: calc(var(--fs-article) - 1px); }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1.2em; max-width: 100%; }
	.share-row { flex-direction: column; align-items: flex-start; }
	.post-nav { grid-template-columns: 1fr; }
	.video-feature { grid-template-columns: 1fr; }
	.video-list { max-height: none; }
	.video-item { grid-template-columns: 120px 1fr; padding: 8px 0; }
	.video-grid-vertical { grid-auto-columns: 62%; }
	.video-band .grid > .story--card:not(:first-child) { display: block; padding-bottom: 0; border-bottom: 0; }
	.video-band .grid > .story--card:not(:first-child) .story-body { padding-top: 14px; }
	.post-nav .next { grid-column: 1; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.author-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.anim-kb .hero .story-media img, .anim-kb-single .article-hero-media > img { animation: none !important; }
	.anim-fade .nl-fade { opacity: 1 !important; transform: none !important; }
	.anim-parallax .article-hero-media > img { transform: none !important; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker-list { animation: none; }
	.ticker-track { overflow-x: auto; }
}

@media print {
	.topbar, .site-header, .ticker, .header-ad, .layout-side, .share, .share-row, .related, .comments, .newsletter, .site-footer, .progress, .inline-ad, .back-top { display: none !important; }
	.layout { display: block; }
	body { color: #000; background: #fff; }
}
