shared_focus = { 
	id =  FACTION_form_joint_alliance
	
	dynamic = yes 
	
	icon = GFX_focus_UKR_ukrainian_glory

	allow_branch = { 
	    OR = {
		    AND = {
			    original_tag = UKR
				is_faction_leader = yes
			}
			AND = {
			    NOT = { original_tag = UKR }
				is_in_faction_with = UKR
				UKR = { is_faction_leader = yes }
			}
		}
	}
	
	x = 88
	y = 0
	#Poland
	offset = {
		x = 34
		y = 0
		trigger = {
			has_focus_tree = polish_focus
		}
	}
	offset = {
			x = 2
			y = 0
			trigger = {
				has_country_flag = romanov_enabled
			}
		}
	offset = {
		x = -27
		y = 0
		trigger = {
			NOT = { has_dlc = "No Step Back" }
		}
	}
		
	offset = {
		x = -38
		y = 0
		trigger = {
			has_dlc = "No Step Back"
			has_completed_focus = POL_complete_april_constitution
			has_game_rule = {
			rule = obsolete_focus_branches_visibility
				option = HIDE
			}
		}
	}
		
	offset = {
		x = -39
		y = 0
		trigger = {
			has_completed_focus = POL_organize_the_peasants_strike
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
	    		option = HIDE
			}
		}
	}
		
	offset = {
		x = -31
		y = 0
		trigger = {
			has_completed_focus = POL_assemble_the_regency_council
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
		}
	}
		
	offset = {
		x = -47
		y = 0
		trigger = {
			has_completed_focus = POL_nationalist_constitution
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
		}
	}
	#Romania
	offset = {
		x = -28
		y = 0
		trigger = {
			has_focus_tree = romanian_focus
		}
	}
	#Lithuania
	offset = {
		x = -22
		y = 0
		trigger = {
			has_focus_tree = lithuania_tree
		}
	}
	offset = {
		x = -12
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = LIT_secure_a_loyal_cabinet
		}
	}
	offset = {
	    x = -26
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = BALTIC_restore_workers_republic
		}
	}
	#Latvia
	offset = {
		x = -32
		y = 0
		trigger = {
			has_focus_tree = latvia_tree
		}
	}
	offset = {
		x = -12
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = LAT_suspend_the_constitution
		}
	}
	offset = {
	    x = -26
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = BALTIC_restore_workers_republic
		}
	}
	#Estonia
	offset = {
		x = -30
		y = 0
		trigger = {
			has_focus_tree = estonia_tree
		}
	}
	offset = {
		x = -15
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = EST_era_of_silence
		}
	}
	offset = {
		x = -20
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = EST_rally_the_nation
		}
	}
	offset = {
	    x = 33
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = BALTIC_restore_workers_republic
		}
	}
	#Turkey
	offset = {
		x = -32
		y = 0
		trigger = {
			has_focus_tree = turkish_focus
		}
	}
	#Yugoslavia
	offset = {
		x = -30
		y = 0
		trigger = {
			has_focus_tree = yugoslavian_focus
		}
	}
	#Bulgaria
	offset = {
		x = -23
		y = 0
		trigger = {
			has_focus_tree = bulgarian_focus
		}
	}
	#Crimea
	offset = {
		x = -44
		y = 0
		trigger = {
			has_focus_tree = crimea_focus
		}
	}
	#Tatar
	offset = {
		x = -56
		y = 0
		trigger = {
			has_focus_tree = crimean_tatars
		}
	}
	#Czehoslovakia
	offset = {
		x = -22
		y = 0
		trigger = {
			has_focus_tree = czech_focus
		}
	}
	
	#UKR
	offset = {
		x = -32
		y = 0
		trigger = {
			has_completed_focus = UKR_communism_propaganda
		}
	}
	offset = {
		x = -39
		y = 0
		trigger = {
			has_completed_focus = UKR_revanchism
		}
	}
	offset = {
		x = -29
		y = 0
		trigger = {
			OR = {
				has_completed_focus = UKR_old_course
				has_completed_focus = UKR_democratic_reforms
			}
		}
	}
	
	cost = 5

	text_icon = NORDIC_focus_style

	available = {
		is_faction_leader = yes 
	}
	
	bypass = {
		any_other_country = {
			original_tag = UKR
			is_in_faction_with = ROOT
			is_faction_leader = yes 
			has_completed_focus = FACTION_form_joint_alliance
		}
	}
	
	ai_will_do = {
		base = 1
		modifier = {
			factor = 0
			is_historical_focus_on = yes 
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	completion_reward = {
		add_political_power = 75
		custom_effect_tooltip = form_aliance_tt
	}
}

joint_focus = {
	id = FACTION_joint_command
	
	icon = GFX_focus_AFG_adopt_nufus
	
	prerequisite = { focus = FACTION_form_joint_alliance }
	
	x = 6
	y = 1
	relative_position_id = FACTION_form_joint_alliance
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_army_manpower = { size > 349999 }
		has_war_support > 0.39
	}

	search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_WAR_SUPPORT }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
		army_experience = 25	
		add_war_support = 0.05
		add_ideas = UKR_joint_planning
	}
}

joint_focus = {
	id = FACTION_land_forces
	
	icon = GFX_focus_generic_army_doctrines_2
	
	prerequisite = { focus = FACTION_joint_command }
	
	x = -2
	y = 1
	relative_position_id = FACTION_joint_command
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		
	}

	search_filters = { FOCUS_FILTER_ARMY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		army_experience = 75
		add_doctrine_cost_reduction = {
			name = UKR_stop_germany_monster
			cost_reduction = 0.5
			uses = 2
			category = land_doctrine
		}
	}
	
	completion_reward_joint_member = {
		army_experience = 50
		add_doctrine_cost_reduction = {
			name = UKR_stop_germany_monster
			cost_reduction = 0.5
			uses = 1
			category = land_doctrine
		}
	}
}

joint_focus = {
	id = FACTION_army_leader
	
	icon = GFX_focus_generic_army_tanks2
	
	prerequisite = { focus = FACTION_land_forces }
	
	x = 0
	y = 1
	relative_position_id = FACTION_land_forces
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		has_army_manpower = { size > 599999 }
		arms_factory > 29
	}

	search_filters = { FOCUS_FILTER_ARMY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_joint_army_command
	}
}

joint_focus = {
	id = FACTION_infantry_focus
	
	icon = GFX_goal_generic_allies_build_infantry
	
	prerequisite = { focus = FACTION_army_leader }
	
	mutually_exclusive = { focus = FACTION_mechanization_focus }
	
	x = -2
	y = 1
	relative_position_id = FACTION_army_leader
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_war_support > 0.49
		has_army_manpower = { size > 749999 }
	}

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_WAR_SUPPORT }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
		add_war_support = 0.05
		add_ideas = UKR_infantry_focus
	}
}

joint_focus = {
	id = FACTION_artillery_production
	
	icon = GFX_goal_generic_army_artillery2
	
	prerequisite = { focus = FACTION_infantry_focus }
	
	x = 0
	y = 1
	relative_position_id = FACTION_infantry_focus
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
	    if = {
		    limit = {
			    has_idea = UKR_infantry_focus
            }
            swap_ideas = {
                remove_idea = UKR_infantry_focus
                add_idea = UKR_infantry_focus2
            }
        }
        else = {
            add_ideas = UKR_infantry_focus2
        }			
	}
}

joint_focus = {
	id = FACTION_mechanization_focus
	
	icon = GFX_focus_generic_mechanized
	
	prerequisite = { focus = FACTION_army_leader }
	
	mutually_exclusive = { focus = FACTION_infantry_focus }
	
	x = 0
	y = 1
	relative_position_id = FACTION_army_leader
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		
	}

	search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		army_experience = 50
            add_tech_bonus = {
				name = UKR_mechanization_army
				bonus = 1.0
				uses = 1
				category = motorized_equipment
			}
			add_tech_bonus = {
				name = UKR_mechanization_army
				bonus = 1.0
				uses = 2
				category = armor
			}
            add_doctrine_cost_reduction = {
				name = GER_adopt_new_panzer_doctrine
				cost_reduction = 0.75
				uses = 2
				category = cat_mobile_warfare
			}		
        add_war_support = 0.05			
	}
	
	completion_reward_joint_member = {
	    army_experience = 25
		add_tech_bonus = {
			name = UKR_mechanization_army
			bonus = 0.5
			uses = 1
			category = motorized_equipment
		}
		add_tech_bonus = {
			name = UKR_mechanization_army
			bonus = 0.75
			uses = 1
			category = armor
		}
		add_war_support = 0.05	
	}
}

joint_focus = {
	id = FACTION_air_forces
	
	icon = GFX_goal_generic_air_doctrine
	
	prerequisite = { focus = FACTION_joint_command }
	
	x = 0
	y = 1
	relative_position_id = FACTION_joint_command
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = { FOCUS_FILTER_AIR_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		air_experience = 75
		add_doctrine_cost_reduction = {
			name = UKR_refining_our_strategies
			cost_reduction = 0.5
			uses = 2
			category = air_doctrine
		}
	}
	
	completion_reward_joint_member = {
		air_experience = 50
		add_doctrine_cost_reduction = {
			name = UKR_refining_our_strategies
			cost_reduction = 0.5
			uses = 1
			category = air_doctrine
		}
	}
}

joint_focus = {
	id = FACTION_air_leader
	
	icon = GFX_goal_generic_air_fighter2
	
	prerequisite = { focus = FACTION_air_forces }
	
	x = 0
	y = 1
	relative_position_id = FACTION_air_forces
	cost = 5

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
        has_deployed_air_force_size = {
			size > 999
		}
		arms_factory > 29
	}

	search_filters = { FOCUS_FILTER_AIR_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_joint_air_command
	}
}

joint_focus = {
	id = FACTION_modern_prototypes_of_aviation
	
	icon = GFX_focus_generic_air_research_boost
	
	prerequisite = { focus = FACTION_air_leader }
	
	x = 0
	y = 1
	relative_position_id = FACTION_air_leader
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_deployed_air_force_size = {
			size > 1199
		}
	}

	search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
		air_experience = 50
		if = {
			limit = {
				has_dlc = "By Blood Alone"
			}
			add_tech_bonus = {
				name = UKR_fighter_focus
				bonus = 1.0
				uses = 1
				category = light_air
			}
		}
		else = {
			add_tech_bonus = {
				name = UKR_fighter_focus
				bonus = 1.0
				uses = 1
				category = light_fighter
				category = cas_bomber
			}
		}
		if = {
			limit = {
				has_dlc = "By Blood Alone"
			}
			add_tech_bonus = {
				name = UKR_bomber_focus
				bonus = 1.0
				uses = 1
				category = medium_air
				category = heavy_air			
			}
		}
		else = {
			add_tech_bonus = {
				name = UKR_bomber_focus
				bonus = 1.0
				uses = 1
				category = cat_strategic_bomber
				category = tactical_bomber
				category = cat_heavy_fighter
			}
		}
	}
}

joint_focus = {
	id = FACTION_innovations_in_CAS
	
	icon = GFX_focus_generic_armored_air_support
	
	prerequisite = { focus = FACTION_modern_prototypes_of_aviation focus = FACTION_mechanization_focus }
	
	mutually_exclusive = { focus = FACTION_aircrafts_and_sea_CAS }
	
	x = -1
	y = 1
	relative_position_id = FACTION_modern_prototypes_of_aviation
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = {  }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
		add_ideas = UKR_CAS_bonus
	}
}

joint_focus = {
	id = FACTION_navy_focus
	
	icon = GFX_goal_generic_navy_doctrines_tactics
	
	prerequisite = { focus = FACTION_joint_command }
	
	x = 2
	y = 1
	relative_position_id = FACTION_joint_command
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = { FOCUS_FILTER_NAVY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		navy_experience = 75
        add_doctrine_cost_reduction = {
			name = UKR_refining_our_strategies
			cost_reduction = 0.5
			uses = 2
			category = naval_doctrine
		}	
	}
	
	completion_reward_joint_member = {
		navy_experience = 50
        add_doctrine_cost_reduction = {
			name = UKR_refining_our_strategies
			cost_reduction = 0.5
			uses = 1
			category = naval_doctrine
		}	
	}
}

joint_focus = {
	id = FACTION_navy_leader
	
	icon = GFX_goal_generic_navy_battleship
	
	prerequisite = { focus = FACTION_navy_focus }
	
	x = 0
	y = 1
	relative_position_id = FACTION_navy_focus
	cost = 5

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_navy_size = {
			size > 19
		}
		num_of_naval_factories > 9
	}

	search_filters = { FOCUS_FILTER_NAVY_XP  }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_joint_navy_command
	}
}

joint_focus = {
	id = FACTION_big_ships_focus
	
	icon = GFX_focus_generic_navy_battleship2
	
	prerequisite = { focus = FACTION_navy_leader }
	
	x = 0
	y = 1
	relative_position_id = FACTION_navy_leader
	cost = 10
    
	mutually_exclusive = { focus = FACTION_small_ships_focus }
	
	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = {FOCUS_FILTER_NAVY_XP FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		navy_experience = 75
		add_tech_bonus = {
			name = UKR_cruisers_focus
			bonus = 1.0
			uses = 2
			category = ca_tech
		}
		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.5
		}					
	
	}
	completion_reward_joint_member = {
	    navy_experience = 25
		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.25
		}
		add_tech_bonus = {
			name = UKR_cruisers_focus
			bonus = 0.5
			uses = 1
			category = ca_tech
		}
	}
}

joint_focus = {
	id = FACTION_aircrafts_and_sea_CAS
	
	icon = GFX_goal_generic_navy_carrier
	
	prerequisite = { focus = FACTION_big_ships_focus }
	
	x = -1
	y = 1
	relative_position_id = FACTION_big_ships_focus
	cost = 10
    
	mutually_exclusive = { focus = FACTION_innovations_in_CAS }
	
	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_navy_size = {
			size > 29
		}
		num_of_naval_factories > 19
	}

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		navy_experience = 25
		add_tech_bonus = {
			name = UKR_navy_aviation
			bonus = 2.0
			uses = 1
			category = cv_tech
		}
		add_tech_bonus = {
			name = UKR_navy_aviation
			bonus = 1.0
			uses = 2
			category = naval_air
		}
		add_ideas = UKR_carrier_bonus
	}
	
	completion_reward_joint_member = {
		navy_experience = 25
		add_tech_bonus = {
			name = UKR_navy_aviation
			bonus = 1.0
			uses = 1
			category = cv_tech
		}
		add_tech_bonus = {
			name = UKR_navy_aviation
			bonus = 1.0
			uses = 1
			category = naval_air
		}
	}
}

joint_focus = {
	id = FACTION_small_ships_focus
	
	icon = GFX_focus_generic_destroyer
	
	prerequisite = { focus = FACTION_navy_leader }
	
	x = 2
	y = 1
	relative_position_id = FACTION_navy_leader
	cost = 5
    
	mutually_exclusive = { focus = FACTION_big_ships_focus }
	
	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_navy_size = {
			size > 9
		}
		num_of_naval_factories > 4
	}

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
	    navy_experience = 50
		add_tech_bonus = {
			name = UKR_submarine_technology
			bonus = 1.0
			uses = 1
			category = ss_tech
		}
        add_tech_bonus = {
			name = UKR_destroyer_focus
			bonus = 1.0
			uses = 1
			category = dd_tech
		}
        add_doctrine_cost_reduction = {
			name = UKR_destroyer_focus
			cost_reduction = 0.5
			uses = 1
			category = convoy_defense_tree
		}
        add_tech_bonus = {
			name = UKR_cruisers_focus
			bonus = 0.5
			uses = 1
			category = ca_tech
		}		
	}
}

joint_focus = {
	id = FACTION_security_as_a_doctrine
	
	icon = GFX_focus_SMB_blue_water_fleet
	
	prerequisite = { focus = FACTION_small_ships_focus }
	
	x = 0
	y = 1
	relative_position_id = FACTION_small_ships_focus
	cost = 10
	
	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		
	}

	search_filters = { FOCUS_FILTER_NAVY_XP }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_doctrine_cost_reduction = {
			name = UKR_destroyer_focus
			cost_reduction = 0.5
			uses = 2
			category = convoy_defense_tree
		}
        add_ideas = UKR_destroyer_bonus		
	}
	completion_reward_joint_member = {
		add_doctrine_cost_reduction = {
			name = UKR_destroyer_focus
			cost_reduction = 0.5
			uses = 1
			category = convoy_defense_tree
		}
        add_ideas = UKR_destroyer_bonus		
	}
}

joint_focus = {
	id = FACTION_striving_for_political_unity
	
	icon = GFX_goal_generic_national_unity
	
	prerequisite = { focus = FACTION_form_joint_alliance }
	
	x = 0
	y = 1
	relative_position_id = FACTION_form_joint_alliance
	cost = 5

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
		is_faction_leader = yes
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_stability = 0.05
		if = {
		    limit = { 
			    has_government = communism
			}
			add_popularity = {
			    ideology = communism
				popularity = 0.1
			}
		}
		else_if = {
		    limit = { 
			    has_government = fascism
			}
			add_popularity = {
			    ideology = fascism
				popularity = 0.1
			}
		}
		else_if = {
		    limit = { 
			    has_government = democratic
			}
			add_popularity = {
			    ideology = democratic
				popularity = 0.1
			}
		}
		else_if = {
		    limit = { 
			    has_government = neutrality
			}
			add_popularity = {
			    ideology = neutrality
				popularity = 0.1
			}
		}
	}

	completion_reward_joint_member = {
		add_political_power = 25
        if = {
		    limit = { 
			    UKR = { has_government = communism }
			}
			add_popularity = {
			    ideology = communism
				popularity = 0.05
			}
		}
		else_if = {
		    limit = { 
			    UKR = { has_government = fascism }
			}
			add_popularity = {
			    ideology = fascism
				popularity = 0.05
			}
		}
		else_if = {
		    limit = { 
			    UKR = { has_government = democratic }
			}
			add_popularity = {
			    ideology = democratic
				popularity = 0.05
			}
		}
		else_if = {
		    limit = { 
			    UKR = { has_government = neutrality }
			}
			add_popularity = {
			    ideology = neutrality
				popularity = 0.05
			}
		}		
	}
}

joint_focus = {
	id = FACTION_influence_of_ideology
	
	icon = GFX_focus_NOR_broken_gun_policies
	
	prerequisite = { focus = FACTION_striving_for_political_unity }
	
	x = -1
	y = 1
	relative_position_id = FACTION_striving_for_political_unity
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		is_faction_leader = yes
		OR = {
		    democratic > 0.75
			communism > 0.75
			fascism > 0.75
			neutrality > 0.75
		}
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_member = {
	    if = {
		    limit = {
			    UKR = { has_government = democratic }
			}
		    add_ideas = UKR_unfluence_of_ideology_DEM
	    }
		else_if = {
		    limit = {
			    UKR = { has_government = communism }
			}
		    add_ideas = UKR_unfluence_of_ideology_COM
	    }
		else_if = {
		    limit = {
			    UKR = { has_government = neutrality }
			}
		    add_ideas = UKR_unfluence_of_ideology_NEU
	    }
		else_if = {
		    limit = {
			    UKR = { has_government = fascism }
			}
		    add_ideas = UKR_unfluence_of_ideology_FAS
	    }
		
	}
}

joint_focus = {
	id = FACTION_union_headquarters
	
	icon = GFX_focus_generic_improve_the_administration
	
	prerequisite = { focus = FACTION_striving_for_political_unity }
	
	x = 1
	y = 1
	relative_position_id = FACTION_striving_for_political_unity
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
	}

	search_filters = { FOCUS_FILTER_POLITICAL }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_centr_of_strategical_coordination	
	}
}

joint_focus = {
	id = FACTION_regional_economical_union
	
	icon = GFX_focus_RAJ_special_economic_zones
	
	prerequisite = { focus = FACTION_union_headquarters }
	prerequisite = { focus = FACTION_influence_of_ideology }
	
	x = 1
	y = 1
	relative_position_id = FACTION_influence_of_ideology
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		is_faction_leader = yes
	}

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_trade_union_originator
	}
	
	completion_reward_joint_member = {
		add_ideas = UKR_trade_union_member
	}
}

joint_focus = {
	id = FACTION_economic_and_technical_cooperation
	
	icon = GFX_focus_SWE_institute_of_technology
	
	prerequisite = { focus = FACTION_form_joint_alliance }
	
	x = -6
	y = 1
	relative_position_id = FACTION_form_joint_alliance
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		has_stability > 0.59
		OR = {
		    AND = {
		        num_of_owned_factories > 50
		        amount_research_slots > 2
			}
		    AND = {
		        num_of_owned_factories > 30
		        amount_research_slots > 3
			}
		}
	}

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_faction_centr_of_tech_cooperation
	}
	
	completion_reward_joint_member = {
	    add_ideas = UKR_faction_member_of_tech_cooperation
	}
}

joint_focus = {
	id = FACTION_modernization_of_infrastructure
	
	icon = GFX_focus_generic_road_investment
	
	prerequisite = { focus = FACTION_economic_and_technical_cooperation }
	
	x = 0c
	y = 1
	relative_position_id = FACTION_economic_and_technical_cooperation
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
	
	    add_timed_idea = {
		    idea = UKR_infrastructure_iniciative_leader
			days = 365
			
		}
			
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = infrastructure
					size > 0
				}
			}
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
	}
	
	completion_reward_joint_member = { 
	    random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = infrastructure
					size > 0
				}
			}
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
	}
}

joint_focus = {
	id = FACTION_war_economy
	
	icon = GFX_focus_generic_military_industry
	
	prerequisite = { focus = FACTION_modernization_of_infrastructure }
	
	x = 1
	y = 1
	relative_position_id = FACTION_modernization_of_infrastructure
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		num_of_military_factories > 39
		num_researched_technologies > 40
	}

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}

    
	completion_reward_joint_originator = {
        add_ideas = UKR_millitary_centr_1
	}
	
	completion_reward_joint_member = {
		add_tech_bonus = {
			name = UKR_tech_infantry_and_artillery_bonus
			ahead_reduction = 1
			uses = 2
			category = artillery
			category = infantry_weapons 
		}	
	}
}

joint_focus = {
	id = FACTION_standartization_of_production
	
	icon = GFX_focus_generic_mass_production
	
	prerequisite = { focus = FACTION_war_economy }
	
	x = 0
	y = 1
	
	relative_position_id = FACTION_war_economy
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		num_researched_technologies > 45
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
	    effect_tooltip = {
	        every_country = {
		        limit = { 
			    	OR = {
				        is_in_faction_with = UKR
					    tag = UKR
				    }
		    	}
			    swap_ideas = {
			        remove_idea = UKR_millitary_centr_1
		            add_idea = UKR_millitary_centr_2	
			    }
		    }
		}
		hidden_effect = {
	        every_country = {
		        limit = { 
			        has_idea = UKR_millitary_centr_1
			    	OR = {
				        is_in_faction_with = UKR
					    tag = UKR
				    }
		    	}
			    swap_ideas = {
			       remove_idea = UKR_millitary_centr_1
		           add_idea = UKR_millitary_centr_2	
			    }
		    }
		}
		add_timed_idea = {
		    idea = UKR_standartization
			days = 240 
		}
		
	}
}

joint_focus = {
	id = FACTION_emphasis_on_weapons_production
	
	icon = GFX_focus_SWE_let_fly_all_guns
	
	prerequisite = { focus = FACTION_standartization_of_production }
	
	mutually_exclusive = { focus = FACTION_power_of_atom }
	mutually_exclusive = { focus = FACTION_jet_propulsion_and_aviation }
	
	x = 0
	y = 1
	
	relative_position_id = FACTION_standartization_of_production
	cost = 20

	text_icon = NORDIC_focus_style

	available = {
		num_of_military_factories > 49
		has_war_support > 0.74
	}

	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
	    add_stability = -0.1
		add_war_support = -0.1
		add_ideas = UKR_FACTION_cooperation
	}
}

joint_focus = {
	id = FACTION_civil_development
	
	icon = GFX_focus_generic_modernize_industry
	
	prerequisite = { focus = FACTION_modernization_of_infrastructure }
	
	x = -1
	y = 1
	relative_position_id = FACTION_modernization_of_infrastructure
	cost = 8

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		random_owned_controlled_state = {
			limit = {
			ROOT = { has_full_control_of_state = PREV } 
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		add_timed_idea = { 
		    idea = UKR_civil_projects_1
			days = 365 
		}
	}
	
	completion_reward_joint_member = {
	    add_timed_idea = { 
		    idea = UKR_civil_projects_1
			days = 365 
		}
	}
}

joint_focus = {
	id = FACTION_innovation_in_construction_and_production
	
	icon = GFX_goal_generic_construct_civ_factory
	
	prerequisite = { focus = FACTION_civil_development }
	
	x = 0
	y = 1
	relative_position_id = FACTION_civil_development
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		NOT = { has_idea = UKR_civil_projects_1 }
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_ideas = UKR_civil_projects_2
	}
	
	completion_reward_joint_member = {
	    add_timed_idea = {
		    idea = UKR_civil_projects_2
			days = 365 
		}
	}
}

joint_focus = {
	id = FACTION_additional_funding_for_civil_projects
	
	icon = GFX_focus_NORDIC_com_capstone_civilian
	
	prerequisite = { focus = FACTION_innovation_in_construction_and_production }
	
	x = 0
	y = 1
	relative_position_id = FACTION_innovation_in_construction_and_production
	cost = 20

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		num_of_owned_factories > 74
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		random_owned_controlled_state = {
			limit = {
			ROOT = { has_full_control_of_state = PREV } 
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
			ROOT = { has_full_control_of_state = PREV } 
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
		random_owned_controlled_state = {
			limit = {
			ROOT = { has_full_control_of_state = PREV } 
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
	
	completion_reward_joint_member = {
	    add_offsite_building = { type = industrial_complex level = 3 }
	}
}

joint_focus = {
	id = FACTION_technical_expertise
	
	icon = GFX_focus_generic_combined_arms
	
	prerequisite = { focus = FACTION_economic_and_technical_cooperation }
	
	x = 3
	y = 1
	relative_position_id = FACTION_economic_and_technical_cooperation
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
	}

	search_filters = { FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward = {
		add_ideas = UKR_soc_cooperation
		custom_effect_tooltip = GER_pool_technical_know_how_tt
		hidden_effect = {
			every_other_country = {
				limit = { is_in_faction_with = UKR }
				add_ideas = UKR_soc_cooperation
			}
		}
	}
}

joint_focus = {
	id = FACTION_academy_of_science
	
	icon = GFX_focus_generic_military_academy
	
	prerequisite = { focus = FACTION_technical_expertise }
	
	x = 0
	y = 1
	relative_position_id = FACTION_technical_expertise
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		num_of_factories > 34
		amount_research_slots < 5
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_research_slot = 1	
	}
}

joint_focus = {
	id = FACTION_unifited_science_centr
	
	icon = GFX_goal_tfv_generic_tech_sharing
	
	prerequisite = { focus = FACTION_academy_of_science }
	
	x = 0
	y = 1
	relative_position_id = FACTION_academy_of_science
	cost = 10

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		has_stability > 0.5
		has_war_support > 0.25
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}

    completion_reward_joint_originator = {
	    add_to_tech_sharing_group = UKR_ally_research
	}
	
	completion_reward_joint_member = {
		every_other_country = {
			limit = { 
				is_in_faction_with = UKR
			}
			add_to_tech_sharing_group = UKR_ally_research
		}
	}
}

joint_focus = {
	id = FACTION_power_of_atom
	
	icon = GFX_focus_generic_nuclear_development
	
	prerequisite = { focus = FACTION_unifited_science_centr }
	
	x = 0
	y = 1
	relative_position_id = FACTION_unifited_science_centr
	cost = 10
	
	mutually_exclusive = { focus = FACTION_jet_propulsion_and_aviation }
	mutually_exclusive = { focus = FACTION_emphasis_on_weapons_production }

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		num_researched_technologies > 49
		is_special_project_completed = sp:sp_nuclear_reactor
	}

	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		IF = {
			limit = {
				NOT = {
					has_tech = atomic_research
				}
			}
			add_tech_bonus = {
				name = NORDIC_nuclear_research
				bonus = 0.75 # was 1
				uses = 1
				category = nuclear
			}
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.5
			}
		}
		ELSE = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.8
			}
		}
		every_owned_state = {
			limit = {
				is_controlled_by = ROOT 
				free_building_slots = {
	 				building = arms_factory
	 				size > 0
	 				include_locked = yes 
	 			}
			}
			random_select_amount = 1
	 		add_extra_state_shared_building_slots = 1 
	 		add_building_construction = {
	 			type = nuclear_reactor
	 			level = 1
	 			instant_build = yes
	 		}			
		}

	}

	completion_reward_joint_member = {

		IF = {
			limit = {
				NOT = {
					has_tech = atomic_research
				}
			}
			add_tech_bonus = {
				name = NORDIC_nuclear_research
				bonus = 0.5 
				uses = 1
				category = nuclear
			}
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.25
			}
		}
		ELSE = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.5
			}
		}

	}
}

joint_focus = {
	id = FACTION_jet_propulsion_and_aviation
	
	icon = GFX_focus_generic_jet_planes
	
	prerequisite = { focus = FACTION_unifited_science_centr }
	
	mutually_exclusive = { focus = FACTION_power_of_atom }
	mutually_exclusive = { focus = FACTION_emphasis_on_weapons_production }
	
	x = 2
	y = 1
	relative_position_id = FACTION_unifited_science_centr
	cost = 10
	
	mutually_exclusive = { focus = FACTION_emphasis_on_weapons_production }
	mutually_exclusive = { focus = FACTION_power_of_atom }

	text_icon = NORDIC_focus_style

	available = {
		FACTION_basic_available_trigger = yes
		num_researched_technologies > 55
	}

	search_filters = { FOCUS_FILTER_RESEARCH }

	joint_trigger = {
  		FACTION_basic_joint_trigger = yes 
	}


	completion_reward_joint_originator = {
		add_tech_bonus = {
			name = NORDIC_nordic_rocketry
			bonus = 0.75
			uses = 1 
			category = rocketry
		}
		
		add_breakthrough_progress = {
			specialization = specialization_air
			value = 0.5
		}

		add_tech_bonus = {
			name = NORDIC_jet_engines
			bonus = 1 
			ahead_reduction = 1
			uses = 2
			category = jet_technology 
		}
	}

	completion_reward_joint_member = {
		add_tech_bonus = {
			name = NORDIC_nordic_rocketry
			bonus = 0.25
			uses = 1 
			category = rocketry
		}
		
		add_breakthrough_progress = {
			specialization = specialization_air
			value = 0.25
		}
	}
}
