/* Unified site header: same visual system for all pages */
.page-home .main-menu.site-main-header {
  background: #1e2dbe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-home .main-menu.site-main-header .frame-140 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 20;
  overflow: visible;
}

.page-home .main-menu.site-main-header .frame-8,
.page-home .main-menu.site-main-header .frame-7 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 32px;
  padding: 0 16px;
  margin-left: 0;
  display: flex;
  align-items: center;
}

.page-home .main-menu.site-main-header .frame-7 {
  background: #230050;
  justify-content: flex-start;
}

.page-home .main-menu.site-main-header .frame-5 {
  width: min(1312px, 100%);
  max-width: 1312px;
  min-width: 0;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
}

.page-home .main-menu.site-main-header .frame-6 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 0;
  background: transparent;
  overflow: visible;
}

.page-home .main-menu.site-main-header .utility-bar {
  width: 100%;
  min-height: 32px;
  display: flex;
  justify-content: flex-end;
  color: #ffffff;
  font-family: var(--font-overpass), "Overpass", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-home .main-menu.site-main-header .utility-bar .tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  background: #230050;
}

.page-home .main-menu.site-main-header .utility-bar .tool::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 0;
  width: 32px;
  height: 32px;
  background: url("../assets/vector-10.svg") no-repeat center / 32px 32px;
}

.page-home .main-menu.site-main-header .ilo-website {
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.page-home .main-menu.site-main-header .ilo-website a {
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  padding: 0 14px;
  font-size: 14px;
}

.page-home .main-menu.site-main-header .ilo-website a:hover,
.page-home .main-menu.site-main-header .ilo-website a:focus {
  color: #1e2dbe;
  background: #ebf5fd;
}

.page-home .main-menu.site-main-header .language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  overflow: visible;
}

/* TEMP_HIDE_LANGUAGE_SWITCHER_FRONT_ONLY: remove this block to show the language selector again. */
.page-home .main-menu.site-main-header .language-switcher {
  display: none !important;
}

.page-home .main-menu.site-main-header .language-switcher::after {
  content: "";
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.page-home .main-menu.site-main-header .language-switcher.is-open::after,
.page-home .main-menu.site-main-header .language-switcher:focus-within::after {
  display: block;
}

.page-home .main-menu.site-main-header .language-switcher__toggle {
  background: #230050;
  border: 0;
  color: #ffffff;
  height: 32px;
  padding: 0 12px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-overpass), "Overpass", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  cursor: pointer;
}

.page-home .main-menu.site-main-header .language-switcher__toggle:hover,
.page-home .main-menu.site-main-header .language-switcher__toggle:focus {
  color: #1e2dbe;
  background: #ebf5fd;
}

.page-home .main-menu.site-main-header .language-switcher__toggle:focus-visible,
.page-home .main-menu.site-main-header .language-switcher__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.page-home .main-menu.site-main-header .language-switcher__globe {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-home .main-menu.site-main-header .language-switcher__globe svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .main-menu.site-main-header .language-switcher__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 128px;
  background: #edf0f2;
  border-radius: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 50;
}

.page-home .main-menu.site-main-header .language-switcher.is-open .language-switcher__menu {
  display: block;
}

.page-home .main-menu.site-main-header .language-switcher__menu.is-open,
.page-home .main-menu.site-main-header .language-switcher__toggle[aria-expanded="true"] + .language-switcher__menu {
  display: block;
}

.page-home .main-menu.site-main-header .language-switcher:focus-within .language-switcher__menu {
  display: block;
}

.page-home .main-menu.site-main-header .language-switcher__menu li + li .language-switcher__link {
  border-top: 2px solid #ffffff;
}

.page-home .main-menu.site-main-header .language-switcher__link {
  display: block;
  padding: 10px 12px;
  color: #230050;
  text-decoration: none;
  font-family: var(--font-noto-sans), "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.page-home .main-menu.site-main-header .language-switcher__link:hover,
.page-home .main-menu.site-main-header .language-switcher__link.is-active {
  background: #ebf5fd;
  color: #1e2dbe;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.page-home .main-menu.site-main-header .frame-4,
.page-home .main-menu.site-main-header .frame-2 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: clamp(24px, 3vw, 40px);
  padding-right: clamp(24px, 3vw, 40px);
  box-sizing: border-box;
}

.page-home .main-menu.site-main-header .frame-4 {
  padding-top: 0;
  padding-bottom: 24px;
  min-height: 89px;
}

.page-home .main-menu.site-main-header .frame-4 .nav-container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-home .main-menu.site-main-header .logo {
  width: 339px;
  height: 65px;
  position: relative;
  display: block;
  flex: 0 0 339px;
  max-width: 339px;
  min-height: 65px;
}

.page-home .main-menu.site-main-header .logo2 {
  width: 194px;
  height: 65px;
  position: absolute;
  left: 0;
  top: 0;
}

.page-home .main-menu.site-main-header .just-transition-policy-gateway {
  position: absolute;
  left: 206px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-family: var(--font-overpass), "Overpass", sans-serif;
  font-size: 20px;
  line-height: 18px;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.page-home .main-menu.site-main-header .just-transition-policy-gateway br {
  display: block;
}

.page-home .main-menu.site-main-header .frame-72 {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .main-menu.site-main-header .a-closer-look-to-just-transition-policies {
  color: #ffffff;
  font-family: var(--font-overpass), "Overpass", sans-serif;
  font-size: 20px;
  line-height: 18px;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: right;
}

.page-home .main-menu.site-main-header .frame-2 {
  background: #230050;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}

.page-home .main-menu.site-main-header .frame-2 .nav-container2 {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.page-home .main-menu.site-main-header .main-menu-item {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.page-home .main-menu.site-main-header .menu-item {
  color: #ffffff;
  font-family: var(--font-overpass), "Overpass", sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.page-home .main-menu.site-main-header .nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .page-home .main-menu.site-main-header .frame-8,
  .page-home .main-menu.site-main-header .frame-7 {
    display: none;
  }

  .page-home .main-menu.site-main-header .frame-5 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }

  .page-home .main-menu.site-main-header .frame-6 {
    padding-right: 0;
  }

  .page-home .main-menu.site-main-header .utility-bar .tool,
  .page-home .main-menu.site-main-header .language-switcher__toggle {
    min-height: 30px;
    height: 30px;
    padding: 0 10px;
  }

  .page-home .main-menu.site-main-header .utility-bar .tool::before {
    height: 30px;
  }

  .page-home .main-menu.site-main-header .ilo-website a {
    padding: 0 10px;
  }

  .page-home .main-menu.site-main-header .language-switcher__menu {
    right: 0;
  }

  .page-home .main-menu.site-main-header .frame-4,
  .page-home .main-menu.site-main-header .frame-2 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-home .main-menu.site-main-header .logo {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    max-width: 60%;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
  }

  .page-home .main-menu.site-main-header .logo2 {
    width: 120px;
    height: auto;
    position: static;
  }

  .page-home .main-menu.site-main-header .just-transition-policy-gateway {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    font-size: 16px;
    line-height: 1.2;
  }

  .page-home .main-menu.site-main-header .frame-72 {
    display: none;
  }

  .page-home .main-menu.site-main-header .frame-2 {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .page-home .main-menu.site-main-header .nav-toggle {
    display: flex;
  }

  .page-home .main-menu.site-main-header .frame-2 .nav-container2 {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .page-home .main-menu.site-main-header .frame-2.menu-open .nav-container2 {
    display: flex;
  }

  .page-home .main-menu.site-main-header .main-menu-item {
    width: 100%;
    height: 44px;
    justify-content: center;
    padding: 0 12px;
  }

  .page-home .main-menu.site-main-header .menu-item {
    font-size: 14px;
  }
}

/* Keep footer content aligned to the same design width on very wide screens */
.page-home .footer {
  --site-max-content-width: 1312px;
  --site-gutter: clamp(20px, 3vw, 40px);
}

.page-home .footer .frame-38,
.page-home .footer .frame-37 {
  width: 100%;
  max-width: calc(var(--site-max-content-width) + (var(--site-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  box-sizing: border-box;
}

/* Force utility link position to match Contribute header on Home + Policies */
@media (min-width: 1025px) {
  body.home .page-home .main-menu.site-main-header .frame-140,
  body.page-policy-list .page-home .main-menu.site-main-header .frame-140 {
    justify-content: center;
    align-items: flex-start;
  }

  body.home .page-home .main-menu.site-main-header .frame-8,
  body.home .page-home .main-menu.site-main-header .frame-7,
  body.page-policy-list .page-home .main-menu.site-main-header .frame-8,
  body.page-policy-list .page-home .main-menu.site-main-header .frame-7 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    padding: 0 16px;
  }

  body.home .page-home .main-menu.site-main-header .frame-5,
  body.page-policy-list .page-home .main-menu.site-main-header .frame-5 {
    width: min(1312px, 100%);
    max-width: 1312px;
    min-width: 0;
    padding: 0;
    justify-content: flex-end;
    align-items: flex-end;
  }

  body.home .page-home .main-menu.site-main-header .frame-6,
  body.page-policy-list .page-home .main-menu.site-main-header .frame-6 {
    width: 100%;
    justify-content: flex-end;
    margin-right: 0;
  }

  body.home .page-home .main-menu.site-main-header .utility-bar,
  body.page-policy-list .page-home .main-menu.site-main-header .utility-bar {
    justify-content: flex-end;
  }
}
