/* ── Single Alumni Profile (inc/bw-alumni.php → bw_render_alumni) ─────────────
 * Card, colour tokens and the shared eyebrow come from
 * blocks/alumni-grid/style.css (loaded first).
 *
 *   header card — portrait | eyebrow, name, role, facts, pull quote
 *   body        — "In this interview" index in the left third (sticky on
 *                 desktop, echoing the site's 1/3 · 2/3 grid), Q&A in the rest,
 *                 extra photos spaced between answers
 *   footer      — More Alumni Profiles, then the dark Brentonian panel        */

.bw-al {
	padding: 1.25rem 1rem 3.5rem;
}

/* Breadcrumb */
.bw-al .bw-al__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	color: var( --bw-al-muted );
}
.bw-al__crumbs a {
	color: var( --bw-al-red );
	text-decoration: none;
}
.bw-al__crumbs a:hover {
	text-decoration: underline;
}
.bw-al__crumbs a:last-child {
	color: var( --bw-al-ink );
	font-weight: 600;
}

/* ── Header card ──────────────────────────────────────────────────────────── */
.bw-al__hero {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba( 0, 0, 0, 0.1 ), 0 4px 6px -4px rgba( 0, 0, 0, 0.1 );
}
.bw-al__portrait {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #d8dde4;
}
.bw-al__portrait-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
}
.bw-al__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.4rem;
	padding: 0 0.55rem;
	border-radius: 4px;
	background: var( --bw-al-red );
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
}
.bw-al__intro {
	padding: 1.75rem 1.5rem 2rem;
}
.bw-al .bw-al__name {
	margin: 0;
	font-family: var( --bw-al-head );
	font-size: clamp( 2.1rem, 4.2vw, 3.25rem );
	font-weight: 300;
	line-height: 1.1;
	color: var( --bw-al-ink );
}
.bw-al .bw-al__role {
	margin: 0.6rem 0 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	color: var( --bw-al-ink );
}

.bw-al .bw-al__facts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 8rem, 1fr ) );
	gap: 0.9rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var( --bw-al-line );
}
.bw-al .bw-al__fact {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.6rem;
	align-items: start;
	align-content: start; /* don't spread a short fact over a taller neighbour's row */
}
.bw-al__fact .bw-al-icon {
	grid-row: span 2;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	color: var( --bw-al-red );
}
.bw-al__fact dt {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --bw-al-muted );
}
.bw-al .bw-al__fact dd {
	margin: 0.1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var( --bw-al-ink );
}

.bw-al .bw-al__quote {
	position: relative;
	margin: 1.75rem 0 0;
	padding: 0 0 0 3rem;
	border: 0;
	background: none;
}
.bw-al__quote::before {
	content: "\201C";
	position: absolute;
	top: -0.6rem;
	left: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.5rem;
	line-height: 1;
	color: var( --bw-al-red );
}
.bw-al .bw-al__quote p {
	margin: 0;
	font-family: var( --bw-al-head );
	font-size: clamp( 1.25rem, 2vw, 1.55rem );
	font-weight: 300;
	line-height: 1.4;
	color: var( --bw-al-ink );
}

@media ( min-width: 768px ) {
	.bw-al {
		padding: 1.75rem 2rem 4.5rem;
	}
	.bw-al__hero {
		grid-template-columns: minmax( 0, 5fr ) minmax( 0, 7fr );
	}
	.bw-al__portrait {
		aspect-ratio: auto;
		min-height: 32rem;
	}
	.bw-al__intro {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 3rem 3.5rem;
	}
}

/* ── Interview ────────────────────────────────────────────────────────────── */
.bw-al__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr );
	margin-top: 2.5rem;
}
.bw-al .bw-al__toc {
	display: none;
}
.bw-al__qa {
	max-width: 46rem;
}
/* The column holds whatever the editor wrote: question blocks, images, the odd
   intro paragraph. Even rhythm between them; a wider gap around each question
   and each picture so every Q&A reads as its own unit. */
.bw-al .bw-al__qa > * {
	margin-top: 0;
	margin-bottom: 0;
}
.bw-al .bw-al__qa > * + * {
	margin-top: 1.5rem;
}
.bw-al .bw-al__qa > * + .bw-al__item,
.bw-al .bw-al__qa > .bw-al__item + *,
.bw-al .bw-al__qa > * + .wp-block-image,
.bw-al .bw-al__qa > .wp-block-image + * {
	margin-top: 2.75rem;
}
.bw-al .bw-al__qa > p {
	font-size: 1.0625rem;
	line-height: 1.75;
}
.bw-al__item {
	scroll-margin-top: 7rem;
}
.bw-al .bw-al__kicker {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --bw-al-muted );
}
.bw-al__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.6rem;
	padding: 0 0.3rem;
	border-radius: 4px;
	background: var( --bw-al-red );
	color: #fff;
	font-size: 0.72rem;
	letter-spacing: 0.02em;
}
.bw-al .bw-al__q {
	margin: 0 0 1rem;
	font-family: var( --bw-al-head );
	font-size: clamp( 1.4rem, 2.2vw, 1.75rem );
	font-weight: 300;
	line-height: 1.3;
	color: var( --bw-al-ink );
}
.bw-al .bw-al__a {
	font-size: 1.0625rem;
	line-height: 1.75;
}
.bw-al .bw-al__a > * {
	margin-top: 0;
	margin-bottom: 1.1em;
}
.bw-al .bw-al__a > *:last-child {
	margin-bottom: 0;
}
.bw-al .bw-al__a > .wp-block-image {
	margin-top: 2rem;
	margin-bottom: 2rem;
}
/* Magazine drop cap on the very first answer. */
.bw-al__qa.has-dropcap .bw-al__item:first-of-type .bw-al__a > p:first-child::first-letter {
	float: left;
	margin: 0.3rem 0.6rem 0 0;
	font-family: var( --bw-al-head );
	font-size: 4rem;
	font-weight: 400;
	line-height: 0.82;
	color: var( --bw-al-red );
}

/* Image blocks, between questions or inside an answer: soft corners and the
   card shadow, centred, the figure shrink-wrapped to its photo so the site's
   overlaid caption (white on a dark gradient — inc/bw-cover-style.php) sits
   exactly on the picture. A portrait-orientation photo left at its default size
   is narrowed (bw-al-tall, added in inc/bw-alumni.php) so it can't run a screen
   and a half tall. An image the editor floats left/right keeps its float. */
.bw-al .bw-al__qa .wp-block-image img {
	display: block;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba( 0, 0, 0, 0.1 ), 0 4px 6px -4px rgba( 0, 0, 0, 0.1 );
}
.bw-al .bw-al__qa .wp-block-image:not( .alignleft ):not( .alignright ) {
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.bw-al .bw-al__qa .wp-block-image.bw-al-tall:not( .alignleft ):not( .alignright ) {
	max-width: 28rem;
}
.bw-al .bw-al__qa .wp-block-image.alignleft {
	margin: 0.4rem 1.75rem 1rem 0;
}
.bw-al .bw-al__qa .wp-block-image.alignright {
	margin: 0.4rem 0 1rem 1.75rem;
}
.bw-al .bw-al__qa .wp-block-image > figcaption {
	border-radius: 0 0 8px 8px; /* follow the photo's rounded corners */
}

.bw-al .bw-al__source {
	margin: 2.75rem 0 0;
	font-size: 0.9375rem;
	font-style: italic;
	color: var( --bw-al-muted );
}
.bw-al__dash {
	display: block;
	width: 3.5rem;
	height: auto;
	margin-top: 1.5rem;
}

@media ( min-width: 1024px ) {
	.bw-al__body {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 2fr );
		margin-top: 3.5rem;
	}
	.bw-al .bw-al__toc {
		display: block;
		align-self: start;
		position: sticky;
		top: 7rem;
		margin-right: 3rem;
		padding: 1.5rem;
		border-radius: 8px;
		background: #fff;
		box-shadow: var( --bw-al-shadow );
	}
	.bw-al__qa {
		padding-left: 0.5rem;
	}
	/* No question blocks → no index: one centred column instead. */
	.bw-al__body--plain {
		grid-template-columns: minmax( 0, 1fr );
		justify-items: center;
	}
	.bw-al__body--plain .bw-al__qa {
		width: 100%;
		padding-left: 0;
	}
}
.bw-al .bw-al__toc-title {
	margin: 0 0 0.75rem;
	font-family: var( --bw-al-head );
	font-size: 1.2rem;
	font-weight: 300;
	color: var( --bw-al-ink );
}
.bw-al .bw-al__toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bw-al__toc li {
	margin: 0;
	border-top: 1px solid var( --bw-al-line );
}
.bw-al__toc a {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var( --bw-al-ink );
	text-decoration: none;
}
.bw-al__toc a:hover {
	color: var( --bw-al-red );
}
.bw-al__toc-num {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 700;
	color: var( --bw-al-red );
}

/* ── More profiles ────────────────────────────────────────────────────────── */
.bw-al__more {
	margin-top: 4.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var( --bw-al-line );
}
.bw-al .bw-al__more-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-bottom: 1.5rem;
}
.bw-al .bw-al__more-head h2 {
	margin: 0;
	font-family: var( --bw-al-head );
	font-size: 1.875rem;
	font-weight: 300;
	color: var( --bw-al-ink );
}
.bw-al__more-link {
	margin-top: 0;
}

/* ── Brentonian panel (matches the magazine panel on Archives & Publications) */
.bw-al .bw-al__mag {
	display: grid;
	gap: 1.5rem;
	margin-top: 3rem;
	padding: 2rem 1.5rem;
	border-radius: 8px;
	background: #1d1e20;
	color: #fff;
}
.bw-al .bw-al__mag h2 {
	margin: 0 0 0.75rem;
	font-family: var( --bw-al-head );
	font-size: 1.6rem;
	font-weight: 300;
	color: #fff;
}
.bw-al .bw-al__mag p {
	margin: 0;
	color: rgba( 255, 255, 255, 0.88 );
}
.bw-al__mag a {
	color: #e5414a;
}
.bw-al__mag-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
}
.bw-al__mag-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	text-decoration: none;
}
.bw-al__mag-links a:hover {
	color: #fff;
}
.bw-al__mag-links .bw-al-icon {
	width: 0.85em;
	height: 0.85em;
}
@media ( min-width: 900px ) {
	.bw-al .bw-al__mag {
		grid-template-columns: minmax( 0, 3fr ) minmax( 0, 2fr );
		align-items: center;
		padding: 2.5rem 3rem;
	}
	.bw-al__mag-links {
		flex-direction: column;
		align-items: flex-start;
		padding-left: 2rem;
		border-left: 1px solid rgba( 255, 255, 255, 0.25 );
	}
}

@media print {
	.bw-al__toc,
	.bw-al__more,
	.bw-al__mag,
	.bw-al__crumbs {
		display: none !important;
	}
	.bw-al__hero {
		box-shadow: none;
	}
}
