/*
Theme Name:     OneNation
Theme URI:      n/a
Template:       kadence
Author:         Knowhalim
Author URI:     n/a
Description:    OneNation Website Theme — News portal child theme for Kadence
Version:        1.6.1
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* =====================================================================
   CSS CUSTOM PROPERTIES (overridden by Customizer via inline style)
   ===================================================================== */

:root {
	--on-left-nav-width:    240px;
	--on-right-panel-width: 300px;
}

/* Suppress Kadence parent theme header/footer — our header.php replaces them */
.site-header,
#masthead,
.kadence-top-header-wrap,
.kadence-sticky-header,
.site-footer,
#colophon {
	display: none !important;
}

/* =====================================================================
   GLOBAL RESET & BASE
   ===================================================================== */

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

html, body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	height: 100vh;
	background: #0d0d0d;
}

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

/* Admin bar compensation */
.admin-bar .on-layout {
	height: calc(100vh - 32px);
	margin-top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .on-layout {
		height: calc(100vh - 46px);
		margin-top: 46px;
	}
}

/* =====================================================================
   3-COLUMN LAYOUT SHELL
   left nav (240px) | center (fluid, scrollable) | right panel (300px)
   ===================================================================== */

.on-layout {
	display: flex;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

/* =====================================================================
   LEFT NAV SIDEBAR
   ===================================================================== */

.on-left-nav {
	width: var(--on-left-nav-width, 240px);
	min-width: var(--on-left-nav-width, 240px);
	flex-shrink: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #0d0d0d;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #1e1e1e #0d0d0d;
	z-index: 10;
	border-right: 1px solid #1a1a1a;
}
.on-left-nav::-webkit-scrollbar { width: 3px; }
.on-left-nav::-webkit-scrollbar-thumb { background: #1e1e1e; }

/* Logo + Tagline */
.on-nav-logo {
	padding: 20px 16px 14px;
	border-bottom: 1px solid #1a1a1a;
	flex-shrink: 0;
}
.on-nav-logo a { display: block; }
.on-nav-logo img { max-width: 200px; height: auto; }
.on-site-wordmark {
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	line-height: 1;
	display: block;
}
.on-nav-tagline {
	font-size: 10px;
	color: #444;
	margin: 6px 0 0;
	line-height: 1.4;
	letter-spacing: 0.3px;
}

/* Primary nav */
.on-primary-nav { flex-shrink: 0; padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
.on-nav-list { list-style: none; margin: 0; padding: 0; }
.on-nav-list li { margin: 0; }
.on-nav-list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px 9px 12px;
	color: #666;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 6px;
	margin: 1px 8px;
	transition: color 0.15s, background 0.15s;
	line-height: 1.3;
	border-left: none;
}
.on-nav-list li a svg {
	flex-shrink: 0;
	opacity: 0.7;
}
.on-nav-item-label { flex: 1; }

.on-nav-list li a:hover {
	color: #fff;
	background: rgba(255,255,255,0.06);
}
.on-nav-list li a:hover svg { opacity: 1; }

.on-nav-list .current-menu-item > a,
.on-nav-list .current-page-ancestor > a,
.on-nav-list .current-menu-ancestor > a {
	color: #fff;
	background: #c8102e;
	font-weight: 700;
}
.on-nav-list .current-menu-item > a svg,
.on-nav-list .current-page-ancestor > a svg,
.on-nav-list .current-menu-ancestor > a svg { opacity: 1; }

/* Sub-menus */
.on-nav-list ul { list-style: none; margin: 0; padding: 0; }
.on-nav-list ul li a { padding-left: 42px; font-size: 12px; color: #555; margin: 1px 8px; }

/* TOPICS section */
.on-nav-topics {
	padding: 16px 16px 8px;
	border-bottom: 1px solid #1a1a1a;
	flex-shrink: 0;
}
.on-nav-section-label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #3a3a3a;
	margin-bottom: 10px;
}
.on-nav-topics-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.on-nav-topics-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
}
.on-nav-topic-link {
	font-size: 12px;
	color: #666;
	text-decoration: none;
	transition: color 0.15s;
	flex: 1;
}
.on-nav-topic-link:hover { color: #c8102e; }
.on-nav-topic-count {
	font-size: 10px;
	color: #333;
	font-weight: 600;
	background: #1a1a1a;
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 6px;
	flex-shrink: 0;
}

/* AI Blurb */
.on-nav-ai-blurb {
	margin: 14px 12px;
	padding: 14px;
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 8px;
	flex-shrink: 0;
}
.on-nav-ai-icon {
	display: block;
	margin-bottom: 8px;
}
.on-nav-ai-title {
	font-size: 12px;
	font-weight: 700;
	color: #e0e0e0;
	margin: 0 0 6px;
	line-height: 1.3;
}
.on-nav-ai-desc {
	font-size: 11px;
	color: #555;
	line-height: 1.55;
	margin: 0 0 10px;
}
.on-nav-ai-link {
	font-size: 11px;
	color: #c8102e;
	text-decoration: none;
	font-weight: 600;
}
.on-nav-ai-link:hover { text-decoration: underline; }

/* Left bottom widget */
.on-nav-bottom {
	flex-shrink: 0;
	border-top: 1px solid #1a1a1a;
	padding: 14px 16px;
	margin-top: auto;
}
.on-nav-widget-title {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #333;
	margin: 0 0 8px;
}
.on-nav-widget { font-size: 12px; color: #555; line-height: 1.6; }
.on-nav-widget a { color: #555; text-decoration: none; }
.on-nav-widget a:hover { color: #c8102e; }

/* =====================================================================
   CENTER — SCROLLABLE CONTENT COLUMN (dark by default)
   Single / page templates get a light background for readability
   ===================================================================== */

.on-center {
	flex: 1;
	min-width: 0;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	background: #0d0d0d;
	scrollbar-width: thin;
	scrollbar-color: #1e1e1e #0d0d0d;
}
.on-center::-webkit-scrollbar { width: 5px; }
.on-center::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 3px; }

/* Kill any white-background wrappers Kadence injects into the center column */
.on-center > .site-content,
.on-center > .content-area,
.on-center > .kadence-content-wrap,
.on-center > #content,
.on-center > .entry-content,
.on-center > div:not(.on-homepage):not(.on-archive):not(.on-article):not(.on-center-search):not([class*="on-"]) {
	background: transparent !important;
}

/* =====================================================================
   LOGO VISIBILITY — show correct logo per scheme
   ===================================================================== */

/* Dark mode: hide light logo */
.on-theme-dark .on-logo--light { display: none; }
/* Light mode: hide dark logo */
.on-theme-light .on-logo--dark { display: none; }

/* If only one logo uploaded, always show it regardless of scheme */
.on-logo--dark:only-of-type,
.on-logo--light:only-of-type { display: block !important; }

/* Shared logo sizing */
.on-logo img { max-width: 200px; height: auto; display: block; }

/* Single posts and pages stay dark — consistent with the overall theme */

/* =====================================================================
   CENTER SEARCH BAR (non-sticky, dark styled)
   ===================================================================== */

.on-center-search {
	padding: 14px 20px;
	border-bottom: 1px solid #161616;
	background: #0d0d0d !important;
}
.on-center-search__form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #111 !important;
	border: 1px solid #222 !important;
	border-radius: 6px;
	padding: 0 14px;
	height: 38px;
	transition: border-color 0.15s;
	outline: none !important;
	box-shadow: none !important;
}
.on-center-search__form:focus-within { border-color: #c8102e !important; }
.on-center-search__form svg { color: #3a3a3a; flex-shrink: 0; }
.on-center-search__form input[type="search"],
.on-center-search__form input[type="search"]:focus,
.on-center-search__form input[type="search"]:active {
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	font-size: 13px;
	color: #aaa;
	flex: 1;
	min-width: 0;
	padding: 0;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
}
.on-center-search__form input[type="search"]::placeholder { color: #333; }
.on-center-search__form input[type="search"]::-webkit-search-cancel-button { display: none; }

/* =====================================================================
   LEGACY TOPBAR — keep rules so old markup doesn't break if cached
   ===================================================================== */

.on-topbar { display: none; }

/* =====================================================================
   SHARED COMPONENTS
   ===================================================================== */

/* Category badges */
.on-cat-badge {
	display: inline-block;
	background: #c8102e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	text-decoration: none;
	line-height: 1.6;
	transition: background 0.15s;
}
.on-cat-badge:hover { background: #a30015; color: #fff; }
.on-cat-badge--sm { font-size: 9px; padding: 2px 7px; }

/* Meta row (date · author · read time) */
.on-card__meta, .on-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #555;
}
.on-meta-dot { color: #2e2e2e; }
.on-meta-author { font-weight: 600; color: #666; }
.on-meta-source .on-field-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #c8102e; font-weight: 700; }

/* Section headers */
.on-section { padding: 28px 28px 36px; background: #0d0d0d; }
.on-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	border-bottom: 2px solid #c8102e;
	padding-bottom: 10px;
}
.on-section__title {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #f0f0f0;
	margin: 0;
}
.on-section__more {
	font-size: 11px;
	color: #c8102e;
	text-decoration: none;
	font-weight: 600;
}
.on-section__more:hover { text-decoration: underline; }

/* No-posts / not-found */
.on-no-posts {
	padding: 40px 28px;
	color: #555;
	font-size: 14px;
}

/* Pagination */
.on-pagination { padding: 24px 28px 40px; }
.on-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	border: 1px solid #252525;
	margin: 0 2px;
	transition: background 0.15s, color 0.15s;
}
.on-pagination .page-numbers.current,
.on-pagination .page-numbers:hover {
	background: #c8102e;
	border-color: #c8102e;
	color: #fff;
}
.on-pagination .page-numbers.dots { border: none; cursor: default; }

/* =====================================================================
   HOMEPAGE — HERO
   ===================================================================== */

.on-homepage { padding-bottom: 40px; background: #0d0d0d; }

.on-hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #0d0d0d;
}

.on-hero__image {
	position: absolute;
	inset: 0;
}
.on-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.on-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.1) 100%);
}

/* FEATURED STORY badge */
.on-hero__badge-wrap {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
}
.on-hero__featured-badge {
	background: #c8102e;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
}

.on-hero__content {
	position: relative;
	z-index: 2;
	padding: 32px 28px;
	width: 100%;
	max-width: 680px;
}
.on-hero__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.on-hero__cat {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #c8102e;
	text-decoration: none;
}
.on-hero__cat:hover { color: #e0273e; }
.on-hero__meta-sep { color: #444; }
.on-hero__readtime { font-size: 11px; color: #666; }

.on-hero__title {
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.on-hero__title a { color: #fff; text-decoration: none; transition: color 0.15s; }
.on-hero__title a:hover { color: #c8102e; }

.on-hero__excerpt { font-size: 14px; color: #aaa; line-height: 1.6; margin: 0 0 16px; }

.on-hero__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.on-hero__footer .on-meta-date,
.on-hero__footer .on-meta-author,
.on-hero__footer .on-meta-read { color: #666; font-size: 12px; }
.on-hero__footer .on-meta-dot { color: #333; }

.on-hero__read-btn {
	margin-left: auto;
	background: #c8102e;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 2px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	transition: background 0.15s;
}
.on-hero__read-btn:hover { background: #a30015; color: #fff; }

/* =====================================================================
   CARD GRID (Top Stories & Archives)
   ===================================================================== */

.on-card-grid {
	display: grid;
	gap: 16px;
	padding: 0 28px;
	margin-bottom: 8px;
}
/* Remove the card-grid's own horizontal padding when inside .on-section */
.on-section .on-card-grid { padding-left: 0; padding-right: 0; }

.on-card-grid--4col { grid-template-columns: repeat(4, 1fr); }
.on-card-grid--3col { grid-template-columns: repeat(3, 1fr); }
.on-card-grid--2col { grid-template-columns: repeat(2, 1fr); }

.on-card {
	display: flex;
	flex-direction: column;
	background: #141414;
	border: 1px solid #252525;
	border-radius: 5px;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.on-card:hover {
	border-color: #333;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Thumb wrap — needed for category badge overlay */
.on-card__thumb-wrap {
	position: relative;
	overflow: hidden;
}
.on-card__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: #1a1a1a;
}
.on-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s;
}
.on-card:hover .on-card__thumb img { transform: scale(1.04); }

/* Category badge overlaid on card image (bottom-left) */
.on-card__cat-overlay {
	position: absolute;
	bottom: 8px;
	left: 8px;
	text-decoration: none;
}
.on-card__cat-overlay .on-cat-badge {
	box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.on-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.on-card__title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	color: #f0f0f0;
}
.on-card__title a { color: inherit; text-decoration: none; }
.on-card__title a:hover { color: #c8102e; }

.on-card__excerpt { font-size: 12.5px; color: #666; line-height: 1.55; margin: 0; }

/* Card footer: read time + bookmark icon */
.on-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 6px;
	border-top: 1px solid #1e1e1e;
}
.on-card__read-time {
	font-size: 11px;
	color: #444;
}

/* Bookmark button */
.on-bookmark-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #3a3a3a;
	border-radius: 3px;
	transition: color 0.15s, background 0.15s;
}
.on-bookmark-btn:hover { color: #c8102e; background: rgba(200,16,46,0.1); }
.on-bookmark-btn--news { color: #2a2a2a; }

/* =====================================================================
   ANALYSIS SECTION v2 — Dark 3-col grid cards with icon + confidence bar
   ===================================================================== */

.on-analysis { background: #0a0a0a; }
.on-analysis .on-section__header { border-bottom-color: #c8102e; }

.on-analysis-card-v2 {
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 6px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: border-color 0.2s;
}
.on-analysis-card-v2:hover { border-color: #2a2a2a; }

.on-analysis-card-v2__icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.on-analysis-card-v2__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	color: #f0f0f0;
}
.on-analysis-card-v2__title a { color: inherit; text-decoration: none; }
.on-analysis-card-v2__title a:hover { color: #c8102e; }

.on-analysis-card-v2__excerpt { font-size: 12px; color: #666; line-height: 1.55; margin: 0; }

/* Confidence bar */
.on-confidence { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.on-confidence__label { font-size: 10px; color: #444; font-weight: 600; letter-spacing: 0.5px; }
.on-confidence__track {
	height: 3px;
	background: #1e1e1e;
	border-radius: 2px;
	overflow: hidden;
}
.on-confidence__fill { height: 100%; background: #c8102e; border-radius: 2px; }

.on-analysis-read-btn {
	font-size: 11px;
	color: #c8102e;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-top: auto;
}
.on-analysis-read-btn:hover { text-decoration: underline; }

/* Legacy horizontal-scroll analysis cards (kept for back-compat) */
.on-analysis-scroll {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 0 28px 12px;
	scrollbar-width: thin;
	scrollbar-color: #222 #0d0d0d;
	-webkit-overflow-scrolling: touch;
}
.on-analysis-scroll::-webkit-scrollbar { height: 4px; }
.on-analysis-scroll::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

.on-analysis-card {
	flex-shrink: 0;
	width: 220px;
	border-radius: 4px;
	overflow: hidden;
	background: #111;
	position: relative;
}
.on-analysis-card__thumb { display: block; height: 150px; overflow: hidden; position: relative; }
.on-analysis-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.on-analysis-card:hover .on-analysis-card__thumb img { transform: scale(1.05); }
.on-analysis-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); }
.on-analysis-card__body { padding: 14px; }
.on-analysis-card__title { font-size: 13px; font-weight: 700; line-height: 1.35; margin: 6px 0; color: #e0e0e0; }
.on-analysis-card__title a { color: inherit; text-decoration: none; }
.on-analysis-card__title a:hover { color: #c8102e; }
.on-analysis-card .on-card__meta { color: #444; font-size: 11px; }

/* =====================================================================
   LATEST NEWS — List view with tabs
   ===================================================================== */

.on-latest-news { padding: 28px 28px 40px; }
.on-latest-news .on-section__header { padding: 0 0 10px; }

/* Category filter tabs */
.on-news-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}
.on-news-tab {
	font-size: 11px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	border: 1px solid #222;
	color: #555;
	text-decoration: none;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
	white-space: nowrap;
}
.on-news-tab:hover { color: #fff; border-color: #333; background: #1a1a1a; }
.on-news-tab--active { color: #fff; background: #c8102e; border-color: #c8102e; }
.on-news-tab--active:hover { background: #a30015; border-color: #a30015; }

.on-news-list { display: flex; flex-direction: column; gap: 0; }

.on-news-item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #1a1a1a;
	align-items: center;
}
.on-news-item:last-child { border-bottom: none; }

.on-news-item__thumb {
	flex-shrink: 0;
	width: 100px;
	height: 70px;
	overflow: hidden;
	border-radius: 4px;
	display: block;
	background: #1a1a1a;
}
.on-news-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.on-news-item:hover .on-news-item__thumb img { transform: scale(1.05); }

.on-news-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.on-news-item__title { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin: 0; color: #e8e8e8; }
.on-news-item__title a { color: inherit; text-decoration: none; }
.on-news-item__title a:hover { color: #c8102e; }
.on-news-item__cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #c8102e; }

/* =====================================================================
   ARCHIVE PAGE
   ===================================================================== */

.on-archive { padding-bottom: 40px; }

.on-archive-header {
	padding: 28px 28px 20px;
	border-bottom: 2px solid #c8102e;
	margin-bottom: 24px;
}
.on-archive-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #c8102e;
	display: block;
	margin-bottom: 6px;
}
.on-archive-title { font-size: 28px; font-weight: 800; color: #f0f0f0; margin: 0 0 6px; }
.on-archive-desc { font-size: 14px; color: #555; margin: 0; }

/* Page static content — dark text on dark bg */
.on-page .on-article,
.on-page .on-article h1,
.on-page .on-article h2,
.on-page .on-article h3,
.on-page .on-article h4 { color: #f0f0f0; }
.on-page .on-article p,
.on-page .on-article li { color: #c0c0c0; }
.on-archive .on-card-grid { margin-bottom: 0; }

/* =====================================================================
   SINGLE POST (light center bg)
   ===================================================================== */

.on-article {
	max-width: 780px;
	margin: 0 auto;
	padding: 40px 40px 64px;
}

.on-post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.on-post-title {
	font-size: clamp(22px, 3.5vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	color: #f0f0f0;
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}

.on-original-title {
	font-size: 13px;
	color: #555;
	border-left: 3px solid #c8102e;
	padding-left: 10px;
	margin: 0 0 14px;
	line-height: 1.4;
}
.on-field-label { font-weight: 700; color: #c8102e; margin-right: 4px; }

.on-post-meta { margin-bottom: 22px; }

.on-featured-image { margin: 0 -40px 28px; }
.on-featured-image img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.on-image-caption { font-size: 12px; color: #999; font-style: italic; padding: 6px 40px 0; margin: 0; }

.on-ai-callout-inline {
	background: #0d0d0d;
	border-left: 3px solid #c8102e;
	border-radius: 0 5px 5px 0;
	padding: 14px 16px;
	margin-bottom: 24px;
}
.on-callout-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #c8102e;
	margin-bottom: 6px;
}
.on-ai-callout-inline p { margin: 0; font-size: 13px; color: #ccc; line-height: 1.6; }
.on-hide-desktop { display: none; }

.on-post-content { font-size: 16px; line-height: 1.8; color: #c8c8c8; }
.on-post-content > p { margin: 0 0 1.3em; }
.on-post-content h2 { font-size: 22px; font-weight: 700; margin: 2em 0 0.5em; color: #f0f0f0; }
.on-post-content h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 0.4em; color: #f0f0f0; }
.on-post-content a { color: #c8102e; text-decoration: underline; text-underline-offset: 2px; }
.on-post-content a:hover { color: #e0273e; }
.on-post-content blockquote {
	border-left: 3px solid #c8102e;
	margin: 1.5em 0;
	padding: 12px 20px;
	color: #888;
	background: #111;
	border-radius: 0 4px 4px 0;
}
.on-post-content ul, .on-post-content ol { padding-left: 1.5em; margin-bottom: 1.3em; }
.on-post-content li { margin-bottom: 0.4em; }

.on-source-credit { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #1a1a1a; }
.on-source-credit img { width: 100%; border-radius: 4px; display: block; }
.on-source-credit figcaption { font-size: 12px; color: #555; font-style: italic; margin-top: 6px; }

.on-post-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1a1a1a; font-size: 13px; color: #555; }
.on-tags-label { font-weight: 600; }
.on-post-tags a { color: #555; text-decoration: none; }
.on-post-tags a:hover { color: #c8102e; }

.on-post-nav { max-width: 780px; margin: 0 auto; padding: 0 32px 36px; border-top: 1px solid #1a1a1a; }
.on-post-nav .nav-links { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; }
.on-post-nav .nav-next { text-align: right; }
.on-post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.on-post-nav a:hover .on-nav-post-title { color: #c8102e; }
.on-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #c8102e; }
.on-nav-post-title { font-size: 13px; font-weight: 600; color: #e0e0e0; line-height: 1.3; transition: color 0.15s; }

.on-comments-wrap { max-width: 780px; margin: 0 auto; padding: 0 32px 56px; }
.on-page-links { margin-top: 24px; font-size: 14px; }
.on-page-links a { color: #c8102e; }

/* =====================================================================
   RIGHT PANEL (dark shell)
   ===================================================================== */

.on-right-panel {
	width: var(--on-right-panel-width, 300px);
	min-width: var(--on-right-panel-width, 300px);
	flex-shrink: 0;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	background: #0a0a0a;
	border-left: 1px solid #161616;
	scrollbar-width: thin;
	scrollbar-color: #1a1a1a #0a0a0a;
}
.on-right-panel::-webkit-scrollbar { width: 3px; }
.on-right-panel::-webkit-scrollbar-thumb { background: #1a1a1a; }

.on-panel { border-bottom: 1px solid #161616; }

.on-panel__header {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid #161616;
}
.on-panel__icon { color: #c8102e; line-height: 1; }
.on-panel__title {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #444;
	margin: 0;
}

/* ---- TRENDING panel ---- */
.on-panel--trending { background: #0e0e0e; }
.on-trending-list { list-style: none; margin: 0; padding: 6px 0; }
.on-trending-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 16px;
	border-bottom: 1px solid #161616;
}
.on-trending-item:last-child { border-bottom: none; }
.on-trending-num {
	font-size: 20px;
	font-weight: 900;
	color: #1e1e1e;
	line-height: 1;
	flex-shrink: 0;
	width: 26px;
	padding-top: 2px;
}
.on-trending-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.on-trending-cat { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #c8102e; }
.on-trending-title {
	font-size: 12px;
	font-weight: 700;
	color: #e0e0e0;
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.on-trending-title:hover { color: #c8102e; }
.on-trending-date { font-size: 11px; color: #333; }
.on-trending-thumb {
	flex-shrink: 0;
	width: 52px;
	height: 40px;
	overflow: hidden;
	border-radius: 3px;
	display: block;
	background: #1a1a1a;
}
.on-trending-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- WEEKLY DIGEST panel ---- */
.on-panel--digest { background: #0e0e0e; padding: 20px 16px; }

.on-digest { display: flex; flex-direction: column; gap: 10px; }
.on-digest__icon { opacity: 0.9; }
.on-digest__title { font-size: 15px; font-weight: 800; color: #f0f0f0; margin: 0; line-height: 1.25; }
.on-digest__desc { font-size: 12px; color: #555; line-height: 1.55; margin: 0; }

.on-digest__form { display: flex; flex-direction: column; gap: 8px; }
.on-digest__input {
	width: 100%;
	background: #111;
	border: 1px solid #222;
	border-radius: 5px;
	padding: 9px 12px;
	font-size: 13px;
	color: #ccc;
	outline: none;
	transition: border-color 0.15s;
}
.on-digest__input::placeholder { color: #333; }
.on-digest__input:focus { border-color: #c8102e; }
.on-digest__btn {
	width: 100%;
	background: #c8102e;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.5px;
	transition: background 0.15s;
}
.on-digest__btn:hover { background: #a30015; }

.on-digest__social-proof { font-size: 10px; color: #333; margin: 0; text-align: center; }

/* ---- POPULAR TOPICS panel ---- */
.on-panel--topics { background: #0e0e0e; }

.on-topics-body {
	padding: 12px 14px 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.on-topic-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 20px;
	font-size: 11px;
	color: #888;
	text-decoration: none;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.on-topic-pill:hover { color: #fff; background: #c8102e; border-color: #c8102e; }
.on-topic-count {
	font-size: 9px;
	color: #444;
	font-weight: 600;
	transition: color 0.15s;
}
.on-topic-pill:hover .on-topic-count { color: rgba(255,255,255,0.7); }

.on-topics-more {
	display: block;
	text-align: center;
	font-size: 11px;
	color: #c8102e;
	text-decoration: none;
	font-weight: 600;
	padding: 10px 14px 14px;
}
.on-topics-more:hover { text-decoration: underline; }

/* ---- WIDGET panel ---- */
.on-panel--widget { background: #0e0e0e; }
.on-widget-inner { padding: 12px 16px; font-size: 13px; color: #555; }

/* ---- Single-post AI panels (dark) ---- */
.on-panel--ai { background: #0d0d0d; border-bottom-color: #1a1a1a; }
.on-panel--ai .on-panel__header { border-bottom-color: #1a1a1a; }

.on-ai__heading { padding: 12px 16px 4px; margin: 0; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.on-ai__opportunity {
	margin: 8px 16px;
	background: rgba(200,16,46,0.1);
	border-left: 3px solid #c8102e;
	border-radius: 0 4px 4px 0;
	padding: 9px 11px;
}
.on-ai__opp-label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #c8102e;
	margin-bottom: 4px;
}
.on-ai__opportunity p { margin: 0; font-size: 12.5px; color: #e0e0e0; line-height: 1.55; }
.on-ai__body { padding: 8px 16px 14px; }
.on-ai__body p { margin: 0 0 0.5em; font-size: 12px; color: #555; line-height: 1.65; }
.on-ai__body p:last-child { margin-bottom: 0; }

/* ---- AI Report panel ---- */
.on-panel--report { background: #0e0e0e; }
.on-report__body { padding: 10px 16px 14px; }
.on-report__body p { margin: 0 0 0.5em; font-size: 12.5px; color: #555; line-height: 1.65; }
.on-report__body p:last-child { margin-bottom: 0; }

/* ---- Source panel ---- */
.on-panel--source { background: #0e0e0e; }
.on-source__name { padding: 10px 16px 4px; margin: 0; font-size: 14px; font-weight: 700; color: #e0e0e0; }
.on-source__figure { margin: 6px 16px 14px; }
.on-source__figure img { width: 100%; border-radius: 3px; display: block; }
.on-source__figure figcaption { font-size: 11px; color: #444; font-style: italic; margin-top: 5px; }

/* ---- Meta list panel ---- */
.on-panel--meta { background: #0e0e0e; }
.on-meta-list { list-style: none; margin: 0; padding: 6px 16px 14px; }
.on-meta-list li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid #161616;
	font-size: 12px;
	color: #555;
}
.on-meta-list li:last-child { border-bottom: none; }
.on-meta-list__label {
	font-weight: 700;
	color: #333;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	flex-shrink: 0;
	padding-top: 1px;
}

/* ---- Popular Posts panel ---- */
.on-panel--popular { background: #0e0e0e; }
.on-popular-list { list-style: none; margin: 0; padding: 8px 0; }
.on-popular-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 16px;
	border-bottom: 1px solid #161616;
}
.on-popular-item:last-child { border-bottom: none; }
.on-popular-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 44px;
	overflow: hidden;
	border-radius: 3px;
	display: block;
	background: #1a1a1a;
}
.on-popular-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.on-popular-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.on-popular-title {
	font-size: 12px;
	font-weight: 700;
	color: #e0e0e0;
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.on-popular-title:hover { color: #c8102e; }
.on-popular-date { font-size: 11px; color: #333; }

/* =====================================================================
   STATIC PAGE
   ===================================================================== */

.on-page { padding-bottom: 40px; }
.on-page .on-article { padding: 32px; }

/* =====================================================================
   SITE FOOTER (inside center scroll)
   ===================================================================== */

.on-site-footer {
	background: #080808;
	color: #555;
	padding: 28px 28px;
	margin-top: 24px;
	border-top: 1px solid #161616;
}
.on-site-footer__inner { display: flex; flex-direction: column; gap: 14px; }
.on-site-footer__brand .on-site-wordmark { font-size: 14px; letter-spacing: 2px; }
.on-site-footer__tagline { font-size: 12px; color: #333; margin: 5px 0 0; }
.on-site-footer__nav .on-footer-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.on-site-footer__nav .on-footer-nav-list li a { color: #444; font-size: 12px; text-decoration: none; transition: color 0.15s; }
.on-site-footer__nav .on-footer-nav-list li a:hover { color: #c8102e; }
.on-site-footer__copy { font-size: 11px; color: #333; margin: 0; }

/* =====================================================================
   LIGHT THEME OVERRIDES  (.on-theme-light on <body>)
   All dark values flipped; red accent stays the same.
   ===================================================================== */

.on-theme-light html,
.on-theme-light body { background: #f0f2f5; }

/* Left nav */
.on-theme-light .on-left-nav {
	background: #ffffff;
	border-right-color: #e8e8e8;
	scrollbar-color: #e0e0e0 #ffffff;
}
.on-theme-light .on-left-nav::-webkit-scrollbar-thumb { background: #e0e0e0; }
.on-theme-light .on-nav-logo { border-bottom-color: #f0f0f0; }
.on-theme-light .on-site-wordmark { color: #0b0b0b; }
.on-theme-light .on-nav-tagline { color: #aaa; }

.on-theme-light .on-primary-nav { border-bottom-color: #f0f0f0; }
.on-theme-light .on-nav-list li a { color: #555; }
.on-theme-light .on-nav-list li a:hover { color: #0b0b0b; background: rgba(0,0,0,0.05); }
.on-theme-light .on-nav-list .current-menu-item > a,
.on-theme-light .on-nav-list .current-page-ancestor > a { color: #fff; background: #c8102e; }
.on-theme-light .on-nav-list ul { background: rgba(0,0,0,0.03); }
.on-theme-light .on-nav-list ul li a { color: #888; }

.on-theme-light .on-nav-topics { border-bottom-color: #f0f0f0; }
.on-theme-light .on-nav-section-label { color: #bbb; }
.on-theme-light .on-nav-topic-link { color: #777; }
.on-theme-light .on-nav-topic-count { background: #f0f0f0; color: #aaa; }

.on-theme-light .on-nav-ai-blurb { background: #f7f7f7; border-color: #ebebeb; }
.on-theme-light .on-nav-ai-title { color: #1a1a1a; }
.on-theme-light .on-nav-ai-desc { color: #999; }

.on-theme-light .on-nav-bottom { border-top-color: #f0f0f0; }
.on-theme-light .on-nav-widget { color: #888; }
.on-theme-light .on-nav-widget a { color: #888; }

/* Center column */
.on-theme-light .on-center {
	background: #f0f2f5;
	scrollbar-color: #ddd #f0f2f5;
}
.on-theme-light .on-center::-webkit-scrollbar-thumb { background: #ddd; }

/* Search bar */
.on-theme-light .on-center-search { background: #ffffff !important; border-bottom-color: #efefef; }
.on-theme-light .on-center-search__form { background: #f4f4f4 !important; border-color: #e0e0e0 !important; }
.on-theme-light .on-center-search__form svg { color: #ccc; }
.on-theme-light .on-center-search__form input[type="search"],
.on-theme-light .on-center-search__form input[type="search"]:focus { color: #444 !important; }
.on-theme-light .on-center-search__form input[type="search"]::placeholder { color: #bbb; }

/* Kadence wrapper kill — light background */
.on-theme-light .on-center > div:not(.on-homepage):not(.on-archive):not(.on-article):not(.on-center-search):not([class*="on-"]) {
	background: transparent !important;
}

/* Homepage + sections */
.on-theme-light .on-homepage { background: #f0f2f5; }
.on-theme-light .on-section { background: #f0f2f5; }
.on-theme-light .on-section__title { color: #0b0b0b; }
.on-theme-light .on-meta-dot { color: #ddd; }
.on-theme-light .on-card__meta,
.on-theme-light .on-post-meta { color: #999; }

/* Cards */
.on-theme-light .on-card { background: #ffffff; border-color: #ebebeb; }
.on-theme-light .on-card:hover { border-color: #d8d8d8; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.on-theme-light .on-card__thumb { background: #f5f5f5; }
.on-theme-light .on-card__title { color: #0b0b0b; }
.on-theme-light .on-card__title a:hover { color: #c8102e; }
.on-theme-light .on-card__excerpt { color: #888; }
.on-theme-light .on-card__footer { border-top-color: #f5f5f5; }
.on-theme-light .on-card__read-time { color: #bbb; }
.on-theme-light .on-bookmark-btn { color: #ccc; }
.on-theme-light .on-bookmark-btn:hover { color: #c8102e; background: rgba(200,16,46,0.06); }

/* Analysis cards */
.on-theme-light .on-analysis { background: #e8eaed; }
.on-theme-light .on-analysis-card-v2 { background: #ffffff; border-color: #e8e8e8; }
.on-theme-light .on-analysis-card-v2:hover { border-color: #d0d0d0; }
.on-theme-light .on-analysis-card-v2__title { color: #0b0b0b; }
.on-theme-light .on-analysis-card-v2__excerpt { color: #888; }
.on-theme-light .on-confidence__track { background: #efefef; }

/* News tabs */
.on-theme-light .on-news-tab { border-color: #e0e0e0; color: #888; }
.on-theme-light .on-news-tab:hover { color: #0b0b0b; background: #efefef; border-color: #ddd; }
.on-theme-light .on-news-tab--active { color: #fff; background: #c8102e; border-color: #c8102e; }

/* News list */
.on-theme-light .on-news-item { border-bottom-color: #efefef; }
.on-theme-light .on-news-item__thumb { background: #f0f0f0; }
.on-theme-light .on-news-item__title { color: #0b0b0b; }
.on-theme-light .on-news-item__title a:hover { color: #c8102e; }
.on-theme-light .on-bookmark-btn--news { color: #ccc; }

/* Archive */
.on-theme-light .on-archive-title { color: #0b0b0b; }
.on-theme-light .on-archive-desc { color: #888; }

/* Single post article */
.on-theme-light .on-post-title { color: #0b0b0b; }
.on-theme-light .on-original-title { color: #888; }
.on-theme-light .on-post-content { color: #1a1a1a; }
.on-theme-light .on-post-content h2,
.on-theme-light .on-post-content h3 { color: #0b0b0b; }
.on-theme-light .on-post-content blockquote { background: #f5f5f5; color: #666; }
.on-theme-light .on-source-credit,
.on-theme-light .on-post-footer { border-top-color: #efefef; }
.on-theme-light .on-post-footer { color: #aaa; }
.on-theme-light .on-post-tags a { color: #aaa; }
.on-theme-light .on-post-nav { border-top-color: #efefef; }
.on-theme-light .on-nav-post-title { color: #1a1a1a; }
.on-theme-light .on-ai-callout-inline { background: #f5f5f5; border-left-color: #c8102e; }
.on-theme-light .on-ai-callout-inline p { color: #555; }

/* Page content */
.on-theme-light .on-page .on-article,
.on-theme-light .on-page .on-article h1,
.on-theme-light .on-page .on-article h2,
.on-theme-light .on-page .on-article h3,
.on-theme-light .on-page .on-article h4 { color: #0b0b0b; }
.on-theme-light .on-page .on-article p,
.on-theme-light .on-page .on-article li { color: #444; }

/* Right panel */
.on-theme-light .on-right-panel {
	background: #f7f7f7;
	border-left-color: #ebebeb;
	scrollbar-color: #e0e0e0 #f7f7f7;
}
.on-theme-light .on-panel { border-bottom-color: #ebebeb; }
.on-theme-light .on-panel__header { border-bottom-color: #ebebeb; }
.on-theme-light .on-panel__title { color: #888; }

/* Trending */
.on-theme-light .on-panel--trending { background: #ffffff; }
.on-theme-light .on-trending-item { border-bottom-color: #f0f0f0; }
.on-theme-light .on-trending-num { color: #e8e8e8; }
.on-theme-light .on-trending-title { color: #1a1a1a; }
.on-theme-light .on-trending-date { color: #999; }
.on-theme-light .on-trending-thumb { background: #f0f0f0; }

/* Weekly Digest */
.on-theme-light .on-panel--digest { background: #ffffff; }
.on-theme-light .on-digest__title { color: #0b0b0b; }
.on-theme-light .on-digest__desc { color: #666; }
.on-theme-light .on-digest__input { background: #f5f5f5; border-color: #e0e0e0; color: #333; }
.on-theme-light .on-digest__input::placeholder { color: #bbb; }
.on-theme-light .on-digest__social-proof { color: #999; }

/* Popular Topics */
.on-theme-light .on-panel--topics { background: #ffffff; }
.on-theme-light .on-topic-pill { background: #f5f5f5; border-color: #e8e8e8; color: #666; }
.on-theme-light .on-topic-pill:hover { color: #fff; background: #c8102e; border-color: #c8102e; }
.on-theme-light .on-topic-count { color: #bbb; }
.on-theme-light .on-topics-more { color: #c8102e; }

/* Widget + Popular Posts */
.on-theme-light .on-panel--widget,
.on-theme-light .on-panel--popular { background: #ffffff; }
.on-theme-light .on-popular-item { border-bottom-color: #f5f5f5; }
.on-theme-light .on-popular-title { color: #1a1a1a; }
.on-theme-light .on-popular-date { color: #999; }
.on-theme-light .on-popular-thumb { background: #f0f0f0; }

/* Single-post right panel (footer-single.php) — Article Info, AI, Report, Source */
.on-theme-light .on-panel--meta,
.on-theme-light .on-panel--ai,
.on-theme-light .on-panel--report,
.on-theme-light .on-panel--source { background: #ffffff; }

.on-theme-light .on-panel--meta .on-panel__header,
.on-theme-light .on-panel--ai .on-panel__header,
.on-theme-light .on-panel--report .on-panel__header,
.on-theme-light .on-panel--source .on-panel__header { border-bottom-color: #ebebeb; }

.on-theme-light .on-panel--ai .on-panel__title,
.on-theme-light .on-panel--meta .on-panel__title,
.on-theme-light .on-panel--report .on-panel__title,
.on-theme-light .on-panel--source .on-panel__title { color: #888; }

/* Meta list (Article Info rows) */
.on-theme-light .on-meta-list li { border-bottom-color: #f0f0f0; color: #1a1a1a; }
.on-theme-light .on-meta-list__label { color: #aaa; }

/* AI panel content */
.on-theme-light .on-ai__heading { color: #0b0b0b; }
.on-theme-light .on-ai__opportunity { background: rgba(200,16,46,0.05); }
.on-theme-light .on-ai__opportunity p { color: #444; }
.on-theme-light .on-ai__body p { color: #666; }

/* Report panel */
.on-theme-light .on-report__body p { color: #555; }

/* Source panel */
.on-theme-light .on-source__name { color: #0b0b0b; }
.on-theme-light .on-source__figure figcaption { color: #999; }

/* Pagination */
.on-theme-light .on-pagination .page-numbers { border-color: #e0e0e0; color: #555; }

/* Site footer */
.on-theme-light .on-site-footer { background: #1a1a1a; border-top-color: #111; }
.on-theme-light .on-site-footer__copy { color: #666; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media screen and (max-width: 1400px) {
	.on-card-grid--4col { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 1200px) {
	.on-right-panel {
		width: min(var(--on-right-panel-width, 300px), 260px);
		min-width: min(var(--on-right-panel-width, 300px), 260px);
	}
	.on-card-grid--4col { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 1024px) {
	.on-card-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 900px) {
	/* Re-enable full-page scroll */
	html, body { overflow: auto; height: auto; }

	.on-layout { flex-direction: column; height: auto; overflow: visible; width: 100%; }

	/* Left nav → top bar */
	.on-left-nav {
		width: 100%;
		min-width: unset;
		height: auto;
		flex-direction: row;
		overflow: visible;
		border-right: none;
		border-bottom: 1px solid #1a1a1a;
	}
	.on-nav-logo { padding: 12px 16px; border-bottom: none; border-right: 1px solid #1a1a1a; }
	.on-nav-tagline { display: none; }
	.on-primary-nav { flex: 1; overflow-x: auto; padding: 0; border-bottom: none; }
	.on-nav-list { display: flex; flex-wrap: nowrap; }
	.on-nav-list li a {
		padding: 14px 12px;
		border-radius: 0;
		border-bottom: 3px solid transparent;
		margin: 0;
		white-space: nowrap;
		background: none;
	}
	.on-nav-list li a svg { display: none; }
	.on-nav-list li a:hover,
	.on-nav-list .current-menu-item > a {
		background: none;
		border-bottom-color: #c8102e;
		color: #fff;
	}
	.on-nav-list ul { display: none; }
	.on-nav-topics, .on-nav-ai-blurb, .on-nav-bottom { display: none; }

	/* Center → full width, scrolls naturally */
	.on-center { height: auto; overflow: visible; width: 100%; background: #0d0d0d; }
	.single .on-center, .page .on-center { background: #fafafa; }

	/* Right panel → full-width bottom section */
	.on-right-panel {
		width: 100%;
		min-width: unset;
		height: auto;
		overflow: visible;
		border-left: none;
		border-top: 3px solid #c8102e;
	}

	/* Article */
	.on-article { padding: 28px 20px 48px; }
	.on-featured-image { margin: 0 -20px 20px; }
	.on-image-caption { padding: 5px 20px 0; }
	.on-post-nav, .on-comments-wrap { padding: 0 20px 36px; }

	/* Sections */
	.on-section, .on-latest-news { padding-left: 16px; padding-right: 16px; }
	.on-card-grid { padding: 0 16px; }
	.on-archive-header { padding: 20px 16px 14px; }
	.on-pagination { padding: 16px 16px 32px; }
	.on-center-search { padding: 10px 14px; }

	/* Show inline AI callouts on mobile */
	.on-hide-desktop { display: block; }
}

@media screen and (max-width: 600px) {
	.on-card-grid--4col,
	.on-card-grid--3col,
	.on-card-grid--2col { grid-template-columns: 1fr; }
	.on-hero { min-height: 300px; }
	.on-hero__content { padding: 20px 16px; }
	.on-post-title { font-size: 22px; }
}
