@charset "UTF-8";
/* =============================================================================
   Tuition & financing — the calculator, the three funding cards and the
   scholarship-fit table.

   Ported from the Figma Make export (figma_make/LSB - BIB (domi)/src/index.css,
   .calc / .opts / .opt / .range / .big-fee / .fee-rows / .save / .fund / .sch*),
   onto the shared primitives in programme.css (.bib-sec, .bib-split-head,
   .bib-eyebrow, .bib-h2/.bib-h3, .bib-lead, .bib-mono, .bib-fine, .bib-btn).
   Section sits on the page's default paper ground — no .bib-sec modifier.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   The calculator: inputs on the left, the live estimate on the right.
   ------------------------------------------------------------------------ */

.bib-calc {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	overflow: hidden;
	border: 1px solid var(--bib-line);
	border-radius: var(--bib-r-lg);
	background-color: var(--color-white);
}

.bib-calc__in {
	padding: 2.5rem;
}

.bib-calc__field {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.bib-calc__field--flush {
	margin-block-end: 0;
}

.bib-calc__in legend {
	margin-block-end: var(--space-3);
	font-family: var(--font-body);
	font-size: 0.84375rem;              /* 13.5 */
	font-weight: var(--fw-medium);
	color: var(--color-navy);
}

.bib-calc__legend-note {
	font-weight: var(--fw-regular);
	color: var(--bib-ink-3);
}

.bib-calc__sch-note {
	margin-block-start: var(--space-2);
}

/* ---------- option chips (citizenship / tier / pay) ---------- */

/* Every option box on the site is the same size (Domagoj, 2026-10-01): equal
   columns that keep their width whether a row has two choices or three
   (auto-fill leaves the unused tracks empty), one row height for all, and a
   floor tall enough for a label with a sub-line, so a group without
   sub-lines matches one with them. */
.bib-opts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--opt-w, 10rem), 1fr));
	grid-auto-rows: 1fr;
	gap: var(--space-3);
}

/* The label is centred vertically in its box (2026-09-29). */
.bib-opt {
	position: relative;
	display: flex;
}

.bib-opt input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.bib-opt span {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	min-height: var(--opt-h, 4.25rem);
	padding: 0.6875rem 1rem;
	border: 1px solid var(--bib-line-2);
	border-radius: var(--bib-r-sm);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.bib-opt span small {
	margin-block-start: 0.125rem;
	font-size: var(--fs-ui-xs);
	font-weight: var(--fw-regular);
	color: var(--bib-ink-3);
}

.bib-opt input:checked + span {
	border-color: var(--color-navy);
	background-color: var(--color-navy);
	color: var(--color-white);
}

.bib-opt input:checked + span small {
	color: color-mix(in srgb, var(--color-white) 70%, transparent);
}

.bib-opt input:focus-visible + span {
	outline: 2px solid var(--bib-magenta);
	outline-offset: 2px;
}

.bib-opt input:disabled + span {
	cursor: not-allowed;
	text-decoration: line-through;
	opacity: 0.4;
}

/* ---------- scholarship range ---------- */

.bib-range {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.bib-range input {
	flex: 1;
	height: 0.25rem;
	accent-color: var(--bib-magenta);
}

.bib-range output {
	min-width: 3rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	text-align: right;
}

/* ---------- the live estimate panel ---------- */

.bib-calc__out {
	display: flex;
	flex-direction: column;
	padding: 2.5rem;
	background: var(--bib-glow);
	color: var(--color-white);
}

.bib-calc__out .bib-mono {
	color: var(--bib-on-dark-3);
}

.bib-big-fee {
	margin: 0.875rem 0 0.375rem;
	font-family: var(--font-display);
	font-size: 4rem;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.bib-big-fee small {
	font-size: var(--fs-ui-lg);
	letter-spacing: normal;
	color: var(--bib-on-dark);
}

.bib-fee-rows {
	margin-block-start: 1.625rem;
	border-block-start: 1px solid var(--bib-line-dark);
}

.bib-fee-rows div {
	display: flex;
	justify-content: space-between;
	padding-block: var(--space-3);
	border-block-end: 1px solid var(--bib-line-dark);
	font-family: var(--font-body);
	font-size: 0.90625rem;              /* 14.5 */
	color: var(--bib-on-dark);
}

.bib-fee-rows div b {
	font-weight: var(--fw-medium);
	color: var(--color-white);
	font-variant-numeric: tabular-nums;
}

.bib-save {
	margin-block-start: var(--space-5);
	padding: 0.875rem 1rem;
	border-radius: var(--bib-r-sm);
	background-color: color-mix(in srgb, var(--color-crimson-on-dark) 14%, transparent);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: 1.5;
	color: var(--color-white);
}

.bib-calc__actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-block-start: auto;
	padding-block-start: 1.75rem;
}

.bib-calc__actions .bib-fine {
	color: var(--bib-on-dark-3);
}

/* ---------------------------------------------------------------------------
   Funding routes (three articles) and the scholarship-fit table.
   ------------------------------------------------------------------------ */

.bib-fund {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-6);
	margin-block-start: 3.5rem;
}

.bib-fund article {
	padding-block-start: 1.25rem;
	border-block-start: 2px solid var(--color-navy);
}

.bib-fund h3 {
	margin-block-end: var(--space-2);
	font-size: 1.3125rem;               /* 21 */
}

.bib-fund p {
	font-size: var(--fs-copy-17);
	color: var(--bib-ink-2);
}

.bib-sch {
	margin-block-start: 3.5rem;
}

.bib-sch__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-6);
	margin-block-end: var(--space-3);
}

.bib-sch__note {
	color: var(--bib-ink-3);
}

.bib-sch__row {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: var(--space-6);
	align-items: baseline;
	padding-block: var(--space-4);
	border-block-end: 1px solid var(--bib-line);
}

.bib-sch__row:first-child {
	border-block-start: 1px solid var(--bib-line-2);
}

.bib-sch__row b {
	font-weight: var(--fw-regular);
	font-size: var(--fs-ui-lg);
}

.bib-sch__row span {
	font-size: var(--fs-ui-md);
	color: var(--bib-ink-2);
}

.bib-sch__fine {
	margin-block-start: var(--space-4);
}

/* BIB: a row that opens on live's full text for the scholarship (Domagoj,
   2026-11-09). The summary keeps the plain row's two columns and adds the
   entry-requirements "+" disc (.bib-req__pm, programme-admissions.css); the
   open/close animation is the same handler (programme-check.js). */
.bib-sch__row--more {
	display: block;
	padding-block: 0;
}

.bib-sch__row--more summary {
	display: grid;
	grid-template-columns: 1fr 1.6fr auto;
	gap: var(--space-6);
	align-items: baseline;
	padding-block: var(--space-4);
	list-style: none;
	cursor: pointer;
}

.bib-sch__row--more summary::-webkit-details-marker { display: none; }

.bib-sch__row--more .bib-req__pm { align-self: center; }

.bib-sch__row--more[open]:not(.is-closing) .bib-req__pm {
	transform: rotate(45deg);
	background-color: var(--color-navy);
	color: var(--color-white);
	border-color: var(--color-navy);
}

.bib-sch__ans {
	max-width: 46rem;
	font-size: var(--fs-ui-md);
	color: var(--bib-ink-2);
}

.bib-sch__ans > * + * { margin-block-start: var(--space-3); }

.bib-sch__ans ul {
	padding-inline-start: 1.25rem;
	list-style: disc;
}

.bib-sch__ans li + li { margin-block-start: var(--space-1); }

.bib-sch__ans strong { color: var(--bib-ink); font-weight: var(--fw-medium); }

.bib-sch__ans a { color: var(--color-crimson); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Breakpoints: export 1100 -> 1280 (80em), 900 -> 1024 (64em), 560 -> 768 (48em)
   ------------------------------------------------------------------------ */

@media (max-width: 63.99em) {
	.bib-calc {
		grid-template-columns: 1fr;
	}

	.bib-fund {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 47.99em) {
	.bib-calc__in,
	.bib-calc__out {
		padding: 1.625rem 1.375rem;
	}

	.bib-big-fee {
		font-size: 3rem;
	}

	.bib-sch__row,
	.bib-sch__row--more summary {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.bib-sch__row--more summary {
		grid-template-columns: 1fr auto;
	}

	.bib-sch__row--more summary > span:not(.bib-req__pm) { grid-column: 1; }

	.bib-sch__row--more .bib-req__pm { grid-column: 2; grid-row: 1 / span 2; }

	.bib-sch__row span {
		font-size: var(--fs-ui);             /* 15 */
	}
}
