/* Desktop header styles extracted from global style.css */

.mb-header__bar {
  display: grid;
  grid-template-columns: minmax(180px, var(--mb-header-brand-width)) minmax(0, 1fr) fit-content(var(--mb-header-search-width));
  column-gap: 44px;
  min-height: 88px;
  padding: 0 20px;
}

.mb-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 1.9vw, 32px);
  min-width: 0;
  width: 100%;
  justify-self: center;
  overflow: visible;
}

.mb-header__nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mb-header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #181818;
  text-decoration: none;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: keep-all;
  flex-shrink: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mb-header__nav-label {
  display: inline;
  font: inherit;
  font-weight: 800;
  font-size: clamp(1.24rem, 0.72vw + 0.92rem, 1.52rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: inherit;
}

.mb-header__nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-transform: none;
  min-height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  vertical-align: middle;
  gap: 4px;
  cursor: pointer;
}

.mb-header__submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  gap: 6px;
  min-width: 212px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transform: translateX(-50%);
  z-index: 40;
}

.mb-header__submenu[hidden] {
  display: none !important;
}

.mb-header__submenu-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.mb-header__nav-link:hover,
.mb-header__nav-link:focus-visible {
  opacity: 0.8;
}

.mb-header__nav-link.is-current .mb-header__nav-label,
.mb-header__nav-item.is-current > .mb-header__nav-parent-link .mb-header__nav-label,
.mb-header__nav-item.is-current > .mb-header__nav-toggle .mb-header__nav-label {
  font-weight: 800;
}

.mb-header__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mb-header__search--desktop {
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: max-content;
}
