@layer cs-navigation {
body.cs-navigation .header {
 --home-text: #f6f9fd; --home-text-secondary: #8d95a5; --home-font-regular: 'SuisseIntl-Regular',Arial,sans-serif;
 --home-font-medium: 'SuisseIntl-Medium',Arial,sans-serif; --home-brand: #007bff;
 --home-btn-secondary-bg: #03264f; --home-link: #2e92ff;
}
body.cs-navigation.cs-glass-light .header .header-login-button { color: #22252a !important; }
body.cs-navigation .header a.action-button.button-hover:hover,
body.cs-navigation .header a.action-button.button-hover:focus-visible { background-color: #005ee0 !important; color: #fff !important; }
@media(min-width:1024px){
 body.cs-navigation.cs-glass-light .header .top-menu > .top-menu__link:not(.top-menu__link_p6) > a,
 body.cs-navigation.cs-glass-light .header .top-menu > .top-menu__link:not(.top-menu__link_p6):hover > a,
 body.cs-navigation.cs-glass-light .header .top-menu > .top-menu__link:not(.top-menu__link_p6) > a:focus-visible { color:#22252a !important; }
 body.cs-navigation.cs-glass-dark .header .top-menu > .top-menu__link:not(.top-menu__link_p6) > a,
 body.cs-navigation.cs-glass-dark .header .top-menu > .top-menu__link:not(.top-menu__link_p6):hover > a,
 body.cs-navigation.cs-glass-dark .header .top-menu > .top-menu__link:not(.top-menu__link_p6) > a:focus-visible { color:#f6f9fd !important; }
}
/* ==========================================================================
   Header mega menu + language switcher: entrance motion (desktop). Both panels go from display:none to shown
   (jQuery .show() in js/main.js, :hover in header.php), which restarts these animations on every open;
   closing is handled by the navigation controller. The mega menu panel is centred with transform, so only the separate `translate`
   property is animated.
   ========================================================================== */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.top-menu__link .sub-menu { animation: cs-menu-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
	.top-menu__link .sub-menu.is-switching { animation: none; } /* item-to-item: panel stays put, only its content fades in */
	.top-menu__link .sub-menu.is-morphing { background-color: transparent !important; box-shadow: none !important; } /* backdrop stands in (js/main.js) */
	.top-menu__link .sub-menu .sub-sub-menu { animation: cs-menu-item-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards; }
	.top-menu__link .sub-menu .sub-sub-menu:nth-child(2) { animation-delay: 0.08s; }
	.top-menu__link .sub-menu .sub-sub-menu:nth-child(3) { animation-delay: 0.12s; }
	.top-menu__link .sub-menu .sub-sub-menu:nth-child(n+4) { animation-delay: 0.16s; }
	/* Top items: hovering one dims the others (header.php); ease that instead of snapping between items. */
	.top-menu .top-menu__link > a,
	.lang-btn { transition: opacity 0.2s ease, color 0.2s ease; }
	.top-menu .top-menu__link > a::after,
	.lang-btn::after { transition: transform 0.2s ease; }
	/* header.php flips the language chevron by swapping translateY(-50%) for top: 8px + scaleY(-1); with the
	   transition above that read as a jump. Flip in place instead, keeping the centring. */
	/* Chevrons turn over with rotate, not scaleY(-1): a transitioned scaleY squashes them flat halfway (flicker). */
	.lang-switcher:hover .lang-btn::after { top: 50% !important; transform: translateY(-50%) rotate(180deg) !important; }
	.top-menu .top-menu__link.menu-item-has-children:hover > a::after { transform: rotate(180deg) !important; }
	/* Language menu: transitions instead of display toggling, so it opens and closes softly and a quick
	   in/out reverses from where it is. Closing is quicker and smaller than opening. */
	.lang-menu {
		display: block !important;
		visibility: hidden;
		opacity: 0;
		translate: 0 -4px;
		filter: blur(4px);
		pointer-events: none;
		transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1), translate 0.15s cubic-bezier(0.4, 0, 1, 1), filter 0.15s cubic-bezier(0.4, 0, 1, 1), visibility 0s linear 0.15s;
	}
	.lang-switcher:hover .lang-menu,
	.lang-switcher:focus-within .lang-menu {
		visibility: visible;
		opacity: 1;
		translate: 0 0;
		filter: none;
		pointer-events: auto;
		transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), translate 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
	}
	.lang-menu li { opacity: 0; translate: 0 6px; transition: opacity 0.12s ease, translate 0.12s ease; }
	.lang-switcher:hover .lang-menu li,
	.lang-switcher:focus-within .lang-menu li { opacity: 1; translate: 0 0; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.03s, translate 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.03s; }
	.lang-switcher:hover .lang-menu li:nth-child(2) { transition-delay: 0.05s; }
	.lang-switcher:hover .lang-menu li:nth-child(3) { transition-delay: 0.07s; }
	.lang-switcher:hover .lang-menu li:nth-child(4) { transition-delay: 0.09s; }
	.lang-switcher:hover .lang-menu li:nth-child(5) { transition-delay: 0.11s; }
	.lang-switcher:hover .lang-menu li:nth-child(6) { transition-delay: 0.13s; }
	.lang-switcher:hover .lang-menu li:nth-child(n+7) { transition-delay: 0.15s; }
}
@keyframes cs-menu-in {
	from { opacity: 0; translate: 0 -8px; }
}
@keyframes cs-menu-item-in {
	from { opacity: 0; translate: 0 6px; }
}

/* Header menu secondary buttons ("AI-ready infrastructure", "Refer and earn"): background is inline
   (#e5f1ff = kit button-secondary-default, light), so the kit hover needs !important. */
.top-menu .sub-menu li.subhead a.custom-menu-link { transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.top-menu .sub-menu li.subhead a.custom-menu-link:hover,
.top-menu .sub-menu li.subhead a.custom-menu-link:focus-visible { background: #cce4ff !important; } /* kit button-secondary-hover */

/* Header dropdown panels: 12px corners (was 6). The grey right column has its own right-side rounding. */
@media (min-width: 1024px) {
	.top-menu__link .sub-menu,
	.lang-menu { border-radius: 12px !important; }
	.top-menu__link .sub-menu .sub-sub-menu:last-child { border-radius: 0 12px 12px 0 !important; }
}

/* Render the SVG itself so the globe remains visible without replaced-image masking. */
@media (min-width: 1024px) {
	.lang-btn img {
		object-fit: contain;
		object-position: center;
		transition: filter 0.2s ease;
	}
	body.cs-navigation.cs-glass-dark .header .lang-btn img,
	body.cs-navigation.cs-glass-dark .header .lang-btn::after { filter: brightness(0) invert(.65) !important; }
	body.cs-navigation.cs-glass-dark .header .lang-switcher:hover .lang-btn img,
	body.cs-navigation.cs-glass-dark .header .lang-switcher:hover .lang-btn::after,
	body.cs-navigation.cs-glass-dark .header .lang-btn:focus-visible img,
	body.cs-navigation.cs-glass-dark .header .lang-btn:focus-visible::after { filter: brightness(0) invert(1) !important; }
	body.cs-navigation.cs-glass-light .header .lang-btn img { filter: brightness(0) invert(.35) !important; }
	body.cs-navigation.cs-glass-light .header .lang-switcher:hover .lang-btn img,
	body.cs-navigation.cs-glass-light .header .lang-btn:focus-visible img { filter: brightness(0) invert(.2) !important; }
}

/* Header (all pages), Figma 1395:11700: logo and every header item share one centre line. The theme's paddings
   leave the menu text ~2px and the language switcher ~4px below the logo's centre; lift them onto it. */
@media (min-width: 1024px) {
	/* Only the labels move: a translate on .top-menu would make it the containing block of the mega menu
	   panels (they're positioned from the header) and drop them lower. */
	.header .top-menu > .top-menu__link > a,
	.header .header-log-in-wrapper,
	.header .top-menu__link_p6 { translate: 0 -2px; }
	.header .lang-switcher { translate: 0 -4px; }
}

/* Header, 1024–1149px (desktop menu, narrow window): the natural row is ~1010px wide, so Pricing dropped to a
   second line and "Talk to an expert" / "Sign in" wrapped. Tighter item padding and gaps fit it on one line. */
@media (min-width: 1024px) and (max-width: 1149px) {
	.header .top-menu { margin-right: 0; }
	.header .top-menu > .top-menu__link > a { padding-left: 8px; padding-right: 8px; }
	.header .lang-switcher { margin-right: 8px; }
	.header .top-menu > .top-menu__link > a,
	.header .header-login-button,
	.header .top-menu__link_p6 a { white-space: nowrap; }
}
/* ==========================================================================
   Mobile menu (≤1023px). The theme's menu markup and toggles (js/main.js: .top-menu_active on the burger,
   .sub-menu show/hide on tap) are kept; the homepage's critical CSS (functions.php) pinned the list at
   max-height 0 / items at height 0, so the opened menu showed nothing but the two buttons. Here it becomes a
   full-screen dark sheet under the header (selectors start with body… .header so they outrank the inline
   critical CSS printed after this file): top items as an accordion (js/home-2026.js adds .is-open),
   product links with their icons, and the two CTAs at the bottom.
   ========================================================================== */
@media (max-width: 1023px) {
	body.cs-navigation .header .top-menu,
	body.cs-navigation .header .top-menu.top-menu_active {
		display: none;
		position: fixed;
		top: var(--cs-navigation-top, 72px);
		right: 0;
		bottom: 0;
		left: 0;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 8px 24px 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #00001a;
		text-align: left;
		animation: none;
	}
	body.cs-navigation .header .top-menu.top-menu_active { display: flex; flex-direction: column; animation: home-menu-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
	@keyframes home-menu-in { from { opacity: 0; translate: 0 -8px; } }
	/* While open the header is solid (no glass: a backdrop-filter would also trap the fixed sheet inside it). */
	body.cs-navigation.overflowed .header { background: #00001a !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
	/* On window-scrolled pages, the theme's body overflow:hidden creates a NEW scroll container
	   and can move the header off-screen. Keep that page window-scrolled and lock <html>.
	   An ALREADY body-scrolled page must retain its body scroller and offset; the theme lock
	   is correct there. cs-nav-window-scroll deliberately excludes that separate case. */
	body.cs-navigation.cs-nav-window-scroll.overflowed { overflow: visible !important; overflow-x: clip !important; }
	html:has(> body.cs-navigation.overflowed) { overflow: hidden; }

	/* Top items: full-width rows with a hairline, chevron on the right. */
	body.cs-navigation .header .top-menu .top-menu__link {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-bottom: 1px solid rgba(32, 44, 75, 0.7) !important;
		transform: none !important;
		animation: none !important;
		opacity: 1 !important;
	}
	body.cs-navigation .header .top-menu .top-menu__link > a,
	body.cs-navigation .header .top-menu .top-menu__link.menu-item-has-children > a { /* the 2nd outranks the theme's scrolled-header black */
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 18px 0 !important;
		color: var(--home-text) !important;
		font-family: var(--home-font-medium);
		font-size: 18px;
		line-height: 24px;
		opacity: 1 !important;
		translate: none !important;
	}
	body.cs-navigation .header .top-menu .top-menu__link.menu-item-has-children > a::after {
		float: none !important;
		margin: 0 !important;
		background: url(../img/new-nav-icon-grey.svg) no-repeat center / 20px 20px !important;
		width: 20px;
		height: 20px;
		transition: transform 0.25s ease;
	}
	body.cs-navigation .header .top-menu .top-menu__link.is-open > a::after { transform: rotate(180deg) !important; }

	/* Sub-menus: shown only for the open item; groups stacked, titles only (descriptions would make it endless). */
	body.cs-navigation .header .top-menu .top-menu__link > .sub-menu { display: none !important; }
	body.cs-navigation .header .top-menu .top-menu__link.is-open > .sub-menu {
		display: block !important;
		position: static !important;
		width: auto !important;
		min-width: 0 !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 0 16px !important;
		background: none !important;
		box-shadow: none !important;
		border: 0 !important;
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
	body.cs-navigation .header .top-menu .sub-menu .nav-bg { display: none !important; }
	body.cs-navigation .header .top-menu .sub-menu li,
	body.cs-navigation .header .top-menu .sub-menu ul {
		display: block !important;
		position: static !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
		columns: auto !important;
		transform: none !important;
		animation: none !important;
		opacity: 1 !important;
	}
	body.cs-navigation .header .top-menu .sub-sub-menu + .sub-sub-menu { margin-top: 8px !important; }
	body.cs-navigation .header .top-menu .top-menu__link .sub-menu .sub-sub-menu li { width: auto !important; float: none !important; } /* theme lays some groups out as 2 columns */
	body.cs-navigation .header .top-menu .top-menu__link .sub-menu .sub-sub-menu li.subhead { margin: 0 !important; padding: 12px 0 4px !important; } /* theme indents it 12px */
	body.cs-navigation .header .top-menu .sub-menu li.subhead > span {
		display: block;
		color: var(--home-text-secondary);
		font-family: var(--home-font-regular);
		font-size: 13px;
		line-height: 16px;
	}
	body.cs-navigation .header .top-menu .sub-menu a {
		display: flex !important;
		align-items: center;
		gap: 12px;
		padding: 10px 0 !important;
		color: var(--home-text) !important;
		font-family: var(--home-font-regular);
		font-size: 16px;
		line-height: 20px;
		white-space: normal;
		text-decoration: none;
	}
	body.cs-navigation .header .top-menu .sub-menu a img { flex: none; width: 20px; height: 20px; margin: 0 !important; }
	body.cs-navigation .header .top-menu .sub-menu a > div { display: block; flex: 1; min-width: 0; width: auto !important; max-width: none !important; }
	body.cs-navigation .header .top-menu .sub-menu a > div span:not(.title),
	body.cs-navigation .header .top-menu .sub-menu a > div > div > div { display: none !important; } /* descriptions, "New" tags */
	body.cs-navigation .header .top-menu .sub-menu a .title { display: inline; color: var(--home-text) !important; font-size: 16px; line-height: 20px; }
	body.cs-navigation .header .top-menu .sub-menu li.subhead > span { padding: 0 !important; margin: 0 !important; }
	/* Extra links inside a group (AI-ready infrastructure, Refer and earn…): plain rows like the rest, not light chips. */
	body.cs-navigation .header .top-menu .sub-menu a.custom-menu-link {
		width: auto !important;
		padding: 10px 0 !important;
		border-radius: 0 !important;
		background: none !important;
		color: var(--home-text) !important;
		font-family: var(--home-font-regular) !important;
		font-size: 16px !important;
	}

	/* "AI-ready infrastructure" / "Refer and earn" sit mid-list in the markup: js/home-2026.js clones them to the end of
	   Products for the sheet; the original stays for the desktop panel. */
	body.cs-navigation .header .top-menu .sub-menu .home-menu-extra a.custom-menu-link { color: var(--home-link) !important; }

	/* Language: a globe button left of the burger (not inside the sheet); tap opens the list under it. */
	body.cs-navigation .header .lang-switcher {
		display: block !important;
		position: absolute;
		top: -4px;
		right: 44px;
		z-index: 301;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important; /* the theme's desktop hover padding */
	}
	body.cs-navigation .header .lang-btn {
		display: flex !important;
		align-items: center;
		justify-content: center;
		gap: 0 !important;
		width: 32px !important;
		height: 32px;
		padding: 0 !important;
		border: 0;
		background: none !important;
		font-size: 0 !important; /* globe only, no "EN" */
	}
	body.cs-navigation .header .lang-btn::after { display: none !important; }
	body.cs-navigation .header .lang-btn img { width: 24px !important; height: 24px !important; margin: 0 !important; filter: brightness(0) invert(0.85); }
	body.cs-navigation.overflowed .header .lang-btn img { translate: 0 -1px; }
	body.cs-navigation .header .lang-switcher .lang-menu {
		display: none !important;
		position: absolute !important;
		top: 40px !important;
		right: -8px !important;
		left: auto !important;
		min-width: 180px !important;
		margin: 0 !important;
		padding: 8px !important;
		border: 0;
		border-radius: 12px;
		background: #fff; /* white, like the desktop dropdowns */
		box-shadow: 0 12px 32px rgba(0, 0, 26, 0.35);
		visibility: visible;
		opacity: 1;
		translate: none;
		filter: none;
		list-style: none;
	}
	body.cs-navigation .header .lang-switcher.is-open .lang-menu { display: block !important; }
	body.cs-navigation .header .lang-switcher .lang-menu a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: none !important; color: #22252a !important; font-family: var(--home-font-regular); font-size: 15px; line-height: 20px; text-decoration: none; transition: background-color 0.15s ease; }
	body.cs-navigation .header .lang-switcher .lang-menu a:hover,
	body.cs-navigation .header .lang-switcher .lang-menu a:active { background: #f1f4f8 !important; color: #22252a !important; }

	/* Chains (Products › Reliable access to 70+ chains): two columns; the heading and "See all chains" span both. */
	body.cs-navigation .header .top-menu .top-menu__link .sub-menu .menu-subsection.product > .sub-sub-menu.usecases {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
	}
	body.cs-navigation .header .top-menu .top-menu__link .sub-menu .menu-subsection.product > .sub-sub-menu.usecases > li.subhead,
	body.cs-navigation .header .top-menu .top-menu__link .sub-menu .menu-subsection.product > .sub-sub-menu.usecases > li.menu-last { grid-column: 1 / -1; }

	/* CTAs at the bottom of the sheet, in the header's order: Talk to an expert (secondary) above Log in (primary). */
	body.cs-navigation .header .top-menu .try-free-mobile,
	body.cs-navigation .header .top-menu .header-log-in-wrapper.mobile {
		display: block !important;
		order: 10;
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
		overflow: visible !important;
		transform: none !important;
		animation: none !important;
		opacity: 1 !important;
		text-align: center;
	}
	body.cs-navigation .header .top-menu .try-free-mobile { margin-top: auto !important; padding-top: 32px !important; }
	body.cs-navigation .header .top-menu .header-log-in-wrapper.mobile { order: 11; padding-top: 12px !important; }
	body.cs-navigation .header .top-menu .try-free-mobile a,
	body.cs-navigation .header .top-menu .header-log-in-wrapper.mobile a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		height: 48px !important;
		margin: 0 !important;
		border-radius: 8px;
		font-family: var(--home-font-medium) !important;
		font-size: 16px !important;
		line-height: 20px !important;
		text-decoration: none;
	}
	body.cs-navigation .header .top-menu .try-free-mobile a { background: var(--home-btn-secondary-bg) !important; color: var(--home-link) !important; } /* secondary, like the header's text link */
	body.cs-navigation .header .top-menu .header-log-in-wrapper.mobile a { background: var(--home-brand) !important; color: #fff !important; } /* primary, like Sign in */
	body.cs-navigation .header .top-menu > style { display: none !important; }
	body.cs-navigation .top-menu-overlay { display: none !important; }
}


@media(min-width:1024px){
 .header .sub-menu.cs-nav-keyboard-open{display:block!important}
 .header .sub-menu.cs-nav-exiting{pointer-events:none}
 .header .lang-switcher.is-open .lang-menu{display:block!important;visibility:visible;opacity:1;pointer-events:auto;translate:0 0;filter:none}
 .header .lang-switcher.is-open .lang-menu li{opacity:1;translate:0 0}
}
@media(max-width:1023px){
 body.cs-navigation .header .top-menu.top-menu_active{background:var(--cs-drawer-bg,#00001a)!important}
 body.cs-navigation.cs-glass-light .header{--home-text:#22252a;--home-text-secondary:#606772;--home-btn-secondary-bg:#e5f1ff;--home-link:#007bff;--cs-drawer-bg:#fff}
 body.cs-navigation.cs-glass-light.overflowed .header{background:#fff!important}
 body.cs-navigation.cs-glass-light .header .top-menu .top-menu__link{border-bottom-color:#e5eaf0!important}
 body.cs-navigation.cs-glass-light .header .lang-btn img{filter:none}
 body.cs-navigation .header .lang-switcher .lang-menu{z-index:500}
 body.cs-navigation .header .lang-switcher .lang-menu a{color:#22252a!important}
 body.cs-navigation .header .top-menu .top-menu__link .sub-menu .menu-subsection>span{display:block!important}
}
@media(prefers-reduced-motion:reduce){
 body.cs-navigation .header .top-menu.top-menu_active,
 body.cs-navigation .header .sub-menu,
 body.cs-navigation .header .sub-sub-menu{animation:none!important}
 body.cs-navigation .header .lang-menu,
 body.cs-navigation .header .lang-menu li{transition:none!important}
}
body.cs-navigation .header a:focus-visible,
body.cs-navigation .header [role=button]:focus-visible{outline:2px solid #007bff;outline-offset:3px}

@media(max-width:1023px){
 body.cs-navigation .header .top-menu{display:none!important}
 body.cs-navigation .header .top-menu.top-menu_active{
  display:flex!important;position:fixed!important;top:var(--cs-navigation-top,72px)!important;right:0!important;bottom:0!important;left:0!important;
  padding:8px 24px 32px!important;overflow-y:auto!important;flex-direction:column!important;
 }
}

@media(min-width:1024px) and (max-width:1149px){
 body.cs-navigation .header .top-menu{margin-right:0!important}
 body.cs-navigation .header .top-menu>.top-menu__link>a{padding-left:8px!important;padding-right:8px!important;white-space:nowrap!important}
 body.cs-navigation .header .lang-switcher{margin-right:8px!important}
 body.cs-navigation .header .header-login-button,
 body.cs-navigation .header .top-menu__link_p6 a{white-space:nowrap!important}
}
@media(max-width:1023px){
 body.cs-navigation .header .top-menu>.top-menu__link>a{font-size:18px!important;line-height:24px!important;font-family:var(--home-font-medium)!important}
 body.cs-navigation .header .top-menu .sub-menu a{font-size:16px!important;line-height:20px!important;font-family:var(--home-font-regular)!important}
 body.cs-navigation .header .top-menu .sub-menu .subhead>span{font-size:13px!important;line-height:16px!important}
}

@media(max-width:1023px){
 body.cs-navigation .header .lang-switcher{position:absolute!important;top:-4px!important;right:44px!important;width:auto!important;margin:0!important;padding:0!important}
}

}

@layer cs-header-glass {
/* Approved shared design: dark homepage/BBW/legacy-template headers stay dark glass on scroll,
   with white navigation/logo. This deliberately overrides their old white-scrolled palette.
   Those old rules remain the script-failure fallback. Light pages use light glass.
   Header positioning and dimensions remain owned by the theme. */
body.cs-header-glass .header::before {
 content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 opacity: 0; transition: opacity 160ms ease;
}
body.cs-header-glass.cs-glass-light.cs-glass-scrolled .header,
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header { background: transparent !important; }
body.cs-header-glass.cs-glass-scrolled .header::before { opacity: 1; background: #fff; }
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header::before { background: #090a0b; }
/* The glass layer owns the transition; restore each light template's own background without a transparent interval. */
body.cs-header-glass.cs-glass-light:not(.cs-glass-scrolled) .header { transition: none !important; }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
 body.cs-header-glass.cs-glass-scrolled .header::before {
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
 }
 body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header::before { background: rgba(9,10,11,.60); }
}
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header #chainstack-white { display: block !important; }
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header #chainstack-blue { display: none !important; }
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .top-menu:not(.top-menu_active) > .top-menu__link > a,
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .top-menu:not(.top-menu_active) > .top-menu__link:hover > a,
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .header-log-in-wrapper:not(.mobile) .header-login-button,
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .lang-btn { color: #f6f9fd !important; }
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .lang-btn img { filter: brightness(0) invert(1); }
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .lang-btn::after {
 filter: brightness(0) invert(1);
}
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .top-menu:not(.top-menu_active) > .menu-item-has-children > a::after {
 background: url(../img/new-nav-icon-white.svg) no-repeat center / cover !important;
}
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .top-menu-opener_line-one,
body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header .top-menu-opener_line-two { background-color: #fff !important; }
/* Keep the current open drawer opaque, with its existing link colors and scroll locking. */
body.cs-header-glass.overflowed.cs-glass-scrolled .header::before { opacity: 0; }
body.cs-header-glass.cs-glass-dark.overflowed.cs-glass-scrolled .header { background: #090a0b !important; }
body.cs-header-glass.cs-glass-light.overflowed.cs-glass-scrolled .header { background: #fff !important; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
 body.cs-header-glass.cs-glass-scrolled .header::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
 body.cs-header-glass.cs-glass-dark.cs-glass-scrolled .header::before { background: #090a0b; }
}
@media (prefers-reduced-motion: reduce) {
 body.cs-header-glass .header::before { transition: none; }
}

}

/* The controller owns language visibility; hover/focus cannot reopen an explicitly closed dropdown. */
@layer cs-navigation {
 body.cs-navigation .header .lang-switcher:not(.is-open) .lang-menu {
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
 }
}
