/* ==========================================================================
   Studio Variant — Material Finder page layer (.mf-*)

   The tool itself is the shared guidance finder (finder.css / finder.js).
   This layer only gives it a front door: a hero that says what the tool is
   for, a switch between the two material systems, and the hand-off to
   Start a Project. Built on sv.css tokens and the shared page chrome.
   ========================================================================== */

.mf-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(var(--sv-8), 7vw, var(--sv-10)) 0 clamp(var(--sv-7), 5vw, var(--sv-8));
	background: radial-gradient(110% 80% at 14% 10%, rgba(140, 155, 163, 0.08) 0%, transparent 60%),
		radial-gradient(90% 70% at 92% 86%, rgba(195, 160, 106, 0.05) 0%, transparent 62%),
		var(--sv-bg);
}
.mf-hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	gap: clamp(var(--sv-7), 5vw, var(--sv-9));
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: end;
}
.mf-intro {
	display: flex;
	flex-direction: column;
	gap: var(--sv-5);
	max-width: 52ch;
}
.mf-hero h1 {
	margin: 0;
	font-family: var(--sv-font-display);
	font-size: var(--sv-display-l);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--sv-text);
}
.mf-hero h1 span {
	display: block;
}
.mf-lede {
	margin: 0;
	color: var(--sv-text-secondary);
}

/* The pair of tools, stated once: this one, then that one */
.mf-pair {
	display: grid;
	gap: var(--sv-3);
	padding: var(--sv-5);
	border: 1px solid var(--sv-border);
	border-radius: var(--sv-radius-md);
	background-color: var(--sv-surface);
	background-image: var(--sv-texture-carbon);
}
.mf-pair ol {
	display: grid;
	gap: var(--sv-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.mf-pair li {
	display: flex;
	align-items: baseline;
	gap: var(--sv-3);
	font-family: var(--sv-font-mono);
	font-size: var(--sv-micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sv-text-secondary);
}
.mf-pair li i {
	font-style: normal;
	color: var(--sv-titanium-deep);
	flex: none;
	width: 2.4em;
}
.mf-pair li.is-here {
	color: var(--sv-text);
}
.mf-pair li.is-here i {
	color: var(--sv-titanium);
}
.mf-pair p {
	margin: 0;
	color: var(--sv-text-faint);
}
.mf-pair p a {
	color: var(--sv-text-secondary);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.mf-pair p a:hover {
	color: var(--sv-text);
}

/* -------------------------- Process switch ------------------------------ */

.mf-switch-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sv-4);
}
.mf-switch {
	display: inline-flex;
	border: 1px solid var(--sv-border-strong);
	border-radius: var(--sv-radius-sm);
	overflow: hidden;
}
.mf-switch button {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 12px var(--sv-5);
	font-family: var(--sv-font-mono);
	font-size: var(--sv-micro);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sv-text-secondary);
	cursor: pointer;
	transition: background-color var(--sv-base), color var(--sv-base);
}
.mf-switch button + button {
	border-left: 1px solid var(--sv-border-strong);
}
.mf-switch button:hover {
	color: var(--sv-text);
	background: rgba(255, 255, 255, 0.04);
}
.mf-switch button[aria-selected="true"] {
	color: var(--sv-text);
	background: var(--sv-titanium-wash);
}
.mf-switch button:focus-visible {
	outline: none;
	box-shadow: var(--sv-focus);
}
.mf-switch-note {
	margin: 0;
	color: var(--sv-text-faint);
}

.mf-panel[hidden] {
	display: none;
}
.mf-panels {
	margin-top: var(--sv-6);
}

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 960px) {
	.mf-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}
@media (max-width: 560px) {
	.mf-switch {
		width: 100%;
	}
	.mf-switch button {
		flex: 1 1 0;
		padding-left: var(--sv-3);
		padding-right: var(--sv-3);
	}
}

.mf-switch-note a {
	color: var(--sv-text-secondary);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
