# Used in definition order

austmen = {
	trigger = {
	OR = {
			capital_county = {
				title:k_ireland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
		}
	}
	hybrid = yes
}
saharan = {
	trigger = {
	OR = {
			capital_county = {
				title:k_sahara = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
		}
	}
	hybrid = yes
}
burgundy = {
	trigger = {
		OR = {
			capital_county = {
				title:k_burgundy = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
piemont = {
	trigger = {
		OR = {
			capital_county = {
				title:k_burgundy = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

alsatian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_alsace

			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

srilankan = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = { has_cultural_pillar = heritage_dravidian }
					scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				}
				OR = {
					scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
					scope:other_culture = { has_cultural_pillar = heritage_dravidian }
				}
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
				title_province = {
				OR = {
					duchy = title:d_sinhala
					duchy = title:d_dakhina_desa
					duchy = title:d_ruhunu
				}
			}		
		}
	}
	hybrid = yes
}

deccan = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = { has_cultural_pillar = heritage_dravidian }
					scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				}
				OR = {
					scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
					scope:other_culture = { has_cultural_pillar = heritage_dravidian }
				}
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:e_deccan = {
				is_de_jure_liege_or_above_target = prev
			}	
		}
	}
	hybrid = yes
}
andhran = {
	trigger = {
	OR = {
			capital_county = {
				title:k_andhra = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_orissa = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
vijayanagara = {
	trigger = {
	OR = {
			capital_county = {
				title:k_karnata = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_tamilakam = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
karnatan = {
	trigger = {
	OR = {
			capital_county = {
				title:k_karnata = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_telingana = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
gondwanan = {
	trigger = {
	OR = {
			capital_county = {
				title:k_gondwana = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_malwa = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
biharn = {
	trigger = {
	OR = {
			capital_county = {
				title:k_bihar = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_kosala = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
khakassian = {
	trigger = {
	OR = {
			capital_county = {
				title:k_tuva = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_khakassia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
judaea = {
	trigger = {
		scope:culture = { has_cultural_pillar = heritage_byzantine }
		scope:other_culture = { has_cultural_pillar = heritage_arabic }
		any_sub_realm_county = {
			title_province = { geographical_region = ghw_region_jerusalem  }
		}
	}
	hybrid = yes
}
syrian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
		}
		OR = {
			capital_county = {
				title:k_syria = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			primary_title = title:k_syria
		}
		any_sub_realm_county = {
			title:k_syria = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}

rhineish = {
	trigger = {
		OR = {
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
		}
		capital_county = {
			title_province = { geographical_region = custom_rhineland }
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title_province = {
				geographical_region = custom_rhineland
			}
		}
	}
	hybrid = yes
}
sachsen = {
	trigger = {
		OR = {
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		capital_county = {
			title_province = { geographical_region = ghw_region_saxony }
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title_province = {
				geographical_region = ghw_region_saxony
			}
		}
	}
	hybrid = yes
}
francisch = {
	trigger = {
		OR = {
			
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		capital_county = {
			title_province = { geographical_region = ghw_region_germany  }
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title_province = {
				geographical_region = ghw_region_germany
			}
		}
	}
	hybrid = yes
}


novgorodian_hybrid = {
	

	trigger = {
		OR = {
			
			capital_county = {
				title:k_novgorod = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian}
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
muscovite = {
	

	trigger = {
		OR = {
			
			capital_county = {
				title:k_opolye = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian}
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
ryzani = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_volga_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_volga_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
		}
	}
	hybrid = yes
}
astrakhan = {
	

	trigger = {
		OR = {
			capital_county = {
				title:k_bjarmaland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian}
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

turko_iranian = { #Just making sure we get a pretty name for Oghuz+Persian regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:turkish
		scope:other_culture = culture:persian
	}
	hybrid = yes
}
ottoman = {
	trigger = {
		capital_county = {
			title_province = { geographical_region = ghw_region_anatolia }
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title_province = {
				geographical_region = ghw_region_anatolia
			}
		}
		OR = {
			scope:culture = { has_cultural_pillar = heritage_mongolic }
			scope:other_culture = { has_cultural_pillar = heritage_mongolic }
		}
	}
	hybrid = yes
}
kenyan = {
	trigger = {
		OR = {
			capital_county = {
				title:k_outer_ajuraan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_damot = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
uzbeck = {
	trigger = {
		OR = {
			capital_county = {
				title:k_transoxiana = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_soghd = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = culture:tajik
				scope:other_culture = culture:karluk
			}
			AND = {
				scope:culture = culture:karluk
				scope:other_culture = culture:tajik
			
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_soghd
				duchy = title:d_merv
				duchy = title:d_badakhshan
			}			
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}
uzbecks = {
	trigger = {
	OR = {
			capital_county = {
				title:k_syr_darya = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
levkhanate = {
	trigger = {
	OR = {
			capital_county = {
				title:e_arabia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
ilkhanate = {
	trigger = {
	OR = {
			capital_county = {
				title:e_persia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:e_ilkhanate = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
khorasan = {
	trigger = {
		OR = {
			capital_county = {
				title:k_khorasan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
		}
			
		any_sub_realm_county = {
			OR = {
				duchy = title:d_nishapur
				duchy = title:d_kohestan
			}			
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}

turkmeni = {
	trigger = {

		OR = {
			AND = {
				scope:culture = culture:tajik
				scope:other_culture = culture:turkish
			}
			AND = {
				scope:culture = culture:turkish
				scope:other_culture = culture:tajik
			
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_uzboy
				duchy = title:d_gurgan
				duchy = title:d_nasa
				duchy = title:d_nishapur
				duchy = title:d_merv
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}
irani = {
	trigger = {
		OR = {
			capital_county = {
				title:k_persia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

scotland = {
	trigger = {
		OR = {
			capital_county = {
				title:k_scotland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
ireland = {
	trigger = {
		OR = {
			capital_county = {
				title:k_ireland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
hejazi = {
	trigger = {
		OR = {
			capital_county = {
				title:k_hejaz = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

koumanoi = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = culture:cuman
			}
			AND = {
				scope:culture = culture:cuman
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}		
		any_sub_realm_county = {
					
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

gothic = {
	trigger = {
		OR = {
			capital_county = {
				title:d_crimea = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		faith = { religion_tag = christianity_religion }		
		any_sub_realm_county = {
			OR = {
				duchy = title:d_crimea
			
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

circassian = {
	trigger = {
		OR = {
			capital_county = {
				title:k_caucasus = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		faith = { religion_tag = christianity_religion }		
		any_sub_realm_county = {
			OR = {
				duchy = title:d_alania
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
cossack = {
	trigger = {
		OR = {
			capital_county = {
				title:d_yedisan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_levedia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_moldova = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_kiev = {
					is_de_jure_liege_or_above_target = prev
				}
			}
					
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}			
		}
		
		any_sub_realm_county = {
			OR = {
				duchy = title:d_yedisan
				duchy = title:d_levedia
				duchy = title:d_moldova
				duchy = title:d_kiev
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
ukranian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic}
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}

	
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic}
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
		}
	}
	hybrid = yes
}
northumberland = {
	trigger = {
		OR = {
			capital_county = {
				title:d_york = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_northumberland = {
					is_de_jure_liege_or_above_target = prev
				}
			}

				
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
						
		}
		
		any_sub_realm_county = {
			OR = {
				duchy = title:d_northumberland
				duchy = title:d_york
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
dagestani = {
	trigger = {
		OR = {
			capital_county = {
				title:k_caucasus = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		faith = { religion_tag = islam_religion }
		any_sub_realm_county = {
			OR = {
				duchy = title:d_ciscaucasia 
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

crimean = {
	trigger = {
		OR = {
			capital_county = {
				title:d_crimea = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		faith = { religion_tag = islam_religion }		
		any_sub_realm_county = {
			OR = {
				duchy = title:d_crimea
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

macedonian = {
	trigger = {
		OR = {
			capital_county = {
				title:d_bulgaria = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic}
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_bulgaria
			}			
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
macedon = {
	trigger = {
		OR = {
			capital_county = {
				title:e_byzantium = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
			NOT = {
				title_province = { geographical_region = ghw_region_anatolia }
			}
		}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		any_sub_realm_county = {
						
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
albanian = {
	trigger = {
		OR = {
			capital_county = {
				title:d_dyrrachion = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_dyrrachion
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
sclaveni = {
	trigger = {
		OR = {
			capital_county = {
				title:d_philippopolis = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_turnovo = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_turnovo
				duchy = title:d_philippopolis
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

austrian_hybrid = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
		}
		OR = {
			capital_county = {
				title:d_austria = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_carinthia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_steyermark = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:d_austria
			has_primary_title = title:d_carinthia
			has_primary_title = title:d_steyermark
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_austria
				duchy = title:d_carinthia
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
osterreich = {
	trigger = {
		OR = {
			capital_county = {
				title:d_osterreich = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
gottscheerish = {
	trigger = {
		OR = {
			capital_county = {
				title:k_croatia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
slovakian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_magyar }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_magyar }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
		}
		OR = {
			capital_county = {
				title:k_hungary = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_ungvar = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_nyitra = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		
		}
		any_sub_realm_county = {
			
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

sudanese = {
	trigger = {
		OR = {
			capital_county = {
				title:k_nubia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
belarus = {
	trigger = {
		OR = {
			capital_county = {
				title:k_white_rus = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_baltic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_baltic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
lettic = {
	trigger = {
		OR = {
			capital_county = {
				title:k_lithuania = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_baltic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_baltic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
tartar = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_volga_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_volga_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
afrikaner = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
ural = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_ural
				duchy = title:d_perm
				duchy = title:d_udmurtia
				duchy = title:d_kazan
				duchy = title:d_volga_bulgaria
				duchy = title:d_ostyaki
				duchy = title:d_jalmat
				duchy = title:d_bashkiria
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}

piedmont_hybrid = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		OR = {
			capital_county = {
				title:d_savoie = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_piedmonte = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:d_savoie
			has_primary_title = title:d_piedmonte
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_piedmonte
				duchy = title:d_savoie
			}
		}
	}
	hybrid = yes
}

arpitan_hybrid = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		OR = {
			capital_county = {
				title:d_dauphine = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_savoie = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_provence = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:d_dauphine
			has_primary_title = title:d_savoie
			has_primary_title = title:d_provence
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_dauphine
				duchy = title:d_savoie
				duchy = title:d_provence
			}
		}
	}
	hybrid = yes
}

neapolitan_hybrid = {
	trigger = {
		capital_county = {
			title:k_sicily = {
				is_de_jure_liege_or_above_target = prev
			}
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_berber
				has_cultural_pillar = heritage_frankish				
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_berber
				has_cultural_pillar = heritage_frankish
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_capua
				duchy = title:d_apulia
				duchy = title:d_salerno
			}
			
		}
	}
	hybrid = yes
}
neapolitanisch = {
	trigger = {
		capital_county = {
			title:k_sicily = {
				is_de_jure_liege_or_above_target = prev
			}
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_central_germanic			
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_central_germanic
				
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_capua
				duchy = title:d_apulia
				duchy = title:d_salerno
			}
			
		}
	}
	hybrid = yes
}
siculo_norman = {
	trigger = {
		capital_county = {
			title:d_apulia = {
				is_de_jure_liege_or_above_target = prev
			}
		}
		NOT = {
				title:k_naples = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		scope:culture = culture:norman
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_berber
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
sevillan = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
		}
		OR = {
			capital_county = {
				title:k_andalusia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_badajoz = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_sevilla
				duchy = title:d_badajoz
				
			}
		}
	}
	hybrid = yes
}
porto = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
		}
		OR = {
			capital_county = {
				title:d_beja = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_coimbra = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_algarve = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_combria
				duchy = title:d_beja
				duchy = title:d_algarve
			}
		}
	}
	hybrid = yes
}
madridian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
		}
		OR = {
			capital_county = {
				title:d_toledo = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_cordoba = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_toledo
				duchy = title:d_cordoba
		}
		}
	}
	hybrid = yes
}
turko_afghan = { #Just making sure we get a pretty name for Afghan+Oghuz regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:turkish
		scope:other_culture = culture:afghan
	}
	hybrid = yes
}

mughal = {
	trigger = {
		OR = {
			capital_county = {
				title:k_kabulistan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
			title:e_rajastan = {
				is_de_jure_liege_or_above_target = prev
			}
			
		  }
		}
	OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
	
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

chagatai = {
	trigger = {
		OR = {
			capital_county = {
				title:k_khotan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_zhetysu = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_tocharian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tocharian }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
	
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tocharian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_tocharian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tocharian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_tocharian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}
granada = {
	trigger = {
		OR = {
			capital_county = {
				title:d_granada = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}


srinagar = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tibetan }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_tibetan }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				title:k_maryul = {
				is_de_jure_liege_or_above_target = prev
			}

			}		
		}
	}
	hybrid = yes
}

kachee = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tibetan }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_tibetan }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				title:e_tibet = {
				is_de_jure_liege_or_above_target = prev
			}

			}		
		}
	}
	hybrid = yes
}
amdo = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tibetan }
				scope:other_culture = { has_cultural_pillar = heritage_qiangic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_qiangic }
				scope:other_culture = { has_cultural_pillar = heritage_tibetan }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				title:k_amdo= {
				is_de_jure_liege_or_above_target = prev
			    }

			}		
		}
	}
	hybrid = yes
}

gdanski = { #Just making sure we get a pretty name for Polish+Prussian regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:polish
		scope:other_culture = culture:prussian
	}
	hybrid = yes
}

jagiellon = { #Just making sure we get a pretty name for Polish+lithuanian regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:polish
		scope:other_culture = culture:lithuanian
	}
	hybrid = yes
}

pruessen = { #Just making sure we get a pretty name for Polish+Prussian regardless of who hybridizes who. 
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:prussian
				}
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				OR = {
					scope:other_culture = culture:prussian
				}
			}
		}
		OR = {
			capital_county = {
				title:d_prussia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_masuria = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_ostmark = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_pomerelia = {
					is_de_jure_liege_or_above_target = prev
				}
			}			
			primary_title = title:d_prussia
			primary_title = title:d_masuria
			primary_title = title:d_ostmark
			primary_title = title:d_pomerelia
		}
	}
	hybrid = yes
}

jomsviking = { #Just making sure we get a pretty name for Polish+Prussian regardless of who hybridizes who. 
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_baltic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_baltic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
			any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}	
		
	}
	hybrid = yes
}

romanisch = {
	trigger = {
		capital_county = {
			NOT = {
				title:k_switzerland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
		}

	}
	hybrid = yes
}

kham = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tibetan }
				scope:other_culture = { has_cultural_pillar = heritage_qiangic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_qiangic }
				scope:other_culture = { has_cultural_pillar = heritage_tibetan }
			}
		}
		any_sub_realm_county = {
		OR = {
			capital_county = {
				title:k_kham = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_gyalrong = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}		
		}
	}
	hybrid = yes
}


kochi = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tibetan }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_tibetan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_burman }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_burman }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_vanga
				duchy = title:d_kacharia
				duchy = title:d_paro
				duchy = title:d_bumthang
				duchy = title:d_kamarupanagara
				duchy = title:d_gauda
				duchy = title:d_arakan
				duchy = title:d_nadia
				duchy = title:d_monyul
				duchy = title:d_tagaung
				duchy = title:d_lhoyul
				duchy = title:d_suhma				
			}
		}
	}
	hybrid = yes
}
mamluk = {
	trigger = {
		OR = {
			capital_county = {
				title:k_egypt = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
mamluks = {
	trigger = {
		OR = {
			capital_county = {
				title:k_jerusalem = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
tajikistani = {
	trigger = {
		OR = {
			capital_county = {
				title:k_transoxiana= {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
iraq = {
	trigger = {
		OR = {
			capital_county = {
				title:k_mesopotamia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
yazidis = {
	trigger = {
		OR = {
			capital_county = {
				title:k_jazira = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
khuzestani = {
	trigger = {
		OR = {
			capital_county = {
				title:k_persia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
vandal = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}			
		}
	}
	hybrid = yes
}
massalian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
	}
	hybrid = yes
}
tuareg = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african}
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
		}
	}
	hybrid = yes
}

shetlandic = { #Just making sure we get a pretty name for Scottish+Norwigean regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:scottish
		scope:other_culture = culture:norwegian
	}
	hybrid = yes
}
highlander = { #Just making sure we get a pretty name for Scottish+Norwigean regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:gaelic
		scope:other_culture = culture:norwegian
	}
	hybrid = yes
}
mali = {
	trigger = {
		OR = {
			capital_county = {
				title:k_mali = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_ghana = {
					is_de_jure_liege_or_above_target = prev
				}
			}

						
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}


pyrenees = {
	trigger = {
		OR = {
			capital_county = {
				title:k_aquitaine = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
romantic = {
	trigger = {
		capital_county = {
			NOT = {
				title:k_switzerland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = culture:italian
			}
			AND = {
				scope:culture = culture:italian
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}			
			
		}

	}
	hybrid = yes
}
hemshinli = {
	trigger = {
	OR = {
			AND = {
				scope:culture = culture:turkish
				scope:other_culture = culture:armenian
			}
			AND = {
				scope:culture = culture:armenian
				scope:other_culture = culture:turkish
			
			}
			
		}
		faith = { religion_tag = islam_religion }
		capital_county = {
			NOT = {
				title:d_azerbaijan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
	}
	
	hybrid = yes
}
assyrian = {
	trigger = {
	OR = {
			AND = {
				scope:culture = culture:levantine
				scope:other_culture = culture:armenian
			}
			AND = {
				scope:culture = culture:armenian
				scope:other_culture = culture:levantine
			
			}
			
		}
		
		capital_county = {
			NOT = {
				title:d_azerbaijan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
	}
	
	hybrid = yes
}
timbuktu = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = { has_cultural_pillar = heritage_sahelian }
					scope:culture = { has_cultural_pillar = heritage_berber }
				}
				OR = {
					scope:other_culture = { has_cultural_pillar = heritage_berber }
					scope:other_culture = { has_cultural_pillar = heritage_sahelian }
				}
			}
			AND = {
				OR = {
					scope:culture = { has_cultural_pillar = heritage_sahelian }
					scope:culture = { has_cultural_pillar = heritage_berber }
				}
				OR = {
					scope:other_culture = { has_cultural_pillar = heritage_berber }
					scope:other_culture = { has_cultural_pillar = heritage_sahelian }
				}
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:e_mali = {
				is_de_jure_liege_or_above_target = prev
			}	
		}
	}
	hybrid = yes
}

abyssian = {
	trigger = {
		OR = {
			capital_county = {
				title:k_abyssinia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}			
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_dawaro
				duchy = title:d_showa
				duchy = title:d_damot
				duchy = title:d_shabelle
				duchy = title:d_sennar
				duchy = title:d_baqlin
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
sokci = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_magyar }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_magyar }
			}
		}
	}
	hybrid = yes
}
halychnians = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_magyar }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_magyar }
			}
		}
	}
	hybrid = yes
}

maltese = {
	trigger = {
		OR = {
			capital_county = {
				title:c_malta = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_latin }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_latin }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}			
		}
		
	}
	hybrid = yes
}
darfur = {
	trigger = {
		OR = {
			capital_county = {
				title:k_darfur = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_berber }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_berber }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}			
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_wadai
				duchy = title:d_west_darfur
				duchy = title:d_darfur
				duchy = title:d_kordofan
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}

adal = {
	trigger = {
		OR = {
			capital_county = {
				title:k_adal = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian}
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_adal
				duchy = title:d_zaila
				duchy = title:d_sanaag
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
kong = {
	trigger = {
		OR = {
			capital_county = {
				title:k_kong = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
ghanan = {
	trigger = {
		OR = {
			capital_county = {
				title:k_gur = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
nigerian = {
	trigger = {
		OR = {
			capital_county = {
				title:k_hausaland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_igbo-benue = {
					is_de_jure_liege_or_above_target = prev
				}
			}

					
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_yoruba }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_yoruba }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_yoruba }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_yoruba }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_yoruba }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_yoruba }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_yoruba }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_yoruba }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
oyo = {
	trigger = {
		OR = {
			capital_county = {
				title:e_guinea = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
gurma = {
	trigger = {
		OR = {
			capital_county = {
				title:k_gurma = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:k_gurma
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
songhay = {
	trigger = {
		OR = {
			capital_county = {
				title:k_songhay = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:k_songhay
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian_ibl }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian_ibl }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_west_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_african }
				scope:other_culture = { has_cultural_pillar = heritage_sahelian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_sahelian }
				scope:other_culture = { has_cultural_pillar = heritage_central_african }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
xinjiang = { #Just making sure we get a pretty name for tangut and uyghur regardless of who hybridizes who.
	trigger = {
		scope:culture = culture:tocharian
		scope:other_culture = culture:uyghur
	}
	hybrid = yes
}

carolingian = {
	trigger = {
		OR = {
			
			
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		capital_county = {
			title_province = { geographical_region = world_europe_west_francia }
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title_province = {
				geographical_region = world_europe_west_francia
			}
		}
	}
	hybrid = yes
}
tingray = {
	trigger = {
		OR = {
			capital_county = {
				title:k_blemmyia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
adal = {
	trigger = {
		OR = {
			capital_county = {
				title:k_adal = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
romanian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_vlach }
				scope:other_culture = { has_cultural_pillar = heritage_south_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_south_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_vlach }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
icelandish = {
	trigger = {
		OR = {
			capital_county = {
				title:d_iceland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}			
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_iceland
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
bangladeshi = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_dravidian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_dravidian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_burman }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_burman }
			}			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			OR = {
				duchy = title:d_tosali
				duchy = title:d_kalinga
				duchy = title:d_suhma
				duchy = title:d_nadia
				duchy = title:d_vanga
				duchy = title:d_varendra
				duchy = title:d_arakan
				duchy = title:d_tagaung
				duchy = title:d_pagan
				duchy = title:d_gauda
				duchy = title:d_kamarupanaga
				duchy = title:d_suhma				
			}
		}
	}
	hybrid = yes
}
yakatrin = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_east_slavic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_slavic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}			
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_ural
				duchy = title:d_perm
				duchy = title:d_udmurtia
				duchy = title:d_kazan
				duchy = title:d_volga_bulgaria
				duchy = title:d_ostyaki
				duchy = title:d_jalmat
				duchy = title:d_bashkiria
			}
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
sibern = {
	trigger = {
	OR = {
			capital_county = {
				title:e_siberia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_cuman = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
tuva = {
	trigger = {
	OR = {
			capital_county = {
				title:e_mongolia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
uyghurs = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_chinese }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_chinese }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_tocharian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_tocharian }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
xia = {
	trigger = {
	OR = {
			capital_county = {
				title:k_xia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:k_xia
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_chinese }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_chinese }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_chinese }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_chinese }
			}
		}
	}
	hybrid = yes
}
dzungaria = {
	trigger = {
	OR = {
			capital_county = {
				title:k_dzungaria = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			has_primary_title = title:k_dzungaria
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_chinese }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_chinese }
			}
		}
	}
	hybrid = yes
}
gwyneddish = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:anglo_saxon
					scope:culture = culture:english
				}
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				OR = {
					scope:other_culture = culture:anglo_saxon
					scope:other_culture = culture:english
				}
			}
		}
		OR = {
			capital_county = {
				title:k_wales = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			primary_title = title:k_wales
		}
	}
	hybrid = yes
}
shantly = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:anglo_saxon
					scope:culture = culture:english
				}
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				OR = {
					scope:other_culture = culture:anglo_saxon
					scope:other_culture = culture:english
				}
			}
		}
		OR = {
			capital_county = {
				title:d_cornwall = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			primary_title = title:k_wales
		}
	}
	hybrid = yes
}
royalist = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:anglo_saxon
					scope:culture = culture:english
				}
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				OR = {
					scope:other_culture = culture:anglo_saxon
					scope:other_culture = culture:english
				}
			}
		}
		OR = {
			capital_county = {
				title:k_ireland = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			primary_title = title:k_ireland
		}
	}
	hybrid = yes
}
gualish = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:anglo_saxon
					scope:culture = culture:english
				}
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				OR = {
					scope:other_culture = culture:anglo_saxon
					scope:other_culture = culture:english
				}
			}
			AND = {
				OR = {
					scope:culture = culture:anglo_saxon
					scope:culture = culture:english
				}
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				OR = {
					scope:other_culture = culture:anglo_saxon
					scope:other_culture = culture:english
				}
			}			
		}
		OR = {
			capital_county = {
				title:k_england = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_hereford = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_lancaster = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_somerset = {
					is_de_jure_liege_or_above_target = prev
				}
			}	
			capital_county = {
				title:d_gloucester = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_bedford = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_northumberland = {
					is_de_jure_liege_or_above_target = prev
				}
			}			
			
		}
	}
	hybrid = yes
}
trinacria_hybrid = {
	trigger = {
		capital_county = {
			title:k_trinacria = {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_berber
				has_cultural_pillar = heritage_frankish				
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_berber
				has_cultural_pillar = heritage_frankish
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:d_sicily = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
romaioi = {
	trigger = {
		capital_county = {
			title:e_roman_empire = {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_turkic
				has_cultural_pillar = heritage_frankish				
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_turkic
				has_cultural_pillar = heritage_frankish
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:e_roman_empire = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
turkcesi = {
	trigger = {
		capital_county = {
			title:e_byzantium = {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
		scope:culture = {
			OR = {
				
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_turkic
							
			}
		}
		scope:other_culture = {
			OR = {
				
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_turkic
				
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:e_byzantium = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
paki = {
	trigger = {
		capital_county = {
			title:k_makran = {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
	OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
	
			AND = {
				scope:culture = { has_cultural_pillar = heritage_indo_aryan }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_indo_aryan }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:k_makran = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
hispania = {
	trigger = {
		capital_county = {
			title:k_valencia= {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_iberian
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_latin
				has_cultural_pillar = heritage_byzantine
				has_cultural_pillar = heritage_iberian
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:k_valencia = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
scandinavian = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_north_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_balto_finnic}
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_balto_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
	}
	hybrid = yes
}
bohemian = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:czech

				}
				scope:other_culture = { has_cultural_pillar = heritage_central_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_central_germanic }
				OR = {
					scope:other_culture = culture:czech

				}
			}
		}
	}
	hybrid = yes
}
tchequie = {
	trigger = {
		OR = {
			AND = {
				OR = {
					scope:culture = culture:czech

				}
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				OR = {
					scope:other_culture = culture:czech

				}
			}
		}
	}
	hybrid = yes
}
wallon_hybrid = {
	trigger = {
		capital_county = {
			title:d_flanders = {
				is_de_jure_liege_or_above_target = prev
			}
			
		}
		scope:culture = {
			OR = {
				has_cultural_pillar = heritage_frankish
				has_cultural_pillar = heritage_central_germanic
				has_cultural_pillar = heritage_west_germanic		
			}
		}
		scope:other_culture = {
			OR = {
				has_cultural_pillar = heritage_west_germanic
				has_cultural_pillar = heritage_central_germanic
				has_cultural_pillar = heritage_frankish
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			title:d_flanders = {
				is_de_jure_liege_or_above_target = prev
			}
		}
	}
	hybrid = yes
}
vlaemsch = {
	trigger = {
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_frankish }
				scope:other_culture = culture:dutch
			}
			AND = {
				scope:culture = culture:dutch
				scope:other_culture = { has_cultural_pillar = heritage_frankish }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
			capital_county = {
			NOT = {
				title:d_flanders = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		}
	}
	hybrid = yes
}
nogai = {
	trigger = {
	OR = {
			capital_county = {
				title:k_oghuz_il = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_kimek = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:k_cuman = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
kazani = {
	trigger = {
	OR = {
			capital_county = {
				title:k_mordvinia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:e_volga-ural = {
					is_de_jure_liege_or_above_target = prev
				}
			}
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_volga_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_volga_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_volga_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_volga_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_volga_finnic }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_volga_finnic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_mongolic }
				scope:other_culture = { has_cultural_pillar = heritage_ugro_permian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_ugro_permian }
				scope:other_culture = { has_cultural_pillar = heritage_mongolic }
			}
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
			
	hybrid = yes
}
mogadishu = {
	trigger = {
		OR = {
			capital_county = {
				title:k_ajuraan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_arabic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_arabic }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_somalian }
				scope:other_culture = { has_cultural_pillar = heritage_east_african }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_east_african }
				scope:other_culture = { has_cultural_pillar = heritage_somalian }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
bretonish = {
	trigger = {
		OR = {
			capital_county = {
				title:k_brittany = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_west_germanic }
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				scope:other_culture = { has_cultural_pillar = heritage_west_germanic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				scope:other_culture = { has_cultural_pillar = heritage_goidelic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_goidelic }
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			
		}
		any_sub_realm_county = {
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}
	hybrid = yes
}
azerbaijan = {
	trigger = {
		OR = {
			capital_county = {
				title:d_azerbaijan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_greater_armenia = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			capital_county = {
				title:d_shirvan = {
					is_de_jure_liege_or_above_target = prev
				}
			}
			
		}
		OR = {
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_turkic }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_turkic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iranian }
				scope:other_culture = { has_cultural_pillar = heritage_byzantine }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_byzantine }
				scope:other_culture = { has_cultural_pillar = heritage_iranian }
			}
		}
		any_sub_realm_county = {
			OR = {
				duchy = title:d_greater_armenia
				duchy = title:d_azerbaijan
				duchy = title:d_shirvan
			}		
			OR = {
				culture = scope:culture
				culture = scope:other_culture
			}
		}
	}	

	hybrid = yes
}
cushite = {
	trigger = {
		OR = {
			AND = {
				scope:culture = culture:egyptian
				scope:other_culture = culture:nubian
			}
			AND = {
				scope:culture = culture:nubian
				scope:other_culture = culture:egyptian
			}
		}
		
	}
	hybrid = yes
}
judios = {
	trigger = {
		OR = {
			AND = {
				OR = {
					
					scope:culture = culture:sephardi
				}
				scope:other_culture = { has_cultural_pillar = heritage_iberian }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_iberian }
				OR = {
					scope:other_culture = culture:sephardi
					
				}
			}
		}
	}
	hybrid = yes
}
viking = {
	trigger = {
		OR = {
			AND = {
				OR = {
					
					scope:culture = culture:norse
				}
				scope:other_culture = { has_cultural_pillar = heritage_brythonic }
			}
			AND = {
				scope:culture = { has_cultural_pillar = heritage_brythonic }
				OR = {
					scope:other_culture = culture:norse
					
				}
			}
		}
	}
	hybrid = yes
}