.cml-menu-page {
	--cml-ink: var(--ast-global-color-2);
	--cml-highlight: var(--ast-global-color-3);
	--cml-accent: var(--ast-global-color-3);
	--cml-bar-bg: color-mix(in srgb, var(--ast-global-color-6) 29%, var(--ast-global-color-5));
	--cml-sticky-top: 70px;
	--cml-pills-h: 0px;
	--cml-anchor-offset: 100px;
}

.cml-menu--pomodoro {
	--cml-accent: #d54036;
}

@media (max-width: 767px) {
	.cml-menu-page {
		--cml-anchor-offset: calc(var(--cml-sticky-top) + var(--cml-pills-h) + 16px);
	}

	.cml-menu-page:has(.menu-anchors li + li) {
		--cml-anchor-offset: calc(var(--cml-sticky-top) + var(--cml-pills-h) + 72px);
	}
}

@media (min-width: 601px) and (max-width: 767px) {
	.admin-bar.cml-menu-page {
		--cml-sticky-top: 116px;
	}
}

.cml-menu-page #content .cml-menu-nav {
	max-width: none !important;
	margin-bottom: 10px;
}

.cml-menu-page #content .cml-menu-nav .uagb-buttons__wrap {
	justify-content: center;
}

.cml-menu-page #content .cml-menu-nav .wp-block-uagb-buttons-child {
	flex: 0 0 auto;
	margin: 4px;
}

.cml-menu-page #content .cml-menu-nav .uagb-button__wrapper {
	flex: none;
	margin: 0;
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater {
	min-height: 0;
	height: auto;
	padding: 7px 18px !important;
	background: transparent;
	border-style: none;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--cml-ink);
	transition: background-color .2s, box-shadow .2s;
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater .uagb-button__link {
	padding: 0;
	color: var(--cml-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap !important;
	transition: color .2s;
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater:is(:hover, :focus-visible) {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--cml-highlight);
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater:is(:hover, :focus-visible) .uagb-button__link {
	color: var(--cml-highlight);
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater:focus-visible {
	outline: 2px solid var(--cml-highlight);
	outline-offset: 2px;
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater.is-current,
.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater.is-current:is(:hover, :focus-visible) {
	background: var(--cml-ink);
	box-shadow: inset 0 0 0 1px var(--cml-ink);
}

.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater.is-current .uagb-button__link {
	color: var(--cml-highlight);
}

@media (max-width: 767px) {
	.cml-menu-page #content .cml-menu-nav {
		position: sticky;
		top: var(--cml-sticky-top);
		z-index: 98;
		margin-bottom: 0;
		padding: 6px 0;
		background: var(--cml-bar-bg);
		box-shadow: 0 0 0 100vmax var(--cml-bar-bg);
		clip-path: inset(0 -100vmax);
	}

	.cml-menu-page #content .cml-menu-nav .uagb-buttons__wrap {
		flex-wrap: nowrap !important;
		justify-content: flex-start;
		width: auto;
		max-width: none;
		margin-inline: calc(50% - 50vw);
		padding: 4px 16px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.cml-menu-page #content .cml-menu-nav .uagb-buttons__wrap::-webkit-scrollbar {
		display: none;
	}

	.cml-menu-page #content .cml-menu-nav .wp-block-uagb-buttons-child {
		margin: 0 3px;
	}

	.cml-menu-page #content .cml-menu-nav .wp-block-uagb-buttons-child:first-child {
		margin-left: auto;
	}

	.cml-menu-page #content .cml-menu-nav .wp-block-uagb-buttons-child:last-child {
		margin-right: auto;
	}

	.cml-menu-page #content .cml-menu-nav::before,
	.cml-menu-page #content .cml-menu-nav::after {
		position: absolute;
		top: 0;
		bottom: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		width: 44px;
		color: var(--cml-highlight);
		font-size: 26px;
		font-weight: 600;
		line-height: 1;
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s;
	}

	.cml-menu-page #content .cml-menu-nav::before {
		content: "‹";
		left: calc(50% - 50vw);
		justify-content: flex-start;
		padding-left: 6px;
		background: linear-gradient(to left, transparent, var(--cml-bar-bg) 55%);
	}

	.cml-menu-page #content .cml-menu-nav::after {
		content: "›";
		right: calc(50% - 50vw);
		justify-content: flex-end;
		padding-right: 6px;
		background: linear-gradient(to right, transparent, var(--cml-bar-bg) 55%);
	}

	.cml-menu-page #content .cml-menu-nav.is-scrollable:not(.at-start)::before,
	.cml-menu-page #content .cml-menu-nav.is-scrollable:not(.at-end)::after {
		opacity: 1;
	}

	.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater {
		padding: 6px 14px !important;
	}

	.cml-menu-page #content .cml-menu-nav a.uagb-buttons-repeater .uagb-button__link {
		font-size: 14px;
	}
}

.cml-menu-jump {
	display: none;
	position: relative;
	max-width: 280px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.cml-menu-jump {
		display: block;
	}
}

.cml-menu-jump select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: auto;
	min-height: 40px;
	margin: 0;
	padding: 8px 40px 8px 18px;
	border: 1.5px solid var(--cml-ink);
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}

.cml-menu-jump select,
.cml-menu-jump select:focus {
	color: var(--cml-ink);
	border-color: var(--cml-ink);
}

.cml-menu-jump select:focus-visible {
	outline: 2px solid var(--cml-highlight);
	outline-offset: 2px;
}

.cml-menu-jump option {
	color: var(--cml-ink);
	background: var(--ast-global-color-5);
}

.cml-menu-jump::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 2px solid var(--cml-highlight);
	border-bottom: 2px solid var(--cml-highlight);
	transform: rotate(45deg);
	pointer-events: none;
}

.cml-menu-page .menu-anchors {
	background: transparent;
	box-shadow: none;
}

.cml-menu-page .menu-anchors:not(:has(li + li)) {
	display: none;
}

@media (min-width: 768px) {
	.cml-menu-page .menu-anchors.sticky {
		position: static;
		width: auto;
	}
}

@media (max-width: 767px) {
	.cml-menu-page .menu-anchors:has(li + li) {
		position: sticky;
		top: calc(var(--cml-sticky-top) + var(--cml-pills-h));
		z-index: 98;
		min-height: 60px;
		margin-inline: -20px;
		padding: 10px 20px;
		background: var(--cml-bar-bg);
	}

	.cml-menu-page .menu-anchors:has(li + li) ul {
		display: none;
	}
}

.cml-menu-page .menu-container h2 {
	border-bottom-color: var(--cml-accent);
	scroll-margin-top: var(--cml-anchor-offset);
}

.cml-menu-page .menu-container .subsection_name {
	margin: 28px 0 12px;
	color: var(--cml-ink);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.cml-menu-page .menu-container .subsection_name.cml-note {
	margin: 6px 0 24px;
	padding: 2px 0 2px 16px;
	border-left: 3px solid var(--cml-highlight);
	font-size: 16px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
}

.cml-menu-page .menu-container .item-tag {
	align-self: flex-start;
	background-color: var(--cml-accent);
}

.cml-menu-page .menu-container .menu-item > .item-row:first-child {
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 10px;
}

.cml-menu-page .menu-container .menu-item > .item-row:first-child > .item-column:first-child {
	flex: 1 1 0;
	min-width: 0;
	max-width: none !important;
}

.cml-menu-page .menu-container .menu-item > .item-row:first-child > .item-column:not(:first-child) {
	flex: 0 0 auto;
}

@media (max-width: 1024px) {
	.cml-menu-page .menu-container .subsection_name {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.cml-menu-page .menu-container .subsection_name {
		margin: 22px 0 10px;
		font-size: 22px;
	}

	.cml-menu-page .menu-container .subsection_name.cml-note {
		font-size: 14px;
	}

	.cml-menu-page .menu-container .menu-item > .item-row:nth-child(2) p {
		font-size: 14px;
	}
}

.cml-menu-page .ast-single-entry-banner .entry-title img {
	width: 150px;
	height: auto;
	margin: 0 0 12px 10px;
}

.cml-menu-page .ast-single-entry-banner[data-post-type] .ast-container > .entry-title {
	margin-bottom: 4px;
}

.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs,
.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs * {
	font-size: 13px;
	line-height: 1.3;
}

.cml-menu-page .ast-breadcrumbs .trail-item img,
.cml-menu-page .ast-breadcrumbs .trail-item img + br {
	display: none;
}

.cml-menu-page .entry-content .wp-block-post-title img,
.cml-menu-page .entry-content .wp-block-post-title img + br {
	display: none;
}

@media (min-width: 768px) {
	.cml-menu-page .ast-single-entry-banner[data-post-type] {
		padding-bottom: 34px;
	}
}

@media (max-width: 1024px) {
	.cml-menu-page .ast-single-entry-banner .entry-title img {
		width: 110px;
		margin-bottom: 10px;
	}
}

@media (max-width: 767px) {
	.cml-menu-page .ast-single-entry-banner[data-post-type] {
		padding: 88px 20px 24px;
	}

	.cml-menu-page .ast-single-entry-banner .entry-title img {
		width: 90px;
		margin-bottom: 8px;
	}

	.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs,
	.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs * {
		font-size: 12px;
	}

	.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs .trail-items {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		overflow: hidden;
		white-space: nowrap;
	}

	.cml-menu-page .ast-single-entry-banner .ast-breadcrumbs .trail-end {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
