Nifty gains 0.7% as markets eye Q1FY27 earnings season