/*
 * People profile.
 *
 * Spacing is written in px/rem rather than the theme's --space-* tokens: those
 * are defined twice with conflicting values (--space-xs is both 0.84rem and
 * 2.4rem depending on which sheet wins), which is what made the earlier layout
 * feel arbitrary. Colour still comes from the theme so the palette stays shared.
 */

/* Local aliases onto the shared tokens in gcn-tokens.css, kept so the rules
   below read the same as when they were written. */
.gcn-person {
	--gcn-muted: var(--gcn-text-muted);
	--gcn-ink: var(--gcn-text);
}

/* ---------- Hero ---------------------------------------------------------- */

.gcn-person__hero {
	background: linear-gradient(180deg, #f6f9fd 0%, #fdfefe 100%);
	border-bottom: 1px solid var(--gcn-rule);
}

.gcn-person__crumbs .brxe-breadcrumbs,
.gcn-person__crumbs {
	font-size: 13px;
	color: var(--gcn-muted);
}

.gcn-person__crumbs a {
	color: var(--gcn-muted);
	text-decoration: none;
}

.gcn-person__crumbs a:hover {
	color: var(--color-primary);
}

.gcn-person__identity {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 36px;
}

.gcn-person__portrait {
	flex: 0 0 168px;
	width: 168px;
}

/*
 * GeoDirectory renders the picture as a gallery: a carousel wrapped in a
 * Bootstrap ratio-16x9 box, which would letterbox a portrait. Flatten the whole
 * wrapper chain back down to a single square image.
 */
.gcn-person__portrait ul,
.gcn-person__portrait li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gcn-person__portrait .geodir-post-slider,
.gcn-person__portrait .geodir-image-container,
.gcn-person__portrait .geodir-images,
.gcn-person__portrait .carousel-item,
.gcn-person__portrait .ratio,
.gcn-person__portrait .embed-responsive {
	display: block !important;
	width: 168px !important;
	height: 168px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

/* Bootstrap sizes .ratio with a padding-top pseudo-element. */
.gcn-person__portrait .ratio::before {
	display: none !important;
}

.gcn-person__portrait .ratio > * {
	position: static !important;
}

.gcn-person__portrait img {
	width: 168px !important;
	height: 168px !important;
	object-fit: cover;
	border-radius: 50%;
	background: #fff;
	border: 5px solid #fff;
	box-shadow: 0 10px 30px rgba(23, 43, 77, 0.13);
}

.gcn-person__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--color-tertiary);
}

.gcn-person__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 168px;
	height: 168px;
	font-size: 54px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 50%;
	border: 5px solid #fff;
	box-shadow: 0 10px 30px rgba(23, 43, 77, 0.13);
}

.gcn-person__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.gcn-person__eyebrow a:hover {
	color: var(--color-primary);
}

.gcn-person__name {
	margin: 6px 0 0;
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--gcn-ink);
}

.gcn-person__aka {
	margin-top: 6px;
	font-size: 15px;
	font-style: italic;
	color: var(--gcn-muted);
}

.gcn-person__where {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--gcn-muted);
}

.gcn-person__pin {
	flex: 0 0 auto;
	color: var(--color-tertiary);
}

/* ---------- Chips --------------------------------------------------------- */

.gcn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.gcn-chip {
	display: inline-block;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-primary);
	background: #eef3fe;
	border: 1px solid #dbe6fd;
	border-radius: 999px;
}

/* ---------- Body ---------------------------------------------------------- */

.gcn-person__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 64px;
	align-items: start;
}

.gcn-person__lead {
	font-size: var(--gcn-text-xl);
	line-height: 1.6;
	color: var(--gcn-ink);
}

.gcn-person__prose {
	font-size: var(--gcn-text-lg);
	line-height: 1.75;
	color: #4a545f;
}

.gcn-person__prose p {
	margin: 0 0 1em;
}

.gcn-person__prose p:last-child {
	margin-bottom: 0;
}

/* A hairline instead of a heading: the lead already introduces the profile. */
.gcn-person__divider {
	height: 1px;
	margin: 26px 0;
	background: var(--gcn-rule);
	border: 0;
}

.gcn-person__gallery {
	margin-top: 34px;
}

.gcn-person__gallery ul {
	align-items: start;
}

.gcn-person__gallery li {
	overflow: hidden;
	border-radius: 14px;
}

/* The gallery paints each photo as a background on a div, not an <img>.
   The ratio comes from the element's own imageRatio setting. */
.gcn-person__gallery .bricks-layout-inner.image {
	transition: transform 0.35s ease;
}

.gcn-person__gallery a:hover .bricks-layout-inner.image {
	transform: scale(1.04);
}

.gcn-person__gallery ul {
	margin: 0;
	padding: 0;
}

/* ---------- Aside card ---------------------------------------------------- */

.gcn-person__card {
	position: sticky;
	top: 96px;
	padding: 28px 30px 30px;
	background: #fff;
	border: 1px solid var(--gcn-rule);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, 0.04), 0 12px 32px rgba(23, 43, 77, 0.06);
}

.gcn-person__card-title {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gcn-muted);
}

.gcn-person__card-title {
	margin-bottom: 18px;
}

.gcn-person__card-group + .gcn-person__card-group {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid var(--gcn-rule);
}

/* Each row arrives inside its own .brxe-shortcode wrapper, so the gap has to
   live on the row rather than on a sibling combinator. */
/* The detail row is defined once, in gcn-listing.css, which loads on every
   listing single including this one. */


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

@media (max-width: 991px) {
	.gcn-person__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.gcn-person__card {
		position: static;
	}
}

@media (max-width: 640px) {
	.gcn-person__identity {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.gcn-person__portrait,
	.gcn-person__portrait img,
	.gcn-person__initials,
	.gcn-person__portrait .geodir-post-slider,
	.gcn-person__portrait .geodir-image-container,
	.gcn-person__portrait .geodir-images,
	.gcn-person__portrait .carousel-item,
	.gcn-person__portrait .ratio,
	.gcn-person__portrait .embed-responsive {
		flex-basis: 128px;
		width: 128px;
		height: 128px;
		font-size: 40px;
	}
}

/* ---------- Area map ------------------------------------------------------ */

.gcn-person__area {
	background: var(--color-primary-bg);
	border-top: 1px solid var(--gcn-rule);
}

.gcn-person__area-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--gcn-ink);
}

.gcn-person__area-note {
	font-size: 14px;
	color: var(--gcn-muted);
}

.gcn-person__map {
	overflow: hidden;
	border: 1px solid var(--gcn-rule);
	border-radius: 16px;
	background: #eef1f4;
	box-shadow: 0 1px 2px rgba(23, 43, 77, 0.04), 0 12px 32px rgba(23, 43, 77, 0.06);
}

.gcn-person__map iframe {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
}

@media (max-width: 640px) {
	.gcn-person__map iframe {
		height: 280px;
	}
}
