/* ML Speakers — public side: index grid and per-speaker page */

.ml-speakers {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px 24px 80px;
}

.ml-speakers__empty {
	max-width: 720px;
	margin: 24px auto 80px;
	padding: 24px;
	text-align: center;
	color: #555;
	background: #f6f8fa;
	border-radius: 12px;
}

/* ─── Grid (index) ────────────────────────────────────── */

.ml-speakers--grid {
	box-sizing: border-box;
	/* Break out of the narrow 780px page column to a wider, viewport-centred block (matches Past Events) */
	width: min(1280px, 94vw);
	max-width: none;
	margin-left: calc(50% - min(640px, 47vw));
	margin-right: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.ml-speaker-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border: 1px solid #ebeef2;
	border-radius: 12px;
	padding: 28px 22px 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ml-speaker-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #27ae60;
}

.ml-speaker-tile__photo,
.ml-speaker-tile__photo--blank {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 16px;
	background: linear-gradient(135deg, #e6eef5, #cfd9e3);
}

.ml-speaker-tile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ml-speaker-tile__name {
	font-size: 18px;
	font-weight: 700;
	color: #1f2933;
	text-align: center;
	margin: 0 0 4px;
}

.ml-speaker-tile__role {
	font-size: 13px;
	color: #555;
	text-align: center;
	margin: 0 0 12px;
}

.ml-speaker-tile__bio {
	font-size: 14px;
	line-height: 1.5;
	color: #444;
	text-align: center;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ml-speaker-tile__more {
	font-size: 13px;
	font-weight: 600;
	color: #27ae60;
	margin-top: auto;
}

/* ─── Speaker detail page ─────────────────────────────── */

.ml-speaker {
	max-width: 880px;
	margin: 0 auto;
	padding: 8px 24px 80px;
}

.ml-speaker__header {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 32px;
	align-items: center;
	margin-bottom: 32px;
}

@media (max-width: 600px) {
	.ml-speaker__header {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 18px;
	}
	.ml-speaker__photo,
	.ml-speaker__photo--blank { margin: 0 auto; }
}

.ml-speaker__photo,
.ml-speaker__photo--blank {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #e6eef5, #cfd9e3);
}

.ml-speaker__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ml-speaker__heading .section-eyebrow {
	display: inline-block;
	margin-bottom: 8px;
}

.ml-speaker__name {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 8px;
	color: #1f2933;
}

.ml-speaker__role {
	font-size: 17px;
	color: #555;
	margin: 0 0 12px;
}

.ml-speaker__short {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.ml-speaker__bio {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	margin: 0 0 36px;
}

.ml-speaker__bio p { margin: 0 0 16px; }
.ml-speaker__bio p:last-child { margin-bottom: 0; }
.ml-speaker__bio a { color: #27ae60; text-decoration: underline; }
.ml-speaker__bio h2, .ml-speaker__bio h3 {
	margin-top: 28px; margin-bottom: 8px;
}

.ml-speaker__links,
.ml-speaker__events {
	background: #f6f8fa;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 24px;
}

.ml-speaker__links h2,
.ml-speaker__events h2 {
	font-size: 18px;
	margin: 0 0 12px;
	color: #1f2933;
}

.ml-speaker__links ul,
.ml-speaker__events ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ml-speaker__links li,
.ml-speaker__events li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
	font-size: 15px;
	line-height: 1.5;
}

.ml-speaker__links li:last-child,
.ml-speaker__events li:last-child {
	border-bottom: 0;
}

.ml-speaker__links a {
	color: #27ae60;
	text-decoration: none;
}

.ml-speaker__links a:hover {
	text-decoration: underline;
}

.ml-speaker__events-date {
	display: inline-block;
	min-width: 130px;
	font-size: 13px;
	color: #6b7280;
	margin-right: 6px;
}

.ml-speaker__events a {
	color: #1f2933;
	font-weight: 600;
	text-decoration: none;
}

.ml-speaker__events a:hover {
	color: #27ae60;
}

.ml-speaker__back {
	margin-top: 24px;
	font-size: 14px;
}

.ml-speaker__back a {
	color: #27ae60;
	text-decoration: none;
	font-weight: 600;
}

.ml-speaker__back a:hover {
	text-decoration: underline;
}

/* ─── Event card additions ─────────────────────────────── */

.ml-past-event__readmore {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #27ae60;
	text-decoration: none;
}

.ml-past-event__readmore:hover {
	text-decoration: underline;
}
