/* Layout only. Typography, colour palette and page background stay with the active theme. */

.radman-speaker-single {
	color: inherit;
}

/* Fallback container only: a classic theme defines no --wp--style--global--content-size, so the page would otherwise run edge to edge. */
.radman-speaker-single.radman-speaker-container {
	width: min(100% - 2rem, var(--wp--style--global--content-size, var(--radman-speaker-content-size, 1200px)));
	margin-inline: auto;
}

.radman-speaker-single .radman-speaker-header {
	display: grid;
	grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
	gap: 1.5em;
	align-items: start;
	margin-bottom: 1.5em;
}

/* No photo column to pair with, so the intro would otherwise be crushed into the 15em track. */
.radman-speaker-single .radman-speaker-header--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.radman-speaker-single .radman-speaker-photo {
	margin: 0;
}

.radman-speaker-single .radman-speaker-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.5em;
}

.radman-speaker-single .radman-speaker-intro {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.radman-speaker-single .radman-speaker-name {
	margin: 0;
}

.radman-speaker-single .radman-speaker-title {
	margin: 0;
	color: inherit;
}

.radman-speaker-single .radman-speaker-affiliation {
	margin: 0;
	color: var(--wp--preset--color--primary, currentColor);
}

.radman-speaker-single .radman-speaker-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.5em;
}

.radman-speaker-single .radman-speaker-badge {
	display: inline-block;
	padding: 0.25em 0.75em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.85em;
	color: inherit;
}

.radman-speaker-single .radman-speaker-topic {
	margin: 0 0 1.5em;
	padding: 0.75em 1em;
	border-radius: 0.5em;
	border-left: 3px solid var(--wp--preset--color--primary, currentColor);
	background-color: color-mix(in srgb, currentColor 6%, transparent);
	color: inherit;
}

.radman-speaker-single .radman-speaker-topic-label {
	display: block;
	margin-bottom: 0.15em;
	font-size: 0.85em;
}

.radman-speaker-single .radman-speaker-bio {
	margin: 0 0 1.5em;
}

.radman-speaker-single .radman-speaker-video-wrap {
	margin: 1.5em 0 0;
}

.radman-speaker-single .radman-speaker-video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.5em;
}

.radman-speaker-single .radman-speaker-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	margin-top: 1.5em;
}

.radman-speaker-single .radman-speaker-social {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35em 0.9em;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit;
}

/* 782px is the WordPress mobile breakpoint; below it the header stacks. */
@media (max-width: 781px) {
	.radman-speaker-single .radman-speaker-header {
		grid-template-columns: minmax(0, 1fr);
	}

	.radman-speaker-single .radman-speaker-photo img {
		max-width: 12em;
	}
}
