:root { --xj-header-height: 74px; }
.xj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #faf9f4;
  border-bottom: 1px solid #dbded5;
}
.xj-header__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  min-height: calc(var(--xj-header-height) - 1px);
}
.xj-brand {
  position: relative;
  display: block;
  width: 134px;
  flex: none;
  aspect-ratio: 151 / 46;
  overflow: hidden;
}
.xj-brand img {
  position: absolute;
  width: calc(100% * 230 / 151);
  max-width: none;
  height: auto;
  left: calc(-100% * 40 / 151);
  top: calc(-100% * 20 / 46);
}
.xj-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(8px, 1.55vw, 24px);
}
.xj-nav > a, .xj-nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #253c3e;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}
.xj-nav summary { list-style: none; cursor: pointer; gap: .42em; }
.xj-nav summary::-webkit-details-marker { display: none; }
.xj-nav summary::after {
  content: "";
  width: .37em;
  height: .37em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.xj-nav details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.xj-nav :is(a, summary):hover { color: #165e53; }
.xj-nav :is(a[aria-current], .site-nav-menu__current) {
  text-decoration: underline;
  text-underline-offset: .45em;
}
.xj-nav .site-nav-menu__panel {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(540px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
  padding: 25px 28px;
  border: 1px solid #cdd6cf;
  background: #faf9f4;
  box-shadow: 0 14px 25px #09283218;
}
.xj-nav .site-nav-menu__column p { margin: 0 0 .55rem; color: #536968; font-size: .8rem; }
.xj-nav .site-nav-menu__column ul { margin: 0; padding: 0; list-style: none; }
.xj-nav .site-nav-menu__column a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid #e0e5dc;
  font-weight: 600;
  font-size: .93rem;
}
.xj-contact, .xj-menu-toggle {
  padding: .58rem .82rem;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 650;
  white-space: nowrap;
}
.xj-contact { color: #fff; background: #113a3b; }
.xj-contact:hover { background: #215c55; color: #fff; }
.xj-menu-toggle { display: none; border: 1px solid #ccd7d1; color: #102b34; background: transparent; }
.xj-header :focus-visible { outline: 2px solid #17695f; outline-offset: 3px; }
.xj-skip {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 150;
  transform: translateY(-160%);
  padding: .55rem .8rem;
  background: #102b34;
  color: #fff;
}
.xj-skip:focus { transform: none; }
#app, #app [id] { scroll-margin-top: calc(var(--xj-header-height) + 16px); }

@media (max-width: 900px) {
  :root { --xj-header-height: 64px; }
  .xj-header__row {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto auto;
    gap: 0 .5rem;
  }
  .xj-brand { width: 110px; }
  .xj-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 1rem;
  }
  .xj-nav--enhanced { display: none; }
  .xj-nav--enhanced ~ .xj-menu-toggle { display: inline-flex; }
  .xj-nav--open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: 76vh;
    max-height: 76dvh;
    overflow: auto;
    background: #faf9f4;
    border: 1px solid #d5ded5;
    box-shadow: 0 16px 28px #09283220;
    padding: .3rem 1rem .8rem;
  }
  .xj-nav--open > * + * { border-top: 1px solid #e0e5dc; }
  .xj-nav--open > a, .xj-nav--open summary { display: flex; justify-content: space-between; }
  .xj-nav--open .site-nav-menu__panel {
    position: static;
    width: 100%;
    gap: .4rem 1rem;
    padding: .15rem 0 .65rem;
    border: 0;
    box-shadow: none;
  }
  .xj-nav .site-nav-menu__column a { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
