@charset "UTF-8";
/* =============================================================================
   Leadership & Faculty — faculty directory (FacultyDirectory.tsx) and
   institution wall (InstitutionWall.tsx).

   Ported from the Figma Make export (figma_make/LSB - Leadership/src/index.css,
   2026-09-17), following the porting rules in assets/css/programme.css's own
   header: colours/sizes are base.css + --bib-* tokens (color-mix() for the
   export's translucent navies), Inter/IBM Plex Mono both fold into Geist.
   New page-specific components — the search bar, the chip rows, the faculty
   card, the institution wall — get the `lf-` prefix in BEM; anything that
   already exists as a shared primitive (`.bib-btn`, `.bib-link`, `.bib-mono`,
   `.bib-fine`) is reused instead of re-declared, as cc/support.php and
   wmba/class.php do.

   Breakpoints mirror the export's, mapped as the rest of the programme pages
   map them: 1100 -> 1280 (80em), 900 -> 1024 (64em), 560 -> 768 (48em).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Faculty directory — search + filter bar
   ------------------------------------------------------------------------ */

.lf-directory__bar {
	position: sticky;
	top: 4rem;
	z-index: 20;
	background-color: var(--bib-paper);
	padding-block: var(--space-5) var(--space-4);
	margin-block-end: 0.375rem;
}

.lf-directory__search {
	position: relative;
	max-width: 26.25rem;
}

.lf-directory__search-icon {
	position: absolute;
	left: var(--space-4);
	top: 50%;
	transform: translateY(-50%);
	width: 1.125rem;
	height: 1.125rem;
	color: var(--bib-ink-3);
	pointer-events: none;
}

.lf-directory__search-field input {
	width: 100%;
	height: 3.125rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);
	padding-inline-start: 2.75rem;
	padding-inline-end: var(--space-4);
	background-color: var(--color-white);
	border: 1px solid var(--bib-line-2);
	border-radius: var(--bib-r-sm);
	color: var(--bib-ink);
}

/* No focus ring on the search field or its clear button (Domagoj, 2026-09-29) —
   base.css's site-wide :focus-visible outline is switched off here only. */
.lf-directory__search :focus-visible {
	outline: none;
	box-shadow: none;
}

.lf-directory__search-field input::placeholder {
	color: var(--bib-ink-3);
}

.lf-directory__clear {
	position: absolute;
	right: 0.625rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--bib-ink-3);
}

.lf-directory__clear:hover {
	background-color: var(--bib-paper);
	color: var(--bib-ink);
}

.lf-directory__rows {
	display: grid;
	gap: var(--space-3);
	margin-block-start: var(--space-4);
}

.lf-directory__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
}

.lf-directory__row-label {
	font-family: var(--font-body);
	font-size: var(--fs-ui-3xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bib-ink-3);
	margin-inline-end: 0.25rem;
	min-width: 4.5rem;
}

.lf-chip {
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);
	font-weight: 500;
	border: 1px solid var(--bib-line-2);
	border-radius: 999px;
	padding: 0.4375rem 0.8125rem;
	color: var(--bib-ink-2);
	background-color: transparent;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.lf-chip:hover {
	border-color: var(--bib-ink);
	color: var(--bib-ink);
}

.lf-chip[aria-pressed="true"] {
	background-color: var(--bib-ink);
	border-color: var(--bib-ink);
	color: var(--color-white);
}

.lf-directory__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-4);
	flex-wrap: wrap;
	margin-block-start: var(--space-4);
	padding-block-start: var(--space-3);
	border-block-start: 1px solid var(--bib-line);
}

/* ---------------------------------------------------------------------------
   Faculty cards
   ------------------------------------------------------------------------ */

.lf-directory__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;               /* every row as tall as the tallest card, not just its own */
	gap: var(--space-3);
}

.lf-card {
	background-color: var(--color-white);
	border: 1px solid var(--bib-line);
	border-radius: var(--bib-r);
	padding: 1.375rem 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	text-align: start;
	transition: border-color 0.2s;
}

.lf-card__top {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.lf-card__avatar {
	width: 2.75rem;
	height: 2.75rem;
	flex: none;
	border-radius: 50%;
	background-color: var(--bib-paper);
	color: var(--bib-ink);
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: var(--fs-ui-md);
	letter-spacing: 0.02em;
}

.lf-card[data-lf-t="lsb"] .lf-card__avatar {
	background-color: var(--bib-ink);
	color: var(--color-white);
}

/* A photo instead of initials — the class is on the <img> (lsb_the_picture). */
.lf-card__avatar--photo,
.lf-card[data-lf-t="lsb"] .lf-card__avatar--photo {
	background-color: var(--bib-paper);
	object-fit: cover;
}

/* "Faculty profile →" (the degree pages' .bib-faculty__link) under the tags;
   the tags already take the card's spare height. */
.lf-card__profile {
	align-self: flex-start;
	margin-block-start: 0;
	padding-block-start: 0;
}

.lf-card__top b {
	font-weight: 400;
	font-size: var(--fs-editorial-sm);
	line-height: 1.25;
	display: block;
}

.lf-card__org {
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);
	color: var(--bib-ink-3);
	display: block;
	margin-block-start: 0.1875rem;
}

.lf-card__role {
	font-size: var(--fs-ui);
	color: var(--bib-ink-2);
	line-height: 1.5;
}

.lf-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-block-start: auto;
	padding-block-start: var(--space-3);
}

.lf-tag {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	padding: 0.1875rem 0.5625rem;
	border-radius: 999px;
	background-color: var(--bib-paper);
	color: var(--bib-ink-2);
}

.lf-tag.lf-tag--hit {
	background-color: var(--bib-magenta-tint);
	color: var(--bib-magenta);
}

.lf-directory__empty {
	grid-column: 1 / -1;
	background-color: var(--color-white);
	border-radius: var(--bib-r);
	padding: 2.75rem;
	text-align: center;
}

.lf-directory__empty h3 {
	font-size: var(--fs-editorial-lg);
	margin-block-end: var(--space-2);
}

.lf-directory__empty p {
	color: var(--bib-ink-2);
	margin-block-end: var(--space-5);
}

.lf-directory__more {
	margin-block-start: var(--space-5);
	display: flex;
	justify-content: center;
}

.lf-directory__fine {
	margin-block-start: var(--space-5);
}

/* ---------------------------------------------------------------------------
   Institution wall
   ------------------------------------------------------------------------ */

.lf-wall {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-3);
	margin-block-start: var(--space-2);
}

.lf-wall__item {
	border: 1px solid var(--bib-line-dark);
	border-radius: var(--bib-r-sm);
	padding: 1rem 1.125rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	line-height: 1.35;
	display: flex;
	align-items: center;
	min-height: 4rem;
	text-align: start;
	color: var(--color-white);
	background-color: transparent;
	width: 100%;
	transition: border-color 0.2s, background-color 0.2s;
}

.lf-wall__item:hover {
	border-color: color-mix(in srgb, var(--color-white) 40%, transparent);
	background-color: color-mix(in srgb, var(--color-white) 5%, transparent);
}

.lf-wall__item[aria-pressed="true"] {
	border-color: var(--color-white);
	background-color: color-mix(in srgb, var(--color-white) 12%, transparent);
}

.lf-institutions__note {
	margin-block-start: 1.375rem;
	display: flex;
	justify-content: space-between;
	gap: var(--space-5);
	align-items: center;
	flex-wrap: wrap;
}

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

@media (max-width: 79.99em) {
	.lf-directory__grid { grid-template-columns: 1fr 1fr; }
	.lf-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 63.99em) {
	.lf-directory__bar { position: static; }
	.lf-wall { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 47.99em) {
	.lf-directory__grid { grid-template-columns: 1fr; }
	.lf-wall { grid-template-columns: 1fr; }
	.lf-directory__row-label { min-width: 0; width: 100%; }
}

/* Phones (2026-09-27): filter chips were 32–35px tall — under the 40px a
   thumb needs. */
@media (max-width: 47.99em) {
	.lf-chip {
		display: inline-flex;
		align-items: center;
		min-height: 2.5rem;
	}
}

/* Phones (Domagoj, 2026-09-27): the directory is a snap rail with the next card peeking and
   a .rail-nav beneath (base.css), like the homepage programme grid. */
@media (max-width: 47.99em) {
	/* position: relative makes the rail the containing block of the cards'
	   absolutely positioned .visually-hidden text; without it those spans
	   escaped the scroll clip and widened the page to 2527px (2026-09-29). */
	.lf-directory__grid {
		position: relative;
		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);
	}

	.lf-directory__grid::-webkit-scrollbar { display: none; }

	.lf-card {
		flex: none;
		width: 85%;
		scroll-snap-align: start;
	}
}
