/* ---------------- Mobile drawer nav (final) ---------------- */

/* right side layout */
.nav__right{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* hamburger base */
.nav__menuBtn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: rgba(243,244,246,0.90);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

/* desktop default */
.nav__links{ display: flex; }
.nav__menuBtn{ display: none; }
.drawer, .drawerOverlay{ display: none; }

/* mobile */
@media (max-width: 860px){
  .nav__links{ display: none; }
  .nav__menuBtn{ display: grid; place-items: center; }

  .drawerOverlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 50;
  }

  .drawer{
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: #ffffff;
    color: #111;
    z-index: 60;
    box-shadow: 0 30px 80px rgba(0,0,0,0.30);
    border-left: 1px solid rgba(0,0,0,0.08);
  }

  .drawer[hidden],
  .drawerOverlay[hidden]{
    display: none;
  }

  .drawer__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .drawer__title{
    font-weight: 900;
    font-size: 1.1rem;
  }

  .drawer__close{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.04);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
  }

  .drawer__nav{
    padding: 10px 10px;
  }

  .drawer__link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px;
    margin: 6px 0;
    border-radius: 14px;
    text-decoration: none;
    color: #111;
    font-weight: 900;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
  }

  .drawer__link:hover{
    background: rgba(0,0,0,0.04);
  }

  .drawer__link::after{
    content: "›";
    color: rgba(17,17,17,0.40);
    font-size: 20px;
    margin-left: 10px;
  }
}