Teacher thinking for democratic learning