/* ==========================================================================
   Clave Mendoza — News Theme
   ========================================================================== */

:root {
	--cm-primary: #c41e3a;
	--cm-secondary: #0a1628;
	--cm-accent: #d4a017;
	--cm-header-bg: #0a1628;
	--cm-footer-bg: #060d18;
	--cm-text: #1a1a2e;
	--cm-text-muted: #64748b;
	--cm-border: #e2e8f0;
	--cm-bg: #f8fafc;
	--cm-white: #ffffff;
	--cm-radius: 8px;
	--cm-radius-lg: 12px;
	--cm-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
	--cm-shadow-hover: 0 12px 40px rgba(10, 22, 40, 0.14);
	--cm-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
	--cm-font-head: 'Playfair Display', Georgia, serif;
	--cm-container: 1280px;
	--cm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--cm-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cm-text);
	background: var(--cm-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--cm-primary);
	text-decoration: none;
	transition: color var(--cm-transition);
}

a:hover { color: var(--cm-secondary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cm-font-head);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

.container {
	width: 100%;
	max-width: var(--cm-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 1.5rem;
	font-family: var(--cm-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	border: none;
	border-radius: var(--cm-radius);
	cursor: pointer;
	transition: all var(--cm-transition);
}

.btn-primary {
	background: var(--cm-primary);
	color: var(--cm-white);
}

.btn-primary:hover {
	background: var(--cm-secondary);
	color: var(--cm-white);
	transform: translateY(-1px);
}

/* ---- Category badge ---- */
.category-badge {
	display: inline-block;
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	padding: 0.25rem 0.7rem;
	font-family: var(--cm-font-body);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cm-white);
	background: var(--badge-color, var(--cm-primary));
	border-radius: 3px;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.category-badge:hover {
	color: var(--cm-white);
	opacity: 0.9;
}

/* ---- Ticker ---- */
.news-ticker {
	background: var(--cm-primary);
	color: var(--cm-white);
	font-size: 0.85rem;
	overflow: hidden;
}

.ticker-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0;
}

.ticker-label {
	flex-shrink: 0;
	padding: 0.2rem 0.75rem;
	background: rgba(0,0,0,0.2);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	border-radius: 3px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.75; }
}

.ticker-track {
	overflow: hidden;
	flex: 1;
	mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.ticker-content {
	display: flex;
	gap: 1.5rem;
	white-space: nowrap;
	animation: ticker 60s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-content a {
	color: var(--cm-white);
	font-weight: 500;
}

.ticker-content a:hover { text-decoration: underline; }

.ticker-dot { opacity: 0.5; }

@keyframes ticker {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---- Header ---- */
.site-header {
	background: var(--cm-header-bg);
	color: var(--cm-white);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 1.25rem;
}

.site-branding { flex-shrink: 0; }

.site-branding .custom-logo-link img {
	max-height: 56px;
	width: auto;
}

.site-title-link {
	display: flex;
	flex-direction: column;
	color: var(--cm-white);
	text-decoration: none;
}

.site-title {
	font-family: var(--cm-font-head);
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.site-title-link:hover .site-title { color: var(--cm-accent); }

.site-tagline {
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 0.15rem;
}

.main-navigation { flex: 1; display: flex; justify-content: center; }

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a,
.primary-menu .cat-item a {
	color: rgba(255,255,255,0.85);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.25rem 0;
	position: relative;
}

.primary-menu a::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 0; height: 2px;
	background: var(--cm-accent);
	transition: width var(--cm-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item a,
.primary-menu .current-cat a {
	color: var(--cm-white);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after { width: 100%; }

.header-search { position: relative; }

.search-toggle {
	background: rgba(255,255,255,0.1);
	border: none;
	color: var(--cm-white);
	width: 40px; height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--cm-transition);
}

.search-toggle:hover { background: var(--cm-primary); }

.search-panel {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	width: 320px;
	background: var(--cm-white);
	padding: 1rem;
	border-radius: var(--cm-radius);
	box-shadow: var(--cm-shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all var(--cm-transition);
}

.search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-field {
	flex: 1;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	font-family: inherit;
	font-size: 0.9rem;
}

.search-submit { padding: 0.6rem 1rem; font-size: 0.85rem; }

/* Category bar */
.category-bar {
	background: rgba(0,0,0,0.25);
	border-top: 1px solid rgba(255,255,255,0.08);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-menu {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.category-menu a {
	display: block;
	padding: 0.65rem 1.25rem;
	color: rgba(255,255,255,0.75);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 3px solid transparent;
	transition: all var(--cm-transition);
}

.category-menu a:hover,
.category-menu .current-menu-item a {
	color: var(--cm-white);
	border-bottom-color: var(--cm-accent);
	background: rgba(255,255,255,0.05);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--cm-white);
	transition: all var(--cm-transition);
	border-radius: 2px;
}

.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero-section {
	padding: 1.25rem 0 1.5rem;
	background: var(--cm-white);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 1rem;
	align-items: stretch;
}

.hero-main {
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	background: var(--cm-secondary);
	box-shadow: var(--cm-shadow);
}

.hero-main-link {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	min-height: 236px;
	height: 100%;
	color: var(--cm-white);
	text-decoration: none;
}

.hero-main-link:hover .hero-title {
	color: var(--cm-accent);
}

.hero-main-image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-main-image img,
.hero-main-image .post-thumbnail-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-main-body {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 1.25rem 1.25rem 1.1rem;
	background: linear-gradient(
		to top,
		rgba(10, 22, 40, 0.97) 0%,
		rgba(10, 22, 40, 0.82) 55%,
		rgba(10, 22, 40, 0) 100%
	);
}

.hero-title {
	font-size: clamp(1.2rem, 2.2vw, 1.65rem);
	font-weight: 800;
	line-height: 1.25;
	margin: 0.35rem 0 0.45rem;
	color: var(--cm-white);
}

.hero-excerpt {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 0.5rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-meta .entry-date {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
}

.hero-side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero-side-card {
	display: flex;
	height: 110px;
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	background: var(--cm-white);
	box-shadow: var(--cm-shadow);
	transition: transform var(--cm-transition), box-shadow var(--cm-transition);
}

.hero-side-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--cm-shadow-hover);
}

.hero-side-link {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	height: 100%;
	color: var(--cm-text);
	text-decoration: none;
}

.hero-side-link:hover .hero-side-title {
	color: var(--cm-primary);
}

.hero-side-image {
	position: relative;
	width: 130px;
	min-width: 130px;
	height: 110px;
	flex: 0 0 130px;
	overflow: hidden;
	background: var(--cm-bg);
}

.hero-side-image img,
.hero-side-image .post-thumbnail-placeholder {
	width: 100%;
	height: 110px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.hero-side-card:hover .hero-side-image img {
	transform: scale(1.04);
}

.hero-side-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.6rem 0.8rem;
}

.hero-side-title {
	font-family: var(--cm-font-head);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--cm-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-side-body .category-badge {
	margin-bottom: 0.1rem;
	font-size: 0.6rem;
	padding: 0.12rem 0.45rem;
}

.hero-side-meta .entry-date {
	font-size: 0.72rem;
	color: var(--cm-text-muted);
}

.post-thumbnail-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--cm-secondary), #1e3a5f);
	color: rgba(255, 255, 255, 0.3);
	min-height: 120px;
	height: 100%;
}

.post-thumbnail-placeholder svg {
	width: 48px;
	height: 48px;
}

/* ---- Category blocks ---- */
.category-block {
	padding: 2.5rem 0;
	border-bottom: 1px solid var(--cm-border);
}

.category-block:nth-child(even) { background: var(--cm-white); }

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--block-color, var(--cm-primary));
}

.section-title {
	font-size: 1.5rem;
	margin: 0;
}

.section-title a {
	color: var(--cm-secondary);
}

.section-title a:hover { color: var(--block-color, var(--cm-primary)); }

.section-more {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cm-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.section-more:hover { color: var(--cm-primary); }

.category-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 1.25rem;
}

.card-featured {
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	background: var(--cm-white);
	box-shadow: var(--cm-shadow);
	transition: transform var(--cm-transition);
}

.card-featured:hover { transform: translateY(-4px); }

.card-featured-link { display: block; color: var(--cm-text); }

.card-featured-image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.card-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card-featured:hover .card-featured-image img { transform: scale(1.04); }

.card-featured-body { padding: 1.25rem; }

.card-featured-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.card-featured-excerpt {
	color: var(--cm-text-muted);
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.category-grid-side {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.card-compact {
	background: var(--cm-white);
	border-radius: var(--cm-radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.05);
	transition: box-shadow var(--cm-transition);
}

.card-compact:hover { box-shadow: var(--cm-shadow); }

.card-compact-link {
	display: flex;
	gap: 1rem;
	padding: 0.75rem;
	color: var(--cm-text);
}

.card-compact-image {
	width: 90px;
	height: 70px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
}

.card-compact-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-compact-title {
	font-family: var(--cm-font-head);
	font-size: 0.95rem;
	line-height: 1.35;
	margin: 0 0 0.35rem;
}

/* ---- News grid ---- */
.latest-section { padding: 2.5rem 0 3rem; }

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.5rem;
	align-items: start;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.news-card {
	background: var(--cm-white);
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
	box-shadow: var(--cm-shadow);
	transition: transform var(--cm-transition), box-shadow var(--cm-transition);
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--cm-shadow-hover);
}

.news-card-link { display: block; color: var(--cm-text); }

.news-card-image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.news-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body { padding: 1.15rem; }

.news-card-title {
	font-family: var(--cm-font-head);
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0.35rem 0 0.5rem;
}

.news-card-excerpt {
	font-size: 0.875rem;
	color: var(--cm-text-muted);
	margin: 0 0 0.75rem;
	line-height: 1.5;
}

.news-card-meta .entry-date {
	font-size: 0.75rem;
	color: var(--cm-text-muted);
}

/* ---- Sidebar ---- */
.sidebar {
	position: sticky;
	top: calc(80px + 1rem);
}

.widget {
	background: var(--cm-white);
	border-radius: var(--cm-radius-lg);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--cm-shadow);
}

.widget-title {
	font-family: var(--cm-font-head);
	font-size: 1.1rem;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--cm-primary);
}

.sidebar-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-recent-list li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--cm-border);
}

.sidebar-recent-list li:last-child { border-bottom: none; }

.sidebar-recent-list a {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--cm-text);
	line-height: 1.4;
	margin-bottom: 0.25rem;
}

.sidebar-recent-list a:hover { color: var(--cm-primary); }

.sidebar-recent-list time {
	font-size: 0.75rem;
	color: var(--cm-text-muted);
}

.sidebar-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-cat-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--cm-border);
}

.sidebar-cat-list a {
	font-weight: 500;
	color: var(--cm-text);
}

.sidebar-cat-list a:hover { color: var(--cm-primary); }

/* ---- Single post ---- */
.single-layout {
	max-width: 820px;
	padding: 2.5rem 1.25rem 3rem;
}

.single-article {
	background: var(--cm-white);
	border-radius: var(--cm-radius-lg);
	padding: 2rem;
	box-shadow: var(--cm-shadow);
}

.entry-header { margin-bottom: 1.5rem; }

.entry-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: var(--cm-secondary);
	line-height: 1.2;
	margin: 0.75rem 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	color: var(--cm-text-muted);
}

.meta-sep { opacity: 0.4; }

.entry-hero-image {
	margin: 0 -2rem 1.5rem;
	border-radius: 0;
	overflow: hidden;
}

.entry-hero-image img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--cm-text);
}

.entry-content p,
.entry-content .mdzol-content p {
	margin: 0 0 1.35em;
}

.entry-content h2,
.entry-content .mdzol-content h2 {
	font-size: 1.5rem;
	margin: 2em 0 0.75em;
	color: var(--cm-secondary);
	padding-left: 0.75rem;
	border-left: 4px solid var(--cm-primary);
}

.entry-content h3,
.entry-content .mdzol-content h3 {
	font-size: 1.25rem;
	margin: 1.75em 0 0.65em;
}

.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.5rem;
	background: var(--cm-bg);
	border-left: 4px solid var(--cm-accent);
	font-style: italic;
}

.mdzol-lead {
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--cm-secondary);
	margin-bottom: 1.5em !important;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cm-border);
}

.entry-tags .tags-label {
	font-weight: 700;
	margin-right: 0.5rem;
}

.entry-tags a {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	margin: 0.15rem;
	background: var(--cm-bg);
	border-radius: 4px;
	font-size: 0.8rem;
	text-decoration: none;
}

.entry-tags a:hover {
	background: var(--cm-primary);
	color: var(--cm-white);
}

/* Related posts */
.related-posts {
	margin-top: 2.5rem;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.card-small-link {
	display: block;
	color: var(--cm-text);
}

.card-small-image {
	border-radius: var(--cm-radius);
	overflow: hidden;
	margin-bottom: 0.5rem;
	aspect-ratio: 16/10;
}

.card-small-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-small-title {
	font-family: var(--cm-font-head);
	font-size: 0.875rem;
	line-height: 1.35;
	margin: 0;
}

/* ---- Archive ---- */
.archive-layout,
.search-layout {
	padding: 2rem 0 3rem;
}

.archive-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--cm-primary);
}

.archive-title {
	font-size: 2rem;
	color: var(--cm-secondary);
}

.archive-title span { color: var(--cm-primary); }

.archive-description {
	color: var(--cm-text-muted);
	margin-top: 0.5rem;
}

/* Pagination */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background: var(--cm-white);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	font-weight: 600;
	color: var(--cm-text);
	transition: all var(--cm-transition);
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--cm-primary);
	border-color: var(--cm-primary);
	color: var(--cm-white);
}

/* ---- Footer ---- */
.site-footer {
	background: var(--cm-footer-bg);
	color: rgba(255,255,255,0.75);
	margin-top: auto;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding: 3rem 1.25rem;
}

.footer-widget-title {
	color: var(--cm-white);
	font-family: var(--cm-font-head);
	margin-bottom: 1rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 0.85rem;
}

.footer-menu {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: rgba(255,255,255,0.6);
	font-size: 0.85rem;
}

.footer-menu a:hover { color: var(--cm-accent); }

/* ---- 404 ---- */
.error-layout {
	padding: 4rem 0;
	text-align: center;
}

.error-code {
	font-family: var(--cm-font-head);
	font-size: 6rem;
	color: var(--cm-primary);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.error-404 h2 {
	font-size: 1.75rem;
	color: var(--cm-secondary);
}

.error-404 p {
	color: var(--cm-text-muted);
	margin-bottom: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
	.hero-main-link {
		min-height: 240px;
	}
	.hero-side {
		flex-direction: column;
	}
	.category-grid { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.layout-with-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.menu-toggle { display: flex; }

	.main-navigation {
		position: fixed;
		top: 0; left: 0; right: 0; bottom: 0;
		background: var(--cm-header-bg);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		opacity: 0;
		visibility: hidden;
		transition: all var(--cm-transition);
		z-index: 999;
	}

	.main-navigation.is-open {
		opacity: 1;
		visibility: visible;
	}

	.primary-menu {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}

	.primary-menu a { font-size: 1.25rem; }

	.hero-side { flex-direction: column; }
	.news-grid { grid-template-columns: 1fr; }
	.single-article { padding: 1.25rem; }
	.entry-hero-image { margin: 0 -1.25rem 1.25rem; }
	.related-grid { grid-template-columns: 1fr 1fr; }
	.ticker-label { display: none; }
}

@media (max-width: 480px) {
	.site-title { font-size: 1.35rem; }
	.hero-main-content { padding: 1.25rem; }
	.related-grid { grid-template-columns: 1fr; }
}
