.mdn-nav-root {
	display: none !important;
}

.mdn-topbar-account {
	display: none !important;
}

@media (min-width: 1025px) {
	:root {
		--mdn-focus: #7aa7ff;
	}

	.mdn-nav-root {
		display: flex !important;
	}

	.mdn-group {
		position: relative;
	}

	.mdn-summary {
		align-items: center;
		cursor: pointer;
		display: flex;
		list-style: none;
		user-select: none;
	}

	.mdn-summary::-webkit-details-marker {
		display: none;
	}

	.mdn-summary-icon,
	.mdn-summary-icon svg {
		display: block;
		height: 22px;
		width: 22px;
	}

	.mdn-chevron {
		height: 18px;
		margin-left: auto;
		transition: transform 160ms ease;
		width: 18px;
	}

	.mdn-group[open] .mdn-chevron {
		transform: rotate(180deg);
	}

	.mdn-summary:focus-visible,
	.mdn-link:focus-visible {
		outline: 3px solid color-mix(in srgb, var(--mdn-focus) 78%, white);
		outline-offset: 3px;
	}

	/* MuzeLinks: four frequent destinations plus two plain-language groups. */
	body.mdn-ml-ready #mlt-sidebar > nav[aria-label="Main navigation"] {
		display: none !important;
	}

	.mdn-ml-nav {
		flex-direction: column;
		gap: 6px;
		margin: 10px 0 12px;
	}

	.mdn-ml-nav .mlt-nav-link,
	.mdn-ml-nav .mdn-summary {
		align-items: center;
		border: 1px solid transparent;
		border-radius: 13px;
		box-sizing: border-box;
		color: inherit;
		display: flex;
		font-size: 14px;
		font-weight: 700;
		gap: 12px;
		line-height: 1.2;
		min-height: 46px;
		padding: 11px 12px;
		text-decoration: none;
		transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
		width: 100%;
	}

	.mdn-ml-nav .mlt-nav-link:hover,
	.mdn-ml-nav .mdn-summary:hover,
	.mdn-ml-nav .mdn-group[open] > .mdn-summary {
		background: rgba(77, 126, 255, 0.12);
		border-color: rgba(122, 167, 255, 0.34);
		color: #9dc0ff;
		transform: translateX(2px);
	}

	.mdn-ml-nav .mlt-nav-link.is-active,
	.mdn-ml-nav .mlt-nav-link[aria-current="page"],
	.mdn-ml-nav .mdn-group.has-current > .mdn-summary {
		background: linear-gradient(135deg, rgba(63, 112, 231, 0.24), rgba(102, 77, 230, 0.16));
		border-color: rgba(122, 167, 255, 0.5);
		color: #c9ddff;
	}

	.mdn-ml-nav .mlt-icon {
		flex: 0 0 22px;
		height: 22px;
		width: 22px;
	}

	.mdn-ml-nav .mdn-panel {
		background: rgba(8, 18, 41, 0.96);
		border: 1px solid rgba(122, 167, 255, 0.24);
		border-radius: 14px;
		box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
		display: grid;
		gap: 4px;
		margin: 6px 2px 4px 12px;
		padding: 6px;
	}

	.mdn-ml-nav .mdn-panel .mlt-nav-link {
		font-size: 13px;
		min-height: 40px;
		padding: 9px 10px;
	}

	/* AMUZEME: frequent destinations stay visible; lower-frequency tools are grouped. */
	html body.mdn-am-ready #masthead #site-navigation > #menu-amuzeme-primary.row,
	body.mdn-am-ready #menu-amuzeme-primary[data-mdn-desktop-source="1"] {
		display: none !important;
	}

	body.mdn-am-ready #masthead .mse-account-topbar > .mse-topbar-muzelink,
	body.mdn-am-ready #masthead .mse-account-topbar > .mse-topbar-profile,
	body.mdn-am-ready #masthead .mse-account-topbar > .mse-topbar-membership,
	body.mdn-am-ready #masthead .mse-account-topbar > .mse-topbar-hq,
	body.mdn-am-ready #masthead .mse-account-topbar > .mse-topbar-logout {
		display: none !important;
	}

	body.mdn-am-ready #masthead .mse-account-topbar {
		gap: 8px;
	}

	body.mdn-am-ready #masthead .mse-account-topbar > .mdn-topbar-account {
		display: inline-flex !important;
		background: linear-gradient(135deg, #c43cdf, #7146db) !important;
	}

	.mdn-am-nav {
		align-items: center;
		gap: 5px;
		justify-content: center;
		list-style: none;
		margin: 0 auto !important;
		padding: 8px 12px !important;
	}

	.mdn-am-nav .mdn-am-item {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.mdn-am-nav .mdn-am-primary,
	.mdn-am-nav .mdn-summary {
		align-items: center;
		background: linear-gradient(145deg, #242326, #151417);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 12px;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 7px 18px rgba(0, 0, 0, 0.22);
		box-sizing: border-box;
		color: #f4edf2;
		display: flex;
		font-size: 14px;
		font-weight: 750;
		gap: 8px;
		line-height: 1;
		min-height: 44px;
		padding: 0 16px;
		text-decoration: none;
		transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
		white-space: nowrap;
	}

	.mdn-am-nav .mdn-am-primary:hover,
	.mdn-am-nav .mdn-summary:hover,
	.mdn-am-nav .mdn-group[open] > .mdn-summary {
		background: linear-gradient(180deg, rgba(67, 35, 55, 0.96), rgba(34, 22, 31, 0.99));
		border-color: rgba(240, 92, 158, 0.38);
		box-shadow: 0 10px 26px rgba(122, 10, 67, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
		color: #ffffff;
		transform: translateY(-1px);
	}

	.mdn-am-nav .mdn-am-primary[aria-current="page"],
	.mdn-am-nav .mdn-group.has-current > .mdn-summary {
		background: linear-gradient(135deg, rgba(183, 28, 96, 0.88), rgba(112, 25, 93, 0.92));
		border-color: rgba(255, 137, 191, 0.45);
		box-shadow: 0 8px 24px rgba(122, 10, 67, 0.28);
		color: #fff;
	}

	.mdn-am-nav .mse-primary-menu-icon,
	.mdn-am-nav .mse-primary-menu-icon svg,
	.mdn-am-nav .mdn-summary-icon,
	.mdn-am-nav .mdn-summary-icon svg {
		height: 19px;
		width: 19px;
	}

	.mdn-am-nav .mdn-panel {
		background: linear-gradient(160deg, rgba(26, 15, 24, 0.99), rgba(13, 10, 16, 0.99));
		border: 1px solid rgba(240, 92, 158, 0.3);
		border-radius: 17px;
		box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
		display: grid;
		gap: 4px;
		left: 0;
		min-width: 240px;
		padding: 8px;
		position: absolute;
		top: calc(100% + 8px);
		z-index: 10010;
	}

	.mdn-am-nav .mdn-am-account .mdn-panel {
		left: auto;
		right: 0;
	}

	.mdn-am-nav .mdn-panel .mdn-link {
		align-items: center;
		border: 1px solid transparent;
		border-radius: 11px;
		color: #f0e7ed;
		display: flex;
		font-size: 14px;
		font-weight: 650;
		gap: 10px;
		min-height: 42px;
		padding: 10px 12px;
		text-decoration: none;
		transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
	}

	.mdn-am-nav .mdn-panel .mdn-link:hover,
	.mdn-am-nav .mdn-panel .mdn-link[aria-current="page"] {
		background: rgba(202, 42, 116, 0.15);
		border-color: rgba(240, 92, 158, 0.28);
		color: #fff;
	}

	.mdn-am-nav .mdn-panel .mdn-link .mse-topbar-copy,
	.mdn-am-nav .mdn-panel .mdn-link small {
		display: inline;
	}

	.mdn-am-nav .mdn-logout-link {
		border-top-color: rgba(255, 255, 255, 0.09) !important;
		color: #ffb6cc !important;
		margin-top: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdn-nav-root *,
	.mdn-nav-root *::before,
	.mdn-nav-root *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
