/* Header and footer. Same ink, gold rule, and blue as the homepage. */

.nil-header {
	position: relative;
	z-index: 40;
	color: #163044;
}

.nil-topbar {
	background: #07141f;
	color: #c5d7e4;
	font-size: 0.84rem;
}

.nil-topbar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem 1rem;
	min-height: 2.55rem;
	padding-block: 0.35rem;
}

.nil-topbar__tag {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	color: #9fd0ee;
	font-weight: 700;
}

.nil-topbar__tag::before {
	content: "";
	width: 1.35rem;
	height: 2px;
	background: #d7a15a;
	flex: 0 0 auto;
}

.nil-topbar__social {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	order: 3;
	gap: 0.35rem;
	margin: 0;
	padding: 0 0 0.15rem;
	list-style: none;
}

.nil-topbar__social a {
	display: inline-flex;
	align-items: center;
	min-height: 1.55rem;
	padding: 0 0.5rem;
	border: 1px solid rgb(255 255 255 / 16%);
	color: #d7e9f6;
	font-size: 0.78rem;
	font-weight: 700;
}

.nil-topbar__social a:hover {
	border-color: #d7a15a;
	color: #fff;
}

.nil-topbar__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.2rem 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-topbar a {
	color: inherit;
	text-decoration: none;
}

.nil-topbar a:hover {
	color: #fff;
}

.nil-header__main {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid #d5e0e8;
	box-shadow: 0 10px 30px rgb(7 20 31 / 4%);
}

.nil-header__bar {
	display: grid;
	grid-template-columns: auto minmax(12rem, 1fr) auto;
	grid-template-areas: "brand search tools";
	align-items: center;
	gap: 0.85rem 1.1rem;
	min-height: 5rem;
	padding-block: 0.75rem;
}

.nil-brand,
.custom-logo-link {
	grid-area: brand;
	display: flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.nil-brand img,
.custom-logo-link img,
.nil-footer__logo {
	display: block;
	width: auto;
	height: 3.35rem;
}

.nil-header__search {
	grid-area: search;
	display: flex;
	align-items: center;
	min-width: 0;
	background: #f3f6f8;
	border: 1px solid #d5e0e8;
}

.nil-header__search:focus-within {
	background: #fff;
	border-color: #0c7ab8;
}

.nil-header__search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.75rem 0.95rem;
	color: #163044;
	appearance: none;
}

.nil-header__search input:focus {
	outline: none;
}

.nil-header__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	margin: 0.22rem;
	border: 0;
	background: #07141f;
	color: #fff;
	cursor: pointer;
}

.nil-header__search button:hover {
	background: #0c7ab8;
}

.nil-tools {
	grid-area: tools;
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.nil-tool,
.nil-call {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.7rem;
	color: #163044;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}

.nil-tool {
	padding-inline: 0.45rem;
	font-size: 0.92rem;
}

.nil-tool:hover {
	color: #0c5f90;
}

.nil-tool__count,
.nil-drawer-links span {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding-inline: 0.28rem;
	background: #07141f;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.nil-call {
	padding: 0 0.9rem;
	background: #0c7ab8;
	color: #fff;
}

.nil-call:hover {
	background: #0a689c;
	color: #fff;
}

.nil-burger {
	display: none;
	grid-area: burger;
	width: 2.75rem;
	height: 2.75rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
	border: 1px solid #d5e0e8;
	background: #fff;
	cursor: pointer;
}

.nil-burger span:not(.screen-reader-text) {
	display: block;
	width: 1.05rem;
	height: 2px;
	background: #07141f;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.nil-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(0.46rem) rotate(45deg);
}

.nil-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nil-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-0.46rem) rotate(-45deg);
}

.nil-header__rail {
	background: #f7fafc;
	border-top: 1px solid #e6eef3;
}

.nil-rail {
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
	min-height: 3.2rem;
}

.nil-catalog-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	align-self: center;
	min-height: 2.7rem;
	margin-block: 0.25rem;
	padding: 0 0.95rem;
	border: 0;
	background: #07141f;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.nil-catalog-toggle::before {
	content: "";
	width: 1.05rem;
	height: 2px;
	background: #d7a15a;
}

.nil-catalog-toggle[aria-expanded="true"],
.nil-catalog-toggle:hover {
	background: #0c7ab8;
}

.nil-nav-desktop,
.nil-nav-mobile {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.nil-nav-mobile,
.nil-drawer-extra {
	display: none;
}

.nil-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-nav > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

.nil-nav > li > a {
	display: inline-flex;
	align-items: center;
	padding-inline: 0.85rem;
	color: #163044;
	font-weight: 700;
	text-decoration: none;
}

.nil-nav > li > a:hover,
.nil-nav > .current-menu-item > a,
.nil-nav > .current-menu-ancestor > a {
	color: #0c5f90;
}

.nil-nav > .current-menu-item > a,
.nil-nav > .current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 #d7a15a;
}

.nil-nav > .menu-item-has-children > a::after {
	content: "";
	width: 0.38rem;
	height: 0.38rem;
	margin-inline-start: 0.45rem;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-0.12rem);
}

.nil-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 30;
	inset-inline-start: 0;
	top: 100%;
	min-width: 15.5rem;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: #fff;
	border: 1px solid #d5e0e8;
	box-shadow: 0 16px 36px rgb(7 20 31 / 10%);
}

.nil-nav .sub-menu > li {
	position: relative;
}

.nil-nav .sub-menu .sub-menu {
	inset-inline-start: calc(100% - 0.45rem);
	inset-inline-end: auto;
	top: calc(-0.4rem + var(--nil-fly-shift, 0px));
	z-index: 32;
}

.nil-nav .sub-menu .sub-menu.is-flip {
	inset-inline-start: auto;
	inset-inline-end: calc(100% - 0.45rem);
}

.nil-nav li:hover > .sub-menu,
.nil-nav li:focus-within > .sub-menu {
	display: block;
}

.nil-nav .sub-menu a {
	display: block;
	padding: 0.42rem 0.7rem;
	color: #163044;
	text-decoration: none;
}

.nil-nav .sub-menu a:hover,
.nil-nav .sub-menu > li:hover > a,
.nil-nav .sub-menu > li:focus-within > a {
	background: #f3f6f8;
	color: #0c5f90;
}

.nil-mega {
	position: absolute;
	z-index: 35;
	inset-inline: 0;
	top: 100%;
	max-height: min(74vh, 42rem);
	overflow: auto;
	background: #f7fafc;
	border-top: 1px solid #d5e0e8;
	box-shadow: 0 24px 48px rgb(7 20 31 / 14%);
}

.nil-mega[hidden] {
	display: none;
}

.nil-mega__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.15rem;
}

.nil-mega__head p {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	color: #163044;
	font-weight: 800;
}

.nil-mega__head p::before {
	content: "";
	width: 1.15rem;
	height: 2px;
	background: #d7a15a;
}

.nil-mega__head a {
	color: #0c5f90;
	font-weight: 700;
	text-decoration: none;
}

.nil-mega__families {
	columns: 4;
	column-gap: 1.5rem;
	padding-block: 1rem 1.35rem;
}

.nil-mega__family {
	break-inside: avoid;
	margin-bottom: 1rem;
}

.nil-mega__room-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 1.4rem;
	align-items: start;
	padding-block: 0.85rem 1.15rem;
}

.nil-mega__room-grid ul {
	columns: 2;
	column-gap: 1rem;
}

.nil-mega__room-grid li {
	break-inside: avoid;
}

.nil-mega__family > a,
.nil-mega__room-grid > section > a {
	display: inline-flex;
	color: #163044;
	font-weight: 800;
	text-decoration: none;
}

.nil-mega__family > a:hover,
.nil-mega__room-grid > section > a:hover,
.nil-mega a:hover {
	color: #0c5f90;
}

.nil-mega__family ul,
.nil-mega__room-grid ul {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
}

.nil-mega__family li > a {
	display: inline-block;
	padding-block: 0.12rem;
	color: #163044;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
}

.nil-mega__family ul ul {
	margin: 0 0 0.35rem;
	padding-inline-start: 0.75rem;
}

.nil-mega__family ul ul a,
.nil-mega__room-grid li a {
	color: #5c7384;
	font-weight: 500;
	font-size: 0.86rem;
	text-decoration: none;
}

.nil-mega__rooms {
	background:
		radial-gradient(circle at 100% 0%, rgb(18 122 184 / 32%), transparent 18rem),
		#07141f;
	color: #f4f8fb;
}

.nil-mega__rooms .nil-mega__head p,
.nil-mega__rooms .nil-mega__head a,
.nil-mega__rooms .nil-mega__room-grid > section > a,
.nil-mega__rooms a {
	color: #f4f8fb;
}

.nil-mega__rooms .nil-mega__room-grid li a {
	color: #c5d7e4;
}

.nil-mega__rooms a:hover,
.nil-mega__rooms .nil-mega__room-grid li a:hover {
	color: #fff;
}

.nil-acc details {
	border-bottom: 1px solid #e6eef3;
}

.nil-acc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.nil-acc summary::-webkit-details-marker {
	display: none;
}

.nil-acc summary::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	flex: 0 0 auto;
}

.nil-acc details[open] summary::after {
	transform: rotate(225deg);
}

.nil-acc ul,
.nil-drawer-links {
	margin: 0;
	padding: 0 0 0.7rem;
	list-style: none;
}

.nil-acc a,
.nil-drawer-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 0.28rem;
	color: #163044;
	text-decoration: none;
}

.nil-drawer-links {
	padding-top: 0.4rem;
}

.nil-drawer-links a {
	font-weight: 700;
}

.nil-drawer-social {
	padding: 0.15rem 0 0.85rem;
	border-top: 1px solid #e6eef3;
}

.nil-drawer-social__label {
	margin: 0.7rem 0 0.35rem;
	color: #5d7384;
	font-size: 0.78rem;
	font-weight: 800;
}

.nil-drawer-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-drawer-social a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.7rem;
	border: 1px solid #d5e0e8;
	color: #163044;
	font-weight: 700;
	text-decoration: none;
}

.nil-drawer-social a:hover {
	border-color: #0c7ab8;
	color: #0c5f90;
}

.nil-footer {
	color: #d3e0ea;
	background:
		radial-gradient(circle at 100% 0%, rgb(18 122 184 / 28%), transparent 26rem),
		#07141f;
}

.nil-footer a {
	color: inherit;
}

.nil-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.nil-trust li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 1.15rem 0.9rem;
	color: #f4f8fb;
	font-weight: 800;
	border-inline-start: 1px solid rgb(255 255 255 / 10%);
}

.nil-trust li:first-child {
	border-inline-start: 0;
	padding-inline-start: 0;
}

.nil-trust li::before {
	content: "";
	width: 1.15rem;
	height: 2px;
	background: #d7a15a;
	flex: 0 0 auto;
}

.nil-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 1.75rem 1.75rem;
	padding-block: 2.2rem 1.35rem;
}

.nil-footer__brand {
	display: inline-flex;
	margin-bottom: 0.85rem;
	padding: 0.35rem 0.55rem;
	background: #fff;
	text-decoration: none;
}

.nil-footer__logo {
	height: 2.65rem;
}

.nil-footer__lead,
.nil-footer__about p {
	margin: 0 0 0.7rem;
	max-width: 36rem;
}

.nil-footer__lead {
	color: #fff;
	font-weight: 800;
}

.nil-footer__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	align-items: start;
	margin-block: 0;
	margin-inline: auto;
	padding-block: 1.15rem 1.4rem;
	border-top: 1px solid rgb(255 255 255 / 10%);
}

.nil-footer__facts div {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.nil-footer__facts .nil-footer__address {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.65rem;
}

.nil-footer__facts dt {
	color: #9fd0ee;
	font-size: 0.78rem;
	font-weight: 700;
}

.nil-footer__facts dd {
	min-width: 0;
	margin: 0;
}

.nil-footer__facts a {
	text-decoration: none;
}

.nil-footer__facts a:hover,
.nil-footer__menu a:hover,
.nil-footer__social a:hover,
.nil-footer__bar a:hover {
	color: #fff;
}

.nil-footer__label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.8rem;
	color: #fff;
	font-weight: 800;
}

.nil-footer__label::before {
	content: "";
	width: 1.05rem;
	height: 2px;
	background: #d7a15a;
	flex: 0 0 auto;
}

.nil-footer__menu,
.nil-footer__social ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-footer__menu a,
.nil-footer__social a {
	display: inline-block;
	padding-block: 0.22rem;
	color: #c5d7e4;
	text-decoration: none;
}

.nil-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2.75rem;
	padding-block: 0.15rem 1.45rem;
}

.nil-footer__social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.nil-footer__social a {
	padding: 0.35rem 0.7rem;
	border: 1px solid rgb(255 255 255 / 16%);
}

.nil-footer__social a:hover {
	border-color: #d7a15a;
	color: #fff;
}

.nil-footer__bar {
	background: #061018;
}

.nil-footer__bar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 0.95rem;
}

.nil-footer__bar p {
	margin: 0;
	color: #9fb4c4;
	font-size: 0.88rem;
}

.nil-footer__bar a {
	color: #d7e9f6;
	font-weight: 700;
	text-decoration: none;
}

body.admin-bar .nil-header__main {
	top: 32px;
}

@media (max-width: 1100px) {
	.nil-mega__families {
		columns: 3;
	}

	.nil-mega__room-grid {
		grid-template-columns: 1fr;
	}

	.nil-tool__label {
		display: none;
	}
}

@media (max-width: 979px) {
	.nil-topbar__tag,
	.nil-topbar__email,
	.nil-topbar__hours,
	.nil-topbar__social {
		display: none;
	}

	.nil-header__bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"brand tools burger"
			"search search search";
	}

	.nil-burger {
		display: inline-flex;
	}

	.nil-tool--desk {
		display: none;
	}

	.nil-header__main {
		position: sticky;
	}

	.nil-header__rail {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		max-height: calc(100dvh - 7.5rem);
		overflow: auto;
		background: #fff;
		border-top: 1px solid #e6eef3;
		box-shadow: 0 20px 40px rgb(7 20 31 / 14%);
	}

	body.nil-nav-open {
		overflow: hidden;
	}

	body.nil-nav-open .nil-header__rail {
		display: block;
	}

	.nil-rail {
		display: block;
		padding-block: 0.35rem 1rem;
	}

	.nil-catalog-toggle,
	.nil-mega {
		display: none;
	}

	.nil-nav-desktop,
	.nil-nav-mobile,
	.nil-nav {
		display: block;
	}

	.nil-has-mobile .nil-nav-desktop {
		display: none;
	}

	.nil-has-mobile .nil-nav-mobile {
		display: block;
	}

	.nil-nav > li {
		display: block;
	}

	.nil-nav > li > a {
		display: flex;
		width: 100%;
		min-height: 2.7rem;
		padding-inline: 0;
	}

	.nil-nav .sub-menu,
	.nil-nav li:hover > .sub-menu,
	.nil-nav li:focus-within > .sub-menu {
		display: block;
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.35rem;
		padding-inline-start: 0.85rem;
		border: 0;
		box-shadow: none;
	}

	.nil-nav .sub-menu a {
		display: block;
		padding: 0.35rem 0;
		text-align: start;
	}

	.nil-nav > .current-menu-item > a,
	.nil-nav > .current-menu-ancestor > a {
		box-shadow: none;
		color: #0c5f90;
	}

	.nil-nav > .menu-item-has-children > a::after {
		content: none;
	}

	.nil-drawer-extra {
		display: block;
		margin-top: 0.4rem;
		border-top: 1px solid #e6eef3;
	}

	.nil-footer__grid,
	.nil-footer__facts {
		grid-template-columns: 1fr 1fr;
	}

	.nil-footer__about,
	.nil-footer__address {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	body.admin-bar .nil-header__main {
		top: 46px;
	}
}

@media (max-width: 640px) {
	.nil-topbar {
		display: none;
	}

	.nil-brand img,
	.custom-logo-link img {
		height: 2.65rem;
	}

	.nil-call {
		padding-inline: 0.65rem;
		font-size: 0.92rem;
	}

	.nil-trust,
	.nil-footer__grid,
	.nil-footer__facts {
		grid-template-columns: 1fr;
	}

	.nil-trust li,
	.nil-trust li:first-child {
		padding-inline: 0;
		border-inline-start: 0;
		border-top: 1px solid rgb(255 255 255 / 10%);
	}

	.nil-trust li:first-child {
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nil-burger span:not(.screen-reader-text) {
		transition: none;
	}
}

/* Header menu modes. Simple is the cascade; mega is the full panel. */

.nil-subtoggle,
.nil-mega-next,
.nil-mega-back,
.nil-megapanel__title {
	display: none;
}

.nil-megapanel,
.nil-megapanel__pane {
	display: none;
}

.nil-megapanel__rail,
.nil-mega-links,
.nil-mega-sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nil-megapanel a {
	text-decoration: none;
}

@media (min-width: 980px) {
	body.nil-menu-mega .nil-header__rail {
		position: relative;
	}

	body.nil-menu-mega .nil-nav > li {
		position: static;
	}

	body.nil-menu-mega.nil-mega-hover .nil-nav > li:hover > .nil-megapanel,
	body.nil-menu-mega.nil-mega-hover .nil-nav > li:focus-within > .nil-megapanel,
	body.nil-menu-mega.nil-mega-click .nil-nav > li.is-open > .nil-megapanel {
		display: block;
	}

	body.nil-menu-simple .nil-nav .sub-menu .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
	}

	body.nil-menu-simple .nil-nav .sub-menu .menu-item-has-children > a::after {
		content: "";
		width: 0.35rem;
		height: 0.35rem;
		border-inline-end: 1.5px solid currentColor;
		border-block-end: 1.5px solid currentColor;
		transform: rotate(-45deg);
		flex: 0 0 auto;
	}

	body.nil-menu-simple .nil-nav .sub-menu .menu-item-has-children:has(> .sub-menu.is-flip) > a::after {
		transform: rotate(135deg);
	}

	.nil-megapanel {
		position: absolute;
		z-index: 45;
		inset-inline: 0;
		top: calc(100% - 0.2rem);
		padding-top: 0.2rem;
		background: #fff;
		border-top: 1px solid #d5e0e8;
		box-shadow: 0 24px 48px rgb(7 20 31 / 14%);
	}

	.nil-mega-item--tree .nil-megapanel__grid {
		display: grid;
		grid-template-columns: 17.5rem minmax(0, 1fr);
		position: relative;
		min-height: 24rem;
		background:
			linear-gradient(to left, #f4f7fb 0 17.5rem, #fff 17.5rem);
	}

	.nil-mega-item--tree .nil-megapanel__rail {
		width: 17.5rem;
		max-height: min(70vh, 34rem);
		padding: 0.55rem;
		overflow: auto;
	}

	.nil-mega-item--columns .nil-megapanel__grid {
		display: block;
		padding-block: 0.4rem 0.8rem;
	}

	.nil-mega-item--columns .nil-megapanel__rail {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.15rem 1rem;
		padding: 0.85rem 0.2rem 0.4rem;
	}

	.nil-megapanel__rail > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.6rem;
		padding: 0.55rem 0.75rem;
		color: #163044;
		font-weight: 700;
	}

	.nil-megapanel__rail > li > a:hover,
	.nil-megapanel__rail > li:focus-within > a,
	.nil-megapanel__rail > .current-menu-item > a,
	.nil-megapanel__rail > .current-menu-ancestor > a,
	body.nil-mega-click .nil-megapanel__rail > li.is-active > a {
		background: #fff;
		color: #0c5f90;
	}

	.nil-mega-item--tree .nil-megapanel__rail > .menu-item-has-children > a::after {
		content: "";
		width: 0.38rem;
		height: 0.38rem;
		border-inline-start: 1.5px solid currentColor;
		border-block-end: 1.5px solid currentColor;
		transform: rotate(45deg);
		flex: 0 0 auto;
	}

	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail > li:first-child > .nil-megapanel__pane,
	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail > li:hover > .nil-megapanel__pane,
	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail > li:focus-within > .nil-megapanel__pane,
	body.nil-mega-click .nil-mega-item--tree .nil-megapanel__rail > li:first-child > .nil-megapanel__pane,
	body.nil-mega-click .nil-mega-item--tree .nil-megapanel__rail > li.is-active > .nil-megapanel__pane {
		display: block;
	}

	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail:hover > li:first-child:not(:hover):not(:focus-within) > .nil-megapanel__pane,
	body.nil-mega-click .nil-mega-item--tree .nil-megapanel__rail:has(> li.is-active) > li:first-child:not(.is-active) > .nil-megapanel__pane {
		display: none;
	}

	.nil-mega-item--tree .nil-megapanel__pane {
		position: absolute;
		inset-block: 0;
		inset-inline-start: 17.5rem;
		inset-inline-end: 0;
		overflow: auto;
		padding: 1rem 1.15rem 1.25rem;
		background: #fff;
	}

	.nil-megapanel__all {
		display: inline-flex;
		margin-bottom: 0.85rem;
		color: #0c5f90;
		font-weight: 800;
	}

	.nil-megapanel__all:hover {
		color: #07141f;
	}

	.nil-mega-links {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.85rem 1.25rem;
	}

	.nil-mega-links > li > a {
		color: #163044;
		font-weight: 800;
	}

	.nil-mega-links > li > a:hover,
	.nil-mega-sub a:hover {
		color: #0c5f90;
	}

	.nil-mega-sub {
		display: grid;
		gap: 0.12rem;
		margin-top: 0.28rem;
	}

	.nil-mega-sub a {
		color: #5c7384;
		font-size: 0.9rem;
		font-weight: 500;
	}
}

@media (max-width: 1100px) and (min-width: 980px) {
	.nil-mega-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 979px) {
	body.nil-menu-simple .nil-nav li.menu-item-has-children,
	body.nil-menu-mega .nil-nav li.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	body.nil-menu-simple .nil-nav .menu-item-has-children > a,
	body.nil-menu-mega .nil-nav .menu-item-has-children > a {
		flex: 1 1 auto;
		width: auto;
		padding-inline-end: 0.35rem;
	}

	body.nil-menu-simple .nil-subtoggle,
	body.nil-menu-mega .nil-mega-next {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		margin-inline-start: auto;
		border: 0;
		background: transparent;
		color: #163044;
		cursor: pointer;
	}

	body.nil-menu-simple .nil-subtoggle::before,
	body.nil-menu-mega .nil-mega-next::before {
		content: "";
		width: 0.42rem;
		height: 0.42rem;
		border-inline-end: 1.5px solid currentColor;
		border-block-end: 1.5px solid currentColor;
		transform: rotate(45deg) translateY(-0.12rem);
	}

	body.nil-menu-simple .nil-nav li.is-open > .nil-subtoggle::before,
	body.nil-menu-mega .nil-nav li.is-drilled > .nil-mega-next::before {
		transform: rotate(225deg) translateY(-0.12rem);
	}

	body.nil-menu-simple:not(.nil-simple-expanded) .nil-nav .sub-menu,
	body.nil-menu-simple:not(.nil-simple-expanded) .nil-nav li:hover > .sub-menu,
	body.nil-menu-simple:not(.nil-simple-expanded) .nil-nav li:focus-within > .sub-menu {
		display: none;
	}

	body.nil-menu-simple:not(.nil-simple-expanded) .nil-nav li.is-open > .sub-menu {
		display: block;
		position: static;
		flex: 1 1 100%;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.35rem;
		padding-inline-start: 0.85rem;
		border: 0;
		box-shadow: none;
	}

	body.nil-menu-mega .nil-nav > li {
		position: static;
	}

	body.nil-menu-mega.nil-mega-hover .nil-nav > li:hover > .nil-megapanel,
	body.nil-menu-mega.nil-mega-hover .nil-nav > li:focus-within > .nil-megapanel,
	body.nil-menu-mega.nil-mega-click .nil-nav > li.is-open > .nil-megapanel,
	body.nil-menu-mega .nil-megapanel__pane,
	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail > li:first-child > .nil-megapanel__pane,
	body.nil-mega-hover .nil-mega-item--tree .nil-megapanel__rail > li:hover > .nil-megapanel__pane {
		display: none;
	}

	body.nil-menu-mega .nil-nav > li.is-drilled > .nil-megapanel {
		display: block;
		position: absolute;
		z-index: 6;
		inset: 0;
		overflow: auto;
		background: #fff;
	}

	body.nil-menu-mega .nil-megapanel__grid {
		display: block;
		min-height: 0;
		padding-block: 0.35rem 1rem;
	}

	body.nil-menu-mega .nil-mega-back,
	body.nil-menu-mega .nil-megapanel__title {
		display: flex;
	}

	body.nil-menu-mega .nil-mega-back {
		align-items: center;
		gap: 0.4rem;
		margin: 0.15rem 0 0.35rem;
		padding: 0.35rem 0;
		border: 0;
		background: transparent;
		color: #0c5f90;
		font-weight: 800;
		cursor: pointer;
	}

	body.nil-menu-mega .nil-mega-back::before {
		content: "";
		width: 0.42rem;
		height: 0.42rem;
		border-inline-end: 1.5px solid currentColor;
		border-block-start: 1.5px solid currentColor;
		transform: rotate(45deg);
	}

	body.nil-menu-mega .nil-megapanel__title,
	body.nil-menu-mega .nil-megapanel__all {
		margin: 0 0 0.65rem;
		color: #07141f;
		font-weight: 800;
	}

	body.nil-menu-mega .nil-megapanel__rail > li > a,
	body.nil-menu-mega .nil-mega-links a,
	body.nil-menu-mega .nil-mega-sub a {
		display: flex;
		align-items: center;
		min-height: 2.5rem;
		color: #163044;
		font-weight: 700;
	}

	body.nil-menu-mega .nil-mega-sub {
		padding-inline-start: 0.85rem;
	}

	body.nil-menu-mega .nil-mega-sub a {
		color: #5c7384;
		font-weight: 500;
		min-height: 2.15rem;
	}

	body.nil-menu-mega .nil-megapanel__rail > li.is-drilled > .nil-megapanel__pane {
		display: block;
		position: absolute;
		z-index: 4;
		inset: 0;
		overflow: auto;
		padding: 0.35rem 0 1rem;
		background: #fff;
	}
}
