/**
 * MSSL Page Sections.
 *
 * Navigation is intentionally scoped so unrestricted section content keeps the
 * normal theme and block styles selected by the editor.
 */

.mssl-sport-sections {
	--mssl-sections-blue: #1a63af;
	--mssl-sections-ink: #231f20;
	--mssl-sections-border: rgba(35, 31, 32, 0.2);
	clear: both;
	margin: 40px 0 0;
}

.mssl-sport-sections__nav {
	margin: 0 0 32px;
	position: relative;
	z-index: 10;
}

.mssl-sport-sections__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.mssl-sport-sections__mobile-toggle {
	display: none;
}

.entry-content .mssl-sport-sections__mobile-toggle,
.mssl-sport-sections__mobile-toggle {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.96);
	border: 2px solid var(--mssl-sections-blue);
	border-radius: 4px;
	color: var(--mssl-sections-blue);
	cursor: pointer;
	font-family: "Outfit", sans-serif;
	gap: 12px;
	min-height: 58px;
	padding: 8px 12px;
	text-align: left;
	width: 100%;
}

.entry-content .mssl-sport-sections__mobile-toggle:hover,
.entry-content .mssl-sport-sections__mobile-toggle:focus,
.mssl-sport-sections__mobile-toggle:hover,
.mssl-sport-sections__mobile-toggle:focus {
	background-color: #fff !important;
	border-color: var(--mssl-sections-ink);
	color: var(--mssl-sections-blue);
}

.entry-content .mssl-sport-sections__mobile-toggle:focus-visible,
.mssl-sport-sections__mobile-toggle:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--mssl-sections-blue);
	outline: 0;
}

.mssl-sport-sections__mobile-current-icon {
	align-items: center;
	background: var(--mssl-sections-blue);
	border-radius: 4px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 40px;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.mssl-sport-sections__mobile-current-icon > .mssl-sport-sections__icon {
	color: inherit;
	font-size: 17px;
}

.mssl-sport-sections__mobile-current-icon:empty {
	display: none;
}

.mssl-sport-sections__mobile-toggle-text {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.mssl-sport-sections__mobile-toggle-text strong {
	color: var(--mssl-sections-blue);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.mssl-sport-sections__mobile-chevron {
	align-items: center;
	display: inline-flex;
	flex: 0 0 28px;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.mssl-sport-sections__mobile-chevron::before {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 9px;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 140ms ease;
	width: 9px;
}

.mssl-sport-sections__mobile-toggle[aria-expanded="true"] .mssl-sport-sections__mobile-chevron::before {
	transform: rotate(225deg) translate(-2px, -2px);
}

.entry-content .mssl-sport-sections__tab,
.mssl-sport-sections__tab {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid var(--mssl-sections-blue);
	border-radius: 4px;
	color: var(--mssl-sections-blue);
	display: inline-flex;
	flex: 1 1 180px;
	font-family: "Outfit", sans-serif;
	font-size: 16px;
	font-weight: 800;
	gap: 10px;
	justify-content: center;
	letter-spacing: 0.8px;
	line-height: 1.2;
	max-width: 280px;
	min-height: 56px;
	padding: 12px 18px;
	text-align: center;
	text-transform: uppercase;
}

.entry-content .mssl-sport-sections__tab:hover,
.entry-content .mssl-sport-sections__tab:focus,
.mssl-sport-sections__tab:hover,
.mssl-sport-sections__tab:focus,
.entry-content .mssl-sport-sections__tab.is-active,
.mssl-sport-sections__tab.is-active {
	background: var(--mssl-sections-blue);
	color: #fff;
}

.entry-content .mssl-sport-sections__tab:focus-visible,
.mssl-sport-sections__tab:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--mssl-sections-ink);
	outline: 0;
}

.mssl-sport-sections .mssl-sport-sections__icon {
	align-items: center;
	align-self: center;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	line-height: 1;
	vertical-align: middle;
}

.mssl-sport-sections__panel {
	border-top: 4px solid var(--mssl-sections-blue);
	margin: 0 0 42px;
	padding: 24px 0 0;
	scroll-margin-top: 120px;
}

.mssl-sport-sections__panel[hidden] {
	display: none !important;
}

.mssl-sport-sections__panel:focus {
	outline: 0;
}

.mssl-sport-sections__panel:focus-visible {
	box-shadow: 0 0 0 3px rgba(26, 99, 175, 0.3);
}

.mssl-sport-sections__header {
	margin: 0 0 28px;
	padding: 0 0 16px;
}

.entry-content .mssl-sport-sections__heading,
.mssl-sport-sections__heading {
	align-items: center;
	color: var(--mssl-sections-ink);
	display: flex;
	font-family: "Outfit", sans-serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	gap: 14px;
	letter-spacing: 0.5px;
	line-height: 1.05;
	margin: 0;
	text-transform: uppercase;
}

.mssl-sport-sections__heading .mssl-sport-sections__icon {
	background: var(--mssl-sections-blue);
	border-radius: 4px;
	color: #fff;
	font-size: 20px;
	height: 44px;
	line-height: 1;
	width: 44px;
}

.mssl-sport-sections__heading .mssl-sport-sections__icon::before {
	display: block;
	line-height: 1;
}

.mssl-sport-sections__content > :last-child {
	margin-bottom: 0;
}

@media only screen and (max-width: 640px) {
	.mssl-sport-sections {
		margin-top: 28px;
	}

	.mssl-sport-sections__nav {
		margin-bottom: 24px;
	}

	.mssl-sport-sections.is-enhanced .mssl-sport-sections__mobile-toggle {
		display: flex;
	}

	.mssl-sport-sections.is-enhanced .mssl-sport-sections__tabs {
		display: none;
	}

	.mssl-sport-sections.is-enhanced .mssl-sport-sections__tabs.is-mobile-open {
		background: #fff;
		border: 2px solid var(--mssl-sections-blue);
		border-radius: 4px;
		box-shadow: 0 14px 30px rgba(35, 31, 32, 0.2);
		display: flex;
		flex-direction: column;
		left: 0;
		max-height: min(70vh, 520px);
		overflow-y: auto;
		padding: 8px;
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
	}

	.entry-content .mssl-sport-sections__tab,
	.mssl-sport-sections__tab {
		flex-basis: calc(50% - 5px);
		font-size: 14px;
		max-width: none;
		min-height: 50px;
		padding: 10px 12px;
	}

	.entry-content .mssl-sport-sections.is-enhanced .mssl-sport-sections__tabs.is-mobile-open .mssl-sport-sections__tab,
	.mssl-sport-sections.is-enhanced .mssl-sport-sections__tabs.is-mobile-open .mssl-sport-sections__tab {
		flex: 0 0 auto;
		justify-content: flex-start;
		max-width: none;
		width: 100%;
	}

	.mssl-sport-sections__panel {
		padding-top: 18px;
		scroll-margin-top: 90px;
	}

	.entry-content .mssl-sport-sections__heading,
	.mssl-sport-sections__heading {
		color: #fff;
		font-size: 28px;
		gap: 10px;
	}

	.mssl-sport-sections__heading .mssl-sport-sections__icon {
		font-size: 17px;
		height: 38px;
		width: 38px;
	}
}

@media only screen and (max-width: 400px) {
	.entry-content .mssl-sport-sections__tab,
	.mssl-sport-sections__tab {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mssl-sport-sections__tab,
	.mssl-sport-sections__mobile-chevron::before {
		transition: none;
	}
}
