Dynamics of advected tracers with varying buoyancy