Building an adaptation: 300 million years of toxin resistance evolution