/* =================================
   HEADER
================================= */
header {
  position: relative;
  z-index: 100;
}
header .content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}
header .logo {
  display: flex;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  padding: 16px 0 10px 0;
}
header .logo img {
  height: clamp(50px, 2.26rem + 1.923vw, 65px); /* 50px → 65px */
  width: auto;
}
header nav {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: flex-end;
  padding-left: 10px;
}
header nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--white);
  font-family: mont-bold;
  font-size: clamp(16px, 0.769rem + 0.513vw, 20px); /* 16px → 20px */
  border-radius: 25px;
  padding: 10px clamp(12px, 0.404rem + 0.769vw, 18px) 8px clamp(12px, 0.404rem + 0.769vw, 18px); /* 12px → 18px */
  margin: 0 clamp(6px, 0.144rem + 0.513vw, 10px); /* 6px → 10px */
}
header nav a:hover {
  color: var(--gold);
}
/* Header Icons */
header .link-icons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  padding-bottom: 2px;
}
header .link-icons a,
header .link-icons .search .icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
header .link-icons svg {
  fill: var(--white);
  transition: var(--transition);
}
header .link-icons a:hover svg,
header .link-icons .search .icon:hover svg {
  fill: var(--gold);
}
header .link-icons .search {
  display: flex;
  align-items: flex-end;
}
header .link-icons .search input {
  display: none;
  background-color: var(--bg);
  border-radius: 14px;
  border: 0;
  padding: 8px 16px;
  max-width: 150px;
  outline: none;
  margin-right: 10px;
  margin-bottom: 4px;
  color: var(--white);
}
header .link-icons .search input::placeholder {
  color: var(--white);
}
header .link-icons .responsive-toggle {
  display: none;
  justify-content: center;
  align-items: center;
}
header .responsive-toggle {
  padding-top: 6px;
}
header .logout-style {
  padding-top: 4px;
}
header .link-icons a span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f0a65d;
  border-radius: 50%;
  color: var(--bg);
  font-size: 12px;
  width: 17px;
  height: 17px;
  font-family: mont-bold;
  position: absolute;
  top: 2px;
  right: 2px;
}
/* Tier 3 & 4: collapse to hamburger menu at 1023px and below */
@media (max-width: 1023px) {
  header nav {
    display: flex !important;
  }
}

@media (max-width: 699px) {
  header .content-wrapper {
    position: static;
  }
  header .link-icons .responsive-toggle {
    display: flex;
  }
  header .link-icons .search {
    display: none;
  }
  header nav {
    display: none;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: absolute;
    left: 0;
    top: calc(100% + 1px);
    bottom: auto;
    width: 100%;
    background-color: var(--bg);
    margin: 0;
    box-shadow: 0px 2px 2px 1px rgba(45, 54, 68, 0.03);
    transform: none;
    z-index: 100;
  }
  header nav.open {
    display: flex;
  }
  header nav a {
    display: block;
    font-size: 18px;
    border-radius: 0;
    padding: 15px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  header .link-icons {
    display: inline-flex;
    width: auto;
  }
  header .link-icons a,
  header .link-icons .search .icon,
  header .link-icons .responsive-toggle {
    width: 34px;
    min-width: 34px;
  }
  header .link-icons > :last-child {
    margin-right: -6px;
  }
}