Tur\'an numbers for non-bipartite graphs and applications to spectral extremal problems | Synapse