gov_dalai_lama = {
	transfer_of_power = dictatorial
	
	male_ruler = "RULER_TITLE_DALAI_LAMA"
	female_ruler = "" # Empty on purpose
	
	possible = {
		has_law = law_type:law_theocracy
		exists = c:TIB
		c:TIB = ROOT
	}	
}

gov_heavenly_kingdom_theocracy = {
    transfer_of_power = hereditary
    male_ruler = "RULER_TITLE_HEAVENLY_KING"
    female_ruler = ""  # Empty on purpose

    male_heir = "RULER_TITLE_JUNIOR_HEAVENLY_KING"
    female_heir = "" # Empty on purpose

    possible = {
        has_law = law_type:law_theocracy
        country_has_state_religion = rel:protestant
        exists = c:TPG
        c:TPG = ROOT
    }
}

gov_papacy = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_POPE"
	female_ruler = "RULER_POPE"
	
	male_heir = "RULER_TITLE_HEIR_APPARENT"
    female_heir = "RULER_TITLE_HEIR_APPARENT"

	possible = {
		has_law = law_type:law_theocracy
		OR = {
			AND = {
				exists = c:PAP
				c:PAP = ROOT
			}
			AND = {
				exists = c:ITA
				c:ITA = ROOT
			}
		}
	}
}

gov_bhutanese_dual_system_dharma = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_TITLE_DHARMA_RAJA"
	female_ruler = "RULER_TITLE_DHARMA_RAJA"
	
	possible = {
		exists = c:BHU 
		c:BHU = ROOT
		has_law = law_type:law_theocracy
	}
}

gov_prince_bishopric = {					# Oddball political system present in Montenegro, where power usually transferred uncle-to-nephew (due to celibacy req for bishops), but always within the same family
	transfer_of_power = hereditary
	
	male_ruler = "RULER_TITLE_PRINCE_BISHOP"
	female_ruler = "" # Empty on purpose

	male_heir = "RULER_TITLE_HEIR_APPARENT"
	female_heir = "" # Empty on purpose
	
	possible = {
		has_law = law_type:law_theocracy
		OR = {
			AND = {
				exists = c:MON
				c:MON = ROOT
			}
			AND = {
				exists = c:SLZ
				c:SLZ = ROOT
			}
			AND = {
				exists = c:AGR
				c:AGR = ROOT
			}
			AND = {
				exists = c:FRW
				c:FRW = ROOT
			}
			AND = {
				exists = c:MUN
				c:MUN = ROOT
			}
			AND = {
				exists = c:OSN
				c:OSN = ROOT
			}
		}
	}			
}

gov_zaidi_imamate = {
	transfer_of_power = hereditary
	male_ruler = "RULER_IMAM"
	female_ruler = "RULER_IMAM"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:shiite
		OR = {
			# AND = {
				# exists = c:ZAI
				# c:ZAI = ROOT
			# }
			AND = {
				exists = c:YEM
				c:YEM = ROOT
			}
		}
	}
}

gov_catholic_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_CARDINAL"
	female_ruler = "RULER_CARDINAL"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:catholic
	}
}

gov_protestant_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_PRIMATE"
	female_ruler = "RULER_PRIMATE"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:protestant
	}
}

gov_oriental_orthodox_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_PATRIARCH"
	female_ruler = "RULER_PATRIARCH"

	possible = {
		has_law = law_type:law_theocracy
		OR = {
			country_has_state_religion = rel:orthodox
			country_has_state_religion = rel:oriental_orthodox
		}
	}
}

gov_sunni_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_IMAM"
	female_ruler = "RULER_IMAM"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:sunni
	}
}

gov_shiite_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_AYATOLLAH"
	female_ruler = "RULER_AYATOLLAH"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:shiite
	}
}

gov_jewish_theocracy = {
	transfer_of_power = dictatorial
	male_ruler = "RULER_CHIEF_RABBI"
	female_ruler = "RULER_CHIEF_RABBI"

	possible = {
		has_law = law_type:law_theocracy
		country_has_state_religion = rel:jewish
	}
}

gov_theocratic_oligarchy = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_HIGH_PRIEST"
	female_ruler = "RULER_HIGH_PRIESTESS"
	
	possible = {
		has_law = law_type:law_theocracy
		has_law = law_type:law_oligarchy
	}
}

gov_theocracy = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_HIGH_PRIEST"
	female_ruler = "RULER_HIGH_PRIESTESS"
	
	possible = {
		has_law = law_type:law_theocracy
		country_has_voting_franchise = no
	}
}

gov_theocratic_democracy = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_HIGH_PRIEST"
	female_ruler = "RULER_HIGH_PRIESTESS"
	
	possible = {
		has_law = law_type:law_theocracy
		country_has_voting_franchise = yes
	}
}

gov_theocratic_dictatorship = {
	transfer_of_power = dictatorial

	male_ruler = "RULER_HIGH_PRIEST"
	female_ruler = "RULER_HIGH_PRIESTESS"
	
	possible = {
		has_law = law_type:law_theocracy
		has_law = law_type:law_autocracy 
	}
}

