Stable isotope analyses revealed the influence of foraging habitat on mercury accumulation in tropical coastal marine fish.