:root {
	--mtm-accent: #86d8d8;
	--mtm-text: #16191b;
	--mtm-muted: #6d7478;
	--mtm-border: #dfeaec;
	--mtm-hover: #f4fbfb;
	--mtm-row-gap: 10px;
}

.mtm-menu,
.mtm-menu * {
	box-sizing: border-box;
}

.mtm-menu {
	width: 100%;
	color: var(--mtm-text);
	font-size: 14px;
}

.mtm-section + .mtm-section {
	margin-top: 30px;
}

.mtm-section__title {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .28em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--mtm-muted);
}

.mtm-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtm-list--children {
	display: none;
	padding-left: 16px;
}

.mtm-list--children.is-open,
.mtm-menu[data-collapsible="no"] .mtm-list--children {
	display: block;
}

.mtm-row {
	display: flex;
	align-items: center;
	min-width: 0;
}

.mtm-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	padding: 7px 3px;
	color: inherit;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}

.mtm-link:hover,
.mtm-item.is-current > .mtm-row .mtm-link,
.mtm-item.is-current > .mtm-link {
	color: var(--mtm-accent);
}

.mtm-name {
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.35;
}

.mtm-count {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: 8px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--mtm-muted);
}

.mtm-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	border: 1px solid var(--mtm-border);
	border-radius: 50%;
	background: transparent;
	color: var(--mtm-accent);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	transition: border-color .2s ease, background-color .2s ease;
}

.mtm-link:hover .mtm-badge,
.mtm-item.is-current > .mtm-row .mtm-badge,
.mtm-item.is-current > .mtm-link .mtm-badge {
	border-color: var(--mtm-accent);
	background: var(--mtm-hover);
}

.mtm-badge svg {
	width: 15px;
	height: 15px;
}

.mtm-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin: 0 0 0 2px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mtm-muted);
	cursor: pointer;
}

.mtm-toggle:hover,
.mtm-toggle:focus-visible {
	background: var(--mtm-hover);
	color: var(--mtm-text);
}

.mtm-toggle svg {
	width: 15px;
	height: 15px;
	transition: transform .2s ease;
}

.mtm-toggle[aria-expanded="true"] svg {
	transform: rotate(90deg);
}

.mtm-depth-1 > .mtm-row .mtm-link,
.mtm-depth-2 > .mtm-row .mtm-link,
.mtm-depth-3 > .mtm-row .mtm-link {
	padding-top: 5px;
	padding-bottom: 5px;
}

.mtm-depth-1 .mtm-badge,
.mtm-depth-2 .mtm-badge,
.mtm-depth-3 .mtm-badge {
	flex-basis: 25px;
	width: 25px;
	height: 25px;
	font-size: 11px;
}

/* Badges in regular WordPress navigation menus. */
.mtm-nav-item > a {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

.mtm-nav-item > a .mtm-badge {
	flex-basis: 27px;
	width: 27px;
	height: 27px;
}

@media (max-width: 767px) {
	.mtm-link {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}
