### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}
### search_filters = {FOCUS_FILTER_BALANCE_OF_POWER}


focus_tree = { 
	id = danish_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = DEN
			has_dlc = "Arms Against Tyranny"
		}
	}
	
	default = no

	continuous_focus_position = { x = 150 y = 1500 }

##################
##################
#### INDUSTRY ####
##################
##################

	focus = {
		id = DEN_kanslergadeforliget
		icon = GFX_focus_generic_treaty
	
		mutually_exclusive = { focus = DEN_fortify_our_borders }
	
		x = 3
		y = 0
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			DEN_bop_low_decrease_effect = yes

			add_to_variable = { DEN_economic_crisis_democratic_drift = 0.05 }
			custom_effect_tooltip = DEN_the_Kanslergadeforlig_modifier_tt

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.1
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DEN_karl_kristian_steincke	
		}
	}
	
	focus = {
		id = DEN_devalue_the_krone
		icon = GFX_focus_DEN_devalue_krone
	
		prerequisite = { focus = DEN_kanslergadeforliget focus = DEN_fortify_our_borders }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = 1
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		} 
	
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_stability = -0.05

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.1
				tooltip = consumer_goods_factor_tt
			}
			
			add_to_variable = { DEN_economic_crisis_stability_weekly = 0.001 }
			custom_effect_tooltip = DEN_devalue_the_krone_modifier_tt

			hidden_effect = {
				remove_dynamic_modifier = { modifier = DEN_economic_crisis_dynamic_modifier }
				add_dynamic_modifier = { modifier = DEN_economic_crisis_dynamic_modifier days = 730 }
			}
			custom_effect_tooltip = DEN_remove_economic_crisis_in_730_days_tt
		}
	}
	
	focus = {
		id = DEN_trade_with_britain
		 icon = GFX_focus_generic_british_trade
	
		prerequisite = { focus = DEN_devalue_the_krone }
		mutually_exclusive = {}
	
		relative_position_id = DEN_devalue_the_krone
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			NOT = {
				has_war_with = ENG
			}
			is_subject = no
			ENG = {
				exists = yes
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			ENG = { country_event = { id = denmark_trade_deal.1 days = 1 } }
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					add_offsite_building = { type = industrial_complex level = 1 }
					DEN_trade_deal_effects = yes					
				}
				ENG = {
					add_ideas = DEN_danish_produce_export_ns
				}
			}
			custom_effect_tooltip = war_will_cancel_deal_tt
			unlock_decision_category_tooltip = DEN_trade_deal_category
		}
	}
	
	focus = {
		id = DEN_trade_with_germany
		icon = GFX_focus_generic_german_trade
	
		prerequisite = { focus = DEN_devalue_the_krone }
		mutually_exclusive = {}
	
		relative_position_id = DEN_devalue_the_krone
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			NOT = {
				has_war_with = GER
			}
			is_subject = no
			GER = {
				exists = yes
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			GER = { country_event = { id = denmark_trade_deal.1 days = 1 } }
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				ROOT = {
					add_offsite_building = { type = industrial_complex level = 1 }
					DEN_trade_deal_effects = yes
				}
				GER = {
					add_ideas = DEN_danish_produce_export_ns
				}
			}
			custom_effect_tooltip = war_will_cancel_deal_tt
			unlock_decision_category_tooltip = DEN_trade_deal_category
		}
	}
	
	focus = {
		id = DEN_agricultural_subsidies
		icon = GFX_focus_generic_agricultural_subsidies
	
		prerequisite = { focus = DEN_kanslergadeforliget }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = -3
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}

		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			add_to_variable = { DEN_economic_crisis_monthly_population = 0.1 }
			custom_effect_tooltip = DEN_agricultural_subsidies_modifier_tt

			add_ideas = DEN_danish_produce_ns

			if = {
				limit = {
					99 = { #Norrejylland
						is_fully_controlled_by = ROOT
					}
				}
				99 = { 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_development_projects_mainland_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 37 911 } 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	
	focus = {
		id = DEN_industrial_investments
		icon = GFX_goal_generic_construct_civilian
	
		prerequisite = { focus = DEN_kanslergadeforliget }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}

		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
					}
				}
				37 = { 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_development_projects_mainland_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 911 99 } 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	
	focus = {
		id = DEN_support_schleswigian_farmers
		icon = GFX_focus_DEN_schleswigian_farmers
	
		prerequisite = { focus = DEN_agricultural_subsidies }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = -3
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			912 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			add_to_variable = { DEN_economic_crisis_neutrality_drift = -0.02 }
			custom_effect_tooltip = DEN_schleswigian_farmers_modifier_tt

			#DEN_remove_economic_crisis = yes

			swap_ideas = { 
				remove_idea = DEN_danish_produce_ns
				add_idea = DEN_danish_produce_improved
			}

			if = {
				limit = {
					912 = { #Sonderjylland
						is_fully_controlled_by = ROOT
					}
				}
				912 = { 
					add_extra_state_shared_building_slots = 2
					add_dynamic_modifier = {
						modifier = DEN_development_projects_mainland_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					prioritize = { 99 911 37 } 
					add_extra_state_shared_building_slots = 1
				}
			}
		}
	}
	
	focus = {
		id = DEN_public_works
		icon = GFX_goal_generic_construction
	
		prerequisite = { focus = DEN_agricultural_subsidies focus = DEN_industrial_investments }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = -1
		y = 3
	
		cost = 10
	
		bypass = {
			NOT = {	has_full_control_of_state = 37 }
			NOT = {	has_full_control_of_state = 911 }
		}
	
		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
					}
				}
				37 = { 
					add_extra_state_shared_building_slots = 1
				}
			}
			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
					}
				}
				911 = { 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_development_projects_mainland_state_modifier
					}
				}
			}
		}
	}
	
	focus = {
		id = DEN_fortify_our_borders
		icon = GFX_focus_generic_fortify_denmark
	
		prerequisite = {}
		mutually_exclusive = { focus = DEN_kanslergadeforliget }
	
		relative_position_id = DEN_kanslergadeforliget
		x = 2
		y = 0
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_POLITICAL_CHARACTER }
	
		completion_reward = {
			DEN_bop_low_increase_effect = yes

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DEN_alsing_andersen	
		}
	}
	
	focus = {
		id = DEN_build_a_modern_dannevirke
		icon = GFX_goal_generic_construct_military
	
		prerequisite = { focus = DEN_fortify_our_borders }
		mutually_exclusive = {}
	
		relative_position_id = DEN_fortify_our_borders
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}

		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			
			custom_effect_tooltip = DEN_unlocks_fortification_efforts #This will reduce tooltip clutter

			if = {
				limit = {
					ROOT = { is_subject = no }
					912 = { 
						is_fully_controlled_by = ROOT
					}
				}
				912 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
			else_if = {
				limit = {
					ROOT = { is_subject = no }
					99 = { 
						is_fully_controlled_by = ROOT
					}
				}
				99 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 37 911 } 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	
	focus = {
		id = DEN_refortify_tunestillingen
		icon = GFX_goal_generic_fortify_city
	
		prerequisite = { focus = DEN_fortify_our_borders }
		mutually_exclusive = {}
	
		relative_position_id = DEN_fortify_our_borders
		x = 3
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
		
		available_if_capitulated = yes

		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {

			if = {
				limit = {
					ROOT = { is_subject = no }
					37 = { 
						is_fully_controlled_by = ROOT
					}
				}
				37 = {
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 37 911 99 } 
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}
	
	focus = {
		id = DEN_secure_our_supply_lines
		icon = GFX_focus_generic_supply_line
	
		prerequisite = { focus = DEN_refortify_tunestillingen }
		mutually_exclusive = {}
	
		relative_position_id = DEN_fortify_our_borders
		x = 3
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
		
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL }
	
		completion_reward = {

			add_to_variable = { DEN_economic_crisis_monthly_population = 0.1 }
			add_to_variable = { DEN_economic_crisis_democratic_drift = 0.05 }
			custom_effect_tooltip = DEN_secure_our_supply_lines_modifier_tt

			#DEN_remove_economic_crisis = yes

			add_ideas = DEN_improved_logistics

			if = {
				limit = {
					99 = { #Jylland
						is_fully_controlled_by = ROOT
					}
				}
				99 = { 
					add_extra_state_shared_building_slots = 2
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
					}
					prioritize = { 37 911 } 
					add_extra_state_shared_building_slots = 1
				}
			}
		}
	}
	
	focus = {
		id = DEN_fortify_the_islands
		icon = GFX_focus_generic_coastal_fort
	
		prerequisite = { focus = DEN_build_a_modern_dannevirke focus = DEN_refortify_tunestillingen }
		mutually_exclusive = {}
	
		relative_position_id = DEN_fortify_our_borders
		x = 1
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			any_core_state =  {
				is_controlled_by = ROOT 
				is_coastal = yes
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {

			custom_effect_tooltip = DEN_unlocks_coastal_fortification_efforts #This will reduce tooltip clutter

			if = {
				limit = {
					ROOT = { is_subject = no }
					37 = { 
						is_fully_controlled_by = ROOT
					}
				}
				37 = {
					add_building_construction = {
						type = coastal_bunker
						level = 1
						province = { all_provinces = yes }
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					ROOT = { is_subject = no }
					911 = { 
						is_fully_controlled_by = ROOT
					}
				}
				911 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 1
						province = { all_provinces = yes }
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 37 911 99 } 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_connect_the_islands
		icon = GFX_goal_generic_construct_infrastructure
	
		prerequisite = { focus = DEN_public_works focus = DEN_fortify_the_islands }
		mutually_exclusive = {}
	
		relative_position_id = DEN_kanslergadeforliget
		x = 1
		y = 4
	
		cost = 10
	
		bypass = {
			NOT = { has_full_control_of_state = 37 }
			NOT = {	has_full_control_of_state = 911 }
			NOT = {	has_full_control_of_state = 99 }
			NOT = {	has_full_control_of_state = 912 }
		}
	
		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
				has_full_control_of_state = 99
				has_full_control_of_state = 912
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				37 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				911 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					99 = { #Norrejylland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				99 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					912 = { #Sondrejylland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				912 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
		}
	}

	focus = {
		id = DEN_expand_institut_for_teoretisk_fysik
		icon = GFX_focus_research
	
		prerequisite = { focus = DEN_connect_the_islands }
		mutually_exclusive = {}
	
		relative_position_id = DEN_connect_the_islands
		x = -3
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
		
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			add_research_slot = 1

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

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = {
				localization_key = available_scientist_one_line_tt
				CHARACTER = DEN_niels_bohr
			}	
			
		}
	}

	focus = {
		id = DEN_expand_the_industries
		icon = GFX_goal_generic_construct_civ_factory
	
		prerequisite = { focus = DEN_expand_institut_for_teoretisk_fysik }
		mutually_exclusive = {}
	
		relative_position_id = DEN_expand_institut_for_teoretisk_fysik
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			custom_effect_tooltip = DEN_develop_remote_islands

			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 37 911 99 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.025
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.05
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.025
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_aalborg_portland_cement_plant
		icon = GFX_goal_generic_construction
	
		prerequisite = { focus = DEN_expand_institut_for_teoretisk_fysik }
		mutually_exclusive = {}
	
		relative_position_id = DEN_expand_institut_for_teoretisk_fysik
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
		
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			custom_effect_tooltip = DEN_improve_aalborg_portland_tt
			DEN_replaced_designers_with_improved_version = yes

			add_tech_bonus = {
				name = DEN_aalborg_portland_cement_plant
				bonus = 0.75
				uses = 1
				category = construction_tech
			}
			add_tech_bonus = {
				name = DEN_aalborg_portland_cement_plant
				bonus = 0.75
				uses = 1
				category = excavation_tech
			}

			if = { limit = { 99 = { is_fully_controlled_by = ROOT } }
				99 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 912 911 37 } 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_support_the_faroes_industries
		icon = GFX_focus_DEN_develop_faroes
	
		prerequisite = { focus = DEN_expand_the_industries focus = DEN_aalborg_portland_cement_plant }
		mutually_exclusive = {}
	
		relative_position_id = DEN_expand_institut_for_teoretisk_fysik
		x = -1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			337 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			337 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_dynamic_modifier = {
					modifier = DEN_development_projects_state_modifier
				}
			}
		}
	}
	focus = {
		id = DEN_support_bornholms_industries
		icon = GFX_focus_DEN_develop_bornholm
	
		prerequisite = { focus = DEN_expand_the_industries focus = DEN_aalborg_portland_cement_plant }
		mutually_exclusive = {}
	
		relative_position_id = DEN_expand_institut_for_teoretisk_fysik
		x = 1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			910 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			910 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_dynamic_modifier = {
					modifier = DEN_development_projects_state_modifier
				}
			}
		}
	}

	focus = {
		id = DEN_develop_greenland
		icon = GFX_focus_DEN_develop_greenland
	 
		prerequisite = { focus = DEN_connect_the_islands }
		mutually_exclusive = {}
	
		relative_position_id = DEN_connect_the_islands
		x = 0
		y = 3
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			101 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			if = { 
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_extra_state_shared_building_slots = 1
					add_dynamic_modifier = {
						modifier = DEN_development_projects_state_modifier
					}
				}
			}
		}
	}

	focus = {
		id = DEN_expand_the_ivittuut_mine
		icon = GFX_focus_DEN_expand_ivittuut_mine
	
		prerequisite = { focus = DEN_develop_greenland }
		mutually_exclusive = {}
	
		relative_position_id = DEN_develop_greenland
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			101 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			if = { 
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_resource = {
						type = aluminium
						amount = 10
					}
				}
			}
		}
	}

	focus = {
		id = DEN_prospecting_new_sites
		icon = GFX_focus_DEN_prospecting_greenland
	
		prerequisite = { focus = DEN_develop_greenland }
		mutually_exclusive = {}
	
		relative_position_id = DEN_develop_greenland
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			101 = { is_fully_controlled_by = ROOT }
			has_tech = excavation3
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {

			unlock_decision_tooltip = expand_greenlands_mines

			if = { 
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_resource = {
						type = steel
						amount = 12
					}
					add_resource = {
						type = chromium
						amount = 6
					}
					add_resource = {
						type = tungsten
						amount = 6
					}
				}
			}
		}
	}

	focus = {
		id = DEN_protect_greenland
		icon = GFX_focus_DEN_protect_greenland
	
		prerequisite = { focus = DEN_prospecting_new_sites focus = DEN_expand_the_ivittuut_mine }
		mutually_exclusive = {}
	
		relative_position_id = DEN_develop_greenland
		x = 0
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			101 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			if = { 
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 1
						province = 12512
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
		}
	}

	focus = {
		id = DEN_reorient_production_lines
		icon = GFX_focus_generic_reorient_production
		
		prerequisite = { focus = DEN_connect_the_islands }
		mutually_exclusive = {}
	
		relative_position_id = DEN_connect_the_islands
		x = 3
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}

		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			random_core_state = {
				prioritize = { 37 911 99 } 
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.05
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.025
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.025
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.05
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_danske_stalvalsevaerket
		icon = GFX_focus_generic_steel
	
		prerequisite = { focus = DEN_reorient_production_lines }
		mutually_exclusive = {}
	
		relative_position_id = DEN_reorient_production_lines
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
		
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			custom_effect_tooltip = DEN_unlock_stalvalsevaerket_tt
			
			add_tech_bonus = {
				name = DEN_danske_stalvalsevaerket
				bonus = 1
				uses = 1
				category = industry
			}

			if = { 
				limit = { 37 = { is_fully_controlled_by = ROOT } }
				37 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_resource = {
						type = steel
						amount = 12
					}
				}
			}
			else = {
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 911 99 912 } 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_resource = {
						type = steel
						amount = 4
					}
				}
			}
		}
	}

	focus = {
		id = DEN_strengthen_military_industries
		icon = GFX_goal_generic_construct_mil_factory
	
		prerequisite = { focus = DEN_reorient_production_lines }
		mutually_exclusive = {}
	
		relative_position_id = DEN_reorient_production_lines
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {

		}
	
		available = {
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 37 911 99 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 911 99 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.025
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.025
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.025
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.025
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_protect_the_faroe_islands
		icon = GFX_focus_DEN_protect_faroes

		prerequisite = { focus = DEN_danske_stalvalsevaerket focus = DEN_strengthen_military_industries }
		mutually_exclusive = {}
	
		relative_position_id = DEN_reorient_production_lines
		x = -1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			337 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			if = { 
				limit = { 337 = { is_fully_controlled_by = ROOT } }
				337 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 1
						province = 13003
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = coastal_bunker
						level = 1
						province = { all_provinces = yes }
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
		}
	}

	focus = {
		id = DEN_protect_bornholm
		icon = GFX_focus_DEN_protect_bornholm
	
		prerequisite = { focus = DEN_danske_stalvalsevaerket focus = DEN_strengthen_military_industries }
		mutually_exclusive = {}
	
		relative_position_id = DEN_reorient_production_lines
		x = 1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			910 = { is_fully_controlled_by = ROOT }
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			if = { 	
				limit = { 910 = { is_fully_controlled_by = ROOT } }
				910 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 1
						province = 6361
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					add_dynamic_modifier = {
						modifier = DEN_military_projects_state_modifier
					}
				}
			}
		}
	}


###########################
###########################
#### OCCUPATION BRANCH ####
###########################
###########################

	focus = {
		id = DEN_collaboration_government 
		icon = GFX_goal_generic_alliance
	
		x = 18
		y = 0

		allow_branch = {
			OR = {
				is_subject = yes
				AND = {
					is_subject = no
					has_country_flag = DEN_has_occupation_flag
				}
			}
		}
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 25
			add_stability = 0.05

			custom_effect_tooltip = DEN_unlocks_occupation_bop_decisions_tt

		}
	}

	focus = {
		id = DEN_seek_independence 
		icon = GFX_focus_spr_masters_of_our_own_fate
		
		prerequisite = { focus = DEN_collaboration_government  }
		mutually_exclusive = { focus = DEN_align_with_overlord }

		relative_position_id = DEN_collaboration_government	
		x = -3
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0 
				has_government = var:DEN.DEN_overlord_nation
			}
			modifier = {
				factor = 0.5
				NOT = { has_country_flag = DEN_is_protectorate_flag }
			}
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 50

			DEN_bop_occupation_very_low_increase_effect = yes

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_haeren_reorganization }
				}
				custom_effect_tooltip = available_chief_of_army
				show_ideas_tooltip = DEN_ebbe_gortz
			}

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_expand_ubadsvabnet }
				}
				custom_effect_tooltip = available_chief_of_navy
				show_ideas_tooltip = DEN_aage_vedel
			}

			show_unit_leaders_tooltip = DEN_erik_moller

		}
	}

	focus = {
		id = DEN_sanction_sabotages
		icon = GFX_focus_DEN_civilian_preparations

		prerequisite = { focus = DEN_seek_independence focus = DEN_align_with_overlord }
		mutually_exclusive = { focus = DEN_pledge_allegiance }

		relative_position_id = DEN_collaboration_government	
		x = 0
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
			base = 1
			modifier = {
				factor = 0 
				has_government = var:DEN.DEN_overlord_nation
			}
			modifier = {
				factor = 0.5
				NOT = { has_country_flag = DEN_is_protectorate_flag }
			}
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_sanction_sabotages
			}
			add_war_support = 0.05

			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_occupation_criticize_collaboration
			unlock_decision_tooltip = DEN_bop_occupation_strikes

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_power_balance_weekly = 0.005
				tooltip = power_balance_weekly_tt
			}
			add_to_variable = {
				DEN_resistance_target_on_our_occupied_states = 0.05
				tooltip = resistance_target_on_our_occupied_states_tt
			}
			add_to_variable = {
				DEN_resistance_compliance_growth_on_our_occupied_states = -0.05
				tooltip = compliance_growth_on_our_occupied_states_tt
			}
		}
	}

	focus = {
		id = DEN_form_the_danish_freedom_council
		icon = GFX_focus_generic_freedom_council

		prerequisite = { focus = DEN_sanction_sabotages }

		relative_position_id = DEN_sanction_sabotages	
		x = 0
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			power_balance_value = {
				id = DEN_occupation_balance
				value > -0.59
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_form_the_danish_freedom_council
			}
			add_political_power = 100
			add_war_support = 0.1

			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_occupation_resistance_coordination


			if = {
				limit = {
					is_subject = yes
					NOT = { 
						has_government = communism 
						ROOT.OVERLORD = {
							has_government = communism
						}
					}
				}
				add_popularity = {
				    ideology = communism
				    popularity = 0.05
				}
			}
			if = {
				limit = {
					is_subject = yes
					NOT = { 
						has_government = fascism 
						ROOT.OVERLORD = {
							has_government = fascism
						}
					}
				}
				add_popularity = {
				    ideology = fascism
				    popularity = 0.05
				}
			}

			
			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_power_balance_weekly = 0.005
				tooltip = power_balance_weekly_tt
			}

			DEN_upgrade_resistance_militia = yes
		}
	}

 	focus = {
		id = DEN_arm_the_resistance
		icon = GFX_goal_generic_small_arms

		prerequisite = { focus = DEN_form_the_danish_freedom_council }

		relative_position_id = DEN_sanction_sabotages	
		x = 0
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_arm_the_resistance
			}
			add_war_support = 0.1

			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_occupation_underground_factories

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_damage_to_garrison_on_our_occupied_states = 0.1
				tooltip = resistance_damage_to_garrison_on_our_occupied_states_tt
			}
			DEN_upgrade_resistance_militia = yes
		}
	}


	focus = {
		id = DEN_escalate_the_sabotages
		icon = GFX_goal_generic_demand_territory

		prerequisite = { focus = DEN_arm_the_resistance }

		relative_position_id = DEN_sanction_sabotages	
		x = -1
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_escalate_the_sabotages
			}
			add_war_support = 0.05

			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_occupation_raid_depots

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_target_on_our_occupied_states = 0.05
				tooltip = resistance_target_on_our_occupied_states_tt
			}
			add_to_variable = {
				DEN_resistance_compliance_growth_on_our_occupied_states = -0.05
				tooltip = compliance_growth_on_our_occupied_states_tt
			}
		}
	}

	focus = {
		id = DEN_expand_the_resistance
		icon = GFX_goal_generic_propaganda

		prerequisite = { focus = DEN_arm_the_resistance }
	
		relative_position_id = DEN_sanction_sabotages
		x = 1
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_expand_the_resistance
			}
			add_war_support = 0.05

			DEN_bop_occupation_very_low_increase_effect = yes

			if = {
				limit = {
					is_subject = yes
					ROOT.OVERLORD = {
						has_government = fascism
					}
				}
				if = {
					limit = {
						NOT = { 
							has_government = communism 
						}
					}
					add_popularity = {
				    	ideology = communism
				   		popularity = 0.05
					}
				}
				if = {
					limit = {
						has_government = fascism
						fascism > 0.15
						has_country_leader_with_trait = DEN_plenipotentiary
					}
					add_popularity = {
						ideology = fascism
						popularity = -0.05
					}
				}
			}
			if = {
				limit = {
					is_subject = yes
					ROOT.OVERLORD = {
						has_government = communism
					}
				}
				if = {
					limit = {
						NOT = { 
							has_government = fascism 
						}
					}
					add_popularity = {
				    	ideology = fascism
				   		popularity = 0.05
					}
				}
				if = {
					limit = {
						has_government = communism
						communism > 0.15
						has_country_leader_with_trait = DEN_plenipotentiary
					}
					add_popularity = {
				    	ideology = communism
				   		popularity = -0.05
					}
				}
			}
			DEN_upgrade_resistance_militia = yes
		}
	}

	focus = {
		id = DEN_declare_independence
		icon = GFX_focus_DEN_danish_freedom

		prerequisite = { focus = DEN_escalate_the_sabotages focus = DEN_expand_the_resistance }

		relative_position_id = DEN_sanction_sabotages	
		x = 0
		y = 4
	
		cost = 10
	
		bypass = {
			is_subject = no
		}
	
		available = {
			is_subject = yes
			power_balance_value = {
				id = DEN_occupation_balance
				value > 0.89
			}
		}
		
		#will_lead_to_war_with = var:DEN.DEN_overlord_nation

		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_MANPOWER }
	
		completion_reward = {
			add_political_power = 100
			add_war_support = 0.1

			if = {
				limit = {
					has_country_flag = DEN_create_danish_brigades_flag
				}
				set_division_template_lock = {
				    division_template = "Danske Brigade"
				    is_locked = no
				}
				37 = {
					create_unit = { 
						division = "name = \"1. Brigade\" division_template = \"Danske Brigade\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = { 
						division = "name = \"2. Brigade\" division_template = \"Danske Brigade\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = { 
						division = "name = \"3. Brigade\" division_template = \"Danske Brigade\" start_experience_factor = 0.6" 
						owner = ROOT
					}
					create_unit = { 
						division = "name = \"4. Brigade\" division_template = \"Danske Brigade\" start_experience_factor = 0.6" 
						owner = ROOT
					}
				}
			}
		
			OVERLORD = { country_event = { id = denmark_occupation_event.6 hours = 1 } }

			
			effect_tooltip = {
				custom_effect_tooltip = if_they_refuse_tt
				
				# Make peace with enemies of Overlord 
				every_other_country = {
					limit = {
						has_war_with = DEN.DEN_overlord_nation
						has_war_with = DEN
					}
					white_peace = DEN
				}

				DEN_independence_war_effects = yes
			}
			
			DEN_activate_bought_ships = yes #Denmark receives the Destroyers it bought
		}
	}

	focus = {
		id = DEN_secure_danish_freedom
		icon = GFX_focus_generic_annex_country_2

		prerequisite = { focus = DEN_declare_independence }

		relative_position_id = DEN_sanction_sabotages	
		x = 0
		y = 5
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			NOT = { 
				is_in_faction_with = var:DEN.DEN_overlord_nation
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ANNEXATION }
	
		completion_reward = {
			add_political_power = 50
			add_stability = 0.05
			add_war_support = 0.05

			custom_effect_tooltip = DEN_topple_government_tt

			if = {
				limit = {
					OR = {
						has_government = fascism
						has_government = communism
						check_variable = { DEN.DEN_overlord_nation = GER }
						check_variable = { DEN.DEN_overlord_nation = ENG }
						check_variable = { DEN.DEN_overlord_nation = SWE }
						check_variable = { DEN.DEN_overlord_nation = NOR }
						check_variable = { DEN.DEN_overlord_nation = HOL }
						check_variable = { DEN.DEN_overlord_nation = POL }
					}
				}
				custom_effect_tooltip = DEN_puppet_the_overlord_tt
			}

			if = {
				limit = {
					check_variable = { DEN.DEN_overlord_nation = GER }
				}
				909 = { 
					set_state_flag = DEN_buffert_zone_state_flag
					add_claim_by = DEN 
				} 
				58 = { 
					set_state_flag = DEN_buffert_zone_state_flag
					add_claim_by = DEN 
				} 
			}
			else_if = {
				limit = {
					check_variable = { DEN.DEN_overlord_nation = SWE }
				}
				138 = { 
					set_state_flag = DEN_buffert_zone_state_flag
					add_claim_by = DEN 
				} 
				124 = { 
					set_state_flag = DEN_buffert_zone_state_flag
					add_claim_by = DEN 
				} 
			}
			else_if = {
				limit = {
					check_variable = { DEN.DEN_overlord_nation = ENG }
				}
				933 = { 
					set_state_flag = DEN_buffert_zone_state_flag
					add_claim_by = DEN 
				} 
			}
		}
	}

	focus = {
		id = DEN_create_danforce
		icon = GFX_focus_generic_manpower

		prerequisite = { focus = DEN_seek_independence  }

		relative_position_id = DEN_seek_independence	
		x = -4
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			power_balance_value = {
				id = DEN_occupation_balance
				value > -0.59
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_war_support = 0.05

			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = { decision = DEN_seek_danish_brigades_host show_effect_tooltip = yes }
			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = DEN_danish_brigade_template_tt
		}
	}

	focus = {
		id = DEN_rigid_training
		icon = GFX_focus_SOV_flying_clubs

		prerequisite = { focus = DEN_create_danforce }

		relative_position_id = DEN_create_danforce	
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_AIR_XP }
	
		completion_reward = {
			add_war_support = 0.05
			air_experience = 25

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_air_home_defence = 0.1
				tooltip = air_home_defence_factor_tt
			}
			add_to_variable = {
				DEN_resistance_air_mission_efficiency = 0.1
				tooltip = air_mission_efficiency_tt
			}
			add_to_variable = {
				DEN_resistance_air_agility_factor = 0.1
				tooltip = air_agility_factor_tt
			}
			add_to_variable = {
				DEN_resistance_air_attack_factor = 0.1
				tooltip = air_attack_factor_tt
			}
		}
	}

	focus = {
		id = DEN_buy_foreign_aircraft
		icon = GFX_goal_generic_air_fighter2

		prerequisite = { focus = DEN_rigid_training }

		relative_position_id = DEN_create_danforce	
		x = -1
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			add_equipment_subsidy = {
				cic = 2000
				equipment_type = small_plane_airframe
				seller_tags = { DEN.hosts_danish_brigades } 
			}
		}
	}

	focus = {
		id = DEN_strengthen_the_danish_brigades
		icon = GFX_goal_generic_position_armies

		prerequisite = { focus = DEN_create_danforce }

		relative_position_id = DEN_create_danforce	
		x = 0
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ARMY_XP FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_war_support = 0.05
			army_experience = 25

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
				}
				hidden_effect = {
					remove_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
					add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved }
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
				custom_effect_tooltip = DEN_targeted_attack_and_defense_tt
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
				custom_effect_tooltip = DEN_targeted_attack_and_defense_tt
			}
			hidden_effect = {
				add_ideas = DEN_danish_resistance_ns 
			}
			
			unlock_decision_tooltip = DEN_bop_occupation_funnel_resources_danish_brigade

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_create_danforce }
				}
				custom_effect_tooltip = DEN_adds_units_to_brigade_tt
			}
			else = {
				add_units_to_division_template = {
					template_name = "Danske Brigade"
					regiments = {
						infantry = 0
						infantry = 1 
					}
				}
			}

			add_equipment_subsidy = {
				cic = 500
				equipment_type = infantry_equipment
				seller_tags = { DEN.hosts_danish_brigades } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = motorized_equipment
				seller_tags = { DEN.hosts_danish_brigades } 
			}
		}
	}

	focus = {
		id = DEN_support_battalions
		icon = GFX_goal_generic_army_artillery2

		prerequisite = { focus = DEN_strengthen_the_danish_brigades }

		relative_position_id = DEN_create_danforce	
		x = -1
		y = 4
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {
			army_experience = 10

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_create_danforce }
				}
				custom_effect_tooltip = DEN_adds_units_to_brigade_tt
			}
			else = {
				add_units_to_division_template = {
					template_name = "Danske Brigade"
					support = {
						artillery = 0
						anti_air = 0
					}
				}
			}			

			add_equipment_subsidy = {
				cic = 500
				equipment_type = artillery_equipment
				seller_tags = { DEN.hosts_danish_brigades } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = anti_air_equipment
				seller_tags = { DEN.hosts_danish_brigades } 
			}
		}
	}

	focus = {
		id = DEN_expand_the_brigades
		icon = GFX_focus_generic_little_entente

		prerequisite = { focus = DEN_strengthen_the_danish_brigades }

		relative_position_id = DEN_create_danforce	
		x = 1
		y = 4
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ARMY_XP }
	
		completion_reward = {
			army_experience = 10

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_create_danforce }
				}
				custom_effect_tooltip = DEN_adds_units_to_brigade_tt
			}
			else = {
				add_units_to_division_template = {
					template_name = "Danske Brigade"
					regiments = {
						infantry = 2
						infantry = 2 
						infantry = 2
						infantry = 2
					}
				}
			}
		}
	}

	focus = {
		id = DEN_establish_danske_flotille
		icon = GFX_focus_generic_naval_discipline

		prerequisite = { focus = DEN_create_danforce }

		relative_position_id = DEN_create_danforce	
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_NAVY_XP FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_war_support = 0.05
			navy_experience = 25

			DEN_bop_occupation_very_low_increase_effect = yes

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier_improved } 
				}
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			else_if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_resistance_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_danish_resistance_dynamic_modifier
			}
			add_to_variable = {
				DEN_resistance_naval_damage = 0.1
				tooltip = naval_damage_factor_tt
			}
			add_to_variable = {
				DEN_resistance_naval_defense = 0.1
				tooltip = naval_defense_factor_tt
			}
			add_to_variable = {
				DEN_resistance_enemy_fleet_size_ratio_penalty = 0.1
				tooltip = naval_enemy_fleet_size_ratio_penalty_factor_tt
			}
		}
	}

	focus = {
		id = DEN_buy_foreign_ships
		icon = GFX_focus_SWE_italian_destroyers

		prerequisite = { focus = DEN_establish_danske_flotille }

		relative_position_id = DEN_create_danforce	
		x = 1
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_create_danish_brigades_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = {}
	
		completion_reward = {

			unlock_decision_tooltip = DEN_buy_foreign_destroyers
		}
	}

	focus = {
		id = DEN_align_with_foreign_powers
		icon = GFX_goal_tripartite_pact

		prerequisite = { focus = DEN_seek_independence  }

		relative_position_id = DEN_seek_independence	
		x = 0
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			power_balance_value = {
				id = DEN_occupation_balance
				value > -0.59
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			DEN_bop_occupation_very_low_increase_effect = yes

			custom_effect_tooltip = DEN_seek_foreign_support_tt
			effect_tooltip = {
				custom_effect_tooltip = if_they_accept_tt
				custom_effect_tooltip = DEN_if_denmark_becomes_independent_tt
				FROM = { country_event = { id = denmark_resistance_event.7 }}
			}
			unlock_decision_tooltip = { decision = DEN_seek_foreign_support_decision show_effect_tooltip = yes } 
		}
	}

	focus = {
		id = DEN_intel_sharing
		icon = GFX_focus_SWI_embrace_rote_drei

		prerequisite = { focus = DEN_align_with_foreign_powers }

		relative_position_id = DEN_align_with_foreign_powers	
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_has_foreign_support_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_war_support = 0.05
			
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				create_operative_leader = {
					name = "Monica Wichfeld"
					GFX = GFX_portrait_DEN_monica_wichfeld 
					traits = { operative_infiltrator }
					bypass_recruitment = no
					available_to_spy_master = yes
					nationalities = { ENG DEN }
				}
				create_operative_leader = {
					name = "Varinka Wichfeld"
					GFX = GFX_portrait_DEN_varinka_wichfeld 
					traits = { operative_escape_artist }
					bypass_recruitment = no
					available_to_spy_master = yes
					nationalities = { ENG DEN }
				}
				if = {
					limit = {
						DEN_has_political_edicts_dynamic_modifier = no
					}
					add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
				}
				else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
				add_to_variable = {
					DEN_political_edicts_operative_slot = 1
					tooltip = operative_slot_tt
				}
			}

			if = {
				limit = {
					has_country_flag = DEN_has_foreign_support_flag
				}
				var:DEN.supporting_nation = { 
					country_event = { id = denmark_resistance_event.11 days = 1 } 
				}
				if = {
					limit = {
						NOT = { has_dlc = "La Resistance" }
					}
					custom_effect_tooltip = if_they_accept_tt
					effect_tooltip = {
						DEN = {
							add_tech_bonus = {
								name = DEN_danish_intel
								bonus = 0.25
								uses = 2
								category = encryption_tech
								category = decryption_tech
							}
						}
						var:DEN.supporting_nation = {
							add_tech_bonus = {
								name = DEN_danish_intel
								bonus = 0.25
								uses = 2
								category = encryption_tech
								category = decryption_tech
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = DEN_ask_for_weapons
		icon = GFX_focus_secret_rearmament

		prerequisite = { focus = DEN_align_with_foreign_powers }
	
		relative_position_id = DEN_align_with_foreign_powers
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_country_flag = DEN_has_foreign_support_flag
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			DEN_bop_occupation_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_ask_for_weapons_decision
		}
	}

	focus = {
		id = DEN_buy_allied_weapons
		icon = GFX_focus_generic_combined_arms

		prerequisite = { focus = DEN_intel_sharing focus = DEN_ask_for_weapons }
	
		relative_position_id = DEN_align_with_foreign_powers
		x = 0
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = no
			is_in_faction = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {
			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_cas_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = light_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = medium_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = infantry_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = motorized_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = artillery_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = anti_air_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
		}
	}

	focus = {
		id = DEN_align_with_overlord
		icon = GFX_goal_generic_dangerous_deal

		prerequisite = { focus = DEN_collaboration_government }
		mutually_exclusive = { focus = DEN_seek_independence }
	
		relative_position_id = DEN_collaboration_government
		x = 3
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
			base = 0
			modifier = {
				add = 10 
				has_government = var:DEN.DEN_overlord_nation
			}
			modifier = {
				add = 5
				NOT = { has_country_flag = DEN_is_protectorate_flag }
			}
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_MILITARY_CHARACTER }
	
		completion_reward = {
			add_stability = -0.1

			DEN_bop_occupation_low_decrease_effect = yes

			add_popularity = {
			    ideology = var:DEN.DEN_overlord_nation
			    popularity = 0.1
			}

			if = {
				limit = {
					NOT = { has_rule = can_access_market }
				}
				set_rule = {
	    			can_access_market = yes
				}
			}

			if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_occupation_laws_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_occupation_laws_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_occupation_laws_dynamic_modifier
			}
			add_to_variable = {
				DEN_occupation_laws_master_ideology_drift = 0.1
				tooltip = master_ideology_drift_tt
			}

			OVERLORD = {
				add_opinion_modifier = {
					modifier = DEN_cooperative_subject
					target = DEN
				}
			}
		}
	}

	focus = {
		id = DEN_seek_industrial_investments
		icon = GFX_focus_generic_industry_1

		prerequisite = { focus = DEN_align_with_overlord }
	
		relative_position_id = DEN_align_with_overlord
		x = 1
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			add_popularity = {
			    ideology = var:DEN.DEN_overlord_nation
			    popularity = 0.1
			}

			DEN_bop_occupation_very_low_decrease_effect = yes

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_pledge_allegiance
		icon = GFX_goal_generic_military_deal

		prerequisite = { focus = DEN_seek_industrial_investments }
		mutually_exclusive = { focus = DEN_sanction_sabotages }
	
		relative_position_id = DEN_seek_industrial_investments
		x = -2
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_government = var:DEN.DEN_overlord_nation
			var:DEN.DEN_overlord_nation = {
				has_opinion = {
					target = DEN
					value > 24
				}
			}
			power_balance_value = {
				id = DEN_occupation_balance
				value < 0
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {
			add_stability = 0.05

			add_popularity = {
			    ideology = var:DEN.DEN_overlord_nation
			    popularity = 0.05
			}

			DEN_bop_occupation_low_decrease_effect = yes

			OVERLORD = { country_event = { id = denmark_occupation_event.110 days = 1 } }
			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = denmark_occupation_event.111.a
			custom_effect_tooltip = if_they_refuse_tt
			event_option_tooltip = denmark_occupation_event.112.a
		}
	}

	focus = {
		id = DEN_seek_military_investments
		icon = GFX_focus_generic_reorient_production

		prerequisite = { focus = DEN_pledge_allegiance }
		
		relative_position_id = DEN_seek_industrial_investments
		x = -2
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_government = var:DEN.DEN_overlord_nation
			var:DEN.DEN_overlord_nation = {
				has_country_flag = DEN_accepted_danish_allegiance_flag
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_petition_for_independence
		icon = GFX_goal_tripartite_pact

		prerequisite = { focus = DEN_seek_military_investments }
		prerequisite = { focus = DEN_increase_cooperation }
		
		relative_position_id = DEN_seek_industrial_investments
		x = -1
		y = 3
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_government = var:DEN.DEN_overlord_nation
			var:DEN.DEN_overlord_nation = {
				has_opinion = {
					target = ROOT
					value > 49
				}
			}
			power_balance_value = {
				id = DEN_occupation_balance
				value < 0
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL }
	
		completion_reward = {
			add_stability = 0.1
			add_war_support = 0.05

			OVERLORD = { country_event = { id = denmark_occupation_event.6 hours = 1 } }	

			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = denmark_occupation_event.8.a

			custom_effect_tooltip = if_they_refuse_tt
			event_option_tooltip = denmark_occupation_event.7.b
		}
	}

	focus = {
		id = DEN_seize_the_production
		icon = GFX_focus_generic_modernize_industry

		prerequisite = { focus = DEN_seek_industrial_investments }
	
		relative_position_id = DEN_seek_industrial_investments
		x = 0
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_seize_the_production
			}

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = yes
				}
				if = {
					limit = {
						has_variable = DEN_political_edicts_conscription_factor
					}
					if = {
						limit = {
							check_variable = { DEN_political_edicts_conscription_factor < 0.11 }
						}
						custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier
						add_to_variable = {
							DEN_political_edicts_conscription_factor = 0.15
							tooltip = conscription_factor_tt
						}
					}
				}
				else = { 
					custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier
					add_to_variable = {
						DEN_political_edicts_conscription_factor = 0.15
						tooltip = conscription_factor_tt
					}
				}
			}
			else = { 
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
				add_to_variable = {
					DEN_political_edicts_conscription_factor = 0.15
					tooltip = conscription_factor_tt
				}
			}

			if = {
				limit = {
					OR = {
						check_variable = { DEN_industrial_capability_local_resources < 0.06 }
						check_variable = { DEN_industrial_capabilities_consumer_goods < 0.06 }
						check_variable = { DEN_industrial_capabilities_retention_efficiency < 0.06 }
						check_variable = { DEN_industrial_capabilities_factory_output < 0.06 }
						check_variable = { DEN_industrial_capabilities_dockyard_output < 0.06 }
						check_variable = { DEN_industrial_capabilities_equipment_conversion < 0.06 }
					}
				}
				add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
				DEN_improve_industrial_capabilities_NS = yes
			}
			if = {
				limit = {
					check_variable = { DEN_industrial_capability_local_resources < 0.06 }
				}
				add_to_variable = {
					DEN_industrial_capability_local_resources = 0.1
					tooltip = local_resources_factor_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_consumer_goods < 0.16 }
				}
				add_to_variable = {
					DEN_industrial_capabilities_consumer_goods = 0.1
					tooltip = consumer_goods_factor_tt
				}
			}
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_retention_efficiency < 0.06 }
				}
				add_to_variable = { 
					DEN_industrial_capabilities_retention_efficiency = 0.05
					tooltip = line_change_production_efficiency_factor_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_factory_output < 0.06 }
				}
				add_to_variable = {
					DEN_industrial_capabilities_factory_output = 0.05
					tooltip = industrial_capacity_factory_tt
				}
			}
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_dockyard_output < 0.06 }
				}
				add_to_variable = {
					DEN_industrial_capabilities_dockyard_output = 0.05
					tooltip = industrial_capacity_dockyard_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_equipment_conversion < 0.06 }
				}
				add_to_variable = { 
					DEN_industrial_capabilities_equipment_conversion = 0.05
					tooltip = equipment_conversion_speed_tt
				}
			}
			else = { add_cic = 2000 }
		}
	}

	focus = {
		id = DEN_adjust_industrial_prioritize
		icon = GFX_goal_generic_production2

		prerequisite = { focus = DEN_seek_industrial_investments }
	
		relative_position_id = DEN_seek_industrial_investments
		x = 2
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_adjust_industrial_prioritize
			}

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			
			if = {
				limit = {
					OR = {
						check_variable = { DEN_war_preparations_lack_of_resource_penalty > -0.06 }
						check_variable = { DEN_war_preparations_max_fuel < 0.11 }
						check_variable = { DEN_war_preparations_fuel_gain < 0.11 }
						check_variable = { DEN_war_preparations_fuel_silo_speed < 0.06 }
					}
				}
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			if = {
				limit = {
					check_variable = { DEN_war_preparations_lack_of_resource_penalty > -0.06 }
				}
				add_to_variable = {
					DEN_war_preparations_lack_of_resource_penalty = -0.1
					tooltip = production_lack_of_resource_penalty_factor_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_war_preparations_max_fuel < 0.11 }
				}
				add_to_variable = {
					DEN_war_preparations_max_fuel = 0.05
					tooltip = max_fuel_factor_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_war_preparations_fuel_gain < 0.11 }
				}
				add_to_variable = {
					DEN_war_preparations_fuel_gain = 0.05
					tooltip = fuel_gain_add_factor_tt
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					check_variable = { DEN_war_preparations_fuel_silo_speed < 0.06 }
				}
				add_to_variable = { 
					DEN_war_preparations_fuel_silo_speed = 0.25
					tooltip = production_speed_fuel_silo_factor_tt
				}
			}
			else = { add_cic = 2000 }
			
			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_consumer_goods < 0.16 }
				}
				add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
				DEN_improve_industrial_capabilities_NS = yes
				add_to_variable = {
					DEN_industrial_capabilities_consumer_goods = 0.1
					tooltip = consumer_goods_factor_tt
				}
			}
		}
	}

	focus = {
		id = DEN_increase_cooperation
		icon = GFX_goal_generic_major_alliance

		prerequisite = { focus = DEN_seize_the_production }
		prerequisite = { focus = DEN_adjust_industrial_prioritize }
	
		relative_position_id = DEN_seek_industrial_investments
		x = 0
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {

			DEN_bop_occupation_very_low_decrease_effect = yes

			if = {
				limit = {
					has_dynamic_modifier = { modifier = DEN_occupation_laws_dynamic_modifier } 
				}
				remove_dynamic_modifier = { modifier = DEN_occupation_laws_dynamic_modifier }
			}

			if = {
				limit = {
					check_variable = { DEN_industrial_capabilities_consumer_goods < 0.26 }
				}
				add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
				DEN_improve_industrial_capabilities_NS = yes
				add_to_variable = {
					DEN_industrial_capabilities_consumer_goods = 0.1
					tooltip = consumer_goods_factor_tt
				}
			}
		}
	}

	focus = {
		id = DEN_acquire_military_equipment
		icon = GFX_focus_generic_license_production

		prerequisite = { focus = DEN_adjust_industrial_prioritize }
		prerequisite = { focus = DEN_contribute_to_the_war }
	
		relative_position_id = DEN_seek_industrial_investments
		x = 3
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
		
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {
			add_ideas = DEN_overlord_licensing_ns

			DEN_bop_occupation_very_low_decrease_effect = yes

			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_cas_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = light_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = medium_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = infantry_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = motorized_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = artillery_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = anti_air_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
		}
	}


	focus = {
		id = DEN_contribute_to_the_war
		icon = GFX_focus_generic_full_social_mobilization

		prerequisite = { focus = DEN_align_with_overlord }
	
		relative_position_id = DEN_align_with_overlord
		x = 7
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = yes
			has_government = var:DEN.DEN_overlord_nation
			var:DEN.DEN_overlord_nation = {
				has_opinion = {
					target = ROOT
					value > 24
				}
			}
			power_balance_value = {
				id = DEN_occupation_balance
				value < 0
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER FOCUS_FILTER_MILITARY_CHARACTER }
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_contribute_to_the_war
			}
			add_war_support = 0.1

			DEN_bop_occupation_low_decrease_effect = yes

			if = {
				limit = {
					is_subject = yes
					OVERLORD = {
						OR = {
							has_government = fascism
							has_government = neutrality
						}
					}
				}
				show_unit_leaders_tooltip = DEN_christian_peder_kryssing
				show_unit_leaders_tooltip = DEN_christian_frederik_von_schalburg
			}

			OVERLORD = { country_event = { id = denmark_occupation_event.100 days = 2 } }

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				custom_effect_tooltip = DEN_unlock_military_branch_tt

				OVERLORD = {
					add_to_faction = ROOT
				}

				if = {
					limit = {	
						has_country_flag = DEN_cannot_join_factions_flag
					}
					set_rule = { can_join_factions = yes }
					set_rule = { can_decline_call_to_war = no }
				}

				DEN_restore_manpower = yes

				OVERLORD = {
					add_opinion_modifier = {
						modifier = DEN_cooperative_subject
						target = DEN
					}
				}
			}
		}
	}

	focus = {
		id = DEN_secure_the_norwegian_coast
		icon = GFX_focus_generic_invade_norway

		prerequisite = { focus = DEN_contribute_to_the_war }
	
		relative_position_id = DEN_contribute_to_the_war
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
			NOR = {
				is_in_faction_with = ROOT
			}
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ANNEXATION }

		will_lead_to_war_with = NOR
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_secure_the_norwegian_coast
			}

			if = {
				limit = {
					NOR = {
						exists = yes
					}
				}
				add_timed_idea = {
					idea = DEN_securing_norway_ns
					days = 365
				}
				declare_war_on = {
				    target = NOR
				    type = annex_everything
				}
			}
			else = {
				every_other_country = {
					limit = {
						NOT = { 
							is_in_faction_with = ROOT
						}
						any_controlled_state = {
							is_core_of = NOR
						}
					}
					display_individual_scopes = yes
					every_controlled_state = {
						limit = {
							is_core_of = NOR
						}
						add_to_array = {
							array = PREV.DEN_norwegian_target_states_array
							value = THIS
						}
					}
					ROOT = {
						declare_war_on = {
							type = take_state_focus
							target = PREV
							generator = PREV.DEN_norwegian_target_states_array
						}
					}
				}
			}
		}
	}

	focus = {
		id = DEN_reclaim_atlantic_islands
		icon = GFX_focus_generic_north_atlantic_fleet

		prerequisite = { focus = DEN_secure_the_norwegian_coast }
	
		relative_position_id = DEN_contribute_to_the_war
		x = -1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			OR = {
				100 = { NOT = {	is_controlled_by = ROOT }}
				101 = { NOT = {	is_controlled_by = ROOT }}
				337 = { NOT = {	is_controlled_by = ROOT }}
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ANNEXATION }

		will_lead_to_war_with = ICE
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_reclaim_atlantic_islands
			}
			if = {
				limit = {
					ICE = {
						exists = no
					}
					NOT = {
						100 = {is_controlled_by = ROOT }
						any_allied_country = {
							controls_state = 100
						}
					}
				}
				100 = {
					CONTROLLER = {
						ROOT = {
							declare_war_on = {
							    target = PREV
							    type = take_state_focus
							    generator = { 100 }
							}
						}
					}
				}
				else_if = {
					limit = {
						NOT = {
							any_allied_country = {
								has_subject = ICE
							}
						}
					}
					declare_war_on = {
					    target = ICE
					    type = annex_everything
					}
				}
			}
			if = {
				limit = {
					101 = { NOT = {	is_controlled_by = ROOT }}
					NOT = {
						any_allied_country = {
							controls_state = 101
						}
					}
				}
				101 = {
					CONTROLLER = {
						ROOT = {
							declare_war_on = {
							    target = PREV
							    type = take_state_focus
							    generator = { 101 }
							}
						}
					}
				}
			}
			if = {
				limit = {
					337 = { NOT = {	is_controlled_by = ROOT }}
					NOT = {
						any_allied_country = {
							controls_state = 337
						}
					}
				}
				337 = {
					CONTROLLER = {
						ROOT = {
							declare_war_on = {
							    target = PREV
							    type = take_state_focus
							    generator = { 337 }
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = DEN_claim_sweden
		icon = GFX_focus_generic_invade_sweden

		prerequisite = { focus = DEN_contribute_to_the_war }
	
		relative_position_id = DEN_contribute_to_the_war
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
			SWE = {
				is_in_faction_with = ROOT
			}
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ANNEXATION }

		will_lead_to_war_with = SWE
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_claim_sweden
			}
			if = {
				limit = {
					SWE = {
						exists = yes
					}
				}
				add_timed_idea = {
					idea = DEN_securing_sweden_ns
					days = 365
				}
				declare_war_on = {
				    target = SWE
				    type = annex_everything
				}
			}
			else = {
				every_other_country = {
					limit = {
						NOT = { 
							is_in_faction_with = ROOT
						}
						any_controlled_state = {
							is_core_of = SWE
						}
					}
					display_individual_scopes = yes
					every_controlled_state = {
						limit = {
							is_core_of = SWE
						}
						add_to_array = {
							array = PREV.DEN_swedish_target_states_array
							value = THIS
						}
					}
					ROOT = {
						declare_war_on = {
							type = take_state_focus
							target = PREV
							generator = PREV.DEN_swedish_target_states_array
						}
					}
				}
			}
		}
	}

	focus = {
		id = DEN_safeguard_the_eastern_front
		icon = GFX_focus_generic_invade_finland

		prerequisite = { focus = DEN_claim_sweden }
	
		relative_position_id = DEN_contribute_to_the_war
		x = 1
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			FIN = {
				NOT = {
					is_in_faction_with = ROOT
				}
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ANNEXATION }

		will_lead_to_war_with = FIN
	
		completion_reward = {
			add_autonomy_score = { 
				value = 100 
				localization = DEN_safeguard_the_eastern_front
			}
			if = {
				limit = {
					FIN = {
						exists = yes
					}
				}
				add_timed_idea = {
					idea = DEN_securing_finland_ns
					days = 365
				}
				declare_war_on = {
				    target = FIN
				    type = annex_everything
				}
			}
			else = {
				every_other_country = {
					limit = {
						NOT = { 
							is_in_faction_with = ROOT
						}
						any_controlled_state = {
							is_core_of = FIN
						}
					}
					display_individual_scopes = yes
					every_controlled_state = {
						limit = {
							is_core_of = FIN
						}
						add_to_array = {
							array = PREV.DEN_finnish_target_states_array
							value = THIS
						}
					}
					ROOT = {
						declare_war_on = {
							type = take_state_focus
							target = PREV
							generator = PREV.DEN_finnish_target_states_array
						}
					}
				}
			}
		}
	}

############################
############################
#### POLITICAL BRANCHES ####
############################
############################


	#### DEMOCRATIC BRANCH ####


	focus = {
		id = DEN_declare_neutrality
		icon = GFX_goal_generic_alliance
	
		x = 30
		y = 0
		
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				is_subject = no
			}
		}

		offset = {
			x = 20
			y = 0
			trigger= {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = SHOW
				}		
				is_subject = yes
			}
		}

		offset = {
			x = -10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_political_unity
			}
		}

		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_unify_the_right
			}
		}

		offset = {
			x = 20
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_country_flag = DEN_has_occupation_flag
				is_subject = no
			}
		}

		cost = 5
	
		bypass = {
			OR = {
				is_subject = yes
				has_war = yes
			}
		}
	
		available = {
			has_war = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 100
			add_stability = 0.05

			DEN_bop_very_low_decrease_effect = yes

			custom_effect_tooltip = DEN_unlocks_bop_decisions_tt

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_ideas = {
					DEN_declaration_of_neutrality
				}
				else = {
					add_ideas = {
						DEN_declaration_of_neutrality_no_BBA
					}
				}
			}

			hidden_effect = {
				set_country_flag = DEN_neutrality_flag
			}
		}
	}

	focus = {
		id = DEN_political_unity
		icon = GFX_goal_generic_major_alliance

		prerequisite = { focus = DEN_declare_neutrality }
		mutually_exclusive = { focus = DEN_unify_the_right }

		relative_position_id = DEN_declare_neutrality	
		x = -10
		y = 1
	
		cost = 5

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = DEN_unify_the_right }
				is_subject = no
			}
		}

		offset = {
			x = 10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_political_unity
			}
		}

	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 100
			add_stability = 0.05

			if = {
				limit = {
					check_variable = { ROOT.party_popularity@ruling_party < 0.4 }
				}
				add_popularity = { ideology = ROOT popularity = 0.1 }
			}
			else_if = {
				limit = {
					check_variable = { ROOT.party_popularity@ruling_party < 0.6 }
				}
				add_popularity = { ideology = ROOT popularity = 0.05 }
			}

			#custom_effect_tooltip = "TODO_DANNE: Unlock Decisions: Political Actions?"

			mark_focus_tree_layout_dirty = yes
		}
	}

	focus = {
		id = DEN_policy_of_disarmament
		icon = GFX_goal_generic_neutrality_focus

		prerequisite = { focus = DEN_political_unity }
		mutually_exclusive = { focus = DEN_start_the_rearmament }

		relative_position_id = DEN_political_unity	
		x = -4
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			power_balance_value = {
				id = DEN_balance_of_power
				value < 0
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 75
			add_stability = 0.05
			add_war_support = -0.05

			DEN_bop_medium_decrease_effect = yes

			if = {
				limit = {
					DEN_christmas_moller = {
						is_hired_as_advisor = yes
					}
				}
				deactivate_advisor = DEN_christmas_moller
			}

			custom_effect_tooltip = DEN_increase_warfare_bop_cost_tt
			add_to_variable = {	DEN_bop_increase_low_cost = 50 }
			add_to_variable = {	DEN_bop_increase_medium_cost = 50 }
			add_to_variable = {	DEN_bop_increase_high_cost = 50 }
			add_to_variable = {	DEN_bop_increase_very_high_cost = 50 }
		}
	}

	focus = {
		id = DEN_import_machinery_and_material
		icon = GFX_goal_generic_production

		prerequisite = { focus = DEN_policy_of_disarmament }

		relative_position_id = DEN_policy_of_disarmament	
		x = -3
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
			}
			is_Subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_tech_bonus = {
				name = DEN_import_machinery_and_material
				bonus = 0.5
				uses = 2
				category = cat_production
			}
		}
	}

	focus = {
		id = DEN_modernize_agricultural_machinery
		icon = GFX_focus_generic_farmland

		prerequisite = { focus = DEN_import_machinery_and_material }

		relative_position_id = DEN_import_machinery_and_material	
		x = -1
		y = 1
		
		cost = 10
	
		bypass = {
			NOT = {	has_full_control_of_state = 99 }
			NOT = {	has_full_control_of_state = 912	}
		}

		available = {
			OR = {
				has_full_control_of_state = 99
				has_full_control_of_state = 912
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			custom_effect_tooltip = DEN_develop_jutland_states_tt

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 99 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_agricultural_reinvestments
		icon = GFX_focus_SOV_breadbasket_of_the_union

		prerequisite = { focus = DEN_modernize_agricultural_machinery }

		relative_position_id = DEN_import_machinery_and_material	
		x = -3
		y = 2
	
		cost = 10
	
		bypass = {
			NOT = { has_full_control_of_state = 99 }
			NOT = {	has_full_control_of_state = 912 }
		}

		available = {
			OR = {
				has_full_control_of_state = 99
				has_full_control_of_state = 912
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
					}
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.1
				tooltip = conscription_factor_tt
			}

			if = {
				limit = {
					99 = { 
						is_fully_controlled_by = ROOT
					}
				}
				99 = {
					add_extra_state_shared_building_slots = 1
				}
			}
			if = {
				limit = {
					912 = { 
						is_fully_controlled_by = ROOT
					}
				}
				912 = {
					add_extra_state_shared_building_slots = 1
				}
			}
		}
	}

	focus = {
		id = DEN_industrial_reinvestments
		icon = GFX_focus_generic_industry_3

		prerequisite = { focus = DEN_modernize_agricultural_machinery }

		relative_position_id = DEN_import_machinery_and_material	
		x = -1
		y = 2
	
		cost = 10
	
		bypass = {
			NOT = {	has_full_control_of_state = 37 }
			NOT = {	has_full_control_of_state = 911 }
		}

		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = -0.1
				tooltip = conscription_factor_tt
			}

			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
					}
				}
				37 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
					}
				}
				911 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_increase_produce_production
		icon = GFX_goal_generic_consumer_goods

		prerequisite = { focus = DEN_agricultural_reinvestments }

		relative_position_id = DEN_import_machinery_and_material	
		x = -3
		y = 3
	
		cost = 10
	
		bypass = {

		}
	
		available = {
			is_subject = no
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.1
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_global_building_slots = 0.1
				tooltip = global_building_slots_factor_tt
			}
		}
	}

	focus = {
		id = DEN_modernize_industrial_machinery
		icon = GFX_focus_generic_modernize_industry

		prerequisite = { focus = DEN_import_machinery_and_material }

		relative_position_id = DEN_import_machinery_and_material	
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {

		}
	
		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
			}
			is_subject = no
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			custom_effect_tooltip = DEN_develop_island_states_tt

			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 37 911 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_increase_industrial_production
		icon = GFX_goal_generic_production2

		prerequisite = { focus = DEN_modernize_industrial_machinery }

		relative_position_id = DEN_import_machinery_and_material	
		x = 3
		y = 2
	
		cost = 10
	
		bypass = {
			NOT = {	has_full_control_of_state = 37 }
			NOT = {	has_full_control_of_state = 911 }
		}

		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
			}
			is_subject = no
		}

	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
					}
				}
				37 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
					}
				}
				911 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_research_and_development
		icon = GFX_focus_research2

		prerequisite = { focus = DEN_modernize_industrial_machinery }

		relative_position_id = DEN_import_machinery_and_material	
		x = 1
		y = 2
	
		cost = 10
	
		bypass = {

		}
	
		available = {
			is_subject = no
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH }
	
		completion_reward = {
			add_tech_bonus = {
				name = DEN_research_and_development
				bonus = 0.5
				uses = 3
				category = electronics
				category = cat_production
				category = synth_resources
			}
			add_tech_bonus = {
				name = DEN_research_and_development
				ahead_reduction = 1
				uses = 3
				category = electronics
				category = cat_production
				category = synth_resources
			}
		}
	}
	focus = {
		id = DEN_north_sea_oil_drilling
		icon = GFX_focus_generic_offshore_oil_rig

		prerequisite = { focus = DEN_research_and_development }
		prerequisite = { focus = DEN_industrial_reinvestments }
	
		relative_position_id = DEN_import_machinery_and_material
		x = 0
		y = 3
	
		cost = 10
	
		bypass = {

		}
	
		available = {
			has_full_control_of_state = 99
			has_tech = excavation3
			is_subject = no
		}
			
		available_if_capitulated = yes
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			#unlock_decision_tooltip = danish_north_sea_oil

			99 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = oil
					amount = 12
				}
			}
			if = {
				limit = {
					NOT = {
						has_tech = synth_oil_experiments
					}
				}
				custom_effect_tooltip = DEN_potential_refinery_tt
			}
			else = {
				99 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = synthetic_refinery
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_increase_maritime_trade
		icon = GFX_focus_generic_merchant_fleet

		prerequisite = { focus = DEN_increase_industrial_production }
	
		relative_position_id = DEN_import_machinery_and_material
		x = 3
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			any_controlled_state = { 
				is_coastal = yes
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_equipment_to_stockpile = { 
				type = convoy
				amount = 50 
				producer = DEN
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_ship_repair = 0.1
				tooltip = repair_speed_factor_tt
			}

			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 911 99 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_full_employment
		icon = GFX_focus_generic_full_employment

		prerequisite = { focus = DEN_increase_produce_production focus = DEN_increase_maritime_trade focus = DEN_north_sea_oil_drilling }
		mutually_exclusive = { focus = DEN_limited_social_mobilization focus = DEN_five_year_plan focus = DEN_full_social_mobilization }

		relative_position_id = DEN_import_machinery_and_material	
		x = 0
		y = 4
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 100
			add_stability = 0.1

			DEN_bop_medium_decrease_effect = yes

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = -0.1
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.05
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.2
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.05
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.05
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.05
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_social_stability
		icon = GFX_goal_generic_national_unity

		prerequisite = { focus = DEN_policy_of_disarmament focus = DEN_start_the_rearmament }

		relative_position_id = DEN_political_unity	
		x = 0
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 50
			add_stability = 0.05
			unlock_decision_tooltip = DEN_bop_ban_all_political_uniforms
		}
	}

	focus = {
		id = DEN_build_motorveje
		icon = GFX_goal_generic_construct_infrastructure
	
		prerequisite = { focus = DEN_social_stability }

		relative_position_id = DEN_social_stability	
		x = 0
		y = 1
	
		cost = 10
	
		bypass = {
			OR = {
				AND = {
					NOT = { has_full_control_of_state = 37 }
					NOT = {	has_full_control_of_state = 911 }
					NOT = {	has_full_control_of_state = 99 }
					NOT = {	has_full_control_of_state = 912 }
				}
				AND = {
					37 = { infrastructure > 4 }
					911 = { infrastructure > 4 }
					99 = { infrastructure > 4 }
					912 = { infrastructure > 4 }
				}
			}
		}
	
		available = {
			OR = {
				has_full_control_of_state = 37
				has_full_control_of_state = 911
				has_full_control_of_state = 99
				has_full_control_of_state = 912
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {

			if = {
				limit = {
					37 = { #Sjaelland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				37 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				911 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					99 = { #Norrejylland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				99 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
			if = {
				limit = {
					912 = { #Sondrejylland
						is_fully_controlled_by = ROOT
						infrastructure < 5
					}
				}
				912 = { 
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			else = { add_cic = 2000 }
		}
	}

	focus = {
		id = DEN_heavy_market_regulations
		icon = GFX_focus_DEN_heavy_regulations

		prerequisite = { focus = DEN_build_motorveje }
		mutually_exclusive = { focus = DEN_limited_market_regulations focus = DEN_no_market_regulations }

		relative_position_id = DEN_social_stability	
		x = -2
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			
			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.1
				tooltip = production_lack_of_resource_penalty_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_max_fuel = 0.1
				tooltip = max_fuel_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_civilian_intel_to_others = -15
				tooltip = civilian_intel_to_others_tt
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.1
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capability_resources_to_market = -0.1
				tooltip = min_export_tt
			}
		}
	}

	focus = {
		id = DEN_limited_market_regulations
		icon = GFX_focus_DEN_limited_regulations

		prerequisite = { focus = DEN_build_motorveje }
		mutually_exclusive = { focus = DEN_heavy_market_regulations focus = DEN_no_market_regulations }

		relative_position_id = DEN_social_stability	
		x = 0
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_fuel_gain = 0.1
				tooltip = fuel_gain_add_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			custom_effect_tooltip = DEN_industrial_research_bonus_tt
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.1
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.1
				tooltip = consumer_goods_factor_tt
			}

			hidden_effect = { #This is done for tooltip purposes so that the research bonus is shown in the dynamic modifier
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation }
				}
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_improved }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_improved }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation_improved }
				}
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_max_improved }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_max_improved }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation_max_improved }
				}
					add_ideas = DEN_light_market_regulation_research_bonus
			}
		}
	}

	focus = {
		id = DEN_no_market_regulations
		icon = GFX_focus_DEN_no_regulations

		prerequisite = { focus = DEN_build_motorveje }
		mutually_exclusive = { focus = DEN_heavy_market_regulations focus = DEN_limited_market_regulations }

		relative_position_id = DEN_social_stability	
		x = 2
		y = 2
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH }
	
		completion_reward = {
			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.05
				tooltip = production_lack_of_resource_penalty_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_max_fuel = 0.05
				tooltip = max_fuel_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_fuel_gain = 0.1
				tooltip = fuel_gain_add_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_civilian_intel_to_others = 10
				tooltip = civilian_intel_to_others_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			custom_effect_tooltip = DEN_industrial_research_bonus_tt
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.15
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.15
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capability_resources_to_market = 0.1
				tooltip = min_export_tt
			}

			hidden_effect = { #This is done for tooltip purposes so that the research bonus is shown in the dynamic modifier
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation }
				}
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_improved }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_improved }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation_improved }
				}
				if = {
					limit = {
						has_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_max_improved }
					}
					remove_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_max_improved }
					add_dynamic_modifier = { modifier = DEN_industrial_capability_dynamic_modifier_light_regulation_max_improved }
				}
					add_ideas = DEN_light_market_regulation_research_bonus
			}
		}
	}

	focus = {
		id = DEN_welcome_foreign_scientists
		icon = GFX_focus_research

		prerequisite = { focus = DEN_heavy_market_regulations focus = DEN_limited_market_regulations focus = DEN_no_market_regulations }

		relative_position_id = DEN_social_stability	
		x = 0
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
			}
			num_of_civilian_factories > 24
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_research_slot = 1

			add_tech_bonus = {
				name = DEN_welcome_foreign_scientists
				bonus = 0.5
				uses = 1
				category = electronics
			}
		}
	}

	focus = {
		id = DEN_side_with_unions
		icon = GFX_focus_generic_workers

		prerequisite = { focus = DEN_welcome_foreign_scientists }
		mutually_exclusive = { focus = DEN_side_with_industry }

		relative_position_id = DEN_social_stability	
		x = -1
		y = 4
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_stability = 0.1

			if = {
				limit = {
					check_variable = { ROOT.party_popularity@ruling_party < 0.76 }
				}
				add_popularity = {
				    ideology = ROOT
				    popularity = 0.05
				}
			}

			add_popularity = {
				ideology = communism
				popularity = 0.05
			}

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = -0.1
				tooltip = conscription_factor_tt
			}
			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.1
				tooltip = consumer_goods_factor_tt
			}
		}
	}

	focus = {
		id = DEN_side_with_industry
		icon = GFX_focus_generic_industrialists

		prerequisite = { focus = DEN_welcome_foreign_scientists }
		mutually_exclusive = { focus = DEN_side_with_unions }

		relative_position_id = DEN_social_stability	
		x = 1
		y = 4
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			add_political_power = 50
			add_stability = -0.05

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.1
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_global_building_slots = 0.1
				tooltip = global_building_slots_factor_tt
			}
		}
	}

	focus = {
		id = DEN_five_year_plan
		icon = GFX_focus_generic_communist_industry

		prerequisite = { focus = DEN_heavy_market_regulations } 
		prerequisite = { focus = DEN_side_with_unions focus = DEN_side_with_industry } 
		mutually_exclusive = { focus = DEN_limited_social_mobilization focus = DEN_full_employment focus = DEN_full_social_mobilization }

		relative_position_id = DEN_social_stability	
		x = -2
		y = 5
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			has_government = communism
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {
			add_political_power = 150
			add_stability = 0.05

			if = {
				limit = {
					communism < 0.6
				}
				add_popularity = {
					ideology = communism
					popularity = 0.1
				}
			}
			else = {
				add_popularity = {
					ideology = communism
					popularity = 0.05
				}
			}

			DEN_bop_low_decrease_effect = yes

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.05
				tooltip = production_lack_of_resource_penalty_factor_tt
			}

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.2
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.1
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.25
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_global_building_slots = 0.15
				tooltip = global_building_slots_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.1
				tooltip = industrial_capacity_dockyard_tt
			}
		}
	}

	focus = {
		id = DEN_limited_social_mobilization
		icon = GFX_focus_generic_limited_social_mobilization

		prerequisite = { focus = DEN_side_with_unions focus = DEN_side_with_industry } 
		mutually_exclusive = { focus = DEN_full_employment focus = DEN_five_year_plan focus = DEN_full_social_mobilization }

		relative_position_id = DEN_social_stability	
		x = 2
		y = 5
	
		cost = 10
	
		bypass = {
		}
	
		available = {
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }
	
		completion_reward = {
			add_political_power = 75
			add_stability = 0.05
			add_war_support = 0.05

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.2
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.1
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.05
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.1
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.05
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_start_the_rearmament
		icon = GFX_focus_generic_combined_arms

		prerequisite = { focus = DEN_political_unity }
		mutually_exclusive = { focus = DEN_policy_of_disarmament }

		relative_position_id = DEN_political_unity	
		x = 4
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {
			add_political_power = 50

			DEN_bop_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_speak_out_in_favor_of_rearmament
			unlock_decision_tooltip = DEN_bop_hold_a_military_parade

			custom_effect_tooltip = DEN_increase_welfare_bop_cost_tt
			add_to_variable = {	DEN_bop_decrease_low_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_medium_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_high_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_very_high_cost = 25 }

			if = {
				limit = {
					DEN_peter_rochegune_munch = {
						is_hired_as_advisor = yes
					}
				}
				deactivate_advisor = DEN_peter_rochegune_munch
			}
		}
	}

	focus = {
		id = DEN_national_unity
		icon = GFX_focus_DEN_national_unity

		prerequisite = { focus = DEN_start_the_rearmament }
	
		relative_position_id = DEN_start_the_rearmament
		x = 1
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_MANPOWER }
	
		completion_reward = {
			add_war_support = 0.05

			DEN_bop_very_low_increase_effect = yes

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.1
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				DEN_political_edicts_drift_defence_factor = 0.1
				tooltip = drift_defence_factor_tt
			}

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_defensive_war_stability = 0.05
				tooltip = defensive_war_stability_factor_tt
			}
		}
	}

	focus = {
		id = DEN_industrial_preparations
		icon = GFX_focus_generic_modernize_industry

		prerequisite = { focus = DEN_national_unity }

		relative_position_id = DEN_national_unity	
		x = 0
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {

			DEN_bop_very_low_increase_effect = yes

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.05
				tooltip = production_lack_of_resource_penalty_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_max_fuel = 0.05
				tooltip = max_fuel_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_fuel_gain = 0.05
				tooltip = fuel_gain_add_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_army_intel_to_others = -10
				tooltip = army_intel_to_others_tt
			}
			add_to_variable = {
				DEN_war_preparations_navy_intel_to_others = -10
				tooltip = navy_intel_to_others_tt
			}
		}
	}

	focus = {
		id = DEN_military_preparations
		icon = GFX_focus_generic_tank_air_support

		prerequisite = { focus = DEN_industrial_preparations }
		relative_position_id = DEN_national_unity
		x = -1
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP }
	
		completion_reward = {

			#DEN_bop_very_low_increase_effect = yes

			unlock_decision_tooltip = DEN_bop_landstorm

			DEN_improve_haeren_NS = yes
			
			add_to_variable = { 
				DEN_haeren_army_org = 0.05 
				tooltip = army_org_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_core_attack = 0.05 
				tooltip = army_core_attack_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_core_defence = 0.05 
				tooltip = army_core_defence_factor_tt
			}

			unlock_decision_tooltip = {
				decision = DEN_army_drills
				show_effect_tooltip = yes 
			}
			unlock_decision_tooltip = {
				decision = DEN_navy_drills
				show_effect_tooltip = yes 
			}
			unlock_decision_tooltip = {
				decision = DEN_air_drills
				show_effect_tooltip = yes 
			}
				#event_option_tooltip = denmark_events.10.a

			#ROOT = { country_event = { id = denmark_events.10 days =  30 }}

		}
	}

	focus = {
		id = DEN_civilian_preparations
		icon = GFX_focus_DEN_civilian_preparations

		prerequisite = { focus = DEN_industrial_preparations }
		relative_position_id = DEN_national_unity
		x = 1
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	
		completion_reward = {
			add_war_support = 0.05

			#DEN_bop_very_low_increase_effect = yes

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_defensive_war_stability = 0.1
				tooltip = defensive_war_stability_factor_tt
			}		
			add_to_variable = {
				DEN_war_preparations_weekly_casualties_war_support = 0.001
				tooltip = weekly_casualties_war_support_tt
			}
			add_to_variable = {
				DEN_war_preparations_weekly_bombing_war_support = 0.001
				tooltip = weekly_bombing_war_support_tt
			}
			add_to_variable = {
				DEN_war_preparations_weekly_convoys_war_support = 0.001
				tooltip = weekly_convoys_war_support_tt
			}
		}
	}

	focus = {
		id = DEN_full_social_mobilization
		icon = GFX_focus_generic_full_social_mobilization

		prerequisite = { focus = DEN_civilian_preparations }
		prerequisite = { focus = DEN_military_preparations } 

		mutually_exclusive = { focus = DEN_full_employment focus = DEN_five_year_plan focus = DEN_limited_social_mobilization }

		relative_position_id = DEN_industrial_preparations	
		x = 0
		y = 3
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.3
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			add_political_power = 100
			add_war_support = 0.1

			DEN_bop_low_increase_effect = yes

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.3
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.2
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.1
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.1
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.1
				tooltip = equipment_conversion_speed_tt
			}
		}
	}

	focus = {
		id = DEN_seek_protection
		icon = GFX_goal_generic_military_sphere

		prerequisite = { focus = DEN_national_unity focus = DEN_king_assumes_power }

		relative_position_id = DEN_national_unity	
		x = 5
		y = 1
	
		cost = 5

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				OR = { #This convoluted mess is necessary since its "Parent Branch" is hidden when completing DEN_unify_the_right
					NOT = { has_completed_focus = DEN_political_unity }
					NOT = { has_completed_focus = DEN_unify_the_right }
					has_completed_focus = DEN_political_unity
					has_completed_focus = DEN_unify_the_right
				}
				is_subject = no
			}
		}

		offset = {
			x = -9
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_unify_the_right
			}
		}
	
		bypass = {
		}
	
		available = {
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.3
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER }
	
		completion_reward = {
			add_war_support = 0.1

			DEN_bop_very_low_increase_effect = yes
		}
	}

	focus = {
		id = DEN_sign_non_aggression_deal
		icon = GFX_goal_generic_major_alliance

		prerequisite = { focus = DEN_seek_protection }

		relative_position_id = DEN_seek_protection	
		x = -2
		y = 1
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_in_faction = no
			has_war = no
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL }
	
		completion_reward = {
			unlock_decision_tooltip = { decision =  DEN_seek_guarantor show_effect_tooltip = yes }
		}
	}

	focus = {
		id = DEN_sign_a_trade_deal
		icon = GFX_goal_generic_positive_trade_relations

		prerequisite = { focus = DEN_sign_non_aggression_deal }

		relative_position_id = DEN_sign_non_aggression_deal	
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			if = {
				limit = {
					NOT = { has_country_flag = DEN_has_non_aggression_flag }
				}
				custom_trigger_tooltip = { 
					tooltip = DEN_has_non_aggression_pact_signator_tt
					any_other_country = {
						OR = {
							original_tag = ENG
							original_tag = GER
							original_tag = SOV
							original_tag = USA
						}
						has_variable = DEN_guaranteeing_nation
					}
				}
			}
			else = {
				var:DEN.DEN_guaranteeing_nation = {
					has_opinion = {
						target = ROOT
						value > 24
					}
				}
				NOT = {
					has_war_with = var:DEN.DEN_guaranteeing_nation
					is_justifying_wargoal_against = var:DEN.DEN_guaranteeing_nation
					var:DEN.DEN_guaranteeing_nation = { is_justifying_wargoal_against = ROOT }
				}
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {

			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_airframe
				seller_trigger = DEN_guarantor_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = light_tank_chassis
				seller_trigger = DEN_guarantor_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = medium_tank_chassis
				seller_trigger = DEN_guarantor_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = infantry_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = motorized_equipment
				seller_trigger = DEN_guarantor_seller_trigger 
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = artillery_equipment
				seller_trigger = DEN_guarantor_seller_trigger 
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = anti_air_equipment
				seller_trigger = DEN_guarantor_seller_trigger 
			}
			

			var:DEN.DEN_guaranteeing_nation = { country_event = { id = denmark_protection_event.4 days = 2 }}
			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip =  denmark_protection_event.5.a
		}
	}

	focus = {
		id = DEN_science_pact
		icon = GFX_goal_tfv_generic_tech_sharing

		prerequisite = { focus = DEN_sign_non_aggression_deal }

		relative_position_id = DEN_sign_non_aggression_deal	
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			if = {
				limit = {
					NOT = { has_country_flag = DEN_has_non_aggression_flag }
				}
				custom_trigger_tooltip = { 
					tooltip = DEN_has_non_aggression_pact_signator_tt
					any_other_country = {
						OR = {
							original_tag = ENG
							original_tag = GER
							original_tag = SOV
							original_tag = USA
						}
						has_variable = DEN_guaranteeing_nation
					}
				}
			}
			else = {
				var:DEN.DEN_guaranteeing_nation = {
					has_opinion = {
						target = ROOT
						value > 24
					}
				}
				NOT = {
					has_war_with = var:DEN.DEN_guaranteeing_nation
					is_justifying_wargoal_against = var:DEN.DEN_guaranteeing_nation
					var:DEN.DEN_guaranteeing_nation = { is_justifying_wargoal_against = ROOT }
				}
			}
			is_subject = no
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_country_flag = DEN_has_non_aggression_flag
					}
				}
				custom_effect_tooltip = DEN_effects_may_vary_science_pact_tt 
			}
			else = {
				var:DEN.DEN_guaranteeing_nation = { country_event = { id =  denmark_protection_event.7 days = 2 }}
			}
		}
	}

	focus = {
		id = DEN_territory_for_protection
		icon = GFX_focus_generic_concessions

		prerequisite = { focus = DEN_sign_a_trade_deal focus = DEN_science_pact }

		relative_position_id = DEN_sign_non_aggression_deal	
		x = 0
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			is_subject = no
			if = {
				limit = {
					NOT = { has_country_flag = DEN_has_non_aggression_flag }
				}
				custom_trigger_tooltip = { 
					tooltip = DEN_has_non_aggression_pact_signator_tt
					any_other_country = {
						OR = {
							original_tag = ENG
							original_tag = GER
							original_tag = SOV
							original_tag = USA
						}
						has_variable = DEN_guaranteeing_nation
					}
				}
			}
			else = {
				var:DEN.DEN_guaranteeing_nation = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
				NOT = {
					has_war_with = var:DEN.DEN_guaranteeing_nation
					is_justifying_wargoal_against = var:DEN.DEN_guaranteeing_nation
					var:DEN.DEN_guaranteeing_nation = { is_justifying_wargoal_against = ROOT }
				}
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	
		completion_reward = {
			add_stability = -0.05
			if = {
				limit = {
					NOT = {
						has_country_flag = DEN_has_non_aggression_flag
					}
				}
				custom_effect_tooltip = DEN_transfer_territory_tt 
			}
			else = {
				var:DEN.DEN_guaranteeing_nation = { country_event = { id =  denmark_protection_event.10 days = 5 }}
				custom_effect_tooltip = if_they_accept_tt
			}
			effect_tooltip = {
				DEN_sell_territory_for_guarantees = yes
				give_guarantee = DEN
				DEN = {
					add_offsite_building = { type = industrial_complex level = 2 }
					add_offsite_building = { type = arms_factory level = 2 }
				}
			}
		}
	}

	focus = {
		id = DEN_strength_in_numbers
		icon = GFX_goal_tripartite_pact

		prerequisite = { focus = DEN_seek_protection }
		mutually_exclusive = { focus = DEN_scandinavian_security }

		relative_position_id = DEN_seek_protection	
		x = 2
		y = 1
	
		cost = 5
	
		bypass = {
			is_in_faction = yes
		}
	
		available = {
			is_in_faction = no
			is_subject = no
			has_army_manpower = { size > 49999 }
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.6
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL }
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				remove_ideas = {
					DEN_declaration_of_neutrality
				}
				else = {
					remove_ideas = {
						DEN_declaration_of_neutrality_no_BBA
					}
				}
			}
			unlock_decision_tooltip = DEN_seek_an_alliance
			custom_effect_tooltip = DEN_effects_may_vary_tech_sharing_tt
			custom_effect_tooltip = DEN_joint_military_drills_tt
		}
	}

	focus = {
		id = DEN_military_cooperation_program
		icon = GFX_goal_generic_scientific_exchange

		prerequisite = { focus = DEN_strength_in_numbers }

		relative_position_id = DEN_strength_in_numbers	
		x = -1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_in_faction = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNATIONAL_TRADE }
	
		completion_reward = {
			if = { #For TT purposes
				limit = {
					is_in_faction = no
					NOT = {
						has_country_flag = DEN_seeks_alliance_flag
					}
				}
				custom_effect_tooltip = DEN_effects_may_vary_tech_sharing_tt 
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = DEN_seeks_alliance_flag
					}
				}
				if = {
					limit = {
						is_faction_leader = yes
					}
					every_other_country = {
						limit = {
							is_in_faction_with = ROOT
						}
						country_event = { id =  denmark_protection_event.120 days = 5 }
					}
					custom_effect_tooltip = if_they_accept_tt
					effect_tooltip = {
						DEN_alliance_tech_sharing = yes
					}
				}
				else_if = {
					limit = {
						is_faction_leader = no
					}
					faction_leader = {
						country_event = { id =  denmark_protection_event.120 days = 5 }
					}
					custom_effect_tooltip = if_they_accept_tt
					effect_tooltip = {
						DEN_alliance_tech_sharing = yes
					}
				}
			}
			else = {
				var:DEN.DEN_allied_nation = { country_event = { id =  denmark_protection_event.120 days = 5 }}
			}

			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_cas_airframe
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = light_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = medium_tank_chassis
				seller_trigger = DEN_allied_weapons_seller_trigger
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = artillery_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger 
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = anti_air_equipment
				seller_trigger = DEN_allied_weapons_seller_trigger 
			}
		}
	}

	focus = {
		id = DEN_joint_military_drills
		icon = GFX_focus_generic_military_mission

		prerequisite = { focus = DEN_strength_in_numbers }

		relative_position_id = DEN_strength_in_numbers	
		x = 1
		y = 1
	
		cost = 10
	
		bypass = {
		}
	
		available = {
			is_in_faction = yes
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP }
	
		completion_reward = {
			if = {
				limit = {
					is_in_faction = no
					NOT = {
						has_country_flag = DEN_seeks_alliance_flag
					}
				}
				custom_effect_tooltip = DEN_effects_may_vary_military_cooperation_tt
			}
			else_if = {
				limit = {
					is_in_faction = yes
					NOT = {
						has_country_flag = DEN_seeks_alliance_flag
					}
				}
				custom_effect_tooltip = DEN_effects_may_vary_military_cooperation_tt
			}
			else = {
				DEN_joint_military_cooperation = yes
				var:DEN.DEN_allied_nation = { country_event = { id = denmark_protection_event.110 days = 10 }}
			}
			custom_effect_tooltip = if_they_accept_tt
			event_option_tooltip = denmark_protection_event.111.a
		}
	}

	focus = {
		id = DEN_nordic_security
		icon = GFX_focus_SWE_the_nordic_defense_council

		prerequisite = { focus = DEN_military_cooperation_program focus = DEN_joint_military_drills }

		relative_position_id = DEN_strength_in_numbers	
		x = 0
		y = 2
	
		cost = 5
	
		bypass = {
		}
	
		available = {
			OR = {
				is_in_faction = yes
			}
			has_army_manpower = { size > 99999 }
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.6
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_ANNEXATION }
	
		completion_reward = {
			DEN_bop_low_increase_effect = yes 

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_attack_against_minor = 0.1
				tooltip = army_attack_against_minor_factor_tt
			}

			set_country_flag = DEN_invite_the_nordics_flag

			custom_effect_tooltip =  DEN_invite_nordic_countries_tt

			custom_effect_tooltip = if_they_accept_tt
			custom_effect_tooltip = add_to_faction_tt
			custom_effect_tooltip = if_they_refuse_tt
			custom_effect_tooltip =  DEN_invade_nordic_countries_tt
		}
	}



	#### MONARCHIST ####

	focus = {
		id = DEN_unify_the_right
		icon = GFX_goal_generic_dangerous_deal

		prerequisite = { focus = DEN_declare_neutrality }
		mutually_exclusive = { focus = DEN_political_unity }

		relative_position_id = DEN_declare_neutrality
		x = 10
		y = 1
		
		cost = 5

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = DEN_political_unity }
				is_subject = no
			}
		}

		offset = {
			x = -10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_unify_the_right
			}
		}

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_political_power = 50

			add_popularity = {
			    ideology = neutrality
			    popularity = 0.05
			}
			if = {
				limit = {
					has_government = fascism
				}
				add_popularity = {
				    ideology = fascism
				    popularity = 0.05
				}
			}

			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				mark_focus_tree_layout_dirty = yes
			}

			unlock_decision_tooltip = DEN_bop_speak_out_in_favor_of_rearmament
		}
	}

	focus = {
		id = DEN_conservatives_support
		icon = GFX_goal_generic_national_unity

		prerequisite = { focus = DEN_unify_the_right }

		relative_position_id = DEN_unify_the_right
		x = -1
		y = 1
		
		cost = 5

		available = {
			is_subject = no
		}

		bypass = {
			has_completed_focus =  DEN_unify_the_right
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_political_power = 50

			add_popularity = {
			    ideology = democratic
			    popularity = -0.1
			}
		}
	}

	focus = {
		id = DEN_conspire_with_the_officer_corps
		icon = GFX_focus_generic_conspiracy

		prerequisite = { focus = DEN_unify_the_right }

		relative_position_id = DEN_unify_the_right
		x = 1
		y = 1

		cost = 5

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER }

		completion_reward = {
			add_war_support = 0.05

			DEN_bop_very_low_increase_effect = yes

			add_popularity = {
			    ideology = democratic
			    popularity = -0.1
			}

			unlock_decision_tooltip = DEN_bop_hold_a_military_parade
		}
	}

	focus = {
		id = DEN_encourage_paramilitary
		icon = GFX_focus_generic_little_entente

		prerequisite = { focus = DEN_conservatives_support focus = DEN_conspire_with_the_officer_corps }

		relative_position_id = DEN_unify_the_right
		x = -2
		y = 2
		
		cost = 5

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_BALANCE_OF_POWER }

		completion_reward = {
			add_war_support = 0.05

			add_popularity = {
			    ideology = neutrality
			    popularity = 0.05
			}

			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.1
				tooltip = conscription_factor_tt
			}

			unlock_decision_tooltip = DEN_bop_landstorm

			DEN_bop_very_low_increase_effect = yes
		}
	}

	focus = {
		id = DEN_overthrow_the_government
		icon = GFX_focus_eng_concessions_to_the_trade_unions

		prerequisite = { focus = DEN_conservatives_support focus = DEN_conspire_with_the_officer_corps }

		relative_position_id = DEN_unify_the_right
		x = 0
		y = 2
		
		cost = 5

		available = {
			OR = {
				neutrality > 0.4
				fascism > 0.4
				AND = {
					neutrality > 0.2
					fascism > 0.2
				}
			}
			is_subject = no
		}

		bypass = {
			has_completed_focus =  DEN_unify_the_right
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_political_power = 50
			add_stability = -0.2

			set_politics = {
				ruling_party = neutrality
			}

			custom_effect_tooltip = DEN_increase_welfare_bop_cost_tt
			add_to_variable = {	DEN_bop_decrease_low_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_medium_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_high_cost = 25 }
			add_to_variable = {	DEN_bop_decrease_very_high_cost = 25 }

			hidden_effect = {
				set_country_flag = DEN_banned_elections
			}
		}
	}
	
	focus = {
		id = DEN_strengthen_the_officer_corp
		icon = GFX_focus_generic_military_mission

		prerequisite = { focus = DEN_conservatives_support focus = DEN_conspire_with_the_officer_corps }

		relative_position_id = DEN_unify_the_right
		x = 2
		y = 2
		
		cost = 5

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ARMY_XP FOCUS_FILTER_NAVY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_POLITICAL_CHARACTER }

		completion_reward = {
			#custom_effect_tooltip = "TODO_DANNE: Add generals to your side of the civil war"
			add_war_support = 0.05
			add_command_power = 25
			army_experience = 15
			navy_experience = 15
			air_experience = 15

			DEN_bop_very_low_increase_effect = yes

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DEN_cay_lembcke
			show_unit_leaders_tooltip = DEN_christian_peder_kryssing
			show_unit_leaders_tooltip = DEN_christian_frederik_von_schalburg

			every_unit_leader = {
				limit = {
					OR = {
						is_army_leader = yes
						is_navy_leader = yes
					}
				}
				gain_xp = 100
			}
		}
	}

	focus = {
		id = DEN_king_assumes_power
		icon = GFX_focus_DEN_the_king_assumes_power

		prerequisite = { focus = DEN_overthrow_the_government }
		mutually_exclusive = { focus = DEN_march_on_the_capital }

		relative_position_id = DEN_unify_the_right
		x = 0
		y = 3
		
		cost = 5

		available = {
			neutrality > 0.3
			NOT = { has_country_flag = DEN_exiled_royal_family }
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		completion_reward = {
			add_political_power = 100
			add_stability = 0.05

			add_popularity = {
			    ideology = neutrality
			    popularity = 0.05
			}

			DEN_the_king_takes_over = yes
		}
	}

	focus = {
		id = DEN_konge_og_faedreland
		icon = GFX_focus_DEN_national_unity 
		prerequisite = { focus = DEN_king_assumes_power }

		relative_position_id = DEN_king_assumes_power
		x = -1
		y = 1
		
		cost = 5

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.05

			add_popularity = {
			    ideology = neutrality
			    popularity = 0.05
			}

			custom_effect_tooltip = available_chief_of_navy
			show_ideas_tooltip = DEN_frederik_ix

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_defensive_war_stability = 0.1
				tooltip = defensive_war_stability_factor_tt
			}	
			add_to_variable = {
				DEN_war_preparations_army_intel_to_others = -10
				tooltip = army_intel_to_others_tt
			}
			add_to_variable = {
				DEN_war_preparations_navy_intel_to_others = -10
				tooltip = navy_intel_to_others_tt
			}
			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_drift_defence_factor = 0.2
				tooltip = drift_defence_factor_tt
			}			
		}
	}

	focus = {
		id = DEN_align_industries
		icon = GFX_focus_generic_modernize_industry
		prerequisite = { focus = DEN_king_assumes_power }

		relative_position_id = DEN_konge_og_faedreland
		x = 2
		y = 0
		
		cost = 10

		available = {
			is_subject = no
		}

		search_filters = {}

		completion_reward = {
			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.1
				tooltip = production_lack_of_resource_penalty_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_max_fuel = 0.1
				tooltip = max_fuel_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_fuel_gain = 0.1
				tooltip = fuel_gain_add_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_civilian_intel_to_others = -10
				tooltip = civilian_intel_to_others_tt
			}
		}
	}

	focus = {
		id = DEN_the_royal_guard
		icon = GFX_focus_DEN_danish_freedom
		prerequisite = { focus = DEN_konge_og_faedreland }

		relative_position_id = DEN_konge_og_faedreland
		x = -1
		y = 1

		cost = 10

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_org = 0.05 
				tooltip = army_org_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_attack = 0.05 
				tooltip = army_attack_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_defence = 0.05 
				tooltip = army_defence_factor_tt
			}

			add_doctrine_cost_reduction = {
				name = DEN_the_royal_guard
				cost_reduction = 0.25
				uses = 2
				category = special_forces_doctrine
			}
		}
	}

	focus = {
		id = DEN_economic_mobilization_strategy
		icon = GFX_focus_generic_farmland
		prerequisite = { focus = DEN_konge_og_faedreland }
		prerequisite = { focus =  DEN_align_industries }

		relative_position_id = DEN_konge_og_faedreland
		x = 1
		y = 1
		
		cost = 10

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER }

		completion_reward = {
			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.15
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = -0.2
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_global_building_slots = 0.25
				tooltip = global_building_slots_factor_tt
			}

			if = {
				limit = { 
					has_idea = civilian_economy
				}
				add_ideas = low_economic_mobilisation
			}
			else_if = {
				limit = { 
					has_idea = low_economic_mobilisation
				}
				add_ideas = partial_economic_mobilisation
			}
		}
	}

	focus = {
		id = DEN_expand_kobenhavns_university
		icon = GFX_focus_research
		prerequisite = { focus = DEN_align_industries }

		relative_position_id = DEN_konge_og_faedreland
		x = 3
		y = 1

		cost = 10

		available = {
			num_of_civilian_factories > 24
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1

			add_tech_bonus = {
				name = DEN_expand_kobenhavns_university
				bonus = 0.5
				uses = 1
				category = electronics
			}
		}
	}


	focus = {
		id = DEN_scandinavian_security
		icon = GFX_focus_generic_attack_nordic_territory
		prerequisite = { focus = DEN_king_assumes_power }
		mutually_exclusive = { focus = DEN_strength_in_numbers}

		relative_position_id = DEN_king_assumes_power
		x = -5
		y = 2
		
		cost = 5

		available = {
			has_war_support > 0.5
			has_army_manpower = { size > 74999 }
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.3
			}
		}

		cancel_if_invalid = no

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_war_support = 0.05
			
			DEN_bop_low_increase_effect = yes

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_offensive_war_stability = 0.1
				tooltip = offensive_war_stability_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_weekly_casualties_war_support = 0.001
				tooltip = weekly_casualties_war_support_tt
			}
			add_to_variable = {
				DEN_war_preparations_weekly_bombing_war_support = 0.001
				tooltip = weekly_bombing_war_support_tt
			}
			add_to_variable = {
				DEN_war_preparations_weekly_convoys_war_support = 0.001
				tooltip = weekly_convoys_war_support_tt
			}

			country_event = { id = denmark_expansion_event.400 days = 1 } 
		}
	}

	focus = {
		id = DEN_reintegrate_iceland
		icon = GFX_focus_generic_develop_iceland_silhouette
		prerequisite = { focus = DEN_scandinavian_security focus = DEN_rally_the_nation }

		relative_position_id = DEN_king_assumes_power
		x = -2
		y = 3
		
		cost = 5

		available = {
		}

		bypass = {
			ICE = {
				all_core_state = {
					is_controlled_by = DEN
				}
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			if = {
				limit = {
					ICE = {
						is_subject_of = PREV
					}
				}
				ICE = { country_event = { id = denmark_expansion_event.1 days = 1 }}
				custom_effect_tooltip = if_they_accept_tt
				event_option_tooltip = denmark_expansion_event.2.a
				custom_effect_tooltip = if_they_refuse_tt
				event_option_tooltip = denmark_expansion_event.3.a
			}
			else_if = {
				limit = {
					ICE = {
						is_subject = yes
						NOT = { is_subject_of = PREV }
					}
				}
				ICE = {
					OVERLORD = { country_event = { id = denmark_expansion_event.4 days = 1 }}
				}
				custom_effect_tooltip = if_they_accept_tt
				event_option_tooltip = denmark_expansion_event.5.a
				custom_effect_tooltip = if_they_refuse_tt
				event_option_tooltip = denmark_expansion_event.6.a
			}
			else_if = {
				limit = {
					ICE = {
						exists = yes
					}
				}
				create_wargoal = {
				    type = annex_everything
				    target = ICE
				}
			}
			if = {
				limit = {
					ICE = {
						any_core_state = {
							NOT = {
								is_owned_and_controlled_by = ICE
								is_owned_and_controlled_by = PREV #DEN
							}
						}
					}
				}
				unlock_decision_tooltip = DEN_demand_icelandic_territory
			}
		}
	}

	focus = {
		id = DEN_develop_iceland
		icon = GFX_goal_generic_construction
		prerequisite = { focus = DEN_reintegrate_iceland }

		relative_position_id = DEN_reintegrate_iceland
		x = 0
		y = 1

		cost = 5

		available = {
			100 = { is_fully_controlled_by = ROOT }
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			ICE = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			100 = {
				add_extra_state_shared_building_slots = 1
				add_dynamic_modifier = {
					modifier = DEN_development_projects_state_modifier
				}
				add_dynamic_modifier = {
					modifier = DEN_military_projects_state_modifier
				}
			}
		}
	}

	focus = {
		id = DEN_sway_the_nordics
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = DEN_scandinavian_security focus = DEN_rally_the_nation }

		relative_position_id = DEN_king_assumes_power
		x = 0
		y = 3
		
		cost = 5

		available = {
			OR = {
				SWE = {
					exists = yes
				}
				NOR = {
					exists = yes
				}
				FIN = {
					exists = yes
				}
				EST = {
					exists = yes
				}
				LAT = {
					exists = yes
				}
				LIT = {
					exists = yes
				}
				SMI = {
					exists = yes
				}
			}
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			custom_effect_tooltip = DEN_sway_the_nordics_tt
		}
	}

	focus = {
		id = DEN_offer_protection
		icon = GFX_focus_SOV_reinforce_western_naval_bases
		prerequisite = { focus = DEN_sway_the_nordics }

		relative_position_id = DEN_sway_the_nordics
		x = 0
		y = 1
		
		cost = 5

		available = {
			OR = {
				SWE = {
					exists = yes
				}
				NOR = {
					exists = yes
				}
				FIN = {
					exists = yes
				}
				EST = {
					exists = yes
				}
				LAT = {
					exists = yes
				}
				LIT = {
					exists = yes
				}
				SMI = {
					exists = yes
				}
			}
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			custom_effect_tooltip = DEN_offer_protection_tt
		}
	}

	focus = {
		id = DEN_secure_swedish_steel
		icon = GFX_focus_generic_attack_sweden
		prerequisite = { focus = DEN_scandinavian_security }

		relative_position_id = DEN_scandinavian_security
		x = 0
		y = 2

		cost = 10
		will_lead_to_war_with = SWE

		available = {
			OR = {	
				threat > 0.20
				has_subject = SWE
			}
		}

		cancel = {
			is_subject = yes
		}
		continue_if_invalid = yes #Don't cancel if World Tension goes below 20% or if you lose puppet

		bypass = {
			SWE = {
				OR = {
					all_core_state = {
						is_controlled_by = DEN
					}
					AND = {
						is_subject = yes
						NOT = { is_subject_of = ROOT }
						is_in_faction_with = ROOT
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_attack = 0.05 
				tooltip = army_attack_factor_tt
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = { 
				DEN_flyvevabnet_mission_efficiency = 0.05 
				tooltip = air_mission_efficiency_tt
			}
			
			if = {
				limit = {
					SWE = {
						is_subject = no
						has_country_leader = {
							ruling_only = yes
							character = SWE_king_gustaf_v
						}
					}
				}
				#Give them a chance to become a puppet due to close monarchical ties
				SWE = { country_event = { id = denmark_expansion_event.10 days = 1 }}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					ROOT = { puppet = SWE }
				}
				custom_effect_tooltip = if_they_refuse_tt
				event_option_tooltip = denmark_expansion_event.12.a
			}
			else_if = {
				limit = {
					SWE = {
						is_subject_of = NOR
						NOR = {
							has_government = neutrality
						}
					}
				}
				#Give Norway a chance to hand over Sweden due to the kings being brothers
				NOR = { country_event = { id = denmark_expansion_event.13 days = 1 }}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					ROOT = { puppet = SWE }
				}
				custom_effect_tooltip = if_they_refuse_tt
				event_option_tooltip = denmark_expansion_event.15.a
			}
			else_if = {
				limit = {
					SWE = {
						is_subject_of = ROOT
					}
				}
				unlock_decision_tooltip = DEN_integrate_sweden
			}
			else_if = {
				limit = {
					SWE = {
						exists = yes
					}
				}
				create_wargoal = {
				    type = annex_everything
				    target = SWE
				}
				add_timed_idea = {
				    idea = DEN_securing_sweden_ns
				    days = 365
				}
			}
			if = {
				limit = {
					SWE = {
						any_core_state = {
							NOT = {
								is_owned_and_controlled_by = SWE
								is_owned_and_controlled_by = PREV #DEN
							}
						}
					}
				}
				unlock_decision_tooltip = DEN_demand_swedish_territory
				#set_country_flag = DEN_can_demand_swedish_territory_flag
			}
		}
	}

	focus = {
		id = DEN_swedish_steel_production
		icon = GFX_focus_generic_steel
		prerequisite = { focus = DEN_secure_swedish_steel }

		relative_position_id = DEN_scandinavian_security
		x = 0
		y = 3

		cost = 5

		available = {
			666 = { is_fully_controlled_by = ROOT }
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.1
				tooltip = local_resources_factor_tt
			}

			custom_effect_tooltip = DEN_swedish_steel__protection_tt
		}
	}

	focus = {
		id = DEN_finish_off_finland
		icon = GFX_focus_generic_attack_finland
		prerequisite = { focus = DEN_secure_swedish_steel }

		relative_position_id = DEN_scandinavian_security
		x = 2
		y = 3

		cost = 10
		will_lead_to_war_with = FIN

		available = {
			OR = {	
				has_subject = FIN
				NOT = {
					any_allied_country = {
						has_subject = FIN
					}
				}
			}
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			if = {
				limit = {
					FIN = {
						is_subject_of = ROOT
					}
				}
				unlock_decision_tooltip = DEN_integrate_finland
			}
			else_if = {
				limit = {
					FIN = {
						exists = yes
					}
				}
				create_wargoal = {
				    type = annex_everything
				    target = FIN
				}
				add_timed_idea = {
				    idea = DEN_securing_finland_ns
				    days = 365
				}
			}
			if = {
				limit = {
					FIN = {
						OR = {
							exists = no
							any_core_state = {
								NOT = {
									is_owned_and_controlled_by = FIN
									is_owned_and_controlled_by = PREV #DEN
								}
							}
						}
					}
				}
				custom_effect_tooltip = DEN_demand_finnish_territory
				#set_country_flag = DEN_can_demand_finnish_territory_flag
			}
		}
	}

	focus = {
		id = DEN_reclaim_norway
		icon = GFX_focus_generic_attack_norway
		prerequisite = { focus = DEN_scandinavian_security focus = DEN_rally_the_nation }

		relative_position_id = DEN_king_assumes_power
		x = 3
		y = 4

		cost = 10
		will_lead_to_war_with = NOR

		available = {
			OR = {
				has_subject = NOR
				AND = {
					has_government = neutrality
					threat > 0.20
				}
				AND = {
					has_government = fascism
					threat > 0.15
				}
			}
		}

		cancel = {
			is_subject = yes
		}
		continue_if_invalid = yes #Don't cancel if World Tension goes below a certain % or if you lose puppet

		bypass = {
			NOR = {
				OR = {
					all_core_state = {
						is_controlled_by = DEN
					}
					AND = {
						is_subject = yes
						NOT = { is_subject_of = ROOT }
						is_in_faction_with = ROOT
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {

			DEN_improve_sovaernet_NS = yes
			add_to_variable = { 
				DEN_sovaernet_naval_detection = 0.05
				tooltip = naval_detection_tt
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = { 
				DEN_flyvevabnet_air_weather_penalty = -0.05 
				tooltip = air_weather_penalty_tt
			}

			if = {
				limit = {
					NOR = {
						is_subject_of = ROOT
					}
				}
				unlock_decision_tooltip = DEN_integrate_norway
			}
			else_if = {
				limit = {
					has_government = neutrality
				}
				if = {
					limit = {
						NOR = {
							is_subject = no
							has_country_leader = {
								ruling_only = yes
								character = NOR_king_haakon_vii
							}
						}
					}
					#Give Norway a chance to become a puppet due to the kings being brothers
					NOR = { country_event = { id = denmark_expansion_event.20 days = 1 }}
					custom_effect_tooltip = if_they_accept_tt
					effect_tooltip = {
						ROOT = { puppet = NOR }
					}
					custom_effect_tooltip = if_they_refuse_tt
					event_option_tooltip = denmark_expansion_event.22.a
				}
				else_if = {
					limit = {
						NOR = {
							is_subject_of = SWE
						}
						SWE = {
							has_country_leader = {
								ruling_only = yes
								character = SWE_king_gustaf_v
							}
						}
					}
					#Give Sweden a chance to hand off Norway due to close monarchical ties
					SWE = { country_event = { id = denmark_expansion_event.23 days = 1 }}
					custom_effect_tooltip = if_they_accept_tt
					effect_tooltip = {	
						ROOT = { puppet = NOR }
					}
					custom_effect_tooltip = if_they_refuse_tt
					event_option_tooltip = denmark_expansion_event.25.a
				}
				else_if = {
					limit = {
						NOR = {
							exists = yes
						}
					}
					create_wargoal = {
					    type = annex_everything
					    target = NOR
					}
					add_timed_idea = {
					    idea = DEN_securing_norway_ns
					    days = 365
					}
				}
			}
			else_if = {
				limit = {
					has_government = fascism
				}
				if = {
					limit = {
						NOR = {
							is_subject = no
							has_government = fascism
						}
					}
					NOR = { country_event = { id = denmark_expansion_event.20 days = 1 }}
					custom_effect_tooltip = if_they_accept_tt
					event_option_tooltip = denmark_expansion_event.21.a
					custom_effect_tooltip = if_they_refuse_tt
					event_option_tooltip = denmark_expansion_event.22.a
				}
				else_if = {
					limit = {
						NOR = {
							is_subject = yes
							OVERLORD = {
								has_government = fascism
							}
						}
					}
					NOR = { 
						OVERLORD = { country_event = { id = denmark_expansion_event.23 days = 1 }}
					}
					custom_effect_tooltip = if_they_accept_tt
					event_option_tooltip = denmark_expansion_event.24.a
					custom_effect_tooltip = if_they_refuse_tt
					event_option_tooltip = denmark_expansion_event.25.a
				}
				else_if = {
					limit = {
						NOR = {
							exists = yes
						}
					}
					create_wargoal = {
					    type = annex_everything
					    target = NOR
					}
					add_timed_idea = {
					    idea = DEN_securing_norway_ns
					    days = 365
					}
				}
			}
			else_if = { #This is just a backup if all other things fails
				limit = {
					NOR = {
						exists = yes
					}
				}
				create_wargoal = {
				    type = annex_everything
				    target = NOR
				}
				add_timed_idea = {
				    idea = DEN_securing_norway_ns
				    days = 365
				}
			}
			if = {
				limit = {
					NOR = {
						OR = {
							exists = no
							any_core_state = {
								NOT = {
									is_owned_and_controlled_by = NOR
									is_owned_and_controlled_by = PREV #DEN
								}
							}
						}
					}
				}
				custom_effect_tooltip = DEN_demand_norwegian_territory
				#set_country_flag = DEN_can_demand_norweigian_territory_flag
			}
		}
	}

	focus = {
		id = DEN_train_mountain_infantry
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = DEN_reclaim_norway }

		relative_position_id = DEN_reclaim_norway

		x = -2
		y = 1

		cost = 5

		available = {
			any_controlled_state = {
				is_core_of = NOR
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = DEN_train_mountain_infantry
				bonus = 1
				uses = 1
				category = mountaineers_tech
			}

			add_doctrine_cost_reduction = {
				name = DEN_train_mountain_infantry
				cost_reduction = 0.5
				uses = 2
				category = cat_mountaineers_doctrine
			}
		}
	}

	focus = {
		id = DEN_pan_scandinavianism
		icon = GFX_focus_generic_pan_scandinavism
		prerequisite = { focus = DEN_secure_swedish_steel focus = DEN_reclaim_norway }

		relative_position_id = DEN_king_assumes_power
		x = -1
		y = 5

		cost = 5

		available = {
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_political_power = 50

			DEN_improve_haeren_NS = yes
			
			add_to_variable = { 
				DEN_haeren_army_defence = 0.05 
				tooltip = army_defence_factor_tt
			}

			unlock_decision_tooltip = DEN_rally_the_icelanders
			unlock_decision_tooltip = DEN_rally_the_swedes
			unlock_decision_tooltip = DEN_rally_the_finnish
			unlock_decision_tooltip = DEN_rally_the_norwegians
		}
	}

	#### FASCISM ####
	focus = {
		id = DEN_march_on_the_capital
		icon = GFX_goal_support_fascism
		prerequisite = { focus = DEN_overthrow_the_government }
		mutually_exclusive = { focus = DEN_king_assumes_power }

		relative_position_id = DEN_unify_the_right

		x = 6
		y = 3

		cost = 5

		available = {
			fascism > 0.2
			has_civil_war = no
			is_subject = no
		}

		bypass = {
			has_government = fascism
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			#custom_effect_tooltip = TODO_DANNE

			add_popularity = {
			    ideology = fascism
			    popularity = 0.05
			}
		}
	}

 	focus = {
		id = DEN_seize_power
		icon = GFX_focus_generic_annex_country
		prerequisite = { focus = DEN_march_on_the_capital }
		mutually_exclusive = { focus = DEN_ask_for_support }

		relative_position_id = DEN_march_on_the_capital
		x = -1
		y = 1

		cost = 5

		available = {
			fascism > 0.4
			is_subject = no
		}

		bypass = {
			has_government = fascism
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }

		completion_reward = {
			
			DEN_cay_lembcke = {
				promote_character = yes
			}

			if = {
				limit = {
					NOT = {
						has_government = fascism
					}
				}
				set_politics = {
					ruling_party = fascism
				}
				
				if = {
					limit = {
						fascism < 0.5
					}
					if = {
						limit = {
							neutrality > party_popularity@democratic
							neutrality > party_popularity@communism
						}
						start_civil_war = {
							ideology = neutrality #SPLITTING TAG
							size = party_popularity@neutrality
							keep_all_characters = yes
						}
					}
					else_if = {
						limit = {
							democratic > party_popularity@neutrality
							democratic > party_popularity@communism
						}
						start_civil_war = {
							ideology = democratic #SPLITTING TAG
							size = party_popularity@democratic
							keep_all_characters = yes
						}
					}
					else_if = {
						limit = {
							communism > party_popularity@neutrality
							communism > party_popularity@democratic
						}
						start_civil_war = {
							ideology = communism #SPLITTING TAG
							size = party_popularity@communism
							keep_all_characters = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = DEN_denmark_first
		icon = GFX_focus_generic_develop_denmark_silhouette
		prerequisite = { focus = DEN_seize_power }

		relative_position_id = DEN_march_on_the_capital
		x = -2
		y = 2

		cost = 10

		available = {
			has_civil_war = no
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER }

		completion_reward = {
			add_political_power = 100
			add_war_support = 0.05

			DEN_bop_low_increase_effect = yes

			if = {
				limit = {
					NOT = { has_rule = can_create_factions }
				}
				set_rule = { can_create_factions = yes }
			}
			create_faction = DEN_northern_national_front

			custom_effect_tooltip = DEN_remove_declaration_of_neutrality_tt

			unlock_decision_tooltip = DEN_northern_national_front_invitation
			if = {
				limit = {
					has_tech_sharing_feature = yes
				}
				custom_effect_tooltip = DEN_invite_allies_to_tech_sharing_decision_tt
			}

			DEN_improve_haeren_NS = yes
			
			add_to_variable = { 
				DEN_haeren_army_attack_against_major = 0.1
				tooltip = army_attack_against_major_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_defence_against_major = 0.05
				tooltip = army_defence_against_major_factor_tt
			}
		}
	}

	focus = {
		id = DEN_ask_for_support
		icon = GFX_focus_chi_mission_to_germany
		prerequisite = { focus = DEN_march_on_the_capital }
		mutually_exclusive = { focus = DEN_seize_power }

		relative_position_id = DEN_march_on_the_capital
		x = 1
		y = 1

		cost = 5

		available = {
			GER = {
				has_government = fascism
				is_subject = no
			}
			NOT = {
				has_war_with = GER
			}
			fascism > 0.3
			is_subject = no
		}

		bypass = {
			has_government = fascism
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }

		completion_reward = {
			GER = {
				country_event = { id =  denmark_fascist_event.1 days = 5 }
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				add_political_power = 100
				add_stability = 0.05

				set_politics = {
					ruling_party = fascism
				}
				
				DEN_frits_clausen = {
					promote_character = yes
				}

				GER = {
					add_to_faction = ROOT
				}
			}

			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				set_politics = {
					ruling_party = fascism
				}

				start_civil_war = {
					ideology = neutrality #SPLITTING TAG
					size = party_popularity@neutrality
				}
			}
		}
	}

	focus = {
		id = DEN_dano_german_military_cooperation
		icon = GFX_focus_POL_beck_ribbentrop
		prerequisite = { focus = DEN_ask_for_support }

		relative_position_id = DEN_march_on_the_capital
		x = 2
		y = 2

		cost = 5

		available = {
			has_civil_war = no
		}

		search_filters = { FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_RESEARCH }

		completion_reward = {
			DEN_bop_low_increase_effect = yes

			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_cas_airframe
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_airframe
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = light_tank_chassis
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = artillery_equipment
				seller_tags = { GER } 
			}
			add_equipment_subsidy = {
				cic = 250
				equipment_type = infantry_equipment
				seller_tags = { GER } 
			}

			GER = {
				country_event = { id =  denmark_fascist_event.20 days = 7 } 
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				if = {
					limit = { 
						has_tech_sharing_feature = yes
					}
					add_to_tech_sharing_group = DEN_german_danish_joint_military_program
				}
				add_tech_bonus = {
					name = DEN_german_danish_joint_military_program
					bonus = 0.5
					uses = 1
					category = armor
				}
			}
		}
	}

	focus = {
		id = DEN_rally_the_nation
		icon = GFX_focus_ITA_generic_fascist_workers
		prerequisite = { focus = DEN_seize_power focus = DEN_ask_for_support }

		relative_position_id = DEN_march_on_the_capital
		x = 0
		y = 2

		cost = 10

		available = {
			has_civil_war = no
			has_army_manpower = { size > 99999 }
			power_balance_value = {
				id = DEN_balance_of_power
				value > 0.3
			}
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_BALANCE_OF_POWER FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.1

			DEN_bop_low_increase_effect = yes

			if = { #In case you have elected a fascist government and bypassed several focuses
				limit = {
					has_government = fascism
					NOT = { has_completed_focus = DEN_overthrow_the_government }
					has_completed_focus = DEN_march_on_the_capital
				}
			}

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_offensive_war_stability = 0.15
				tooltip = offensive_war_stability_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_max_fuel = 0.1
				tooltip = max_fuel_factor_tt
			}
			add_to_variable = {
				DEN_war_preparations_fuel_gain = 0.1
				tooltip = fuel_gain_add_factor_tt
			}

			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.1
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_resources_to_market = -0.15
				tooltip = min_export_tt
			}
		}
	}

	focus = {
		id = DEN_institute_corporatism
		icon = GFX_focus_ICE_state_corporatism
		prerequisite = { focus = DEN_rally_the_nation }

		relative_position_id = DEN_march_on_the_capital
		x = -2
		y = 3

		cost = 10

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }

		completion_reward = {

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.15
				tooltip = production_lack_of_resource_penalty_factor_tt
			}
			if = {
				limit = {
					DEN_has_political_edicts_dynamic_modifier = no
				}
				add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
			}
			else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
			add_to_variable = {
				DEN_political_edicts_conscription_factor = 0.2
				tooltip = conscription_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.15
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.3
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.1
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.1
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.1
				tooltip = equipment_conversion_speed_tt
			}
			if = {
				limit = { 
					has_idea = civilian_economy
				}
				add_ideas = low_economic_mobilisation
			}
			else_if = {
				limit = { 
					has_idea = low_economic_mobilisation
				}
				add_ideas = partial_economic_mobilisation
			}
		}
	}

	focus = {
		id = DEN_experimental_technology
		icon = GFX_focus_research
		prerequisite = { focus = DEN_rally_the_nation }

		relative_position_id = DEN_march_on_the_capital
		x = 0
		y = 3

		cost = 10

		available = {
			num_of_civilian_factories > 24
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1

			add_tech_bonus = {
				name = DEN_experimental_technology
				bonus = 0.5
				uses = 1
				category = electronics
			}
		}
	}

	focus = {
		id = DEN_assault_troops
		icon = GFX_focus_generic_fascist_troops
		prerequisite = { focus = DEN_rally_the_nation }

		relative_position_id = DEN_march_on_the_capital
		x = 2
		y = 3

		cost = 10

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = DEN_political_unity }
				is_subject = no
			}
		}

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_org = 0.05 
				tooltip = army_org_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_army_attack = 0.1
				tooltip = army_attack_factor_tt
			}

			add_doctrine_cost_reduction = {
				name = DEN_assault_troops
				cost_reduction = 0.25
				uses = 2
				category = special_forces_doctrine
			}
		}
	}

	focus = {
		id = DEN_prioritize_navy
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = DEN_institute_corporatism focus = DEN_experimental_technology focus = DEN_assault_troops }
		mutually_exclusive = { focus = DEN_prioritize_army }

		relative_position_id = DEN_march_on_the_capital
		x = -1
		y = 4

		cost = 10

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {			
			DEN_improve_sovaernet_NS = yes
			
			add_to_variable = { 
				DEN_sovaernet_naval_coordination = 0.05
				tooltip = naval_coordination_tt
			}
			add_to_variable = { 
				DEN_sovaernet_navy_org = 0.05
				tooltip = navy_org_factor_tt
			}
			add_to_variable = { 
				DEN_sovaernet_naval_morale = 0.05
				tooltip = naval_morale_factor_tt
			}
			
			add_doctrine_cost_reduction = {
				name = DEN_prioritize_navy
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}

	focus = {
		id = DEN_prioritize_army
		icon = GFX_focus_generic_combined_arms
		prerequisite = { focus = DEN_institute_corporatism focus = DEN_experimental_technology focus = DEN_assault_troops }
		mutually_exclusive = { focus = DEN_prioritize_navy }

		relative_position_id = DEN_march_on_the_capital
		x = 1
		y = 4

		cost = 10

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_org = 0.05
				tooltip = army_org_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_org_loss_when_moving = -0.05
				tooltip = org_loss_when_moving_tt
			}
			add_to_variable = { 
				DEN_haeren_army_attack = 0.05
				tooltip = army_attack_factor_tt
			}

			add_doctrine_cost_reduction = {
				name = DEN_prioritize_army
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}
	
	focus = {
		id = DEN_total_war
		icon = GFX_focus_generic_total_war
		prerequisite = { focus = DEN_prioritize_navy focus = DEN_prioritize_army }

		relative_position_id = DEN_march_on_the_capital
		x = 0
		y = 5

		cost = 5

		available = {
			threat > 0.9
			has_war_support > 0.79
			OR = {
				casualties_k > 500
				any_allied_country = {
					is_faction_leader = yes
					is_major = yes
					casualties_k > 2500
				}
				any_allied_country = {
					is_faction_leader = yes
					is_major = no
					casualties_k > 1000
				}
				any_allied_country = {
					is_faction_leader = yes
					surrender_progress > 0.3
				}
			}
		}

		continue_if_invalid = yes #Don't cancel if World Tension goes below 20% or if you lose WS

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_war_support = 0.1

			if = {
				limit = { 
					NOT = {	has_idea = tot_economic_mobilisation }
				}
				add_ideas = tot_economic_mobilisation
			}

			activate_decision = women_in_the_workforce
			unlock_decision_tooltip = {
				decision = women_in_the_workforce
				show_effect_tooltip = yes # default is no
				show_modifiers = yes # default is no
			} 

			if = {
				limit = {
					DEN_has_war_preparations_dynamic_modifier = no
				}
				#custom_effect_tooltip = DEN_add_war_preparations_dynamic_modifier
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
			}
			else = {
				custom_effect_tooltip = DEN_modify_war_preparations_dynamic_modifier
			}
			add_to_variable = {
				DEN_war_preparations_lack_of_resource_penalty = -0.05
				tooltip = production_lack_of_resource_penalty_factor_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 3 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capability_local_resources = 0.05
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_consumer_goods = 0.2
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_retention_efficiency = 0.05
				tooltip = line_change_production_efficiency_factor_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_factory_output = 0.05
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = { 
				DEN_industrial_capabilities_equipment_conversion = 0.05
				tooltip = equipment_conversion_speed_tt
			}
			add_to_variable = {
				DEN_industrial_capabilities_global_building_slots = 0.15
				tooltip = global_building_slots_factor_tt
			}
		}
	}

	focus = {
		id = DEN_military_might
		icon = GFX_focus_generic_tank_air_support
		prerequisite = { focus = DEN_prioritize_navy focus = DEN_prioritize_army }
		prerequisite = { focus = DEN_reclaim_norway }

		relative_position_id = DEN_march_on_the_capital
		x = -3
		y = 5

		cost = 5

		available = {
		}

		search_filters = {}

		completion_reward = {

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_attack = 0.05 
				tooltip = army_attack_factor_tt
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = { 
				DEN_flyvevabnet_mission_efficiency = 0.05 
				tooltip = air_mission_efficiency_tt
			}
		}
	}

	focus = {
		id = DEN_avenging_1864
		icon = GFX_focus_DEN_avenging_1864
		prerequisite = { focus = DEN_pan_scandinavianism }
		prerequisite = { focus = DEN_swedish_steel_production }
		mutually_exclusive = { focus = DEN_dominium_maris_baltici }

		relative_position_id = DEN_pan_scandinavianism
		x = -4
		y = 1

		cost = 10
		will_lead_to_war_with = GER

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			add_war_support = 0.05

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_armor_attack = 0.1
				tooltip = army_armor_attack_factor_tt
			}

			if = {
				limit = {
					GER = {
						controls_state = 909
						controls_state = 58
					}
				}
				create_wargoal = {
					type = take_state_focus
					target = GER
					generator = { 909 58 } # optional 
				}
			}
			if = {
				limit = {
					GER = {
						OR = {
							NOT = { controls_state = 909 }
							NOT = { controls_state = 58 }
						}
					}
				}
				every_other_country = {
					limit =  {
						NOT = { original_tag = DEN }
						controls_state = 909
					}
					ROOT = {
						create_wargoal = {
							type = take_state
							target = PREV
							generator = 909
						}
					}
				}
				every_other_country = {
					limit =  {
						NOT = { original_tag = DEN }
						controls_state = 58
					}
					ROOT = {
						create_wargoal = {
							type = take_state
							target = PREV
							generator = 58
						}
					}
				}
			}

			custom_effect_tooltip = DEN_take_southern_baltic_sea_states_tt
			909 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			} 
			58 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			}
			61 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			} 
			62 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			}
			63 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			}	
			993 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			}
			992 = { 
				set_state_flag = DEN_southern_baltic_sea_state_flag
				add_claim_by = ROOT 
			}
		}
	}

	focus = {
		id = DEN_dominium_maris_baltici
		icon = GFX_focus_generic_baltic_sea_empire
		prerequisite = { focus = DEN_pan_scandinavianism }
		mutually_exclusive = { focus = DEN_avenging_1864 focus = DEN_establish_the_danelaw }

		relative_position_id = DEN_pan_scandinavianism
		x = 0
		y = 1

		cost = 10
		will_lead_to_war_with = EST
		will_lead_to_war_with = LAT
		will_lead_to_war_with = LIT
		will_lead_to_war_with = POL

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_POLITICAL }

		completion_reward = {

			every_other_country = {
				limit = {
					any_controlled_state = {
						OR = {
							is_core_of = EST
							is_core_of = LAT
							is_core_of = LIT
						}
					}
				}
				display_individual_scopes = yes
				every_controlled_state = {
					limit = {
						OR = {
							is_core_of = EST
							is_core_of = LAT
							is_core_of = LIT
						}
					}
					add_to_array = {
						array = PREV.DEN_baltic_target_states_array
						value = THIS
					}
				}
				ROOT = {
					create_wargoal = {
						type = take_state_focus
						target = PREV
						generator = PREV.DEN_baltic_target_states_array
					}
				}
			}
		}
	}

	focus = {
		id = DEN_establish_the_danelaw
		icon = GFX_focus_DEN_danelaw
		prerequisite = { focus = DEN_pan_scandinavianism }
		prerequisite = { focus = DEN_military_might }
		mutually_exclusive = { focus = DEN_dominium_maris_baltici }

		relative_position_id = DEN_pan_scandinavianism
		x = 4
		y = 1

		cost = 10
		will_lead_to_war_with = ENG

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			if = {
				limit = {
					ENG = {
						exists = yes
					}
				}
				create_wargoal = {
					type = annex_everything
					target = ENG
				}
			}
			if = {
				limit = {	
					any_country = {
						NOT = { tag = ENG }
						any_controlled_state = {
							is_core_of = ENG
							NOT = {
								is_controlled_by = ENG
							}
						}
					}
				}
				for_each_scope_loop = {
					array = ENG.core_states
					ROOT = {
						add_to_array = {
							array = ENG_core_states
							value = PREV
						}
					}
				}
				every_other_country = {
					limit =  {
						NOT = { tag = ENG }
						any_controlled_state = {
							is_core_of = ENG
							NOT = {
								is_controlled_by = ENG
							}
						}
					}
					ROOT = {
						create_wargoal = {
							type = take_state
							target = PREV
							generator = ENG_core_states
						}
					}
				}
			}
		}
	}


#########################
#########################
#### MILITARY BRANCH ####
#########################
#########################

#### ARMY ####

	focus = {
		id = DEN_sign_forsvarsforliget
		icon = GFX_focus_generic_treaty

		relative_position_id = DEN_declare_neutrality
		x = 28
		y = 0

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				OR = {
					is_subject = no
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		offset = {
			x = 0
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = SHOW
				}
				is_subject = yes
			}
		}

		offset = {
			x = -7
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_political_unity
			}
		}

		offset = {
			x = -10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = DEN_unify_the_right
			}
		}

		offset = {
			x = 0
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				OR = {
					AND = {
						is_subject = yes
						has_country_flag = DEN_unlock_military_branch_flag
						OR = {
							has_completed_focus = DEN_political_unity
							has_completed_focus = DEN_unify_the_right
						}
					}
					AND = {
						is_subject = no
						has_country_flag = DEN_unlock_military_branch_flag
						OR = {
							has_completed_focus = DEN_political_unity
							has_completed_focus = DEN_unify_the_right
						}
					}
				}
			}
		}

		offset = {
			x = -18
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_country_flag = DEN_unlock_military_branch_flag
				is_subject = yes
				NOT = {
					has_completed_focus = DEN_political_unity
					has_completed_focus = DEN_unify_the_right
				}
			}
		}

		offset = {
			x = 0
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_country_flag = DEN_unlock_military_branch_flag
				is_subject = no
				NOT = {
					has_completed_focus = DEN_political_unity
					has_completed_focus = DEN_unify_the_right
				}
			}
		}

		offset = {
			x = 0
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				OR = {
					AND = {
						is_subject = yes
						has_country_flag = DEN_unlock_military_branch_flag
						OR = {
							has_completed_focus = DEN_political_unity
							has_completed_focus = DEN_unify_the_right
						}
					}
					AND = {
						is_subject = no
						has_country_flag = DEN_unlock_military_branch_flag
						OR = {
							has_completed_focus = DEN_political_unity
							has_completed_focus = DEN_unify_the_right
						}
					}
				}
			}
		}

		cost = 5

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}
	
		ai_will_do = {
		}
	
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }
	
		completion_reward = {
			add_political_power = 50
			add_war_support = 0.05

			add_offsite_building = { type = arms_factory level = 1 }

			add_to_variable = { DEN_neglected_military_mobilization_speed = 0.1 }
			add_to_variable = { DEN_neglected_military_surrender_limit = 0.1 }
			custom_effect_tooltip = DEN_new_forsvarsforlig_modifier_tt

			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = DEN_william_wain_prior
		}
	}

	focus = {
		id = DEN_stockpile_oil
		icon = GFX_focus_generic_stockpile_fuel
		prerequisite = { focus = DEN_sign_forsvarsforliget }

		relative_position_id = DEN_sign_forsvarsforliget
		x = -2
		y = 1

		cost = 10

		available = {
			any_core_state = { is_owned_and_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			add_to_variable = { DEN_neglected_military_surrender_limit = 0.1 }
			custom_effect_tooltip = DEN_stockpile_oil_modifier_neglected_military_tt

			if = {
				limit = {
					NOT = { 
						has_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier } 
					}
				}
				add_dynamic_modifier = { modifier = DEN_war_preparations_dynamic_modifier }
				add_to_variable = { DEN_war_preparations_fuel_gain = 0.1 }
				add_to_variable = { DEN_war_preparations_max_fuel = 0.15 }
				add_to_variable = { DEN_war_preparations_fuel_silo_speed = 0.25 }
				custom_effect_tooltip = DEN_stockpile_oil_add_modifier_war_preparations_tt
			}
			else = {
				add_to_variable = { DEN_war_preparations_fuel_gain = 0.1 }
				add_to_variable = { DEN_war_preparations_max_fuel = 0.15 }
				add_to_variable = { DEN_war_preparations_fuel_silo_speed = 0.25 }
				custom_effect_tooltip = DEN_stockpile_oil_modifier_war_preparations_tt
			}

			if = {
				limit = {
					NOT = {
						has_tech = fuel_silos
					}
				}
				add_tech_bonus = {
					name = DEN_stockpile_oil
					bonus = 1
					uses = 1
					category = synth_resources
				}
				custom_effect_tooltip = DEN_potential_fuel_silos_tt
			}
			else = {
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = fuel_silo
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 99 911 912 37 } 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = fuel_silo
						level = 1
						instant_build = yes
					}
				}
				random_core_state = {
					limit = {
						is_fully_controlled_by = ROOT
						free_building_slots = {
							building = fuel_silo
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 911 99 912 37 } 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = fuel_silo
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}


	focus = {
		id = DEN_sikkerhedspolitiet
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = DEN_sign_forsvarsforliget }

		relative_position_id = DEN_sign_forsvarsforliget
		x = 2
		y = 1

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_POLITICAL FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = DEN_emil_strobech
				if = {
					limit = {
						has_intelligence_agency = no
					}
					create_intelligence_agency = yes
				}
				create_operative_leader = {
					name = "Hans Lunding"
					GFX = GFX_portrait_DEN_hans_lunding
					traits = { operative_safe_cracker } #TODO_DANNE
					bypass_recruitment = no
					available_to_spy_master = yes
					nationalities = { DEN }
				}
				if = {
					limit = {
						DEN_has_political_edicts_dynamic_modifier = no
					}
					add_dynamic_modifier = { modifier = DEN_political_edicts_dynamic_modifier }
				}
				else = { custom_effect_tooltip = DEN_modify_political_edicts_dynamic_modifier }
				add_to_variable = {
					DEN_political_edicts_operative_slot = 1
					tooltip = operative_slot_tt
				}
			}
			else = {
				add_tech_bonus = {
					name = DEN_sikkerhedspolitiet
					bonus = 0.25
					uses = 2
					category = encryption_tech
					category = decryption_tech
				}
			}
		}
	}

	focus = {
		id = DEN_expand_vaernepligten
		icon = GFX_focus_generic_little_entente
		prerequisite = { focus = DEN_sign_forsvarsforliget }

		relative_position_id = DEN_sign_forsvarsforliget
		x = 0
		y = 1

		cost = 5

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			add_war_support = 0.05
			add_manpower = 5000

			add_to_variable = { DEN_neglected_military_mobilization_speed = 0.1 }
			custom_effect_tooltip = DEN_expand_vaernepligten_modifier_tt
			if = {
				limit = { 
					check_variable = { DEN_neglected_military_mobilization_speed = 0 }
					check_variable = { DEN_neglected_military_surrender_limit = 0 }
					check_variable = { DEN_neglected_military_planning_speed = 0 }
				}
				clear_variable = DEN_neglected_military_dynamic_modifier
			}

			if = {
				limit = { 
					has_idea = disarmed_nation
				}
				add_ideas = volunteer_only
			}
			else_if = {
				limit = { 
					has_idea = volunteer_only
				}
			add_ideas = limited_conscription
			}
		}
	}

	focus = {
		id = DEN_haeren_reorganization
		icon = GFX_focus_DEN_haeren_reorganization
		prerequisite = { focus = DEN_expand_vaernepligten }

		relative_position_id = DEN_expand_vaernepligten
		x = -6
		y = 1

		cost = 5

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {
			add_command_power = 25
			army_experience = 25

			add_to_variable = { DEN_neglected_military_planning_speed = 0.1 }
			custom_effect_tooltip = DEN_haeren_reorganization_modifier_neglected_military_tt

			add_doctrine_cost_reduction = {
				name = DEN_haeren_reorganization
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
 
			if = {
				limit = {
					NOT = { has_completed_focus = DEN_seek_independence  }
				}
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = DEN_ebbe_gortz
			}

			every_unit_leader = {
				limit = {
					is_army_leader = yes
				}
				gain_xp = 100
			}
		}
	}

	focus = {
		id = DEN_expand_haerens_tekniske_korps
		icon = GFX_focus_DEN_expand_haerens_tekniske_korps
		prerequisite = { focus = DEN_haeren_reorganization }

		relative_position_id = DEN_haeren_reorganization
		x = -2
		y = 1

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			mio:DEN_haerens_tekniske_korps_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.35
				add_mio_research_bonus = 0.05

				unlock_mio_trait_tooltip = DEN_mio_trait_big_guns
			}

			add_tech_bonus = {
				name = DEN_expand_haerens_tekniske_korps
				bonus = 0.25
				uses = 2
				category = artillery
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_hjemmevaernet
		icon = GFX_focus_DEN_Hjemmevaernet
		prerequisite = { focus = DEN_haeren_reorganization }

		relative_position_id = DEN_haeren_reorganization
		x = 0
		y = 1

		cost = 5

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP }

		completion_reward = {

			add_war_support = 0.05
			add_manpower = 5000
			army_experience = 15

			unlock_decision_tooltip = DEN_deploy_the_home_guard

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_core_defence = 0.05
				tooltip = army_core_defence_factor_tt
			}
		}
	}

	focus = {
		id = DEN_expand_dansk_industri_syndikat
		icon = GFX_focus_DEN_expand_dansk_industri_syndikat
		prerequisite = { focus = DEN_haeren_reorganization }

		relative_position_id = DEN_haeren_reorganization
		x = 2
		y = 1

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			mio:DEN_DISA_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.35
				add_mio_research_bonus = 0.05

				unlock_mio_trait_tooltip = DEN_mio_trait_weibel_development
				unlock_mio_trait_tooltip = DEN_mio_trait_madsen_heavy_machine_gun
			}

			mio:DEN_haerens_tekniske_korps_organization = {
				unlock_mio_trait_tooltip = DEN_mio_trait_madsen_20_mm
			}

			add_tech_bonus = {
				name = DEN_expand_dansk_industri_syndikat
				bonus = 0.5
				uses = 2
				category = infantry_weapons
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_new_artillery_tactics
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = DEN_expand_haerens_tekniske_korps }

		relative_position_id = DEN_haeren_reorganization
		x = -1
		y = 2

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			mio:DEN_haerens_tekniske_korps_organization = {
				add_mio_size = 1
			}

			add_tech_bonus = {
				name = DEN_new_artillery_tactics
				bonus = 0.25
				uses = 2
				category = artillery
			}

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_artillery_defence = 0.1
				tooltip = army_artillery_defence_factor_tt
			}
		}
	}

	focus = {
		id = DEN_convert_automobile_production
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = DEN_expand_dansk_industri_syndikat focus = DEN_expand_haerens_tekniske_korps }

		relative_position_id = DEN_haeren_reorganization
		x = 1
		y = 2

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			mio:DEN_triangel_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.35
				add_mio_research_bonus = 0.05

				unlock_mio_trait_tooltip = DEN_mio_trait_truck_mass_production
			}

			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_tech_bonus = {
					name = DEN_convert_automobile_production
					bonus = 0.5
					uses = 2
					category = cat_armored_cars
					category = motorized_equipment
				}
			}
			else = {
				add_tech_bonus = {
					name = DEN_convert_automobile_production
					bonus = 0.5
					uses = 1
					category = motorized_equipment
					category = cat_mechanized_equipment
				}
			}

			DEN_improve_haeren_NS = yes
			add_to_variable = { 
				DEN_haeren_army_speed = 0.05
				tooltip = army_attack_speed_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_org_loss_when_moving = -0.05
				tooltip = org_loss_when_moving_tt
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_slaedepatruljen_sirius
		icon = GFX_focus_DEN_sirius_patrol
		prerequisite = { focus = DEN_new_artillery_tactics focus = DEN_convert_automobile_production }

		relative_position_id = DEN_haeren_reorganization
		x = -2
		y = 3

		cost = 5

		available = {
			101 = { is_fully_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_command_power = 50
			army_experience = 25

			custom_effect_tooltip = FIN_winter_warfare_battalion_tt

			hidden_effect = {
				set_technology = {
					winter_logistics_support_tech = 1
					popup = no
				}
			}

			add_doctrine_cost_reduction = {
				name = DEN_slaedepatruljen_sirius
				cost_reduction = 0.25
				uses = 2
				category = cat_mountaineers_doctrine
			}
		}
	}

	focus = {
		id = DEN_generalkommandoen
		icon = GFX_focus_DEN_generalkommandoen
		prerequisite = { focus = DEN_new_artillery_tactics focus = DEN_convert_automobile_production }

		relative_position_id = DEN_haeren_reorganization
		x = 0
		y = 3

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {
			add_command_power = 50
			army_experience = 50

			mio:DEN_DISA_organization = {
				add_mio_size = 1
			}

			add_doctrine_cost_reduction = {
				name = DEN_generalkommandoen
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}

			DEN_improve_haeren_NS = yes
			
			add_to_variable = { 
				DEN_haeren_army_speed = 0.05
				tooltip = army_attack_speed_factor_tt
			}
			add_to_variable = { 
				DEN_haeren_org_loss_when_moving = -0.05
				tooltip = org_loss_when_moving_tt
			}
			add_to_variable = {
				DEN_haeren_army_core_attack = 0.05
				tooltip = army_core_attack_factor_tt
			}
			
			every_unit_leader = {
				limit = {
					is_army_leader = yes
				}
				random_select_amount = 3
				add_skill_level = 1
				add_attack = 1
				add_defense = 1
				add_logistics = 1
			}
		}
	}

	focus = {
		id = DEN_establish_domestic_tank_manufacturing
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = DEN_convert_automobile_production }

		relative_position_id = DEN_haeren_reorganization
		x = 2
		y = 3

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			mio:generic_tank_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.35
				add_mio_research_bonus = 0.05
			}


			DEN_improve_haeren_NS = yes
			#add_to_variable = { 
			#	DEN_haeren_army_armor_attack = 0.05 
			#	tooltip = army_armor_attack_factor_tt
			#}
			add_to_variable = { 
				DEN_haeren_army_armor_defence = 0.1 
				tooltip = army_armor_defence_factor_tt
			} 

			add_tech_bonus = {
				name = DEN_establish_domestic_tank_manufacturing
				bonus = 0.5
				uses = 2
				category = armor
				category = cat_mechanized_equipment
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

#### NAVY ####

	focus = {
		id = DEN_expand_ubadsvabnet
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = DEN_expand_vaernepligten }

		relative_position_id = DEN_expand_vaernepligten
		x = 0
		y = 1

		cost = 5

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_NAVY_XP FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			add_manpower = 1500
			add_command_power = 25
			navy_experience = 25

			mio:DEN_orlogsvaerftet_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.2
				add_mio_research_bonus = 0.05
			}

			if = {
				limit = {
					NOT = { has_completed_focus = DEN_seek_independence  }
				}
				custom_effect_tooltip = available_chief_of_navy
				show_ideas_tooltip = DEN_aage_vedel
			}

			#######
			# MTG #
			#######
			if = {
				limit = { 
					has_dlc = "Man the Guns"
				}
				create_equipment_variant = {
					name = "Havmanden Class"				
					type = ship_hull_submarine_1
					name_group = DEN_SS_HISTORICAL
					parent_version = 0
					modules = {
						fixed_ship_torpedo_slot = ship_torpedo_sub_1
						fixed_ship_engine_slot = sub_ship_engine_2
						rear_1_custom_slot = empty
					}
					design_team = mio:DEN_orlogsvaerftet_organization
				}
				add_equipment_production = {
					equipment = {
						type = ship_hull_submarine_1
						creator = "DEN"
						version_name = "Havmanden Class"
					}
					name = "Havmanden"
					requested_factories = 1
					progress = 0.30
					amount = 2
					industrial_manufacturer = mio:DEN_orlogsvaerftet_organization
				}
				add_equipment_production = {
					equipment = {
						type = ship_hull_submarine_1
						creator = "DEN"
						version_name = "Havmanden Class"
					}
					name = "Havkalen"
					requested_factories = 1
					progress = 0.20
					amount = 2
					industrial_manufacturer = mio:DEN_orlogsvaerftet_organization
				}
				add_tech_bonus = {
					name = DEN_expand_ubadsvabnet
					bonus = 0.5
					uses = 1
					category = ss_tech
				}
			}
			##########
			# NO MTG #
			##########
			else = {
				if = {
					limit = {
						NOT = { has_tech = basic_submarine }
					}
					hidden_effect = {
						set_technology = { basic_submarine = 1 }
					}
					custom_effect_tooltip = DEN_add_basic_submarine_tech_tt
				}
			}

			random_controlled_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 911 99 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_refit_civilian_ships
		icon = GFX_focus_generic_refit_civilian_ships
		prerequisite = { focus = DEN_expand_ubadsvabnet }
		mutually_exclusive = { focus = DEN_modernize_the_navy }

		relative_position_id = DEN_expand_ubadsvabnet
		x = -1
		y = 1

		cost = 10

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {
			add_manpower = 1500

			mio:DEN_burmeister_wain_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.1

				unlock_mio_trait_tooltip = DEN_mio_trait_refit_civilian_ships
			}
			
			custom_effect_tooltip = DEN_refit_civilian_ships_decision_tt
			set_country_flag = refit_convoy_ships_flag

			custom_effect_tooltip = ETH_purchase_obsolete_ships_tt
			set_country_flag = generic_purchase_old_ships_flag

			add_to_variable = { DEN_industrial_improvement_tracker_var = 2 }
			DEN_improve_industrial_capabilities_NS = yes
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_to_variable = { 
					DEN_industrial_capabilities_refit_speed = 0.2 
					tooltip = refit_speed_tt
				}
			}
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}

			#######
			# MTG #
			#######
			if = {
				limit = { 
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = DEN_refit_civilian_ships
					bonus = 0.25
					uses = 4
					category = ship_modules_tech
				}
				#Re-instate the Olfert Fischer Coastal Defence Ship
				create_ship = {
					type = ship_hull_cruiser_coastal_defense_ship
					equipment_variant = "Herluf Trolle Class"
					creator = DEN
					name = "HDMS Olfert Fischer"
				}
			}
			##########
			# NO MTG #
			##########
			else = {
				add_tech_bonus = {
					name = DEN_refit_civilian_ships
					bonus = 0.75
					uses = 2
					category = naval_equipment
				}
				#Re-instate the Olfert Fischer Coastal Defence Ship
				create_ship = {
					type = heavy_cruiser_1
					equipment_variant = "Herluf Trolle Class"
					creator = DEN
					name = "HDMS Olfert Fischer"
				}
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 911 99 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 99 911 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_modernize_the_navy
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = DEN_expand_ubadsvabnet }
		mutually_exclusive = { focus = DEN_refit_civilian_ships }

		relative_position_id = DEN_expand_ubadsvabnet
		x = 1
		y = 1

		cost = 10

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {
			add_manpower = 1500
			
			mio:DEN_orlogsvaerftet_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.1

				unlock_mio_trait_tooltip = DEN_mio_trait_burmeister_wain_engines
			}

			DEN_improve_sovaernet_NS = yes
			add_to_variable = {
				DEN_sovaernet_naval_detection = 0.1
				tooltip = naval_detection_tt
			}
			add_to_variable = {
				DEN_sovaernet_naval_accidents = -0.1
				tooltip = naval_accidents_chance_tt
			}

			add_to_variable = { DEN_industrial_improvement_tracker_var = 1 }
			DEN_improve_industrial_capabilities_NS = yes
			add_to_variable = {
				DEN_industrial_capabilities_dockyard_output = 0.05
				tooltip = industrial_capacity_dockyard_tt
			}
			

			#######
			# MTG #
			#######
			if = {
				limit = { 
					has_dlc = "Man the Guns"
				}
				if = {
					limit = { 
						NOT = {
							has_tech = basic_ship_hull_cruiser
						}
					}
					create_equipment_variant = {
						name = "Peter Raben Class"				
						type = ship_hull_cruiser_coastal_defense_ship
						name_group = DEN_CA_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_heavy_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = ship_armor_cruiser_2
							fixed_ship_secondaries_slot = ship_secondaries_1
							mid_1_custom_slot = ship_secondaries_1
							mid_2_custom_slot = empty
							rear_1_custom_slot = ship_medium_battery_1
						}
						obsolete = yes
						design_team = mio:DEN_burmeister_wain_organization
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_cruiser_coastal_defense_ship
							creator = "DEN"
							version_name = "Peter Raben Class"
						}
						name = "Peter Raben"
						requested_factories = 1
						progress = 0.25
						amount = 1
						industrial_manufacturer = mio:DEN_burmeister_wain_organization
					}
				}
				else = {
					create_equipment_variant = {
						name = "Peter Raben Class"				
						type = ship_hull_cruiser_2
						name_group = DEN_CL_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_medium_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = ship_armor_cruiser_2
							fixed_ship_secondaries_slot = dp_ship_secondaries_1
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = ship_torpedo_1
							rear_1_custom_slot = ship_light_medium_battery_1
						}
						design_team = mio:DEN_orlogsvaerftet_organization
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_cruiser_2
							creator = "DEN"
							version_name = "Peter Raben Class"
						}
						name = "Peter Raben"
						requested_factories = 1
						progress = 0.25
						amount = 1
						industrial_manufacturer = mio:DEN_orlogsvaerftet_organization
					}
				}
				if = {
					limit = { 
						NOT = {
							has_tech = basic_ship_hull_light
						}
					}
					create_equipment_variant = {
						name = "Delfinen Class" 
						type = ship_hull_light_1
						name_group = DEN_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = empty
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_1
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = empty
							rear_1_custom_slot = empty
						}
						obsolete = yes
						design_team = mio:DEN_orlogsvaerftet_organization
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_light_1
							creator = "DEN"
							version_name = "Delfinen Class"
						}
						name = "Delfinen"
						requested_factories = 1
						progress = 0.25
						amount = 1
						industrial_manufacturer = mio:DEN_orlogsvaerftet_organization
					}
				}
				else = {
					create_equipment_variant = {
						name = "Delfinen Class" 
						type = ship_hull_light_2
						name_group = DEN_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_1
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = ship_light_battery_1
							rear_1_custom_slot = empty
						}
						design_team = mio:DEN_orlogsvaerftet_organization
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_light_1
							creator = "DEN"
							version_name = "Delfinen Class"
						}
						name = "Delfinen"
						requested_factories = 1
						progress = 0.25
						amount = 1
						industrial_manufacturer = mio:DEN_orlogsvaerftet_organization
					}
				}
				add_tech_bonus = {
					name = DEN_modernize_the_navy
					bonus = 0.5
					uses = 2
					category = cl_tech
					category = dd_tech
				}
			}
			##########
			# NO MTG #
			##########
			else = {
				add_tech_bonus = {
					name = DEN_modernize_the_navy
					bonus = 0.75
					uses = 2
					category = cl_tech
					category = dd_tech
				}
			}
			
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 911 99 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 99 911 37 912 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_sovaernets_operative_kommando
		icon = GFX_focus_DEN_sovaernets_operative_kommando
		prerequisite = { focus = DEN_refit_civilian_ships focus = DEN_modernize_the_navy }

		relative_position_id = DEN_expand_ubadsvabnet
		x = -2
		y = 2

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_NAVY_XP FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {

			add_command_power = 15
			navy_experience = 15

			DEN_improve_sovaernet_NS = yes
			add_to_variable = {
				DEN_sovaernet_naval_coordination = 0.05
				tooltip = naval_coordination_tt
			}
			add_to_variable = {
				DEN_sovaernet_navy_org = 0.05
				tooltip = navy_org_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_naval_morale = 0.05
				tooltip = naval_morale_factor_tt
			}
			add_to_variable = { 
				DEN_sovaernet_naval_critical_score_chance = 0.05
				tooltip = naval_critical_score_chance_factor_tt
			}

			add_doctrine_cost_reduction = {
				name = DEN_sovaernets_operative_kommando
				cost_reduction = 0.25
				uses = 2
				category = naval_doctrine
			}

			every_unit_leader = {
				limit = {
					is_navy_leader = yes
				}
				random_select_amount = 3
				add_skill_level = 1
				add_attack = 1
				add_defense = 1
				add_maneuver = 1
				add_coordination = 1
			}
			
		}
	}

	focus = {
		id = DEN_restructuring_sovaernet 
		icon = GFX_focus_DEN_reorganize_sovaernet
		prerequisite = { focus = DEN_refit_civilian_ships focus = DEN_modernize_the_navy }

		relative_position_id = DEN_expand_ubadsvabnet
		x = 2
		y = 2

		cost = 10

		available = { 
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_NAVY_XP FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER }

		completion_reward = {

			add_command_power = 15
			navy_experience = 15

			DEN_improve_sovaernet_NS = yes
			add_to_variable = {
				DEN_sovaernet_naval_coordination = 0.05
				tooltip = naval_coordination_tt
			}
			add_to_variable = {
				DEN_sovaernet_navy_org = 0.05
				tooltip = navy_org_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_naval_morale = 0.05
				tooltip = naval_morale_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_naval_critical_score_chance = 0.05
				tooltip = naval_critical_score_chance_factor_tt
			}
			
			add_doctrine_cost_reduction = {
				name = DEN_restructuring_sovaernet
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}

			every_unit_leader = {
				limit = {
					is_navy_leader = yes
				}
				gain_xp = 100
				#add_random_trait = { old_guard brilliant_strategist inflexible_strategist }
			}
		}
	}

	focus = {
		id = DEN_appropriate_odense_staalskibsvaerft
		icon = GFX_focus_POL_develop_polish_shipbuilding
		prerequisite = { focus = DEN_refit_civilian_ships focus = DEN_modernize_the_navy }

		relative_position_id = DEN_expand_ubadsvabnet
		x = 0
		y = 2

		cost = 5

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

		completion_reward = {
			mio:DEN_burmeister_wain_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.2
				add_mio_research_bonus = 0.05
			}

			mio:DEN_orlogsvaerftet_organization = {
				unlock_mio_trait_tooltip = DEN_mio_trait_ship_production
			}

			add_to_variable = { DEN_industrial_capabilities_ship_repair = 0.1 }
			custom_effect_tooltip = DEN_appropriate_odense_staalskibsvaerft_modifier_tt

			#######
			# MTG #
			#######
			if = {
				limit = { 
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = DEN_appropriate_odense_staalskibsvaerft
					bonus = 0.25
					uses = 2
					category = ship_modules_tech
				}
			}
			##########
			# NO MTG #
			##########
			else = {
				add_tech_bonus = {
					name = DEN_appropriate_odense_staalskibsvaerft
					bonus = 0.25
					uses = 2
					category = naval_equipment
				}
			}
			
			add_equipment_to_stockpile = { 
				type = convoy_1
				amount = 20 
				producer = DEN
			}

			if = {
				limit = {
					911 = { #Fyn
						is_fully_controlled_by = ROOT
					}
				}
				911 = { 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				random_controlled_state = {
					limit = {
						is_fully_controlled_by = ROOT
						is_coastal = yes
						free_building_slots = {
							building = dockyard
							size > 0
							include_locked = yes
						}
					}
					prioritize = { 99 37 912 } 
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_baltic_sea_domination
		icon = GFX_focus_generic_baltic_sea_fleet

		prerequisite = { focus = DEN_sovaernets_operative_kommando focus = DEN_restructuring_sovaernet focus = DEN_appropriate_odense_staalskibsvaerft }

		mutually_exclusive = { focus = DEN_north_sea_ambitions }

		relative_position_id = DEN_expand_ubadsvabnet
		x = -1
		y = 3

		cost = 10

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }

		completion_reward = {
			DEN_improve_sovaernet_NS = yes
			add_to_variable = {
				DEN_sovaernet_navy_org = 0.05
				tooltip = navy_org_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_naval_morale = 0.05
				tooltip = naval_morale_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_navy_screen_attack = 0.05
				tooltip = navy_screen_attack_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_navy_screen_defence = 0.05
				tooltip = navy_screen_defence_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_screening_efficiency = 0.1
				tooltip = screening_efficiency_tt
			}
			
			add_tech_bonus = {
				name = DEN_baltic_sea_domination
				bonus = 0.75
				uses = 3
				category = dd_tech
				category = cl_tech
				category = ca_tech
			}

			if = { 	#Gotland
				limit = { 124 = { is_fully_controlled_by = ROOT } }
				124 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = naval_base
						level = 1
						province = 408
						instant_build = yes
					}
				}
			}
			if = { 	#BORNHOLM
				limit = { 910 = { is_fully_controlled_by = ROOT } }
				910 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = naval_base
						level = 1
						province = 6361
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_north_sea_ambitions
		icon = GFX_focus_generic_north_atlantic_fleet

		prerequisite = { focus = DEN_sovaernets_operative_kommando focus = DEN_restructuring_sovaernet focus = DEN_appropriate_odense_staalskibsvaerft }

		mutually_exclusive = { focus = DEN_baltic_sea_domination }

		relative_position_id = DEN_expand_ubadsvabnet
		x = 1
		y = 3

		cost = 10

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			DEN_improve_sovaernet_NS = yes
			add_to_variable = { 
				DEN_sovaernet_navy_org = 0.05
				tooltip = navy_org_factor_tt
			}
			add_to_variable = { 
				DEN_sovaernet_naval_morale = 0.05
				tooltip = naval_morale_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_navy_anti_air = 0.05
				tooltip = navy_anti_air_attack_factor_tt
			}
			add_to_variable = {
				DEN_sovaernet_capital_ship_defence = 0.05
				tooltip = navy_capital_ship_defence_tt
			}
			add_to_variable = {
				DEN_sovaernet_positioning = 0.05
				tooltip = positioning_tt
			}

			if = {
				limit = {
					NOT = {
						has_completed_focus = DEN_modernize_the_navy
						has_completed_focus = DEN_refit_civilian_ships
					}
				}
				custom_effect_tooltip = DEN_with_refit_old_ships_completed_tt
				effect_tooltip = { 
					DEN_get_converted_air_carriers = yes 
				}

				custom_effect_tooltip = DEN_with_modernize_the_navy_completed_tt
				effect_tooltip = { 
					DEN_get_proper_air_carriers = yes 
				}

			}
			else_if = {
				limit = {
					has_completed_focus = DEN_refit_civilian_ships
				}
				###########
				### MTG ###
				###########
				DEN_get_converted_air_carriers = yes
			}
			else_if = {
				limit = {
					has_completed_focus = DEN_modernize_the_navy
				}
				DEN_get_proper_air_carriers = yes
			}



			if = { 	#FAROE ISLANDS
				limit = { 337 = { is_fully_controlled_by = ROOT } }
				337 = {
					add_building_construction = {
						type = naval_base
						level = 1
						province = 13003
						instant_build = yes
					}
				}
			}
			if = { 	#ICELAND
				limit = { 100 = { is_fully_controlled_by = ROOT } }
				100 = {
					add_building_construction = {
						type = naval_base
						level = 1
						province = 12674
						instant_build = yes
					}
				}
			}
			if = { 	#GREENLAND
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_building_construction = {
						type = naval_base
						level = 1
						province = 12512
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_naval_power_projection
		icon = GFX_focus_DEN_naval_power_projection
		prerequisite = { focus = DEN_baltic_sea_domination focus = DEN_north_sea_ambitions }

		relative_position_id = DEN_expand_ubadsvabnet
		x = 0
		y = 4

		cost = 10

		available = {
			any_core_state = { 
				is_owned_and_controlled_by = ROOT
				is_coastal = yes
			}
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {

			mio:DEN_orlogsvaerftet_organization = {
				add_mio_size = 1
			}

			mio:DEN_burmeister_wain_organization = {
				add_mio_size = 1
			}

			add_doctrine_cost_reduction = {
				name = DEN_naval_power_projection
				cost_reduction = 0.5
				uses = 2
				category = naval_doctrine
			}

			if = { #Bornholm
				limit = {
					910 = { is_fully_controlled_by = ROOT }
					has_completed_focus = DEN_baltic_sea_domination
				}
				910 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						province = 6361
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = { 	
				limit = { 
					OR = {
						NOT = { 
							910 = { is_fully_controlled_by = ROOT }
							has_completed_focus = DEN_north_sea_ambitions
						}
						AND = {
							910 = { is_fully_controlled_by = ROOT }
							NOT = { has_completed_focus = DEN_north_sea_ambitions }
						}
						AND = {
							NOT = { 910 = { is_fully_controlled_by = ROOT }}
							has_completed_focus = DEN_baltic_sea_domination
						}
					}
				}
				custom_effect_tooltip = DEN_baltic_sea_domination_completed_tt
				effect_tooltip = {
					910 = {
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = dockyard
							level = 1
							instant_build = yes
						}
						add_building_construction = {
							type = naval_base
							level = 2
							province = 6361
							instant_build = yes
						}
						add_building_construction = {
							type = air_base
							level = 2
							instant_build = yes
						}
					}
				}
			}

			if = {  #Gotland
				limit = {
					124 = { is_fully_controlled_by = ROOT }
					has_completed_focus = DEN_baltic_sea_domination
				}
				124 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						province = 408
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = {
				limit = { 
					OR = {
						NOT = { 
							124 = { is_fully_controlled_by = ROOT }
							has_completed_focus = DEN_north_sea_ambitions
						}
						AND = {
							124 = { is_fully_controlled_by = ROOT }
							NOT = { has_completed_focus = DEN_north_sea_ambitions }
						}
						AND = {
							NOT = { 124 = { is_fully_controlled_by = ROOT }}
							has_completed_focus = DEN_baltic_sea_domination
						}
					}
				}
				custom_effect_tooltip = DEN_baltic_sea_domination_completed_tt
				effect_tooltip = {
					124 = {
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = dockyard
							level = 1
							instant_build = yes
						}
						add_building_construction = {
							type = naval_base
							level = 2
							province = 408
							instant_build = yes
						}
						add_building_construction = {
							type = air_base
							level = 2
							instant_build = yes
						}
					}
				}
			}

			if = { #Faroes
				limit = {
					337 = { is_fully_controlled_by = ROOT }
					has_completed_focus = DEN_north_sea_ambitions
				}
				337 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						province = 13003
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = { 
				limit = { 
					OR = {
						NOT = { 
							337 = { is_fully_controlled_by = ROOT }
							has_completed_focus = DEN_baltic_sea_domination
						}
						AND = {
							337 = { is_fully_controlled_by = ROOT }
							NOT = { has_completed_focus = DEN_baltic_sea_domination }
						}
						AND = {
							NOT = { 337 = { is_fully_controlled_by = ROOT }}
							has_completed_focus = DEN_north_sea_ambitions
						}
					}
				}
				custom_effect_tooltip = DEN_north_sea_ambitions_completed_tt
				effect_tooltip = {
					337 = {
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = dockyard
							level = 1
							instant_build = yes
						}
						add_building_construction = {
							type = naval_base
							level = 2
							province = 13003
							instant_build = yes
						}
						add_building_construction = {
							type = air_base
							level = 2
							instant_build = yes
						}
					}
				}
			}
			
			if = { #Iceland
				limit = {
					100 = { is_fully_controlled_by = ROOT }
					has_completed_focus = DEN_north_sea_ambitions
				}
				100 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 2
						province = 12674
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = { 
				limit = { 
					OR = {
						NOT = { 
							100 = { is_fully_controlled_by = ROOT }
							has_completed_focus = DEN_baltic_sea_domination
						}
						AND = {
							100 = { is_fully_controlled_by = ROOT }
							NOT = { has_completed_focus = DEN_baltic_sea_domination }
						}
						AND = {
							NOT = { 100 = { is_fully_controlled_by = ROOT }}
							has_completed_focus = DEN_north_sea_ambitions
						}
					}
				}
				custom_effect_tooltip = DEN_north_sea_ambitions_completed_tt
				effect_tooltip = {
					100 = {
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = dockyard
							level = 1
							instant_build = yes
						}
						add_building_construction = {
							type = naval_base
							level = 2
							province = 12674
							instant_build = yes
						}
						add_building_construction = {
							type = air_base
							level = 2
							instant_build = yes
						}
					}
				}
			}
			if = { 	#SJAELLAND
				limit = { 37 = { is_fully_controlled_by = ROOT } }
				37 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = naval_base
						level = 1
						province = 6287
						instant_build = yes
					}
				}
			}
			if = { 	#FYN
				limit = { 911 = { is_fully_controlled_by = ROOT } }
				911 = {
					add_building_construction = {
						type = naval_base
						level = 1
						province = 3325
						instant_build = yes
					}
				}
			}
			if = { 	#NORREJYLLAND
				limit = { 99 = { is_fully_controlled_by = ROOT } }
				99 = {
					add_building_construction = {
						type = naval_base
						level = 1
						province = 394
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_fromandskorpset
		icon = GFX_focus_DEN_fromandskorpset
		prerequisite = { focus = DEN_baltic_sea_domination }
		prerequisite = { focus = DEN_generalkommandoen }

		relative_position_id = DEN_sovaernets_operative_kommando
		x = -1
		y = 2

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {

			add_ideas = DEN_fromandskorpset_ns

			add_tech_bonus = {
				name = DEN_fromandskorpset
				bonus = 1.0
				uses = 2
				category = marine_tech
				category = tp_tech
			}

			add_doctrine_cost_reduction = {
				name = DEN_fromandskorpset
				cost_reduction = 0.5
				uses = 2
				category = cat_marines_doctrine
			}
		}
	}

#### AIR FORCE ####

	focus = {
		id = DEN_domestic_designs
		icon = GFX_focus_DEN_domestic_designs
		prerequisite = { focus = DEN_expand_vaernepligten }
		mutually_exclusive = { focus = DEN_foreign_designs }

		relative_position_id = DEN_expand_vaernepligten
		x = 5
		y = 1

		cost = 10

		available = {
			any_core_state = { is_owned_and_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			mio:DEN_flyvemaskinevaerksted_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.1
			}

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				create_equipment_variant = { 
					name = "Marinejager" 
					type = small_plane_airframe_1
					allow_without_tech = no
					modules = {
						fixed_main_weapon_slot = light_mg_4x
						engine_type_slot = engine_1_1x
						special_type_slot_1 = empty
					}
					icon = "GFX_DEN_basic_small_fighter_2"
					model = "DEN_light_plane_1_entity"
				}
				create_equipment_variant = {
					name = "Marinebomber"
					type = small_plane_cas_airframe_1
					allow_without_tech = no
					modules = {
						fixed_main_weapon_slot = bomb_locks
						fixed_auxiliary_weapon_slot_1 = light_mg_2x
						engine_type_slot = engine_1_1x
						special_type_slot_1 = dive_brakes_small
						special_type_slot_2 = empty 
					}
					icon = "GFX_DEN_basic_small_cas_2"
					model = "DEN_light_plane_1_var_1_entity"
				}
			}
			else = {
				create_equipment_variant = {
					name = "Marinejager"
					type = fighter_equipment_1
					allow_without_tech = no
					upgrades = {
						plane_gun_upgrade = 1
					}
				}
				create_equipment_variant = {
					name = "Marinebomber"
					type = cas_equipment_1
					allow_without_tech = no
					upgrades = {
						plane_cas_upgrade = 1
					}
				}
			}

			add_tech_bonus = {
				name = DEN_domestic_designs
				bonus = 0.65
				uses = 2
				category = air_equipment
			}	

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_foreign_designs
		icon = GFX_focus_generic_copy_plane_designs 
		prerequisite = { focus = DEN_expand_vaernepligten }
		mutually_exclusive = { focus = DEN_domestic_designs }

		relative_position_id = DEN_domestic_designs
		x = 2
		y = 0

		cost = 10

		available = {
			any_core_state = { is_owned_and_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INTERNATIONAL_TRADE FOCUS_FILTER_INDUSTRY FOCUS_FILTER_HISTORICAL }

		completion_reward = {
			mio:DEN_flyvertroppernes_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.1
			}

			add_tech_bonus = {
				name = DEN_foreign_designs
				bonus = 1
				uses = 1
				category = air_equipment
			}

			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_cas_airframe
				seller_tags = { HOL ENG GER SWE } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_airframe
				seller_tags = { HOL ENG GER SWE } 
			}

			random_core_state = {
				limit = {
					is_fully_controlled_by = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				#prioritize = { 99 911 912 37 } 
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DEN_unify_flyvevabnet
		icon = GFX_focus_DEN_unify_flyvevabnet
		prerequisite = { focus = DEN_domestic_designs focus = DEN_foreign_designs }

		relative_position_id = DEN_domestic_designs
		x = 1
		y = 1

		cost = 5

		available = {
			any_core_state = { is_owned_and_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_manpower = 1500
			add_command_power = 25
			air_experience = 25

			mio:DEN_flyvertroppernes_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.2
				add_mio_research_bonus = 0.05

				unlock_mio_trait_tooltip = DEN_mio_trait_standardized_production_flyvertroppernes
			}
			mio:DEN_flyvemaskinevaerksted_organization = {
				add_mio_size = 1
				add_mio_funds_gain_factor = 0.2
				add_mio_research_bonus = 0.05

				unlock_mio_trait_tooltip = DEN_mio_trait_standardized_production_flyvemaskinevaerksted
			}

			DEN_improve_flyvevabnet_NS = yes
			
			add_to_variable = { 
				DEN_flyvevabnet_ace_generation_chance = 0.05 
				tooltip = air_ace_generation_chance_factor_tt
			}
			add_to_variable = { 
				DEN_flyvevabnet_air_accidents = -0.05 
				tooltip = air_accidents_factor_tt
			}
			
			add_doctrine_cost_reduction = {
				name = DEN_unify_flyvevabnet
				cost_reduction = 0.5
				uses = 2
				category = air_doctrine
			}

			add_doctrine_cost_reduction = {
				name = DEN_unify_flyvevabnet
				cost_reduction = 0.5
				uses = 2
				category = cat_paratroopers_doctrine
			}
		}
	}

	focus = {
		id = DEN_flyveskolen
		icon = GFX_focus_DEN_flyveskolen
		prerequisite = { focus = DEN_unify_flyvevabnet }

		relative_position_id = DEN_domestic_designs
		x = 1
		y = 2

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

		completion_reward = {
			air_experience = 25

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {DEN_flyvevabnet_ace_generation_chance = 0.05
				tooltip = air_ace_generation_chance_factor_tt
			}
			add_to_variable = {DEN_flyvevabnet_mission_efficiency = 0.05
				tooltip = air_mission_efficiency_tt
			}
			add_to_variable = {DEN_flyvevabnet_air_agility = 0.05
				tooltip = air_agility_factor_tt
			}

			mio:DEN_flyvemaskinevaerksted_organization = {
				unlock_mio_trait_tooltip = DEN_mio_trait_sub_detection
				unlock_mio_trait_tooltip = DEN_mio_trait_naval_detection
			}

			add_doctrine_cost_reduction = {
				name = DEN_flyveskolen
				cost_reduction = 0.25
				uses = 2
				category = air_doctrine
			}

		}
	}

	focus = {
		id = DEN_flyvertaktisk_kommando
		icon = GFX_focus_DEN_flyvetaktisk_kommando
		prerequisite = { focus = DEN_flyveskolen }

		relative_position_id = DEN_domestic_designs
		x = 0
		y = 3

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_command_power = 25

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = { 
				DEN_flyvevabnet_air_accidents = -0.05
				tooltip = air_accidents_factor_tt
			}
			add_to_variable = { 
				DEN_flyvevabnet_air_night_penalty = -0.05
				tooltip = air_night_penalty_tt
			}
			add_to_variable = { 
				DEN_flyvevabnet_air_weather_penalty = -0.05
				tooltip = air_weather_penalty_tt
			}

			add_doctrine_cost_reduction = {
				name = DEN_flyvertaktisk_kommando
				cost_reduction = 0.25
				uses = 2
				category = air_doctrine
			}
		}
	}

	focus = {
		id = DEN_air_force_power_projection
		icon = GFX_focus_generic_air_bases
		prerequisite = { focus = DEN_flyveskolen }

		relative_position_id = DEN_domestic_designs
		x = 2
		y = 3

		cost = 10

		available = {
			any_core_state = { is_owned_and_controlled_by = ROOT }
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_manpower = 1500

			add_tech_bonus = {
				name = DEN_air_force_power_projection
				bonus = 0.5
				uses = 2
				category = radar_tech
			}

			if = { 	#BORNHOLM
				limit = { 910 = { is_fully_controlled_by = ROOT } }
				910 = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			if = { 	#SJAELLAND
				limit = { 37 = { is_fully_controlled_by = ROOT } }
				37 = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			if = { 	#NORREJYLLAND
				limit = { 99 = { is_fully_controlled_by = ROOT } }
				99 = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			if = { 	#FAROE ISLANDS
				limit = { 337 = { is_fully_controlled_by = ROOT } }
				337 = {
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
			}
			if = { 	#ICELAND
				limit = { 100 = { is_fully_controlled_by = ROOT } }
				100 = {
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
				}
			}
			if = { 	#GREENLAND
				limit = { 101 = { is_fully_controlled_by = ROOT } }
				101 = {
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = DEN_torpedofly
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = DEN_flyvertaktisk_kommando focus = DEN_air_force_power_projection }
		prerequisite = { focus = DEN_north_sea_ambitions }

		relative_position_id = DEN_domestic_designs
		x = -2
		y = 4

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			air_experience = 25

			mio:DEN_flyvemaskinevaerksted_organization = {
				add_mio_size = 1
			}

			add_ideas = DEN_rule_the_north_sea

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {
				DEN_flyvevabnet_naval_strike_targetting = 0.1
				tooltip = naval_strike_targetting_factor_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_agility = 0.05
				tooltip = air_agility_factor_tt
			}

			add_tech_bonus = {
				name = DEN_torpedofly
				bonus = 1.0
				uses = 2
				category = naval_bomber
				category = cv_tech
			}

			add_doctrine_cost_reduction = {
				name = DEN_torpedofly
				cost_reduction = 0.5
				uses = 2
				category = cat_paratroopers_doctrine
			}
		}
	}

	focus = {
		id = DEN_jagerfly
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = DEN_flyvertaktisk_kommando focus = DEN_air_force_power_projection }
		mutually_exclusive = { focus = DEN_luftstotte focus = DEN_bombefly }

		relative_position_id = DEN_domestic_designs
		x = 0
		y = 4

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }

		completion_reward = {
			air_experience = 25

			mio:DEN_flyvemaskinevaerksted_organization = {
				add_mio_size = 1
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {
				DEN_flyvevabnet_escort_efficiency = 0.05
				tooltip = air_escort_efficiency_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_intercept_efficiency = 0.05
				tooltip = air_intercept_efficiency_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_agility = 0.05
				tooltip = air_agility_factor_tt
			}
			
			add_tech_bonus = {
				name = DEN_jagerfly
				bonus = 1.0
				uses = 2
				category = light_fighter
				category = cat_heavy_fighter
			}
		}
	}

	focus = {
		id = DEN_luftstotte
		icon =  GFX_focus_generic_cas_aircraft
		prerequisite = { focus = DEN_flyvertaktisk_kommando focus = DEN_air_force_power_projection }
		mutually_exclusive = { focus = DEN_jagerfly focus = DEN_bombefly }

		relative_position_id = DEN_domestic_designs
		x = 2
		y = 4

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

		completion_reward = {
			air_experience = 25

			mio:DEN_flyvertroppernes_organization = {
				add_mio_size = 1
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {
				DEN_flyvevabnet_cas_efficiency = 0.05
				tooltip = air_cas_efficiency_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_agility = 0.05
				tooltip = air_agility_factor_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_ground_attack = 0.05
				tooltip = ground_attack_factor_tt
			}

			add_tech_bonus = {
				name = DEN_luftstotte
				bonus = 1.0
				uses = 2
				category = cas_bomber
				category = tactical_bomber
			}
		}
	}

	focus = {
		id = DEN_bombefly
		icon = GFX_focus_generic_long_range_aircraft
		prerequisite = { focus = DEN_flyvertaktisk_kommando focus = DEN_air_force_power_projection }
		mutually_exclusive = { focus = DEN_jagerfly focus = DEN_luftstotte }

		relative_position_id = DEN_domestic_designs
		x = 4
		y = 4

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }

		completion_reward = {
			air_experience = 25

			mio:DEN_flyvertroppernes_organization = {
				add_mio_size = 1
			}

			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {
				DEN_flyvevabnet_air_bombing_targetting = 0.05
				tooltip = air_bombing_targetting_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_strategic_bomber = 0.05
				tooltip = air_strategic_bomber_bombing_factor_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_agility = 0.05
				tooltip = air_agility_factor_tt
			}

			add_tech_bonus = {
				name = DEN_bombefly
				bonus = 1.0
				uses = 2
				category = tactical_bomber
				category = cat_strategic_bomber
			}
		}
	}

	focus = {
		id = DEN_advanced_flight
		icon = GFX_focus_rocketry
		prerequisite = { focus = DEN_jagerfly focus = DEN_luftstotte focus = DEN_bombefly }

		relative_position_id = DEN_domestic_designs
		x = 1
		y = 5

		cost = 10

		available = {
			if = {
				limit = {
					is_subject = yes
				}
				hidden_trigger = {
					has_country_flag = DEN_unlock_military_branch_flag
				}
			}
		}

		search_filters = { FOCUS_FILTER_AIR_XP FOCUS_FILTER_RESEARCH }

		completion_reward = {

			air_experience = 25
			
			DEN_improve_flyvevabnet_NS = yes
			add_to_variable = {
				DEN_flyvevabnet_mission_efficiency = 0.05
				tooltip = air_mission_efficiency_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_night_penalty = -0.05
				tooltip = air_night_penalty_tt
			}
			add_to_variable = {
				DEN_flyvevabnet_air_weather_penalty = -0.05
				tooltip = air_weather_penalty_tt
			}

			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}

			add_tech_bonus = {
				name = DEN_advanced_flight
				bonus = 0.75 # was 1
				uses = 1
				category = rocketry
			}
			add_tech_bonus = {
				name = DEN_advanced_flight
				bonus = 1
				uses = 1
				category = jet_technology
			}
		}
	}

	shared_focus = NORDIC_form_joint_alliance
}