.xh-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 40;
  color: #142b3c;
  background: #f7f7f2;
  border-bottom: 1px solid #d8e0e1;
  animation: none;
}

.xh-header .xh-header-row {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.6rem, 2vw, 2rem);
}

.xh-brand { display: block; flex: 0 0 auto; width: 173px; }
.xh-brand img { display: block; width: 100%; height: auto; }
.xh-header .site-nav { display: flex; align-items: center; gap: clamp(.2rem, .75vw, .7rem); }
.xh-header .site-nav a, .xh-header .site-nav summary, .xh-language {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .55rem;
  color: #142b3c;
  font-weight: 650;
  font-size: .875rem;
  text-decoration: none;
}

.xh-language { flex: 0 0 auto; }
.xh-header .site-nav a[aria-current]::after, .xh-header .site-nav a:hover::after { content: none; }
.xh-header .site-nav a[aria-current], .xh-header .site-nav .site-nav-menu__current,
.xh-header .site-nav a:hover, .xh-header .site-nav summary:hover, .xh-header .site-nav [open] > summary {
  background: #e6edf0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.xh-header :is(a, summary, button):focus-visible { outline: 2px solid #194e66; outline-offset: 3px; }
.xh-header .site-nav-menu summary { list-style: none; cursor: pointer; white-space: nowrap; gap: .65rem; }
.xh-header .site-nav-menu summary::-webkit-details-marker { display: none; }
.xh-header .site-nav-menu summary::after { content: ""; border-right: 1px solid; border-bottom: 1px solid; width: 6px; height: 6px; transform: rotate(45deg); margin-top: -.2rem; }
.xh-header .site-nav-menu[open] summary::after { transform: rotate(225deg); margin-top: .18rem; }
.xh-header .site-nav-menu__panel {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 5vw, 5rem);
  padding: 1.5rem max(2rem, calc((100% - 1040px) / 2)) 2rem;
  background: #f7f7f2;
  box-shadow: 0 16px 22px #142b3c18;
  border-block: 1px solid #d8e0e1;
}

.xh-header .site-nav-menu:not([open]) .site-nav-menu__panel { display: none; }
.xh-header .site-nav-menu__column > p { margin: 0 0 .4rem; padding-bottom: .5rem; border-bottom: 1px solid #d8e0e1; font-size: .85rem; color: #526775; font-weight: 700; }
.xh-header .site-nav-menu__column ul { list-style: none; padding: 0; margin: 0; }
.xh-header .hamburger { display: none; color: #142b3c; }
.xh-header .hamburger span { background: currentColor; }
.site-header.xh-header.is-sticky { position: sticky; top: 0; animation: none; }

@media (max-width: 1020px) {
  .xh-header .xh-header-row { min-height: 64px; justify-content: flex-start; }
  .xh-brand { width: 132px; margin-inline-end: auto; }
  .xh-header .site-nav { display: none; position: absolute; z-index: auto; inset: 100% 0 auto; width: auto; height: auto; transform: none; opacity: 1; visibility: visible; background: #f7f7f2; padding: .5rem 1.1rem 1.25rem; max-height: calc(100dvh - 64px); overflow: auto; border-bottom: 1px solid #d8e0e1; }
  .menu-open .xh-header .site-nav { display: block; transform: none; }
  .xh-header .site-nav summary { justify-content: space-between; }
  .xh-header .site-nav-menu__panel { position: static; grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: .45rem 1rem .8rem; border: 0; box-shadow: none; }
  .nav-ready .xh-header .hamburger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; background: transparent; border: 0; cursor: pointer; }
  .xh-header .hamburger span { width: 20px; height: 2px; }
  html:not(.nav-ready) .xh-header { position: relative; }
  html:not(.nav-ready) .xh-header .xh-header-row { flex-wrap: wrap; }
  html:not(.nav-ready) .xh-header .site-nav { display: flex; flex-wrap: wrap; position: static; flex-basis: 100%; order: 5; gap: .2rem .4rem; padding: 0 0 .35rem; max-height: none; border-bottom: 0; overflow: visible; }
  html:not(.nav-ready) .xh-header .site-nav-menu[open] .site-nav-menu__panel { position: absolute; z-index: 2; inset: 100% 0 auto; }
}
