/*
 * Homepage speaker cards and profile dialogs.
 * All selectors are limited to the server-enhanced speaker modules.
 */

.highlights-speaker-card {
	cursor: pointer;
}

.highlights-speaker-card:focus {
	outline: none;
}

.highlights-speaker-card:focus-visible {
	border-radius: 10px;
	outline: 3px solid #00f0bf;
	outline-offset: 5px;
}

.highlights-speaker-card:focus-visible .dsm-image-reveal-overlay {
	visibility: visible !important;
	opacity: 1;
	transform: scaleX(1) !important;
}

.highlights-speaker-card:focus-visible .dsm-image-reveal-text,
.highlights-speaker-card:focus-visible .dsm-image-reveal-text .char {
	visibility: visible !important;
	animation: none !important;
}

.area-outer-wrap.highlights-speaker-area {
	width: min(1000px, 94vw) !important;
	max-width: 1000px !important;
}

.highlights-speaker-dialog.et_pb_section {
	box-sizing: border-box;
	width: min(980px, calc(100vw - 32px)) !important;
	max-width: 980px !important;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 0 auto !important;
	padding: 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	border: 1px solid rgba(101, 190, 169, 0.55);
	border-radius: 26px !important;
	background: #ffffff !important;
	box-shadow: 0 28px 90px rgba(0, 32, 61, 0.42) !important;
	scrollbar-color: #65bea9 #eef5f3;
	scrollbar-width: thin;
}

.highlights-speaker-dialog .highlights-speaker-dialog__row.et_pb_row {
	display: grid !important;
	grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
	align-items: stretch;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-height: 520px;
	margin: 0 !important;
	padding: 0 !important;
	background: #ffffff;
}

.highlights-speaker-dialog .highlights-speaker-dialog__row::after {
	display: none !important;
}

.highlights-speaker-profile__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 100%;
	margin: 0;
	padding: clamp(34px, 5vw, 54px);
	overflow: hidden;
	background: #003464;
	box-shadow: inset -5px 0 0 #00f0bf;
	isolation: isolate;
}

.highlights-speaker-profile__media::before,
.highlights-speaker-profile__media::after {
	position: absolute;
	z-index: -1;
	width: 154px;
	height: 154px;
	border: 1px solid rgba(0, 240, 191, 0.5);
	content: '';
	transform: rotate(45deg);
}

.highlights-speaker-profile__media::before {
	top: -78px;
	left: -66px;
}

.highlights-speaker-profile__media::after {
	right: -76px;
	bottom: -78px;
	border-color: rgba(101, 190, 169, 0.5);
}

.highlights-speaker-profile__portrait {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 340px);
	height: auto;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 20px;
	object-fit: cover;
	object-position: center;
	box-shadow: 0 24px 54px rgba(0, 24, 47, 0.42);
}

.highlights-speaker-dialog .highlights-speaker-profile__content.et_pb_column {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: clamp(42px, 5.4vw, 68px) !important;
	background: #ffffff;
}

.highlights-speaker-dialog .highlights-speaker-profile__copy.et_pb_module {
	width: 100%;
	margin: 0 !important;
}

.highlights-speaker-dialog .highlights-speaker-profile__copy .et_pb_text_inner {
	color: #264b67 !important;
}

.highlights-speaker-profile__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px !important;
	color: #41677e !important;
	font-family: 'rubikMedium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 12px;
	letter-spacing: 0.15em;
	line-height: 1.4;
	text-transform: uppercase;
}

.highlights-speaker-profile__eyebrow::before {
	display: block;
	flex: 0 0 34px;
	width: 34px;
	height: 3px;
	background: #00f0bf;
	content: '';
}

.highlights-speaker-dialog .highlights-speaker-profile__copy h3 {
	max-width: 560px;
	margin: 0;
	padding: 0;
	color: #003464 !important;
	font-family: 'rubikBold', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: clamp(32px, 4.1vw, 46px) !important;
	line-height: 1.06 !important;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.highlights-speaker-dialog .highlights-speaker-profile__copy h3:focus {
	outline: none;
}

.highlights-speaker-profile__country {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin: 18px 0 0 !important;
	padding: 6px 14px;
	border: 1px solid rgba(101, 190, 169, 0.72);
	border-radius: 999px;
	background: rgba(101, 190, 169, 0.12);
	color: #003464 !important;
	font-family: 'rubikMedium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 13px;
	line-height: 1.35;
}

.highlights-speaker-profile__biography {
	max-width: 62ch;
	margin: 28px 0 0 !important;
	color: #264b67 !important;
	font-family: 'rubikLight', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	line-height: 1.72;
}

@media (min-width: 768px) {
	.highlights-speaker-profile__biography {
		text-align: justify;
		text-justify: inter-word;
	}
}

.highlights-speaker-area .da-close {
	top: 14px !important;
	right: 14px !important;
	box-sizing: border-box !important;
	width: 44px !important;
	height: 44px !important;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: #003464 !important;
	box-shadow: 0 10px 26px rgba(0, 32, 61, 0.28) !important;
	color: #ffffff !important;
	font-size: 25px !important;
	line-height: 40px !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

.highlights-speaker-area .da-close:hover {
	border-color: #00f0bf;
	background: #003464 !important;
	color: #ffffff !important;
	transform: scale(1.04) !important;
}

.highlights-speaker-area .da-close:focus-visible {
	border-color: #ffffff;
	outline: 3px solid #00f0bf;
	outline-offset: 3px;
}

.highlights-speaker-area[aria-hidden='false'] .highlights-speaker-dialog__row {
	animation: highlights-speaker-dialog-enter 280ms ease-out both;
}

@keyframes highlights-speaker-dialog-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
	.highlights-speaker-card .dsm-image-reveal-overlay {
		display: none !important;
	}

	.highlights-speaker-card .dsm-image-reveal-text-wrapper {
		top: auto;
		bottom: 0;
		box-sizing: border-box;
		height: auto;
		min-height: 64px;
		padding: 13px 15px;
		background: rgba(0, 52, 100, 0.9);
	}

	.highlights-speaker-card .dsm-image-reveal-text,
	.highlights-speaker-card .dsm-image-reveal-text .char {
		visibility: visible !important;
		animation: none !important;
	}

	.highlights-speaker-card .dsm-image-reveal-text {
		margin: 0 auto;
		color: #ffffff !important;
		font-size: 17px;
		line-height: 1.2;
	}
}

@media (max-width: 800px) {
	.area-outer-wrap.highlights-speaker-area {
		width: 100% !important;
		max-width: none !important;
	}

	.highlights-speaker-dialog.et_pb_section {
		width: calc(100vw - 18px) !important;
		max-height: calc(100vh - 18px);
		max-height: calc(100dvh - 18px);
		border-radius: 20px !important;
	}

	.highlights-speaker-dialog .highlights-speaker-dialog__row.et_pb_row {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.highlights-speaker-profile__media {
		min-height: 0;
		padding: 52px 26px 28px;
		box-shadow: inset 0 -5px 0 #00f0bf;
	}

	.highlights-speaker-profile__portrait {
		width: min(100%, 260px);
		border-radius: 17px;
	}

	.highlights-speaker-dialog .highlights-speaker-profile__content.et_pb_column {
		padding: 32px 24px 38px !important;
	}

	.highlights-speaker-dialog .highlights-speaker-profile__copy h3 {
		font-size: clamp(30px, 8.5vw, 40px) !important;
	}

	.highlights-speaker-profile__biography {
		margin-top: 24px !important;
		font-size: 15px;
		line-height: 1.68;
	}

	.highlights-speaker-area .da-close {
		top: 10px !important;
		right: 10px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.highlights-speaker-area[aria-hidden='false'] .highlights-speaker-dialog__row {
		animation: none !important;
	}

	.highlights-speaker-card:hover .dsm-image-reveal-overlay,
	.highlights-speaker-card:focus-visible .dsm-image-reveal-overlay {
		visibility: visible !important;
		transform: scaleX(1) !important;
		transition: none !important;
	}

	.highlights-speaker-card:hover .dsm-image-reveal-text,
	.highlights-speaker-card:hover .dsm-image-reveal-text .char,
	.highlights-speaker-card:focus-visible .dsm-image-reveal-text,
	.highlights-speaker-card:focus-visible .dsm-image-reveal-text .char {
		visibility: visible !important;
		animation: none !important;
		transition: none !important;
	}

	.highlights-speaker-area .da-close {
		transition: none !important;
	}
}
