/**
 * Legacy Built Homes - Design System
 * Kootenay Organic Modernism
 *
 * @package LegacyBuiltHomes
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
	/* Brand Colors */
	--lbh-primary: #b5572a;
	--lbh-primary-hover: #9c4a24;
	--lbh-primary-light: #faf5f0;
	--lbh-primary-fg: #fff8f0;
	--lbh-forest: #2d5a3d;
	--lbh-forest-hover: #245032;
	--lbh-forest-muted: #3d7a52;
	--lbh-forest-light: #dce8df;

	/* Neutral Colors */
	--lbh-bg: #f5f2ed;
	--lbh-fg: #3d3830;
	--lbh-muted: #7a7570;
	--lbh-card: #fcfbf9;
	--lbh-card-fg: #3d3830;
	--lbh-border: #e2ddd6;
	--lbh-secondary: #e8ede9;
	--lbh-secondary-fg: #2d5a3d;

	/* Typography */
	--lbh-font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--lbh-font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Spacing */
	--lbh-radius: 16px;
	--lbh-radius-sm: 12px;
	--lbh-radius-lg: 24px;
	--lbh-radius-round: 9999px;
	--lbh-container: 1400px;

	/* Shadows */
	--lbh-shadow: 0 1px 3px rgba(61, 56, 48, 0.08), 0 1px 2px rgba(61, 56, 48, 0.04);
	--lbh-shadow-md: 0 4px 6px -1px rgba(61, 56, 48, 0.08), 0 2px 4px -2px rgba(61, 56, 48, 0.04);
	--lbh-shadow-lg: 0 10px 15px -3px rgba(61, 56, 48, 0.08), 0 4px 6px -4px rgba(61, 56, 48, 0.04);
	--lbh-shadow-xl: 0 20px 25px -5px rgba(61, 56, 48, 0.1), 0 8px 10px -6px rgba(61, 56, 48, 0.04);

	/* Transitions */
	--lbh-transition: 0.3s ease;
	--lbh-transition-slow: 0.5s ease;
}

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

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}

body {
	font-family: var(--lbh-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--lbh-fg);
	background-color: var(--lbh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

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

a:hover {
	color: var(--lbh-primary-hover);
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lbh-font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--lbh-fg);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.lbh-heading-2 {
	font-family: var(--lbh-font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.lbh-text-lg {
	font-size: 1.125rem;
	line-height: 1.75;
}

.lbh-text-muted {
	color: var(--lbh-muted);
}

.lbh-text-white {
	color: #fff;
}

.lbh-text-white-muted {
	color: rgba(255, 255, 255, 0.85);
}

.lbh-text-center {
	text-align: center;
}

/* ============================================
   LAYOUT
   ============================================ */

.lbh-container {
	width: 100%;
	max-width: var(--lbh-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.lbh-container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.lbh-container {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

.lbh-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

@media (min-width: 640px) {
	.lbh-section {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
}

@media (min-width: 768px) {
	.lbh-section {
		padding-top: 7rem;
		padding-bottom: 7rem;
	}
}

.lbh-section--bg {
	background-color: var(--lbh-bg);
}

.lbh-section--secondary {
	background-color: var(--lbh-secondary);
}

.lbh-section--primary {
	background-color: var(--lbh-forest);
	color: #fff;
}

.lbh-max-w-4xl {
	max-width: 56rem;
}

.lbh-mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.lbh-grid {
	display: grid;
	gap: 2rem;
}

.lbh-grid--2 {
	grid-template-columns: 1fr;
}

.lbh-grid--3 {
	grid-template-columns: 1fr;
}

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

@media (min-width: 768px) {
	.lbh-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.lbh-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.lbh-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1024px) {
	.lbh-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.lbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--lbh-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.625rem 1.25rem;
	border: 2px solid transparent;
	border-radius: var(--lbh-radius);
	cursor: pointer;
	transition: all var(--lbh-transition);
	text-decoration: none;
	line-height: 1.5;
}

.lbh-btn--primary {
	background-color: var(--lbh-primary);
	color: var(--lbh-primary-fg);
	border-color: var(--lbh-primary);
}

.lbh-btn--primary:hover {
	background-color: var(--lbh-primary-hover);
	border-color: var(--lbh-primary-hover);
	color: var(--lbh-primary-fg);
}

.lbh-btn--outline {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(8px);
}

.lbh-btn--outline:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.lbh-btn--ghost {
	background: transparent;
	color: var(--lbh-forest);
	border-color: transparent;
	padding: 0;
}

.lbh-btn--ghost:hover {
	color: var(--lbh-forest-hover);
}

.lbh-btn--ghost svg {
	transition: transform var(--lbh-transition);
}

.lbh-btn--ghost:hover svg {
	transform: translateX(4px);
}

.lbh-btn--lg {
	font-size: 1.125rem;
	padding: 0.875rem 2rem;
}

.lbh-btn--round {
	border-radius: var(--lbh-radius-round);
}

.lbh-btn--full {
	width: 100%;
}

/* ============================================
   CARDS
   ============================================ */

.lbh-card {
	background: var(--lbh-card);
	border: 2px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
	overflow: hidden;
	transition: all var(--lbh-transition-slow);
}

.lbh-card:hover {
	box-shadow: var(--lbh-shadow-xl);
}

.lbh-card__image {
	position: relative;
	height: 16rem;
	overflow: hidden;
}

.lbh-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.lbh-card:hover .lbh-card__image img {
	transform: scale(1.1);
}

.lbh-card__image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.lbh-card__image-icon {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	color: #fff;
}

.lbh-card__content {
	padding: 1.5rem;
}

.lbh-card__title {
	font-family: var(--lbh-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.lbh-card__text {
	color: var(--lbh-muted);
	line-height: 1.7;
	margin-bottom: 1rem;
}

/* ============================================
   HERO SECTION (Fallback)
   ============================================ */

.lbh-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
}

.lbh-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--lbh-forest);
}

.lbh-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.lbh-hero__content {
	position: relative;
	z-index: 10;
	text-align: center;
}

.lbh-hero__title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.1;
	color: #fff;
}

.lbh-hero__subtitle {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	max-width: 48rem;
	margin: 0 auto 2rem;
	line-height: 1.7;
	font-weight: 300;
	opacity: 0.95;
}

.lbh-hero__buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

@media (min-width: 640px) {
	.lbh-hero__buttons {
		flex-direction: row;
		justify-content: center;
	}
}

/* ============================================
   WAVE DIVIDER
   ============================================ */

.lbh-wave-divider {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.lbh-wave-divider svg {
	position: relative;
	display: block;
	width: calc(100% + 1.3px);
	height: 80px;
}

.lbh-wave-divider--flip {
	top: 0;
	bottom: auto;
	transform: rotate(180deg);
}

/* ============================================
   PAGE HERO (Small)
   ============================================ */

.lbh-page-hero {
	background: var(--lbh-bg);
	padding: 5rem 0 4rem;
	text-align: center;
}

.lbh-page-hero--small {
	padding: 4rem 0 3rem;
}

.lbh-page-hero__title {
	font-family: var(--lbh-font-display);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 700;
	color: var(--lbh-fg);
	margin-bottom: 0.75rem;
	line-height: 1.15;
}

.lbh-page-hero__subtitle {
	font-size: 1.1rem;
	color: var(--lbh-muted);
	max-width: 36rem;
	margin: 0 auto;
	line-height: 1.7;
}

/* ============================================
   PAGE HERO BANNER (Blog & Archive — matches Elementor pages)
   ============================================ */

.lbh-page-hero-banner {
	background: var(--lbh-bg);
	padding: 5rem 0 4rem;
	text-align: center;
}

.lbh-page-hero-banner__title {
	font-family: var(--lbh-font-display);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 700;
	color: var(--lbh-fg);
	margin-bottom: 0.75rem;
	line-height: 1.15;
}

.lbh-page-hero-banner__desc {
	font-size: 1.1rem;
	color: var(--lbh-muted);
	max-width: 36rem;
	margin: 0 auto;
	line-height: 1.7;
}

/* ============================================
   BLOG - Category Filter
   ============================================ */

.lbh-blog-filter {
	border-bottom: 1px solid var(--lbh-border, #e5e5e5);
	background: var(--lbh-bg, #faf8f5);
}

.lbh-blog-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 1rem 0;
	justify-content: center;
}

.lbh-blog-filter__item {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border-radius: 2rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--lbh-text-muted, #6b6b6b);
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.lbh-blog-filter__item:hover {
	color: var(--lbh-accent, #c47a3a);
	background: rgba(196, 122, 58, 0.08);
}

.lbh-blog-filter__item--active {
	color: #fff;
	background: var(--lbh-accent, #c47a3a);
	border-color: var(--lbh-accent, #c47a3a);
}

.lbh-blog-filter__item--active:hover {
	color: #fff;
	background: var(--lbh-accent-hover, #a86530);
}

/* ============================================
   BLOG - Horizontal Card Layout (Manus Style)
   ============================================ */

.lbh-blog__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.lbh-blog-card {
	display: flex;
	flex-direction: column;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
	overflow: hidden;
	transition: box-shadow var(--lbh-transition);
}

@media (min-width: 768px) {
	.lbh-blog-card {
		flex-direction: row;
	}
}

.lbh-blog-card:hover {
	box-shadow: var(--lbh-shadow-lg);
}

.lbh-blog-card__image {
	flex: 0 0 auto;
	overflow: hidden;
	height: 14rem;
}

@media (min-width: 768px) {
	.lbh-blog-card__image {
		width: 22rem;
		height: auto;
		min-height: 16rem;
	}
}

.lbh-blog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.lbh-blog-card:hover .lbh-blog-card__img {
	transform: scale(1.05);
}

.lbh-blog-card__body {
	flex: 1;
	padding: 1.5rem 2rem;
	display: flex;
	flex-direction: column;
}

.lbh-blog-card__top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.lbh-blog-card__badge {
	display: inline-block;
	background: var(--lbh-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: var(--lbh-radius-round);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.lbh-blog-card__read-time {
	font-size: 0.8rem;
	color: var(--lbh-muted);
}

.lbh-blog-card__title {
	font-family: var(--lbh-font-display);
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.lbh-blog-card__title a {
	color: var(--lbh-fg);
}

.lbh-blog-card__title a:hover {
	color: var(--lbh-primary);
}

.lbh-blog-card__excerpt {
	color: var(--lbh-muted);
	font-size: 0.9rem;
	line-height: 1.7;
	flex: 1;
}

.lbh-blog-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lbh-border);
}

.lbh-blog-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.8rem;
	color: var(--lbh-muted);
}

.lbh-blog-card__author,
.lbh-blog-card__date {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.lbh-blog-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--lbh-primary);
	font-weight: 600;
	font-size: 0.875rem;
	white-space: nowrap;
}

.lbh-blog-card__link:hover {
	color: var(--lbh-primary-hover);
}

.lbh-blog-card__link svg {
	transition: transform var(--lbh-transition);
}

.lbh-blog-card__link:hover svg {
	transform: translateX(4px);
}

/* ============================================
   SINGLE POST — Premium Design
   ============================================ */

/* --- Hero Header with Featured Image --- */
.lbh-single__hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.lbh-single__hero-img {
	position: absolute;
	inset: 0;
}

.lbh-single__hero-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lbh-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.55) 40%,
		rgba(0, 0, 0, 0.25) 100%
	);
}

.lbh-single__hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 3rem 0;
}

.lbh-single__hero .lbh-single__breadcrumb,
.lbh-single__hero .lbh-single__breadcrumb a,
.lbh-single__hero .lbh-single__breadcrumb-sep {
	color: rgba(255, 255, 255, 0.7);
}

.lbh-single__hero .lbh-single__breadcrumb a:hover {
	color: #fff;
}

.lbh-single__hero .lbh-single__title {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.25rem);
	max-width: 48rem;
}

.lbh-single__hero .lbh-single__read-time {
	color: rgba(255, 255, 255, 0.7);
}

.lbh-single__hero .lbh-single__author-row {
	color: rgba(255, 255, 255, 0.8);
}

.lbh-single__hero .lbh-single__date {
	color: rgba(255, 255, 255, 0.7);
}

/* --- Fallback Header (No Featured Image) --- */
.lbh-single__header--no-img {
	background: linear-gradient(135deg, var(--lbh-forest) 0%, #1e4530 100%);
	padding: 4rem 0 3rem;
}

.lbh-single__header--no-img .lbh-single__breadcrumb,
.lbh-single__header--no-img .lbh-single__breadcrumb a {
	color: rgba(255, 255, 255, 0.7);
}

.lbh-single__header--no-img .lbh-single__breadcrumb a:hover {
	color: #fff;
}

.lbh-single__header--no-img .lbh-single__title {
	color: #fff;
	max-width: 48rem;
}

.lbh-single__header--no-img .lbh-single__read-time {
	color: rgba(255, 255, 255, 0.7);
}

.lbh-single__header--no-img .lbh-single__author-row {
	color: rgba(255, 255, 255, 0.8);
}

/* --- Common Single Elements --- */
.lbh-single__breadcrumb {
	font-size: 0.8rem;
	color: var(--lbh-muted);
	margin-bottom: 1.5rem;
}

.lbh-single__breadcrumb a {
	color: var(--lbh-muted);
}

.lbh-single__breadcrumb a:hover {
	color: var(--lbh-primary);
}

.lbh-single__breadcrumb-sep {
	margin: 0 0.4rem;
	opacity: 0.6;
}

.lbh-single__meta-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.lbh-single__read-time {
	font-size: 0.8rem;
	color: var(--lbh-muted);
}

.lbh-single__title {
	font-family: var(--lbh-font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--lbh-fg);
	margin-bottom: 1rem;
	line-height: 1.2;
}

.lbh-single__author-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-size: 0.85rem;
	color: var(--lbh-muted);
}

.lbh-single__author,
.lbh-single__date {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.lbh-single__avatar {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- Two-Column Layout --- */
.lbh-single__layout {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

@media (min-width: 1024px) {
	.lbh-single__layout {
		flex-direction: row;
	}

	.lbh-single__content {
		order: 1;
	}

	.lbh-single__sidebar {
		order: 2;
	}
}

.lbh-single__content {
	flex: 1;
	min-width: 0;
}

.lbh-single__sidebar {
	flex: 0 0 17rem;
}

@media (max-width: 1023px) {
	.lbh-single__sidebar {
		order: -1;
	}
}

@media (min-width: 1024px) {
	.lbh-single__sidebar {
		position: sticky;
		top: 6rem;
		align-self: flex-start;
	}
}

/* --- Premium Table of Contents --- */
.lbh-toc {
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
	padding: 0;
	overflow: hidden;
}

.lbh-toc__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	background: var(--lbh-forest);
	color: #fff;
}

.lbh-toc__header svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.lbh-toc__title {
	font-family: var(--lbh-font-body);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
	margin: 0;
	padding: 0;
	border: 0;
}

.lbh-toc__progress {
	height: 3px;
	background: var(--lbh-border);
}

.lbh-toc__progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--lbh-primary), var(--lbh-forest));
	transition: width 0.15s ease-out;
	border-radius: 0 2px 2px 0;
}

.lbh-toc__nav {
	padding: 0.75rem 1.25rem 1rem;
}

.lbh-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbh-toc__item {
	margin: 0;
}

.lbh-toc__link {
	display: block;
	padding: 0.4rem 0 0.4rem 0.75rem;
	font-size: 0.8rem;
	color: var(--lbh-muted);
	border-left: 2px solid var(--lbh-border);
	transition: all var(--lbh-transition);
	line-height: 1.4;
}

.lbh-toc__link:hover,
.lbh-toc__link--active {
	color: var(--lbh-primary);
	border-left-color: var(--lbh-primary);
	background: var(--lbh-primary-light);
}

.lbh-toc__item--sub .lbh-toc__link {
	padding-left: 1.5rem;
	font-size: 0.75rem;
}

/* --- Tags --- */
.lbh-single__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid var(--lbh-border);
}

.lbh-single__tags svg {
	color: var(--lbh-muted);
	flex-shrink: 0;
}

.lbh-single__tag {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--lbh-forest);
	background: var(--lbh-forest-light);
	border-radius: var(--lbh-radius-round);
	transition: all var(--lbh-transition);
}

.lbh-single__tag:hover {
	background: var(--lbh-forest);
	color: #fff;
}

/* --- Share Bar --- */
.lbh-single__share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1rem 1.25rem;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
}

.lbh-single__share-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lbh-fg);
	white-space: nowrap;
}

.lbh-single__share-links {
	display: flex;
	gap: 0.5rem;
}

.lbh-single__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--lbh-bg);
	border: 1px solid var(--lbh-border);
	color: var(--lbh-muted);
	cursor: pointer;
	transition: all var(--lbh-transition);
}

.lbh-single__share-btn:hover {
	background: var(--lbh-forest);
	border-color: var(--lbh-forest);
	color: #fff;
}

.lbh-single__share-btn.copied {
	background: var(--lbh-forest);
	border-color: var(--lbh-forest);
	color: #fff;
}

/* --- Author Bio Card --- */
.lbh-single__author-card {
	display: flex;
	gap: 1.25rem;
	margin-top: 2rem;
	padding: 1.5rem;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
}

.lbh-single__author-photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--lbh-forest-light);
	flex-shrink: 0;
}

.lbh-single__author-card-avatar {
	flex-shrink: 0;
}

.lbh-single__author-card-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--lbh-primary);
	margin-bottom: 0.2rem;
}

.lbh-single__author-card-name {
	font-family: var(--lbh-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lbh-fg);
	margin-bottom: 0.4rem;
}

.lbh-single__author-card-bio {
	font-size: 0.85rem;
	color: var(--lbh-muted);
	line-height: 1.6;
	margin: 0;
}

/* --- Post Navigation Cards --- */
.lbh-single__nav-section {
	background: var(--lbh-secondary);
	padding: 3rem 0;
}

.lbh-single__nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.lbh-single__nav {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
}

.lbh-single__nav-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.25rem 1.5rem;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
	transition: all var(--lbh-transition);
	text-decoration: none;
}

.lbh-single__nav-card:hover {
	box-shadow: var(--lbh-shadow-lg);
	border-color: var(--lbh-primary);
	transform: translateY(-2px);
}

.lbh-single__nav-card--next {
	text-align: right;
}

.lbh-single__nav-dir {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lbh-primary);
}

.lbh-single__nav-card--next .lbh-single__nav-dir {
	justify-content: flex-end;
}

.lbh-single__nav-title {
	display: block;
	font-family: var(--lbh-font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--lbh-fg);
	line-height: 1.35;
}

/* --- Related Posts --- */
.lbh-single__related {
	padding: 4rem 0 5rem;
	background: var(--lbh-bg);
}

.lbh-single__related-heading {
	font-family: var(--lbh-font-display);
	font-size: 1.75rem;
	text-align: center;
	margin-bottom: 2.5rem;
	color: var(--lbh-fg);
}

.lbh-single__related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.lbh-single__related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.lbh-single__related-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.lbh-single__related-card {
	display: flex;
	flex-direction: column;
	background: var(--lbh-card);
	border: 1px solid var(--lbh-border);
	border-radius: var(--lbh-radius);
	overflow: hidden;
	transition: all var(--lbh-transition-slow);
	text-decoration: none;
}

.lbh-single__related-card:hover {
	box-shadow: var(--lbh-shadow-xl);
	transform: translateY(-4px);
}

.lbh-single__related-img {
	height: 12rem;
	overflow: hidden;
}

.lbh-single__related-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.lbh-single__related-card:hover .lbh-single__related-photo {
	transform: scale(1.08);
}

.lbh-single__related-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.lbh-blog-card__badge--sm {
	font-size: 0.6rem;
	padding: 0.15rem 0.5rem;
	align-self: flex-start;
}

.lbh-single__related-title {
	font-family: var(--lbh-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--lbh-fg);
	line-height: 1.3;
}

.lbh-single__related-date {
	font-size: 0.75rem;
	color: var(--lbh-muted);
}

/* Post Content Typography */
.lbh-content {
	font-size: 1.0625rem;
	line-height: 1.8;
}

.lbh-content h2 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	scroll-margin-top: 5rem;
}

.lbh-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	scroll-margin-top: 5rem;
}

.lbh-content p {
	margin-bottom: 1.5rem;
}

.lbh-content img {
	border-radius: var(--lbh-radius);
	margin: 2rem 0;
}

.lbh-content ul,
.lbh-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.lbh-content li {
	margin-bottom: 0.5rem;
}

.lbh-content blockquote {
	border-left: 4px solid var(--lbh-primary);
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	background: var(--lbh-card);
	border-radius: 0 var(--lbh-radius-sm) var(--lbh-radius-sm) 0;
	font-style: italic;
}

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

.lbh-pagination {
	margin-top: 3rem;
	text-align: center;
}

.lbh-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.lbh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: var(--lbh-radius-sm);
	border: 1px solid var(--lbh-border);
	color: var(--lbh-fg);
	font-size: 0.875rem;
	transition: all var(--lbh-transition);
}

.lbh-pagination .page-numbers.current,
.lbh-pagination .page-numbers:hover {
	background-color: var(--lbh-primary);
	border-color: var(--lbh-primary);
	color: #fff;
}

/* ============================================
   404 PAGE
   ============================================ */

.lbh-404__title {
	font-size: clamp(4rem, 15vw, 8rem);
	color: var(--lbh-primary);
	opacity: 0.3;
	line-height: 1;
	margin-bottom: 1rem;
}

.lbh-no-posts {
	text-align: center;
	padding: 4rem 0;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--lbh-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--lbh-border);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--lbh-muted);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

.wp-block-image {
	margin-bottom: 1.5rem;
}

.wp-block-image img {
	border-radius: var(--lbh-radius);
}

.alignwide {
	margin-left: -1rem;
	margin-right: -1rem;
	max-width: calc(100% + 2rem);
}

@media (min-width: 640px) {
	.alignwide {
		margin-left: -2rem;
		margin-right: -2rem;
		max-width: calc(100% + 4rem);
	}
}

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