hostility_group = {
	category = "not_creatable"

	doctrine_types = {
		abrahamic_hostility_doctrine
		pagan_hostility_doctrine
		eastern_hostility_doctrine
		sinitic_hostility_doctrine
		antediluvianist_hostility_doctrine
	}
}

doctrine_marriage_type = {
	category = "marriage"

	doctrine_types = {
		doctrine_monogamy
		doctrine_polygamy
		doctrine_concubines
	}
}

doctrine_divorce = {
	category = "marriage"

	doctrine_types = {
		doctrine_divorce_disallowed
		doctrine_divorce_approval
		doctrine_divorce_allowed
	}
}

doctrine_bastardry = {
	category = "marriage"

	doctrine_types = {
		doctrine_bastardry_none
		doctrine_bastardry_legitimization
		doctrine_bastardry_all
	}
}

doctrine_homosexuality = {
	category = "crimes"

	doctrine_types = {
		doctrine_homosexuality_crime
		doctrine_homosexuality_shunned
		doctrine_homosexuality_accepted
	}
}

doctrine_deviancy = {
	category = "crimes"

	doctrine_types = {
		doctrine_deviancy_crime
		doctrine_deviancy_shunned
		doctrine_deviancy_accepted
		doctrine_deviancy_virtuous
	}
}

doctrine_adultery_men = {
	category = "crimes"

	doctrine_types = {
		doctrine_adultery_men_crime
		doctrine_adultery_men_shunned
		doctrine_adultery_men_accepted
	}
}

doctrine_adultery_women = {
	category = "crimes"

	doctrine_types = {
		doctrine_adultery_women_crime
		doctrine_adultery_women_shunned
		doctrine_adultery_women_accepted
	}
}

doctrine_kinslaying = {
	category = "crimes"

	doctrine_types = {
		doctrine_kinslaying_any_dynasty_member_crime
		doctrine_kinslaying_extended_family_crime
		doctrine_kinslaying_close_kin_crime
		doctrine_kinslaying_shunned
		doctrine_kinslaying_accepted
	}
}

doctrine_witchcraft = {
	category = "crimes"

	doctrine_types = {
		doctrine_witchcraft_crime
		doctrine_witchcraft_shunned
		doctrine_witchcraft_accepted
		doctrine_witchcraft_virtuous
	}
}

doctrine_gender = {
	category = "main_group"

	doctrine_types = {
		doctrine_gender_male_dominated
		doctrine_gender_equal
		doctrine_gender_female_dominated
	}
}

doctrine_consanguinity = {
	category = "marriage"

	doctrine_types = {
		doctrine_consanguinity_dynastic
		doctrine_consanguinity_restricted
		doctrine_consanguinity_cousins
		doctrine_consanguinity_aunt_nephew_and_uncle_niece
		doctrine_consanguinity_unrestricted
	}
}

doctrine_pluralism = {
	category = "main_group"

	doctrine_types = {
		doctrine_pluralism_fundamentalist
		doctrine_pluralism_righteous
		doctrine_pluralism_pluralistic
	}
}

doctrine_theocracy = {
	category = "main_group"

	doctrine_types = {
		doctrine_theocracy_temporal
		doctrine_theocracy_lay_clergy
	}
}

doctrine_head_of_faith = {
	category = "main_group"

	doctrine_types = {
		doctrine_no_head
		doctrine_spiritual_head
		doctrine_temporal_head
		#doctrine_holy_order_head 		
	}
}

doctrine_clerical_function = {
	category = "clergy"

	doctrine_types = {
		doctrine_clerical_function_taxation
		doctrine_clerical_function_alms_and_pacification
		doctrine_clerical_function_recruitment
	}
}

doctrine_clerical_gender = {
	category = "clergy"

	doctrine_types = {
		doctrine_clerical_gender_male_only
		doctrine_clerical_gender_female_only
		doctrine_clerical_gender_either
	}
}

doctrine_clerical_marriage = {
	category = "clergy"

	doctrine_types = {
		doctrine_clerical_marriage_allowed
		doctrine_clerical_marriage_disallowed
	}
}

doctrine_clerical_succession = {
	category = "clergy"

	doctrine_types = {
		doctrine_clerical_succession_temporal_appointment
		doctrine_clerical_succession_spiritual_appointment
		doctrine_clerical_succession_temporal_fixed_appointment
		doctrine_clerical_succession_spiritual_fixed_appointment
	}
}

doctrine_pilgrimage = {
	category = "main_group"

	doctrine_types = {
		doctrine_pilgrimage_forbidden
		doctrine_pilgrimage_encouraged
		doctrine_pilgrimage_local_rites
		doctrine_pilgrimage_mandatory
		doctrine_pilgrimage_mandatory_hajj
	}
}

doctrine_funeral = {
	category = "clergy"

	doctrine_types = {
		doctrine_funeral_stoic
		doctrine_funeral_bewailment
		doctrine_funeral_cremation
		doctrine_funeral_sky_burial
		doctrine_funeral_mummification
		doctrine_family_rites
	}
}

doctrine_coronation = {
	category = "clergy"

	is_available_on_create = {
		has_ach_dlc_trigger = yes
	}

	doctrine_types = {
		doctrine_no_anointment
		doctrine_anointment_permitted
		doctrine_imperial_anointment
	}
}

doctrine_theism = {
	category = "main_group"

	doctrine_types = {
		doctrine_monotheist
		doctrine_polytheist
		doctrine_pantheist
	}
}

doctrine_muhammad_succession = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = islam_religion
	}

	doctrine_types = {
		muhammad_succession_sunni_doctrine
		muhammad_succession_shia_doctrine
		muhammad_succession_muhakkima_doctrine
		muhammad_succession_zandaqa_doctrine
	}
}

doctrine_temple_authority = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = judaism_religion
	}

	doctrine_types = {
		temple_authority_rabbinic_doctrine
		temple_authority_toric_doctrine
		temple_authority_kohanim_doctrine
		temple_authority_samaritan_torah_doctrine
	}
}

doctrine_zoroastrian_branches = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = zoroastrianism_religion
	}

	doctrine_types = {
		doctrine_major_branch_behdin
		doctrine_heretic_branch_zandik
	}
}
doctrine_universal_tolerance_cath = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = catholic_religion
	}
	doctrine_types = {
		special_doctrine_roman_rite
		special_doctrine_sevillian_rite
		special_doctrine_independent_catholic
		special_doctrine_via_media
		special_doctrine_incorruptible_dogma
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_nov = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = novelist_religion
	}
	doctrine_types = {
		special_doctrine_fantastical_kinship
		special_doctrine_academic_kinship
		special_doctrine_christian_kinship
		special_doctrine_islamic_kinship
		special_doctrine_singular_interpretation
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_fre = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = french_pantheon_religion
	}
	doctrine_types = {
		special_doctrine_populares
		special_doctrine_optimates
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_prot = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = protestant_religion
	}
	doctrine_types = {
		special_doctrine_established_church
		special_doctrine_reformation_roots
		special_doctrine_via_media
		special_doctrine_restored_church
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_thel = {
	category = "main_group"

	is_available_on_create = {
		OR = {
			religion_tag = druidic_religion
			religion_tag = wicca_religion
			religion_tag = thelema_religion
		}
	}
	doctrine_types = {
		special_doctrine_fae_and_folklore
		special_doctrine_might_and_magick
		special_doctrine_goddesses_and_glory
		special_doctrine_crowleyan_magic
		special_doctrine_loyal_servants_of_the_queen
		special_doctrine_servants_of_the_regency
		special_doctrine_regicidal
		special_doctrine_truest_servants_of_the_queen
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_brit = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = britannic_religion
	}
	doctrine_types = {
		special_doctrine_loyal_servants_of_the_queen
		special_doctrine_truest_servants_of_the_queen
		special_doctrine_regicidal
		special_doctrine_goddesses_and_glory
		special_doctrine_crowleyan_magic
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_ger = {
	category = "main_group"

	is_available_on_create = {
			religion_tag = folkgerman_religion
	}
	doctrine_types = {
		special_doctrine_cult_of_saints
		special_doctrine_old_lore
		special_doctrine_heathen_revanchism
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_chron = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = chronicler_religion
	}
	doctrine_types = {
		special_doctrine_hermetic
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_euro = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = europeanist_religion
	}
	doctrine_types = {
		special_doctrine_apollonian
		special_doctrine_dionysian
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_cosm = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = cosmist_religion
	}
	doctrine_types = {
		special_doctrine_common_task
		special_doctrine_pure_space
		special_doctrine_religion_fallback
	}

}
doctrine_universal_tolerance_cosm = {
	category = "main_group"

	is_available_on_create = {
		religion_tag = octobrist_religion
	}
	doctrine_types = {
		special_doctrine_the_reds
		special_doctrine_the_whites
		special_doctrine_religion_fallback
	}

}
doctrine_core_tenets = {
	category = "core_tenets"

	number_of_picks = 3

	doctrine_types = {
		# Christian Faith Tenets
		tenet_aniconism
		tenet_alexandrian_catechism
		tenet_armed_pilgrimages
		tenet_carnal_exaltation
		tenet_communal_identity
		tenet_communion
		tenet_consolamentum
		tenet_divine_marriage
		tenet_gnosticism
		tenet_mendicant_preachers
		tenet_monasticism
		tenet_pacifism
		tenet_pentarchy
		tenet_unrelenting_faith
		tenet_vows_of_poverty
		tenet_pastoral_isolation
		tenet_rite
		# Muslim Faith Tenets
		tenet_adaptive
		tenet_esotericism
		tenet_legalism
		tenet_literalism
		tenet_reincarnation
		tenet_religious_legal_pronouncements
		tenet_struggle_submission
		tenet_false_conversion_sanction
		tenet_tax_nonbelievers
		# Eastern Faith Tenets
		tenet_asceticism
		tenet_bhakti
		tenet_dharmic_pacifism
		tenet_inner_journey
		tenet_ritual_hospitality
		# Pagan Faith Tenets
		tenet_adorcism
		tenet_ancestor_worship
		tenet_astrology
		tenet_hedonistic
		tenet_human_sacrifice
		tenet_mystical_birthright
		tenet_ritual_celebrations
		tenet_sacred_childbirth
		tenet_sanctity_of_nature
		tenet_sun_worship
		tenet_warmonger
		tenet_gruesome_festivals
		tenet_cthonic_redoubts
		tenet_household_gods
		# Syncretic Faith Tenets
		tenet_sinitic_syncretism
		tenet_eastern_syncretism
		tenet_unreformed_syncretism
		tenet_christian_syncretism
		tenet_islamic_syncretism
		tenet_jewish_syncretism
		# Custom Faith Tenets
		tenet_exaltation_of_pain
		tenet_natural_primitivism
		tenet_pursuit_of_power
		tenet_ritual_cannibalism
		tenet_sacred_shadows
		tenet_polyamory
		tenet_sacrificial_ceremonies
		tenet_megaliths
		# FP3 Tenets
		tenet_fp3_fedayeen
		tenet_communal_possessions
		# TGP Tenets
		tenet_pure_land
		tenet_no_mind
		tenet_mountain_worship
		tenet_extinction_of_dharma
		tenet_cranial_trophies
		tenet_pursuit_of_knowledge
		tenet_benevolent_governance
		tenet_filial_piety
		tenet_harmonious_society
		tenet_sacred_destruction
		tenet_preservation
		tenet_takamin
		# NEOW Tenets
		tenet_divine_opulence
		king_of_winter
		tenet_armed_resistance
		tenet_rule_the_waves
		tenet_terror_of_the_seas
		tenet_true_will
		tenet_love_under_will
		tenet_do_what_thou_wilt
		core_tenet_belle_epoque
		tenet_righteous_fury
		core_tenet_peacekeeping
		tenet_let_the_poppies_grow
		tenet_druidry
		tenet_liberte
		tenet_egalite
		tenet_fraternite
		tenet_universal_scripture
		tenet_people_of_the_book
		one_king_to_rule_them_all
		tenet_restore_the_crown
		tenet_chivalric_ideals
		tenet_letranger
		tenet_the_search_for_a_meaning
		tenet_catholic_communion
		tenet_scientific_discourse
		tenet_wandering_bards
		tenet_divine_progress
		tenet_five_points
		tenet_theomonarchy
        tenet_militant_vows		
		
		
		
		
		
		
		
		
		
	}
}

is_christian_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_christian_faith
	}

	doctrine_types = {
		special_doctrine_is_christian_faith
	}
}

is_islamic_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_islamic_faith
	}

	doctrine_types = {
		special_doctrine_is_islamic_faith
	}
}

is_jewish_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_jewish_faith
	}

	doctrine_types = {
		special_doctrine_is_jewish_faith
	}
}

is_eastern_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_eastern_faith
	}

	doctrine_types = {
		special_doctrine_is_eastern_faith
	}
}

is_sinitic_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_sinitic_faith
	}

	doctrine_types = {
		special_doctrine_is_sinitic_faith
	}
}

is_hostile_to_maitreya = {
	category = "not_creatable"

	doctrine_types = {
		special_doctrine_maitreya_hostility
		special_doctrine_is_maitreya
	}
}

is_gnostic_faith = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_is_gnostic_faith
	}

	doctrine_types = {
		special_doctrine_is_gnostic_faith
	}
}

special_tolerance = {
	category = "main_group"
	
	is_available_on_create = {
		always = no # Goes away when creating a new Faith
	}

	doctrine_types = {
		special_doctrine_ecumenical_christian
	}
}

heresy_hostility = {
	category = "not_creatable"

	is_available_on_create = {
		has_doctrine = heresy_hostility_doctrine
	}

	doctrine_types = {
		heresy_hostility_doctrine
	}
}

nudity_doctrine = {
	category = "special"

	is_available_on_create = {
		has_doctrine = special_doctrine_naked_priests
	}

	doctrine_types = {
		special_doctrine_naked_priests
	}
}

unreformed_faith = {
	category = "not_creatable"

	is_available_on_create = {
		# Goes away on reformation
		always = no
	}

	doctrine_types = {
		unreformed_faith_doctrine
		west_african_unreformed_faith_doctrine
	}
}

divine_destiny = {
	category = "special"

	is_available_on_create = {
		has_doctrine = divine_destiny_doctrine
	}

	doctrine_types = {
		divine_destiny_doctrine
	}
}

adoptionist_school = {
	category = "special"
	
	is_available_on_create = {
		# Removed on reformation.
		always = no
	}

	doctrine_types = {
		special_doctrine_adoptionist_school_elipandic_doctrine
		special_doctrine_adoptionist_school_felicitous_doctrine
		special_doctrine_adoptionist_school_radical_doctrine
	}
}

not_allowed_to_hof = {
	category = "special"

	is_available_on_create = {
		# Removed on reformation.
		always = no
	}

	doctrine_types = {
		special_doctrine_not_allowed_to_hof
	}
}

#Game rule only
full_tolerance = {
	category = "special"

	is_available_on_create = {
		has_doctrine = special_doctrine_full_tolerance
	}

	doctrine_types = {
		special_doctrine_full_tolerance
	}
}

has_jizya_doctrine = {
	category = "special"

	is_available_on_create = {
		OR = {
			has_doctrine = special_doctrine_jizya
			has_doctrine = special_doctrine_is_islamic_faith
		}
	}

	doctrine_types = {
		special_doctrine_jizya
	}
}

immaterial_harmony = {
	category = "special"
	
	is_available_on_create = {
		has_doctrine = special_doctrine_immaterial_harmony
	}

	doctrine_types = {
		special_doctrine_immaterial_harmony
	}
}

custom_virtues = {
	category = "special"

	is_available_on_create = {
		has_doctrine = special_doctrine_english_anglican
		has_doctrine = special_doctrine_british_royalty
		has_doctrine = special_doctrine_british_admiralty
		has_doctrine = special_doctrine_british_unity
		has_doctrine = special_doctrine_liberty
		has_doctrine = special_doctrine_equality
		has_doctrine = special_doctrine_fraternity
		has_doctrine = special_doctrine_aslan
		has_doctrine = special_doctrine_numenor
		has_doctrine = special_doctrine_charlemagne
		has_doctrine = special_doctrine_dracula
		has_doctrine = special_doctrine_reason_and_progress
		has_doctrine = special_doctrine_simurghi
		has_doctrine = special_doctrine_rocambolist
		has_doctrine = special_doctrine_absurdist
		has_doctrine = special_doctrine_base_thelema
		has_doctrine = special_doctrine_old_thelema
		has_doctrine = special_doctrine_king_arthurs_bravery
		has_doctrine = special_doctrine_horned_lords_law
		has_doctrine = special_doctrine_helvetic
	}

	doctrine_types = {
		special_doctrine_english_anglican
		special_doctrine_british_royalty
		special_doctrine_british_admiralty
		special_doctrine_british_unity
		special_doctrine_liberty
		special_doctrine_equality
		special_doctrine_fraternity
		special_doctrine_aslan
		special_doctrine_numenor
		special_doctrine_charlemagne
		special_doctrine_dracula
		special_doctrine_reason_and_progress
		special_doctrine_simurghi
		special_doctrine_rocambolist
		special_doctrine_absurdist
		special_doctrine_base_thelema
		special_doctrine_old_thelema
		special_doctrine_king_arthurs_bravery
		special_doctrine_horned_lords_law
		special_doctrine_helvetic
	}
}