/*
 * Exodus Serve Teams - front-end styles.
 * Values lifted from the live Divi Overlays implementation so the switch is invisible:
 *   teal:        #1ba2b9 (hover text #1ba3b9)
 *   buttons:     Gotham Bold 17px uppercase, 2px letter-spacing, 5px white border, 12px/28px padding
 *   card title:  Gotham Bold 40px uppercase on #1ba2b9, 13px vertical padding, 34px gap below
 *   description: Calluna 18px, line-height 1.9, black, 82% width
 *   meta lines:  Gotham Bold 21px uppercase, #383838, labels #1ba2b9
 * Doubled class names + !important are required to out-rank Divi's selectors.
 */

/* ---------- button grid ---------- */

.exodus-teams .exodus-teams-grid.exodus-teams-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 48px 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.exodus-teams .exodus-team-btn.exodus-team-btn {
	display: inline-block;
	padding: 12px 28px !important;
	color: #ffffff !important;
	background: transparent;
	border: 5px solid #ffffff;
	border-radius: 0;
	font-family: 'Gotham Bold', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase !important;
	line-height: 1.7em;
	cursor: pointer;
	transition: color 300ms ease 0ms, background-color 300ms ease 0ms, border 300ms ease 0ms;
}

.exodus-teams .exodus-team-btn.exodus-team-btn:hover {
	background-color: #ffffff;
	color: #1ba3b9 !important;
	border-color: #ffffff;
}

/* ---------- popup overlay ---------- */

.exodus-team-overlay.exodus-team-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: rgba(0, 0, 0, 0.5);
	-webkit-overflow-scrolling: touch;
}

.exodus-team-overlay[hidden] {
	display: none;
}

.exodus-team-overlay .exodus-team-close.exodus-team-close {
	position: absolute;
	top: 16px;
	right: 22px;
	padding: 6px;
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: opacity 200ms ease;
}

.exodus-team-overlay .exodus-team-close.exodus-team-close:hover {
	opacity: 0.7;
}

/* ---------- popup card ---------- */

.exodus-team-overlay .exodus-team-card {
	width: 100%;
	max-width: 840px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	background: #ffffff;
	box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
	padding-bottom: 32px;
}

.exodus-team-overlay .exodus-team-card-title.exodus-team-card-title {
	background-color: #1ba2b9;
	color: #ffffff !important;
	font-family: 'Gotham Bold', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 40px;
	font-weight: 400;
	letter-spacing: 2px;
	line-height: 1.2em;
	text-transform: uppercase !important;
	text-align: center;
	padding: 13px 20px !important;
	margin-bottom: 34px !important;
}

.exodus-team-overlay .exodus-team-card-body {
	width: 82%;
	margin: 0 auto;
}

.exodus-team-overlay .exodus-team-desc.exodus-team-desc,
.exodus-team-overlay .exodus-team-desc.exodus-team-desc p {
	font-family: 'Calluna', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px;
	line-height: 1.9em;
	color: #000000 !important;
	text-align: left;
}

.exodus-team-overlay .exodus-team-desc.exodus-team-desc p {
	padding-bottom: 1em;
	margin: 0;
}

.exodus-team-overlay .exodus-team-meta.exodus-team-meta {
	font-family: 'Gotham Bold', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 21px;
	line-height: 1.3em;
	text-transform: uppercase !important;
	color: #383838 !important;
	text-align: left;
	margin: 10px 0 0;
}

.exodus-team-overlay .exodus-team-meta .exodus-team-label {
	color: #1ba2b9;
}

.exodus-team-overlay .exodus-team-meta a.exodus-team-email {
	color: #383838 !important;
	text-decoration: none;
	border-bottom: 2px solid #1ba2b9;
	word-break: break-all;
}

.exodus-team-overlay .exodus-team-meta a.exodus-team-email:hover {
	color: #1ba2b9 !important;
}

/* lock page scroll while a popup is open */
body.exodus-team-open {
	overflow: hidden;
}

/* ---------- tablet ---------- */

@media (max-width: 980px) {
	.exodus-team-overlay .exodus-team-card {
		max-width: 95%;
	}

	.exodus-team-overlay .exodus-team-card-title.exodus-team-card-title {
		font-size: 32px;
	}
}

/* ---------- mobile ---------- */

@media (max-width: 767px) {
	.exodus-teams .exodus-teams-grid.exodus-teams-grid {
		gap: 22px 14px;
	}

	.exodus-teams .exodus-team-btn.exodus-team-btn {
		padding: 10px 18px !important;
		border-width: 3px;
		font-size: 14px;
		letter-spacing: 1.5px;
	}

	.exodus-team-overlay.exodus-team-overlay {
		padding: 56px 14px 24px;
	}

	.exodus-team-overlay .exodus-team-card {
		max-width: 100%;
		max-height: calc(100vh - 90px);
	}

	.exodus-team-overlay .exodus-team-card-title.exodus-team-card-title {
		font-size: 24px;
		letter-spacing: 1.5px;
		margin-bottom: 24px !important;
	}

	.exodus-team-overlay .exodus-team-card-body {
		width: 88%;
	}

	.exodus-team-overlay .exodus-team-desc.exodus-team-desc,
	.exodus-team-overlay .exodus-team-desc.exodus-team-desc p {
		font-size: 16px;
		line-height: 1.75em;
	}

	.exodus-team-overlay .exodus-team-meta.exodus-team-meta {
		font-size: 16px;
	}
}
