@charset "UTF-8";
/* =============================================================================
   Full-Time MBA — "Build your electives" planner.

   Ported from figma_make/FTMBA - Single/src/index.css (.ep, .ep-slots, .slot,
   .chips-e, .echip, .ep-side …, 2026-09-17). Same design system as the MIM/MIF
   pages: colours, radii and the base type classes (.bib-mono, .bib-fine,
   .bib-btn) reuse the tokens already in assets/css/programme.css. The dark
   side panel follows the MIF elective builder's `.mif-eb-side` exactly
   (`background: var(--bib-glow)`, never flat navy) — only the layout that is
   new to this export (three named slots instead of one flat card grid) gets
   its own `.ep*`/`.slot`/`.echip` rules here.

   The "used / target" line's ok/over colours use --color-ok-ink and
   --color-crimson (both already used elsewhere on white grounds), not the
   export's raw #1a9b66/magenta.

   Breakpoints, as the rest of the page: 79.99em / 63.99em / 47.99em.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Layout — slots column + dark side panel
   ------------------------------------------------------------------------ */

.ep {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 1.5rem;
	align-items: start;
}

.ep-slots {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin-block-end: 1.125rem;
}

/* ---------------------------------------------------------------------------
   Slot card
   ------------------------------------------------------------------------ */

.slot {
	background-color: var(--color-white);
	border: 1px solid var(--bib-line);
	border-radius: var(--bib-r);
	padding: 1.125rem 1.25rem;
}

.slot-h {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-block-end: 0.75rem;
}

.slot-h b {
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	font-size: 1.125rem;
}

.need {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bib-ink-2);
	white-space: nowrap;
}

.need.ok {
	color: var(--color-ok-ink);
}

.need.over {
	color: var(--color-crimson);
}

.chips-e {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.echip {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	border: 1px solid var(--bib-line-2);
	border-radius: var(--radius-pill);
	padding: 0.5rem 0.8125rem;
	color: var(--bib-ink-2);
	background-color: var(--color-white);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.echip:hover:not(:disabled) {
	border-color: var(--color-navy);
	color: var(--color-navy);
}

/* The hover rule above out-specifies a bare [aria-pressed], so a chip just
   chosen — still under the pointer, or under a finger, where :hover sticks —
   went navy text on navy until the pointer left (Domagoj, 2026-09-28). The
   chosen state names its hover too. */
.echip[aria-pressed="true"],
.echip[aria-pressed="true"]:hover:not(:disabled) {
	background-color: var(--color-navy);
	border-color: var(--color-navy);
	color: var(--color-white);
}

.echip:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.echip i {
	font-style: normal;
	font-family: var(--font-body);
	font-size: 0.65625rem;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   Side panel — dark, sticky
   ------------------------------------------------------------------------ */

.ep-side {
	position: sticky;
	top: 6rem;
	align-self: start;
	background: var(--bib-glow);
	color: var(--color-white);
	border-radius: var(--bib-r-lg);
	padding: 1.875rem;
	display: flex;
	flex-direction: column;
}

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

.ep-total {
	font-family: var(--font-display);
	font-size: 3.5rem;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0.625rem 0 0.125rem;
}

.ep-total small {
	font-family: var(--font-body);
	font-size: 1.125rem;
	color: var(--bib-on-dark);
}

.ep-bar {
	height: 0.5rem;
	border-radius: 4px;
	background-color: color-mix(in srgb, var(--color-white) 14%, transparent);
	overflow: hidden;
	margin-block-start: 0.875rem;
}

.ep-bar i {
	display: block;
	height: 100%;
	width: var(--ftmba-ep-pct, 0%);
	background-color: var(--bib-magenta-on-dark);
	transition: width 0.4s var(--bib-ease);
}

.ep-bar i.done {
	background-color: var(--color-ok);
}

.ep-list {
	margin-block-start: 1.25rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--bib-line-dark);
	display: grid;
	gap: 0.4375rem;
}

.ep-list > div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.84375rem;
	color: var(--color-white);
	line-height: 1.4;
}

.ep-list span.e {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	color: var(--bib-on-dark-3);
}

.ep-status {
	margin-block-start: 1rem;
	background-color: color-mix(in srgb, var(--bib-magenta-on-dark) 14%, transparent);
	border-radius: var(--bib-r-sm);
	padding: 0.8125rem 0.9375rem;
	font-family: var(--font-body);
	font-size: 0.84375rem;
	line-height: 1.5;
	color: var(--color-white);
}

.ep-status.ok {
	background-color: color-mix(in srgb, var(--color-ok) 18%, transparent);
}

.ep-side .actions {
	margin-block-start: auto;
	padding-block-start: 1.375rem;
	display: grid;
	gap: 0.625rem;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 79.99em) {
	/* minmax(0, …): a bare 1fr grew to its widest slot and ran 4px past a
	   360px screen (2026-09-22). */
	.ep {
		grid-template-columns: minmax(0, 1fr);
	}

	.ep-side {
		position: static;
	}
}

@media (max-width: 47.99em) {
	.slot,
	.ep-side {
		padding: 1.25rem 1.125rem;
	}

	.slot-h {
		flex-wrap: wrap;
		gap: 0.25rem 1rem;
	}

	.ep-total {
		font-size: 2.75rem;
	}
}
