/* Discover landing pages (/ontdek/{slug}): hero only — the archive band is styled by Listings. */

.mf-discover {
	font-family: var(--mf-font);
	color: var(--mf-ink);
	line-height: 1.6;
}

.mf-discover *,
.mf-discover *::before,
.mf-discover *::after {
	box-sizing: border-box;
}

.mf-discover__inner {
	max-width: var(--mf-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* Host neutralisation: Discover is a virtual page on the theme's default template,
   which boxes .site-main at 1140px and prints a second H1. Equal specificity (0,2,1)
   to the theme cap — wins by load order; !important survives its media queries. */
body.mf-discover-page .site-main {
	max-width: none !important;
	width: 100%;
	margin: 0;
	padding: 0;
	/* Paint the host too, or the theme's white .site-main shows between our bands. */
	background: var(--mf-page-bg);
}

/* The theme's duplicate page title — the hero (.mf-discover__title) is the H1. */
body.mf-discover-page .page-header {
	display: none;
}

/* Hero band */

.mf-discover__hero {
	position: relative;
	background: var(--mf-hero-sky);
	padding: 48px 0 84px;
	overflow: hidden;
}

.mf-discover__hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.mf-discover__title {
	font-family: var(--mf-font);
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	max-width: 18ch;
	color: var(--mf-white);
}

.mf-discover__intro {
	font-size: clamp(16px, 2.2vw, 19px);
	color: var(--mf-sky-2);
	max-width: 54ch;
}

.mf-discover__intro p {
	margin: 0 0 12px;
}

.mf-discover__intro p:last-child {
	margin-bottom: 0;
}

.mf-discover__intro a {
	color: var(--mf-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mf-discover__hero-actions {
	margin-top: 22px;
}

.mf-discover__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--mf-radius-pill);
	background: var(--mf-white);
	color: var(--mf-dark-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--mf-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mf-discover__cta:hover {
	transform: translateY(-2px);
	box-shadow: var(--mf-shadow-hover);
	background: var(--mf-sky-1);
	color: var(--mf-dark-blue);
}

/* Soft stats panel */

.mf-discover__stats {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--mf-radius-lg);
	padding: 22px 22px 18px;
	backdrop-filter: blur(4px);
	box-shadow: 0 18px 40px rgba(2, 7, 13, 0.18);
}

.mf-discover__stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 14px;
}

.mf-discover-stat {
	background: var(--mf-card-bg);
	border-radius: var(--mf-radius);
	padding: 14px 12px;
	text-align: center;
	box-shadow: var(--mf-shadow);
}

.mf-discover-stat__value {
	display: block;
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 800;
	line-height: 1;
	color: var(--mf-dark-blue);
	margin-bottom: 6px;
}

.mf-discover-stat__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--mf-gray);
	letter-spacing: 0.01em;
}

.mf-discover__stats-note {
	margin: 14px 2px 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mf-sky-2);
	text-align: center;
}

.mf-discover__stats--empty {
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mf-discover__stats-decor {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.02));
}

/* Curved divider (identical geometry to the About hero). */
.mf-discover__divider {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	line-height: 0;
}

.mf-discover__divider svg {
	width: 100%;
	height: 48px;
	display: block;
}

.mf-discover__divider path {
	fill: var(--mf-page-bg);
}

/* Scroll anchor sits above the listing, offset for the fixed header. */
.mf-discover__anchor {
	display: block;
	position: relative;
	top: -90px;
	visibility: hidden;
}

/* Listing band */

/* No top padding: the divider and the archive already provide the gap. */
.mf-discover__listing {
	background: var(--mf-page-bg);
	padding: 0 0 64px;
}

/* The archive centres its own 90vw break-out — don't wrap it in .mf-discover__inner. */

/* Responsive */

@media (max-width: 860px) {
	.mf-discover__hero {
		padding: 36px 0 72px;
	}

	.mf-discover__hero-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mf-discover__title {
		max-width: 22ch;
	}

	.mf-discover__stats--empty {
		display: none;
	}
}

/* Phone: get to the first card fast. Cut parts are decorative or repeated below. */
@media (max-width: 600px) {
	.mf-discover__hero {
		padding: 28px 0 12px;
	}

	.mf-discover__hero-grid {
		gap: 0;
	}

	/* Counts are duplicated by the Events/Coaches tab badges below. */
	.mf-discover__stats {
		display: none;
	}

	/* The CTA only jumps to the listing, which is now directly below anyway. */
	.mf-discover__hero-actions {
		display: none;
	}

	/* Decorative only, and 48px of pure height right above the first card. */
	.mf-discover__divider {
		display: none;
	}

	.mf-discover__intro {
		font-size: 15px;
	}

	.mf-discover__listing {
		padding-top: 0;
	}

	.mf-taxarchive {
		padding-top: 0;
	}
}
