/* Site header, logo, nav, burger menu, header search. */

.qhd-skip {
  position:absolute;
  inset-inline-start:.5rem;
  top:-4rem;
  z-index:300;
  padding:.6rem 1rem;
  border-radius:.5rem;
  background:#fff;
  color:var(--slate-900);
  font-weight:700;
  transition:top .2s;
}
.qhd-skip:focus {
  top:.5rem;
}
.qhd-header {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(15,23,42,.96);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(251,191,36,.35);
}
.qhd-header :focus-visible {
  outline-color:var(--amber-400);
}
.qhd-header-inner {
  display:flex;
  align-items:center;
  gap:1.25rem;
  min-height:var(--header-h);
  padding-top:.5rem;
  padding-bottom:.5rem;
}
.qhd-logo {
  font-size:1.5rem;
  font-weight:900;
  letter-spacing:.03em;
  direction:ltr;
  color:#fff;
}
.qhd-logo span {
  color:var(--amber-400);
}
.qhd-nav {
  display:flex;
  gap:.35rem;
  flex:1;
  justify-content:center;
  list-style:none;
  margin:0;
  padding:0;
}
.qhd-nav a {
  display:block;
  white-space:nowrap;
  padding:.45rem 1rem;
  border-radius:.75rem;
  font-size:.95rem;
  font-weight:500;
  color:rgba(255,255,255,.76);
  transition:background-color .2s,color .2s;
}
.qhd-nav a:hover {
  background:rgba(255,255,255,.1);
  color:#fff;
}
.qhd-nav a[aria-current] {
  background:var(--amber-500);
  color:var(--slate-900);
  font-weight:700;
}
.qhd-hsearch {
  display:flex;
  gap:.4rem;
  width:17rem;
}
.qhd-hsearch input {
  flex:1;
  min-width:0;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  padding:.6rem 1rem;
  border-radius:.75rem;
  color:#fff;
  font:inherit;
  font-size:.875rem;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.qhd-hsearch input::placeholder {
  color:rgba(255,255,255,.45);
}
.qhd-hsearch input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(4,120,87,.35);
}
.qhd-hsearch button {
  background:var(--primary);
  color:#fff;
  border:0;
  border-radius:.75rem;
  padding:0 .9rem;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:background-color .2s;
}
.qhd-hsearch button:hover {
  background:var(--primary-dark);
}
.qhd-hsearch svg {
  width:1.05rem;
  height:1.05rem;
}
.qhd-burger {
  display:none;
}

@media(min-width:1024px) and (max-width:1199px) {
  .qhd-nav a {
    padding:.45rem .7rem;
    font-size:.9rem;
  }
  .qhd-hsearch {
    width:13rem;
  }
}

@keyframes qhd-menu-in {
  from { opacity:0; transform:translateY(-6px) }
  to { opacity:1; transform:none }
}

@media(max-width:1023px) {
  .qhd-header-inner {
    flex-wrap:wrap;
    gap:0;
  }
  .qhd-logo {
    margin-left:auto;
  }
  .qhd-burger {
    display:grid;
    place-items:center;
    width:2.75rem;
    height:2.75rem;
    padding:0;
    border:1px solid rgba(255,255,255,.22);
    border-radius:.75rem;
    background:rgba(255,255,255,.06);
    color:#fff;
    cursor:pointer;
    transition:background-color .2s;
  }
  .qhd-burger:hover {
    background:rgba(255,255,255,.14);
  }
  .qhd-burger span {
    grid-area:1/1;
    display:block;
    width:1.3rem;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transition:transform .25s,opacity .2s;
  }
  .qhd-burger span:nth-child(1) {
    transform:translateY(-6px);
  }
  .qhd-burger span:nth-child(3) {
    transform:translateY(6px);
  }
  .is-open .qhd-burger span:nth-child(1) {
    transform:rotate(45deg);
  }
  .is-open .qhd-burger span:nth-child(2) {
    opacity:0;
  }
  .is-open .qhd-burger span:nth-child(3) {
    transform:rotate(-45deg);
  }
  .qhd-nav,
  .qhd-hsearch {
    display:none;
    flex:0 0 100%;
    width:100%;
  }
  .is-open .qhd-nav {
    display:flex;
    flex-direction:column;
    gap:.25rem;
    margin-top:.5rem;
    padding:.75rem 0 .5rem;
    border-top:1px solid rgba(255,255,255,.12);
    animation:qhd-menu-in .25s ease-out;
  }
  .is-open .qhd-nav a {
    padding:.8rem 1rem;
    font-size:1rem;
  }
  .is-open .qhd-hsearch {
    display:flex;
    padding:.25rem 0 1rem;
  }
  .qhd-header.is-open {
    max-height:100vh;
    max-height:100dvh;
    overflow-y:auto;
  }
}

.qhd-logo-link {
  display:inline-block;
  margin-bottom:1rem;
}
.qhd-logo-img {
  height:4rem;
  width:auto;
  filter:invert(100%) brightness(1.1);
}

