@charset "UTF-8";
/* =============================================================================
   Student journey. [figma] node 747:4515 — five 360x360 cards on a 410px pitch
   inside a 1240px frame, so the row runs past the edge and scrolls. Prev/next
   discs sit top-right beside the section heading.

   Card internals [figma] node 747:4516: 160px image band with a diagonal navy
   wash and a large translucent step numeral, then counter, title, body, a
   270px hairline, and a meta line.

   Built as a scroll-snap rail rather than a transform carousel: it is natively
   swipeable, keyboard- and screen-reader-navigable, and degrades to a plain
   horizontal scroller with no JS at all.
   ========================================================================== */

.journey__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-8);
	margin-block-end: var(--space-10);
}

.journey__controls {
	display: none;
	flex: none;
	gap: var(--space-3);
}

@media (min-width: 64em) {
	.journey__controls { display: flex; }
}

/* [figma] 60px discs. */
.journey__control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.75rem;
	height: 3.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background-color: var(--color-white);
	color: var(--color-navy);
	transition:
		background-color var(--duration) var(--ease),
		color var(--duration) var(--ease),
		opacity var(--duration) var(--ease);
}

.journey__control:hover:not(:disabled) {
	background-color: var(--color-navy);
	color: var(--color-white);
}

.journey__control:disabled {
	opacity: 0.35;
	cursor: default;
}

/* --- Rail ------------------------------------------------------------------ */

.journey__rail {
	display: flex;
	gap: 3.125rem;                           /* 50 [figma] */
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;

	/* The rail spans the full viewport so cards can scroll past the container
	   gutter, then pads itself back in so the first card lines up with the
	   heading above it. */
	margin-block: 0;
	margin-inline: calc(var(--gutter) * -1);
	padding-block: 0 var(--space-4);
	padding-inline: var(--gutter);

	/* Mandatory snapping aligns the first card to the SCROLLPORT edge, which
	   ignores padding — without this the rail scrolls the gutter away on load
	   and card one sits flush to the viewport instead of under the heading. */
	scroll-padding-inline: var(--gutter);
}

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

.journey__item {
	flex: none;
	width: min(22.5rem, 80vw);               /* 360 [figma] */
	scroll-snap-align: start;
}

/* --- Card ------------------------------------------------------------------ */

.journey-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--radius-lg);         /* 18 [figma] */
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.journey-card__media {
	position: relative;
	height: 10rem;                           /* 160 [figma] */
	flex: none;
	overflow: hidden;
}

/* The <picture> wrapper must fill the band too, or the image keeps its own
   180px height and its unwashed bottom strip spills over the card text. */
.journey-card__media picture,
.journey-card__media img {
	display: block;
}

.journey-card__media picture,
.journey-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* [figma] linear-gradient(-66deg, rgb(0,79,122) 0%, rgba(5,49,80,0) 100%) —
   solid blue in the bottom-left corner, fading to transparent top-right. */
.journey-card__wash {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(-66deg, var(--color-navy-glow) 0%, rgb(5 49 80 / 0) 100%);
}

/* [figma] 80px numeral at 50% white, bottom-right of the image band, flush
   with the media band's bottom and the card's right edge. Drawn in
   Gulzar — a Nastaliq face for Urdu/Persian, almost certainly an accident —
   and mapped to Lora with the rest. */
.journey-card__step {
	position: absolute;
	right: 0;
	bottom: 0;
	font-family: var(--font-display);
	font-size: 5rem;
	/* Under 1 so the digits themselves sit on the media's bottom edge: a line
	   box of 1 leaves the font's descender space below them (Domagoj,
	   2026-09-24). */
	line-height: 0.78;
	color: var(--color-on-dark-faint);
}

.journey-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 2rem 2.1875rem 1.75rem;         /* more air under the image and the meta line (Domagoj, 2026-09-17) */
}

/* [figma] Lora Regular 18 in #4a4949. */
.journey-card__title {
	margin-block-start: var(--space-3);
	font-family: var(--font-display);
	font-size: var(--fs-editorial-sm);
	line-height: var(--lh-tight);
	color: var(--color-ink-700);
}

/* [figma] Lora Regular 14/20 in #4a4949 (Domagoj, 2026-09-24 — was set to
   12px, corrected to the drawn 14px). */
.journey-card__text {
	margin-block-start: var(--space-4);
	font-family: var(--font-display);
	font-size: var(--fs-ui-sm);              /* 0.875rem / 14 */
	line-height: 1.667;                      /* 20 / 14 [figma] */
	color: var(--color-ink-700);
	margin-block-end: var(--space-6);        /* keeps the text off the meta hairline */
}

/* [figma] 270px hairline above the meta line. */
.journey-card__meta {
	margin-block-start: auto;
	padding-block-start: var(--space-4);
	border-block-start: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: var(--fs-ui-3xs);
	line-height: var(--lh-flat);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-ink-300);
}

/* The journey heading sits in a flex row beside its controls, so it drops the
   section-head's bottom margin. The prototype did this with an inline style;
   PHP templates may not carry one (hard rule 4). */
.section-head--flush {
	margin-block-end: 0;
}
