.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--stm-border);
}

.site-header .header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: min(calc(100% - 88px), 1620px);
  min-height: 82px;
  margin-inline: auto;
}

.site-header :is(.stm-brand, .brand) {
  display: flex;
  justify-self: start;
  align-items: center;
  width: clamp(112px, 12vw, 180px);
  height: 66px;
}

.site-header :is(.stm-brand, .brand) img {
  width: 100%;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

.stm-nav-toggle { display: none; }
.stm-navigation-panel { display: contents; }

.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.1vw, 34px);
  font-size: 1rem;
  font-weight: 650;
}

.main-nav a { color: var(--stm-navy); text-decoration: none; }
.main-nav > a, .nav-trigger { white-space: nowrap; }
.main-nav a[aria-current="page"] { color: var(--stm-blue); }
.main-nav a:hover, .nav-trigger:is(:hover, [aria-expanded="true"]) { color: var(--stm-blue-accent); }
.site-header :is(a, button):focus-visible { outline: 2px solid var(--stm-blue); outline-offset: 3px; }

.dropdown-wrap { position: relative; }

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--stm-navy);
  font: inherit;
  cursor: pointer;
}

.nav-trigger .chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(225deg) translateY(-1px); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  display: none;
  width: 228px;
  padding: 9px;
  border: 1px solid var(--stm-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 15px 35px rgb(11 31 79 / .13);
}

.nav-trigger[aria-expanded="true"] + .dropdown-menu { display: grid; }

.dropdown-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: .875rem;
}

.dropdown-menu a:is(:hover, :focus-visible) { background: var(--stm-blue-wash); }
.dropdown-menu a[aria-current="page"] { font-weight: 750; }

.header-actions { display: flex; justify-self: end; }

.header-actions > button {
  gap: 13px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--stm-green);
  color: var(--stm-navy);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 5px 10px rgb(91 179 34 / .1);
  white-space: nowrap;
}

.header-actions > button:hover { box-shadow: 0 5px 13px #456f2729; }
.header-actions > button span { font-size: 1.375rem; font-weight: 400; line-height: 1; }

@media (768px <= width < 960px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    width: calc(100% - 48px);
    padding-block: 4px 6px;
  }

  .site-header .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 767px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 36px);
    min-height: 72px;
    gap: 0;
  }

  .site-header :is(.stm-brand, .brand) { width: 130px; height: 60px; }
  .site-header :is(.stm-brand, .brand) img { max-height: 60px; }

  .stm-nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--stm-navy);
    cursor: pointer;
  }

  .stm-nav-toggle[aria-expanded="true"],
  .stm-nav-toggle:focus-visible { background: var(--stm-blue-wash); }

  .stm-navigation-panel {
    position: absolute;
    inset: calc(100% + .375rem) 0 auto auto;
    display: none;
    width: min(100%, 420px);
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    padding: .5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--stm-border);
    border-radius: 14px;
    background: white;
    box-shadow: var(--stm-card-shadow-hover);
  }

  .stm-nav-toggle[aria-expanded="true"] + .stm-navigation-panel { display: grid; }

  .site-header .main-nav {
    flex-flow: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-nav :is(a, .nav-trigger) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .65rem;
    border-radius: 8px;
    font-size: var(--stm-body-size);
    text-align: left;
  }

  .nav-trigger { width: 100%; }
  .main-nav :is(a, .nav-trigger):is(:hover, :focus-visible, [aria-current="page"]) {
    background: var(--stm-blue-wash);
    color: var(--stm-blue);
  }

  .dropdown-menu {
    position: static;
    width: auto;
    padding: 0 0 .25rem .65rem;
    border: 0;
    box-shadow: none;
  }

  .header-actions {
    justify-self: stretch;
    margin: .4rem .2rem .2rem;
  }

  .header-actions > button {
    width: 100%;
    min-height: 48px;
    border-radius: 9px;
    box-shadow: none;
  }
}
