/**
 * Person profile styles — Institute for Bioethics
 * Deploy to: wp-content/themes/divi-child/person-profile.css
 * Enqueued by single-person.php (no functions.php edit required).
 *
 * Inherits Divi/Health Sciences typography (Roboto) and Pitt blue (#003594).
 * Contrast: #003594 on #fff = 11.2:1, and #4a4a4a on #fff = 9.0:1 — both clear AA and AAA.
 */

:root {
	--bioethics-blue: #003594;
	--bioethics-gold: #ffb81c;
	--bioethics-ink: #1c1c1c;
	--bioethics-muted: #4a4a4a;
	--bioethics-rule: #e0e0e0;
}

.bioethics-person {
	max-width: 1080px;
	margin: 0 auto;
	padding: 3rem 5% 4rem;
}

/* ---------- Header ---------- */

.bioethics-person__header {
	padding-bottom: 2rem;
	margin-bottom: 2.5rem;
	border-bottom: 4px solid var(--bioethics-gold);
}

.bioethics-person__header-inner {
	display: flex;
	gap: 2.5rem;
	align-items: flex-start;
}

.bioethics-person__headshot {
	flex: 0 0 220px;
}

.bioethics-person__headshot img {
	width: 220px;
	height: 220px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.bioethics-person__identity {
	flex: 1 1 auto;
	min-width: 0;
}

.bioethics-person__name {
	font-size: 2.5rem;
	line-height: 1.15;
	color: var(--bioethics-blue);
	margin: 0 0 0.35rem;
}

.bioethics-person__credentials {
	font-weight: 400;
	color: var(--bioethics-muted);
	font-size: 1.6rem;
	white-space: nowrap;
}

.bioethics-person__role {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--bioethics-ink);
	margin: 0 0 0.25rem;
}

.bioethics-person__program {
	font-size: 1.05rem;
	color: var(--bioethics-muted);
	margin: 0 0 0.5rem;
}

/* Role tags — one person can hold several (Leadership + Core Faculty). */
.bioethics-person__roles {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0 1rem;
	padding: 0;
}

.bioethics-person__role-tag a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #eef2fa;
	color: var(--bioethics-blue);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.6;
}

.bioethics-person__role-tag a:hover,
.bioethics-person__role-tag a:focus {
	background: var(--bioethics-blue);
	color: #fff;
}

.bioethics-person__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 1rem;
}

/* ---------- Sections ---------- */

.bioethics-person__section {
	margin-bottom: 2.75rem;
}

.bioethics-person__section h2 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--bioethics-blue);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--bioethics-rule);
}

.bioethics-person__prose p {
	margin-bottom: 1.1rem;
	line-height: 1.7;
}

/* ---------- Appointments: the grouped block ---------- */

.bioethics-person__appointments {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bioethics-person__appointment {
	margin-bottom: 1.25rem;
	padding-left: 1rem;
	border-left: 3px solid var(--bioethics-gold);
}

.bioethics-person__appointment > span {
	display: block;
	line-height: 1.5;
}

.bioethics-person__appointment-title {
	font-weight: 700;
	color: var(--bioethics-ink);
}

.bioethics-person__appointment-unit,
.bioethics-person__appointment-institution {
	color: var(--bioethics-muted);
}

/* ---------- Lists ---------- */

.bioethics-person__education,
.bioethics-person__grants,
.bioethics-person__awards,
.bioethics-person__links,
.bioethics-person__media {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bioethics-person__education li,
.bioethics-person__grants li,
.bioethics-person__awards li,
.bioethics-person__media-item {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bioethics-rule);
	line-height: 1.6;
}

.bioethics-person__degree,
.bioethics-person__award-name {
	font-weight: 600;
}

.bioethics-person__links li {
	padding: 0.35rem 0;
}

.bioethics-person__media-meta {
	display: block;
	font-size: 0.9rem;
	color: var(--bioethics-muted);
}

/* Interests double as Research Area terms. */
.bioethics-person__interests {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.bioethics-person__interest a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--bioethics-blue);
	border-radius: 3px;
	color: var(--bioethics-blue);
	text-decoration: none;
	font-size: 0.9rem;
}

.bioethics-person__interest a:hover,
.bioethics-person__interest a:focus {
	background: var(--bioethics-blue);
	color: #fff;
}

/* ---------- Publications ---------- */

.bioethics-person__publications {
	margin: 0;
	padding: 0 0 0 1.25rem;
}

.bioethics-person__publication {
	margin-bottom: 1.1rem;
	line-height: 1.6;
}

.bioethics-person__citation p {
	margin: 0;
}

.bioethics-person__doi {
	font-size: 0.9rem;
	font-weight: 600;
}

/* ---------- Back link ---------- */

.bioethics-person__back {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bioethics-rule);
}

.bioethics-person__back a {
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Focus visibility (WCAG 2.4.7) ---------- */

.bioethics-person a:focus-visible {
	outline: 3px solid var(--bioethics-gold);
	outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media ( max-width: 780px ) {
	.bioethics-person__header-inner {
		flex-direction: column;
		gap: 1.5rem;
	}

	.bioethics-person__headshot,
	.bioethics-person__headshot img {
		width: 160px;
		height: 160px;
		flex-basis: auto;
	}

	.bioethics-person__name {
		font-size: 2rem;
	}

	.bioethics-person__credentials {
		font-size: 1.3rem;
		white-space: normal;
	}
}

/* ---------- Directory header (archive-person.php; grid styles come from the
   shared inc/hs-people/2026-07-13-styles.css) ---------- */

.bioethics-directory__header {
	max-width: 1180px;
	margin: 0 auto 2rem;
	padding: 3rem 5% 1.5rem;
	border-bottom: 4px solid var(--bioethics-gold);
}

.bioethics-directory__title {
	font-size: 2.5rem;
	color: var(--bioethics-blue);
	margin: 0;
}
