Egypt’s coup is a serious blow to Turkey’s vision of a more democratic Middle East