/**
 * CIMNE custom header / navigation.
 *
 * Data and HTML are generated by the child theme navigation component.
 * This stylesheet owns presentation only; JavaScript state is exposed through
 * classes/ARIA/hidden attributes by navigation.js.
 */

:root {
	--cimne-blue: #004996;
	--cimne-teal: #02a0a5;
	--cimne-light: #d9f1f2;
	--cimne-utility-bg: #f2f2f2;
	--cimne-white: #ffffff;
	--cimne-text: #ffffff;
	--cimne-dark-text: #004996;
	--cimne-header-max-width: 1400px;
	--cimne-mega-height: 60dvh;
	/* --cimne-desktop-pad: clamp(24px, 4vw, 60px); */
	--cimne-desktop-pad: 0px;
	--cimne-mobile-pad: 16px;
	--cimne-utility-height: 38px;
	--cimne-main-height: 100px;
	--cimne-mobile-bar-height: 96px;
	--cimne-border: rgba(255, 255, 255, 0.45);
	--cimne-focus: #ffffff;
}
@media (max-width: 1400px) {
    :root {
        --cimne-desktop-pad: 3%;
    }
}
@media (max-width: 981px) {
    :root {
        --cimne-desktop-pad: 6%;
    }
}
/* --------------------------------------------------------------------------
 * Component reset
 * -------------------------------------------------------------------------- */

.cimne-header,
.cimne-header *,
.cimne-header *::before,
.cimne-header *::after {
	box-sizing: border-box;
}

.cimne-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	font-family: inherit;
	line-height: 1.25;
}

.cimne-header [hidden] {
	display: none !important;
}

.cimne-header ul,
.cimne-header ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cimne-header p,
.cimne-header figure,
.cimne-header h2 {
	margin: 0;
	padding: 0;
}

.cimne-header :where(a) {
	color: inherit;
	text-decoration: none;
}

.cimne-header :where(button, input) {
	font: inherit;
}

.cimne-header :where(button) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.cimne-header img,
.cimne-header svg {
	display: block;
}

.cimne-header :where(a, button, input):focus-visible {
	outline: 2px solid var(--cimne-focus);
	outline-offset: 4px;
}

.cimne-header .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Prevent page scroll while JS has the mobile navigation open. */
body.cimne-navigation-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
 * Shared logo / controls
 * -------------------------------------------------------------------------- */

.cimne-header__logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.cimne-header__logo-image {
	width: auto;
	height: auto;
	max-height: 40px;
	max-width: 180px;
	filter: brightness(0) invert(1);
}

.cimne-header__logo-text {
	color: var(--cimne-white);
	font-size: 1.5rem;
	font-weight: 700;
}

.cimne-search-toggle,
.cimne-mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
}

/* Search is circular in both desktop and mobile. */
.cimne-search-toggle {
	border: 1px solid currentColor;
	border-radius: 50%;
}

.cimne-mobile-toggle {
	border: 0;
	border-radius: 0;
}

.cimne-icon {
	width: 24px;
	height: 24px;
}

/* --------------------------------------------------------------------------
 * Desktop: utility bar
 * -------------------------------------------------------------------------- */

.cimne-header__desktop {
	display: block;
}

.cimne-header__utility {
	min-height: var(--cimne-utility-height);
	background: var(--cimne-utility-bg);
	color: var(--cimne-teal);
}

.cimne-header__utility-inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
	width: min(100%, var(--cimne-header-max-width));
	min-height: var(--cimne-utility-height);
	margin-inline: auto;
	padding-inline: var(--cimne-desktop-pad);
}

.cimne-utility-nav--desktop .cimne-utility-nav__list,
.cimne-language-nav--desktop .cimne-language-nav__list {
	display: flex;
	align-items: center;
}

.cimne-utility-nav--desktop .cimne-utility-nav__item {
	display: flex;
	align-items: center;
}

.cimne-utility-nav--desktop .cimne-utility-nav__item + .cimne-utility-nav__item::before {
	content: "";
	width: 1px;
	height: 14px;
	margin-inline: 14px;
	background: currentColor;
	opacity: 0.65;
}

.cimne-utility-nav--desktop .cimne-utility-nav__link,
.cimne-language-nav--desktop .cimne-language-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.cimne-utility-nav--desktop .cimne-utility-nav__link:hover,
.cimne-language-nav--desktop .cimne-language-nav__link:hover,
.cimne-language-nav--desktop .is-current .cimne-language-nav__link {
	/* text-decoration: underline;
	text-underline-offset: 4px; */
	font-weight: 600;
}

.cimne-language-nav--desktop .cimne-language-nav__list {
	gap: 18px;
}

/* --------------------------------------------------------------------------
 * Desktop: main navigation bar
 * -------------------------------------------------------------------------- */

.cimne-header__main {
	position: relative;
	background: var(--cimne-blue);
	color: var(--cimne-white);
	border-bottom: 1px solid var(--cimne-border);
}

.cimne-header__main-inner {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100%, var(--cimne-header-max-width));
	min-height: var(--cimne-main-height);
	margin-inline: auto;
	padding-inline: var(--cimne-desktop-pad);
}

.cimne-header__logo--desktop {
	margin-right: clamp(28px, 4vw, 64px);
}

.cimne-nav--desktop {
	min-width: 0;
	flex: 1 1 auto;
}

.cimne-nav--desktop .cimne-nav__list {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--cimne-main-height);
	gap: clamp(18px, 2vw, 34px);
}

.cimne-nav--desktop .cimne-nav__item {
	display: flex;
	align-items: center;
	min-height: var(--cimne-main-height);
}

.cimne-nav--desktop .cimne-nav__item--cta {
	margin-left: auto;
}

.cimne-nav--desktop .cimne-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-block: 4px;
	color: var(--cimne-white);
	/* font-size: clamp(15px, 0.95vw, 16px); */
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.cimne-nav--desktop .cimne-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 160ms ease;
}

.cimne-nav--desktop .cimne-nav__link:hover::after,
.cimne-nav--desktop .cimne-nav__link:focus-visible::after,
.cimne-nav--desktop .cimne-nav__item.is-current > .cimne-nav__link::after,
.cimne-nav--desktop .cimne-nav__item.is-current-section > .cimne-nav__link::after,
.cimne-nav--desktop .cimne-nav__link[aria-expanded="true"]::after {
	transform: scaleX(1);
}

.cimne-nav--desktop .cimne-nav__link--cta {
	min-height: 42px;
	padding: 0 22px;
	border: 1px solid var(--cimne-white);
	border-radius: 999px;
	transition: background-color 160ms ease, color 160ms ease;
}

.cimne-nav--desktop .cimne-nav__link--cta::after {
	display: none;
}

.cimne-nav--desktop .cimne-nav__link--cta:hover,
.cimne-nav--desktop .cimne-nav__link--cta:focus-visible,
.cimne-nav--desktop .cimne-nav__item.is-current > .cimne-nav__link--cta {
	background: var(--cimne-white);
	color: var(--cimne-blue);
}

.cimne-search-toggle--desktop {
	margin-left: 24px;
	color: var(--cimne-white);
	transition: background-color 160ms ease, color 160ms ease;
}

.cimne-search-toggle--desktop:hover,
.cimne-search-toggle--desktop:focus-visible,
.cimne-search-toggle--desktop[aria-expanded="true"] {
	background: var(--cimne-white);
	color: var(--cimne-blue);
}

/* --------------------------------------------------------------------------
 * Desktop: mega menu
 * -------------------------------------------------------------------------- */

.cimne-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 1050;
	width: 100vw;
	height: var(--cimne-mega-height);
	transform: translateX(-50%);
	background: var(--cimne-blue);
	color: var(--cimne-white);
	border-top: 1px solid var(--cimne-border);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.cimne-mega__inner {
	display: grid;
	grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.15fr) minmax(320px, 1fr);
	width: min(100%, var(--cimne-header-max-width));
	height: 100%;
	min-height: 0;
	margin-inline: auto;
	padding-inline: var(--cimne-desktop-pad);
}

.cimne-mega__intro,
.cimne-mega__navigation,
.cimne-mega__feature {
	padding-top: 38px;
	padding-bottom: 42px;
}

.cimne-mega__intro {
	padding-right: clamp(30px, 4vw, 64px);
}

.cimne-mega__title {
	color: var(--cimne-white);
	font-size: clamp(30px, 2.2vw, 40px);
	font-weight: 400;
	line-height: 1.05;
}

.cimne-mega__description {
	max-width: 250px;
	margin-top: 20px !important;
	color: var(--cimne-white);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.25;
}

.cimne-mega__navigation {
	padding-right: clamp(24px, 3.5vw, 54px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cimne-mega__list {
	display: grid;
	gap: 15px;
}

.cimne-mega__link {
	display: inline-block;
	color: var(--cimne-white);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
}

.cimne-mega__link:hover,
.cimne-mega__link:focus-visible,
.cimne-mega__item.is-current .cimne-mega__link {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.cimne-mega__feature {
	position: relative;
	padding-left: clamp(34px, 4vw, 58px);
	border-left: 1px solid var(--cimne-border);
}

.cimne-mega-feature {
	position: relative;
	display: block;
	max-width: 390px;
	margin-left: auto;
	color: var(--cimne-white);
}

.cimne-mega-feature__media {
	height: 170px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.cimne-mega-feature__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cimne-mega-feature__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 14px;
	padding-right: 56px;
}

.cimne-mega-feature__eyebrow,
.cimne-mega-feature__date {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
}

.cimne-mega-feature__title {
	font-size: clamp(18px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.05;
}

.cimne-mega-feature__arrow {
	position: absolute;
	top: -26px;
	right: -14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: var(--cimne-teal);
	color: var(--cimne-white);
	font-size: 22px;
	transition: transform 160ms ease;
}

.cimne-mega-feature:hover .cimne-mega-feature__arrow,
.cimne-mega-feature:focus-visible .cimne-mega-feature__arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
 * Shared search panel
 * -------------------------------------------------------------------------- */

.cimne-search {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1300;
	width: 100%;
	background: var(--cimne-blue);
	color: var(--cimne-white);
	border-top: 1px solid var(--cimne-border);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.cimne-search__inner {
	width: min(100%, var(--cimne-header-max-width));
	margin-inline: auto;
	padding: 32px var(--cimne-desktop-pad) 38px;
}

.cimne-search__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.cimne-search__title {
	color: var(--cimne-white);
	font-size: 28px;
	font-weight: 400;
}

.cimne-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

.cimne-search__field-wrapper {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--cimne-white);
}

.cimne-search__field {
	width: 100%;
	min-width: 0;
	padding: 14px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--cimne-white);
	font-size: clamp(22px, 2vw, 32px);
}

.cimne-search__field::placeholder {
	color: rgba(255, 255, 255, 0.68);
}

.cimne-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
}

/* --------------------------------------------------------------------------
 * Mobile
 * -------------------------------------------------------------------------- */

.cimne-header__mobile {
	display: none;
	
}

@media (max-width: 980px) {
	:root {
		--cimne-mobile-bar-height: 92px;
	}

	.cimne-header__desktop {
		display: none;
	}

	.cimne-header__mobile {
		display: block;
		background: var(--cimne-blue);
		color: var(--cimne-white);
	}

	.cimne-header__mobile-bar {
		position: relative;
		z-index: 1210;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		min-height: var(--cimne-mobile-bar-height);
		padding: 14px var(--cimne-mobile-pad);
		background: var(--cimne-blue);
	}

	.cimne-header--home.is-mobile-open .cimne-header__mobile-bar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
	}

	.cimne-header__logo--mobile .cimne-header__logo-image {
		width: auto;
		height: 40px;
		max-width: 190px;
		max-height: none;
	}

	.cimne-header__mobile-actions {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.cimne-search-toggle--mobile {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		border-width: 1px;
		color: var(--cimne-white);
	}

	.cimne-mobile-toggle {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		color: var(--cimne-white);
	}

	.cimne-mobile-toggle__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.cimne-mobile-toggle__icon--close {
		display: none;
	}

	.cimne-mobile-toggle[aria-expanded="true"] .cimne-mobile-toggle__icon--open {
		display: none;
	}

	.cimne-mobile-toggle[aria-expanded="true"] .cimne-mobile-toggle__icon--close {
		display: inline-flex;
	}

	.cimne-mobile-navigation {
		position: fixed;
		top: var(--cimne-mobile-bar-height);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1200;
		background: var(--cimne-blue);
		color: var(--cimne-white);
	}

	.cimne-mobile-navigation__scroll {
		height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.cimne-mobile-panel {
		min-height: 100%;
	}

	.cimne-mobile-panel--root {
		min-height: 100%;
		background: var(--cimne-light);
	}

	.cimne-mobile-nav {
		background: var(--cimne-blue);
		color: var(--cimne-white);
	}

	.cimne-mobile-nav__list {
		padding: 26px 20px 24px;
	}

	.cimne-mobile-nav__item {
		margin: 0;
	}

	.cimne-mobile-nav__row {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		min-height: 52px;
	}

	.cimne-mobile-nav__link {
		display: flex;
		align-items: center;
		min-width: 0;
		min-height: 48px;
		flex: 0 1 auto;
		color: var(--cimne-white);
		font-size: clamp(18px, 5.8vw, 23px);
		font-weight: 400;
		line-height: 28px;
		text-transform: uppercase;
	}

	/* Long arrow immediately after parent-link text, while preserving a 48px touch target. */
	.cimne-mobile-nav__submenu-toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		flex: 0 0 48px;
		margin-inline-start: 12px;
	}

	.cimne-mobile-nav__submenu-toggle > span {
		display: none;
	}

	.cimne-mobile-nav__submenu-toggle::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 6px;
		width: 32px;
		height: 1px;
		background: currentColor;
		transform: translateY(-50%);
	}

	.cimne-mobile-nav__submenu-toggle::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 30px;
		width: 7px;
		height: 7px;
		border-top: 1px solid currentColor;
		border-right: 1px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
	}

	.cimne-mobile-nav__item--cta {
		margin: 14px calc(-1 * var(--cimne-mobile-pad)) -24px;
		padding-inline: var(--cimne-mobile-pad);
		background: var(--cimne-teal);
	}

	.cimne-mobile-nav__item--cta .cimne-mobile-nav__row {
		min-height: 56px;
	}

	.cimne-mobile-nav__item--cta .cimne-mobile-nav__link {
		font-size: clamp(17px, 5.4vw, 22px);
	}

	.cimne-utility-nav--mobile,
	.cimne-language-nav--mobile {
		background: var(--cimne-light);
		color: var(--cimne-teal);
	}

	.cimne-mobile-nav,
	.cimne-utility-nav--mobile {
		padding: 10px var(--cimne-mobile-pad) 20px;
	}

	.cimne-utility-nav--mobile .cimne-utility-nav__list {
		display: grid;
		gap: 8px;
	}

	.cimne-utility-nav--mobile .cimne-utility-nav__link {
		display: inline-flex;
		align-items: center;
		/* min-height: 32px; */
		font-size: 18px;
		font-weight: 400;
		line-height: 24px;
	}

	/* Optional WordPress menu class for an editorial separator in Utility. */
	.cimne-utility-nav--mobile .utility-separator {
		margin-top: 8px;
		padding-top: 16px;
		border-top: 1px solid currentColor;
	}

	.cimne-language-nav--mobile {
		padding: 0 var(--cimne-mobile-pad) 36px;
	}

	.cimne-language-nav--mobile .cimne-language-nav__list {
		display: flex;
		align-items: center;
		gap: 20px;
		padding-top: 18px;
		border-top: 1px solid var(--cimne-teal);
	}

	.cimne-language-nav--mobile .cimne-language-nav__link {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
		font-size: 18px;
		font-weight: 500;
	}

	.cimne-language-nav--mobile .is-current .cimne-language-nav__link {
		font-weight: 800;
		/* text-decoration: underline; */
		text-underline-offset: 4px;
	}

	/* Mobile section panels. */
	.cimne-mobile-panel--section {
		padding: 22px var(--cimne-mobile-pad) 42px;
		background: var(--cimne-blue);
		color: var(--cimne-white);
	}

	.cimne-mobile-panel__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
	}

	.cimne-mobile-panel__title {
		color: var(--cimne-white);
		font-size: clamp(34px, 10vw, 42px);
		font-weight: 400;
		line-height: 1;
	}

	/* Long back arrow using the same visual language as the root submenu arrows. */
	.cimne-mobile-panel__back {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 44px;
		flex: 0 0 52px;
	}

	.cimne-mobile-panel__back > span {
		display: none;
	}

	.cimne-mobile-panel__back::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 6px;
		width: 32px;
		height: 1px;
		background: currentColor;
		transform: translateY(-50%);
	}

	.cimne-mobile-panel__back::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 30px;
		width: 7px;
		height: 7px;
		border-bottom: 1px solid currentColor;
		border-left: 1px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
	}

	.cimne-mobile-panel__description {
		max-width: none;
		width: 100%;
		margin-top: 18px !important;
		padding-bottom: 28px !important;
		border-bottom: 1px solid var(--cimne-white);
		color: var(--cimne-white);
		font-size: 19px;
		font-weight: 400;
		line-height: 1.25;
	}

	.cimne-mobile-panel__list {
		display: grid;
		gap: 12px;
		padding-top: 30px !important;
	}

	.cimne-mobile-panel__link {
		display: inline-block;
		color: var(--cimne-white);
		font-size: 20px;
		font-weight: 500;
		line-height: 24px;
		text-transform: uppercase;
	}

	.cimne-mobile-panel__item.is-current .cimne-mobile-panel__link {
		text-decoration: underline;
		text-underline-offset: 5px;
	}

	/* Search behaves as a viewport panel on mobile. */
	.cimne-search {
		position: fixed;
		top: var(--cimne-mobile-bar-height);
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		overflow-y: auto;
	}

	.cimne-search__inner {
		width: 100%;
		padding: 28px var(--cimne-mobile-pad) 40px;
	}

	.cimne-search__title {
		font-size: 34px;
	}

	.cimne-search__field {
		font-size: 24px;
	}
}

/* Very narrow screens. */
@media (max-width: 420px) {
	:root {
		--cimne-mobile-bar-height: 88px;
	}

	.cimne-header__logo--mobile .cimne-header__logo-image {
		height: 38px;
		max-width: 184px;
	}

	.cimne-header__mobile-actions {
		gap: 4px;
	}

	.cimne-search-toggle,
	.cimne-mobile-toggle {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}
}

/* --------------------------------------------------------------------------
 * Visual refinement v3 - screenshot comparison
 * -------------------------------------------------------------------------- */

@media (min-width: 981px) {
	/* Keep every desktop mega menu at the same visual height. */
	.cimne-mega,
	.cimne-mega__inner {
		block-size: var(--cimne-mega-height);
	}

	.cimne-mega__intro,
	.cimne-mega__navigation,
	.cimne-mega__feature {
		min-height: 0;
		max-height: var(--cimne-mega-height);
	}

	/* The Figma uses almost the full viewport width, not a 1440px centered box. */
	/* .cimne-header__utility-inner,
	.cimne-header__main-inner,
	.cimne-mega__inner {
		width: 100%;
		max-width: none;
	}*/
} 

@media (max-width: 980px) {
	/* Root state: light utility background continues to the bottom of the viewport. */
	.cimne-mobile-panel--root {
		display: flex;
		min-height: 100%;
		flex-direction: column;
	}

	.cimne-mobile-panel--root .cimne-mobile-nav {
		flex: 0 0 auto;
	}

	.cimne-mobile-panel--root .cimne-utility-nav--mobile {
		flex: 0 0 auto;
	}

	.cimne-mobile-panel--root .cimne-language-nav--mobile {
		min-height: 120px;
		flex: 1 0 auto;
	}

	/* Stronger alignment with the mobile Figma. */
	.cimne-mobile-nav__link,
	.cimne-mobile-nav__item--cta .cimne-mobile-nav__link {
		font-size: 22px;
	}


	.cimne-mobile-nav__item--cta {
		margin-top: 12px;
	}


	.cimne-mobile-toggle .cimne-icon--close {
		width: 30px;
		height: 30px;
	}

	/*
	 * In the Figma a second-level panel replaces the global mobile header:
	 * the section title/back control occupies the top of the viewport.
	 */
	.cimne-header.is-mobile-submenu-open .cimne-header__mobile-bar {
		display: none;
	}

	.cimne-header.is-mobile-submenu-open .cimne-mobile-navigation {
		top: 0;
	}

	.cimne-header.is-mobile-submenu-open .cimne-mobile-panel--section {
		min-height: 100dvh;
		padding: 28px 16px 42px;
	}

	.cimne-header.is-mobile-submenu-open .cimne-mobile-panel__title {
		font-size: 38px;
	}

	.cimne-header.is-mobile-submenu-open .cimne-mobile-panel__description {
		padding-bottom: 30px !important;
	}
}

/* --------------------------------------------------------------------------
 * Reduced motion
 * -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.cimne-header *,
	.cimne-header *::before,
	.cimne-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* --------------------------------------------------------------------------
 * Optional Divi host reset.
 * Add class "cimne-header-host" to the Global Header section or Code module.
 * -------------------------------------------------------------------------- */

.cimne-header-host,
.cimne-header-host.et_pb_section,
.cimne-header-host .et_pb_row,
.cimne-header-host .et_pb_column,
.cimne-header-host .et_pb_code,
.cimne-header-host .et_pb_code_inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cimne-header-host,
.cimne-header-host .et_pb_row,
.cimne-header-host .et_pb_column,
.cimne-header-host .et_pb_code,
.cimne-header-host .et_pb_code_inner {
	overflow: visible !important;
}

/* --------------------------------------------------------------------------
 * Final navigation states (Excel specification)
 * -------------------------------------------------------------------------- */

/* The configured Divi logo is already CIMNE blue with the small R in black. */
.cimne-header__logo-image {
	filter: none;
	transition: filter 160ms ease;
}

/* Utility is always the same, including the home page. */
.cimne-header .cimne-header__utility {
	background: var(--cimne-utility-bg);
	color: var(--cimne-teal);
}

.cimne-header .cimne-header__utility .cimne-utility-nav__link,
.cimne-header .cimne-header__utility .cimne-language-nav__link {
	color: var(--cimne-teal);
}

/* --------------------------------------------------------------------------
 * Inline search: replaces navigation/actions inside the main bar
 * -------------------------------------------------------------------------- */

.cimne-search-slot {
	min-width: 0;
	flex: 1 1 auto;
	align-items: center;
	gap: 16px;
}

.cimne-search-slot[hidden] {
	display: none !important;
}

.cimne-search-form {
	min-width: 0;
	flex: 1 1 auto;
}

.cimne-search-form__field-wrapper {
	display: flex;
	align-items: center;
	min-width: 0;
	border-bottom: 1px solid currentColor;
}

.cimne-search-form__field {
	width: 100%;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font-size: clamp(20px, 1.8vw, 28px);
	line-height: 1.2;
}

.cimne-search-form__field::placeholder {
	color: currentColor;
	opacity: 0.68;
}

.cimne-search-form__submit,
.cimne-search-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	color: inherit;
}

body.cimne-search-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
 * Desktop states
 * -------------------------------------------------------------------------- */

@media (min-width: 981px) {
	/* REST OF WEBSITE - resting state. */
	.cimne-header:not(.cimne-header--home) .cimne-header__main {
		background: var(--cimne-white);
		color: var(--cimne-blue);
		border-bottom-color: rgba(0, 73, 150, 0.18);
		transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
	}

	.cimne-header:not(.cimne-header--home) .cimne-nav--desktop .cimne-nav__link,
	.cimne-header:not(.cimne-header--home) .cimne-search-toggle--desktop,
	.cimne-header:not(.cimne-header--home) .cimne-header__logo-text {
		color: var(--cimne-blue);
	}

	.cimne-header:not(.cimne-header--home) .cimne-header__logo--desktop .cimne-header__logo-image {
		filter: none;
	}

	.cimne-header:not(.cimne-header--home) .cimne-nav--desktop .cimne-nav__link--cta {
		color: var(--cimne-teal);
		border-color: var(--cimne-teal);
		background: transparent;
	}

	.cimne-header:not(.cimne-header--home) .cimne-search-toggle--desktop {
		border-color: currentColor;
		background: transparent;
	}

	/* HOME - resting state: transparent main bar, white controls/logo/jobs. */
	.cimne-header--home .cimne-header__main {
		background: transparent;
		color: var(--cimne-white);
		border-bottom-color: rgba(255, 255, 255, 0.45);
		transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
	}

	.cimne-header--home .cimne-nav--desktop .cimne-nav__link,
	.cimne-header--home .cimne-search-toggle--desktop,
	.cimne-header--home .cimne-header__logo-text {
		color: var(--cimne-white);
	}

	.cimne-header--home .cimne-header__logo--desktop .cimne-header__logo-image {
		filter: brightness(0) invert(1);
	}

	.cimne-header--home .cimne-nav--desktop .cimne-nav__link--cta {
		color: var(--cimne-white);
		border-color: var(--cimne-white);
		background: transparent;
	}

	/*
	 * ACTIVE DESKTOP STATE.
	 * JS adds .is-main-interacting only while hovering/focusing an actual
	 * interactive control: logo, top-level menu item, Jobs or Search.
	 * Mega/search states keep the bar active after the pointer leaves a trigger.
	 */
	.cimne-header .cimne-header__main.is-main-interacting,
	.cimne-header.is-mega-open .cimne-header__main,
	.cimne-header.is-search-open .cimne-header__main {
		background: var(--cimne-blue);
		color: var(--cimne-white);
		border-bottom-color: var(--cimne-border);
	}

	.cimne-header .cimne-header__main.is-main-interacting .cimne-nav--desktop .cimne-nav__link,
	.cimne-header.is-mega-open .cimne-nav--desktop .cimne-nav__link,
	.cimne-header.is-search-open .cimne-nav--desktop .cimne-nav__link,
	.cimne-header .cimne-header__main.is-main-interacting .cimne-search-toggle--desktop,
	.cimne-header.is-mega-open .cimne-search-toggle--desktop,
	.cimne-header.is-search-open .cimne-search-toggle--desktop,
	.cimne-header .cimne-header__main.is-main-interacting .cimne-header__logo-text,
	.cimne-header.is-mega-open .cimne-header__logo-text,
	.cimne-header.is-search-open .cimne-header__logo-text {
		color: var(--cimne-white);
	}

	.cimne-header .cimne-header__main.is-main-interacting .cimne-header__logo--desktop .cimne-header__logo-image,
	.cimne-header.is-mega-open .cimne-header__logo--desktop .cimne-header__logo-image,
	.cimne-header.is-search-open .cimne-header__logo--desktop .cimne-header__logo-image {
		filter: brightness(0) invert(1);
	}

	.cimne-header .cimne-header__main.is-main-interacting .cimne-nav--desktop .cimne-nav__link--cta,
	.cimne-header.is-mega-open .cimne-nav--desktop .cimne-nav__link--cta,
	.cimne-header.is-search-open .cimne-nav--desktop .cimne-nav__link--cta {
		color: var(--cimne-white);
		border-color: var(--cimne-white);
		background: transparent;
	}

	/* Jobs keeps its own outlined hover treatment; it never opens a submenu. */
	.cimne-nav--desktop .cimne-nav__link--cta:hover,
	.cimne-nav--desktop .cimne-nav__link--cta:focus-visible {
		/* background: rgba(255, 255, 255, 0.08); */
		color: var(--cimne-blue) !important;
		border-color: var(--cimne-white);
		background: var(--cimne-white) !important;
	}

	/* Search replaces the primary nav and search trigger, while logo remains. */
	.cimne-header.is-search-open .cimne-nav--desktop,
	.cimne-header.is-search-open .cimne-search-toggle--desktop {
		display: none;
	}

	.cimne-header.is-search-open .cimne-search-slot--desktop {
		display: flex !important;
		color: var(--cimne-white);
	}

	.cimne-search-slot--desktop {
		margin-left: clamp(10px, 2vw, 28px);
	}

	/* Interior pages: only Main becomes fixed after Utility scrolls away. */
	.cimne-header.is-main-fixed:not(.cimne-header--home) .cimne-header__main {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1150;
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
 * Mobile states
 * -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	/* REST OF WEBSITE - white resting/search bar, blue controls and original logo. */
	.cimne-header:not(.cimne-header--home) {
		min-height: var(--cimne-mobile-bar-height);
	}
	.cimne-header:not(.cimne-header--home) .cimne-header__mobile {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1210;
		width: 100%;
		background: var(--cimne-white);
		color: var(--cimne-blue);
	}
	.cimne-header:not(.cimne-header--home) .cimne-header__mobile-bar {
		background: var(--cimne-white);
		color: var(--cimne-blue);
		border-bottom: 1px solid #d9d9d9;
	}

	.cimne-header:not(.cimne-header--home) .cimne-header__logo--mobile .cimne-header__logo-image {
		filter: none;
	}

	.cimne-header:not(.cimne-header--home) .cimne-search-toggle--mobile,
	.cimne-header:not(.cimne-header--home) .cimne-mobile-toggle {
		color: var(--cimne-blue);
	}

	/* HOME - transparent resting/search bar, white controls/logo. */
	.cimne-header--home .cimne-header__mobile,
	.cimne-header--home .cimne-header__mobile-bar {
		background: transparent;
		color: var(--cimne-white);
	}

	.cimne-header--home .cimne-header__logo--mobile .cimne-header__logo-image {
		filter: brightness(0) invert(1);
	}

	.cimne-header--home .cimne-search-toggle--mobile,
	.cimne-header--home .cimne-mobile-toggle {
		color: var(--cimne-white);
	}

	/* Opening the mobile navigation always uses the blue overlay/header state. */
	.cimne-header.is-mobile-open .cimne-header__mobile-bar {
		background: var(--cimne-blue);
		color: var(--cimne-white);
	}

	.cimne-header.is-mobile-open .cimne-header__logo--mobile .cimne-header__logo-image {
		filter: brightness(0) invert(1);
	}

	.cimne-header.is-mobile-open .cimne-search-toggle--mobile,
	.cimne-header.is-mobile-open .cimne-mobile-toggle {
		color: var(--cimne-white);
	}

	/* Search replaces the Search/Menu action group, keeping the logo visible. */
	.cimne-header.is-search-open .cimne-header__mobile-actions {
		display: none;
	}

	.cimne-header.is-search-open .cimne-search-slot--mobile {
		display: flex !important;
	}

	.cimne-search-slot--mobile {
		min-width: 0;
		flex: 1 1 auto;
	}

	.cimne-search-form--mobile .cimne-search-form__field {
		font-size: 18px;
	}

	/* Corrected Excel state: Mobile Rest + Search stays white/blue/original logo. */
	.cimne-header:not(.cimne-header--home).is-search-open .cimne-header__mobile-bar {
		background: var(--cimne-white);
		color: var(--cimne-blue);
	}

	.cimne-header:not(.cimne-header--home).is-search-open .cimne-header__logo--mobile .cimne-header__logo-image {
		filter: none;
	}

	/* Mobile Home + Search remains transparent/white/white logo. */
	.cimne-header--home.is-search-open .cimne-header__mobile-bar {
		background: transparent;
		color: var(--cimne-white);
	}

	.cimne-header--home.is-search-open .cimne-header__logo--mobile .cimne-header__logo-image {
		filter: brightness(0) invert(1);
	}
}

/* --------------------------------------------------------------------------
 * Home placement / non-sticky behavior
 * -------------------------------------------------------------------------- */

/*
 * Home header overlays the hero. Utility remains #f2f2f2; only Main/mobile
 * resting background is transparent according to the Excel specification.
 * No part of the Home header is fixed when scrolling.
 */
body.home .cimne-header-host {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent !important;
}

