/**
 * MM0ZIF explore cards.
 * Scoped to .explore-grid so it cannot leak into other pages.
 */

/* The theme caps .page-body at 760px; four cards need more room. */
.mm0zif-explore-page .page-body {
	max-width: 1120px;
}

.explore-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin: 10px 0 34px;
}

.explore-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: var(--navy, #0b2b35);
	color: #e7f4f1;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-card--b {
	background: #0a3b45;
}

.explore-card--c {
	background: #123a4a;
}

.explore-card--d {
	background: #1a3f3b;
}

.explore-card:hover,
.explore-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -28px rgba(7, 27, 34, 0.85);
}

.explore-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #071b22;
}

.explore-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.explore-card:hover .explore-card-img,
.explore-card:focus-within .explore-card-img {
	transform: scale(1.04);
}

.explore-card-body {
	padding: 16px 20px 4px;
}

/*
 * The theme paints .article-body a with its teal, and its h2 sizing, both at a
 * specificity that beats a bare card selector. Scope these to the page so the
 * card text stays white on navy (9.8:1 rather than 2.7:1).
 */
.mm0zif-explore-page .explore-card-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: 0;
	color: #fff;
}

.mm0zif-explore-page .explore-grid .explore-card-title a {
	color: #fff;
	text-decoration: none;
}

/* Stretched link: the whole card is clickable, but only one link exists. */
.explore-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.explore-card-title a:focus-visible {
	outline: 2px solid #2dd4bf;
	outline-offset: 4px;
	border-radius: 4px;
}

.mm0zif-explore-page .explore-card-text {
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #b9d8d3;
}

.explore-card-actions {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin: 14px 0 0;
	padding: 0 20px 18px;
}

.mm0zif-explore-page .explore-grid .explore-card-actions .explore-card-alt {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9fe3d8;
	text-decoration-color: rgba(159, 227, 216, 0.4);
	text-underline-offset: 3px;
}

.mm0zif-explore-page .explore-grid .explore-card-actions .explore-card-alt:hover {
	color: #fff;
}

@media (min-width: 600px) {
	.explore-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.explore-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.explore-card-body {
		padding: 18px 20px 4px;
	}

	.mm0zif-explore-page .explore-card-title {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.explore-card,
	.explore-card-img {
		transition: none !important;
	}

	.explore-card:hover,
	.explore-card:focus-within {
		transform: none;
	}
}
