/* Markov Lab — People cards and profile */

/* --- Role-grouped sections (Head of Laboratory / Members) --- */
.mlab-people-section + .mlab-people-section {
	margin-top: 3rem;
}

.mlab-people-heading {
	font-size: 1.5rem;
	color: #1E293B;
	margin: 0 0 1.5rem;
}

/* --- Card grid (the [markovlab_people] shortcode) --- */
.mlab-people-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.75rem;
}

.mlab-person-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #FFFFFF;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mlab-person-card:hover,
.mlab-person-card:focus {
	box-shadow: 0 8px 24px rgba(28, 117, 188, 0.15);
	transform: translateY(-2px);
}

.mlab-person-photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
	background: #F0F5FA;
}

.mlab-person-photo--empty {
	display: block;
}

.mlab-person-name {
	font-weight: 700;
	font-size: 1.05rem;
	color: #1E293B;
}

.mlab-person-position {
	color: #1C75BC;
	font-size: 0.95rem;
	margin-top: 0.25rem;
}

.mlab-person-interests {
	color: #64748B;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

/* --- Single profile page --- */
.mlab-profile-head {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.mlab-profile-photo {
	width: 240px;
	height: 240px;
	border-radius: 10px;
	object-fit: cover;
	flex: 0 0 auto;
}

.mlab-profile-meta {
	flex: 1 1 280px;
}

.mlab-profile-position {
	font-size: 1.15rem;
	color: #1C75BC;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.mlab-profile-degree,
.mlab-profile-interests {
	color: #334155;
	margin: 0.35rem 0;
}

.mlab-profile-contacts {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.mlab-profile-contacts li {
	color: #334155;
	margin: 0.2rem 0;
}

.mlab-profile-contacts a {
	color: #1C75BC;
}

.mlab-profile-section {
	margin-top: 2.5rem;
}

.mlab-profile-section h2 {
	font-size: 1.35rem;
	color: #1E293B;
	border-bottom: 2px solid #E2E8F0;
	padding-bottom: 0.4rem;
	margin-bottom: 1rem;
}

.mlab-profile-section-body :last-child {
	margin-bottom: 0;
}
