/* ── Base header ── */
@media (min-width: 768px) {
	html:not(.hs-inline-edit) .header__main {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 100;
		transition: transform 0.3s ease, background-color 0.3s ease;
	}

	html:not(.hs-inline-edit) .header__wrapper {
		transition: padding-top 0.3s ease;
	}

	/* ── Scrolled state — immediate white bg ── */
	html:not(.hs-inline-edit) .header__main.header--scrolled {
		background-color: #ffffff;
	}

	/* ── Hidden state — slide up ── */
	html:not(.hs-inline-edit) .header__main.header--hidden {
		transform: translateY(-100%);
	}

	/* ── Padding reduction — only after 34px ── */
	html:not(.hs-inline-edit) .header__container .header__main.header--past-threshold .header__wrapper {
		padding-top: 16px;
	}

	/* ── Top level nav only — dark background ── */
	html:not(.hs-inline-edit) .header--dark-bg .menu__item--depth-1 > .menu__link,
	html:not(.hs-inline-edit) .header--dark-bg .menu__item--depth-1 > .menu__child-toggle {
		color: #ffffff;
	}

	/* ── Top level nav only — light background or scrolled ── */
	html:not(.hs-inline-edit) .header--light-bg .menu__item--depth-1 > .menu__link,
	html:not(.hs-inline-edit) .header--light-bg .menu__item--depth-1 > .menu__child-toggle {
		color: your-default-color;
	}

	/* ── Search icon — dark background ── */
	html:not(.hs-inline-edit) .header--dark-bg .header__search .hs-search-field__button svg {
		fill: #ffffff;
	}

	/* ── Search icon — light background ── */
	html:not(.hs-inline-edit) .header--light-bg .header__search .hs-search-field__button svg {
		fill: your-default-color;
	}
}

/* Menu */

.menu--desktop {
  display: block;
}

.menu--mobile {
  display: none;
}

@media (max-width: 767px) {
  .menu--desktop {
    display: none;
  }

  .menu--mobile {
    display: block;
  }
}

/* Menu items */

.menu__item {
  position: relative;
}

.menu__link {
  font-family: Satoshi;
	color: #003171;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	text-transform: capitalize;
	text-decoration: none;
}

.menu__link:hover,
.menu__link:focus,
.menu__link:active {
  text-decoration: none;
}

.menu__link--active-link,
.menu__link--active-branch {
  font-weight: bold;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .menu__link {
    font-size: 0.833rem;
  }
}

@media (max-width: 767px) {
  .menu__item {
    display: block;
    width: 100%;
  }

  .menu__link {
    display: block;
    font-size: 1.083rem;
  }
}

/* Menu items - top level */

.menu__item--depth-1 {
  display: inline-block;
  padding: 0;
	margin-left: clamp(0.938rem, -9.375rem + 13.75vw, 3rem);
  text-transform: uppercase;
}

.menu__item--depth-1 > .menu__link--active-link:after {
  bottom: -3px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}

@media (max-width: 767px) {
  .menu__item--depth-1 {
    border-top: 2px solid #CED4DB;
    padding: 0;
  }

  .menu__item--depth-1 > .menu__link {
    padding: 0.35rem 1.225rem;
  }

  .menu__item--depth-1 > .menu__link--active-link:after {
    content: none;
  }
}

/* Menu items - submenus */

.menu__submenu {
	border-radius: 4px;
	background: #FFF;
	box-shadow: 0 4px 50px 0 rgba(0, 0, 0, 0.15);
  display: none;
  left: 50%;
  position: absolute;
  text-align: left;
  text-transform: none;
  top: 100%;
  z-index: 99;
  width: max-content;
	padding: 20px !important;
}

.menu__item--open > .menu__submenu {
  display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 20px;
}

.menu__item--depth-1 > .menu__link {
	padding-bottom: 22px;
}

.menu__submenu--level-2 {
  transform: translateX(-50%);
}

/* Keeps the first menu item's drop down menu aligned to the left of the top level menu item */

/* .menu__item--depth-1:first-child .menu__submenu--level-2 {
  transform: unset;
} */

.menu__submenu .menu__item {
  padding: 0;
  width: 100%;
}

.menu__submenu .menu__link {
  display: block;
  padding: 4px;
  color: #021E42;
	text-align: center;
	font-family: Satoshi;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22.4px;
}

.menu__submenu .menu__link:hover {
	text-decoration: underline;
}

.menu__submenu--level-3 {
  left: 100%;
  top: 0;
  /* TEMP */
	display: none !important;
}

/* Flyouts for the last two top level menu items go left to keep page responsive */

.menu__item--depth-1:nth-last-child(-n+2) .menu__submenu--level-3 {
  left: auto;
  right: 100%;
  top: 0;
}

/* Accounts for child toggle */

.menu__submenu .menu__item--has-submenu > .menu__link {
  padding-right: 3rem;
}

/* Creates the triangle at the top of the submenu drop down */

@media (min-width: 768px) {
/*   .menu__submenu--level-2 > .menu__item:first-child:before {
    border-radius: 6px;
    box-shadow: 0 2px 9px 0 rgb(0 0 0 / 20%);
    content: '';
    display: block;
    height: 30px;
    left: 125px;
    margin-left: 1rem;
    overflow: hidden;
    position: absolute;
    top: -12px;
    transform: rotate(45deg);
    transition: background-color .3s;
    width: 30px;
    z-index: 2;
  }

  /* Keeps triangle to the left for the first menu item's drop down menu */

  .menu__item--depth-1:first-child > .menu__submenu--level-2 > .menu__item:first-child:before {
    left: 0;
  } */

  .menu__submenu--level-2 > .menu__item:first-child > .menu__link {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 767px) {
  .menu__submenu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: unset;
    width: 100%;
  }

  .menu__submenu .menu__item {
    background-color: #FFF;
    border-bottom: none;
    border-top: 2px solid #EBEFF3;
    padding: 0;
  }

  .menu__submenu .menu__link {
    display: block;
    padding: 0.7rem 2rem;
    transition: none;
    width: 100%;
  }

  .menu__submenu .menu__item .menu__link:hover,
  .menu__submenu .menu__item .menu__link:focus {
    background-color: inherit;
    transition: none;
  }

  .menu__item--has-submenu > .menu__link {
    width: 70%;
  }

  .menu__submenu--level-3 .menu__item .menu__link {
    padding: 0.7rem 3rem;
  }
}

/* Menu icons */

.menu__child-toggle {
  width: 0;
}
