@charset "UTF-8";
/* =============================================================================
   Programme finder. [figma] node 747:4514 / 335:1027.

   1250x700 panel, radius 24, diagonal navy gradient. Four 265x160 option cards
   at y=244 on a 285px pitch (20px gap), then a 1120x160 blurred recommendation
   panel at y=434, then a footnote.

   Colours here are one-offs that appear nowhere else in the design, so they are
   declared as component-scoped custom properties rather than pushed into the
   global token set.
   ========================================================================== */

.finder {
	--finder-surface-start: #004066;          /* [figma] gradient 119.25deg */
	--finder-surface-end: #002138;
	--finder-option-bg: rgb(0 59 88 / 0.5);   /* [figma] unselected card */
	--finder-panel-bg: rgb(0 58 85 / 0.5);    /* [figma] recommendation panel */
	--finder-border: rgb(144 141 141 / 0.3);  /* [figma] 2px, all cards */
	--finder-accent: #ff6096;                 /* [figma] recommendation eyebrow */
	--finder-footnote: #cdcdcd;               /* [figma] footnote */

	border-radius: 1.5rem;                    /* 24 [figma] */
	background-image: linear-gradient(119.25deg, var(--finder-surface-start) 0%, var(--finder-surface-end) 100%);
	color: var(--color-on-dark);
	overflow: hidden;
}

.finder__inner {
	padding: var(--space-10) var(--gutter) var(--space-12);
}

@media (min-width: 64em) {
	.finder__inner {
		/* [figma] content starts at x=65 inside the panel; 61 above the heading,
		   60 below the footnote. */
		padding: 3.8125rem 4.0625rem 3.75rem;
	}
}

.finder__title {
	color: var(--color-on-dark);
	margin: 0;
}

/* [figma] Lora Regular 20/36, sits 11px under the heading. */
.finder__intro {
	margin-block-start: 0.6875rem;
	font-family: var(--font-display);
	font-size: var(--fs-copy-20);
	line-height: var(--lh-editorial);
	color: var(--color-on-dark);
}

/* --- Options ---------------------------------------------------------------
   [figma] four 265x160 cards, 20px gap, 66px below the intro. */

.finder__options {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
	margin-block-start: var(--space-8);
	padding: 0;
	list-style: none;
}

/* Each card fills its grid row, so a stage whose title wraps to two lines
   doesn't leave the others shorter (Domagoj, 2026-11-05). */
.finder__options > li {
	display: flex;
}

@media (min-width: 48em) {
	.finder__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
	.finder__options {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;                         /* 20 [figma] */
		margin-block-start: 4.125rem;         /* 66 [figma] */
	}
}

/* Phones: the stages become a swipeable rail, and the recommendation sits
   right under it (Domagoj, 2026-09-25). Stacked, the four stages filled the
   screen and the answer landed below the fold, so tapping one appeared to do
   nothing unless it was the last. Now the stage that snaps into place IS the
   choice — programme-finder.js selects it when the swipe settles, and a tap
   selects and slides it in — so the answer changes in view as you swipe.
   Every card is the same size and choosing one changes only its colour, so
   selecting can never move the snap points (hard rule 19). */
@media (max-width: 47.99em) {
	.finder__options {
		display: flex;
		gap: var(--space-3);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}

	.finder__options::-webkit-scrollbar { display: none; }

	/* The chosen stage settles in the middle with a peek either side
	   (Domagoj, 2026-09-28). The first can't centre — the rail can't scroll
	   before 0 — so it rests at the start. This spacer gives the last one the
	   room to reach the middle too: with the content box C, a card is 0.78C and
	   centring the last needs 0.11C past it on top of the end padding. */
	.finder__options::after {
		content: '';
		flex: none;
		width: calc(11% - var(--space-3));
	}

	.finder__options > li {
		display: flex;
		flex: none;
		width: 78%;
		scroll-snap-align: center;
	}

	.finder__option {
		min-height: 0;
		padding: var(--space-5);
	}

	.finder__option:hover { transform: none; }

	.finder__result {
		margin-block-start: var(--space-4);
		padding: var(--space-5);
		gap: var(--space-5);
	}

	.finder__panel .finder__result + .finder__result {
		margin-block-start: 0;
	}

	.finder__result-cta {
		min-width: 0;
		width: 100%;
	}
}

.finder__option {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 10rem;                        /* 160 [figma] */
	padding: 1.625rem;                        /* 26 [figma] */
	border: 2px solid var(--finder-border);   /* [figma] */
	border-radius: var(--radius-lg);          /* 18 [figma] */
	background-color: var(--finder-option-bg);
	color: var(--color-on-dark);
	text-align: start;
	cursor: pointer;
	transition:
		background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		transform var(--duration) var(--ease);
}

.finder__option:hover {
	border-color: var(--color-on-dark-border);
	transform: translateY(-2px);
}

/* [figma] the chosen card is a solid crimson fill. */
.finder__option[aria-checked='true'] {
	background-color: var(--color-crimson);
	border-color: var(--color-crimson);
}

/* [figma] AR One Sans 14/20 -> Geist. */
.finder__option-number {
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
}

/* [figma] Lora Regular 18, 28px below the number. */
.finder__option-title {
	margin-block-start: 0.75rem;
	font-family: var(--font-display);
	font-size: var(--fs-editorial-sm);
	line-height: var(--lh-tight);
}

/* [figma] AR One Sans 14/20 -> Geist, 27px below the title. */
.finder__option-text {
	margin-block-start: 1rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
}

/* --- Recommendation --------------------------------------------------------
   [figma] 1120x160 at y=434 — 30px under the options. Translucent over the
   panel gradient with a 10px background blur. */

/* A stage can recommend more than one programme (Domagoj, 2026-09-24): its
   panel stacks them, the first with the stage's own blurb, the rest with the
   programme's pitch. Only the chosen stage's panel is in the DOM flow. */
.finder__panel {
	display: grid;
	gap: var(--space-4);
}

.finder__panel[hidden] { display: none; }

.finder__panel .finder__result + .finder__result {
	margin-block-start: 0;
}

.finder__result {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	margin-block-start: var(--space-6);
	padding: var(--space-6);
	border: 2px solid var(--finder-border);
	border-radius: var(--radius-lg);
	background-color: var(--finder-panel-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

@media (min-width: 64em) {
	.finder__result {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-10);
		min-height: 10rem;                    /* 160 [figma] */
		margin-block-start: 1.875rem;         /* 30 [figma] */
		padding-inline: 1.6875rem;            /* content at x=92 in a panel from 65 */
	}
}

.finder__result-body { min-width: 0; }

/* [figma] AR One Sans 12/20 in #ff6096 -> Geist. */
.finder__result-eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	line-height: var(--lh-card);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--finder-accent);
}

/* [figma] Lora Regular 22/22. */
.finder__result-title {
	margin-block-start: var(--space-3);
	font-family: var(--font-display);
	font-size: var(--fs-editorial-md);
	line-height: var(--lh-flat);
	color: var(--color-on-dark);
}

/* [figma] AR One Sans 14/20 -> Geist, max 566px. */
.finder__result-text {
	margin-block-start: var(--space-4);
	max-width: 35.375rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
	color: var(--color-on-dark);
}

/* [figma] 200x40 crimson pill. */
.finder__result-cta {
	flex: none;
	min-width: 12.5rem;
}

/* [figma] AR One Sans 14/20 in #cdcdcd -> Geist, 16px under the panel. */
.finder__footnote {
	margin-block-start: var(--space-4);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: var(--lh-card);
	color: var(--finder-footnote);
}

.finder__footnote a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.finder__footnote a:hover {
	color: var(--color-on-dark);
}

/* Without JS every option is still readable and the default recommendation is
   the one the design ships. */
.finder__option:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
}
