/*
Theme Name:  Executive Cars
Theme URI:   https://executivecars.co.za
Author:      EC
Author URI:  https://executivecars.co.za
Description: Bespoke luxury automotive theme for Executive Cars.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: executive-cars
Tags:        custom-menu, featured-images, full-width-template, threaded-comments
*/


/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */

:root {
	--gold:          #c8a96e;
	--gold-dark:     #b8995e;
	--gold-muted:    rgba(200, 169, 110, 0.3);
	--gold-faint:    rgba(200, 169, 110, 0.08);

	--bg:            #0a0a0a;
	--bg-2:          #050505;
	--bg-card:       #111111;
	--bg-card-hover: #161616;

	--text-primary:  #f0ece4;
	--text-muted:    #9a9080;
	--text-dim:      #8a8075;

	--border:        rgba(255, 255, 255, 0.06);
	--border-gold:   rgba(200, 169, 110, 0.4);

	--font-serif:    'Cormorant Garamond', Georgia, serif;
	--font-sans:     'Barlow', system-ui, sans-serif;

	--nav-height:    80px;
	--section-pad:   6rem 4rem;
	--transition:    0.3s ease;
}


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

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	font-weight: 300;
	background: var(--bg);
	color: var(--text-primary);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: var(--font-sans);
}


/* =============================================
   TYPOGRAPHY HELPERS
============================================= */

.section-tag {
	font-size: 0.65rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
	font-family: var(--font-serif);
	font-weight: 300;
	line-height: 1.05;
}

h1 {
	font-size: clamp(3rem, 6vw, 5.5rem);
	color: var(--text-primary);
}

h1 em {
	font-style: italic;
	color: var(--gold);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	color: var(--text-primary);
	line-height: 1.1;
}


/* =============================================
   BUTTONS
============================================= */

.btn-primary {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 1rem 2.5rem;
	transition: background var(--transition);
}

.btn-primary:hover {
	background: var(--gold-dark);
	color: var(--bg);
}

.btn-ghost {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
	background: transparent;
	padding: 1rem 2.5rem;
	border: 1px solid var(--border-gold);
	transition: border-color var(--transition);
}

.btn-ghost:hover {
	border-color: var(--gold);
	color: var(--gold);
}


/* =============================================
   NAVIGATION
============================================= */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 4rem;
	background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
	transition: background var(--transition);
}

.site-nav.scrolled {
	background: rgba(10, 10, 10, 0.97);
}

/* Logo */
.logo {
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 300;
	letter-spacing: 0.2em;
	color: var(--gold);
	text-transform: uppercase;
	text-decoration: none;
}

.logo span {
	font-weight: 600;
}

/* Nav links — rendered as <li><a> by Walker */
.nav-links {
	display: flex;
	gap: 2.5rem;
}

.nav-links li a {
	font-size: 0.77rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #bfb8ad;
}

.nav-links li a:hover,
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a {
	color: var(--gold);
}

/* Nav CTA */
.nav-cta {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.6rem 1.5rem;
	transition: background var(--transition);
	white-space: nowrap;
}

.nav-cta:hover {
	background: var(--gold-dark);
	color: var(--bg);
}

/* Sticky nav scroll effect — add via JS */
/* document.addEventListener('scroll', () => {
     document.querySelector('.site-nav').classList.toggle('scrolled', window.scrollY > 60);
   });
*/


/* =============================================
   HERO
============================================= */

.hero {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(160deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.85) 60%, #0a0a0a 100%),
		url('images/hero-bg.webp') center / cover no-repeat;
}

.hero-content {
	position: relative;
	z-index: 2;
	padding: 0 4rem 6rem;
	max-width: 700px;
}

.hero-eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hero-eyebrow::before {
	content: '';
	display: block;
	width: 40px;
	height: 1px;
	background: var(--gold);
	flex-shrink: 0;
}

.hero-sub {
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.8;
	color: var(--text-muted);
	max-width: 420px;
	margin-bottom: 3rem;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}


/* =============================================
   BRAND TICKER
============================================= */

.ticker {
	background: var(--gold);
	padding: 0.75rem 0;
	overflow: hidden;
	white-space: nowrap;
}

.ticker-inner {
	display: inline-flex;
	gap: 4rem;
	animation: ticker-scroll 25s linear infinite;
}

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

.ticker span {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	font-weight: 500;
}

.ticker-dot {
	color: rgba(10, 10, 10, 0.35) !important;
}


/* =============================================
   STATS STRIP
============================================= */

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-bottom: 1px solid var(--border);
}

.stat-item {
	padding: 3rem 2.5rem;
	border-right: 1px solid var(--border);
}

.stat-item:last-child {
	border-right: none;
}

.stat-num {
	font-family: var(--font-serif);
	font-size: 3.5rem;
	font-weight: 300;
	color: var(--gold);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
}


/* =============================================
   SECTION BASE
============================================= */

.section {
	padding: var(--section-pad);
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 4rem;
	gap: 2rem;
}

.view-all {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--gold-muted);
	transition: border-color var(--transition);
	flex-shrink: 0;
}

.view-all:hover {
	border-color: var(--gold);
	color: var(--gold);
}


/* =============================================
   FEATURED VEHICLES GRID
============================================= */

.cars-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5px;
	background: var(--bg-card);
}

.car-card {
	position: relative;
	overflow: hidden;
	background: var(--bg-card);
	aspect-ratio: 4 / 3;
}

.car-card.featured {
	grid-column: span 2;
	aspect-ratio: auto;
	min-height: 480px;
}

.car-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease, filter 0.5s ease;
	filter: brightness(0.7);
}

.car-img--placeholder {
	background: var(--bg-card);
}

.car-card:hover .car-img {
	transform: scale(1.04);
	filter: brightness(0.45);
}

.car-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 55%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2rem;
	pointer-events: none;
}

.car-badge {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.car-name {
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-weight: 300;
	color: var(--text-primary);
	margin-bottom: 0.25rem;
	line-height: 1.1;
}

.car-card.featured .car-name {
	font-size: 2.2rem;
}

.car-price {
	font-size: 0.8rem;
	color: var(--text-dim);
	font-weight: 300;
}

.car-hover-cta {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.car-card:hover .car-hover-cta {
	opacity: 1;
}

.car-hover-cta span {
	font-size: 0.65rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-primary);
	border-bottom: 1px solid rgba(240, 236, 228, 0.5);
	padding-bottom: 2px;
}


/* =============================================
   SERVICES
============================================= */

.services {
	background: var(--bg-2);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.04);
	margin-top: 4rem;
}

.service-item {
	background: var(--bg);
	padding: 3rem 2.5rem;
	transition: background var(--transition);
}

.service-item:hover {
	background: var(--bg-card);
}

.service-icon {
	width: 32px;
	height: 32px;
	margin-bottom: 2rem;
	color: var(--gold);
	display: block;
}

.service-icon svg {
	width: 100%;
	height: 100%;
}

.service-title {
	font-family: var(--font-serif);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.service-desc {
	font-size: 0.82rem;
	line-height: 1.8;
	color: var(--text-dim);
}


/* =============================================
   TESTIMONIAL
============================================= */

.testimonial {
	text-align: center;
	padding: 8rem 4rem;
}

.quote-mark {
	font-family: var(--font-serif);
	font-size: 8rem;
	color: var(--gold);
	opacity: 0.2;
	line-height: 0.5;
	margin-bottom: 2rem;
}

.quote-text {
	font-family: var(--font-serif);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 300;
	font-style: italic;
	color: #c8b88a;
	max-width: 700px;
	margin: 0 auto 2rem;
	line-height: 1.5;
}

.quote-attr {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}


/* =============================================
   FOOTER
============================================= */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 3rem 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.footer-logo {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	font-weight: 300;
	letter-spacing: 0.2em;
	color: var(--text-dim);
	text-transform: uppercase;
}

.footer-copy {
	font-size: 0.7rem;
	color: var(--text-dim);
}


/* =============================================
   WORDPRESS CORE CLASSES
   Required for editor alignment, captions etc.
============================================= */

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.8rem;
	color: var(--text-dim);
	margin-top: 0.5rem;
}

.alignleft {
	float: left;
	margin: 0 2rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 2rem;
}

.aligncenter {
	display: block;
	margin: 0 auto 1rem;
}

.alignwide {
	margin-left: -4rem;
	margin-right: -4rem;
}

.alignfull {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	max-width: 100vw;
}

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

/* Skip link */
.skip-link {
	position: absolute;
	top: -999px;
	left: 1rem;
	background: var(--gold);
	color: var(--bg);
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	z-index: 9999;
	transition: top 0s;
}

.skip-link:focus {
	top: 1rem;
}

/* Sticky post */
.sticky {
	/* Add custom styling for sticky posts if needed */
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.gallery-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

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

.search-field {
	flex: 1;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-primary);
	padding: 0.75rem 1rem;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	outline: none;
	transition: border-color var(--transition);
}

.search-field:focus {
	border-color: var(--gold-muted);
}

.search-submit {
	background: var(--gold);
	color: var(--bg);
	padding: 0.75rem 1.5rem;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background var(--transition);
}

.search-submit:hover {
	background: var(--gold-dark);
}


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

@media (max-width: 1024px) {
	:root {
		--section-pad: 5rem 3rem;
	}

	.site-nav {
		padding: 1.25rem 3rem;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item:nth-child(2) {
		border-right: none;
	}

	.stat-item:nth-child(3) {
		border-top: 1px solid var(--border);
	}

	.stat-item:nth-child(4) {
		border-top: 1px solid var(--border);
		border-right: none;
	}

	.cars-grid {
		grid-template-columns: 1fr 1fr;
	}

	.car-card.featured {
		grid-column: span 2;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	:root {
		--section-pad: 4rem 1.5rem;
	}

	.site-nav {
		padding: 1rem 1.5rem;
		gap: 1rem;
	}

	.nav-links {
		display: none; /* Replace with mobile hamburger menu */
	}

	.hero-content {
		padding: 0 1.5rem 4rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-item {
		padding: 2rem 1.5rem;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 2.5rem;
	}

	.cars-grid {
		grid-template-columns: 1fr;
	}

	.car-card.featured {
		grid-column: span 1;
		min-height: 320px;
	}

	.car-card {
		aspect-ratio: 16 / 9;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.testimonial {
		padding: 5rem 1.5rem;
	}

	.site-footer {
		padding: 2rem 1.5rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1rem;
	}

	.alignwide {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}

@media (max-width: 480px) {
	.stat-num {
		font-size: 2.5rem;
	}

	.ticker-inner {
		gap: 2.5rem;
	}

	.hero-eyebrow {
		font-size: 0.6rem;
	}
}


/* =============================================
   SINGLE POST — LAYOUT
============================================= */

.single-post-layout {
	background: var(--bg);
	min-height: 100vh;
}

.post-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 5rem 4rem;
	align-items: start;
}


/* =============================================
   POST HERO
============================================= */

.post-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
}

.post-hero__image {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.post-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(10, 10, 10, 1) 0%,
		rgba(10, 10, 10, 0.6) 40%,
		rgba(10, 10, 10, 0.2) 100%
	);
}

.post-hero__content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	padding: 0 4rem 4rem;
}

.post-hero__content.no-image {
	position: static;
	padding: calc(var(--nav-height) + 3rem) 4rem 2rem;
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
}

/* Categories pills in hero */
.post-meta__cats {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.post-cat-pill {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.35rem 0.9rem;
	transition: background var(--transition);
}

.post-cat-pill:hover {
	background: var(--gold-dark);
	color: var(--bg);
}

.post-title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 300;
	line-height: 1.08;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-size: 0.78rem;
	color: var(--text-muted);
}

.post-meta a {
	color: var(--gold);
	transition: color var(--transition);
}

.post-meta a:hover {
	color: var(--gold-dark);
}

.post-meta__sep {
	color: var(--text-dim);
}

.post-meta__read-time {
	color: var(--text-dim);
}


/* =============================================
   POST CONTENT AREA
============================================= */

.post-standfirst {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 300;
	font-style: italic;
	line-height: 1.6;
	color: var(--text-muted);
	border-left: 2px solid var(--gold);
	padding-left: 1.5rem;
	margin-bottom: 3rem;
}

/* Rich text body styles */
.post-body {
	font-size: 1rem;
	line-height: 1.85;
	color: #c8c0b4;
}

.post-body p {
	margin-bottom: 1.5rem;
}

.post-body h2 {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 300;
	color: var(--text-primary);
	margin: 3rem 0 1rem;
	line-height: 1.15;
}

.post-body h3 {
	font-family: var(--font-serif);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--text-primary);
	margin: 2.5rem 0 0.75rem;
}

.post-body h4 {
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 2rem 0 0.75rem;
}

.post-body a {
	color: var(--gold);
	border-bottom: 1px solid var(--gold-muted);
	transition: border-color var(--transition);
}

.post-body a:hover {
	border-color: var(--gold);
}

.post-body strong,
.post-body b {
	color: var(--text-primary);
	font-weight: 500;
}

.post-body em,
.post-body i {
	color: #b8a88a;
}

.post-body ul,
.post-body ol {
	margin: 1.5rem 0 1.5rem 1.5rem;
}

.post-body li {
	margin-bottom: 0.5rem;
}

.post-body ul li::marker {
	color: var(--gold);
}

.post-body ol li::marker {
	color: var(--gold);
	font-family: var(--font-serif);
}

.post-body blockquote {
	border-left: 2px solid var(--gold);
	margin: 2.5rem 0;
	padding: 0.5rem 0 0.5rem 2rem;
}

.post-body blockquote p {
	font-family: var(--font-serif);
	font-size: 1.4rem;
	font-weight: 300;
	font-style: italic;
	color: #c8b88a;
	line-height: 1.5;
	margin: 0;
}

.post-body blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	font-style: normal;
}

.post-body figure {
	margin: 2.5rem 0;
}

.post-body figure img {
	width: 100%;
	height: auto;
}

.post-body figcaption {
	font-size: 0.78rem;
	color: var(--text-dim);
	margin-top: 0.75rem;
	font-style: italic;
}

.post-body hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 3rem 0;
}

.post-body pre,
.post-body code {
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.85rem;
}

.post-body pre {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 1.5rem;
	overflow-x: auto;
	margin: 2rem 0;
	color: var(--text-muted);
}

.post-body code {
	background: var(--bg-card);
	padding: 0.15rem 0.4rem;
	color: var(--gold);
}

.post-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.88rem;
}

.post-body th {
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	font-weight: 500;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.post-body td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
}

.post-body tr:last-child td {
	border-bottom: none;
}


/* Paged posts */
.post-pagination {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 3rem 0;
	font-size: 0.8rem;
}

.post-pagination__label {
	color: var(--text-dim);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.7rem;
}

.post-pagination a,
.post-pagination span {
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--border);
	color: var(--text-muted);
	transition: border-color var(--transition), color var(--transition);
}

.post-pagination a:hover {
	border-color: var(--gold-muted);
	color: var(--gold);
}


/* =============================================
   POST TAGS
============================================= */

.post-tags {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.post-tags__label {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.post-tag {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--border);
	transition: border-color var(--transition), color var(--transition);
}

.post-tag:hover {
	border-color: var(--gold-muted);
	color: var(--gold);
}


/* =============================================
   AUTHOR BIO
============================================= */

.author-bio {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-top: 3rem;
	padding: 2rem;
	border: 1px solid var(--border);
	background: var(--bg-card);
}

.author-bio__avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.author-bio__name {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.author-bio__desc {
	font-size: 0.85rem;
	line-height: 1.7;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.author-bio__link {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 1px solid var(--gold-muted);
	padding-bottom: 2px;
	transition: border-color var(--transition);
}

.author-bio__link:hover {
	border-color: var(--gold);
}


/* =============================================
   POST NAVIGATION (prev/next)
============================================= */

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin-top: 3rem;
	background: var(--border);
}

.post-nav__prev,
.post-nav__next {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: var(--bg-card);
	transition: background var(--transition);
}

.post-nav__prev:hover,
.post-nav__next:hover {
	background: var(--bg-card-hover);
}

.post-nav__next {
	align-items: flex-end;
	text-align: right;
}

.post-nav__dir {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.post-nav__title {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 300;
	color: var(--text-primary);
	line-height: 1.3;
	transition: color var(--transition);
}

.post-nav__title:hover {
	color: var(--gold);
}


/* =============================================
   RELATED POSTS
============================================= */

.related-posts {
	background: var(--bg-2);
	padding: var(--section-pad);
	border-top: 1px solid var(--border);
}

.related-posts__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.related-posts__heading {
	margin-bottom: 3rem;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5px;
	background: var(--bg-card);
}

.related-card {
	background: var(--bg);
	display: flex;
	flex-direction: column;
	transition: background var(--transition);
}

.related-card:hover {
	background: var(--bg-card);
}

.related-card__img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.related-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, filter var(--transition);
	filter: brightness(0.8);
}

.related-card:hover .related-card__img-wrap img {
	transform: scale(1.04);
	filter: brightness(0.65);
}

.related-card__body {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.related-card__cat {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}

.related-card__title {
	font-family: var(--font-serif);
	font-size: 1.2rem;
	font-weight: 300;
	line-height: 1.3;
}

.related-card__title a {
	color: var(--text-primary);
	transition: color var(--transition);
}

.related-card__title a:hover {
	color: var(--gold);
}

.related-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-dim);
	margin-top: auto;
}


/* =============================================
   SIDEBAR
============================================= */

.post-sidebar {
	position: sticky;
	top: calc(var(--nav-height) + 2rem);
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sidebar-widget {
	border: 1px solid var(--border);
	border-bottom: none;
	padding: 1.75rem;
	background: var(--bg-card);
}

.sidebar-widget:last-child {
	border-bottom: 1px solid var(--border);
}

.sidebar-widget__title {
	font-family: var(--font-sans);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 1.25rem;
}

/* Recent posts list */
.sidebar-recent {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.sidebar-recent__item {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
}

.sidebar-recent__thumb {
	width: 64px;
	height: 48px;
	flex-shrink: 0;
	overflow: hidden;
	display: block;
}

.sidebar-recent__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter var(--transition);
}

.sidebar-recent__item:hover .sidebar-recent__thumb img {
	filter: brightness(0.7);
}

.sidebar-recent__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.sidebar-recent__title {
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-muted);
	transition: color var(--transition);
}

.sidebar-recent__title:hover {
	color: var(--gold);
}

.sidebar-recent__date {
	font-size: 0.7rem;
	color: var(--text-dim);
}

/* Categories */
.sidebar-cats {
	display: flex;
	flex-direction: column;
}

.sidebar-cats__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--border);
}

.sidebar-cats__item:last-child {
	border-bottom: none;
}

.sidebar-cats__item a {
	font-size: 0.82rem;
	color: var(--text-muted);
	transition: color var(--transition);
}

.sidebar-cats__item a:hover {
	color: var(--gold);
}

.sidebar-cats__count {
	font-size: 0.7rem;
	color: var(--text-dim);
	font-variant-numeric: tabular-nums;
}

/* Featured / Editor's pick */
.sidebar-featured {
	position: relative;
}

.sidebar-featured__label {
	display: inline-block;
	font-size: 0.55rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.25rem 0.75rem;
	margin-bottom: 1rem;
}

.sidebar-featured__img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 1rem;
}

.sidebar-featured__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, filter var(--transition);
	filter: brightness(0.8);
}

.sidebar-featured:hover .sidebar-featured__img-wrap img {
	transform: scale(1.04);
	filter: brightness(0.65);
}

.sidebar-featured__title {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.3;
	margin-bottom: 0.4rem;
}

.sidebar-featured__title a {
	color: var(--text-primary);
	transition: color var(--transition);
}

.sidebar-featured__title a:hover {
	color: var(--gold);
}

.sidebar-featured__date {
	font-size: 0.72rem;
	color: var(--text-dim);
}

/* Tag cloud */
.sidebar-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sidebar-tag {
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-dim);
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--border);
	transition: border-color var(--transition), color var(--transition);
}

.sidebar-tag:hover {
	border-color: var(--gold-muted);
	color: var(--gold);
}

/* Dynamic widget area overrides */
.sidebar-widget--dynamic .widget {
	margin: 0;
}

.sidebar-widget--dynamic .widget-title {
	font-family: var(--font-sans);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 1.25rem;
}


/* =============================================
   COMMENTS
============================================= */

.comments-area {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--border);
}

.comments-title {
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-weight: 300;
	color: var(--text-primary);
	margin-bottom: 2rem;
}

.comment-list {
	list-style: none;
}

.comment {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--border);
}

.comment-author .fn {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 400;
	color: var(--text-primary);
}

.comment-meta {
	font-size: 0.75rem;
	color: var(--text-dim);
	margin-bottom: 0.75rem;
}

.comment-content p {
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--text-muted);
}

.comment-reply-link {
	font-size: 0.68rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
}

.comment-form label {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-primary);
	padding: 0.75rem 1rem;
	font-family: var(--font-sans);
	font-size: 0.88rem;
	outline: none;
	transition: border-color var(--transition);
	margin-bottom: 1.25rem;
}

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

.comment-form textarea {
	min-height: 160px;
	resize: vertical;
}

.comment-form .submit {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.875rem 2rem;
	border: none;
	cursor: pointer;
	transition: background var(--transition);
}

.comment-form .submit:hover {
	background: var(--gold-dark);
}


/* =============================================
   SINGLE POST — RESPONSIVE
============================================= */

@media (max-width: 1024px) {
	.post-container {
		grid-template-columns: 1fr;
		gap: 4rem;
		padding: 4rem 3rem;
	}

	.post-sidebar {
		position: static;
	}

	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.related-grid .related-card:last-child {
		display: none;
	}
}

@media (max-width: 768px) {
	.post-hero {
		min-height: 400px;
	}

	.post-hero__content {
		padding: 0 1.5rem 3rem;
	}

	.post-hero__content.no-image {
		padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
	}

	.post-container {
		padding: 3rem 1.5rem;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.related-grid {
		grid-template-columns: 1fr;
	}

	.related-grid .related-card:not(:first-child) {
		display: none;
	}

	.author-bio {
		flex-direction: column;
	}
}


/* =============================================
   COMMENTS
============================================= */

.comments-area {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--border);
}

.comments-title {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	font-weight: 300;
	color: var(--text-primary);
	margin-bottom: 2.5rem;
}

.comments-title span {
	font-style: italic;
	color: var(--gold);
}

.comments-closed {
	font-size: 0.82rem;
	color: var(--text-dim);
	letter-spacing: 0.05em;
	padding: 1rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	margin-bottom: 2rem;
}


/* =============================================
   COMMENT LIST
============================================= */

.comment-list {
	list-style: none;
	margin-bottom: 3rem;
}

.comment-item {
	padding: 2rem 0;
	border-bottom: 1px solid var(--border);
}

.comment-item:first-child {
	border-top: 1px solid var(--border);
}

/* Nested replies */
.comment-item .children {
	list-style: none;
	margin-top: 1.5rem;
	margin-left: 2rem;
	padding-left: 1.5rem;
	border-left: 1px solid var(--border);
}

.comment-item .children .comment-item {
	border-top: 1px solid var(--border);
	border-bottom: none;
	padding: 1.5rem 0;
}

.comment-item .children .comment-item:first-child {
	padding-top: 1.5rem;
}

.comment-body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Author row */
.comment-author-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.comment-avatar {
	flex-shrink: 0;
}

.comment-avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	filter: grayscale(20%);
}

.comment-author-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1;
}

.comment-author-name {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 400;
	color: var(--text-primary);
}

.comment-date {
	font-size: 0.72rem;
	color: var(--text-dim);
	transition: color var(--transition);
}

.comment-date:hover {
	color: var(--text-muted);
}

.comment-actions {
	margin-left: auto;
	flex-shrink: 0;
}

.comment-reply-link {
	font-size: 0.68rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: color var(--transition), border-color var(--transition);
}

.comment-reply-link:hover {
	color: var(--gold);
	border-color: var(--gold-muted);
}

/* Moderation notice */
.comment-awaiting-moderation {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	color: var(--text-dim);
	background: var(--bg-card);
	border-left: 2px solid var(--gold-muted);
	padding: 0.6rem 1rem;
}

/* Comment text */
.comment-content p {
	font-size: 0.92rem;
	line-height: 1.8;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-content a {
	color: var(--gold);
	border-bottom: 1px solid var(--gold-muted);
	transition: border-color var(--transition);
}

.comment-content a:hover {
	border-color: var(--gold);
}


/* =============================================
   COMMENT PAGINATION
============================================= */

.comment-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border);
	margin-bottom: 3rem;
}

.comment-pagination a {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 1px solid var(--gold-muted);
	padding-bottom: 2px;
	transition: border-color var(--transition);
}

.comment-pagination a:hover {
	border-color: var(--gold);
}


/* =============================================
   COMMENT FORM
============================================= */

.comment-reply-title {
	font-family: var(--font-serif);
	font-size: 1.8rem;
	font-weight: 300;
	color: var(--text-primary);
	margin-bottom: 2rem;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Row of fields (name / email / url side by side) */
.comment-form__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-bottom: 1px;
	background: var(--border);
}

.comment-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: var(--bg);
	padding: 1.25rem;
}

.comment-form__field--full {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-top: none;
	margin-bottom: 1px;
}

.comment-form label {
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.required {
	color: var(--gold);
	margin-left: 2px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
	padding: 0.5rem 0;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 300;
	outline: none;
	transition: border-color var(--transition);
	-webkit-appearance: none;
}

.comment-form input:focus {
	border-bottom-color: var(--gold-muted);
}

.comment-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--border);
	color: var(--text-primary);
	padding: 0.5rem 0;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.7;
	outline: none;
	resize: vertical;
	min-height: 140px;
	transition: border-color var(--transition);
}

.comment-form textarea:focus {
	border-bottom-color: var(--gold-muted);
}

/* Submit row */
.comment-form__submit {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-top: 1.5rem;
}

.comment-submit {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.9rem 2.5rem;
	border: none;
	cursor: pointer;
	transition: background var(--transition);
}

.comment-submit:hover {
	background: var(--gold-dark);
}

/* Logged in as */
.logged-in-as {
	font-size: 0.78rem;
	color: var(--text-dim);
}

.logged-in-as a {
	color: var(--gold);
	transition: color var(--transition);
}

.logged-in-as a:hover {
	color: var(--gold-dark);
}

/* Must log in */
.must-log-in {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.must-log-in a {
	color: var(--gold);
}


/* =============================================
   COMMENTS — RESPONSIVE
============================================= */

@media (max-width: 768px) {
	.comment-form__row {
		grid-template-columns: 1fr;
	}

	.comment-item .children {
		margin-left: 1rem;
		padding-left: 1rem;
	}

	.comment-author-row {
		flex-wrap: wrap;
	}

	.comment-actions {
		margin-left: 0;
		width: 100%;
	}
}


/* =============================================
   CATEGORY ARCHIVE — LAYOUT
============================================= */

.category-layout {
	background: var(--bg);
	min-height: 100vh;
}

.category-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 5rem 4rem;
	align-items: start;
}

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


/* =============================================
   CATEGORY HERO
============================================= */

.cat-hero {
	padding: calc(var(--nav-height) + 3rem) 4rem 4rem;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.cat-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* Breadcrumb */
.cat-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.cat-breadcrumb a {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-dim);
	transition: color var(--transition);
}

.cat-breadcrumb a:hover {
	color: var(--gold);
}

.cat-breadcrumb__sep {
	font-size: 0.65rem;
	color: var(--text-dim);
}

.cat-breadcrumb__current {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* Title & description */
.cat-hero__title {
	font-family: var(--font-serif);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 300;
	color: var(--text-primary);
	line-height: 1.05;
	margin-bottom: 1rem;
}

.cat-hero__desc {
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--text-muted);
	max-width: 560px;
	margin-bottom: 2rem;
}

/* Meta row: count + sibling pills */
.cat-hero__meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cat-hero__count {
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
	white-space: nowrap;
}

.cat-siblings {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.cat-pill {
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--border);
	transition: border-color var(--transition), color var(--transition);
}

.cat-pill:hover {
	border-color: var(--gold-muted);
	color: var(--gold);
}


/* =============================================
   POSTS GRID
============================================= */

.posts-grid {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--border);
	margin-bottom: 4rem;
}

/* Base card */
.post-card {
	background: var(--bg);
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 0;
	transition: background var(--transition);
}

.post-card:hover {
	background: var(--bg-card);
}

/* Lead / first card — stacked full width */
.post-card--lead {
	grid-template-columns: 1fr;
}

.post-card__img-wrap {
	display: block;
	overflow: hidden;
	position: relative;
}

.post-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s ease, filter var(--transition);
	filter: brightness(0.8);
}

/* Thumbnail dimensions for regular card */
.post-card:not(.post-card--lead) .post-card__img-wrap {
	aspect-ratio: 4 / 3;
}

/* Lead image */
.post-card--lead .post-card__img-wrap {
	aspect-ratio: 21 / 9;
	max-height: 420px;
}

.post-card:hover .post-card__img-wrap img {
	transform: scale(1.04);
	filter: brightness(0.6);
}

/* Card body */
.post-card__body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}

.post-card--lead .post-card__body {
	padding: 2rem 0;
	justify-content: flex-start;
}

/* Category pills on card */
.post-card__cats {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.post-cat-pill--sm {
	font-size: 0.55rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--gold);
	padding: 0.25rem 0.7rem;
	transition: background var(--transition);
}

.post-cat-pill--sm:hover {
	background: var(--gold-dark);
	color: var(--bg);
}

/* Title */
.post-card__title {
	font-family: var(--font-serif);
	font-weight: 300;
	line-height: 1.15;
}

.post-card:not(.post-card--lead) .post-card__title {
	font-size: 1.3rem;
}

.post-card--lead .post-card__title {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.post-card__title a {
	color: var(--text-primary);
	transition: color var(--transition);
}

.post-card__title a:hover {
	color: var(--gold);
}

/* Lead excerpt */
.post-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.75;
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta row */
.post-card__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.post-card__author {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-dim);
	font-size: 0.78rem;
	transition: color var(--transition);
}

.post-card__author:hover {
	color: var(--gold);
}

.post-card__author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.post-card__sep {
	color: var(--text-dim);
	font-size: 0.7rem;
}

.post-card__date,
.post-card__read-time {
	font-size: 0.75rem;
	color: var(--text-dim);
}


/* =============================================
   POSTS PAGINATION
============================================= */

.posts-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	background: var(--border);
	margin-top: 1rem;
}

.posts-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 1rem;
	background: var(--bg-card);
	font-size: 0.78rem;
	color: var(--text-dim);
	transition: background var(--transition), color var(--transition);
}

.posts-pagination a.page-numbers:hover {
	background: var(--bg-card-hover);
	color: var(--text-muted);
}

.posts-pagination .page-numbers.current {
	background: var(--gold);
	color: var(--bg);
	font-weight: 500;
}

.posts-pagination .prev,
.posts-pagination .next {
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0 1.25rem;
}

.posts-pagination .dots {
	background: var(--bg);
	color: var(--text-dim);
	letter-spacing: 0.1em;
}


/* =============================================
   NO POSTS STATE
============================================= */

.no-posts {
	padding: 4rem 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.no-posts__msg {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 300;
	font-style: italic;
	color: var(--text-muted);
}


/* =============================================
   CATEGORY — RESPONSIVE
============================================= */

@media (max-width: 1024px) {
	.category-container {
		grid-template-columns: 1fr;
		gap: 4rem;
		padding: 4rem 3rem;
	}

	.cat-hero {
		padding: calc(var(--nav-height) + 2rem) 3rem 3rem;
	}

	.post-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.cat-hero {
		padding: calc(var(--nav-height) + 1.5rem) 1.5rem 2.5rem;
	}

	.category-container {
		padding: 3rem 1.5rem;
	}

	.post-card {
		grid-template-columns: 1fr;
	}

	.post-card:not(.post-card--lead) .post-card__img-wrap {
		aspect-ratio: 16 / 9;
	}

	.post-card--lead .post-card__img-wrap {
		aspect-ratio: 16 / 9;
		max-height: 260px;
	}

	.post-card__body {
		padding: 1.25rem;
	}

	.post-card--lead .post-card__body {
		padding: 1.25rem 0;
	}

	.cat-hero__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}