/* Newsletter issues rendered by [ea_newsletter] (inc/ea-newsletter.php). */

.ea-newsletter {
	--ea-ink: #242423;
	--ea-muted: #55605c;
	--ea-accent: #466c76;
	--ea-card: rgba(255, 255, 255, 0.62);
	--ea-card-hover: rgba(255, 255, 255, 0.85);
	--ea-line: rgba(36, 36, 35, 0.1);

	color: var(--ea-ink);
}

.ea-newsletter p {
	margin: 0;
}

.ea-newsletter__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ea-newsletter__issue {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ea-line);
	border-radius: 12px;
	background: var(--ea-card);
	transition: background-color 0.2s ease;
}

.ea-newsletter__issue:hover {
	background: var(--ea-card-hover);
}

.ea-newsletter__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: rgba(36, 36, 35, 0.06);
}

.ea-newsletter__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px 16px;
}

.ea-newsletter__date {
	color: var(--ea-muted);
	font-size: 0.85em;
}

.ea-newsletter__title {
	color: var(--ea-ink);
	font-weight: 600;
	line-height: 1.3;
}

.ea-newsletter__desc {
	font-size: 0.95em;
}

.ea-newsletter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 16px !important;
}

.ea-newsletter__subscribe {
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--ea-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ea-newsletter__subscribe:hover,
.ea-newsletter__subscribe:focus-visible {
	background: #3d5d65;
	color: #fff;
}

/* Phones: small thumbnail beside the text instead of a full-width image. */
@media (max-width: 480px) {
	.ea-newsletter__issue {
		flex-direction: row;
		align-items: flex-start;
	}

	.ea-newsletter__img {
		flex: none;
		width: 88px;
		height: 88px;
		margin: 12px 0 12px 12px;
		border-radius: 8px;
		aspect-ratio: auto;
	}

	.ea-newsletter__body {
		padding: 12px 14px;
		min-width: 0;
	}
}
