/* Quaseek — shared site helpers.
   Namespaced under `qs-` so nothing here collides with the bespoke
   per-screen <style> blocks that came out of Stitch (glass-panel,
   search-glass, ai-glow, etc). Those are left untouched in each page
   to preserve the exact design of every screen. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Skip link for keyboard users */
.qs-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #0050cb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.qs-skip-link:focus {
  left: 0;
}

/* Mobile navigation drawer (injected by js/app.js on pages that have a
   menu/hamburger toggle button) */
.qs-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 27, 46, 0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.qs-drawer-overlay.qs-open {
  opacity: 1;
  pointer-events: auto;
}

.qs-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 288px;
  max-width: 82vw;
  background: var(--qs-drawer-bg, #ffffff);
  z-index: 999;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
}
.qs-drawer.qs-open {
  transform: translateX(0);
}

.qs-drawer a {
  text-decoration: none;
}

.qs-drawer .qs-drawer-active {
  font-weight: 700;
}

@media (min-width: 1024px) {
  .qs-drawer,
  .qs-drawer-overlay {
    display: none;
  }
}

/* Generic active-state emphasis applied by app.js to whichever nav
   link matches the current page, on top of each screen's own styling */
.qs-active {
  font-weight: 700 !important;
}
