/**
 * Blog & block templates — complements theme.json (not used on one-page Home template).
 */

/* ── Post cards (query loops) ── */
.fd-post-card {
	border-bottom: 1px solid var(--wp--preset--color--grey-200, #ced9d9);
	padding-bottom: 2rem;
	margin-bottom: 2rem;
}

.fd-post-card:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.fd-post-card .wp-block-post-featured-image img {
	border-radius: 8px;
}

.fd-post-card .wp-block-post-terms {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fd-post-card .wp-block-post-terms a {
	text-decoration: none;
}

.fd-post-card .wp-block-post-terms a:hover {
	text-decoration: underline;
}

/* ── Archive / search title area ── */
.fd-archive-intro .wp-block-term-description {
	font-size: 1rem;
	color: var(--wp--preset--color--grey-600, #546363);
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

/* ── Single post content readability ── */
.single-post .wp-block-post-content,
.wp-block-post-content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.wp-block-post-content > * + * {
	margin-top: 1.25em;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
}

/* ── Comments ── */
.wp-block-comments {
	padding: 1.5rem;
	background: var(--wp--preset--color--white, #fff);
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--grey-200, #ced9d9);
}

.wp-block-comment-template > li {
	border-bottom: 1px solid var(--wp--preset--color--grey-100, #e6ecec);
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
}

.wp-block-comment-template > li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* ── Pagination ── */
.wp-block-query-pagination {
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.fd-post-card .wp-block-post-featured-image a {
		transition: none;
	}
}
