.site-shell-header {
  --shell-background: #050505;
  --shell-text: #fff;
  --shell-muted: #aaa;
  --shell-line: #343434;
  --shell-accent: #ff3b30;
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  width: min(calc(100% - 40px), 1540px);
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell-background);
  color: var(--shell-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

.site-shell-header[data-theme="light"] {
  --shell-background: #fff;
  --shell-text: #090909;
  --shell-muted: #666;
  --shell-line: #c9c9c5;
  --shell-accent: #00aeb8;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-lockup > a {
  flex: 0 0 auto;
  color: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup > span {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--shell-line);
  color: var(--shell-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1.25;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(13px, 1.55vw, 25px);
}

.primary-nav > a,
.nav-group > summary {
  color: inherit;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible,
.primary-nav > a[aria-current="page"],
.nav-group > summary:hover,
.nav-group > summary:focus-visible,
.nav-group[open] > summary {
  color: var(--shell-accent);
}

.nav-group {
  position: relative;
}

.nav-group > summary {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-group[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 21px);
  left: -16px;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--shell-line);
  background: var(--shell-background);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
}

.nav-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 22px;
  content: "";
}

.nav-dropdown a,
.nav-dropdown span {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-bottom: 1px solid var(--shell-line);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:last-child,
.nav-dropdown span:last-child {
  border-bottom: 0;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a[aria-current="page"] {
  background: var(--shell-text);
  color: var(--shell-background);
}

.nav-dropdown span[aria-disabled="true"] {
  color: var(--shell-muted);
}

.nav-accent {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--shell-accent);
}

@media (max-width: 1240px) {
  .site-shell-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 16px 0;
  }

  .primary-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown {
    top: calc(100% + 13px);
  }
}

@media (max-width: 760px) {
  .site-shell-header {
    width: calc(100% - 24px);
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-lockup > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 11px 17px;
  }

  .nav-dropdown {
    right: auto;
    left: -8px;
    min-width: min(260px, calc(100vw - 24px));
  }

  .nav-group:nth-last-of-type(-n+2) .nav-dropdown {
    right: -8px;
    left: auto;
  }
}

@media (max-width: 430px) {
  .brand-lockup > span {
    font-size: 9px;
  }

  .primary-nav {
    font-size: 9px;
  }
}

