Once losing residents, rural communities are seeing population gains as new domestic and international arrivals offset natural declines, though not all small towns share equally in the recovery.