/* v0.11.11-FN4R1.16 · Digital Hub tall adaptive rail + larger IMB identity.
   Continues the frame-free FN4R1.15 identity, uses the user's annotated tall
   rail proportions as the desktop target, and makes the collapse control a
   true midpoint between the fixed top bar and the first navigation card. */

@media (min-width:1051px){
  /* Treat the collapsed identity zone as the same height as the desktop top bar.
     This gives us one predictable datum for logo, seam control and navigation. */
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .hub-sidebar-top{
    min-height:4.75rem!important;height:4.75rem!important;
    display:block!important;position:relative!important;overflow:visible!important
  }
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .sidebar-brand-block{
    display:grid!important;place-items:center!important;width:100%!important;height:4.75rem!important;min-width:0!important
  }
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .brand-row{
    display:grid!important;place-items:center!important;width:4.35rem!important;height:4.35rem!important;
    margin:0 auto!important;padding:0!important;border:0!important;background:transparent!important
  }
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .brand-logo-mini.hub-imb-rail-mark{
    display:block!important;width:4.12rem!important;height:4.12rem!important;max-width:none!important;
    object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important;
    border:0!important;background:transparent!important;box-shadow:none!important;filter:none!important
  }

  /* The top bar ends at 4.75rem. The first nav card begins 4.35rem later.
     A 31px control at +.92rem lands almost exactly at that free-space midpoint. */
  body.imb-institutional-aurora #hubSidebar .hub-sidebar-rail-toggle{
    top:calc(4.75rem + .92rem)!important;
    right:-15px!important;
    width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important
  }

  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .sidebar-nav{
    margin-top:4.35rem!important;
    gap:.60rem!important;
    align-content:start!important
  }
  /* Deliberately tall like the tablet-derived rhythm marked by the user, but
     viewport-aware so four manager destinations still fit on shorter laptops. */
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .nav-link{
    min-height:clamp(7.2rem,15.25vh,9.1rem)!important;
    height:clamp(7.2rem,15.25vh,9.1rem)!important;
    padding:.45rem!important;margin:0!important;border-radius:.86rem!important;
    align-items:center!important;justify-content:center!important
  }
  body.imb-institutional-aurora #appView.app-shell.sidebar-collapsed #hubSidebar .nav-icon{
    width:2.42rem!important;height:2.42rem!important;flex:0 0 2.42rem!important
  }
}

/* Larger compact IMB identity on phones/tablets. Keep the existing frame-free
   asset and simply give the official mark enough visual presence. */
@media (max-width:820px){
  body.imb-institutional-aurora .hub-mobile-topbar-imb-mark{
    width:3.48rem!important;height:3.48rem!important;min-width:3.48rem!important;max-width:3.48rem!important;
    padding:0!important;margin:0!important;border:0!important;background:transparent!important;
    box-shadow:none!important;filter:none!important;object-fit:contain!important
  }
  body.imb-institutional-aurora .hub-topbar-leading{gap:.68rem!important}
}
@media (max-width:390px){
  body.imb-institutional-aurora .hub-mobile-topbar-imb-mark{
    width:3.18rem!important;height:3.18rem!important;min-width:3.18rem!important;max-width:3.18rem!important
  }
}
