/*!
 * Enzo — blog styles (conditionally enqueued)
 * Selectors preserved from main.css.
 */

.enzo-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.enzo-post-content__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin-top: 0;
	margin-bottom: 32px;
	padding: 12px 18px;
	border: 1px solid rgba(21, 21, 21, 0.07);
	border-radius: 12px;
	background: #f8f6f3;
	box-shadow: none;
}

.enzo-post-content__media + .enzo-post-content__meta {
	margin-top: 14px;
}

.enzo-post-meta__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 2px 16px;
	font-size: 13px;
	color: var(--muted);
}

.enzo-post-meta__item:first-child {
	padding-left: 0;
}

.enzo-post-meta__item:last-child {
	padding-right: 0;
}

.enzo-post-meta__item:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 12px;
	background: rgba(21, 21, 21, 0.1);
	transform: translateY(-50%);
	content: "";
}

.enzo-post-meta__item:has(.card-badge) {
	padding-right: 18px;
}

.enzo-post-meta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: rgba(21, 21, 21, 0.38);
}

.enzo-post-meta__icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.enzo-post-meta__text {
	color: rgba(21, 21, 21, 0.58);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.enzo-post-content__author {
	color: var(--dark);
	font-weight: 600;
}

.enzo-post-content__meta .card-badge {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--primary);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: default;
}

.enzo-post-meta__item:has(.card-badge) .enzo-post-meta__icon {
	display: none;
}

.enzo-post-content__excerpt {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.7;
}

.enzo-post-content__media {
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 12px 36px rgba(21, 21, 21, 0.08);
}

.enzo-post-content__media img,
.enzo-post-content__image {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.enzo-post-content__body {
	font-size: 17px;
	line-height: 1.9;
	color: var(--text);
}

.enzo-post-content__body > *:first-child {
	margin-top: 0;
}

.enzo-post-content__body p {
	margin: 0 0 24px;
	color: var(--text);
}

.enzo-post-content__body h2 {
	margin: 48px 0 18px;
	font-size: 30px;
	line-height: 1.25;
	color: var(--dark);
}

.enzo-post-content__body h3 {
	margin: 32px 0 14px;
	font-size: 24px;
	line-height: 1.3;
	color: var(--dark);
}

.enzo-post-content__body ul,
.enzo-post-content__body ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.enzo-post-content__body li + li {
	margin-top: 8px;
}

.enzo-post-content__body blockquote {
	margin: 32px 0;
	padding: 24px 32px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
	border-radius: 16px;
	background: var(--light);
	box-shadow: 0 12px 36px rgba(21, 21, 21, 0.05);
	color: var(--dark);
}

.enzo-post-content__body blockquote p:last-child {
	margin-bottom: 0;
}

.enzo-post-content__body img {
	border-radius: 16px;
}

.enzo-post-content__body table {
	width: 100%;
	margin: 0 0 32px;
	border-collapse: collapse;
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 36px rgba(21, 21, 21, 0.05);
}

.enzo-post-content__body th,
.enzo-post-content__body td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.enzo-post-content__body th {
	background: var(--light);
	color: var(--dark);
	font-weight: 700;
}

.enzo-post-content__body tr:last-child td {
	border-bottom: 0;
}

.enzo-post-content__body pre {
	margin: 0 0 32px;
	padding: 24px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--dark);
	color: var(--white);
	font-size: 15px;
	line-height: 1.7;
}

.enzo-post-content__body code {
	padding: 2px 8px;
	border-radius: 8px;
	background: rgba(var(--primary-rgb), 0.08);
	color: var(--dark);
	font-size: 0.92em;
}

.enzo-post-content__body pre code {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
}

.enzo-post-content__body a {
	color: var(--enzo-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.enzo-post-content__footer {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.enzo-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.enzo-post-tags a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--white);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.enzo-post-tags a:hover,
.enzo-post-tags a:focus-visible {
	border-color: rgba(var(--primary-rgb), 0.24);
	background: rgba(var(--primary-rgb), 0.08);
	color: var(--primary);
}

.enzo-post-share {
	margin-bottom: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.enzo-post-share__label {
	display: block;
	margin-bottom: 16px;
	color: var(--dark);
	font-size: 15px;
	font-weight: 700;
}

.enzo-post-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.enzo-post-share__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--white);
	color: var(--muted);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.enzo-post-share__button:hover,
.enzo-post-share__button:focus-visible {
	border-color: rgba(var(--primary-rgb), 0.35);
	background: rgba(var(--primary-rgb), 0.06);
	color: var(--primary);
	transform: translateY(-2px);
}

.enzo-post-share__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: currentColor;
}

.enzo-post-share__button-icon svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.enzo-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.enzo-post-navigation__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 24px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--white);
	box-shadow: 0 12px 36px rgba(21, 21, 21, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.enzo-post-navigation__link:hover,
.enzo-post-navigation__link:focus-visible {
	border-color: rgba(var(--primary-rgb), 0.24);
	box-shadow: 0 16px 45px rgba(21, 21, 21, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

.enzo-post-navigation__link--next {
	text-align: right;
	align-items: flex-end;
}

.enzo-post-navigation__label {
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.enzo-post-navigation__title {
	color: var(--dark);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.enzo-post-sidebar {
	position: sticky;
	top: 120px;
	display: grid;
	gap: 24px;
}

.enzo-related-posts {
	display: grid;
	gap: 16px;
}

.enzo-related-post__media {
	overflow: hidden;
	width: 80px;
	height: 80px;
	border-radius: 12px;
}

.enzo-related-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.enzo-related-post__body {
	display: grid;
	gap: 6px;
}

.enzo-related-post__title {
	color: var(--dark);
	font-size: 15px;
	line-height: 1.4;
}

.enzo-related-post__date {
	color: var(--muted);
	font-size: 13px;
}

.enzo-post-cta {
	display: grid;
	gap: 16px;
	background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08) 0%, var(--white) 100%);
}

.enzo-post-cta__title {
	margin: 0;
	color: var(--dark);
	font-size: 24px;
	line-height: 1.25;
}

.enzo-post-cta__text {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}

.enzo-post-comments {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
.enzo-post-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
.enzo-post-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
.enzo-post-content__body {
		font-size: 16px;
	}
.enzo-post-content__body h2 {
		margin-top: 32px;
		font-size: 24px;
	}
.enzo-post-content__body h3 {
		margin-top: 24px;
		font-size: 20px;
	}
.enzo-post-content__meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 16px;
		margin-top: 12px;
		margin-bottom: 24px;
		padding: 12px 14px;
	}
.enzo-post-meta__item {
		padding: 0;
	}
.enzo-post-meta__item:first-child,
	.enzo-post-meta__item:last-child,
	.enzo-post-meta__item:has(.card-badge) {
		padding: 0;
	}
.enzo-post-meta__item:not(:last-child)::after {
		display: none;
	}
.enzo-post-content__media {
		margin-bottom: 0;
	}
.enzo-post-content__media img,
	.enzo-post-content__image {
		max-height: 320px;
	}
.enzo-post-content__footer {
		margin-top: 32px;
		padding-top: 24px;
	}
.enzo-post-navigation {
		grid-template-columns: 1fr;
	}
.enzo-post-navigation__link--next {
		text-align: left;
		align-items: flex-start;
	}
.enzo-post-comments {
		margin-top: 40px;
		padding-top: 32px;
	}
}

.enzo-related-post {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--white);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.enzo-related-post:hover,
.enzo-related-post:focus-visible {
	border-color: rgba(var(--primary-rgb), 0.24);
	box-shadow: 0 16px 45px rgba(21, 21, 21, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

/* -------------------------------------------------------------------------
 * Blog archive cards — Modern Architectural Article Card
 * Single-piece card; overrides shared .blog-card base in main.css.
 * ------------------------------------------------------------------------- */

.blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--white);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
	transform: none;
	border-color: rgba(var(--primary-rgb), 0.28);
	box-shadow: 0 10px 28px rgba(21, 21, 21, 0.06);
}

.blog-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0;
	background: var(--light);
}

.blog-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: none;
}

.blog-card > .blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	margin-top: 0;
	padding: 24px;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 0 0 12px;
	line-height: 1.2;
}

.blog-card__category {
	color: var(--primary);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.blog-card__category:hover,
.blog-card__category:focus-visible {
	color: #d63d24;
}

.blog-card__meta-sep {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(21, 21, 21, 0.28);
}

.blog-card__meta time {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 500;
}

.blog-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

.blog-card__title a {
	color: var(--dark);
	text-decoration: none;
}

.blog-card__title a:hover,
.blog-card__title a:focus-visible {
	color: var(--primary);
}

.blog-card__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(21, 21, 21, 0.08);
	color: var(--dark);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.blog-card__more-label {
	color: inherit;
}

.blog-card__more-arrow {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(21, 21, 21, 0.08);
	border-radius: 8px;
	background: rgba(21, 21, 21, 0.04);
	color: var(--dark);
	font-size: 1rem;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover .blog-card__more-arrow,
.blog-card__more:hover .blog-card__more-arrow,
.blog-card__more:focus-visible .blog-card__more-arrow {
	border-color: rgba(var(--primary-rgb), 0.35);
	background: var(--primary);
	color: var(--white);
	transform: translateX(2px);
}

.blog-card__more:hover,
.blog-card__more:focus-visible {
	color: var(--primary);
}

@media (max-width: 768px) {
.blog-card__body {
		padding: 20px;
	}
.blog-card__title {
		font-size: 1.1rem;
	}
}
