/* =============================================================
 * EA Instrument Finder — Frontend Styles
 * Version: 2.3.2
 * ============================================================= */

.ea-finder { width: 100%; margin: 32px 0 }
.ea-finder * { box-sizing: border-box }

/* No-JS fallback */
.ea-finder__noscript {
	background: #222;
	color: rgba(255,255,255,.78);
	padding: 20px 24px;
	border-radius: 12px;
	text-align: center;
	font-size: 15px;
}

/* Shell */
.ea-finder__shell {
	background: var(--ea-finder-bg, #111);
	color: #fff;
	font-family: inherit;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 20px;
	padding: 28px;
	max-width: 900px;
	margin: 0 auto;
}

/* Typography */
.ea-finder__eyebrow {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .72;
	margin-bottom: 10px;
}
.ea-finder__title,
.ea-finder__results-title,
.ea-finder__question-title {
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.15;
}
.ea-finder__title { font-size: 36px }
.ea-finder__results-title,
.ea-finder__question-title { font-size: 28px }
.ea-finder__text,
.ea-finder__card-text,
.ea-finder__tagline {
	color: rgba(255,255,255,.78);
	line-height: 1.6;
}
.ea-finder__text { max-width: 560px; margin: 0 0 20px }

/* Shared interactive resets */
.ea-finder__primary,
.ea-finder__secondary,
.ea-finder__card-button,
.ea-finder__option {
	appearance: none;
	border: 0;
	cursor: pointer;
	transition: .2s ease;
}

/* Primary / card CTA */
.ea-finder__primary,
.ea-finder__card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-weight: 700;
	text-decoration: none;
}
.ea-finder__primary:hover,
.ea-finder__card-button:hover {
	transform: translateY(-1px);
	opacity: .92;
}

/* Secondary */
.ea-finder__secondary {
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,.16);
}
.ea-finder__secondary:hover { border-color: rgba(255,255,255,.32) }

/* Focus-visible */
.ea-finder__primary:focus-visible,
.ea-finder__secondary:focus-visible,
.ea-finder__card-button:focus-visible,
.ea-finder__option:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Progress bar */
.ea-finder__progress-wrap { margin-bottom: 22px }
.ea-finder__progress-label {
	font-size: 14px;
	color: rgba(255,255,255,.72);
	margin-bottom: 10px;
}
.ea-finder__progress {
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	overflow: hidden;
}
.ea-finder__progress span {
	display: block;
	width: 0;
	height: 100%;
	background: #fff;
	transition: width .3s ease;
}

/* Options (radio-group) */
.ea-finder__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}
.ea-finder__option {
	width: 100%;
	text-align: left;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255,255,255,.05);
	color: #fff;
	border: 1px solid rgba(255,255,255,.08);
	font-size: 15px;
}
.ea-finder__option:hover,
.ea-finder__option[aria-checked="true"] {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.24);
}
.ea-finder__nav { margin-top: 18px }

/* Result cards */
.ea-finder__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-top: 18px;
}
.ea-finder__card {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 18px;
	padding: 18px;
}
.ea-finder__pill {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.09);
	color: rgba(255,255,255,.84);
	margin-bottom: 14px;
}
.ea-finder__card-title {
	font-size: 22px;
	line-height: 1.15;
	margin: 0 0 10px;
	color: #fff;
}
.ea-finder__tagline { font-size: 14px; margin: 0 0 12px }
.ea-finder__card-text { font-size: 14px; margin: 0 0 18px }
.ea-finder__footer { margin-top: 18px }

/* Debug panel (admin-only) */
.ea-finder__debug {
	margin-top: 24px;
	padding: 16px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 12px;
	font-size: 12px;
}
.ea-finder__debug summary {
	cursor: pointer;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	padding: 4px 0;
}
.ea-finder__debug table { width: 100%; border-collapse: collapse; margin-top: 8px }
.ea-finder__debug td { padding: 3px 8px; border-bottom: 1px solid rgba(255,255,255,.06) }
.ea-finder__debug .ea-debug-pos { color: rgba(100,220,100,.9) }
.ea-finder__debug .ea-debug-neg { color: rgba(220,100,100,.7) }
.ea-finder__debug .ea-debug-top { font-weight: 700; color: #fff }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ea-finder__primary,
	.ea-finder__secondary,
	.ea-finder__card-button,
	.ea-finder__option,
	.ea-finder__progress span { transition: none }
}

/* Mobile */
@media (max-width: 640px) {
	.ea-finder__shell { padding: 22px 18px; border-radius: 16px }
	.ea-finder__title,
	.ea-finder__results-title,
	.ea-finder__question-title { font-size: 24px }
	.ea-finder__options { grid-template-columns: 1fr }
}
