/* Stable header overrides loaded after the main theme. */
.nav-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
}

.brand {
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 42px;
}

.brand-text {
  min-width: 0;
}

.brand small {
  display: block;
  white-space: nowrap;
  letter-spacing: .035em;
  font-size: 8.5px;
}

.nav {
  min-width: 0;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

.nav a {
  padding: 8px 9px;
  white-space: nowrap;
  font-size: 13px;
}

.nav-actions {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-actions .btn {
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 76px;
    gap: 8px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: #fff;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    color: #2a1d05;
    background: linear-gradient(180deg, #f0d48a, #c9a24a);
  }
}

@media (max-width: 520px) {
  .brand-text {
    display: none;
  }

  .brand img {
    height: 38px;
  }
}
