/* Egresados FarBioQ: tarjetas con foto o iniciales.
   Usa las variables de color del tema hijo (con valores de reserva). */
.fb-alumni {
	--fba-primary: var(--fb-primary, #0a5a9a);
	--fba-primary-dark: var(--fb-primary-dark, #08487b);
	--fba-soft: var(--fb-primary-soft, #e8f1f8);
	--fba-ink: var(--fb-ink, #132f4a);
	--fba-muted: var(--fb-muted, #5a6878);
	--fba-line: var(--fb-line, #dde5ee);
	--fba-surface: var(--fb-surface, #ffffff);
	--fba-head: var(--fb-font-head, inherit);
	width: 100%;
}

.fb-alumni .fb-alumni__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 16px;
	margin: 0 !important; /* el tema añade sangría a las listas */
	padding: 0 !important;
	list-style: none;
}

.fb-alumnus {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--fba-line);
	border-radius: 14px;
	background: var(--fba-surface);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fb-alumnus:hover {
	border-color: var(--fba-primary);
	box-shadow: 0 8px 22px rgba(19, 47, 74, 0.08);
}

.fb-alumnus__photo {
	flex: none;
}

.fb-alumnus__photo img,
.fb-alumnus .fb-avatar {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
}

.fb-alumnus .fb-avatar {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--fba-soft), #d6e9f4);
	font-family: var(--fba-head);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--fba-primary);
}

.fb-alumnus__text {
	min-width: 0;
}

.fb-alumni .fb-alumnus__name {
	margin: 0 0 3px;
	padding: 0;
	border: 0;
	font-family: var(--fba-head);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
	color: var(--fba-ink);
}

.fb-alumnus p {
	margin: 0;
}

.fb-alumnus__role {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--fba-primary);
}

.fb-alumnus__place {
	margin-top: 2px !important;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--fba-muted);
}

@media (max-width: 480px) {
	.fb-alumni .fb-alumni__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fb-alumnus {
		transition: none;
	}
}
