Despite the top-order failure, Pandya’s late flourish ensured India set a more competitive total.