For American pronunciation you would be safer to pronounce it as a light D in those cases unless you can say the T with absolutely no aspiration. The T is unaspirated there so the T/D distinction is somewhat neutralized. In the speech of some people the T is what we seem to hear; in the speech of others the D is what we seem to hear.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.