/* Editorial Feed — scoped styles, all classes prefixed with ef- */

.ef-feed {
	--ef-green: #1b3b2f;
	--ef-green-light: #d7f2e3;
	--ef-ink: #1a1d1e;
	--ef-muted: #6b7280;
	--ef-border: #e6e8eb;
	--ef-bg: #f6f7f9;
	--ef-badge-bg: rgba(17, 20, 20, 0.55);

	
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ef-ink);
	box-sizing: border-box;
}

.ef-feed *,
.ef-feed *::before,
.ef-feed *::after {
	box-sizing: border-box;
}

/* Header */

.ef-feed__eyebrow {
	display: inline-block;
	background: var(--ef-green-light);
	color: var(--ef-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.ef-feed__title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.ef-feed__subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ef-muted);
	max-width: 640px;
	margin: 0 0 28px;
}

/* Filters */

.ef-feed__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.ef-feed__filter-btn {
	appearance: none;
	border: 1px solid var(--ef-border);
	background: #fff;
	color: var(--ef-muted);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ef-feed__filter-btn:hover {
	border-color: var(--ef-green);
	color: var(--ef-green);
}

.ef-feed__filter-btn:focus-visible {
	outline: 2px solid var(--ef-green);
	outline-offset: 2px;
}

.ef-feed__filter-btn--active,
.ef-feed__filter-btn--active:hover {
	background: var(--ef-green);
	border-color: var(--ef-green);
	color: #fff;
}

/* Results wrapper */

.ef-feed__results {
	transition: opacity 0.15s ease;
}

.ef-feed__results--loading {
	opacity: 0.5;
	pointer-events: none;
}

.ef-feed__empty {
	color: var(--ef-muted);
	font-size: 15px;
	padding: 40px 0;
	text-align: center;
}

/* Cards */

.ef-card {
	background: #fff;
	border: 1px solid var(--ef-border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ef-card__media {
	position: relative;
	/*aspect-ratio: 16 / 10;*/
	background: #eef0f2;
	overflow: hidden;
}

.ef-card--featured .ef-card__media {
	aspect-ratio: 16 / 8;
}

.ef-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ef-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c3c8cf;
}

.ef-card__placeholder-icon {
	width: 48px;
	height: 48px;
}

.ef-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--ef-badge-bg);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	border-radius: 999px;
	backdrop-filter: blur(2px);
}

.ef-card__badge--featured {
	background: var(--ef-green);
}

.ef-card__body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ef-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ef-muted);
	margin-bottom: 10px;
}

.ef-card__title {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 10px;
}

.ef-card--featured .ef-card__title {
	font-size: 24px;
}

.ef-card__title a {
	color: var(--ef-ink);
	text-decoration: none;
}

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

.ef-card__excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ef-muted);
	margin: 0 0 18px;
	flex: 1;
}

.ef-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--ef-border);
}

.ef-card__author {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--ef-muted);
	text-transform: uppercase;
}

.ef-card__link {
	font-size: 13px;
	font-weight: 700;
	color: var(--ef-green);
	text-decoration: none;
	white-space: nowrap;
}

.ef-card__link:hover {
	text-decoration: underline;
}

/* Grid */

.ef-feed__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 24px;
}

@media (max-width: 720px) {
	.ef-feed__grid {
		grid-template-columns: 1fr;
	}

	.ef-feed__title {
		font-size: 26px;
	}
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ef-feed__filter-btn,
	.ef-feed__results {
		transition: none;
	}
}
