@correct_culture_primary_score = 100
@better_than_the_alternatives_score = 50
@always_primary_score = 1000
@never_primary_score = -1000



e_baltic = {
    color = { 102 10 25 }
	
	definite_form = yes

    capital = c_riga
	
	k_pribaltia = {
		color = { 30 153 91 }
		
		capital = c_konigsberg
		
		d_masuria = { # Warmia-Masuria
			color = { 160 95 105 }

			capital = c_allenstein # Olsztyn

			c_allenstein = { # Olsztyn
				color = { 155 100 130 }

				b_allenstein = { # Olsztyn
					province = 3212
					color = { 155 100 130 }
				}
				b_osterode = {	# Ostróda
					province = 3213
					color = { 165 85 85 }
				}
				b_ortelsburg = { # Szczytno
					province = 3211
					color = { 155 100 130 }
				}
				b_eylau = { # Działdowo
					province = 3214
					color = { 165 85 85 }
				}
				b_niedenburg = { # Nidzica
					province = 3215
					color = { 155 100 130 }
				}			
			}
			c_malbork = { # Elbląg
				color = { 205 105 105 }

				b_marienburg = { # Malbork
					province = 2834
					color = { 205 105 105 }
				}
				b_elblag = { # Elbląg
					province = 2835
					color = { 205 105 105 }
				}
				b_michalowo = { # Rypin
					province = 4923
					color = { 200 60 20 }
				}
				b_mohrungen = {	# Iława
					province = 3201
					color = { 255 110 155 }
				}
				b_wislana = { # Nowy Dwór Gdański
					province = 2831
					color = { 205 105 105 }
				}			
			}					

			c_angerburg = {	# Ełk
				color = { 175 85 105 }

				b_lyck = {	# Ełk
					province = 3210
					color = { 175 85 105 }
				}
				b_lotzen = { # Giżycko
					province = 3208
					color = { 175 85 105 }
				}
				b_sejny = { # Olecko
					province = 163
					color = { 115 45 45 }
				}
				b_angerburg = {	# Pisz
					province = 3209
					color = { 175 85 105 }
				}
				b_rastenburg = { # Mrągowo
					province = 3207
					color = { 230 165 165 }
				}
			}		
		}
		d_prussia = { # Kaliningrad
			color = { 245 165 158 }

			capital = c_konigsberg # Kaliningrad

			c_konigsberg = { # Kaliningrad
				color = { 200 105 130 }

				b_konigsberg = { # Kaliningrad
					province = 3216
					color = { 200 105 130 }
				}
				b_laukitten = {	# Baltiysk
					province = 3218
					color = { 225 125 125 }
				}
				b_cranz = { # Zelenogradsk
					province = 13616
					color = { 200 105 130 }
				}
				b_labiau = { # Polessk
					province = 122
					color = { 200 105 130 }
				}
			}
			c_balga = { # Gvardeisk
				color = { 210 115 120 }
				
				b_tapiau = { # Gvardeisk
					province = 13615
					color = { 200 105 130 }
				}
				b_bartenstein = { # Bartoszyce
					province = 3205
					color = { 230 165 165 }
				}
				b_braunsberg = { # Braniewo
					province = 3217
					color = { 255 110 155 }
				}
			
				b_paterswalde = { # Mamonovo
					province = 3203
					color = { 225 125 125 }
				}			
			}
			c_natangia = { # Znamensk
				color = { 225 125 125 }

				b_ostlandsberg = { # Kętrzyn
					province = 3219
					color = { 225 125 125 }
				}
				b_insterburg = { # Chernyakhovsk
					province = 3206
					color = { 230 165 165 }
				}	
				b_suvalkai = { # Gołdap
					province = 157
					color = { 115 45 45 }
				}
				b_lautenburg = { # Węgorzewo
					province = 3204
					color = { 230 165 165 }
				}
			}
			c_tilsit = {	# Sovetsk
				color = { 255 110 155 }

				b_tilsit = { # Sovetsk
					province = 119
					color = { 190 85 85 }
				}
				b_wormditt = { # Gusev
					province = 3220
					color = { 255 110 155 }
				}
				b_ragnit = { # Neman
					province = 120
					color = { 190 85 85 }
				}
				b_talpaki = { # Talpaki
					province = 13617
					color = { 230 165 165 }
				}	
			}
		}
	}

	k_lithuania = {
		color = { 153 96 22 }

		capital = c_kernave # Kernave

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

		d_vilnius = {
			color = { 191 137 38 }

			capital = c_kernave # Kernave

			c_kernave = {
				color = { 178 128 35 }

				b_vilnius = {
					province = 155

					color = { 140 28 28 }
				}
				b_kernave = {
					province = 154

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

					color = { 140 28 28 }
				}
				b_pabrade = {
					province = 13637

					color = { 90 10 10 }
				}
			}
			c_utena = {
				color = { 204 146 40 }
				
				b_utena = {
					province = 151

					color = { 90 10 10 }
				}
				b_rokiskis = {
					province = 13635

					color = { 90 10 10 }
				}
				b_ignalina = {
					province = 13636

					color = { 90 10 10 }
				}				
			}
		}
		d_kaunas = {
			color = { 165 91 16 }
			
			capital = c_kaunas
			
			c_kaunas = {
				color = { 153 84 15 }
				
				b_kaunas = {
					province = 130

					color = { 100 28 28 }
				}
				b_trakai = {
					province = 153

					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 = { 178 98 17 }
				
				b_marjiampole = {
					province = 13633

					color = { 115 45 45 }
				}
				b_panemune = {
					province = 156

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

					color = { 115 45 45 }
				}				
				b_garliava = {
					province = 13634

					color = { 115 45 45 }
				}
			}
		}
		d_samogitia = {
			color = { 140 93 70 }

			capital = c_palanga # Samogitia
			
			c_palanga = {
				color = { 127 83 63 }

				b_palanga = {
					province = 115

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

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

					color = { 150 95 95 }
				}
				b_duvzare = {
					province = 116

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

					color = { 160 35 35 }
				}
			}
			c_raseiniai = { # Samogitia
				color = { 153 100 76 }

				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_veliuona = {
					province = 129

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

					color = { 166 81 81 }
				}
				b_upyte = {
					province = 132

					color = { 165 105 105 }
				}
			}
			c_siauliai = {
				color = { 102 67 51 }

				b_siauliai = {
					province = 127

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

					color = { 165 105 105 }
				}
				b_joniskis = {
					province = 13629

					color = { 165 105 105 }
				}
				b_zagares = {
					province = 13630

					color = { 165 105 105 }
				}
			}
			c_memel = {
				color = { 178 117 89 }

				b_memel = {
					province = 118

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

					color = { 166 85 85 }
				}
				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
					}
				}
			}			
		}
	}
	
	k_latvia = {
		color = { 76 19 36 }

		capital = c_riga
		
		d_riga = {
			color = { 140 42 66 }
			
			capital = c_riga
			
			c_riga = {
				color = { 127 38 60 }
				b_riga = {
					province = 108

					color = { 200 40 40 }
				}
				b_uxkull = { # actually Jurmala b_jurmala
					province = 104

					color = { 125 50 50 }
				}						
			}	
			c_aluksne = {
				color = { 153 45 72 }

				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_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_limbazi = {
				color = { 102 30 48 }

				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_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_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
					}
				}
				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_rujiena = {
					province = 147
					color = { 100 35 40 }
				}
			}		
		}
		
		d_courland = {
			color = { 114 22 38 }

			capital = c_vanemane # Kurzeme

			cultural_names = {
				name_list_prussian = cn_curonia
				name_list_lithuanian = cn_curonia
				name_list_latvian = 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_vanemane = {
				color = { 102 20 35 }

				b_piltene = {
					province = 110

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

					color = { 182 24 24 }
				}
				
				b_kuldiga = {
					province = 13627
					
					color = { 182 24 24 }
				}
			}
			c_liepaja = {
				color = { 127 25 44 }

				b_grobin = {
					province = 114

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

					color = { 160 35 35 }
				}
				b_skrunda = {
					province = 13628
					
					color = { 160 35 35 }
				}
			}
			c_tukuma = {
				color = { 76 15 26 }
				
				b_kandava = {
					province = 112

					color = { 170 25 25 }
				}
				b_tukums = {
					province = 13631
					
					color = { 170 25 25 }
				}
				b_neuenburg = {
					province = 121

					color = { 200 40 40 }
				}
			}
			c_zemigalians = {
				color = { 153 30 53 }

				cultural_names = {
					name_list_latvian = 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_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 }
				}
				
			}			
		}
		d_latgalia = {
			color = { 89 35 58 }

			capital = c_daugavpils
			c_daugavpils = {
				color = { 102 40 67 }

				cultural_names = {
					name_list_franconian = cn_gerzika
					name_list_saxon = cn_gerzika
					name_list_swabian = cn_gerzika
					name_list_bavarian = cn_gerzika
				}
				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
					}
				}
				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_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_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
					}
				}				
			}
			c_kokenois = {
				color = { 76 30 50 }

				b_kokenois = {
					province = 103

					color = { 100 50 50 }

				}
				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_selpils = {
				color = { 127 51 84 }

				b_selpils = {
					province = 133

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

					color = { 192 14 14 }
				}
				b_demene = {
					province = 13638

					color = { 192 14 14 }
				}
			}			
		}
	}

	k_esthonia = {
		color = { 20 66 102 }

		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 = { 7 53 76 }

			capital = c_reval # Kalevan

			c_harjumaa = {
				color = { 5 36 51 }

				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_kiiu = {
					province = 13622
					color = { 160 85 85 }
				}
				b_loksa = {
					province = 13623
					color = { 160 85 85 }
				}
				b_harjumaa = {
					province = 95

					color = { 160 85 85 }
				}
			}
					
			c_wiek = {
				color = { 10 72 102 }

				cultural_names = {
					name_list_estonian = cn_laanemaa
				}
				
				b_leal = {
					province = 93

					color = { 160 60 60 }
				}
				b_hapsal = {
					province = 92

					color = { 140 55 55 }
				}
				
			}						
		}
		d_parnu = {
			color = { 28 84 140 }
			capital = c_parnu
			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
					}
			c_parnu = {
				color = { 25 76 127 }
				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_parnu = {
					province = 99

					color = { 160 60 60 }

					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_testama = {
					province = 13625
					
					color = { 160 60 60 }
				}
			}
			c_livs = {
				color = { 30 91 153 }
				
				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_karksi_nuia = {
					province = 13626
					
					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
					}
				}
				b_vandra = {
					province = 13621
					
					
					color = { 170 50 50 }
				}
			}
			
		}
		d_narva = {
			color = { 38 114 191 }
			capital = c_narva
			
			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
				}
			
			c_ida_viru = {
				color = { 35 107 178 }

				b_narva = {
					province = 98
					
					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
				}

					color = { 175 55 55 }
				}
				b_avinurme = {
					province = 13618
					color = { 175 55 55 }
				}
				b_kohtla-jarve = {
					province = 13619
					color = { 175 55 55 }
				}
				
			}
			c_laane_viru = {
				color = { 40 122 204 }
				
				b_wesenburg = {
					province = 97

					color = { 115 5 5 }

					cultural_names = {
						name_list_franconian = cn_wesenburg
						name_list_saxon = cn_wesenburg
						name_list_swabian = cn_wesenburg
						name_list_bavarian = cn_wesenburg
					}
				}
				b_jarva = {
					province = 96

					color = { 160 85 85 }
				}
				b_vaike_marja = {
					province = 13620

					color = { 115 5 5 }
				}
				b_poltsamaa = {
					province = 146

					color = { 115 5 5 }

					cultural_names = {
						name_list_estonian = cn_mohu
					}
				}
			}
		}
		d_tartu = {
			capital = c_tartu 
			color = { 16 66 165 }
			
			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
				}
			
			c_tartu = {
				color = { 15 63 153 }

				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_moonsund = {
			color = { 20 88 102 }
			capital = c_saaremaa
			c_saaremaa = {
				color = { 15 66 76 }

				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
					}
				}
			}
			c_hiiumaa = {
				color = { 25 110 127 }
				b_kaina = {
					province = 91

					color = { 101 48 48 }
				}
				b_korgessaare = {
					province = 13624

					color = { 101 48 48 }
				}
			}
			}

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