doctrine_temple_authority = {
	group = "main_group"
	is_available_on_create = {
		religion_tag = judaism_religion
	}
	# Tracks the way in which Halakha is supposed to be interpreted
	temple_authority_rabbinic_doctrine = { # Rabbis argue and interpret the Halakha
		piety_cost = {
			if = {
				limit = { has_doctrine = temple_authority_rabbinic_doctrine }
				value = 0
			}
			else_if = {
				limit = { has_doctrine = temple_authority_samaritan_torah_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_low
			}
		}
		character_modifier = {
			clergy_opinion = 5
			church_holding_build_gold_cost = -0.1
		}
		parameters = {
			hostility_override_temple_authority_rabbinic_doctrine = 1
			hostility_override_temple_authority_samaritan_torah_doctrine = 3
		}
	}
	
	temple_authority_toric_doctrine = { # Rabbis are meant to interpret the literal meaning of the Torah
		piety_cost = {
			if = {
				limit = { has_doctrine = temple_authority_toric_doctrine }
				value = 0
			}
			else_if = {
				limit = { has_doctrine = temple_authority_samaritan_torah_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_low
			}
		}
		traits = {
			virtues = { scholar }
		}
		character_modifier = {
			artifact_decay_reduction_mult = -0.1
		}
		parameters = {
			hostility_override_temple_authority_toric_doctrine = 1
			hostility_override_temple_authority_samaritan_torah_doctrine = 3
		}
	}
	
	temple_authority_kohanim_doctrine = { # Belief that the Halakha is to be interpreted by the Kohen
		piety_cost = {
			if = {
				limit = { has_doctrine = temple_authority_kohanim_doctrine }
				value = 0
			}
			else_if = {
				limit = { has_doctrine = temple_authority_samaritan_torah_doctrine }
				value = faith_tenet_cost_mid
			}
			else = {
				value = faith_tenet_cost_low
			}
		}
		character_modifier = {
			opinion_of_same_culture = 5
		}
		parameters = {
			hostility_override_temple_authority_kohanim_doctrine = 1
			hostility_override_temple_authority_samaritan_torah_doctrine = 3
		}
	}

	temple_authority_samaritan_torah_doctrine = { # Belief in the Samaritan Torah
		piety_cost = {
			if = {
				limit = { has_doctrine = temple_authority_samaritan_torah_doctrine }
				value = 0
			}
			else = {
				value = faith_tenet_cost_mid
			}
		}
		parameters = {
			hostility_override_temple_authority_samaritan_torah_doctrine = 0
			hostility_override_temple_authority_rabbinic_doctrine = 3
			hostility_override_temple_authority_toric_doctrine = 3
			hostility_override_temple_authority_kohanim_doctrine = 3
		}
		character_modifier = {
			different_faith_opinion = -10
			same_faith_opinion = 10
			domain_tax_same_faith_mult = 0.05
			levy_reinforcement_rate_same_faith = 0.1
		}
	}
}