e_baltic = {
    color = { 90 10 0 }

    capital = c_konigsberg

	k_lithuania = {
		color = { 90 10 0 }

		capital = c_kernave # Kernave

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:lithuanian
				}
				add = @correct_culture_primary_score
			}
		}

		d_lithuanians = {
			color = { 81 0 0 }

			capital = c_kernave # Kernave

			c_kernave = {
				color = { 140 28 28 }

				b_kernave = {
					province = 154

					color = { 140 28 28 }
				}
				b_vilnius = {
					province = 155

					color = { 140 28 28 }
				}
				b_vilkmerge = {
					province = 149

					color = { 140 28 28 }
				}
				b_utena = {
					province = 151

					color = { 90 10 10 }
				}
			}
			c_trakai = {
				color = { 100 28 28 }

				b_trakai = {
					province = 153

					color = { 100 28 28 }
				}
				b_kaunas = {
					province = 130

					color = { 100 28 28 }
				}
				b_merkine = {
					province = 160

					color = { 100 28 28 }
				}
				b_aliten = {
					province = 162

					color = { 100 28 28 }
				}
				b_valkininkai = {
					province = 159

					color = { 100 28 28 }
				}
			}
			c_yatvyagi = {
				color = { 115 45 45 }

				b_panemune = {
					province = 156

					color = { 115 45 45 }
				}
				b_vilkaviskis = {
					province = 158

					color = { 115 45 45 }
				}
				b_suvalkai = {
					province = 157

					color = { 115 45 45 }
				}
				b_sejny = {
					province = 163

					color = { 115 45 45 }
				}
			}
		}

		d_samogitia = {
			color = { 150 70 70 }

			capital = c_raseiniai # Samogitia

			c_raseiniai = { # Samogitia
				color = { 166 81 81 }

				b_raseiniai = {
					province = 124

					color = { 166 81 81 }

					cultural_names = {
						name_list_franconian = cn_raseinen
						name_list_saxon = cn_raseinen
						name_list_swabian = cn_raseinen
						name_list_bavarian = cn_raseinen
						name_list_swedish = cn_raseinen
						name_list_norse = cn_raseinen
						name_list_danish = cn_raseinen
						name_list_norwegian = cn_raseinen
					}
				}
				b_jurbarkas = {
					province = 123

					color = { 166 81 81 }

					cultural_names = {
						name_list_franconian = cn_georgenburg
						name_list_saxon = cn_georgenburg
						name_list_swabian = cn_georgenburg
						name_list_bavarian = cn_georgenburg
						name_list_swedish = cn_georgsborg
						name_list_norse = cn_georgsborg
						name_list_danish = cn_georgsborg
						name_list_norwegian = cn_georgsborg
					}
				}
				b_veliuona = {
					province = 129

					color = { 166 81 81 }
				}
				b_kedainiai = {
					province = 131

					color = { 166 81 81 }
				}
			}

			c_scalovia = {
				color = { 190 85 85 }

				b_ragnit = {
					province = 120

					color = { 190 85 85 }

					cultural_names = {
						name_list_pommeranian = cn_ragneta
						name_list_polish = cn_ragneta
						name_list_czech = cn_ragneta
						name_list_russian = cn_ragneta
						name_list_prussian = cn_ragnita
						name_list_lithuanian = cn_ragaine
						name_list_latgalian = cn_ragaine
					}
				}
				b_tilsit = {
					province = 119

					color = { 190 85 85 }
				}
			}
			c_memel = {
				color = { 166 85 85 }

				b_memel = {
					province = 118

					color = { 166 85 85 }
				}
				b_taurage = {
					province = 125

					color = { 166 85 85 }
				}
			}
			c_palanga = {
				color = { 150 95 95 }

				b_palanga = {
					province = 115

					color = { 150 95 95 }
				}
				b_medeniken = {
					province = 126

					color = { 150 95 95 }
				}
				b_telsiai = {
					province = 128

					color = { 150 95 95 }
				}
			}
			c_siauliai = {
				color = { 165 105 105 }

				b_siauliai = {
					province = 127

					color = { 165 105 105 }
				}
				b_upyte = {
					province = 132

					color = { 165 105 105 }
				}
				b_birzai = {
					province = 152

					color = { 165 105 105 }
				}
			}
		}
	}
	
	k_latvia = {
		color = { 110 35 35 }

		capital = c_vidzeme
		d_courland = {
			color = { 182 16 16 }

			capital = c_zemigalians # Kurzeme

			cultural_names = {
				name_list_prussian = cn_curonia
				name_list_lithuanian = cn_curonia
				name_list_latgalian = cn_curonia
				name_list_estonian = cn_curonia
				name_list_franconian = cn_kurland
				name_list_saxon = cn_kurland
				name_list_swabian = cn_kurland
				name_list_bavarian = cn_kurland
				name_list_swedish = cn_kurland
				name_list_norse = cn_kurland
				name_list_danish = cn_kurland
				name_list_norwegian = cn_kurland
			}

			c_zemigalians = {
				color = { 200 40 40 }

				cultural_names = {
					name_list_latgalian = cn_zemgale
					name_list_lithuanian = cn_ziemgala
					name_list_franconian = cn_semgallen
					name_list_saxon = cn_semgallen
					name_list_swabian = cn_semgallen
					name_list_bavarian = cn_semgallen
				}

				#b_riga = {
				#}
				#b_bauska = {
				#}
				#b_skaistkalne = {
				#}
				#b_mezotne = {
				#}
				#b_cruczeborch = {
				#}
				#b_selpils = {
				#}
				#b_remigala = {
				#}
				#b_jelgava = {
				#}
				b_uxkull = { # actually Jurmala b_jurmala
					province = 104

					color = { 125 50 50 }
				}
				b_dobele = {
					province = 106

					color = { 200 40 40 }

					cultural_names = {
						name_list_franconian = cn_dobeln
						name_list_saxon = cn_dobeln
						name_list_swabian = cn_dobeln
						name_list_bavarian = cn_dobeln
					}
				}
				b_mitau = {
					province = 107

					color = { 200 40 40 }
				}
				b_bauska = {
					province = 105

					color = { 200 40 40 }
				}
				b_neuenburg = {
					province = 121

					color = { 200 40 40 }
				}
			}
			c_vanemane = {
				color = { 182 24 24 }

				b_piltene = {
					province = 110

					color = { 182 24 24 }
				}
				b_dundaga = {
					province = 117

					color = { 182 24 24 }
				}
				b_kandava = {
					province = 112

					color = { 182 24 24 }
				}
			}
			c_grobin = {
				color = { 160 35 35 }

				b_grobin = {
					province = 114

					color = { 160 35 35 }
				}
				b_bandava = {
					province = 113

					color = { 160 35 35 }
				}
				b_duvzare = {
					province = 116

					color = { 160 35 35 }
				}
				b_ceklis = {
					province = 111

					color = { 160 35 35 }
				}
			}
			c_selpils = {
				color = { 192 14 14 }

				b_selpils = {
					province = 133

					color = { 192 14 14 }
				}
				b_oknist = {
					province = 150

					color = { 192 14 14 }
				}
			}
		}
		d_latgalians = {
			color = { 110 35 35 }

			capital = c_vidzeme
			c_vidzeme = {
				color = { 125 50 50 }

				b_riga = {
					province = 108

					color = { 200 40 40 }
				}

				b_lemisele = {
					province = 101

					color = { 125 50 50 }

					cultural_names = {
						name_list_franconian = cn_lemsal
						name_list_saxon = cn_lemsal
						name_list_swabian = cn_lemsal
						name_list_bavarian = cn_lemsal
						name_list_swedish = cn_lemsal
						name_list_norse = cn_lemsal
						name_list_danish = cn_lemsal
						name_list_norwegian = cn_lemsal
					}
				}
				b_salacgriva = {
					province = 148

					color = { 125 50 50 }

					cultural_names = {
						name_list_franconian = cn_salismunde
						name_list_saxon = cn_salismunde
						name_list_swabian = cn_salismunde
						name_list_bavarian = cn_salismunde
					}
				}
			}
			c_talava = {
				color = { 100 30 40 }

				b_valmiera = {
					province = 102

					color = { 100 35 40 }

					cultural_names = {
						name_list_franconian = cn_wolmar
						name_list_saxon = cn_wolmar
						name_list_swabian = cn_wolmar
						name_list_bavarian = cn_wolmar
					}
				}
				b_venden = {
					province = 109

					color = { 100 35 40 }

					cultural_names = {
						name_list_franconian = cn_wenden
						name_list_saxon = cn_wenden
						name_list_swabian = cn_wenden
						name_list_bavarian = cn_wenden
					}
				}
				b_rauna = {
					province = 142

					color = { 100 35 40 }

					cultural_names = {
						name_list_franconian = cn_ronneburg
						name_list_saxon = cn_ronneburg
						name_list_swabian = cn_ronneburg
						name_list_bavarian = cn_ronneburg
					}
				}
			}
			c_kokenois = {
				color = { 100 50 50 }

				cultural_names = {
					name_list_franconian = cn_kokenhusen
					name_list_saxon = cn_kokenhusen
					name_list_swabian = cn_kokenhusen
					name_list_bavarian = cn_kokenhusen
					name_list_russian = cn_kukeinos
					name_list_polish = cn_koknese
					name_list_lithuanian = cn_koknese
				}

				b_kokenois = {
					province = 103

					color = { 100 50 50 }

					cultural_names = {
						name_list_franconian = cn_kokenhusen
						name_list_saxon = cn_kokenhusen
						name_list_swabian = cn_kokenhusen
						name_list_bavarian = cn_kokenhusen
						name_list_russian = cn_kukeinos
						name_list_polish = cn_koknese
						name_list_lithuanian = cn_koknese
					}
				}
				b_cesvaine = {
					province = 139

					color = { 100 50 50 }

					cultural_names = {
						name_list_franconian = cn_sesswegen
						name_list_saxon = cn_sesswegen
						name_list_swabian = cn_sesswegen
						name_list_bavarian = cn_sesswegen
					}
				}
				b_lennewarden = {
					province = 134

					color = { 100 50 50 }
				}
			}
			c_jersika = {
				color = { 90 35 35 }

				cultural_names = {
					name_list_franconian = cn_gerzika
					name_list_saxon = cn_gerzika
					name_list_swabian = cn_gerzika
					name_list_bavarian = cn_gerzika
				}

				b_jersika = {
					province = 136

					color = { 90 35 35 }

					cultural_names = {
						name_list_franconian = cn_gerzika
						name_list_saxon = cn_gerzika
						name_list_swabian = cn_gerzika
						name_list_bavarian = cn_gerzika
					}
				}
				b_jekabpils = {
					province = 135

					color = { 90 35 35 }

					cultural_names = {
						name_list_franconian = cn_jakobstadt
						name_list_saxon = cn_jakobstadt
						name_list_swabian = cn_jakobstadt
						name_list_bavarian = cn_jakobstadt
					}
				}
				b_daugavpils = {
					province = 137

					color = { 90 35 35 }

					cultural_names = {
						name_list_franconian = cn_dunaburg
						name_list_saxon = cn_dunaburg
						name_list_swabian = cn_dunaburg
						name_list_bavarian = cn_dunaburg
					}
				}
				b_rezekne = {
					province = 138

					color = { 90 35 35 }

					cultural_names = {
						name_list_franconian = cn_rositten
						name_list_saxon = cn_rositten
						name_list_swabian = cn_rositten
						name_list_bavarian = cn_rositten
					}
				}
			}
			c_aluksne = {
				color = { 110 45 50 }

				b_aluksne = {
					province = 141

					color = { 110 45 50 }

					cultural_names = {
						name_list_franconian = cn_marienburg
						name_list_saxon = cn_marienburg
						name_list_swabian = cn_marienburg
						name_list_bavarian = cn_marienburg
					}
				}
				b_gulbene = {
					province = 140

					color = { 110 45 50 }

					cultural_names = {
						name_list_franconian = cn_schwanenburg
						name_list_saxon = cn_schwanenburg
						name_list_swabian = cn_schwanenburg
						name_list_bavarian = cn_schwanenburg
					}
				}
			}
		}
	}

	k_esthonia = {
		color = { 130 73 45 }

		capital = c_reval

		can_create = {
			trigger_if = {
				limit = {
					is_ai = yes
				}
				culture = { has_cultural_pillar = heritage_balto_finnic }
			}
		}

		ai_primary_priority = {
			if = {
				limit = {
					culture = culture:estonian
				}
				add = @correct_culture_primary_score
			}
		}

		d_esthonia = {
			color = { 150 75 75 }

			capital = c_reval # Kalevan

			c_reval = {
				color = { 160 85 85 }

				cultural_names = {
					name_list_swedish = cn_reval
					name_list_danish = cn_reval
					name_list_norwegian = cn_reval
					name_list_norse = cn_rafala
					name_list_franconian = cn_reval
					name_list_saxon = cn_reval
					name_list_swabian = cn_reval
					name_list_bavarian = cn_reval
				}

				b_reval = {
					province = 94

					color = { 160 85 85 }

					cultural_names = {
						name_list_swedish = cn_rafala
						name_list_danish = cn_rafala
						name_list_norwegian = cn_rafala
						name_list_norse = cn_rafala
						name_list_franconian = cn_reval
						name_list_saxon = cn_reval
						name_list_swabian = cn_reval
						name_list_bavarian = cn_reval
					}
				}
				b_harjumaa = {
					province = 95

					color = { 160 85 85 }
				}
				b_jarva = {
					province = 96

					color = { 160 85 85 }
				}
			}
			c_narva = {
				color = { 175 55 55 }

				cultural_names = {
					name_list_swedish = cn_narva
					name_list_danish = cn_narva
					name_list_norwegian = cn_narva
					name_list_norse = cn_narva
					name_list_franconian = cn_narva
					name_list_saxon = cn_narva
					name_list_swabian = cn_narva
					name_list_bavarian = cn_narva
				}

				b_narva = {
					province = 98

					color = { 175 55 55 }
				}
				b_wesenburg = {
					province = 97

					color = { 175 55 55 }

					cultural_names = {
						name_list_franconian = cn_wesenburg
						name_list_saxon = cn_wesenburg
						name_list_swabian = cn_wesenburg
						name_list_bavarian = cn_wesenburg
					}
				}
				b_poltsamaa = {
					province = 146

					color = { 115 5 5 }

					cultural_names = {
						name_list_estonian = cn_mohu
					}
				}
			}
			c_osel = {
				color = { 101 48 48 }

				cultural_names = {
					name_list_swedish = cn_osel
					name_list_norse = cn_osel
					name_list_danish = cn_osel
					name_list_norwegian = cn_osel
					name_list_franconian = cn_osel
					name_list_saxon = cn_osel
					name_list_swabian = cn_osel
					name_list_bavarian = cn_osel
				}

				b_kuressare = {
					province = 88

					color = { 101 48 48 }

					cultural_names = {
						name_list_swedish = cn_arensborg
						name_list_norse = cn_arensborg
						name_list_danish = cn_arensborg
						name_list_norwegian = cn_arensborg
						name_list_franconian = cn_arensburg
						name_list_saxon = cn_arensburg
						name_list_swabian = cn_arensburg
						name_list_bavarian = cn_arensburg
					}
				}
				b_maasilinna = {
					province = 89

					color = { 101 48 48 }

					cultural_names = {
						name_list_estonian = cn_poide
					}
				}
				b_muhu = {
					province = 90

					color = { 101 48 48 }

					cultural_names = {
						name_list_swedish = cn_moon
						name_list_norse = cn_moon
						name_list_danish = cn_moon
						name_list_norwegian = cn_moon
						name_list_franconian = cn_moon
						name_list_saxon = cn_moon
						name_list_swabian = cn_moon
						name_list_bavarian = cn_moon
					}
				}
				b_hiiumaa = {
					province = 91

					color = { 101 48 48 }
				}
			}
			c_wiek = {
				color = { 140 55 55 }

				cultural_names = {
					name_list_estonian = cn_laanemaa
				}

				b_hapsal = {
					province = 92

					color = { 140 55 55 }
				}
				b_leal = {
					province = 93

					color = { 140 55 55 }
				}
			}
			c_livs = {
				color = { 170 50 50 }

				b_parnu = {
					province = 99

					color = { 170 50 50 }

					cultural_names = {
						name_list_franconian = cn_pernau
						name_list_saxon = cn_pernau
						name_list_swabian = cn_pernau
						name_list_bavarian = cn_pernau
						name_list_polish = cn_parnawa
						name_list_lithuanian = cn_pernu
					}
				}
				b_viljandi = {
					province = 100

					color = { 170 50 50 }

					cultural_names = {
						name_list_franconian = cn_fellin
						name_list_saxon = cn_fellin
						name_list_swabian = cn_fellin
						name_list_bavarian = cn_fellin
					}
				}
				b_alistegunde = {
					province = 147

					color = { 170 50 50 }

					cultural_names = {
						name_list_franconian = cn_karkus
						name_list_saxon = cn_karkus
						name_list_swabian = cn_karkus
						name_list_bavarian = cn_karkus
					}
				}
			}
			c_dorpat = {
				color = { 115 5 5 }

				cultural_names = {
					name_list_norse = cn_dorpat
					name_list_swedish = cn_dorpat
					name_list_danish = cn_dorpat
					name_list_norwegian = cn_dorpat
					name_list_franconian = cn_dorpat
					name_list_saxon = cn_dorpat
					name_list_swabian = cn_dorpat
					name_list_bavarian = cn_dorpat
				}

				b_tartu = {
					province = 145

					color = { 115 5 5 }

					cultural_names = {
						name_list_norse = cn_dorpat
						name_list_swedish = cn_dorpat
						name_list_danish = cn_dorpat
						name_list_norwegian = cn_dorpat
						name_list_franconian = cn_dorpat
						name_list_saxon = cn_dorpat
						name_list_swabian = cn_dorpat
						name_list_bavarian = cn_dorpat
					}
				}
				b_vastseliina = {
					province = 143

					color = { 115 5 5 }

					cultural_names = {
						name_list_estonian = cn_voro
					}
				}
				b_valga = {
					province = 144

					color = { 115 5 5 }
				}
			}
		}

		#d_livonia = {
		#	color = { 110 50 50 }
		#
		#	capital = c_vidzeme
		#}
	}
}	