@charset "UTF-8";
/* =============================================================================
   "Your three years" route section — ported from the Figma Make export's
   .route-sec / .route / .stop / .threads / .route-panel / .rp-* / .course /
   .partner / .route-note / .route-m rules (src/index.css), following the
   porting rules in programme.css's header.

   Background and dark-ground type come from the shared .bib-sec--dark /
   .bib-dark primitives (same radial gradient as the export's .route-sec) —
   this sheet only adds what is unique to the route layout.

   Since 2026-09-22 (Domagoj) the route is one flat line through all six stops
   — semester 5 no longer rises onto a dashed curve and is coloured like the
   rest — and the "Running alongside your courses" threads are gone. Since
   2026-09-25: no year labels, Graduation is the seventh point, the line fills
   magenta up to the selected semester (reversing the 2026-09-15 "never
   changes" decision), and course lists run in two columns.
   Drawn by assets/js/programme-route.js; see that file's header.
   ========================================================================== */

.bib-route {
	position: relative;
}

.bib-route__body {
	position: relative;
	margin-block-start: var(--space-2);
}

/* ---------------------------------------------------------------------------
   Desktop map
   ------------------------------------------------------------------------ */

/* --route-y is where the line runs (the pins' centre). The pins and the stop
   labels under them are placed from it, so the gaps stay fixed. */
.bib-route__map {
	--route-y: 3.5rem;                  /* 56 */
	position: relative;
	height: 8.75rem;                    /* 140 */
}

.bib-route__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.bib-route__line {
	fill: none;
	stroke: color-mix(in srgb, var(--color-white) 35%, transparent);
	stroke-width: 2;
}

/* The fill: the same line in magenta, revealed up to the selected pin. */
.bib-route__line--done {
	stroke: var(--bib-magenta-on-dark);
	stroke-width: 3;
	transition: stroke-dashoffset 0.6s var(--bib-ease);
}

/* The map spans exactly the panel's width: the first pin's left edge and its
   label sit on the panel's left edge (the stops start half a pin in, the labels
   pull back by as much), and Graduation's pin ends on its right edge, its label
   right-aligned in a column of its own. */
.bib-route__stops {
	position: absolute;
	inset: 0 0 0 0.6875rem;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr)) 6.5rem;
}

.bib-stop {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
	color: var(--color-white);
	font-family: var(--font-display);
	cursor: pointer;
}

.bib-stop__pin {
	position: absolute;
	top: calc(var(--route-y) - 0.6875rem);
	inset-inline-start: -0.6875rem;     /* -11 */
	display: grid;
	place-items: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background-color: var(--color-navy-deep);
	border: 2px solid color-mix(in srgb, var(--color-white) 70%, transparent);
	transition: transform 0.3s var(--bib-ease), background-color 0.2s, border-color 0.2s;
}

.bib-stop__pin::after {
	content: "";
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 0.2s;
}

.bib-stop__text {
	position: absolute;
	inset-inline: -0.6875rem 0.875rem;
	top: calc(var(--route-y) + 1.25rem);
}

.bib-stop__text b {
	display: block;
	font-weight: var(--fw-regular);
	font-size: 1.0625rem;               /* 17 */
	line-height: 1.3;
	color: color-mix(in srgb, var(--color-white) 72%, transparent);
	transition: color 0.2s;
}

.bib-stop__text .bib-mono {
	display: block;
	margin-block-end: 0.25rem;
	color: var(--bib-on-dark-3);
}

.bib-stop:hover .bib-stop__pin {
	transform: scale(1.18);
	border-color: var(--color-white);
}

.bib-stop[aria-selected="true"] .bib-stop__pin {
	background-color: var(--bib-magenta-on-dark);
	border-color: var(--bib-magenta-on-dark);
	transform: scale(1.25);
}

.bib-stop[aria-selected="true"] .bib-stop__pin::after {
	background-color: var(--color-white);
}

.bib-stop[aria-selected="true"] .bib-stop__text b {
	color: var(--color-white);
}

/* The semesters before the selected one: done, filled like the line. */
.bib-stop.is-done .bib-stop__pin,
.bib-route__mobile button.is-done .bib-stop__pin {
	background-color: var(--bib-magenta-on-dark);
	border-color: var(--bib-magenta-on-dark);
}

/* Graduation: the line's end, not a tab. */
.bib-stop--grad {
	cursor: default;
}

.bib-stop--grad .bib-stop__pin {
	inset-inline: auto 0;
	border-color: var(--bib-magenta-on-dark);
}

.bib-stop--grad .bib-stop__pin::after {
	background-color: var(--bib-magenta-on-dark);
}

.bib-stop--grad .bib-stop__text {
	inset-inline: 0;
	text-align: end;
}

.bib-stop--grad .bib-stop__text b {
	color: var(--color-white);
}

/* Hovering Graduation fills the line to it (the script adds .is-previewing
   to the map); every pin before it reads as done. */
.bib-stop--grad:hover .bib-stop__pin {
	background-color: var(--bib-magenta-on-dark);
	transform: scale(1.25);
}

.bib-stop--grad:hover .bib-stop__pin::after {
	background-color: var(--color-white);
}

.is-previewing .bib-stop[data-bib-s] .bib-stop__pin {
	background-color: var(--bib-magenta-on-dark);
	border-color: var(--bib-magenta-on-dark);
}

/* ---------------------------------------------------------------------------
   Mobile stops (shown <=63.99em, replaces the map)
   ------------------------------------------------------------------------ */

.bib-route__mobile {
	position: relative;
	display: none;
	flex-direction: column;
	gap: 0;
	margin-inline-start: 0.625rem;
	border-inline-start: 2px solid color-mix(in srgb, var(--color-white) 25%, transparent);
}

/* The magenta fill down to the selected row (--route-fill, set by the script). */
.bib-route__mobile::before {
	content: "";
	position: absolute;
	inset-inline-start: -2px;
	inset-block-start: 0;
	width: 2px;
	height: var(--route-fill, 0);
	background-color: var(--bib-magenta-on-dark);
	transition: height 0.6s var(--bib-ease);
}

.bib-route__mobile-grad {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: center;
	padding: 0.875rem 0;
	margin-inline-start: -0.6875rem;
	color: var(--color-white);
}

/* Two classes deep to beat `.bib-route__mobile .bib-stop__pin` below. */
.bib-route__mobile .bib-route__mobile-grad .bib-stop__pin {
	display: grid;
	place-items: center;
	border-color: var(--bib-magenta-on-dark);
}

.bib-route__mobile-grad .bib-stop__pin::after {
	background-color: var(--bib-magenta-on-dark);
}

.bib-route__mobile button {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: center;
	width: 100%;
	padding: 0.875rem 0;
	margin-inline-start: -0.6875rem;
	border: 0;
	background: none;
	text-align: start;
	color: var(--color-white);
	font-family: var(--font-display);
	cursor: pointer;
}

.bib-route__mobile .bib-stop__pin {
	position: relative;
	z-index: 1;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--color-white) 70%, transparent);
	background-color: var(--color-navy-deep);
}

.bib-route__mobile button[aria-selected="true"] .bib-stop__pin {
	background-color: var(--bib-magenta-on-dark);
	border-color: var(--bib-magenta-on-dark);
}

.bib-route__mobile b,
.bib-route__mobile-grad b {
	display: block;
	font-weight: var(--fw-regular);
	font-size: 1.0625rem;
}

.bib-route__mobile .bib-mono,
.bib-route__mobile-grad .bib-mono {
	color: var(--bib-on-dark-3);
	font-size: 0.65625rem;
}

/* ---------------------------------------------------------------------------
   Panel
   ------------------------------------------------------------------------ */

.bib-route-panel {
	margin-block-start: 2.75rem;
	background-color: var(--color-white);
	color: var(--color-navy);
	border-radius: var(--bib-r-lg);
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
	min-height: 22.5rem;
	overflow: hidden;
}

/* All six semesters' pieces stack in the same two cells; the inactive ones are
   invisible but keep their size, so the panel is always as tall as its tallest
   semester and the prev / next buttons stay put (Domagoj, 2026-09-22).
   visibility also takes them out of the tab order and the accessibility tree. */
.bib-route-panel__intro {
	grid-area: 1 / 1;
}

.bib-route-panel__list {
	grid-area: 1 / 2;
}

.bib-route-panel .is-off {
	visibility: hidden;
}

.bib-route-panel__intro {
	padding: 2.5rem 2.5rem 2.25rem;
	border-inline-end: 1px solid var(--bib-line);
	display: flex;
	flex-direction: column;
}

.bib-route-panel__intro .bib-mono {
	color: var(--bib-magenta);
	margin-block-end: 0.875rem;
}

.bib-route-panel__intro h3 {
	font-size: 2rem;
	line-height: 1.15;
	margin-block-end: 0.875rem;
}

.bib-route-panel__intro > p {
	color: var(--bib-ink-2);
	font-size: 1rem;
}

.bib-route-panel__meta {
	margin-block-start: 1.125rem;
	color: var(--bib-ink-3);
}

.bib-route-panel__nav {
	margin-block-start: auto;
	padding-block-start: 1.75rem;
	display: flex;
	gap: 0.625rem;
	align-items: center;
}

.bib-route-panel__nav .bib-circ:disabled {
	opacity: 0.35;
	cursor: default;
	background-color: var(--color-navy);
}

.bib-route-panel__nav [data-bib-route-count] {
	margin-inline-start: 0.375rem;
	color: var(--bib-ink-3);
}

.bib-route-panel__list {
	padding: 1.75rem 2.5rem 1.875rem;
}

/* Two columns of courses (Domagoj, 2026-09-25): the head, the chips and the
   abroad photo span both. */
.bib-route-panel__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2rem;
	align-content: start;
}

.bib-route-panel__list > .bib-route-panel__list-head,
.bib-route-panel__list > .bib-route-panel__also,
.bib-route-panel__list > .bib-route-panel__abroad {
	grid-column: 1 / -1;
}

.bib-route-panel__list-head {
	display: flex;
	justify-content: space-between;
	padding-block-end: 0.75rem;
	margin-block-end: 0;
	border-block-end: 1px solid var(--bib-line-2);
	color: var(--bib-ink-3);
}

.bib-course {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.25rem;
	padding-block: 0.8125rem;
	border-block-end: 1px solid var(--bib-line);
	font-size: 1.03125rem;              /* 16.5 */
}

.bib-course .bib-mono {
	color: var(--bib-ink-3);
	font-size: 0.75rem;
	flex: none;
}

.bib-course--big {
	font-size: 1.1875rem;               /* 19 */
	padding-block: 1.125rem;
}

.bib-course--big .bib-mono {
	color: var(--bib-magenta);
}

.bib-route-panel__track-link {
	color: var(--color-navy);
}

.bib-route-panel__also {
	margin-block-start: 1.125rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.bib-route-panel__also > span:first-child {
	font-family: var(--font-body);
	font-size: 0.78125rem;
	color: var(--bib-ink-3);
	margin-inline-end: 0.25rem;
}

.bib-route-panel__abroad {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem;
	align-items: start;
}

/* The abroad semester: the photo as a band on top, the partners in two
   columns under it, so this panel is no taller than a course list. */
.bib-route-panel__abroad {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.bib-route-panel__abroad > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2rem;
}

.bib-route-panel__abroad .bib-route-panel__list-head {
	grid-column: 1 / -1;
}

.bib-route-panel__abroad picture,
.bib-route-panel__abroad img {
	display: block;
	width: 100%;
	border-radius: var(--bib-r-sm);
}

.bib-route-panel__abroad img {
	height: 9rem;
	object-fit: cover;
}

.bib-route-panel__partners {
	display: inline-block;
	margin-block-start: var(--space-4);
}

.bib-partner {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 0.625rem;
	border-block-end: 1px solid var(--bib-line);
	font-size: 0.9375rem;
}

.bib-partner .bib-mono {
	color: var(--bib-ink-3);
	font-size: 0.6875rem;
}

/* ---------------------------------------------------------------------------
   Footer note
   ------------------------------------------------------------------------ */

.bib-route__note {
	margin-block-start: 1.375rem;
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	align-items: center;
	flex-wrap: wrap;
}

/* ---------------------------------------------------------------------------
   Responsive — 1100 -> 79.99em, 900 -> 63.99em
   ------------------------------------------------------------------------ */

@media (max-width: 63.99em) {
	.bib-route__map {
		display: none;
	}

	.bib-route__mobile {
		display: flex;
	}

	.bib-route-panel {
		grid-template-columns: minmax(0, 1fr);
		margin-block-start: 1.5rem;
	}

	/* One column: the intros (with the buttons) still share a cell so the
	   buttons hold still; the lists below them simply swap, since reserving the
	   abroad semester's tall photo under every course list would leave a gap. */
	.bib-route-panel__list {
		grid-area: 2 / 1;
	}

	.bib-route-panel__list.is-off {
		display: none;
	}

	.bib-route-panel__intro {
		border-inline-end: 0;
		border-block-end: 1px solid var(--bib-line);
		padding: 1.75rem;
	}

	.bib-route-panel__list {
		padding: 1.25rem 1.75rem 1.75rem;
	}
}

@media (max-width: 47.99em) {
	.bib-route-panel__list,
	.bib-route-panel__abroad > div {
		grid-template-columns: minmax(0, 1fr);
	}

	.bib-route-panel__abroad img {
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* Phones (Domagoj, 2026-09-27): the six-row semester list is hidden. Tapping a
   row changed the panel below it, off-screen at 390; the panel's own
   prev/next and "1 / 6" step through the semesters in place.
   programme-route.js skips the list when it is display:none. */
@media (max-width: 47.99em) {
	.bib-route__mobile { display: none; }
}
