/* =========================================
   3. LAYOUT GRID (Bento Style)
========================================= */
.app-layout {
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
  height: 100vh;
  transition: grid-template-columns 0.42s var(--ease-smooth);
}
.app-layout.nav-expanded {
  grid-template-columns: var(--rail-width) 1fr;
}

@media (max-width: 64rem) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

/* --- LAYOUT SPLIT (Centre + Sidebar Programme) --- */
.dashboard-split {
  display: grid;
  gap: 40px;
  padding-bottom: 80px;
  grid-template-columns: 1fr;
}

.stage-center {
  min-width: 0;
}

@media (min-width: 80rem) {
  .dashboard-split {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .stage-sidebar {
    position: sticky;
    top: 40px;
  }
}
