A pH/redox-dual responsive, nanoemulsion-embedded hydrogel for efficient oral delivery and controlled intestinal release of magnesium ions.