/* AURA People — public presentation. Inherits typography and colours from the theme. */
.aura-people-profile,
.aura-people-directory,
.aura-people-my-profile {
	--aura-people-gap: 1rem;
	--aura-people-radius: 8px;
	--aura-people-muted: color-mix(in srgb, currentColor 60%, transparent);
	--aura-people-line: color-mix(in srgb, currentColor 15%, transparent);
	box-sizing: border-box;
	max-width: 960px;
	margin-inline: auto;
}

.aura-people-profile__cover img {
	display: block;
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: var(--aura-people-radius);
}

.aura-people-profile__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--aura-people-gap);
	margin-block: var(--aura-people-gap);
}

.aura-people-profile__photo,
.aura-people-card__photo {
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.aura-people-profile__name {
	margin: 0;
}

.aura-people-profile__headline,
.aura-people-card__headline,
.aura-people-trajectory__dates,
.aura-people-trajectory__state {
	color: var(--aura-people-muted);
}

.aura-people-profile__links,
.aura-people-profile__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding: 0;
	list-style: none;
}

.aura-people-trajectory__list {
	padding: 0;
	list-style: none;
	border-inline-start: 2px solid var(--aura-people-line);
}

.aura-people-trajectory__item {
	position: relative;
	padding: 0 0 var(--aura-people-gap) var(--aura-people-gap);
}

.aura-people-trajectory__item.is-ended,
.aura-people-trajectory__item.is-inactive {
	opacity: 0.85;
}

.aura-people-directory__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--aura-people-gap);
}

.aura-people-card {
	display: flex;
	gap: 0.75rem;
	padding: var(--aura-people-gap);
	border: 1px solid var(--aura-people-line);
	border-radius: var(--aura-people-radius);
}

.aura-people-card__name {
	margin: 0 0 0.25rem;
	font-size: 1.05em;
}

.aura-people-directory__search {
	display: flex;
	gap: 0.5rem;
	margin-bottom: var(--aura-people-gap);
}

.aura-people-pagination {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: var(--aura-people-gap);
}

.aura-people-notice {
	padding: 0.75rem 1rem;
	border-inline-start: 4px solid currentColor;
	border-radius: 4px;
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.aura-people-my-profile fieldset {
	margin-bottom: var(--aura-people-gap);
	padding: var(--aura-people-gap);
	border: 1px solid var(--aura-people-line);
	border-radius: var(--aura-people-radius);
}

.aura-people-field label {
	display: block;
	font-weight: 600;
}

.aura-people-field input[type="text"],
.aura-people-field input[type="url"],
.aura-people-field input[type="email"],
.aura-people-field input[type="tel"],
.aura-people-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.aura-people-link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 0.25rem;
}

.aura-people-trajectory-consent {
	padding-inline-start: 1rem;
}

/* --------------------------------------------------------------- Media 0.2.0 */
.aura-people-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--aura-people-ratio, 1 / 1);
	border-radius: var(--aura-people-radius);
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.aura-people-media__poster,
.aura-people-media__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.aura-people-media__player {
	z-index: 1;
}

.aura-people-media__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.aura-people-media__icon {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55) center / 40% no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	transition: transform 0.15s ease-in-out;
}

.aura-people-media__play:hover .aura-people-media__icon,
.aura-people-media__play:focus-visible .aura-people-media__icon {
	transform: scale(1.08);
}

.aura-people-media.is-previewing .aura-people-media__icon {
	opacity: 0.35;
}

.aura-people-card--media {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.aura-people-card--media .aura-people-card__photo {
	display: none;
}

/*
 * The excerpt is revealed by hover and by keyboard focus, and stays in the
 * accessibility tree either way: it is clipped, never removed.
 */
.aura-people-card--reveal .aura-people-card__excerpt {
	max-height: 0;
	margin-block: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.aura-people-card--reveal:hover .aura-people-card__excerpt,
.aura-people-card--reveal:focus-within .aura-people-card__excerpt {
	max-height: 8rem;
	opacity: 1;
}

@media (hover: none) {
	/* No hover to simulate: the excerpt is simply there, and Play is a real button. */
	.aura-people-card--reveal .aura-people-card__excerpt {
		max-height: none;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aura-people-card--reveal .aura-people-card__excerpt,
	.aura-people-media__icon {
		transition: none;
	}
}

.aura-people-videos__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--aura-people-gap);
	padding: 0;
	list-style: none;
}

.aura-people-videos__title {
	margin: 0.5rem 0 0.25rem;
	font-size: 1.05em;
}

.aura-people-profile__media {
	flex: none;
	width: min(320px, 100%);
}

.aura-people-lightbox {
	width: min(90vw, 1100px);
	padding: 0;
	border: 0;
	background: #000;
}

.aura-people-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

.aura-people-lightbox .aura-people-media__player {
	position: static;
	aspect-ratio: 16 / 9;
	height: auto;
}

.aura-people-lightbox__close {
	position: absolute;
	inset-block-start: 0.5rem;
	inset-inline-end: 0.5rem;
	z-index: 3;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9) center / 55% no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E");
	cursor: pointer;
}
