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

.igz-mega-menu {
	--igz-mega-accent: var(--ast-global-color-0, #1f6fd2);
	--igz-mega-accent-hover: var(--ast-global-color-1, #1559a8);
	--igz-mega-border: #dce6ee;
	--igz-mega-text: #17324e;
	--igz-mega-muted: #64788c;
	font-family: inherit;
	max-width: 100%;
	position: relative;
	width: 100%;
	z-index: 999;
}

.igz-mega-menu__backdrop {
	display: none;
}

.igz-mega-menu__toggle {
	align-items: center;
	background: var(--igz-mega-accent);
	border: 0;
	border-radius: 8px;
	color: #ffffff !important;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	line-height: 1.3;
	padding: 12px 16px;
	width: 100%;
}

.igz-mega-menu__toggle:hover,
.igz-mega-menu__toggle:focus-visible {
	background: var(--igz-mega-accent-hover);
	color: #ffffff !important;
}

.igz-mega-menu__toggle:focus-visible,
.igz-mega-menu__subject-tab:focus-visible,
.igz-mega-menu__actions a:focus-visible,
.igz-mega-menu__chapter-list a:focus-visible {
	outline: 3px solid #f4b942;
	outline-offset: 2px;
}

.igz-mega-menu__hamburger {
	display: inline-block;
	height: 14px;
	position: relative;
	width: 18px;
}

.igz-mega-menu__hamburger::before,
.igz-mega-menu__hamburger::after {
	background: currentColor;
	border-radius: 2px;
	box-shadow: 0 6px 0 currentColor;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	top: 0;
	width: 18px;
}

.igz-mega-menu__hamburger::after {
	box-shadow: none;
	top: 12px;
}

.igz-mega-menu__chevron,
.igz-mega-menu__arrow {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	display: block;
	flex: 0 0 auto;
	height: 8px;
	transform: rotate(45deg);
	transition: transform 180ms ease;
	width: 8px;
}

.igz-mega-menu__chevron {
	margin: 0 2px 4px 5px;
}

.igz-mega-menu.is-open > .igz-mega-menu__toggle .igz-mega-menu__chevron {
	transform: rotate(225deg);
}

.igz-mega-menu__arrow {
	color: #8da0b2;
	transform: rotate(-45deg);
}

.igz-mega-menu__panel {
	background: #ffffff;
	border: 1px solid var(--igz-mega-border);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(30, 41, 59, 0.18);
	margin-top: 8px;
	max-height: none;
	opacity: 1;
	overflow: visible;
	transform: translateY(0);
	transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease;
	visibility: visible;
}

.igz-mega-menu.is-js-ready:not(.is-open) > .igz-mega-menu__panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(-6px);
	visibility: hidden;
}

.igz-mega-menu.is-js-ready.is-open > .igz-mega-menu__panel {
	max-height: min(82vh, 900px);
	opacity: 1;
	overscroll-behavior: contain;
	overflow-y: auto;
	transform: translateY(0);
	visibility: visible;
}

.igz-mega-menu__layout {
	display: grid;
	min-height: 390px;
}

.igz-mega-menu__subject-nav {
	background: #f3f7fb;
	border-bottom: 1px solid #e1e9f0;
	padding: 14px;
}

.igz-mega-menu__eyebrow {
	color: #6b7f92;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.igz-mega-menu__subject-tab {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--igz-mega-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 10px;
	margin: 0 0 6px;
	padding: 11px;
	text-align: left;
	transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
	width: 100%;
}

.igz-mega-menu__subject-tab:hover,
.igz-mega-menu__subject-tab.is-active {
	background: #ffffff;
	border-color: #dce6ee;
	box-shadow: 0 5px 16px rgba(31, 55, 78, 0.08);
	color: var(--igz-mega-text) !important;
}

.igz-mega-menu__subject-tab:hover strong,
.igz-mega-menu__subject-tab.is-active strong {
	color: var(--igz-mega-text) !important;
}

.igz-mega-menu__subject-tab:hover small,
.igz-mega-menu__subject-tab.is-active small {
	color: var(--igz-mega-muted) !important;
}

.igz-mega-menu__subject-tab.is-active .igz-mega-menu__arrow {
	color: var(--igz-subject-accent);
}

.igz-mega-menu__subject-icon {
	align-items: center;
	background: var(--igz-subject-accent);
	border-radius: 9px;
	color: #ffffff;
	display: flex;
	flex: 0 0 36px;
	font-size: 16px;
	font-weight: 800;
	height: 36px;
	justify-content: center;
}

.igz-mega-menu__subject-tab > span:nth-child(2) {
	flex: 1 1 auto;
	min-width: 0;
}

.igz-mega-menu__subject-tab strong,
.igz-mega-menu__subject-tab small {
	display: block;
}

.igz-mega-menu__subject-tab strong {
	font-size: 14px;
	line-height: 1.3;
}

.igz-mega-menu__subject-tab small {
	color: var(--igz-mega-muted);
	font-size: 11px;
	line-height: 1.3;
	margin-top: 2px;
}

.igz-mega-menu__subject-content {
	min-width: 0;
	padding: 18px;
}

.igz-mega-menu__subject-panel[hidden] {
	display: none;
}

.igz-mega-menu__subject-heading {
	align-items: flex-start;
	border-bottom: 1px solid #e4ebf1;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 15px;
}

.igz-mega-menu__subject-heading h2 {
	color: var(--igz-mega-text);
	font-size: 23px;
	line-height: 1.2;
	margin: 0;
}

.igz-mega-menu__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: flex-end;
}

.igz-mega-menu__actions a {
	background: #f3f7fb;
	background: color-mix(in srgb, var(--igz-subject-accent) 9%, white);
	border: 1px solid #dce6ee;
	border: 1px solid color-mix(in srgb, var(--igz-subject-accent) 28%, white);
	border-radius: 999px;
	color: var(--igz-subject-accent);
	display: inline-block;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	padding: 8px 11px;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.igz-mega-menu__actions a:hover {
	background: var(--igz-subject-accent);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.igz-mega-menu__chapters-title {
	color: var(--igz-mega-text);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 8px;
}

.igz-mega-menu__chapter-list {
	column-gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.igz-mega-menu__chapter-list li {
	break-inside: avoid;
	margin: 0 0 4px;
	padding: 0;
}

.igz-mega-menu__chapter-list a {
	border-left: 3px solid transparent;
	border-radius: 7px;
	color: #294159;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	padding: 8px 9px;
	text-decoration: none;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.igz-mega-menu__chapter-list a:hover {
	background: #f3f7fb;
	background: color-mix(in srgb, var(--igz-subject-accent) 7%, white);
	border-left-color: var(--igz-subject-accent);
	color: var(--igz-subject-accent);
	text-decoration: none;
	transform: translateX(2px);
}

@media (min-width: 922px) {
	.igz-mega-menu {
		display: inline-block;
		width: auto;
	}

	.igz-mega-menu__toggle {
		width: auto;
	}

	.igz-mega-menu__panel {
		left: var(--igz-mega-panel-left, 0);
		margin-top: 10px;
		position: absolute;
		width: min(1240px, calc(100vw - 32px));
	}

	.igz-mega-menu__layout {
		grid-template-columns: 250px minmax(0, 1fr);
	}

	.igz-mega-menu__subject-nav {
		border-bottom: 0;
		border-radius: 14px 0 0 14px;
		border-right: 1px solid #e1e9f0;
		padding: 18px 14px;
	}

	.igz-mega-menu__subject-content {
		padding: 22px 24px;
	}

	.igz-mega-menu__chapter-list--compact {
		column-count: 2;
	}

	.igz-mega-menu__chapter-list--medium {
		column-count: 3;
	}

	.igz-mega-menu__chapter-list--large {
		column-count: 3;
	}
}

@media (min-width: 1180px) {
	.igz-mega-menu__chapter-list--large {
		column-count: 4;
	}
}

@media (max-width: 921px) {
	body.igz-mega-menu-mobile-open {
		overflow: hidden;
	}

	.igz-mega-menu__layout {
		min-height: 0;
	}

	.igz-mega-menu__subject-nav {
		display: flex;
		gap: 7px;
		overflow-x: auto;
		padding: 10px;
		scrollbar-width: thin;
	}

	.igz-mega-menu__subject-nav > .igz-mega-menu__eyebrow {
		display: none;
	}

	.igz-mega-menu__subject-tab {
		flex: 0 0 auto;
		margin: 0;
		padding: 8px 10px;
		width: auto;
	}

	.igz-mega-menu__subject-tab small,
	.igz-mega-menu__subject-tab .igz-mega-menu__arrow {
		display: none;
	}

	.igz-mega-menu__subject-icon {
		border-radius: 7px;
		flex-basis: 28px;
		font-size: 13px;
		height: 28px;
	}

	.igz-mega-menu__subject-content {
		padding: 15px;
	}

	.igz-mega-menu__subject-heading {
		display: block;
	}

	.igz-mega-menu__subject-heading h2 {
		font-size: 20px;
	}

	.igz-mega-menu__actions {
		justify-content: flex-start;
		margin-top: 12px;
	}

	.igz-mega-menu__chapter-list {
		column-count: 1;
	}

	.igz-mega-menu--mobile-fallback {
		bottom: max(16px, env(safe-area-inset-bottom));
		display: block !important;
		left: auto !important;
		margin: 0 !important;
		max-width: calc(100vw - 32px);
		position: fixed !important;
		right: 16px !important;
		top: auto !important;
		visibility: visible !important;
		width: auto !important;
		z-index: 999999;
	}

	.igz-mega-menu--mobile-fallback > .igz-mega-menu__toggle {
		box-shadow: 0 8px 24px rgba(15, 50, 80, 0.24);
		position: relative;
		width: auto;
		z-index: 2;
	}

	.igz-mega-menu--mobile-fallback > .igz-mega-menu__panel {
		border-radius: 14px;
		bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px);
		left: 10px;
		margin: 0;
		max-height: min(78vh, 720px);
		position: fixed;
		right: 10px;
		width: auto;
		z-index: 2;
	}

	.igz-mega-menu--mobile-fallback.is-js-ready:not(.is-open) > .igz-mega-menu__panel {
		max-height: 0;
	}

	.igz-mega-menu--mobile-fallback.is-js-ready.is-open > .igz-mega-menu__panel {
		max-height: min(78vh, 720px);
		overflow-y: auto;
	}

	.igz-mega-menu--mobile-fallback.is-open > .igz-mega-menu__backdrop {
		background: rgba(14, 30, 48, 0.42);
		display: block;
		inset: 0;
		position: fixed;
		z-index: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.igz-mega-menu__panel,
	.igz-mega-menu__subject-tab,
	.igz-mega-menu__actions a,
	.igz-mega-menu__chapter-list a {
		transition: none;
	}
}
