/**
 * Blog listing and single posts.
 */

.nhm-blog {
	padding: var(--nhm-space-10) 0 var(--nhm-space-12);
}

.nhm-blog__intro {
	max-width: 40rem;
	margin: 0 0 var(--nhm-space-8);
}

.nhm-blog__eyebrow {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nhm-text-muted);
}

.nhm-blog__intro h1,
.nhm-blog-single__intro h1 {
	margin: 0 0 0.65rem;
	font-family: var(--nhm-font-display);
	font-size: clamp(1.85rem, 3.4vw, 2.6rem);
	color: var(--nhm-primary);
}

.nhm-blog__intro p,
.nhm-blog__archive-desc {
	margin: 0;
	color: var(--nhm-text-muted);
	line-height: 1.6;
}

.nhm-blog__back {
	margin: 0 0 0.85rem;
	font-weight: 700;
}

.nhm-blog__back a {
	color: var(--nhm-primary);
	text-decoration: none;
}

.nhm-blog__back a:hover {
	color: var(--nhm-secondary-hover, #c9a01f);
}

.nhm-blog__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.nhm-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.nhm-blog__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.nhm-blog-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--nhm-border);
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(7, 29, 61, 0.06);
}

.nhm-blog-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #e8eef5;
	overflow: hidden;
}

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

.nhm-blog-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.55), transparent 45%),
		linear-gradient(135deg, #c9d4e3 0%, #e8eef5 50%, #b8c6d8 100%);
}

.nhm-blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.15rem 1.2rem 1.25rem;
	flex: 1;
}

.nhm-blog-card__cat {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nhm-text-muted);
}

.nhm-blog-card__title {
	margin: 0;
	font-family: var(--nhm-font-display);
	font-size: 1.2rem;
	line-height: 1.3;
}

.nhm-blog-card__title a {
	color: var(--nhm-primary);
	text-decoration: none;
}

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

.nhm-blog-card__excerpt {
	margin: 0;
	color: var(--nhm-text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.nhm-blog-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin: auto 0 0;
	padding-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.nhm-blog-card__meta time {
	color: var(--nhm-text-muted);
	font-weight: 600;
}

.nhm-blog-card__meta a {
	color: var(--nhm-primary);
	text-decoration: none;
}

.nhm-blog .navigation.pagination {
	margin-top: 2rem;
}

.nhm-blog .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	margin-right: 0.3rem;
	padding: 0 0.55rem;
	border-radius: 8px;
	border: 1px solid var(--nhm-border);
	color: var(--nhm-primary);
	text-decoration: none;
	font-weight: 700;
}

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

.nhm-blog-single {
	padding: var(--nhm-space-10) 0 var(--nhm-space-12);
}

.nhm-blog-single__intro {
	max-width: 46rem;
	margin: 0 auto 1.5rem;
}

.nhm-blog-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.nhm-blog-single__cats a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: #eef3f8;
	color: var(--nhm-primary);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.nhm-blog-single__meta {
	margin: 0;
	color: var(--nhm-text-muted);
	font-weight: 600;
}

.nhm-blog-single__hero {
	margin: 0 auto 1.75rem;
	max-width: 56rem;
	border-radius: 22px;
	overflow: hidden;
}

.nhm-blog-single__hero img {
	display: block;
	width: 100%;
	height: auto;
}

.nhm-blog-single__content {
	max-width: 46rem;
	margin: 0 auto;
	line-height: 1.75;
	color: var(--nhm-text);
}

.nhm-blog-single__content p,
.nhm-blog-single__content ul,
.nhm-blog-single__content ol {
	margin: 0 0 1.1rem;
}

.nhm-blog-single__content h2,
.nhm-blog-single__content h3 {
	font-family: var(--nhm-font-display);
	color: var(--nhm-primary);
	margin: 1.75rem 0 0.65rem;
}

.nhm-blog-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.nhm-blog-single__tags {
	max-width: 46rem;
	margin: 1.5rem auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.nhm-blog-single__tags a {
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	border: 1px solid var(--nhm-border);
	text-decoration: none;
	color: var(--nhm-primary);
	font-size: 0.85rem;
}

.nhm-blog-single__nav {
	max-width: 46rem;
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--nhm-border);
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.nhm-blog-single__nav {
		grid-template-columns: 1fr 1fr;
	}

	.nhm-blog-single__nav div:last-child {
		text-align: right;
	}
}

.nhm-blog-single__nav a {
	color: var(--nhm-primary);
	text-decoration: none;
	font-weight: 700;
}

.nhm-blog-single__comments {
	max-width: 46rem;
	margin: 2.5rem auto 0;
}

.nhm-comments__title {
	font-family: var(--nhm-font-display);
	font-size: 1.25rem;
	margin: 0 0 1rem;
	color: var(--nhm-primary);
}

.nhm-comments .comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

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

.nhm-comments .comment-form label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.nhm-comments .comment-form input,
.nhm-comments .comment-form textarea {
	width: 100%;
	max-width: 100%;
}
