﻿DynastyCountyMaleIrish = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_holder_irish
	}
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_male_holder_irish
	}
	text = {
		localization_key = count_male_non_holder_irish
		fallback = yes
	}
}
CountMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_male_gael_norse
	}
	text = {
		localization_key = count_default_male_irish
		fallback = yes
	}
}
EarlMaleIrish = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = earl_male_gael_norse
	}
	text = {
		localization_key = earl_male_irish
		fallback = yes
	}
}
DynastyCountyFemaleIrish = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_holder_irish
	}
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_female_holder_irish
	}
	text = {
		localization_key = count_female_non_holder_irish
		fallback = yes
	}
}
CountFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_irish
		fallback = yes
	}
}
EarlFemaleIrish = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = earl_female_gael_norse
	}
	text = {
		localization_key = earl_female_irish
		fallback = yes
	}
}
CountyIrish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = county_default_irish
		fallback = yes
	}
}
DynastyCountyMaleGaelic = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_holder_irish
	}
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_male_holder_gaelic
	}
	text = {
		localization_key = count_male_non_holder_gaelic
		fallback = yes
	}
}
CountMaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_male_gael_norse
	}
	text = {
		localization_key = count_default_male_gaelic
		fallback = yes
	}
}
DynastyCountyFemaleGaelic = {
	type = character
	text = {
		trigger = {
			is_ruler = yes
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_holder_irish
	}
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_non_holder_irish
	}
	text = {
		trigger = {
			is_ruler = yes
		}
		localization_key = count_female_holder_gaelic
	}
	text = {
		localization_key = count_female_non_holder_gaelic
		fallback = yes
	}
}
CountFemaleGaelic = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_gaelic
		fallback = yes
	}
}
CountFemaleGaelicHolder = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_female_gael_norse
	}
	text = {
		localization_key = count_default_female_gaelic_holder
		fallback = yes
	}
}
CountyGaelic = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_irish
	}
	text = {
		localization_key = county_default_gaelic
		fallback = yes
	}
}
CountMaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_english_independent
	}
	text = {
		localization_key = count_default_male_english
		fallback = yes
	}
}
CountFemaleEnglish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_english_independent
	}
	text = {
		localization_key = count_default_female_english
		fallback = yes
	}
}
CountyEnglish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_english
	}
	text = {
		localization_key = county_default_english
		fallback = yes
	}
}
CountMaleAnglo = {
	type = character
	text = {
		trigger = {
			culture = { any_parent_culture_or_above = { has_cultural_pillar = heritage_north_germanic } }
		}
		localization_key = count_feudalclan_male_anglo_norse
	}
	text = {
		localization_key = count_feudalclan_male_anglo_saxon
		fallback = yes
	}
}
CountMaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_scottish_independent
	}
	text = {
		localization_key = count_default_male_scottish
		fallback = yes
	}
}
CountFemaleScottish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_english
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_scottish_independent
	}
	text = {
		localization_key = count_default_female_scottish
		fallback = yes
	}
}
CountyScottish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_english_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_scottish
	}
	text = {
		localization_key = county_default_scottish
		fallback = yes
	}
}
CountMalePictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = count_default_male_pictish
	}
	text = {
		localization_key = count_default_male_cumbrian
		fallback = yes
	}
}
CountFemalePictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = count_default_female_pictish
	}
	text = {
		localization_key = count_default_female_cumbrian
		fallback = yes
	}
}
CountyPictishCumbrian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_pictish_cumbrian
	}
	text = {
		trigger = {
			root.culture = culture:pictish
		}
		localization_key = county_default_pictish
	}
	text = {
		localization_key = county_default_cumbrian
		fallback = yes
	}
}
CountMaleWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_welsh
	}
	text = {
		localization_key = count_default_male_welsh
		fallback = yes
	}
}
CountFemaleWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_welsh
	}
	text = {
		localization_key = count_default_female_welsh
		fallback = yes
	}
}
CountyWelsh = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_welsh
	}
	text = {
		localization_key = county_default_welsh
		fallback = yes
	}
}
CountMaleCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_male_cornish
	}
	text = {
		localization_key = count_default_male_cornish
		fallback = yes
	}
}
CountFemaleCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earl_female_cornish
	}
	text = {
		localization_key = count_default_female_cornish
		fallback = yes
	}
}
CountyCornish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = earldom_cornish
	}
	text = {
		localization_key = county_default_cornish
		fallback = yes
	}
}
CountMaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:c_viennois
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:c_viennois
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_male_french
	}
	text = {
		localization_key = count_default_male_french
		fallback = yes
	}
}
CountFemaleFrench = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_french
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_french_independent
	}
	text = {
		trigger = {
			OR = {
				has_primary_title = title:c_viennois
				AND = {
					exists = primary_spouse
					primary_spouse = {
						has_primary_title = title:c_viennois
					}
				}
			}
			OR = {
				AND = {
					exists = father
					father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = mother
					mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.father
					primary_spouse.father = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
				AND = {
					exists = primary_spouse.mother
					primary_spouse.mother = {
						highest_held_title_tier >= tier_kingdom
						primary_heir = root
					}
				}
			}
		}
		localization_key = dolphin_female_french
	}
	text = {
		localization_key = count_default_female_french
		fallback = yes
	}
}
CountyFrench = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_french_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_french
	}
	text = {
		localization_key = county_default_french
		fallback = yes
	}
}
CountMaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_norman_independent
	}
	text = {
		localization_key = count_default_male_norman
		fallback = yes
	}
}
CountFemaleNorman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_norman
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_norman_independent
	}
	text = {
		localization_key = count_default_female_norman
		fallback = yes
	}
}
CountyNorman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_norman_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_norman
	}
	text = {
		localization_key = county_default_norman
		fallback = yes
	}
}
CountMaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_occitan_independent
	}
	text = {
		localization_key = count_default_male_occitan
		fallback = yes
	}
}
CountFemaleOccitan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_occitan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_occitan_independent
	}
	text = {
		localization_key = count_default_female_occitan
		fallback = yes
	}
}
CountyOccitan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_occitan_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_occitan
	}
	text = {
		localization_key = county_default_occitan
		fallback = yes
	}
}
CountMaleCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_castilian_independent
	}
	text = {
		localization_key = count_default_male_castilian
		fallback = yes
	}
}
CountFemaleCastillian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_castillian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_castilian_independent
	}
	text = {
		localization_key = count_default_female_castilian
		fallback = yes
	}
}
CountyCastillian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_castilian_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_castilian
	}
	text = {
		localization_key = county_default_castillian
		fallback = yes
	}
}
CountMaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_catalan_independent
	}
	text = {
		localization_key = count_default_male_catalan
		fallback = yes
	}
}
CountFemaleCatalan = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_catalan
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_catalan_independent
	}
	text = {
		localization_key = count_default_female_catalan
		fallback = yes
	}
}
CountyCatalan = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_catalan_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_catalan
	}
	text = {
		localization_key = county_default_catalan
		fallback = yes
	}
}
CountMalePort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_portugese_independent
	}
	text = {
		localization_key = count_default_male_portugese
		fallback = yes
	}
}
CountFemalePort = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_portugese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_portugese_independent
	}
	text = {
		localization_key = count_default_female_portugese
		fallback = yes
	}
}
CountyPort = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_portugese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_portugese
	}
	text = {
		localization_key = county_default_portugese
		fallback = yes
	}
}
CountMaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_asturleonese_independent
	}
	text = {
		localization_key = count_default_male_asturleonese
		fallback = yes
	}
}
CountFemaleAsturleonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_asturleonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_asturleonese_independent
	}
	text = {
		localization_key = count_default_female_asturleonese
		fallback = yes
	}
}
CountyAsturleonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_asturleonese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_asturleonese
	}
	text = {
		localization_key = county_default_asturleonese
		fallback = yes
	}
}
CountMaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_aragonese_independent
	}
	text = {
		localization_key = count_default_male_aragonese
		fallback = yes
	}
}
CountFemaleAragonese = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_aragonese
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_aragonese_independent
	}
	text = {
		localization_key = count_default_female_aragonese
		fallback = yes
	}
}
CountyAragonese = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_male
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_aragonese_female
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_aragonese
	}
	text = {
		localization_key = county_default_aragonese
		fallback = yes
	}
}
CountyNorth = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_norse_norwegian
	}
	text = {
		localization_key = county_default_norse_norwegian
		fallback = yes
	}
}
CountMaleNorse = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_male_norse_norwegian
	}
	text = {
		localization_key = count_default_male_norse_norwegian
		fallback = yes
	}
}
CountFemaleNorse = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_female_norse_norwegian
	}
	text = {
		localization_key = count_default_female_norse_norwegian
		fallback = yes
	}
}
CountySwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duchy_swedish_danish
	}
	text = {
		localization_key = county_default_swedish_danish
		fallback = yes
	}
}
CountMaleSwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_male_swedish_danish
	}
	text = {
		localization_key = count_default_male_swedish_danish
		fallback = yes
	}
}
CountFemaleSwedish = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				culture = {
					has_cultural_pillar = heritage_west_germanic
				}
				OR = {
					has_primary_title = title:e_britannia
					has_primary_title = title:k_england
					has_primary_title = title:k_scotland
				}
			}
		}
		localization_key = duke_female_swedish_danish
	}
	text = {
		localization_key = count_default_female_swedish_danish
		fallback = yes
	}
}
CountMaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_estonian_independent
	}
	text = {
		localization_key = count_default_male_estonian
		fallback = yes
	}
}
CountFemaleEstonian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_estonian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_estonian_independent
	}
	text = {
		localization_key = count_default_female_estonian
		fallback = yes
	}
}
CountyEstonian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_estonian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_estonian
	}
	text = {
		localization_key = county_default_estonian
		fallback = yes
	}
}
FreeMayorMaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_saxon
	}
	text = {
		localization_key = count_republic_default_male_saxon
		fallback = yes
	}
}
FreeMayorFemaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_saxon
	}
	text = {
		localization_key = count_republic_default_female_saxon
		fallback = yes
	}
}
FreeCitySaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_saxon
	}
	text = {
		localization_key = county_republic_default_saxon
		fallback = yes
	}
}
CountMaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_saxon
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_saxon_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_saxon_independent
	}
	text = {
		localization_key = count_default_male_saxon
		fallback = yes
	}
}
CountFemaleSaxon = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_saxon
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_saxon_independent
	}
	text = {
		localization_key = count_default_female_saxon
		fallback = yes
	}
}
CountySaxon = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_saxon
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_saxon
	}
	text = {
		localization_key = county_default_saxon
		fallback = yes
	}
}
FreeMayorMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_middle_high_german
	}
	text = {
		localization_key = count_republic_default_male_middle_high_german
		fallback = yes
	}
}
FreeMayorFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_middle_high_german
	}
	text = {
		localization_key = count_republic_default_female_middle_high_german
		fallback = yes
	}
}
FreeCityMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_middle_high_german
	}
	text = {
		localization_key = county_republic_default_middle_high_german
		fallback = yes
	}
}
CountMaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_middle_high_german
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_middle_high_german_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_middle_high_german_independent
	}
	text = {
		localization_key = count_default_male_middle_high_german
		fallback = yes
	}
}
CountFemaleMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_middle_high_german
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_middle_high_german_independent
	}
	text = {
		localization_key = count_default_female_middle_high_german
		fallback = yes
	}
}
CountyMiddleHighGerman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_middle_high_german
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_middle_high_german
	}
	text = {
		localization_key = county_default_middle_high_german
		fallback = yes
	}
}
FreeMayorDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_dutch
	}
	text = {
		localization_key = count_republic_default_dutch
		fallback = yes
	}
}
FreeMayorFemaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_dutch
	}
	text = {
		localization_key = count_republic_default_dutch
		fallback = yes
	}
}
FreeCityDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_dutch
	}
	text = {
		localization_key = county_republic_default_dutch
		fallback = yes
	}
}
CountMaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_dutch
	}
	text = {
		localization_key = count_default_male_dutch
		fallback = yes
	}
}
CountFemaleDutch = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_dutch
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_dutch
	}
	text = {
		localization_key = count_default_female_dutch
		fallback = yes
	}
}
CountyDutch = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_dutch
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_dutch
	}
	text = {
		localization_key = county_default_dutch
		fallback = yes
	}
}
CountMaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_greek
	}
	text = {
		localization_key = count_default_male_greek
		fallback = yes
	}
}
CountFemaleGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_greek
	}
	text = {
		localization_key = count_default_female_greek
		fallback = yes
	}
}
CountyGreek = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_greek
	}
	text = {
		localization_key = county_default_greek
		fallback = yes
	}
}
CountMaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_italian_independent
	}
	text = {
		localization_key = count_default_male_italian
		fallback = yes
	}
}
CountFemaleItalian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_italian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_italian_independent
	}
	text = {
		localization_key = count_default_female_italian
		fallback = yes
	}
}
CountyItalian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_italian
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_italian
	}
	text = {
		localization_key = county_default_italian
		fallback = yes
	}
}
CountMaleRoman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_male
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_count_male
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_roman_independent
	}
	text = {
		localization_key = count_default_male_roman
		fallback = yes
	}
}
CountFemaleRoman = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_female
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_count_female
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_roman_independent
	}
	text = {
		localization_key = count_default_female_roman
		fallback = yes
	}
}
CountyRoman = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_mas
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = very_shameful_roman_fem
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = surpreme_roman_county
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_roman
	}
	text = {
		localization_key = county_default_roman
		fallback = yes
	}
}
CountMaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_cisalpine_independent
	}
	text = {
		localization_key = count_default_male_cisalpine
		fallback = yes
	}
}
CountFemaleCisalpine = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_cisalpine
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_italian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_cisalpine_independent
	}
	text = {
		localization_key = count_default_female_cisalpine
		fallback = yes
	}
}
CountyCisalpine = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			is_independent_ruler = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_cisalpine
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_cisalpine
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_italian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_cisalpine
	}
	text = {
		localization_key = county_default_cisalpine
		fallback = yes
	}
}
CountMaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_sardinian_independent
	}
	text = {
		trigger = {
			root.top_liege ?= {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_sardinian_independent
	}
	text = {
		localization_key = count_default_male_sardinian
		fallback = yes
	}
}
CountFemaleSardinian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sardinian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_sardinian_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_sardinian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_sardinian_independent
	}
	text = {
		localization_key = count_default_female_sardinian
		fallback = yes
	}
}
CountySardinian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sardinian
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_sardinian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sardinian
	}
	text = {
		localization_key = county_default_sardinian
		fallback = yes
	}
}
CountMaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_sicilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_sicilian_independent
	}
	text = {
		localization_key = count_default_male_sicilian
		fallback = yes
	}
}
CountFemaleSicilian = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_sicilian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_sicilian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_sicilian_independent
	}
	text = {
		localization_key = count_default_female_sicilian
		fallback = yes
	}
}
CountySicilian = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_sicilian
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_sicilian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_sicilian
	}
	text = {
		localization_key = county_default_sicilian
		fallback = yes
	}
}
CountMaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_male_lombard_independent
	}
	text = {
		localization_key = count_default_male_lombard
		fallback = yes
	}
}
CountFemaleLombard = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_lombard
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_lombard
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_female_lombard_independent
	}
	text = {
		localization_key = count_default_female_lombard
		fallback = yes
	}
}
CountyLombard = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = yes
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_male_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			is_male = no
			exists = liege
			is_independent_ruler = no
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_female_lombard
	}
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_lombard
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_lombard
	}
	text = {
		localization_key = county_default_lombard
		fallback = yes
	}
}
CountMaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_croatian
	}
	text = {
		localization_key = count_default_male_croatian
		fallback = yes
	}
}
CountFemaleCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_croatian
	}
	text = {
		localization_key = count_default_female_croatian
		fallback = yes
	}
}
CountyCroatian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_croatian
	}
	text = {
		localization_key = county_default_croatian
		fallback = yes
	}
}
CountMaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_serbian
	}
	text = {
		localization_key = count_default_male_serbian
		fallback = yes
	}
}
CountFemaleSerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_serbian
	}
	text = {
		localization_key = count_default_female_serbian
		fallback = yes
	}
}
CountySerbian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_serbian
	}
	text = {
		localization_key = county_default_serbian
		fallback = yes
	}
}
CountMaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_male_bulgarian
	}
	text = {
		localization_key = count_default_male_bulgarian
		fallback = yes
	}
}
CountFemaleBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_count_female_bulgarian
	}
	text = {
		localization_key = count_default_female_bulgarian
		fallback = yes
	}
}
CountyBulgarian = {
	type = character
	text = {
		trigger = {
			root.top_liege = {
				OR = {
					has_primary_title = title:e_byzantium
					has_primary_title = title:e_roman_empire
				}
			}
		}
		localization_key = byzantine_county_bulgarian
	}
	text = {
		localization_key = county_default_bulgarian
		fallback = yes
	}
}
CountMaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_male_czech
	}
	text = {
		localization_key = count_default_male_czech
		fallback = yes
	}
}
CountFemaleCzech = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_czech
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = furst_female_czech
	}
	text = {
		localization_key = count_default_female_czech
		fallback = yes
	}
}
CountyCzech = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_czech
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = furstdom_czech
	}
	text = {
		localization_key = county_default_czech
		fallback = yes
	}
}
CountMalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_male_polish
	}
	text = {
		localization_key = count_default_male_polish
		fallback = yes
	}
}
CountFemalePolish = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_polish
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_default_female_polish
	}
	text = {
		localization_key = count_default_female_polish
		fallback = yes
	}
}
CountyPolish = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = duchy_default_polish
	}
	text = {
		localization_key = county_default_polish
		fallback = yes
	}
}
CountMaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_male_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_slovien_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_male_slovien_independent
	}
	text = {
		localization_key = count_default_male_slovien
		fallback = yes
	}
}
CountFemaleSlovien = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_female_slovien
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_slovien_independent
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = duke_feudalclan_female_slovien_independent
	}
	text = {
		localization_key = count_default_female_slovien
		fallback = yes
	}
}
CountySlovien = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_slovien
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = independent_duchy_slovien
	}
	text = {
		localization_key = county_default_slovien
		fallback = yes
	}
}
FreeMayorMaleMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_mogyer
	}
	text = {
		localization_key = count_republic_default_male_mogyer
		fallback = yes
	}
}
FreeMayorFemaleMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_mogyer
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_mogyer
	}
	text = {
		localization_key = count_republic_default_female_mogyer
		fallback = yes
	}
}
FreeCityMogyer = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_mogyer
	}
	text = {
		localization_key = county_republic_default_mogyer
		fallback = yes
	}
}
FreeMayorMaleHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_male_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_male_hungarian
	}
	text = {
		localization_key = count_republic_default_male_hungarian
		fallback = yes
	}
}
FreeMayorFemaleHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judge_hung
	}
	text = {
		trigger = {
			exists = primary_spouse
			primary_spouse = {
				highest_held_title_tier = tier_county
				OR = {
					has_primary_title = title:c_cagliari
					has_primary_title = title:c_arborea
					has_primary_title = title:c_gallura
					has_primary_title = title:c_logudoro
				}
			}
		}
		localization_key = ctp_blank
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_government = republic_government
			}
		}
		localization_key = perfecto_female_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_mayor_female_hungarian
	}
	text = {
		localization_key = count_republic_default_female_hungarian
		fallback = yes
	}
}
FreeCityHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			OR = {
				has_primary_title = title:c_cagliari
				has_primary_title = title:c_arborea
				has_primary_title = title:c_gallura
				has_primary_title = title:c_logudoro
			}
		}
		localization_key = judgedom_hung
	}
	text = {
		trigger = {
			exists = liege
			root.liege = {
				has_primary_title = title:e_hre
			}
		}
		localization_key = free_city_hungarian
	}
	text = {
		localization_key = county_republic_default_hungarian
		fallback = yes
	}
}
CountMaleHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		trigger = {
			OR = {
				AND = {
					exists = liege
					liege.primary_title = {
						has_title_law = princely_elective_succession_law
					}
					OR = {
						AND = {
							has_realm_law = crown_authority_1
							liege = {
								NOR = {
									has_realm_law = crown_authority_1
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_2
							liege = {
								NOR = {
									has_realm_law = crown_authority_2
									has_realm_law = crown_authority_3
								}
							}
						}
						AND = {
							has_realm_law = crown_authority_3
							liege = {
								NOT = {
									has_realm_law = crown_authority_3
								}
							}
						}
					}
				}
				AND = {
					exists = primary_spouse
					root.primary_spouse = {
						exists = liege
						liege.primary_title = {
							has_title_law = princely_elective_succession_law
						}
						OR = {
							AND = {
								has_realm_law = crown_authority_1
								liege = {
									NOR = {
										has_realm_law = crown_authority_1
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_2
								liege = {
									NOR = {
										has_realm_law = crown_authority_2
										has_realm_law = crown_authority_3
									}
								}
							}
							AND = {
								has_realm_law = crown_authority_3
								liege = {
									NOT = {
										has_realm_law = crown_authority_3
									}
								}
							}
						}
					}
				}
			}
		}
		localization_key = title_prince_male_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_male_hungarian_independent
	}
	text = {
		localization_key = count_default_male_hungarian
		fallback = yes
	}
}
CountFemaleHung = {
	type = character
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
					any_elector = {
						this = root.primary_spouse
					}
				}
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = primary_spouse
			root.primary_spouse = {
				exists = liege
				liege.primary_title = {
					has_title_law = princely_elective_succession_law
				}
				OR = {
					AND = {
						has_realm_law = crown_authority_1
						liege = {
							NOR = {
								has_realm_law = crown_authority_1
								has_realm_law = crown_authority_2
								has_realm_law = crown_authority_3
							}
						}
					}
					AND = {
						has_realm_law = crown_authority_2
						liege = {
							NOR = {
								has_realm_law = crown_authority_2
								has_realm_law = crown_authority_3
							}
						}
					}
					AND = {
						has_realm_law = crown_authority_3
						liege = {
							NOT = {
								has_realm_law = crown_authority_3
							}
						}
					}
				}
			}
		}
		localization_key = hre_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_male_hungarian_independent
	}
	text = {
		localization_key = count_default_female_hungarian
		fallback = yes
	}
}
CountFemaleHolderHung = {
	type = character
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurst_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = title_prince_female_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = count_feudalclan_female_holder_hungarian_independent
	}
	text = {
		localization_key = count_default_male_hungarian
		fallback = yes
	}
}
CountyHung = {
	type = character
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
				any_elector = {
					this = root
				}
			}
		}
		localization_key = kurfurstdom_hungarian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_county
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
			OR = {
				AND = {
					has_realm_law = crown_authority_1
					liege = {
						NOR = {
							has_realm_law = crown_authority_1
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_2
					liege = {
						NOR = {
							has_realm_law = crown_authority_2
							has_realm_law = crown_authority_3
						}
					}
				}
				AND = {
					has_realm_law = crown_authority_3
					liege = {
						NOT = {
							has_realm_law = crown_authority_3
						}
					}
				}
			}
		}
		localization_key = hre_princedom_hungarian
	}
	text = {
		trigger = {
			exists = liege
			liege.primary_title = {
				has_title_law = princely_elective_succession_law
			}
		}
		localization_key = independent_county_hung
	}
	text = {
		localization_key = county_default_hungarian
		fallback = yes
	}
}
CountMaleGreekAdmin = {
	type = character
	text = {
		trigger = {
			liege ?= {
				vassal_contract_has_flag = admin_theme_naval
			}
		}
		localization_key = Count_naval_greek
	}
	text = {
		trigger = {
			liege ?= {
				OR = {
					vassal_contract_has_flag = admin_theme_military
					vassal_contract_has_flag = admin_theme_frontier
				}
			}
		}
		localization_key = count_default_male_greek
	}
	text = {
		localization_key = byzantine_count_male_greek
		fallback = yes
	}
}
CountFemaleGreekAdmin = {
	type = character
	text = {
		trigger = {
			liege ?= {
				vassal_contract_has_flag = admin_theme_naval
			}
		}
		localization_key = Countess_naval_greek
	}
	text = {
		trigger = {
			liege ?= {
				OR = {
					vassal_contract_has_flag = admin_theme_military
					vassal_contract_has_flag = admin_theme_frontier
				}
			}
		}
		localization_key = count_default_female_greek
	}
	text = {
		localization_key = byzantine_count_female_greek
		fallback = yes
	}
}
CountyGreekAdmin = {
	type = character
	text = {
		trigger = {
			liege ?= {
				OR = {
					vassal_contract_has_flag = admin_theme_military
					vassal_contract_has_flag = admin_theme_frontier
					vassal_contract_has_flag = admin_theme_naval
				}
			}
		}
		localization_key = county_default_greek
	}
	text = {
		localization_key = byzantine_county_greek
		fallback = yes
	}
}