/* ==========================================================================
   Pulso Mendoza — News Theme
   ========================================================================== */

:root {
	--pm-primary: #e65100;
	--pm-secondary: #1e293b;
	--pm-accent: #0ea5e9;
	--pm-header-bg: #ffffff;
	--pm-footer-bg: #0f172a;
	--pm-text: #1e293b;
	--pm-text-muted: #64748b;
	--pm-bg: #f8fafc;
	--pm-white: #ffffff;
	--pm-border: #e2e8f0;
	--pm-radius: 8px;
	--pm-radius-lg: 14px;
	--pm-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	--pm-shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.12);
	--pm-font-head: 'Fraunces', Georgia, serif;
	--pm-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--pm-container: 1280px;
	--pm-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	--pm-topbar-accent: 3px;
}

/* --- Reset & Base --- */

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

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

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

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

a { color: var(--pm-primary); text-decoration: none; transition: color var(--pm-transition); }
a:hover { color: #bf360c; }

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

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding-bottom: 3rem; }

/* --- Utilities --- */

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

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

.screen-reader-text:focus, .skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100000;
	width: auto; height: auto; padding: 0.75rem 1.25rem; margin: 0;
	overflow: visible; clip: auto; white-space: normal;
	background: var(--pm-secondary); color: var(--pm-white);
	border-radius: var(--pm-radius); font-size: 0.875rem;
}

.skip-link:focus { z-index: 100001; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.65rem 1.35rem; font-size: 0.9375rem; font-weight: 600;
	border-radius: var(--pm-radius);
	transition: background var(--pm-transition), color var(--pm-transition), transform var(--pm-transition), box-shadow var(--pm-transition);
}

.btn-primary {
	background: var(--pm-primary); color: var(--pm-white);
	box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
}

.btn-primary:hover {
	background: #bf360c; color: var(--pm-white);
	transform: translateY(-1px); box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
}

/* --- Site Topbar --- */

.site-topbar {
	background: var(--pm-secondary);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8125rem;
	border-top: var(--pm-topbar-accent) solid var(--pm-primary);
}

.site-topbar-inner {
	display: flex; align-items: center; gap: 1.25rem;
	min-height: 2.25rem; padding-block: 0.35rem;
}

.site-topbar-date {
	flex-shrink: 0; font-weight: 500; text-transform: capitalize;
	white-space: nowrap; color: rgba(255, 255, 255, 0.7);
}

/* --- News Ticker --- */

.news-ticker {
	display: flex; align-items: center; gap: 0.75rem; overflow: hidden; min-width: 0;
}

.news-ticker--inline { flex: 1; }

.ticker-label {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.2rem 0.65rem; background: var(--pm-primary); color: var(--pm-white);
	font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.06em; border-radius: 3px;
}

.ticker-label::before {
	content: ''; width: 6px; height: 6px; background: var(--pm-white);
	border-radius: 50%; animation: pm-pulse-dot 1.4s ease-in-out infinite;
}

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

.ticker-content {
	display: flex; align-items: center; width: max-content;
	animation: pm-ticker-scroll 40s linear infinite;
}

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

.ticker-content a {
	color: rgba(255, 255, 255, 0.92); font-weight: 500;
	padding: 0.15rem 0.75rem; white-space: nowrap;
	transition: color var(--pm-transition);
}

.ticker-content a:hover { color: var(--pm-accent); }
.ticker-dot { color: rgba(255, 255, 255, 0.3); padding: 0 0.25rem; user-select: none; }

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

@keyframes pm-pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes pm-pulse-ring {
	0% { transform: scale(0.8); opacity: 0.8; }
	100% { transform: scale(1.6); opacity: 0; }
}

/* --- Site Header --- */

.site-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--pm-header-bg);
	border-bottom: 1px solid var(--pm-border);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
	display: flex; align-items: center; gap: 1.5rem; padding-block: 0.85rem;
}

.site-branding { flex-shrink: 0; }
.site-branding .custom-logo-link { display: block; line-height: 0; }
.site-branding .custom-logo { max-height: 52px; width: auto; }

.site-title-link {
	display: flex; flex-direction: column; gap: 0.1rem;
	color: var(--pm-secondary); text-decoration: none;
}

.site-title-link:hover { color: var(--pm-primary); }

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

.site-tagline {
	font-family: var(--pm-font-body); font-size: 0.75rem; font-weight: 500;
	color: var(--pm-text-muted); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Menu Toggle */

.menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 2.5rem; height: 2.5rem; padding: 0.5rem;
	border-radius: var(--pm-radius); transition: background var(--pm-transition);
}

.menu-toggle span {
	display: block; width: 100%; height: 2px;
	background: var(--pm-secondary); border-radius: 2px;
	transition: transform var(--pm-transition), opacity var(--pm-transition);
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:hover { background: var(--pm-bg); }

/* Main Navigation */

.main-navigation { flex: 1; }

.primary-menu {
	display: flex; align-items: center; flex-wrap: wrap; gap: 0.15rem 0.25rem;
}

.primary-menu a {
	display: block; padding: 0.45rem 0.85rem;
	font-size: 0.9375rem; font-weight: 600; color: var(--pm-secondary);
	border-radius: var(--pm-radius);
	transition: background var(--pm-transition), color var(--pm-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: rgba(230, 81, 0, 0.08); color: var(--pm-primary);
}

/* Header Search */

.header-search { position: relative; flex-shrink: 0; }

.search-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	color: var(--pm-secondary);
	transition: background var(--pm-transition), color var(--pm-transition);
}

.search-toggle:hover { background: var(--pm-bg); color: var(--pm-primary); }

.search-panel {
	position: absolute; top: calc(100% + 0.5rem); right: 0;
	width: min(360px, calc(100vw - 2.5rem)); padding: 1rem;
	background: var(--pm-white); border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius-lg); box-shadow: var(--pm-shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity var(--pm-transition), visibility var(--pm-transition), transform var(--pm-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(--pm-border); border-radius: var(--pm-radius);
	background: var(--pm-bg); color: var(--pm-text); outline: none;
	transition: border-color var(--pm-transition), box-shadow var(--pm-transition);
}

.search-field:focus {
	border-color: var(--pm-accent);
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-submit { flex-shrink: 0; padding-inline: 1rem; font-size: 0.875rem; }

/* --- Category Bar --- */

.category-bar {
	border-top: 1px solid var(--pm-border);
	background: var(--pm-bg); overflow: hidden;
}

.category-bar .container {
	padding-block: 0.65rem; overflow-x: auto;
	scrollbar-width: none; -ms-overflow-style: none;
}

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

.category-menu {
	display: flex; align-items: center; gap: 0.45rem;
	width: max-content; min-width: 100%;
}

.category-menu li { flex-shrink: 0; }

.category-menu a {
	display: inline-block; padding: 0.4rem 1rem;
	font-size: 0.8125rem; font-weight: 600; color: var(--pm-secondary);
	background: var(--pm-white); border: 1px solid var(--pm-border);
	border-radius: 999px; white-space: nowrap;
	transition: background var(--pm-transition), color var(--pm-transition),
		border-color var(--pm-transition), transform var(--pm-transition);
}

.category-menu a:hover,
.category-menu .current-menu-item > a {
	background: var(--pm-primary); color: var(--pm-white);
	border-color: var(--pm-primary); transform: translateY(-1px);
}

/* --- Pulse Hero Module --- */

.pm-pulse-hero {
	padding: 2rem 0 2.5rem;
	background: var(--pm-white);
	border-bottom: 1px solid var(--pm-border);
}

.pm-pulse-head {
	display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem;
}

.pm-pulse-dot {
	flex-shrink: 0; width: 10px; height: 10px;
	background: var(--pm-primary); border-radius: 50%; position: relative;
}

.pm-pulse-dot::before {
	content: ''; position: absolute; inset: -4px;
	border: 2px solid var(--pm-primary); border-radius: 50%;
	opacity: 0; animation: pm-pulse-ring 2s ease-out infinite;
}

.pm-pulse-label {
	font-family: var(--pm-font-head); font-size: 1.125rem; font-weight: 700;
	color: var(--pm-secondary); letter-spacing: -0.01em;
}

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

.pm-pulse-card {
	position: relative; display: block;
	border-radius: var(--pm-radius-lg); overflow: hidden;
	aspect-ratio: 4 / 5; color: var(--pm-white); text-decoration: none;
	box-shadow: var(--pm-shadow);
	transition: transform var(--pm-transition), box-shadow var(--pm-transition);
}

.pm-pulse-card:hover {
	transform: translateY(-4px); box-shadow: var(--pm-shadow-hover); color: var(--pm-white);
}

.pm-pulse-num {
	position: absolute; top: 0.85rem; left: 0.85rem; z-index: 3;
	font-family: var(--pm-font-head); font-size: 2rem; font-weight: 800;
	line-height: 1; color: rgba(255, 255, 255, 0.35);
	letter-spacing: -0.03em; pointer-events: none;
}

.pm-pulse-media { position: absolute; inset: 0; display: block; }

.pm-pulse-img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.45s ease;
}

.pm-pulse-img--empty { display: block; width: 100%; height: 100%; }
.pm-pulse-card:hover .pm-pulse-img { transform: scale(1.05); }

.pm-pulse-overlay {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.25rem;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.05) 100%);
}

.pm-pulse-badge {
	display: inline-block; align-self: flex-start;
	padding: 0.25rem 0.65rem; margin-bottom: 0.6rem;
	font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.05em; border-radius: 3px; color: var(--pm-white);
}

.pm-pulse-title {
	font-family: var(--pm-font-head); font-size: 1.0625rem; font-weight: 700;
	line-height: 1.3; color: var(--pm-white);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.pm-pulse-date {
	margin-top: 0.5rem; font-size: 0.75rem; font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
}

/* --- Front Page: Category Blocks --- */

.front-page { padding-top: 0.5rem; }

.category-block {
	padding: 2.5rem 0;
	border-bottom: 1px solid var(--pm-border);
}

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

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

.section-title { font-size: 1.375rem; font-weight: 800; margin: 0; }
.section-title a { color: var(--pm-secondary); transition: color var(--pm-transition); }
.section-title a:hover { color: var(--pm-primary); }

.section-more {
	flex-shrink: 0; font-size: 0.875rem; font-weight: 600;
	color: var(--pm-primary); white-space: nowrap;
}

.section-more:hover { color: var(--pm-accent); }

.category-grid {
	display: grid; grid-template-columns: 1.15fr 1fr;
	gap: 1.5rem; align-items: start;
}

.category-block--reverse .category-grid { direction: rtl; }
.category-block--reverse .category-grid > * { direction: ltr; }

/* Featured Card */

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

.card-featured:hover { box-shadow: var(--pm-shadow-hover); transform: translateY(-2px); }
.card-featured-link { display: block; color: inherit; text-decoration: none; }

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

.card-featured-image img,
.card-featured-image .post-thumbnail-placeholder {
	width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease;
}

.card-featured:hover .card-featured-image img { transform: scale(1.04); }
.card-featured-body { padding: 1.25rem 1.35rem 1.35rem; }

.card-featured-title {
	font-size: 1.25rem; font-weight: 700; line-height: 1.3;
	margin-bottom: 0.6rem; color: var(--pm-secondary);
	transition: color var(--pm-transition);
}

.card-featured-link:hover .card-featured-title { color: var(--pm-primary); }

.card-featured-excerpt {
	font-size: 0.9375rem; color: var(--pm-text-muted); line-height: 1.55;
	margin-bottom: 0.75rem;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Compact Cards */

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

.card-compact {
	border-left: 3px solid var(--pm-primary);
	background: var(--pm-white);
	border-radius: 0 var(--pm-radius) var(--pm-radius) 0;
	transition: background var(--pm-transition), box-shadow var(--pm-transition);
}

.card-compact + .card-compact { margin-top: 0.65rem; }
.card-compact:hover { background: rgba(230, 81, 0, 0.04); box-shadow: var(--pm-shadow); }

.card-compact-link {
	display: flex; align-items: flex-start; gap: 0.85rem;
	padding: 0.85rem 1rem 0.85rem 0.75rem; color: inherit; text-decoration: none;
}

.card-compact-rank {
	flex-shrink: 0; width: 1.75rem;
	font-family: var(--pm-font-head); font-size: 1.25rem; font-weight: 800;
	color: var(--pm-primary); line-height: 1.2; opacity: 0.7;
}

.card-compact-image {
	flex-shrink: 0; width: 72px; height: 54px;
	border-radius: var(--pm-radius); overflow: hidden;
}

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

.card-compact-body { flex: 1; min-width: 0; }

.card-compact-title {
	font-family: var(--pm-font-body); font-size: 0.9375rem; font-weight: 600;
	line-height: 1.35; margin-bottom: 0.35rem; color: var(--pm-secondary);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color var(--pm-transition);
}

.card-compact-link:hover .card-compact-title { color: var(--pm-primary); }
.card-compact-body .entry-date { font-size: 0.75rem; color: var(--pm-text-muted); }

/* --- Badges, Meta & Placeholders --- */

.category-badge {
	display: inline-block; padding: 0.2rem 0.6rem; margin-bottom: 0.5rem;
	font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.05em; color: var(--pm-white);
	background: var(--badge-color, var(--pm-primary));
	border-radius: 3px; transition: opacity var(--pm-transition);
}

.category-badge:hover { opacity: 0.85; color: var(--pm-white); }
.entry-date { font-size: 0.8125rem; color: var(--pm-text-muted); }
.entry-author { font-weight: 600; color: var(--pm-secondary); }
.reading-time { font-size: 0.8125rem; color: var(--pm-text-muted); }
.meta-sep { color: var(--pm-border); margin-inline: 0.35rem; }

.post-thumbnail-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #94a3b8;
}

.post-thumbnail-placeholder svg { width: 2rem; height: 2rem; }

/* --- Latest Section & News Grid --- */

.latest-section { padding: 2.5rem 0 1rem; }

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

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

.news-card:hover { box-shadow: var(--pm-shadow-hover); transform: translateY(-3px); }
.news-card-link { display: block; color: var(--pm-text); text-decoration: none; }

.news-card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; flex-shrink: 0; }

.news-card-image img,
.news-card-image .post-thumbnail-placeholder {
	width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease;
}

.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-body {
	display: block;
	padding: 1.1rem 1.25rem 1.25rem;
	background: var(--pm-white);
}

.news-card-title {
	font-size: 1.0625rem; font-weight: 700; line-height: 1.35;
	margin: 0 0 0.5rem; color: var(--pm-secondary);
	transition: color var(--pm-transition);
}

.news-card-link:hover .news-card-title { color: var(--pm-primary); }

.news-card-excerpt {
	font-size: 0.875rem; color: var(--pm-text-muted); line-height: 1.55;
	margin: 0 0 0.75rem;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-card-meta { font-size: 0.8125rem; }

/* --- Layout with Sidebar --- */

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

.main-column { min-width: 0; }

/* --- Sidebar --- */

.sidebar { position: sticky; top: calc(var(--pm-topbar-accent) + 2.25rem + 4.5rem + 2.5rem); }

.widget {
	background: var(--pm-white); border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius-lg); padding: 1.25rem;
	margin-bottom: 1.25rem; box-shadow: var(--pm-shadow);
}

.widget-title {
	font-family: var(--pm-font-head); font-size: 1rem; font-weight: 700;
	margin-bottom: 1rem; padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--pm-primary); color: var(--pm-secondary);
}

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

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

.sidebar-recent-list a {
	display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.4;
	color: var(--pm-secondary); margin-bottom: 0.25rem;
	transition: color var(--pm-transition);
}

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

.sidebar-cat-list li {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.45rem 0; border-bottom: 1px solid var(--pm-border); font-size: 0.875rem;
}

.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a { color: var(--pm-secondary); font-weight: 500; transition: color var(--pm-transition); }
.sidebar-cat-list a:hover { color: var(--pm-primary); }

.sidebar-cat-list .count {
	font-size: 0.75rem; color: var(--pm-text-muted);
	background: var(--pm-bg); padding: 0.1rem 0.45rem; border-radius: 999px;
}

/* --- Single Post --- */

.single-layout { padding-top: 2rem; max-width: 820px; }

.single-article {
	background: var(--pm-white); border-radius: var(--pm-radius-lg);
	padding: 2rem 2.25rem; box-shadow: var(--pm-shadow); margin-bottom: 2.5rem;
}

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

.entry-title {
	font-size: clamp(1.75rem, 4vw, 2.375rem); font-weight: 800;
	line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.85rem;
}

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

.entry-hero-image { margin-bottom: 1.75rem; border-radius: var(--pm-radius-lg); overflow: hidden; }
.entry-hero-image img { width: 100%; }

.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--pm-text); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--pm-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--pm-accent); }
.entry-content img { border-radius: var(--pm-radius); margin-block: 1.5rem; }

.entry-content blockquote {
	margin: 1.5rem 0; padding: 1rem 1.25rem;
	border-left: 4px solid var(--pm-primary); background: var(--pm-bg);
	border-radius: 0 var(--pm-radius) var(--pm-radius) 0;
	font-style: italic; color: var(--pm-secondary);
}

.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.35rem; }

.page-links {
	margin-top: 2rem; padding-top: 1.25rem;
	border-top: 1px solid var(--pm-border); font-size: 0.9375rem;
}

.page-links a {
	display: inline-block; padding: 0.35rem 0.75rem; margin: 0.25rem;
	background: var(--pm-bg); border-radius: var(--pm-radius);
}

.entry-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--pm-border); }
.entry-tags { font-size: 0.875rem; }
.tags-label { font-weight: 600; color: var(--pm-secondary); margin-right: 0.35rem; }

.entry-tags a {
	display: inline-block; padding: 0.2rem 0.6rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	background: var(--pm-bg); border: 1px solid var(--pm-border);
	border-radius: 999px; font-size: 0.8125rem; color: var(--pm-secondary);
	transition: background var(--pm-transition), border-color var(--pm-transition);
}

.entry-tags a:hover {
	background: rgba(230, 81, 0, 0.08); border-color: var(--pm-primary); color: var(--pm-primary);
}

/* Related Posts */

.related-posts { margin-bottom: 2.5rem; }

.related-posts .section-title {
	font-size: 1.25rem; margin-bottom: 1.25rem; padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--pm-primary);
}

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

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

.card-small:hover { box-shadow: var(--pm-shadow-hover); transform: translateY(-2px); }
.card-small-link { display: block; color: inherit; text-decoration: none; }
.card-small-image { aspect-ratio: 16 / 10; overflow: hidden; }

.card-small-image img,
.card-small-image .post-thumbnail-placeholder {
	width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}

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

.card-small-title {
	padding: 0.75rem 0.85rem; font-family: var(--pm-font-body);
	font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
	color: var(--pm-secondary); transition: color var(--pm-transition);
}

.card-small-link:hover .card-small-title { color: var(--pm-primary); }

/* --- Archive, Search & Page --- */

.archive-layout, .search-layout, .page-layout { padding-top: 2rem; padding-bottom: 1rem; }

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

.archive-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin: 0; }
.archive-title span { color: var(--pm-primary); }
.archive-description { margin-top: 0.75rem; font-size: 1rem; color: var(--pm-text-muted); }

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

.no-results {
	padding: 3rem 2rem; text-align: center;
	background: var(--pm-white); border-radius: var(--pm-radius-lg); box-shadow: var(--pm-shadow);
}

.no-results h2 { margin-bottom: 0.75rem; }
.no-results p { color: var(--pm-text-muted); margin-bottom: 1.5rem; }
.no-results .search-form { max-width: 420px; margin-inline: auto; }

/* Pagination */

.pagination, .nav-links {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 0.35rem; margin-top: 2.5rem;
}

.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.5rem; height: 2.5rem; padding: 0 0.65rem;
	font-size: 0.875rem; font-weight: 600; color: var(--pm-secondary);
	background: var(--pm-white); border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius);
	transition: background var(--pm-transition), color var(--pm-transition), border-color var(--pm-transition);
}

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

/* --- 404 --- */

.error-layout { padding: 4rem 0; }

.error-404 {
	text-align: center; padding: 3rem 2rem;
	background: var(--pm-white); border-radius: var(--pm-radius-lg); box-shadow: var(--pm-shadow);
}

.error-code {
	font-family: var(--pm-font-head); font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 800; line-height: 1; color: var(--pm-primary);
	opacity: 0.85; margin-bottom: 0.5rem;
}

.error-404 h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-404 p { color: var(--pm-text-muted); margin-bottom: 1.75rem; }

/* --- Footer --- */

.site-footer {
	background: var(--pm-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-block: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget-title {
	font-family: var(--pm-font-head); font-size: 1rem; font-weight: 700;
	color: var(--pm-white); margin-bottom: 1rem; padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--pm-primary);
}

.footer-widget { font-size: 0.875rem; line-height: 1.6; }
.footer-widget a { color: rgba(255, 255, 255, 0.75); transition: color var(--pm-transition); }
.footer-widget a:hover { color: var(--pm-accent); }
.footer-widget ul li { padding: 0.3rem 0; }

.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: 1.25rem; font-size: 0.8125rem;
}

.footer-copy { color: rgba(255, 255, 255, 0.55); }
.footer-copy a { color: rgba(255, 255, 255, 0.75); }

.footer-menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-menu a { color: rgba(255, 255, 255, 0.6); font-weight: 500; transition: color var(--pm-transition); }
.footer-menu a:hover { color: var(--pm-accent); }

/* --- Legacy Hero Templates --- */

.hero-main { border-radius: var(--pm-radius-lg); overflow: hidden; background: var(--pm-white); box-shadow: var(--pm-shadow); }
.hero-main-link { display: block; color: inherit; text-decoration: none; }
.hero-main-image { aspect-ratio: 16 / 9; overflow: hidden; }
.hero-main-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-body { padding: 1.5rem; }
.hero-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.hero-excerpt { color: var(--pm-text-muted); margin-bottom: 0.75rem; }
.hero-meta { font-size: 0.8125rem; color: var(--pm-text-muted); }

.hero-side-card {
	border-left: 3px solid var(--pm-primary); background: var(--pm-white);
	border-radius: 0 var(--pm-radius) var(--pm-radius) 0;
}

.hero-side-link { display: flex; gap: 0.85rem; padding: 0.85rem; color: inherit; text-decoration: none; }
.hero-side-image { flex-shrink: 0; width: 80px; height: 60px; border-radius: var(--pm-radius); overflow: hidden; }
.hero-side-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--pm-secondary); }
.hero-side-meta { font-size: 0.75rem; color: var(--pm-text-muted); margin-top: 0.25rem; }

/* --- Comments --- */

.comments-area { margin-top: 2rem; }
.comments-title { font-size: 1.25rem; margin-bottom: 1.5rem; }
.comment-list { margin-bottom: 2rem; }

.comment-list .comment {
	padding: 1.25rem; margin-bottom: 1rem;
	background: var(--pm-white); border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius-lg);
}

.comment-author { font-weight: 600; color: var(--pm-secondary); }
.comment-metadata { font-size: 0.8125rem; color: var(--pm-text-muted); margin-bottom: 0.75rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 0.65rem 0.85rem; margin-bottom: 0.75rem;
	border: 1px solid var(--pm-border); border-radius: var(--pm-radius);
	background: var(--pm-bg); outline: none; transition: border-color var(--pm-transition);
}

.comment-form input:focus, .comment-form textarea:focus { border-color: var(--pm-accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.pm-pulse-grid { gap: 0.75rem; }
	.pm-pulse-title { font-size: 0.9375rem; }
	.category-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.layout-with-sidebar { grid-template-columns: 1fr 280px; gap: 2rem; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
	.menu-toggle { display: flex; order: 3; margin-left: auto; }
	.site-branding { order: 1; }
	.header-search { order: 2; }
	.main-navigation { order: 4; flex-basis: 100%; display: none; }
	.main-navigation.is-open {
		display: block; padding-top: 0.75rem;
		border-top: 1px solid var(--pm-border); margin-top: 0.25rem;
	}
	.primary-menu { flex-direction: column; align-items: stretch; }
	.primary-menu a { padding: 0.65rem 0.85rem; }
	.site-topbar-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-block: 0.5rem; }
	.news-ticker--inline { width: 100%; }
	.pm-pulse-hero { padding: 1.5rem 0; }
	.pm-pulse-grid { grid-template-columns: 1fr; gap: 0.85rem; }
	.pm-pulse-card { aspect-ratio: 16 / 9; }
	.category-grid { grid-template-columns: 1fr; }
	.category-block--reverse .category-grid { direction: ltr; }
	.layout-with-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.single-article { padding: 1.5rem; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-bottom { flex-direction: column; text-align: center; }
	.footer-menu { justify-content: center; }
}

@media (max-width: 560px) {
	.container { padding-inline: 1rem; }
	.site-title { font-size: 1.35rem; }
	.ticker-label { font-size: 0.625rem; padding: 0.15rem 0.5rem; }
	.pm-pulse-num { font-size: 1.5rem; }
	.section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
	.card-compact-link { padding: 0.75rem; }
	.card-compact-image { width: 60px; height: 45px; }
	.news-grid { grid-template-columns: 1fr; gap: 1.25rem; }
	.related-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.entry-title { font-size: 1.5rem; }
	.entry-content { font-size: 1rem; }
	.search-form { flex-direction: column; }
	.search-submit { width: 100%; }
}
