/*
 * Homepage regional splash
 */

.splash-modal {
	width: min(44rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2.5rem);
	margin: auto;
	padding: 0;
	border: 0;
	background: #fff;
	color: #000;
	overflow: hidden;
	box-shadow: 0 1.25rem 3rem rgba(0, 20, 40, 0.28);
}

.splash-modal[open] {
	display: flex;
	flex-direction: column;
}

.splash-modal::backdrop {
	background: rgba(0, 44, 88, 0.72);
}

.splash-modal__header {
	position: relative;
	flex: 0 0 auto;
	padding: 1.5rem 3.25rem 1.25rem;
	text-align: center;
}

.splash-modal__logo {
	display: inline-block;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	object-fit: cover;
	background-color: #002c58;
}

.splash-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #002c58;
	color: #fff;
	cursor: pointer;
}

.splash-modal__close:hover,
.splash-modal__close:focus-visible {
	background: #58789d;
}

.splash-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	max-height: calc(100dvh - 16.5rem);
	overflow: auto;
	overscroll-behavior: contain;
	overflow-wrap: break-word;
	padding: 0.75rem 2rem 1.25rem;
	-webkit-overflow-scrolling: touch;
}

.splash-modal__body img {
	max-width: 100%;
	height: auto;
}

.splash-modal__intro + .splash-tabs {
	margin-top: 0.5rem;
}

.splash-tabs__list {
	display: flex;
	gap: 0.25rem;
	margin: 0.25rem -2rem 1rem;
	padding: 0 2rem;
	border-bottom: 1px solid #e4e8ee;
	background: #fff;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.splash-modal button.splash-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex: 0 0 auto;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #58789d;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.splash-modal button.splash-tabs__tab[aria-selected="true"] {
	color: #002c58;
	border-bottom-color: #002c58;
	box-shadow: none;
}

.splash-modal button.splash-tabs__tab:hover,
.splash-modal button.splash-tabs__tab:focus {
	color: #002c58;
	background: transparent;
	box-shadow: none;
}

.splash-modal__body .splash-tabs__icon {
	width: 1.25rem;
	height: 1.25rem;
	max-width: 1.25rem;
	object-fit: contain;
}

.splash-tabs__panel[hidden] {
	display: none !important;
}

.splash-modal__footer {
	flex: 0 0 auto;
	padding: 1rem 2rem 1.5rem;
	border-top: 1px solid #e4e8ee;
	background: #fff;
	text-align: center;
}

.splash-modal__dismiss {
	min-width: 7.5rem;
	padding: 0.8rem 1.75rem;
	border: 0;
	background: #58789d;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.03em;
	line-height: 1.25;
	cursor: pointer;
}

.splash-modal__dismiss:hover,
.splash-modal__dismiss:focus-visible {
	background: #002c58;
	color: #fff;
}

.splash-modal__close:focus,
.splash-modal__dismiss:focus,
.splash-modal__body:focus {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #002c58;
}

.splash-modal .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.splash-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.splash-modal__header {
		padding-right: 3.25rem;
		padding-left: 1.25rem;
	}

	.splash-modal__body,
	.splash-modal__footer {
		padding-right: 1.25rem;
		padding-left: 1.25rem;
	}

	.splash-tabs__list {
		margin-right: -1.25rem;
		margin-left: -1.25rem;
		padding-right: 1.25rem;
		padding-left: 1.25rem;
	}

	.splash-modal__logo {
		width: 4.5rem;
		height: 4.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.splash-modal,
	.splash-modal::backdrop {
		animation: none;
	}
}

@media print {
	.splash-modal {
		display: none !important;
	}
}
