
/**
 * Person profile — English LTR theme chrome + two-column KPE layout.
 */

body.single-kpe_person .site-content,
body.single-kpe_person .content-area,
body.single-kpe_person .site-main,
body.single-kpe_person #content,
body.single-kpe_person #primary {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.kpe-person-page {
	margin-top: -64px;
	padding-top: 100px !important;

	--navy: #0c2140;
	--gold: var(--kpe-person-heading, #f7c225);
	--white: #ffffff;
	--muted: #5b6777;
	--font: Arial, Helvetica, sans-serif;

	font-family: var(--font);
	font-size: var(--kpe-person-font, 14px);
	color: var(--kpe-person-text, #fff);

	direction: ltr;
	text-align: left;

	box-sizing: border-box;
	width: 100%;
	min-height: 62vh;
	padding: clamp(28px, 5vh, 56px) 0;

	background:
		radial-gradient(
			ellipse 70% 80% at 100% -8%,
			color-mix(in srgb, var(--kpe-person-bg-light, #1a3a66) 70%, transparent),
			transparent 58%
		),
		radial-gradient(
			ellipse 55% 70% at -8% 110%,
			color-mix(in srgb, var(--kpe-person-heading, #f7c225) 16%, transparent),
			transparent 62%
		),
		linear-gradient(
			148deg,
			var(--kpe-person-bg-dark, #081426) 0%,
			var(--kpe-person-bg, #0c2140) 46%,
			var(--kpe-person-bg-mid, #0a1c36) 72%,
			var(--kpe-person-bg-light, #16345c) 100%
		);
}

.kpe-person-page *,
.kpe-person-page *::before,
.kpe-person-page *::after {
	box-sizing: border-box;
}

.kpe-person-shell {
	width: min(100% - 32px, var(--container-max-width, var(--content-width, var(--kpe-person-wrap, 1140px))));
	margin-inline: auto;

	display: grid;

	/* Identity column on the left, records column on the right */
	grid-template-columns: minmax(240px, var(--kpe-person-identity, 56%)) minmax(0, 1fr);

	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.kpe-person-identity {
	min-width: 0;
	text-align: left;
}

.kpe-person-photo {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;

	border: 3px solid var(--kpe-person-photo-border, #f7c225);
	border-radius: 16px;

	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
	background: rgba(255, 255, 255, 0.08);

	margin-bottom: 22px;

	display: block;
	text-decoration: none;
	color: inherit;
}

.kpe-person-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kpe-person-page.is-photo-original .kpe-person-photo:not(.is-empty) {
	aspect-ratio: auto;
	height: auto;
}

.kpe-person-page.is-photo-original .kpe-person-photo img {
	width: 100%;
	height: auto !important;
	max-height: none;
	object-fit: contain !important;
	object-position: center top;
}

.kpe-person-page.is-photo-zoom .kpe-person-photo {
	cursor: zoom-in;
}

.kpe-person-lightbox[hidden] {
	display: none !important;
}

.kpe-person-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;

	display: grid;
	place-items: center;

	padding: 20px;
	background: rgb(8 16 32 / 0%);
	backdrop-filter: blur(5px);
}

.kpe-person-lightbox__image {
	position: relative;
	z-index: 1;

	max-width: min(96vw, 1400px);
	max-height: 92vh;

	width: auto;
	height: auto;

	object-fit: contain;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.kpe-person-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	left: auto;

	width: 40px;
	height: 40px;

	border: 0;
	border-radius: 999px;

	background: #0c2140;
	color: #f7c225;

	font-size: 24px;
	line-height: 1;

	cursor: pointer;
	z-index: 2;
}

body.kpe-person-lightbox-open {
	overflow: hidden;
}

.kpe-person-photo.is-empty {
	display: grid;
	place-items: center;

	font-size: 2.6rem;
	font-weight: 800;
	color: var(--gold);
}

.kpe-person-eyebrow {
	display: inline-flex;

	margin: 0 0 10px;
	padding: 15px 0;

	background: rgba(12, 33, 64, 0.28);
	color: var(--gold);

	font-size: var(--kpe-person-job, 16px);
	font-weight: 700;
}

.kpe-person-name {
	margin: 0;

	font-size: var(--kpe-person-name, 34px);
	font-weight: 800;
	line-height: 1.3;

	color: var(--kpe-person-text, #fff);
}

.kpe-gold-line {
	width: 72px;
	height: 3px;

	margin: 14px 0 0;

	border-radius: 99px;
	background: var(--gold);
}

.kpe-gold-line--start {
	margin-top: 10px;
	margin-bottom: 16px;
}

.kpe-person-units {
	margin: 14px 0 0;

	color: var(--kpe-person-muted, #d5dce6);
	font-weight: 600;
	font-size: var(--kpe-person-meta, 14px);
}

.kpe-person-facts {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.kpe-person-fact {
	display: flex;
	align-items: flex-start;
	gap: 14px;

	border-radius: 18px;
	padding: 14px 16px;

	box-shadow: 0 10px 30px rgba(12, 33, 64, 0.08);
}

.kpe-person-fact__icon {
	flex: 0 0 auto;

	width: 44px;
	height: 44px;

	border-radius: 14px;

	display: grid;
	place-items: center;

	background: rgba(247, 194, 37, 0.14);
	color: var(--navy);
}

.kpe-person-fact__icon .kpe-icon {
	display: block;
	margin-top: 10px;
}

.kpe-person-fact__body {
	min-width: 0;
	flex: 1;
}

.kpe-person-fact span {
	display: block;

	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;

	margin-bottom: 4px;
}

.kpe-person-fact strong,
.kpe-person-fact a {
	color: #fff;

	font-size: 1rem;
	text-decoration: none;

	word-break: break-word;
}

.kpe-person-fact a:hover {
	color: #fff;
}

.kpe-person-records {
	min-width: 0;
	min-height: 0;

	display: flex;
	flex-direction: column;
	gap: 28px;

	text-align: left;
}

.kpe-person-block h2 {
	margin: 0;
	position: relative;

	font-size: var(--kpe-person-heading-size, 18px);
	font-weight: 800;

	color: var(--kpe-person-text, #fff);

	margin-bottom: 20px;
	text-align: left;
}

.kpe-person-block h2 span {
	color: var(--gold);
}

.kpe-person-prose {
	color: var(--kpe-person-muted, #d5dce6);

	font-size: 1.02rem;
	line-height: 1.9;

	text-align: left;
	direction: ltr;
}

.kpe-person-timeline {
	list-style: none;

	margin: 8px 0 0;
	padding: 0;

	display: grid;
	gap: 12px;

	/* Timeline line on the left */
	border-left: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
	border-right: 0;
}

.kpe-person-timeline li {
	position: relative;

	padding: 14px 0 14px 16px;
	margin-left: 18px;
	margin-right: 0;

	background: #fff;
	border: 1px solid #eaecf0;
	border-radius: 16px;

	font-size: var(--kpe-person-item, 13px);
	color: var(--navy);

	text-align: left;
	direction: ltr;
}

.kpe-person-timeline li::before {
	content: "";

	position: absolute;
	top: 35px;
	left: -25px;
	right: auto;

	width: 12px;
	height: 12px;

	border-radius: 50%;

	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(247, 194, 37, 0.18);
}

.kpe-person-timeline em {
	display: block;

	color: #1a5cad;
	font-style: normal;
	font-size: 0.86rem;
	font-weight: 700;

	margin-bottom: 4px;
}

.kpe-person-timeline strong {
	display: block;

	margin-bottom: 4px;
	color: var(--navy);
}

.kpe-person-timeline .kpe-person-place {
	display: block;

	color: var(--muted);
	font-size: 0.92rem;

	margin-bottom: 2px;
}

.kpe-person-timeline p {
	margin: 6px 0 0;

	color: var(--muted);
	line-height: 1.8;
}

/* Tablet and mobile */
@media (max-width: 900px) {

	.kpe-person-shell {
		grid-template-columns: 1fr;
		justify-items: stretch;
	}

	.kpe-person-identity {
		text-align: left;
	}

	.kpe-person-photo {
		width: 100%;
		margin-inline: auto;
	}

	.kpe-gold-line,
	.kpe-gold-line--start {
		margin-left: 0;
		margin-right: auto;
	}

	.kpe-person-fact {
		text-align: left;
	}

	.kpe-person-records {
		text-align: left;
	}
}
