
	############################
	##  UNITED UKRAINE-POLAND ##
	############################
	shared_focus = {
		id = UKR_consolidation_of_union
		icon = GFX_focus_UKR_commonwealth_of_three_nations
		x = 26
		y = 9
		offset = {
			x = 9
			y = -4
			trigger = {
				original_tag = POL
			}
		}
		offset = {
			x = 9
			y = 1
			trigger = {
				has_completed_focus = BLR_protect_republick
			}
		}
		offset = {
			x = -17
			y = 0
			trigger = {
				original_tag = UKR
				OR = {
					has_completed_focus = UKR_old_course
					has_completed_focus = UKR_democratic_reforms
				}
			}
		}
		offset = {
			x = 0
			y = 5
			trigger = {
				has_country_flag = UKR_altdem_branch_is_available
			}
		}
		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		available = {
		    if = {
			    limit = { 
				    OR = {
					    tag = UKR
						tag = POL
					}
				}
			    has_country_flag = UKR_united_with_poland
				else = {
				    has_country_flag = BLR_unia_yes
				}
			}
			OR = {
				has_government = neutrality
				has_government = democratic
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_political_power = 100
			add_stability = 0.05
			if = {
				limit = { NOT = { has_rule = can_create_factions } }
				set_rule = { can_create_factions = yes	}
			}
			if = {
				limit = { NOT = { has_rule = can_send_volunteers } }
				set_rule = { can_send_volunteers = yes	}
			}
		}
	}

	shared_focus = {
		id = UKR_united_parliament_republic
		icon = GFX_goal_support_democracy
		x = -2
		y = 1
		relative_position_id = UKR_consolidation_of_union
		cost = 10

		prerequisite = { focus = UKR_consolidation_of_union }
		mutually_exclusive = { focus = UKR_united_president_republic focus = UKR_united_constitutional_monarchy }

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		available = {
		    OR = {
			    has_country_flag = UKR_united_with_poland
				has_country_flag = BLR_unia_yes
			}
			NOT = { has_country_flag = UKR_cossack_republic }
			OR = {
				has_government = neutrality
				has_government = democratic
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
		completion_reward = {
			if = {
				limit = { tag = POL }
				UKR = {
					UKR_great_sejm = { set_nationality = POL }
				}
			}
			if = {
				limit = { tag = BLR }
				UKR = {
					UKR_great_sejm = { set_nationality = BLR }
				}
			}
			if = {
				limit = { has_government = democratic }
				promote_character = {
					character = UKR_great_sejm
					ideology = conservatism
				}
			}
			else = {
				promote_character = {
					character = UKR_great_sejm
					ideology = oligarchism
				}
			}
		}
	}

	shared_focus = {
		id = UKR_united_president_republic
		icon = GFX_goal_generic_neutrality_focus
		x = 0
		y = 1
		relative_position_id = UKR_consolidation_of_union
		cost = 10

		prerequisite = { focus = UKR_consolidation_of_union }
		mutually_exclusive = { focus = UKR_united_parliament_republic focus = UKR_united_constitutional_monarchy }

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
			    has_country_flag = UKR_united_with_poland
				has_country_flag = BLR_unia_yes
			}
			NOT = { has_country_flag = UKR_constitution_monarchy }
			NOT = { has_country_leader = { character = UKR_wilhelm_von_habsburg ruling_only = yes } }
			NOT = { has_country_leader = { character = POL_karl_albrecht ruling_only = yes } }
			NOT = { has_country_leader = { character = POL_friedrich_christian ruling_only = yes } }
			NOT = { has_country_leader = { character = ROM_king_michael ruling_only = yes } }
			NOT = { has_country_leader = { character = POL_pavel_bermondt_avalov ruling_only = yes } }
			NOT = { has_country_leader = { character = POL_anna_andersson ruling_only = yes } }
			OR = {
				has_government = neutrality
				has_government = democratic
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 50
		}
	}
	shared_focus = {
		id = UKR_united_constitutional_monarchy
		icon = GFX_focus_UKR_united_constitutional_monarchy
		x = 2
		y = 1
		relative_position_id = UKR_consolidation_of_union
		cost = 10

		prerequisite = { focus = UKR_consolidation_of_union }
		mutually_exclusive = { focus = UKR_united_president_republic focus = UKR_united_parliament_republic }

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		bypass = {
			OR = {
				has_country_leader = { character = UKR_wilhelm_von_habsburg ruling_only = yes }
				has_country_leader = { character = POL_karl_albrecht ruling_only = yes }
				has_country_leader = { character = POL_friedrich_christian ruling_only = yes }
				has_country_leader = { character = ROM_king_michael ruling_only = yes }
				has_country_leader = { character = POL_pavel_bermondt_avalov ruling_only = yes }
				has_country_leader = { character = POL_anna_andersson ruling_only = yes }
			}
		}

		available = {
			OR = {
			    has_country_flag = UKR_united_with_poland
				has_country_flag = BLR_unia_yes
			}
			NOT = { has_country_flag = UKR_cossack_republic }
			OR = {
				has_government = neutrality
				has_government = democratic
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_political_power = -50
			if = { 
				limit = {
					tag = UKR
					NOT = { has_country_flag = UKR_constitution_monarchy }
					#UKR_wilhelm_von_habsburg = { is_country_leader = no }
				}
				add_ideas = UKR_king_of_ukraine
			}
			else_if = {
				limit = {
					tag = POL
					NOT = { has_completed_focus = POL_assemble_the_regency_council }
				}
				add_ideas = UKR_king_of_ukraine
			}
			else_if = {
				limit = {
					tag = BLR
				}
				add_ideas = BLR_belpol_king
			}
		}
	}

	shared_focus = {
		id = UKR_unification_of_communications
		icon = GFX_goal_generic_production
		prerequisite = { focus = UKR_united_parliament_republic focus = UKR_united_president_republic focus = UKR_united_constitutional_monarchy }
		
		ai_will_do = {
			factor = 10
		}

		available = { 
			OR = {
				has_war = no 
				surrender_progress < 0.01
			}
			
			91 = { is_owned_and_controlled_by = ROOT }
			92 = { is_owned_and_controlled_by = ROOT }
		}

		x = 0
		y = 1
		relative_position_id = UKR_united_president_republic
		cost = 10
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
		    if = {
			    limit = {
				    has_idea = UKR_POL_disorganized_economy
				}
			    remove_ideas = UKR_POL_disorganized_economy
			}
			add_tech_bonus = {
				name = united_industrial_bonus
				bonus = 1.0
				uses = 1
				category = industry
			}
			91 = {
				if = { 
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			92 = {
				if = { 
					limit = {
						free_building_slots = {
							building = infrastructure
							size > 0
						}
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	shared_focus = {
		id = UKR_reunion_of_lithuania
		icon = GFX_focus_LIT_restore_the_grand_duchy
		prerequisite = { focus = UKR_unification_of_communications }
		
		ai_will_do = {
			factor = 10
		}

		available = {
			NOT = { has_war_with = LIT }
		}

		available_if_capitulated = no

		bypass = {
			LIT = {
				OR = {
					exists = no
					is_puppet = yes
				}
			}
		}

		x = 1
		y = 1
		relative_position_id = UKR_unification_of_communications
		cost = 10
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			LIT = {
				country_event = ukraine.268
			}
		}
	}
	shared_focus = {
		id = UKR_influence_in_livonia
		icon = GFX_focus_LIT_claim_livonia
		prerequisite = { focus = UKR_reunion_of_lithuania }
		
		ai_will_do = {
			factor = 10
		}

		available = {
			189 = { is_owned_and_controlled_by = ROOT }
			OR = {
				EST = {
					exists = yes
					is_puppet = no
					NOT = { has_war_with = ROOT } 
					NOT = { is_in_faction_with = ROOT }
				}
				LAT = {
					exists = yes
					is_puppet = no
					NOT = { has_war_with = ROOT } 
					NOT = { is_in_faction_with = ROOT }
				}
			}
		}

		available_if_capitulated = no

		x = 1
		y = 1
		relative_position_id = UKR_reunion_of_lithuania
		cost = 10
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					EST = {
						exists = yes
						is_puppet = no
						NOT = { has_war_with = ROOT } 
						NOT = { is_in_faction_with = ROOT }
					}
				} 
				EST = { country_event = ukraine.577 }
			}
			if = {
				limit = {
					LAT = {
						exists = yes
						is_puppet = no
						NOT = { has_war_with = ROOT } 
						NOT = { is_in_faction_with = ROOT }
					}
				} 
				LAT = { country_event = ukraine.577 }
			}
		}
	}
	shared_focus = {
		id = UKR_lands_of_white_russia
		icon = GFX_focus_POL_belarus_army
		prerequisite = { focus = UKR_reunion_of_lithuania }
		
		ai_will_do = {
			factor = 10
		}
		
		allow_branch = { 
		    OR = { 
			    tag = UKR
				tag = POL
			}
		}

		available_if_capitulated = no

		x = -1
		y = 1
		relative_position_id = UKR_reunion_of_lithuania
		cost = 10
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					BLR = {
						exists = yes
						NOT = { has_war_with = UKR }
					}
				}
				BLR = {
					country_event = ukraine.268
				}
			}
			if = {
				limit = {
					any_other_country = {
						NOT = { tag = BLR }
						controls_state = 206
						owns_state = 206
					}
				}
				206 = {
					controller = {
						ROOT = {
							create_wargoal = {
								type = take_state_focus
								target = PREV
								generator = { 206 }
							}
						}
					}
				}
			}
		}
	}
	
	shared_focus = {
		id = BLR_lands_of_ukraine
		icon = GFX_focus_POL_ukrainian_army
		prerequisite = { focus = UKR_reunion_of_lithuania }
		
		ai_will_do = {
			factor = 10
		}
		
		allow_branch = { 
			tag = BLR
		}

		available_if_capitulated = no

		x = -1
		y = 1
		relative_position_id = UKR_reunion_of_lithuania
		cost = 10
		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = {
					UKR = {
						exists = yes
						NOT = { has_war_with = BLR }
					}
				}
				UKR = {
					country_event = ukraine.268
				}
			}
			if = {
				limit = {
					any_other_country = {
						NOT = { tag = UKR }
						controls_state = 202
						owns_state = 202
					}
				}
				202 = {
					controller = {
						ROOT = {
							create_wargoal = {
								type = take_state_focus
								target = PREV
								generator = { 202 }
							}
						}
					}
				}
			}
		}
	}
	shared_focus = {
		id = UKR_united_military_academy
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = UKR_unification_of_communications }
		
		ai_will_do = {
			factor = 10
		}

		x = -1
		y = 1
		relative_position_id = UKR_unification_of_communications
		cost = 10
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_ideas = UKR_POL_military_academy
		}
	}
	shared_focus = {
		id = UKR_university_of_commonwealth
		icon = GFX_focus_research
		prerequisite = { focus = UKR_united_military_academy }

		available = {
			is_major = yes
		}
		
		ai_will_do = {
			factor = 10
		}

		x = -1
		y = 1
		relative_position_id = UKR_united_military_academy
		cost = 10
		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	############################
	## KUB AND ZKL LIBERATION ##
	############################
	shared_focus = {
		id = KUB_ZKL_develop_defense_plan
		icon = GFX_focus_ger_bulwark_against_bolshevism
		x = 18
		y = 0
		offset = {
			x = 5
			y = 0
			trigger = {
				tag = KUB
			}
		}
		cost = 4

		available_if_capitulated = no

		ai_will_do = {
			factor = 20
		}

		available = {
			has_idea = KUB_ZKL_liberation_movement
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = KUB_ZKL_resistance_doc
				cost_reduction = 0.75
				uses = 1
				category = land_doctrine
			}
			
			if = {
				limit = { has_war_with = SOV }
				add_timed_idea = {
					idea = KUB_ZKL_iron_defence
					days = 90
				}
			}
		}
	}
	shared_focus = {
		id = KUB_ZKL_veterans_of_civil_war
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = KUB_ZKL_develop_defense_plan }
		x = 0
		y = 1
		relative_position_id = KUB_ZKL_develop_defense_plan
		cost = 4

		available_if_capitulated = no

		ai_will_do = {
			factor = 20
		}

		available = {
			has_idea = KUB_ZKL_liberation_movement
		}

		completion_reward = {
			add_manpower = 5000
			army_experience = 25
		}
	}
	shared_focus = {
		id = KUB_ZKL_white_guards
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = KUB_ZKL_veterans_of_civil_war }
		x = 0
		y = 1
		relative_position_id = KUB_ZKL_veterans_of_civil_war
		cost = 4

		available_if_capitulated = no

		ai_will_do = {
			factor = 20
		}

		available = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				has_war_with = ROOT
			}
		}

		completion_reward = {
			division_template = {
				name = "Belaya Gvardia"
				regiments = {
					infantry = {
						x = 0
						y = 0
					}
					infantry = {
						x = 1
						y = 0
					}
					infantry = {
						x = 2
						y = 0
					}
					infantry = {
						x = 0
						y = 1
					}
					infantry = {
						x = 1
						y = 1
					}
					infantry = {
						x = 2
						y = 1
					}
				}
			}
			if = { limit = { 408 = { is_owned_and_controlled_by = ROOT } } 
				408 = {
					create_unit = {
						division = "name = \"1ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 957
					}
				}
			}
			if = { limit = { 409 = { is_owned_and_controlled_by = ROOT } } 
				409 = {
					create_unit = {
						division = "name = \"2ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 12189
					}
				}
			}
			if = { limit = { 657 = { is_owned_and_controlled_by = ROOT } } 
				657 = {
					create_unit = {
						division = "name = \"3ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 7672
					}
				}
			}
			if = { limit = { 560 = { is_owned_and_controlled_by = ROOT } } 
				560 = {
					create_unit = {
						division = "name = \"4ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 12559
					}
				}
			}
			if = { limit = { 233 = { is_owned_and_controlled_by = ROOT } } 
				233 = {
					create_unit = {
						division = "name = \"1ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 9663
					}
				}
			}
			if = { limit = { 234 = { is_owned_and_controlled_by = ROOT } } 
				234 = {
					create_unit = {
						division = "name = \"2ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 3734
					}
				}
			}
			if = { limit = { 1020 = { is_owned_and_controlled_by = ROOT } } 
				1020 = {
					create_unit = {
						division = "name = \"3ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 6736
					}
				}
			}
			if = { limit = { 590 = { is_owned_and_controlled_by = ROOT } } 
				590 = {
					create_unit = {
						division = "name = \"1ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 4333
					}
				}
			}
			if = { limit = { 583 = { is_owned_and_controlled_by = ROOT } } 
				583 = {
					create_unit = {
						division = "name = \"2ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 10312
					}
				}
			}
			if = { limit = { 882 = { is_owned_and_controlled_by = ROOT } } 
				882 = {
					create_unit = {
						division = "name = \"3ya brigada dobrovoltsev\" division_template = \"Belaya Gvardia\" start_experience_factor = 0.3"
						owner = ROOT
						prioritize_location = 7708
					}
				}
			}
		}
	}
	shared_focus = {
		id = KUB_ZKL_foreign_weapons_purchases
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = KUB_ZKL_white_guards }
		x = 0
		y = 1
		relative_position_id = KUB_ZKL_white_guards
		cost = 4

		available_if_capitulated = no

		ai_will_do = {
			factor = 20
		}

		available = {
			has_idea = KUB_ZKL_liberation_movement
		}

		completion_reward = {
			add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 2000
			    producer = USA
			}
			add_equipment_to_stockpile = {
			    type = support_equipment
			    amount = 250
			    producer = USA
			}
		}
	}