/* ============================================================
   BP: Post List (interleaved latest-posts stream)
   Compact rows — thumbnail + title + relative date, no excerpt —
   inserted after Barita section blocks on the front page
   (see template-functions/post-list.php).
   ============================================================ */

.bp-post-list {
	margin: var(--bp-space-8) 0;
}

/* Optional heading (first list only) — same accent-bar language as
   the other section titles. */
.bp-post-list-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0.25rem;
	font-family: var(--bp-font-heading);
	font-size: var(--bp-text-xl);
	font-weight: 700;
	line-height: 1.3;
	color: var(--bp-color-heading);
}

.bp-post-list-heading::before {
	content: '';
	flex-shrink: 0;
	width: 4px;
	height: 22px;
	background: var(--bp-color-primary);
	border-radius: 2px;
}

.bp-post-list-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--bp-color-border);
}

.bp-post-list-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* Global load-more button, appended at the end of the page content
   after the last list. Appended batches reuse .bp-post-list. */
.bp-post-list-load-more-wrap {
	margin: var(--bp-space-8) 0;
}

.bp-post-list-load-more {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--bp-color-surface);
	border: 1px solid var(--bp-color-border);
	border-radius: var(--bp-radius-sm);
	color: var(--bp-color-heading);
	font-weight: 600;
	cursor: pointer;
}

.bp-post-list-load-more:hover:not(:disabled),
.bp-post-list-load-more:focus:not(:disabled) {
	border-color: var(--bp-color-primary);
	color: var(--bp-color-primary);
}

.bp-post-list-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.bp-post-list-load-more-end {
	margin: 0;
	text-align: center;
	font-size: var(--bp-text-sm);
	color: var(--bp-color-muted);
}

.bp-post-list-thumb {
	flex: 0 0 150px;
	display: block;
	overflow: hidden;
	border-radius: var(--bp-radius-sm);
	aspect-ratio: 16 / 10;
}

.bp-post-list-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bp-post-list-body {
	flex: 1;
	min-width: 0;
}

.bp-post-list-category {
	display: block;
	margin: 0 0 0.25rem;
	font-size: var(--bp-text-xs);
	font-weight: 600;
	color: var(--bp-color-primary);
}

.bp-post-list-category:hover,
.bp-post-list-category:focus {
	text-decoration: underline;
}

.bp-post-list-title {
	margin: 0 0 0.25rem;
	font-family: var(--bp-font-heading);
	font-size: var(--bp-text-lg);
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bp-post-list-title a {
	color: var(--bp-color-heading);
}

.bp-post-list-title a:hover,
.bp-post-list-title a:focus {
	color: var(--bp-color-primary);
}

.bp-post-list-date {
	font-size: var(--bp-text-sm);
	color: var(--bp-color-text-muted);
}

@media (max-width: 600px) {
	.bp-post-list-thumb {
		flex-basis: 110px;
	}
}
