Over the pope as expression of the binding claim of ecclesiastical authority, there stands one's own conscience which must be obeyed before all else, even if necessary against the requirement of ecclesiastical authority.
To desire the common good and strive towards it is a requirement of justice and charity.