/* Additive portal drawer (does not replace site styles) */

.portal-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 6000;
}

.portal-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  z-index: 6001;
  transform: translateX(-105%);
  transition: transform 180ms ease-in-out;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

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

.portal-drawer__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 18px 14px;
}

.portal-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.portal-drawer__logo {
  height: 26px;
  width: auto;
  display: block;
}

.portal-drawer__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

.portal-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}

.portal-drawer__link {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 10px;
}

.portal-drawer__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .portal-drawer { transition: none; }
}

/* Footer alignment fix (only nudges if flex is already in use) */
.site-footer__nav {
  margin-left: auto;
}
