/**
 * Featured Blog Posts — shared styles (front end + editor preview).
 */

.prespa-featured-posts {
	--pfp-accent: #2c5cdc;
	--pfp-accent-hover: #2148b8;
	--pfp-blob-bg: #f3f5fb;
	display: flex;
	flex-direction: column;
	gap: 80px;
	width: 100%;
}

.prespa-featured-posts__row {
	display: flex;
	align-items: center;
	gap: 56px;
}

.prespa-featured-posts__row.is-reverse {
	flex-direction: row-reverse;
}

.prespa-featured-posts__media,
.prespa-featured-posts__content {
	flex: 1 1 50%;
	min-width: 0;
}

/* Soft rounded "blob" backdrop behind the image, like the reference design. */
.prespa-featured-posts__media {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--pfp-blob-bg);
	border-radius: 42% 58% 57% 43% / 48% 45% 55% 52%;
	padding: 48px;
}

.prespa-featured-posts__media:empty {
	display: none;
}

.prespa-featured-posts__media-link {
	display: block;
	width: 100%;
}

.prespa-featured-posts__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.prespa-featured-posts__title {
	margin: 0 0 20px;
	font-size: 1.9rem;
	line-height: 1.25;
}

.prespa-featured-posts__title a {
	text-decoration: none;
	color: inherit;
}

.prespa-featured-posts__title a:hover {
	color: var(--pfp-accent);
}

.prespa-featured-posts__excerpt {
	margin: 0 0 32px;
	line-height: 1.7;
	opacity: 0.85;
}

.prespa-featured-posts__btn {
	display: inline-block;
	background: var(--pfp-accent);
	color: #fff;
	text-decoration: none;
	padding: 14px 30px;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s ease;
}

.prespa-featured-posts__btn:hover,
.prespa-featured-posts__btn:focus {
	background: var(--pfp-accent-hover);
	color: #fff;
}

.prespa-featured-posts__footer {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

/* Stack on small screens. */
@media (max-width: 781px) {
	.prespa-featured-posts {
		gap: 56px;
	}
	.prespa-featured-posts__row,
	.prespa-featured-posts__row.is-reverse {
		flex-direction: column;
		gap: 28px;
	}
	.prespa-featured-posts__media {
		width: 100%;
		padding: 32px;
	}
	.prespa-featured-posts__title {
		font-size: 1.55rem;
	}
}

/* --- Editor sidebar: selected-post list --- */
.prespa-featured-posts__picked {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.prespa-featured-posts__picked-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	margin-bottom: 6px;
}

.prespa-featured-posts__picked-title {
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prespa-featured-posts__picked-actions {
	display: flex;
	flex: 0 0 auto;
}

.prespa-featured-posts__hint {
	font-size: 12px;
	font-style: italic;
	opacity: 0.7;
	margin: 0 0 12px;
}
