/* Homepage-only corporate navigation; shared page styles remain unchanged. */
/* Use the utility bar's padding for a larger target without enlarging the bar. */
.top .language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  margin-block: -9px;
  border-radius: 4px;
}

.top .language-link:focus-visible {
  outline: 3px solid #3155ce;
  outline-offset: -3px;
}

.home-header {
  position: relative;
  background: #fff;
}

.home-header .home-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.home-header .home-header__brand {
  display: inline-flex;
  align-items: center;
  width: clamp(100px, 24vw, 180px);
  min-height: 44px;
}

.home-header__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.home-header .home-header__links {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 4px;
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid #dce2f1;
}

.home-header__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #213053;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.home-header__links a:hover,
.home-header__links a[aria-current="page"] {
  color: #3155ce;
  background: #f3f6ff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.home-header .home-header__inner > .home-header__demo {
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.home-header__toggle {
  display: inline-grid;
  grid-column: 3;
  grid-row: 1;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce2f1;
  border-radius: 6px;
  background: #fff;
  color: #213053;
}

.home-header__toggle:hover,
.home-header__toggle[aria-expanded="true"] {
  background: #f3f6ff;
  color: #3155ce;
}

.home-header :is(a, button):focus-visible {
  outline: 3px solid #3155ce;
  outline-offset: 3px;
}

/* Without JavaScript, keep all six links visible and the header in normal flow. */
body[data-page="index"] .sectionnav {
  top: 0;
}

html.home-header-ready .home-header {
  position: sticky;
  top: 0;
}

html.home-header-ready body[data-page="index"] .sectionnav {
  top: var(--home-header-height, 80px);
}

html.home-header-ready {
  scroll-padding-top: calc(var(--home-header-height, 80px) + 60px);
}

@media (max-width: 1180px) {
  html.home-header-ready .home-header__links {
    max-height: calc(100vh - 96px);
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 480px) {
  .home-header .home-header__inner {
    gap: 8px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home-header .home-header__inner > .home-header__demo {
    padding: 10px 8px;
    font-size: 12px;
  }

  .home-header__demo > span {
    display: none;
  }

  .home-header .home-header__demo::before {
    display: none;
  }
}

@media (min-width: 1181px) {
  .home-header .home-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
  }

  .home-header .home-header__links {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    justify-content: center;
    gap: clamp(4px, 1vw, 16px);
    padding: 0;
    border: 0;
  }

  .home-header__links a {
    padding: 10px 6px;
    white-space: nowrap;
  }

  .home-header .home-header__inner > .home-header__demo {
    grid-column: 3;
  }
}
