Eugene Volokh points to a case where the father was awarded physical custody of a child although the mother had been the primary caregiver since birth, at least in part because Dad took the kid to church and Mom didn’t. I agree with Eugene; this is appalling.
In much of academic life, religiosity can be a social and career disadvantage. But in the real world, the opposite is often true. I regard the battle to make academia more religion-friendly and the battle to make the rest of the society less hostile to atheists as part of the same struggle.
“I have sworn,” said Jefferson, “upon the altar of Almighty God, eternal hostility to every form of tyranny over the mind of Man.”