/**
 * HTG Team Bio — styles
 *
 * Full-bleed light band with a circular portrait and a text column,
 * centred on each other. Numbers come from the Podcast Production comp
 * (Sept 2026): 57/58 band padding, 1170 content width, 307 portrait,
 * 75 gap, name 48 serif, role 22 mono red, bio 16/28. Tablet keeps the
 * two columns with a 240 portrait; phones stack with the portrait centred
 * (comp: 50 / 30 / 30 between portrait, name, role and bio; 79 bottom).
 */

.htg-team-bio {
	background: var(--c-cream-lo);
	color: var(--c-ink);
}

.htg-team-bio--bg-white {
	background: var(--c-white);
}

.htg-team-bio__inner {
	box-sizing: content-box;
	max-width: 1170px;
	margin-inline: auto;
	padding: 57px var(--container-pad-x) 58px;
	display: grid;
	grid-template-columns: 307px minmax(0, 1fr);
	column-gap: 75px;
	align-items: center;
}

/* --- Portrait ---------------------------------------------------- */

.htg-team-bio__photo {
	width: 307px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(14, 13, 11, 0.06);
}

.htg-team-bio__photo img,
.htg-team-bio__photo picture {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* --- Text column -------------------------------------------------- */

.htg-team-bio__content {
	min-width: 0;
}

.htg-team-bio__name {
	margin: 0 0 12px;
	font-family: var(--ff-serif);
	font-weight: var(--fw-regular);
	font-size: 48px;
	line-height: 1.1;
	letter-spacing: var(--tracking-tight);
	color: rgba(14, 13, 11, 0.9);
}

.htg-team-bio__role {
	margin: 0 0 12px;
	font-family: var(--ff-mono);
	font-weight: var(--fw-regular);
	font-size: 22px;
	line-height: 1.3;
	color: var(--c-red);
}

.htg-team-bio__bio {
	font-family: var(--ff-sans);
	font-size: 16px;
	line-height: 28px;
	color: rgba(14, 13, 11, 0.62);
}

.htg-team-bio__bio p {
	/* main.css caps every <p> at 60ch; the comp runs the bio the full
	   width of the text column (about 100 characters a line). */
	max-width: none;
	margin: 0;
}

.htg-team-bio__bio p + p {
	margin-top: 16px;
}

.htg-team-bio__bio a {
	color: var(--c-red);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

/* --- Tablet (768–1024): two columns, smaller portrait ------------- */

@media (max-width: 1024px) {
	.htg-team-bio__inner {
		grid-template-columns: 240px minmax(0, 1fr);
		column-gap: 40px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.htg-team-bio__photo {
		width: 240px;
	}

	.htg-team-bio__name {
		font-size: 40px;
	}
}

/* --- Phone (≤767): stacked, portrait centred ----------------------- */

@media (max-width: 767px) {
	.htg-team-bio__inner {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 57px;
		padding-bottom: 79px;
	}

	.htg-team-bio__photo {
		width: min(307px, 100%);
		justify-self: center;
		margin-bottom: 44px;
	}

	.htg-team-bio__name {
		font-size: 34px;
		margin-bottom: 18px;
	}

	.htg-team-bio__role {
		margin-bottom: 14px;
	}
}

/* --- Editor ------------------------------------------------------- */

.editor-styles-wrapper .htg-team-bio {
	max-width: 100%;
}
