Shared ancestral polymorphisms and chromosomal rearrangements as potential drivers of local adaptation in a marine fish