/* Local Rust navigation repair: keeps the Rust header styled on desktop and hides
   the link list behind the menu button on narrow viewports. */
.header {
  min-height: 80px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(31, 17, 14, .96), rgba(20, 18, 17, .92));
}

.header .container {
  width: min(1410px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.header-brand {
  width: 48px;
  height: 48px;
  margin: 8px 40px 8px 0;
  flex: 0 0 48px;
  display: block;
}

.header-brand img {
  width: 48px;
  height: 48px;
  display: block;
}

.header-navigation {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: 64px;
}

.header-navigation a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 24px;
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-size: 20px !important;
  line-height: 1;
  text-transform: uppercase;
  color: #e4dad1 !important;
  text-decoration: none;
}

.header-navigation a:hover,
.header-navigation a.is-active,
.header-navigation a.is-active-exact {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(116, 47, 38, .85), rgba(71, 25, 21, .95));
}

.header-navigation .buy-button {
  min-width: 107px;
  margin-left: 22px;
  background: #cd412b !important;
  color: #fff !important;
}

.toggle-navigation {
  display: none !important;
}

@media (max-width: 849px) {
  .header {
    min-height: 80px;
  }

  .header .container {
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
  }

  .header-brand {
    margin: 0;
  }

  .toggle-navigation {
    width: 52px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #cd412b;
    color: #fff;
  }

  .header-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    height: auto;
    padding: 16px;
    display: none !important;
    background: rgba(20, 18, 17, .98);
  }

  .header-navigation.is-open,
  .header.is-open .header-navigation {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .header-navigation a {
    min-height: 44px;
    padding: 0 12px;
    justify-content: flex-start;
    font-size: 22px !important;
  }

  .header-navigation .buy-button {
    margin-left: 0;
    justify-content: center;
  }
}

@media (min-width: 850px) and (max-width: 1100px) {
  .header-brand {
    margin-right: 24px;
  }

  .header-navigation a {
    padding: 0 14px;
  }
}