Contemporary habitat loss reduces genetic diversity in an ecologically specialized butterfly