/* Independent homepage news/events sections; no hero or About selectors. */
.home-editorial {
	padding-block: 0 64px;
	background: var(--eiro-color-surface);
}

.home-editorial + .home-editorial > .site-container::before {
	display: block;
	height: 1px;
	margin-bottom: 48px;
	background: var(--eiro-color-border);
	content: "";
}

.home-editorial__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.home-editorial__heading h2 {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.home-editorial__archive-link {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

.home-editorial__archive-link span {
	margin-left: 5px;
}

.home-editorial .home-news-grid,
.home-editorial .member-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: none;
	gap: 48px 32px;
	padding: 0;
}

.home-editorial .home-editorial-card {
	min-width: 0;
	margin: 0;
	border: 0;
	background: #fff;
	font-size: 16px;
	line-height: 1.55;
}

.home-editorial .home-editorial-card__image {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0 0 14px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f5f6;
}

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

.home-editorial .member-news-card__image--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f5f6;
}

.home-editorial .member-news-card__image--logo img {
	width: auto;
	height: auto;
	max-width: min(70%, 180px);
	max-height: 100px;
	padding: 0;
	margin: 0;
	object-fit: contain;
}

.home-editorial .home-editorial-card h3,
.home-editorial-event h3 {
	margin: 0 0 10px;
	font: 700 18px/1.4 var(--eiro-font-body);
}

.home-editorial-card h3 a,
.home-editorial-event h3 a {
	color: var(--eiro-color-primary);
	text-decoration: none;
}

.home-editorial .home-editorial-card__date {
	margin: 0 0 8px;
	color: #65717a;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.home-editorial .home-editorial-card__excerpt {
	margin: 0;
}

/* One native article link covers each news card's full area. */
.home-editorial .home-editorial-card {
	position: relative;
}

.home-editorial-card h3 a::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
}

.home-editorial-card h3 a:focus-visible::after {
	outline: 2px solid var(--eiro-color-focus);
	outline-offset: 4px;
}

.home-editorial .home-editorial-card:hover h3 a {
	color: var(--eiro-color-primary-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.home-editorial-card__source {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 36px;
	margin-top: 16px;
}

.home-editorial .member-news-card > .home-editorial-card__date {
	display: block;
}

.member-news-logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	max-width: 72px;
	height: 30px;
}

.member-news-logo img {
	display: block;
	width: auto;
	max-width: 72px;
	height: auto;
	max-height: 30px;
	object-fit: contain;
}

.member-news-source {
	color: #515e68;
	font-size: 14px;
}

.home-editorial-events {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 32px;
}

.home-editorial-event {
	min-width: 0;
}

.home-editorial-event > p:last-child {
	margin-bottom: 0;
}

.home-editorial a:hover,
.home-editorial a:focus-visible {
	color: var(--eiro-color-primary-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

@media (max-width: 1000px) {
	.home-editorial .home-news-grid,
	.home-editorial .member-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.home-editorial {
		padding-bottom: 40px;
	}

	.home-editorial + .home-editorial > .site-container::before {
		margin-bottom: 32px;
	}

	.home-editorial__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		margin-bottom: 20px;
	}

	.home-editorial__heading h2 {
		font-size: 25px;
	}

	.home-editorial .home-news-grid,
	.home-editorial .member-news-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
.member-news-slot { display: contents; }
