Many of the rituals and procedures of selecting a new pope — designed to ensure secrecy and an orderly transition — have remained unchanged for centuries.