In-medium heavy quarkonium from lattice NRQCD