/* ============================================================
   LAYOUT.CSS — top-level page and section structure
   ============================================================ */

/* --- Background canvas container --- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 1;   /* must be ≥ 0 for backdrop-filter on panels to see the canvas */
  overflow: hidden;
}

/* --- App shell --- */
#app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  /* App shell is non-interactive; sections and nav handle their own events */
  pointer-events: none;
}

/* ── Section panels ────────────────────────────────────────────────────────
   All panels slide in from the right. Width is 55% so the left-side nav
   and a strip of canvas remain visible behind the open panel.
   ───────────────────────────────────────────────────────────────────────── */

.section {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--section-width);
  max-width: 100%;
  z-index: 20;
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;

  /* Transparent so the particle canvas shows through behind the cards */
  background: transparent;

  /* Top: clear the debug toggle (top 1.25rem + ~1.75rem height + gap) */
  padding: 4.5rem 1.75rem 2.5rem 1.75rem;
  box-sizing: border-box;

  /* Cards stack vertically with gap between them */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  transform: translateX(100%);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state — slide to resting position */
.section.is-active {
  transform: translateX(0);
}
