/* Keeps primary navigation visible and usable on compact screens. */
.market-header.site-header {
  height: 84px;
  max-width: none;
  margin: 0;
  padding-left: max(24px, calc((100% - 1168px) / 2));
  padding-right: max(24px, calc((100% - 1168px) / 2));
  gap: 0;
  background: rgba(248, 247, 241, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.market-header.site-header .brand {
  font-size: 21px;
}

.market-header.site-header .brand-mark {
  width: 26px;
  height: 26px;
}

.market-header.site-header .brand-mark i:nth-child(1) { height: 8px; }
.market-header.site-header .brand-mark i:nth-child(2) { height: 15px; }
.market-header.site-header .brand-mark i:nth-child(3) { height: 19px; }

.market-header.site-header .main-nav {
  flex: 1;
  gap: 17px;
  margin-left: 18px;
}

.market-header.site-header .main-nav a.active {
  color: var(--ink);
  position: relative;
}

.market-header.site-header .main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--purple);
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    margin: 0;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .site-header .main-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .main-nav a {
    flex: 0 0 auto;
    border: 1px solid #d8d9d1;
    border-radius: 999px;
    background: #fffefa;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header .main-nav a.active,
  .site-header .main-nav a[aria-current="page"] {
    border-color: #1c2823;
    background: #1c2823;
    color: #fffefa;
  }

  .site-header .header-actions {
    margin-left: auto;
  }
}
