So how does lightning locating work?

Between advanced math and radio sensors, it's possible to locate where lightning strikes from hundreds to thousands of kilometers away. It's wild.