/* ==========================================================================
   WJ BuzzStream - theme.css
   Editorial news magazine: white chrome, black rules, orange accent,
   yellow tags, serif titles (Crimson Pro), slab logo (Roboto Slab).
   ========================================================================== */

:root {
	--accent: #eb9014;
	--accent-dark: #d67c08;
	--tag: #ffad21;
	--hot: #fe682e;
	--ink: #111111;
	--rule: #111111;
	--text: #282828;
	--muted: #6b6b6b;
	--line: #e6e6e6;
	--bg: #ffffff;
	--soft: #f6f6f7;
	--code-bg: #14161a;
	--radius: 8px;
	--radius-sm: 5px;
	--container: 1240px;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-title: 'Crimson Pro', Georgia, 'Times New Roman', serif;
	--font-logo: 'Roboto Slab', Georgia, serif;
	--shadow: 0 12px 30px rgba(17, 17, 17, .10);
	--header-h: 66px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-title);
	font-weight: 700;
	line-height: 1.28;
	color: var(--ink);
	margin: 0 0 .5em;
}

.container {
	max-width: none;
	margin: 0;
	padding: 0 10px;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.skip-link:focus {
	display: block;
	position: fixed;
	top: 8px; left: 8px;
	z-index: 9999;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
}

/* hot inline highlight (phrase before colon) */
.hot { color: var(--hot); }

/* bookmark button */
.bm {
	background: none;
	border: 0;
	padding: 4px 2px;
	cursor: pointer;
	color: var(--ink);
	opacity: .6;
	line-height: 0;
	transition: .15s;
}
.bm:hover { opacity: 1; color: var(--accent); }
.bm.on { opacity: 1; color: var(--accent); }
.bm.on svg { fill: var(--accent); }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
	background: var(--bg);
	color: var(--ink);
	font-size: 12px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	gap: 16px;
}

.topbar-date { font-weight: 400; color: var(--text); }

.topbar-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topbar-nav a { color: var(--ink); font-weight: 500; }
.topbar-nav a:hover { color: var(--accent); }

.topbar-ico a {
	font-weight: 800;
	font-size: 12px;
	display: inline-block;
	min-width: 16px;
	text-align: center;
}

.topbar-subscribe {
	background: var(--ink);
	color: var(--bg) !important;
	padding: 7px 17px;
	border-radius: 5px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	font-size: 12px;
	transition: .15s;
}
.topbar-subscribe:hover { background: var(--accent); color: #111 !important; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
	background: var(--bg);
	border-bottom: 2.5px solid var(--rule);
	position: sticky;
	top: 0;
	z-index: 900;
	transition: box-shadow .2s ease;
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(17, 17, 17, .10); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.site-logo img { display: block; max-height: 46px; width: auto; }
.site-brand { display: flex; align-items: center; }

.site-title {
	font-family: var(--font-logo);
	font-size: 25px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -.015em;
	margin: 0;
	white-space: nowrap;
}
.site-title a:hover { color: var(--accent); }
.site-tagline { display: none; }

.primary-nav > .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 8px;
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ink);
	text-transform: none;
	letter-spacing: 0;
	position: relative;
	border-radius: 6px;
}

.primary-nav .menu-link > span { white-space: nowrap; }

.primary-nav .menu-link:hover { color: var(--accent); }

.primary-nav > .menu > li { position: relative; }

.primary-nav > .menu > li.current-menu-item > .menu-link {
	background: var(--soft);
	color: var(--ink);
}

/* dropdown caret for panel items */
.has-panel > .menu-link > span::after {
	content: "";
	display: inline-block;
	width: 0; height: 0;
	margin-left: 7px;
	vertical-align: middle;
	border-left: 4.5px solid transparent;
	border-right: 4.5px solid transparent;
	border-top: 5.5px solid currentColor;
	opacity: .8;
}

/* hover panel (latest-posts dropdown) */
.mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 300px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 50;
	list-style: none;
	margin: 0;
}

.has-panel:hover > .mega-panel,
.has-panel:focus-within > .mega-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: .15s;
}

.menu > li.has-panel:nth-last-child(-n+2) .mega-panel {
	left: auto;
	right: 0;
}

.mega-panel .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
	list-style: none;
}

.mega-panel .sub-menu a {
	display: block;
	padding: 8px 18px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text);
}
.mega-panel .sub-menu a:hover { color: var(--accent); background: var(--soft); }

.mega-post-list { list-style: none; margin: 0; padding: 0; }

.mega-post > a {
	display: flex !important;
	gap: 12px;
	padding: 9px 16px !important;
	align-items: center;
}
.mega-post > a:hover { background: var(--soft); }

.mega-thumb {
	flex: 0 0 64px;
	width: 64px; height: 46px;
	border-radius: 3px;
	background-size: cover;
	background-position: center;
	background-color: var(--soft);
}

.mega-post-body { display: flex; flex-direction: column; min-width: 0; }

.mega-post-title {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 15px !important;
	line-height: 1.3;
	color: var(--ink) !important;
	padding: 0 !important;
}

.mega-post-date {
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.icon-btn {
	width: 38px; height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	font-size: 16px;
	transition: .18s;
}
.icon-btn:hover { background: var(--soft); color: var(--accent); }

/* dark-mode switch (pill track + knob) */
.js-theme-toggle {
	position: relative;
	width: 48px; height: 26px;
	border-radius: 999px;
	background: var(--line);
	flex: 0 0 48px;
}
.js-theme-toggle:hover { background: var(--line); }
.js-theme-toggle svg {
	position: absolute;
	left: 3px; top: 3px;
	width: 20px; height: 20px;
	padding: 3px;
	background: #fff;
	border-radius: 50%;
	color: #111;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: left .18s ease;
}
[data-theme="dark"] .js-theme-toggle svg { left: 25px; background: var(--accent); }

.nav-toggle { display: none; }

/* search overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 12, 14, .96);
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.search-overlay.is-open { display: flex; }

.search-overlay .search-form {
	width: min(720px, 100%);
	display: flex;
	gap: 10px;
}

.search-overlay input[type="search"] {
	flex: 1;
	background: transparent;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, .35);
	color: #fff;
	font-size: 26px;
	font-family: var(--font-title);
	padding: 12px 4px;
	outline: none;
}
.search-overlay input[type="search"]::placeholder { color: rgba(255, 255, 255, .45); }

.search-overlay .search-submit {
	background: var(--accent);
	border: 0;
	color: #111;
	padding: 0 26px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.search-overlay .search-close {
	position: absolute;
	top: 22px; right: 26px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Category strip (below header)
   -------------------------------------------------------------------------- */
.ticker-bar {
	background: var(--bg);
	border-bottom: 0;
}

.ticker-inner {
	display: flex;
	align-items: center;
	gap: 0;
	overflow-x: auto;
	padding: 12px 0;
	scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar { display: none; }

.ticker-label {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink);
	margin-right: 16px;
	white-space: nowrap;
}

.ticker-links {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ticker-links li {
	border-left: 1px solid var(--line);
	padding: 0 14px;
}
.ticker-links li:first-child { border-left: 0; padding-left: 0; }

.ticker-links a {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	color: #5f6368;
	white-space: nowrap;
	transition: .15s;
}
.ticker-links a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Shared: section headings, chips, meta, cards
   -------------------------------------------------------------------------- */
.section { padding: 36px 0 10px; }
.section-tight { padding: 24px 0 10px; }

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1.5px solid var(--rule);
	margin-bottom: 10px;
	padding-bottom: 10px;
}

.section-title {
	font-family: var(--font-body);
	font-size: 21px;
	font-weight: 700;
	margin: 0;
	color: var(--ink);
	display: flex;
	align-items: center;
	line-height: 1.2;
}

.title-bar {
	display: inline-block;
	width: 5px;
	height: 22px;
	background: var(--rule);
	margin-right: 11px;
	flex: 0 0 5px;
}

/* feature heading: thick rule above, orange title */
.head-feature {
	border-top: 3px solid var(--rule);
	border-bottom: 0;
	padding-top: 10px;
	padding-bottom: 0;
	margin-bottom: 10px;
}
.head-feature .section-title { color: var(--accent); }

.section-more {
	font-family: var(--font-title);
	font-style: italic;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--ink);
	white-space: nowrap;
}
.section-more:hover { color: var(--accent); }

/* yellow category tag */
.cat-chip {
	display: inline-block;
	background: var(--tag);
	color: #111;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 5px 9px;
	border-radius: 0;
	line-height: 1.35;
	font-family: var(--font-body);
}
a.cat-chip:hover { background: #ffc247; color: #111; }

/* tag sitting on an image (bottom-left, flush) */
.thumb .cat-chip,
.hero-media .cat-chip {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
}

/* byline: By Author —— clock N Min Read */
.post-meta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 11px;
	color: var(--ink);
	font-weight: 500;
	flex-wrap: wrap;
	line-height: 1.4;
}
.post-meta a { color: var(--ink); }
.post-meta a:hover { color: var(--accent); }

.meta-by { color: var(--text); }
.meta-author { font-weight: 600; color: var(--ink); }

.meta-dash {
	display: inline-block;
	width: 34px;
	height: 1.5px;
	background: var(--ink);
	opacity: .8;
}

.meta-read {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
	color: var(--ink);
}
.ic-clock { flex: 0 0 auto; }

.card-title {
	font-family: var(--font-title);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
	margin: 8px 0 6px;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
	font-size: 14px;
	color: var(--muted);
	margin: 0 0 10px;
	line-height: 1.6;
}

.thumb {
	display: block;
	overflow: hidden;
	border-radius: 0;
	background: var(--soft);
	position: relative;
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.thumb:hover img { transform: scale(1.04); }

.thumb.ratio { aspect-ratio: 16 / 9; }

/* off-ratio sources: show the full frame, letterboxed on --soft */
img.fit-contain,
.hero-media img.fit-contain,
.feature-media img.fit-contain {
	object-fit: contain;
	background: var(--soft);
}

/* grid of standard cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 28px;
	row-gap: 10px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.post-card .thumb { margin-bottom: 10px; }
.post-card .cat-chip { margin-bottom: 4px; }

/* horizontal list row */
.post-row {
	display: flex;
	gap: 26px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	align-items: flex-start;
}
.post-row:last-child { border-bottom: 0; }

.post-row .thumb {
	flex: 0 0 250px;
	width: 250px;
	aspect-ratio: 16 / 9;
}

.post-row-body { min-width: 0; }
.post-row-body .card-title { font-size: 21px; margin: 0 0 8px; }
.post-row-body .card-excerpt { font-size: 14px; margin-bottom: 10px; }

/* headline list */
.headline-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--rule);
}

.headline-list li {
	padding: 10px 0;
}
.headline-list li:first-child { padding-top: 10px; }

.headline-list .h-title {
	display: block;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.35;
	color: var(--ink);
}
.headline-list .h-title:hover { color: var(--accent); }

.h-arrow {
	color: var(--hot);
	margin-right: 7px;
	font-weight: 400;
}

.h-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 9px;
}
.h-foot .post-meta { font-size: 11px; }

/* --------------------------------------------------------------------------
   Hero row: image-top feature + Top Stories rail + trust/social box
   -------------------------------------------------------------------------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr) minmax(0, 1.05fr);
	column-gap: 36px;
	row-gap: 10px;
	padding-top: 34px;
	align-items: start;
}

.hero-media {
	position: relative;
	overflow: hidden;
	background: var(--soft);
}
.hero-media .hero-img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	transition: transform .5s ease;
}
.hero-main:hover .hero-media .hero-img { transform: scale(1.03); }

.hero-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0 4px;
}
.hero-foot .post-meta { font-size: 11px; }

.hero-title {
	font-size: clamp(30px, 3vw, 43px);
	font-weight: 700;
	line-height: 1.2;
	margin: 8px 0 10px;
	color: var(--ink);
}
.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--accent); }

.hero-excerpt {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
	max-width: 660px;
	line-height: 1.65;
}

/* Top Stories rail */
.hero-rail { min-width: 0; }

.rail-label {
	display: inline-block;
	background: var(--ink);
	color: var(--bg);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	padding: 7px 26px 9px 20px;
	margin-bottom: -17px;
	position: relative;
	z-index: 2;
	clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* trust + social box */
.note-box {
	background: var(--soft);
	padding: 38px 32px 32px;
	text-align: center;
}
.note-box h3 {
	font-family: var(--font-body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
	color: var(--ink);
}
.note-quote {
	font-family: var(--font-title);
	font-style: italic;
	font-size: 15px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 0 10px;
}

.social-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.social-grid a {
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 14px 4px 11px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	transition: .15s;
}
.social-grid a b {
	font-size: 18px;
	font-weight: 800;
	color: var(--ink);
	line-height: 1;
	font-family: var(--font-body);
}
.social-grid a b svg { display: block; }
.social-grid a span {
	font-family: var(--font-title);
	font-size: 12px;
	color: var(--text);
	font-weight: 700;
}
.social-grid a:hover { border-color: var(--accent); }
.social-grid a:hover b,
.social-grid a:hover span { color: var(--accent); }

/* --------------------------------------------------------------------------
   Most Read This Week (ad + feature + 3 mini posts)
   -------------------------------------------------------------------------- */
.mostread-top {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr) minmax(0, 1.06fr);
	gap: 0 44px;
	align-items: start;
}

.ad-box {
	grid-row: 1 / span 2;
	border: 1px solid var(--line);
	background: var(--bg);
	padding: 26px 22px 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.ad-label { font-size: 11px; color: var(--text); }
.ad-logo {
	font-family: var(--font-logo);
	font-size: 25px;
	font-weight: 800;
	color: var(--ink);
	margin-top: 16px;
	line-height: 1.15;
	letter-spacing: -.01em;
}
.ad-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.ad-art { margin: 20px 0 22px; }
.ad-art img {
	height: 140px;
	width: auto;
	filter: grayscale(1);
	opacity: .9;
}
.ad-btn {
	background: var(--accent);
	color: #111;
	font-weight: 800;
	font-size: 14.5px;
	padding: 10px 26px;
	border-radius: 4px;
	transition: .15s;
}
.ad-btn:hover { background: var(--accent-dark); color: #111; }

.feature-main { min-width: 0; }
.feature-title {
	font-family: var(--font-title);
	font-size: clamp(24px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.28;
	margin: 0 0 10px;
}
.feature-title a { color: var(--ink); }
.feature-title a:hover { color: var(--accent); }
.feature-main .card-excerpt { font-size: 14px; margin-bottom: 0; }

.feature-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}
.feature-foot .post-meta { font-size: 11px; }

.feature-media {
	display: block;
	overflow: hidden;
	position: relative;
	background: var(--soft);
}
.feature-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.feature-media:hover img { transform: scale(1.04); }

.mostread-bottom {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line);
	margin-top: 10px;
	margin-left: calc(270px + 44px);
}

.mini-post {
	padding: 10px 26px 6px;
	border-right: 1px solid var(--line);
	min-width: 0;
}
.mini-post:first-child { padding-left: 0; }
.mini-post:last-child { border-right: 0; padding-right: 0; }
.mini-post .card-title { font-size: 20px; margin: 9px 0 7px; }
.mini-post .card-excerpt { font-size: 14px; }

.mini-foot,
.ci-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.mini-foot .post-meta,
.ci-foot .post-meta { font-size: 11px; }

/* --------------------------------------------------------------------------
   Just for You (4-card strip between rules)
   -------------------------------------------------------------------------- */
.jfy {
	border-top: 3px solid var(--rule);
	border-bottom: 3px solid var(--rule);
	padding: 20px 0 10px;
	margin-top: 10px;
}
.jfy-title {
	font-family: var(--font-body);
	font-size: 21px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 10px;
}
.jfy-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 28px;
	row-gap: 10px;
}
.jfy-grid .post-card { min-width: 0; }
.jfy-grid .card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
}
.jfy-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Category 2x2 grid (image + text)
   -------------------------------------------------------------------------- */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 56px;
}

.cat-item {
	display: flex;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	align-items: flex-start;
	min-width: 0;
}

.ci-media {
	flex: 0 0 240px;
	width: 240px;
	aspect-ratio: 16 / 9;
}

.ci-body { min-width: 0; }
.ci-body .card-title { font-size: 20px; margin: 0 0 7px; }
.ci-body .card-excerpt { font-size: 14px; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Widget trio: Popular | Category | Category
   -------------------------------------------------------------------------- */
.w3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.w3-col { padding: 0 30px; min-width: 0; }
.w3-col:first-child { padding-left: 0; }
.w3-col:last-child { padding-right: 0; }
.w3-col + .w3-col { border-left: 1px solid var(--line); }

.w3-head { margin: 0 0 10px; }
.w3-head h3 {
	font-family: var(--font-body);
	font-size: 21px;
	font-weight: 700;
	color: var(--ink);
	margin: 0;
	display: flex;
	align-items: center;
	line-height: 1.2;
}
.w3-head h3::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 20px;
	background: var(--rule);
	margin-right: 10px;
	flex: 0 0 5px;
}

/* popular post cards */
.pop-card {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 15px 16px 10px;
	margin-bottom: 10px;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "body thumb" "plus thumb";
	gap: 4px 14px;
	align-items: start;
	background: var(--bg);
}
.pc-body { grid-area: body; min-width: 0; }
.pc-title {
	display: block;
	font-family: var(--font-title);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
}
.pc-title:hover { color: var(--accent); }
.pc-date {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 6px;
}
.pc-thumb {
	grid-area: thumb;
	width: 62px; height: 62px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--soft);
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-plus {
	grid-area: plus;
	width: 30px; height: 30px;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: var(--muted);
	margin-top: 10px;
	line-height: 1;
}

/* widget feature + text items */
.wm-feature { margin-bottom: 4px; }
.wm-feature .thumb { margin-bottom: 10px; aspect-ratio: 16 / 9; }
.wm-feature .card-title { font-size: 20px; margin: 0 0 7px; }
.wm-feature .card-excerpt { font-size: 14px; }

.wm-item {
	padding: 10px 0;
	border-top: 1px solid var(--line);
}
.wm-item:first-child { border-top: 0; padding-top: 0; }
.wm-item:last-child { padding-bottom: 0; }
.wm-item .card-title { font-size: 17px; margin: 0 0 6px; }
.wm-item .card-excerpt { font-size: 14px; margin-bottom: 10px; }
.wm-feature .post-meta,
.wm-item .post-meta { font-size: 11px; }

/* --------------------------------------------------------------------------
   Tags row
   -------------------------------------------------------------------------- */
.tags-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	border-top: 1px solid var(--line);
	padding-top: 10px;
	font-size: 15.5px;
}
.tags-row strong {
	font-weight: 700;
	color: var(--ink);
	margin-right: 4px;
}
.tags-row a { color: var(--ink); font-weight: 500; }
.tags-row a:hover { color: var(--accent); }
.tags-sep { color: #b5b5b5; }

/* --------------------------------------------------------------------------
   Newsletter (white bordered box)
   -------------------------------------------------------------------------- */
.newsletter {
	background: var(--bg);
	border: 1.5px solid var(--rule);
	color: var(--text);
	padding: 44px 48px;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) minmax(300px, 400px);
	gap: 36px;
	align-items: center;
}

.nl-art img {
	max-height: 110px;
	width: auto;
	filter: grayscale(1);
	opacity: .85;
}

.nl-text h2 {
	color: var(--ink);
	font-size: clamp(24px, 2.4vw, 31px);
	margin: 0 0 8px;
	line-height: 1.25;
}
.nl-text p {
	margin: 0;
	color: var(--text);
	font-size: 15.5px;
}

.newsletter-form {
	display: flex;
	flex-direction: column;
}
.newsletter-form input[type="email"] {
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 0;
	background: var(--soft);
	color: var(--ink);
	font-size: 15px;
	font-family: var(--font-body);
	outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form input[type="email"]:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

.newsletter-form button {
	margin-top: 10px;
	background: var(--accent);
	border: 0;
	color: #111;
	font-weight: 800;
	font-size: 15.5px;
	padding: 13px 18px;
	border-radius: 0;
	cursor: pointer;
	font-family: var(--font-body);
	transition: .15s;
}
.newsletter-form button:hover { background: var(--accent-dark); }

.nl-terms {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
	font-size: 15.5px;
	color: var(--ink);
	cursor: pointer;
	line-height: 1.4;
}
.nl-terms input[type="checkbox"] {
	width: 16px; height: 16px;
	margin: 0;
	accent-color: #111;
	cursor: pointer;
	flex: 0 0 16px;
}

.newsletter-note {
	margin: 10px 0 0;
	font-size: 13.5px;
	color: var(--muted);
	min-height: 18px;
}
.newsletter-success { color: var(--accent-dark); font-weight: 700; }
.newsletter-error { color: #c62828; font-weight: 600; }

/* --------------------------------------------------------------------------
   Must Read box
   -------------------------------------------------------------------------- */
.mr-box {
	border: 1.5px solid var(--rule);
	background: var(--bg);
}

.mr-head {
	padding: 10px 24px 10px;
	display: flex;
	align-items: center;
}
.mr-head h2 {
	font-family: var(--font-body);
	font-size: 21px;
	font-weight: 700;
	color: var(--ink);
	margin: 0;
	display: flex;
	align-items: center;
}
.mr-head h2::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 24px;
	background: var(--rule);
	margin-right: 11px;
}

.mr-scroll {
	padding: 0 24px 10px;
	gap: 0;
	grid-auto-columns: minmax(255px, 1fr);
}
.mr-scroll .post-card {
	padding: 4px 24px 0;
	border-left: 1px solid var(--line);
	scroll-snap-align: start;
	min-width: 0;
}
.mr-scroll .post-card:first-child { padding-left: 0; border-left: 0; }
.mr-scroll .card-title { font-size: 17px; }
.mr-scroll .post-meta { font-size: 11px; }

.show-more-wrap {
	text-align: center;
	margin-top: 10px;
}
.show-more-wrap .btn-ghost {
	background: none;
	border: 0;
	color: var(--ink);
	font-size: 17px;
	font-weight: 700;
	padding: 8px 14px;
}
.show-more-wrap .btn-ghost:hover { background: none; color: var(--accent); }

/* --------------------------------------------------------------------------
   Horizontal scroll row
   -------------------------------------------------------------------------- */
.scroll-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	gap: 22px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.scroll-row > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Content columns (main + sidebar)
   -------------------------------------------------------------------------- */
.content-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px;
	padding: 10px 0 10px;
}

.content-wrap.no-sidebar { grid-template-columns: 1fr; }

.widget-area .widget {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 10px;
}
.widget-title {
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 800;
	color: var(--ink);
	border-bottom: 1.5px solid var(--rule);
	padding-bottom: 9px;
	margin-bottom: 10px;
}
.widget .wp-block-heading { margin: 0 0 10px; }
.widget .wp-block-latest-comments { margin: 0 0 10px; }
.widget .wp-block-latest-comments__comment { margin-bottom: 10px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Pagination / buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: #111;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 26px;
	border-radius: var(--radius-sm);
	border: 0;
	cursor: pointer;
	transition: .15s;
	font-family: var(--font-body);
}
.btn:hover { background: var(--accent-dark); color: #111; }

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.pagination {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	margin: 10px 0 10px;
}
.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
}
.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #111;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current:hover { color: #111; }

/* --------------------------------------------------------------------------
   Archive / search / 404 headers
   -------------------------------------------------------------------------- */
.page-head {
	padding: 40px 0 10px;
	border-bottom: 1.5px solid var(--rule);
	margin-bottom: 10px;
}
.page-head h1 { font-size: 34px; margin: 0 0 8px; }
.page-head .archive-desc { color: var(--muted); font-size: 15px; margin: 0; max-width: 780px; }

.breadcrumbs {
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 600;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 7px; color: #c4c8cf; }

.error-404 {
	text-align: center;
	padding: 80px 20px;
}
.error-404 .code {
	font-family: var(--font-title);
	font-size: 110px;
	font-weight: 700;
	line-height: 1;
	color: var(--accent);
	margin: 0;
}
.error-404 h1 { font-size: 34px; margin: 10px 0; }
.error-404 p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.single-head { padding: 36px 0 0; }

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

.single-title {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.18;
	margin: 0 0 10px;
	letter-spacing: -.01em;
}

.single-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 10px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-bottom: 10px;
}

.share-row { display: flex; gap: 8px; align-items: center; }
.share-row .share-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	font-weight: 700;
	margin-right: 4px;
}
.share-row a {
	width: 34px; height: 34px;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}
.share-row a:hover { background: var(--accent); border-color: var(--accent); color: #111; }

.single-hero-img {
	overflow: hidden;
	margin-bottom: 10px;
}
.single-hero-img img { width: 100%; display: block; }

.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--text);
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 27px; margin-top: 1.7em; }
.entry-content h3 { font-size: 22px; margin-top: 1.5em; }
.entry-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { display: block; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--accent);
	background: var(--soft);
	font-family: var(--font-title);
	font-size: 21px;
	font-style: italic;
	color: var(--ink);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 1.5em 0;
}
.entry-content table th,
.entry-content table td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
}
.entry-content table th { background: var(--soft); font-weight: 700; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li + li { margin-top: .4em; }
.entry-content pre {
	background: var(--code-bg);
	color: #e8eaed;
	padding: 18px;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	font-size: 14px;
}
.entry-content .wp-block-image { margin: 1.6em 0; }

.entry-bottom {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	align-items: center;
}

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-list a {
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
}
.tag-list a:hover { border-color: var(--accent); color: var(--accent); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 10px; }

/* comments */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-body {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	margin-bottom: 16px;
}
.comment-list .reply { font-size: 13px; font-weight: 700; }
.comment-respond .comment-reply-title { font-size: 20px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg);
	font-family: var(--font-body);
	font-size: 14.5px;
	color: var(--text);
	margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer (light, slab logo, round socials, 4 columns)
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--bg);
	border-top: 1.5px solid var(--rule);
	margin-top: 58px;
	padding-top: 34px;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding-bottom: 10px;
}

.footer-logo {
	font-family: var(--font-logo);
	font-size: 27px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -.015em;
}
.footer-logo:hover { color: var(--accent); }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13.5px;
	font-weight: 700;
	transition: .15s;
}
.footer-social a:hover { background: var(--accent); color: #111; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
	column-gap: 44px;
	row-gap: 10px;
	padding: 10px 0 44px;
	border-top: 1px solid var(--line);
}

.footer-about-col {
	border-left: 4px solid var(--rule);
	padding-left: 18px;
}
.footer-heading {
	font-family: var(--font-body);
	font-size: 21px;
	font-weight: 800;
	color: var(--ink);
	margin: 0 0 10px;
}
.footer-about {
	font-size: 15px;
	color: var(--muted);
	line-height: 1.75;
	margin: 0;
}
.footer-about strong { color: var(--ink); font-weight: 800; }

.footer-title {
	font-family: var(--font-body);
	font-size: 16.5px;
	font-weight: 800;
	color: var(--ink);
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	text-transform: none;
	letter-spacing: 0;
	border: 0;
	padding: 0;
}
.footer-title .title-bar {
	width: 5px;
	height: 19px;
	margin-right: 10px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 15px; font-weight: 700; font-family: var(--font-title); color: var(--text); }
.footer-links a:hover { color: var(--accent); padding-left: 3px; transition: .15s; }

.footer-copy {
	position: relative;
	text-align: right;
	color: var(--muted);
	font-size: 13px;
	align-self: start;
}
.footer-copy p { position: relative; z-index: 1; margin: 0; line-height: 1.6; }
.copy-mark {
	position: absolute;
	right: -8px;
	top: -26px;
	font-family: var(--font-title);
	font-size: 120px;
	line-height: 1;
	color: var(--line);
	z-index: 0;
	user-select: none;
}

/* back to top */
.back-top {
	position: fixed;
	right: 22px; bottom: 22px;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #111;
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: .2s;
	z-index: 800;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent-dark); }

/* mobile drawer */
.mobile-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(340px, 88vw);
	background: var(--bg);
	z-index: 1001;
	transform: translateX(100%);
	transition: transform .25s ease;
	padding: 22px 20px 40px;
	overflow-y: auto;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 17, 20, .55);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: .2s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-drawer .drawer-close {
	position: absolute;
	top: 14px; right: 16px;
	background: none; border: 0;
	font-size: 28px;
	cursor: pointer;
	color: var(--ink);
}

.mobile-drawer .menu {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
}
.mobile-drawer .menu > li { border-bottom: 1px solid var(--line); }
.mobile-drawer .menu-link {
	display: block;
	padding: 13px 2px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
	.mostread-top { grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 32px; }
	.mostread-bottom { margin-left: calc(240px + 32px); }
	.hero { gap: 10px 28px; }
	.cat-grid { gap: 0 36px; }
	.ci-media { flex: 0 0 210px; width: 210px; }
	.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
	.footer-copy { grid-column: 1 / -1; text-align: left; }
	.copy-mark { right: auto; left: -6px; top: -30px; }
}

@media (max-width: 1080px) {
	.card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.newsletter { grid-template-columns: 90px minmax(0, 1fr) minmax(280px, 340px); gap: 26px; padding: 36px 34px; }
}

@media (max-width: 960px) {
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.jfy-grid { grid-template-columns: repeat(2, 1fr); }

	.hero { grid-template-columns: 1fr; padding-top: 26px; }
	.hero-rail { max-width: none; }
	.hero-note { max-width: none; }

	.mostread-top { grid-template-columns: 1fr; gap: 10px; }
	.ad-box { grid-row: auto; max-width: 420px; }
	.mostread-bottom { margin-left: 0; grid-template-columns: 1fr; }
	.mini-post { border-right: 0; border-top: 1px solid var(--line); padding: 10px 0 6px; }
	.mini-post:first-child { border-top: 0; }

	.cat-grid { grid-template-columns: 1fr; }
	.cat-item { padding: 10px 0; }

	.w3 { grid-template-columns: 1fr; }
	.w3-col { padding: 24px 0 0; }
	.w3-col + .w3-col { border-left: 0; border-top: 1px solid var(--line); margin-top: 10px; }
	.w3-col:first-child { padding-top: 0; }

	.content-wrap { grid-template-columns: 1fr; }
	.widget-area { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; align-items: start; }
	.widget-area .widget { margin-bottom: 0; }

	.newsletter { grid-template-columns: 1fr; text-align: left; }
	.nl-art { display: none; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 10px 30px; }
	.topbar-nav li:nth-child(n+4) { display: none; }
	.topbar-nav li.topbar-ico { display: none; }
}

@media (max-width: 720px) {
	.header-inner { gap: 10px; }
	.site-brand { min-width: 0; flex: 1 1 auto; }
	.site-brand > a { min-width: 0; }
	.site-title {
		font-size: clamp(16px, 4.7vw, 25px);
		display: block;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.header-actions { flex: 0 0 auto; gap: 4px; }

	.card-grid,
	.card-grid.cols-2,
	.card-grid.cols-4 { grid-template-columns: 1fr; }
	.jfy-grid { grid-template-columns: 1fr; }
	.related-grid { grid-template-columns: 1fr; }
	.widget-area { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 10px; }
	.footer-copy { text-align: left; }
	.post-row { flex-direction: column; gap: 14px; }
	.post-row .thumb { width: 100%; flex: none; }
	.cat-item { flex-direction: column; gap: 12px; }
	.ci-media { width: 100%; flex: none; }

	.hero-media .hero-img { aspect-ratio: 16 / 9; }
	.hero-title { font-size: 27px; }

	.section-title, .jfy-title { font-size: 21px; }
	.head-feature .section-title { font-size: 21px; }
	.topbar-date { display: none; }

	.newsletter { padding: 28px 22px; }
	.nl-text h2 { font-size: 24px; }

	.entry-content { font-size: 16px; }
	.search-overlay input[type="search"] { font-size: 19px; }

	.mr-scroll { padding: 0 16px 10px; }
	.mr-scroll .post-card { padding: 4px 16px 0; }
	.mr-head { padding: 10px 16px 10px; }

	.ad-art img { height: 110px; }
	.note-box { padding: 28px 20px 24px; }
}

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
	--bg: #15171a;
	--soft: #1d2025;
	--line: #2b2f35;
	--ink: #f1f2f3;
	--rule: #d9dbe0;
	--text: #d3d6da;
	--muted: #969ba3;
	--shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

[data-theme="dark"] body { background: var(--bg); color: var(--text); }

[data-theme="dark"] .site-header,
[data-theme="dark"] .ticker-bar,
[data-theme="dark"] .topbar { background: var(--bg); }

[data-theme="dark"] .mega-panel { background: var(--bg); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
[data-theme="dark"] .mobile-drawer { background: var(--bg); }

[data-theme="dark"] .js-theme-toggle { background: #3a3f46; }

[data-theme="dark"] .ad-art img,
[data-theme="dark"] .nl-art img {
	filter: grayscale(1) invert(.85);
}

[data-theme="dark"] .nl-terms input[type="checkbox"] { accent-color: var(--accent); }

[data-theme="dark"] .newsletter-form input[type="email"] { background: var(--soft); color: var(--ink); }
[data-theme="dark"] .newsletter-form input[type="email"]:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

[data-theme="dark"] .footer-social a { color: var(--bg); }

[data-theme="dark"] .entry-content table th { background: var(--soft); }
[data-theme="dark"] .copy-mark { color: #23262b; }

[data-theme="dark"] .search-overlay { background: rgba(8, 9, 11, .96); }
