Text this: Miyaoka–Yau inequalities and the topological characterization of certain klt varieties