##################################
##
## RELIGION HEADS
##
##################################

d_apostolic = {
	color = { 51 25 0 }
	color2 = { 230 220 108 }
	title = CATHOLICOS
	foa = POPE_FOA
	dignity = 80

	capital = 594 # Dwin
	culture = armenian
	religion = apostolic
	controls_religion = apostolic

	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	# Regnal names
	male_names = {
		Aleksandr Ananias Aristaces Asdvadzadur
		Constantine Davit Dertad
		Eliazar
		Gevorg Giragos Grigor
		Hacob Hovhannes Hovsep
		Isaiah
		Joab
		Karapet Khachig
		Mashdotz Mekhitar Mesrop Mikayel Movses
		Nahabed Nerses
		Parsegh Petros Philippos
		Sarkis Sion Soghomon Stephan
		Thoros
		Vahan
		Yeghishe
		Zacharias
	}

	allow = {
		always = no
	}
}

# d_aztec_pagan_reformed = {
# 	color = { 245 245 135 }
# 	color2 = { 220 220 0 }
# 	title = HEAD_PRIEST
# 	title_female = HEAD_PRIESTESS
# 	foa = HEAD_PRIEST_FOA
# 	dignity = 100
#
# 	capital = 6 # Dublin
# 	religion = aztec_pagan_reformed
# 	controls_religion = aztec_pagan_reformed
#
# 	dynasty_title_names = no
# 	landless = yes
# 	primary = yes
# 	short_name = yes
#
# 	allow = {
# 		religion = aztec_pagan
# 		num_of_holy_sites >= 3
# 		piety >= 500
# 		ai = yes
# 		is_adult = yes
# 		has_regent = no
# 		war = no
# 	}
# }

d_bektashi_head = { # Named _head to avoid conflicts with d_bektashi holy order
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	dignity = 100

	capital = 1533 # Mecca
	religion = bektashi
	controls_religion = bektashi

	caliphate = yes
	creation_requires_capital = no
	dynasty_title_names = no
	short_name = yes

	allow = {
		religion = bektashi
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }

		OR = {
			trait = mirza
			trait = sayyid
			piety >= 1000
		}

		OR = {
			AND = {
				trait = sayyid
				piety >= 1000
			}

			custom_tooltip = {
				text = controls_mecca_medina

				c_mecca = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_medina = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}

			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad

				c_jerusalem = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_damascus = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_baghdad = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}
		}
	}
}

d_bogomilist = {
	color = { 236 112 254 }
	color2 = { 230 220 108 }
	title = ELDER
	title_female = ELDER
	foa = POPE_FOA
	dignity = 80

	capital = 530 # Tyrnovo
	religion = bogomilist
	controls_religion = bogomilist

	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	allow = {
		always = no # Only by special decision
	}
}

d_cathar = {
	color = { 238 224 147 }
	color2 = { 230 220 108 }
	title = CATHAR_PATRIARCH
	title_female = CATHAR_MATRIARCH
	foa = POPE_FOA
	dignity = 100

	capital = 323 # Carcassonne
	religion = cathar
	controls_religion = cathar

	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	allow = {
		always = no # Only by special decision
	}

	gain_effect = {
		if = {
			limit = { NOT = { trait = perfecti } }
			add_trait = perfecti
		}
	}
}

d_celtic_pagan_reformed = {
	color = { 122 165 70 }
	color2 = { 220 220 0 }
	title = ARCH_DRUID
	title_female = ARCH_DRUID
	foa = ARCH_DRUID_FOA
	dignity = 100

	capital = 23 # Gwynedd
	religion = celtic_pagan_reformed
	controls_religion = celtic_pagan_reformed

	creation_requires_capital = no
	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	allow = {
		religion = celtic_pagan
		has_titular_requirements = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
		num_of_holy_sites >= 3
		piety >= 500
	}
}

d_druze = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	title = SHAYKH
	title_female = SHAYKHA
	foa = CALIPH_FOA
	dignity = 100

	capital = 1511 # Beirut
	religion = druze
	controls_religion = druze

	creation_requires_capital = no
	dynasty_title_names = no
	caliphate = yes
	short_name = yes

	allow = {
		religion = druze
		trait = druze_ajawid
		num_of_holy_sites >= 1
		piety >= 1000
		higher_real_tier_than = DUKE
		is_adult = yes
		has_regent = no
		war = no
	}

	gain_effect = {
		if = {
			limit = { NOT = { has_global_flag = druze_shaykh } }
			narrative_event = { id = Plus.1968 }
		}
	}
}

d_egyptian_pagan_reformed = {
	color = { 222 125 120 }
	color2 = { 120 120 0 }
	title = PARAGON_XROJ
	title_female = PARAGON_XROJ
	dignity = 100

	capital = 1604 # Asyut
	religion = egyptian_pagan_reformed
	controls_religion = egyptian_pagan_reformed

	creation_requires_capital = no
	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	male_names = {
		Babaef Bakenkhonsu Bakenranef Baskakeren Baufra_Baufra Baufre_Baufra Bauefre_Baufra "Bay Irsu" Bebi Bebiankh_Bebiankh "Seuserenre Bebiankh" Bek_Bek Bak_Bek Buneb
		Chephren Cheops
		Dagi Dedi Dedumose_Dedumose Tutimaios_Dedumose Den Didia Djaty Djau Djedefhor Djedefptah Djedefre Djedhor Djedi Djediufankh "Djedkare Isesi" "Djedkare Shemai" Djedkhonsuefankh Djedptahiufankh Djehuty Djer Djet Djoser_Djoser Duaenhor Duaenre
		Hakor_Hakor Akoris_Hakor Hannu Hapuseneb Harkhuf "Harsiese Hedjkheperre Setepenamun" Harsiese Harsiotef Harwa Hemaka Hepu Heqanakht Herihor Hersy-Ra Hewernef Hor_Hor Hor-Aha_Hor Horbaef Horemheb_Horemheb Horemhab_Horemheb Haremhab_Horemheb Hori Hornakht Hotepibre Hotepsekhemwy Hsekiu_Hsekiu Seka_Hsekiu Hugronaphor Hunefer Huni Huy Huya
		Ibi Ibiau_Ibiau Ibiaw_Ibiau "Wahibre Ibiau"_Ibiau Imhotep Imyremeshaw Inaros_Inaros Ienheru_Inaros Inarus_Inaros "Ini Menkheperre" Inkaef Intef Intefiqer Isesi-ankh Isu Itisen Iufaa Iufni Iunmin_Iunmin Yunmin_Iunmin Iuenmin_Iunmin Minuen_Iunmin Iunre_Iunre Yunre_Iunre Iuput Iynefer
		Ka_Ka "Sekhem Ka"_Ka Ka-Sekhen_Ka Kaemsekhem Kagemni Kakhent Kamose Kanefer Kashta Khaba Khabash Khabekhnet Khaemtir Khaemweset Khafra Khamudi Khasekhemwy Khawy Khay Khayu "Khendjer Userkare" Kheti Khnumhotep Khufu Khufukhaf Khyan Mahu
		Maiherpri Malewiebamani Masaharta Meketre Menes Menkare "Menkauhor Kaiu"_Menkauhor Menkaure_Menkauhor Menkheperraseneb Menkheperre Menna Mentuherkhepeshef Mentuhotep Merefnebef Merenhor "Merenre Nemtyemsaf" "Merhotepre Ini" Merikare Merit-Ptah "Merneferre Ay" Merneptah Meru Meryatum Merymose Meryptah Meryre Merysekhmet Meryteti_Meryteti Merytre-Hatshepsut_Meryteti Mindjedef Minkhaf Minmontu Minmose Minnefer Montuherkhopshef
		Nakht_Nakht Nakhthoreb Nakhtmin Nakhtnebef Nakhtpaaten_Nakht Narmer Nasakhma Nastasen Nebamun Nebemakhet Nebiriau_Nebiriau "Nebiriau Sewadjenre"_Nebiriau Nebmaatre "Nebneteru Tenry" Nebnuni Nebre Nebwenenef Neby Necho Nectanebo Nedjem Neferefre Neferhotep_Neferhotep "Neferhotep Sekhemre Sankhtawy"_Neferhotep Neferirkare_Neferirkare "Neferirkare Kakai"_Neferirkare Neferkahor Neferkamin_Neferkamin "Neferkamin Anu" Neferkara "Neferkare Iymeru" Neferkare "Neferkare Khendu" "Neferkare Neby" "Neferkare Pepiseneb" "Neferkare Tereru" Neferkau Neferkauhor Neferkaure Nefermaat Neferronpet Nefersheshemre Nehesy Nehi "Neitiqerty Siptah" Nekauba Nemtyemsaf Nepherites Neserkauhor "Neterkheperre Meryptah" Netjeraperef Netjerkare Nikare Nikaure Nimlot Nykara Nynetjer "Nyuserre Ini"
		Osorkon
		Paanchi Pabasa Pahemnetjer "Pami Usermaatre Setepenre" Panehesy Paraemheb Pareherwenemef Parennefer Paser Pashedu Paweraa Pawura Pebekkamen Pediamenopet Pediese Petiese Pedubast Pennesuttawy Pensekhmet Pentawer Penthu Pentu Pepi_Pepi "Pepi Meryre" Pepi "Pepi Neferkare" Perneb Petubastis Piankh Pihuri Pimay Pinedjem Pinehesy Pipi Piye Prehotep Psammuthes Psamtik_Psamtik "Psamtik Wahibre"_Psamtik Psusennes_Psusennes "Psusennes Titkheperure"_Psusennes Ptahhotep Ptahmose Ptahshepses Puimre
		Qa'a "Qakare Ibi" Qar Qen Qenna
		Raemka Raherka Rahotep Ramesses_Ramesses "Ramesses Menpehtyre" "Ramesses Usimare" "Ramesses Usermaatre Meryamun Setepenre" "Ramesses Usermare Akhenamun" "Ramesses-Meryamun-Nebweben" Ramesses Ramessesnakht Ramose Raneb Ranefer Rashepses Rawer Rehuerdjersen Rekhmire Renseneb Roma-Roi "Rudamun Usermaatre Setepenamun Meryamun"
		Sabef Sabu Sahure Sakir-Har Salitis Sanakht "Sankhenre Sewadjtu" "Sedjefakare Amenemhat" Sehetepre Sekhemib-Perenmaat Sekhemkare Sekhemkhet "Sekhemre Khutawy Sobekhotep" Semenkare Semenre Semerkhet "Senakhtenre Tao" Seneb Senebhenaf Senebi Senedj Senedjemib_Senedjemib "Senedjemib Inti" "Senedjemib Mehi" Senedjemib Senenmut Senewosret-Ankh Senkamanisken Sennedjem Sennefer Senneferi Senusret "Seqenenre Tao" Serfka Setau Seth-Peribsen Seti_Seti "Seti Menmaatre" "Seti Userkheperure Setepenre" Seti-Merenptah_Seti "Setnakhte Userkhaure-Setepenre" Bebiankh Sewadjkare "Sewadjkare Hori" "Shabaka Neferkare" Shebitku Shedsu-nefertum Shepseska "Shepseskare Isi" Shepsesneb Shery "Sheshi Maaibre" Sheshonk_Sheshonk "Sheshonk Heqakheperre" "Sheshonk Usermaatre Setepenre" "Sheshonk Hedjkheperre Setepenre" Sheshonk Shoshenq_Sheshonk "Siamun Netjerkheperre-Setepenamun" Siamun Siaspiqa Siatum Siese Simut "Siptah Akhenre Setepenre" Smendes_Smendes "Smendes Hedjkheperre Setepenre"_Smendes Smenkhkare Sneferu_Sneferu Snefru_Sneferu Snofru_Sneferu Soris_Sneferu Sobekemhat Sobekemsaf_Sobekemsaf  "Sobekemsaf Sekhemrewadjkhaw"_Sobekemsaf Sobekhotep_Sobekhotep "Sobekhotep Khaankhre" "Sobekhotep Sekhemresewdjtawy" "Sobekhotep Khaneferre" Sobekhotep "Sobekhotep Sekhemre Susertawi" Sobeknakht
		Taharqa Takelot_Takelot "Takelot Hedjkheperre Setepenre" "Takelot Si-Ese Hedjkheperre Setepenre" "Takelot Si-Ese Usimare Setepenamun" Takelot Talakhamani Tantamani Tao_Tao "Tao Seqenenre" Tefnakht_Tefnakht "Tefnakht Shepsesre"_Tefnakht Teos Teta Teti Thamphthis Thutmose Tjanefer Tutankhamun "Tutkheperre Shoshenq" Tutu
		Unas Useramen Userhet Userkaf Userkare Usermontu
		Wadjmose "Wakhare Khety" Webensenu "Wegaf Khutawyre" Wehemka Weneg Weni Wentawat Wetka
		Yanhamu Yaqub-Har Yuny Yuya
		Zamonth Zannanza Zoser_Djoser
	}

	female_names = {
		Baketwernel Behenu Beket_Beket Beketamun_Beket Beketaten Benerib Betrest Bintanath_Bintanath Bentanath_Bintanath Bunefer
		Cleopatra
		Dakhamunzu Djefatnebti Djefatsen Djehuti_Djehuti Thuty_Djehuti "Djehuty Sekhemresementawy"_Djehuti Djeseretnebti Duatentopet_Duatentopet Tentopet_Duatentopet Duathathor-Henuttawy
		Gautseshen Gilukhipa
		Hatshepsut Hatshepsut-Merytre Hedjetnebu Hekenuhedjet Hemetre Hemiunu Henutmehyt Henutmire Henutsen Henuttaneb Henuttawy Henutwati Herneith Hetepheres Hetephernebti Hui
		Iaret Inenek-Inti Ineni_Ineni Ini_Ineni Inetkawes Ipu Iput Iry-Hor Isesu Iset "Iset Ta-Hemdjert" Isetemkheb Isetnofret Itet
		Kapes Karomama_Karomama "Karomama Meritmut"_Karomama Keminub Khamerernebty Khedebneithirbinet Khenemetneferhedjet_Khenemetneferhedjet "Khenemetneferhedjet Weret"_Khenemetneferhedjet Khensa Khentetka Khenthap Khentimeresh Khentkaus Khenut Khuit Kiya
		Maathorneferure Maatkare_Maatkare "Maatkare Mutemhat"_Maatkare Maia_Maia Matia_Maia Maya_Maia Mehytenweskhet Meketaten Menhet Mentuhotep Menwi Mereret Mereruka Meresamun Meresankh Meretseger Meritamen Meritaten_Meritaten "Meritaten Tasherit"_Meritaten Meritites Merneith Merti Meryteti_Meryteti Mutbenret Mutemwiya Mutnedjmet Mutnofret
		Nakhtneith Nakhtubasterau Naparaye Nauny Nebet Nebetah Nebetia Nebetiunet Nebetnehat Nebettawy Nebtu Nebtyemneferes Nebty-tepites Nedjeftet Nedjemib Neferetnebty Neferhetepes Neferneferuaten_Neferneferuaten  "Neferneferuaten Ankhkheperure" Neferneferuaten "Neferneferuaten Tasherit" Neferneferure Nefertari Neferthenut Nefertiabet Nefertiti Nefertkau Nefertnesu Neferu Neferuptah Neferure Nefrubity Neith Neithhotep Nesitanebetashru Nesitaudjatakhet Neskhons Nimaethap Nitocris Nofret Nubhetepti-khered Nubkhaes Nubkhesbed Nubwenet
		Pageti Patareshnes Pebatjma Peksater Penebui Persenet Peseshet Pyhia
		Qalhata
		Rekhetre Reptynub Reputnebty
		Satiah Scota Sekhmakh Semat Senseneb Serethor Seshemetka Sesheshet Setepenre Shepenupet Sitamun Sitdjehuti Sithathoriunet Sitre_Sitre "Sitre In"_Sitre Sobekneferu
		Tabekenamun Tabiry Tadukhipa Takahatenamun Takhat Takhuit Tashedkhonsu Tawerettenru Tentamun Tentkheta Tetisheri Tey Tia_Tia Tiaa_Tia Tiye_Tia Tiy-Merenese Tjuyu Tuya Twosret Tyti
		Udjebten
	}

	allow = {
		religion = egyptian_pagan_reformed
		num_of_holy_sites >= 3
		piety >= 500
		has_titular_requirements = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
	}
}

d_german_pagan_reformed = {
	color = { 120 25 25 }
	color2 = { 74 132 75 }
	title = KUNINGAZ
	title_female = KUNINGO
	foa = FYLKIR_FOA
	dignity = 100

	capital = 184 # Braunschweig
	religion = german_pagan_reformed
	controls_religion = german_pagan_reformed

	creation_requires_capital = no
	dynasty_title_names = no
	short_name = yes

	allow = {
		religion = german_pagan_reformed
		num_of_holy_sites >= 3
		piety >= 500
		is_adult = yes
		has_regent = no
		war = no
	}
}

# Roman version has religion head, Greek doesn't
d_roman_pagan = {
	color = { 155 155 235 }
	color2 = { 220 220 0 }
	title = PONTIFEX_MAXIMUS
	foa = PONTIFEX_MAXIMUS_FOA
	dignity = 100

	capital = 464 # Roma
	religion = roman_pagan
	controls_religion = roman_pagan

	creation_requires_capital = no
	dynasty_title_names = no
	primary = yes
	short_name = yes

	allow = {
		religion = roman_pagan
		piety >= 500
		num_of_holy_sites >= 3
		has_titular_requirements = yes
		is_theocracy = yes
		is_adult = yes
		has_regent = no
		war = no
	}
}

d_mazdaki = {
	color = { 170 130 45 }
	color2 = { 220 220 0 }
	title = HEAD_MOABADAN_MOABAD
	foa = POPE_FOA
	dignity = 80

	capital = 1449 # Esfahan
	religion = mazdaki
	controls_religion = mazdaki

	landless = yes
	dynasty_title_names = no
	primary = yes
	short_name = yes

	allow = {
		always = no # Only by special decision
	}
}

d_messalian = {
	color = { 150 107 67 }
	color2 = { 220 220 0 }
	title = EUCHITE_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA
	dignity = 100

	capital = 1499 # Antioch
	religion = messalian
	controls_religion = messalian

	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes

	# Regnal names
	male_names = {
		Aba Abraham Eliya Denha Emmanuel Giwargis Hnanisho Ishoyahb Makkikha
		Maremmeh Pethion Sabrisho Shemon Sargis Surin Theodosios Timotheos Yahballaha Yohannan
	}
}

d_promethean_pagan = {
	color = { 100 44 201 }
	color2 = { 201 97 108 }
	title = SCHOLARCH
	title_female = SCHOLARCH
	dignity = 100

	capital = 501 # Atheniai, location of Plato's Academy
	religion = promethean_pagan
	controls_religion = promethean_pagan

	creation_requires_capital = yes
	dynasty_title_names = no
	short_name = yes

	allow = {
		religion = promethean_pagan
		num_of_holy_sites >= 3
		piety >= 500
	}
}

d_quranist = {
	color = { 30 160 90 }
	color2 = { 240 240 0 }
	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	dignity = 100

	capital = 1533 # Mecca
	religion = quranist
	controls_religion = quranist

	caliphate = yes
	creation_requires_capital = no
	dynasty_title_names = no
	short_name = yes

	allow = {
		religion = quranist
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }

		OR = {
			trait = mirza
			trait = sayyid
			piety >= 1000
		}

		OR = {
			AND = {
				trait = sayyid
				piety >= 1000
			}

			custom_tooltip = {
				text = controls_mecca_medina

				c_mecca = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_medina = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}

			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad

				c_jerusalem = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_damascus = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_baghdad = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}
		}
	}
}

d_samaritan = {
	color = { 0 80 255 }
	title = HEAD_KOHEN_GADOL
	foa = POPE_FOA
	dignity = 100

	capital = 1514 # Jerusalem
	religion = samaritan
	culture = mizrahim
	controls_religion = samaritan

	dynasty_title_names = no
	landless = yes
	primary = yes
	short_name = yes
}

d_zikri = {
	color = { 60 190 60 }
	color2 = { 220 220 0 }
	title = CALIPH
	title_female = CALIPHA
	foa = CALIPH_FOA
	dignity = 100

	capital = 1533 # Mecca
	religion = zikri
	controls_religion = zikri

	caliphate = yes
	creation_requires_capital = no
	dynasty_title_names = no
	short_name = yes

	allow = {
		religion = zikri
		is_heretic = no
		is_adult = yes
		has_regent = no
		war = no
		NOT = { has_global_flag = shia_caliphate_revolt_ongoing }

		OR = {
			trait = mirza
			trait = sayyid
			piety >= 1000
		}

		OR = {
			AND = {
				trait = sayyid
				piety >= 1000
			}

			custom_tooltip = {
				text = controls_mecca_medina

				c_mecca = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_medina = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}

			custom_tooltip = {
				text = controls_jerusalem_damascus_baghdad

				c_jerusalem = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_damascus = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}

				c_baghdad = {
					holder_scope = {
						OR = {
							is_vassal_or_below_of = ROOT
							character = ROOT
						}
					}
				}
			}
		}
	}
}

# k_papacy = {
# 	color = { 255 249 198 }
# 	color2 = { 220 220 0 }
# 	title_prefix = PAPACY_OF
# 	title = POPE
# 	foa = POPE_FOA
# 	dignity = 100
#
# 	capital = 464 # Rome
# 	culture = roman
# 	controls_religion = chalcedonian
#
# 	creation_requires_capital = yes
# 	dynasty_title_names = no
# 	landless = yes
# 	primary = yes
#
# 	# Regnal names
# 	male_names = {
# 		Hadrianus Agapitus:20 Alexander Anastasius:50 Benedictus Bonifatius:10 Callistus Coelestinus Clemens Constantinus Damasus:10
# 		Eugenius:10 Formosus:20 Gelasius:50 Gregorius Innocentius:125 Ioannes:150 Landus:10 Leo:125 Lucius Marinus:50 Martinus:25 Nicolaus Honorius Paschalis:10
# 		Pius:10 Romanus:10 Sergius Silvester:50 Stephanus:125 Theodorus:25 Urbanus Valentinus:10 Victor:50
# 	}
# }

k_pentarch_constantinople = {
	color = { 180 84 147 }
	color2 = { 220 220 0 }
	title_prefix = PATRIARCHATE_OF
	title = PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA
	dignity = 100

	capital = 541 # Constantinople
	culture = greek

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
	primary = yes

	# Regnal names
	male_names = {
		Alexios Anastasios Arsenios Athanasios Antonios	Basileios Dositheos Eustathios Eustratios
		Euthymios Georgios Gerasimos Germanos Gregorios Ignatios Ioannes Ioseph Isaias Isidoros
		Kallistos Konstantinos Kosmas Leon Loukas Makarios Manuel Matthaios Maximos Methodios
		Metrophanes Michael Neophytos Nephon Nikolaos Nikephoros Nilos Pavlos Philotheos Photios
		Polyeuktos Sergios Sisinnios Stephanos Tarasios Theodoros Theodosios Theodotos Theoleptos
		Theophanes Theophylaktos Tryphon Zacharias
	}
}

k_pentarch_alexandria = {
	color = { 100 219 134 }
	color2 = { 220 220 0 }
	title_prefix = PAPACY_OF
	title = POPE
	foa = POPE_FOA

	capital = 1620 # Alexandria
	culture = egyptian_arabic

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
}

k_pentarch_antioch = {
	color = { 142 63 129 }
	color2 = { 220 220 0 }
	title_prefix = PATRIARCHATE_OF
	title = PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1499 # Antioch
	culture = armenian

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
}

k_pentarch_jerusalem = {
	color = { 180 180 180 }
	color2 = { 220 220 0 }
	title_prefix = PATRIARCHATE_OF
	title = PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1514 # Jerusalem
	culture = levantine_arabic

	dynasty_title_names = no
}

k_latin_constantinople = {
	color = { 180 84 147 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 541 # Constantinople
	culture = latin_culture
	religion = catholic

	dynasty_title_names = no
	primary = yes

	allow = {
		always = no # Only by special decision
	}
}

k_latin_alexandria = {
	color = { 100 219 134 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1620 # Alexandria
	culture = outremer
	religion = catholic

	dynasty_title_names = no
	primary = yes

	allow = {
		always = no # Only by special decision
	}
}

k_latin_antioch = {
	color = { 142 63 129 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1499 # Antioch
	culture = outremer
	religion = catholic

	primary = yes
	dynasty_title_names = no

	allow = {
		always = no # Only by special decision
	}
}

k_latin_jerusalem = {
	color = { 180 180 180 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1514 # Jerusalem
	culture = outremer
	religion = catholic

	dynasty_title_names = no
	primary = yes

	allow = {
		always = no # Only by special decision
	}
}

d_latin_constantinople = {
	color = { 180 84 147 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 541 # Constantinople
	culture = latin_culture
	religion = catholic

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
	primary = yes

	allow = {
		religion = catholic
		is_theocracy = yes

		FROM = {
			show_scope_change = no
			has_holder = yes # Created by event
		}
	}
}

d_latin_alexandria = {
	color = { 100 219 134 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1620 # Alexandria
	culture = outremer
	religion = catholic

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
	primary = yes

	allow = {
		religion = catholic
		is_theocracy = yes

		FROM = {
			show_scope_change = no
			has_holder = yes # Created by event
		}
	}
}

d_latin_antioch = {
	color = { 142 63 129 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1499 # Antioch
	culture = outremer
	religion = catholic

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
	primary = yes

	allow = {
		religion = catholic
		is_theocracy = yes

		FROM = {
			show_scope_change = no
			has_holder = yes # Created by event
		}
	}
}

d_latin_jerusalem = {
	color = { 180 180 180 }
	color2 = { 220 220 0 }
	title_prefix = LATIN_PATRIARCHATE_OF
	title = LATIN_PATRIARCH
	foa = ECUMENICAL_PATRIARCH_FOA

	capital = 1514 # Jerusalem
	culture = outremer
	religion = catholic

	creation_requires_capital = yes
	dynasty_title_names = no
	landless = yes
	primary = yes

	allow = {
		religion = catholic
		is_theocracy = yes

		FROM = {
			show_scope_change = no
			has_holder = yes # Created by event
		}
	}
}

# Fake religion head title to fix issues with College of Cardinals on game starts before the Great Schism
# Papal Succession requires a religious head title to exist prior to game start to properly initialise the College of Cardinals
# If it is not held by historical popes, this does also not work properly, for various reasons:
# - If its capital is not in Rome, the College of Cardinals is only partially populated, due to diplomatic range
# - If it is not held by historical popes, but the capital is set to Rome, its holder is set to hold Rome, taking it from the Pope
k_papacy_chalcedonian = {
	color = { 0 0 0 }
	capital = 464 # Roma
	controls_religion = chalcedonian
}