/* v0.11.11-FN4R1.17 · Digital Hub rail geometry refinement.
   The previous pass established the correct tall rail scale. This pass removes
   the last fixed-offset weakness: the desktop collapse/expand control is now
   placed from a runtime geometry variable at the true midpoint between the
   fixed top bar and the first visible navigation card, whether the rail is
   expanded or collapsed. The collapsed navigation start is nudged to match the
   reviewed screenshot seam while preserving the accepted tall card rhythm. */

@media (min-width:1051px){
  body.imb-institutional-aurora #hubSidebar .hub-sidebar-rail-toggle{
    top:var(--hub-rail-toggle-top,calc(4.75rem + .92rem))!important;
    transition:top .14s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important
  }

  /* The screenshot review places the first collapsed card just beneath the
     centred seam-control band. Keep the tall FN4R1.16 controls unchanged and
     only tighten this start datum by 0.15rem. */
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .sidebar-nav{
    margin-top:4.20rem!important;
  }

  /* Keep the rail internally calm: same card height, same icon centring, a
     slightly quieter inter-card gap and no accidental vertical margin drift. */
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .sidebar-nav{
    gap:.56rem!important;
  }
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .nav-link{
    margin:0!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.imb-institutional-aurora #hubSidebar .hub-sidebar-rail-toggle{transition:none!important}
}
