@import url('https://use.typekit.net/tyl5kqf.css');

html,
body {
	font-family: var(--mt-font-default);
	background-color: var(--mt-color-white);
	height: 100%;
}

#root {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
}
main > section {
	display: flex;
	flex-flow: row wrap;
	width: 100%;
}

header,
footer {
	flex: 0;
}

h1 {
	font-family: var(--mt-font-hdg);
	font-size: 2.5rem;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}
h2 {
	font-size: 1.7rem;
	font-weight: 800;
}

a {
	text-decoration: underline;
}
a::hover,
a::focus {
	text-decoration: none;
}

main a {
	color: var(--mt-color-red);
	font-weight: 700;
}

.button-group {
	display: flex;
	justify-content: center;
	column-gap: 1rem;
	padding-top: 1rem;
}

.link-fwd,
.link-back {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	color: var(--mt-color-red);
	text-transform: uppercase;
	text-decoration: none;
}
.link-fwd:after,
.link-back:before {
	content: '';
	background: url('/media/mpclo/images/mpc/template/chevron_right.svg') no-repeat center / contain;
	width: 1rem;
	height: 0.6rem;
}
.link-fwd:after {
	margin-left: 0.5rem;
}
.link-back:before {
	margin-right: 0.5rem;
	transform: rotate(180deg);
}

button.print {
	display: inline-flex;
	align-items: center;
	border: none;
	background: none;
	color: var(--mt-color-red);
	font-weight: 700;
	text-transform: uppercase;
}
button.print:after {
	content: '';
	background: url('/media/mpclo/images/mpc/template/icons/icon_print.svg') no-repeat center/contain;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: 0.5rem;
}

.nobr {
	white-space: nowrap;
}

.fineprint {
	font-size: var(--mt-font-size-small);
}

.box {
	padding: var(--mt-box-padding);
	border-radius: var(--mt-border-radius);
	background: var(--mt-color-white);
	box-shadow: var(--mt-box-shadow);
}
.box.box-grey {
	background: var(--mt-color-light-grey);
}

/* Borders */
.border {
	border-color: #dddedf !important;
}

.error:focus {
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tooltips */
.tooltip-inner {
	background-color: white;
	color: #221f20;
	border: 1px solid #ccc;
	font-style: italic;
	padding: 1rem;
}
.tooltip.show {
	opacity: 1;
}
.tooltip-inner p:last-of-type {
	margin-bottom: 0;
}
[data-popper-placement^='top'] .tooltip-arrow::before {
	border-top-color: white !important;
}
[data-popper-placement^='bottom'] .tooltip-arrow::before {
	border-bottom-color: white !important;
}
[data-popper-placement^='left'] .tooltip-arrow::before {
	border-left-color: white !important;
}
[data-popper-placement^='right'] .tooltip-arrow::before {
	border-right-color: white !important;
}

/* CSS Loader - DOM element defined in utilities.js */
.css-loader {
	z-index: 9;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mt-color-white);
	animation: loaderFade calc(var(--mt-duration) / 2) linear;
	transition-duration: var(--mt-duration);
}
.css-loader > div {
	transform: scale(0.75);
	animation: spinnerFade calc(var(--mt-duration) * 2) linear;
}
@keyframes loaderFade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes spinnerFade {
	0% {
		opacity: 0;
		transform: scale(2);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.75);
	}
	to {
		opacity: 1;
	}
}

/* BS Modal Override */
.modal-header {
	border-bottom: none;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
}
.modal-body {
	padding: calc(var(--bs-modal-padding) * 3);
}
@media screen and (max-width: 480px) {
	.modal-body {
		padding: 3rem 1rem 1rem;
	}
}

/* Tables */
.table-container {
	border-radius: var(--mt-border-radius);
	overflow: hidden;
}
table {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	border-collapse: collapse;
	border: 1px solid var(--mt-color-med-grey);
	border-bottom: 1rem solid var(--mt-color-purple);
}
table thead,
table tbody {
	position: relative;
}
table thead {
	background: var(--mt-color-purple);
}
table th {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05625rem;
	color: var(--mt-color-light-grey);
	background: var(--mt-color-purple);
	padding: 0.5rem 1.5rem;
}
table td {
	padding: 0.75rem 1.5rem;
	background: var(--mt-color-white);
	border-bottom: 1px solid var(--mt-color-med-grey);
}
table th:first-child,
table td:first-child {
	text-align: left;
}
table th:last-child,
table td:last-child {
	text-align: right;
}

table td.no-entries {
	text-align: center;
}
table td.no-entries p {
	margin: 0;
}

@media (max-width: 640px) {
	table th,
	table td {
		background-clip: padding-box;
		scroll-snap-align: end;
	}
	thead {
		z-index: 9;
		position: relative;
	}
	thead th {
		position: sticky;
		top: 0;
		border-top: 0;
		background-clip: padding-box;
	}
	tbody {
		z-index: 1;
		position: relative;
	}
	.table-container {
		overflow: auto !important;
		scroll-snap-type: both mandatory;
		max-height: 80vh;
	}
}

/**/
/* Alerts */
.alert,
.browser-alert {
	z-index: 9999;
	position: fixed;
	top: 0; /* To be set via JS when shown */
	left: 0;
	width: 100%;
	margin: 0;
	padding: 1rem 0;
	border-radius: 0;
	background: var(--mt-color-orange);
}
.alert {
	cursor: pointer;
}
.alert .alert-body:after,
.browser-alert button.close {
	content: '';
	z-index: 1;
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 1.25rem;
	height: 1.25rem;
	padding: 1rem;
	background: url('/media/mpclo/images/mpc/template/menu_close_white.svg') no-repeat center/1rem;
	filter: invert(1);
	transform: translateY(-50%);
}
.alert p,
.browser-alert p {
	margin-bottom: 0;
}
.alert a,
.browser-alert a {
	color: var(--mt-color-black);
}
.browser-alert .desktop-browsers img {
	width: 2.5rem;
	margin: 0 0.25rem;
}
@media (max-width: 640px) {
	.browser-alert button.close {
		top: 0.75rem;
		transform: none;
	}
}

/*  */
/* Subscription Push */
.subscribe {
	color: var(--mt-color-white);
	max-width: 1024px !important;
}
.subscribe .row {
	background: url('/media/mpclo/images/mpc/misc/subscribe_banner.png') no-repeat center left 25% / cover;
	padding: 1rem 1rem 1rem 25%;
}
.subscribe .link-fwd {
	position: relative;
	display: block;
	color: var(--mt-color-white);
}
.subscribe .link-fwd:after {
	position: absolute;
	top: 50%;
	right: -1rem;
	transform: translateY(-50%);
	filter: brightness(0) invert(1);
}
@media (max-width: 767px) {
	.subscribe .row {
		background: url('/media/mpclo/images/mpc/misc/subscribe_banner_mobile.png') no-repeat center top / cover;
		padding: 50% 1rem 1rem;
	}
}
@media (max-width: 479px) {
	.subscribe .row {
		background-position-y: 10%;
	}
}

.content-header {
	object-fit: cover;
	min-height: 3.75rem;
	width: 100%;
}

/*  */
/*  */
/* HEADER */
header {
	font-size: 1rem;
	transition-duration: var(--mt-duration);
	box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0);
}
header.desktop.sm {
	font-size: 0.8rem;
}

header.active {
	box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);
}

/* Header Top */
header .header-top {
	background: var(--mt-color-red);
	color: var(--mt-color-white);
	font-weight: 600;
}

header .header-top-content .nav {
	--bs-nav-link-color: var(--mt-color-white);
	--bs-nav-link-hover-color: var(--mt-color-white);
}
header .row {
	position: relative;
}
header .row.top {
	color: var(--mt-color-white);
	background: var(--mt-color-red);
}

header .welcome,
header .session {
	font-size: 0.8125em;
	line-height: 1;
}
header .welcome p {
	padding: 0.5rem;
	padding-bottom: calc(0.5rem - 0.125rem);
}

/* Header Points */
header .points ul {
	list-style: none;
	margin: 0;
	margin-top: 0.25em;
	padding: 0;
}
header .points li {
	color: var(--mt-color-nav-link);
	background-color: var(--mt-color-white);
	border-radius: var(--mt-border-radius) var(--mt-border-radius) 0 0;
}
header .points p {
	gap: 0.25em;
	line-height: 1;
}
header .points p > span {
	font-size: 0.6875em;
}
header .points .amt {
	font-family: var(--mt-font-hdg);
	font-size: 1.25em;
}

/* Header Bottom */
.header-bottom {
	background-color: var(--mt-color-white);
	font-family: var(--mt-font-hdg);
	font-weight: 700;
}

.header-bottom-content .nav {
	--bs-nav-link-color: var(--mt-color-black);
	--bs-nav-link-hover-color: var(--mt-color-black);
	text-transform: uppercase;
	font-family: var(--mt-font-hdg);
	font-weight: 700;
	font-size: 1em;
}

header .header-bottom-content .nav-link:focus,
header .header-bottom-content .nav-link:hover {
	color: var(--mt-color-red);
}

header .header-bottom-content .nav.nav-pills {
	font-family: var(--mt-font-default);
}
header .header-bottom-content .nav.nav-pills .nav-link {
	text-align: center;
}

header .nav-underline {
	align-items: center;
}
header .nav-underline .nav-link {
	padding-bottom: 0.25rem;
}
header .nav-item {
	position: relative;
}
header .header-bottom .nav:not(.nav-pills) .nav-link {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

/* Dropdown */
header .nav .dropdown-menu {
	top: -9999px;
	left: -9999px;
	display: block !important;
	min-width: unset;
	left: 0;
	border-radius: 0;
	border-top: 6px solid var(--mt-color-teal);
	transition: opacity var(--mt-duration) ease;
	opacity: 0;
}
header .nav .dropdown-menu.show {
	top: 0;
	left: 0;
	transform: translate3d(0px, 4rem, 0px) !important;
	opacity: 1;
}
header .dropdown-item.active,
header .dropdown-item:active {
	background-color: var(--mt-color-purple);
}
header .dropdown-item.focus,
header .dropdown-item:hover {
	color: var(--mt-color-red);
	background-color: unset;
}

header .header-bottom-content .nav-pills .nav-link {
	color: var(--mt-color-white);
	background: var(--mt-color-purple);
	border: 2px solid transparent;
	margin-top: 0.6rem;
}
header .header-bottom-content .nav-pills .nav-link.active,
header .header-bottom-content .nav-pills .show > .nav-link,
header .header-bottom-content .nav-pills .nav-link:hover,
header .header-bottom-content .nav-pills .nav-link:focus {
	color: var(--mt-color-purple);
	background: var(--mt-color-white);
	border-color: var(--mt-color-purple);
}

/* Header Logo */
header.desktop .logo {
	position: absolute;
	top: 1rem;
	left: 0;
	width: 12em;
}
header.desktop .logo img {
	position: relative;
	z-index: 1;
	width: 100%;
}

header.registration,
header.login {
	background: var(--mt-color-white);
}

/*  */
/* MOBILE */
header.mobile {
	background: var(--mt-color-white);
}
header.mobile .logo {
	width: 6.5rem;
}
header.mobile button.menu {
	width: 1rem;
	min-width: unset;
	height: 1rem;
	padding: 1rem;
	background: url('/media/mpclo/images/mpc/template/menu_hamburger_black.svg') no-repeat center / 1rem;
}
header.mobile p {
	font-size: 0.8rem;
}

header.mobile .offcanvas {
	max-width: 17rem;
}
header.mobile .offcanvas-body {
	margin-top: -3rem;
}
header.mobile .offcanvas .btn-close {
	position: fixed;
	z-index: 1;
	top: 1.25rem;
	right: 1.125rem;
	left: unset;
	width: 1rem;
	height: 1rem;
	border-radius: 0;
	opacity: 1;
	background: url('/media/mpclo/images/mpc/template/menu_close_red.svg') no-repeat center / 1.25rem;
}

/* Logged-in */
header.mobile .offcanvas.logged-in {
	background: var(--mt-color-red);
}
header.mobile .offcanvas.logged-in .offcanvas-body {
	margin-top: 0;
}
header.mobile .offcanvas.logged-in .btn-close {
	background: url('/media/mpclo/images/mpc/template/menu_close_white_redborder.svg') no-repeat center / 1.25rem;
	opacity: 1;
}

header.mobile .offcanvas-body .welcome,
header.mobile .offcanvas-body .session .nav-link {
	color: var(--mt-color-white);
}
header.mobile .offcanvas-body .session .nav-link {
	font-size: 1rem;
	font-weight: 700;
}
header.mobile .offcanvas-body .points li {
	border-radius: var(--mt-border-radius);
}

/* Header-bottom nav */
header.mobile .offcanvas-body .header-bottom-content {
	background: var(--mt-color-white);
}

header.mobile .offcanvas-body .header-bottom-content .nav-heading,
header.mobile .offcanvas-body .header-bottom-content ul.nav {
	font-size: 1.25rem;
}
header.mobile .offcanvas-body .header-bottom-content ul.subnav {
	font-size: 1.125rem;
}
/**/
header.mobile .offcanvas-body .header-bottom-content .nav.nav-pills {
	font-size: 1rem;
}
header.mobile .offcanvas-body .header-bottom-content .nav .nav-link:focus,
header.mobile .offcanvas-body .header-bottom-content .nav .nav-link:active {
	color: var(--mt-color-red);
}
header.mobile .offcanvas-body .header-bottom-content .nav .nav-link {
	-webkit-tap-highlight-color: var(--mt-color-red);
}
header.mobile .offcanvas-body .header-bottom-content .nav .nav-link.red {
	color: var(--mt-color-red);
}

/*  */
/* FOOTER */
footer .logo {
	width: 6rem;
}

footer small {
	display: inline-block;
	font-size: 0.8rem;
}

footer .top {
	background: var(--mt-color-light-grey);
}
footer .top .nav-item {
	position: relative;
}
footer .top .nav-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 30%;
	transform: translateY(-50%);
	background: var(--mt-color-black);
}
footer .top .nav-link {
	color: var(--mt-color-black);
	font-size: 0.75rem;
}
footer .top .nav-link:focus,
footer .top .nav-link:hover {
	color: var(--mt-color-red);
}
footer .top .copyright {
	font-size: var(--mt-font-size-small);
}

footer .bottom {
	color: var(--mt-color-white);
	background: var(--mt-color-red);
}
footer .bottom .legal {
	font-size: var(--mt-font-size-small);
}

/*  */
/* Mobile */
@media screen and (max-width: 640px) {
	footer .top .row {
		flex-direction: column;
	}
	footer .top .row > * {
		width: 100%;
		text-align: center;
	}
	footer .top .nav {
		justify-content: center !important;
		width: 100%;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}
	footer .top .nav .nav-item > a {
		display: inline-block;
	}
	footer .copyright {
		width: 100%;
		justify-content: center !important;
	}
}

@media screen and (max-width: 480px) {
	.box {
		padding: 1rem;
	}

	footer .top .nav .nav-item:first-child {
		width: 100%;
	}
	footer .top .nav .nav-item:first-child::after {
		display: none;
	}
}
