/* ===============================
   INCognati — Drawer Navigation
   =============================== */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background: rgba(10, 14, 30, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1000;
}

.drawer.open {
  transform: translateX(0);
}

.drawer h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.drawer a {
  display: block;
  margin: .35rem 0;
  color: #dfe3ff;
  text-decoration: none;
}

.drawer a:hover {
  text-decoration: underline;
}

.drawer .sub {
  margin-left: 1.25rem;
  font-size: .95rem;
  color: #c5c9ff;
}

/* Click-out overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 900;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {

  .drawer {
    width: 85vw;
    padding: 1.5rem 1.25rem;
  }

  .drawer a {
    font-size: 1.05rem;
    padding: .4rem 0;
  }
}
