/**
 * Blog listing + single — Figma 212:8868 / 213:1711.
 */

body.blog,
body.single-post,
body.archive.category {
	background: var(--surface-white);
}

.blog-main,
.blog-single-main {
	background: var(--surface-white);
	padding: 24px 0 48px;
}

.blog-container,
.blog-single {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.blog-intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.blog-crumb {
	font-size: 13px;
	line-height: 20px;
	color: var(--ink-500);
}

.blog-crumb a:hover {
	text-decoration: underline;
	color: var(--ink-900);
}

.blog-intro__title,
.blog-single__title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 36px;
	color: var(--ink-900);
}

.blog-intro__lead {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: var(--ink-500);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-24);
	background: var(--surface-white);
}

.blog-card__media {
	display: block;
	height: 240px;
	background: var(--surface-soft);
	overflow: hidden;
}

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

.blog-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
}

.blog-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: var(--radius-24);
	background: var(--surface-soft);
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--brand-rose-dark);
}

.blog-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--ink-900);
}

.blog-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: inherit;
}

.blog-card__more {
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	color: var(--brand-rose-dark);
}

.blog-card__more:hover,
.blog-card__title a:hover {
	text-decoration: underline;
}

.blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-pagination li {
	margin: 0;
	list-style: none;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-8);
	background: var(--surface-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--ink-900);
}

.blog-pagination .current {
	border-color: var(--ink-900);
	background: var(--ink-900);
	color: var(--surface-white);
}

.blog-empty {
	margin: 0;
	color: var(--ink-500);
}

.blog-single__hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.blog-single__meta {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--ink-500);
}

.blog-single__image {
	overflow: hidden;
	width: 100%;
	height: 480px;
	border-radius: var(--radius-24);
	background: var(--surface-soft);
}

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

.blog-single__layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.blog-toc {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-24);
	background: var(--surface-white);
}

.blog-toc__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--ink-900);
}

.blog-toc__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-toc__list a {
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	color: var(--ink-700);
}

.blog-toc__list a.is-active,
.blog-toc__list a:hover {
	color: var(--brand-rose-dark);
}

.blog-article {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.blog-article__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: var(--ink-700);
}

.blog-article__body > *:first-child {
	margin-top: 0;
}

.blog-article__body > *:last-child {
	margin-bottom: 0;
}

.blog-article__body p,
.blog-article__body ul {
	margin: 0;
}

.blog-article__body h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--ink-900);
	scroll-margin-top: 24px;
}

.blog-article__body h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--ink-900);
}

.blog-article__body ul {
	padding-left: 18px;
}

.blog-recs {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.blog-rec {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px 20px 20px;
	border-radius: var(--radius-24);
	background: var(--surface-page);
}

.blog-rec__media {
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
	overflow: hidden;
	border-radius: var(--radius-16);
	background: var(--surface-white);
}

.blog-rec__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.blog-rec__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.blog-rec__kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--brand-rose-dark);
}

.blog-rec__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--ink-900);
}

.blog-rec__text {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--ink-500);
}

.blog-rec__cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 16px;
	border-radius: var(--radius-8);
	background: var(--brand-rose);
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.8px;
	color: var(--surface-white);
	white-space: nowrap;
}

.blog-rec__cta:hover {
	background: var(--brand-rose-dark);
	color: var(--surface-white);
}

.blog-rec__cta.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.blog-faq h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--ink-900);
	scroll-margin-top: 24px;
}

.blog-faq .faq__accordion {
	border-top: 0;
}

.blog-faq .faq__question {
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
}

.blog-faq .faq__trigger {
	padding: 16px 0;
}

.blog-related {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.blog-related h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--ink-900);
}

@media (max-width: 1199px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-single__layout {
		grid-template-columns: 1fr;
	}

	.blog-toc {
		display: none;
	}

	.blog-single__image {
		height: 320px;
	}
}

@media (max-width: 767px) {
	.blog-main,
	.blog-single-main {
		padding: 16px 0 40px;
	}

	.blog-container,
	.blog-single {
		gap: 20px;
	}

	.blog-crumb,
	.blog-intro__lead {
		display: none;
	}

	.blog-intro__title,
	.blog-single__title {
		font-size: 21px;
		line-height: 28px;
	}

	.blog-single__meta {
		font-size: 10px;
		line-height: 14px;
	}

	.blog-grid,
	.blog-grid--related {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.blog-pagination ul {
		justify-content: center;
	}

	.blog-single__image {
		height: 220px;
		border-radius: var(--radius-16);
	}

	.blog-article__body {
		gap: 18px;
		font-size: 14px;
		line-height: 22px;
	}

	.blog-article__body h2,
	.blog-faq h2,
	.blog-related h2 {
		font-size: 17px;
		line-height: 24px;
	}

	.blog-rec {
		flex-direction: column;
		align-items: stretch;
		padding: 20px 24px 20px 20px;
	}

	.blog-rec__media {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		flex-basis: auto;
	}

	.blog-rec__cta {
		width: 100%;
	}

	.blog-related {
		display: none;
	}
}
