ideas = {
	tariffs = { 
		law = yes
		tariffs_none = {
			available = {
			NOT = {
					has_government = fascism
					has_government = communism
					has_government = neutrality
					has_country_flag = closed_economy
					has_country_flag = limited_exports
				}
			}
			
			cost = 150
			removal_cost = -1
			
			modifier = {
				consumer_goods_factor = -0.05
				
				production_speed_dockyard_factor = -0.1
				production_speed_arms_factory_factor = -0.1
				production_speed_industrial_complex_factor = -0.1
				
				industrial_capacity_factory = -0.1
				industrial_capacity_dockyard = -0.1
				production_factory_max_efficiency_factor = 0.1
				production_factory_efficiency_gain_factor = 0.1
				line_change_production_efficiency_factor = 0.1
				
				research_speed_factor = 0.1
				
				
				political_power_factor = -0.1
				trade_opinion_factor = 0.25
			}
			
			on_add = {
				set_country_flag = tariffs_none
				clr_country_flag = tariffs_extreme
				clr_country_flag = tariffs_low
				clr_country_flag = tariffs_average
				clr_country_flag = tariffs_high
			}
			
			cancel_if_invalid = no
			
			ai_will_do = {
				factor = 5
				modifier = {
					factor = 5
					has_government = democratic
				}
				modifier = {
					factor = 0
					has_war = yes
				}
			}
		}
		tariffs_low = {
			available = {
				NOT = {
					has_government = communism
					has_government = fascism
					has_country_flag = closed_economy
				}
			}
			cost = 150
			removal_cost = -1
			
			modifier = {
				consumer_goods_factor = -0.025
				
				production_speed_dockyard_factor = -0.05
				production_speed_arms_factory_factor = -0.05
				production_speed_industrial_complex_factor = -0.05
				
				industrial_capacity_factory = -0.05
				industrial_capacity_dockyard = -0.05
				production_factory_max_efficiency_factor = 0.05
				production_factory_efficiency_gain_factor = 0.05
				line_change_production_efficiency_factor = 0.05
				
				research_speed_factor = 0.05
				
				
				political_power_factor = -0.05
				trade_opinion_factor = 0.10
			}
			
			on_add = {
				set_country_flag = tariffs_low
				clr_country_flag = tariffs_none
				clr_country_flag = tariffs_extreme
				clr_country_flag = tariffs_average
				clr_country_flag = tariffs_high
			}
			
			cancel_if_invalid = no
			
			ai_will_do = {
				factor = 7
				modifier = {
					factor = 5
					has_government = democratic
				}
				modifier = {
					factor = 0
					OR = {
					has_government = communism
					has_government = fascism
					}
				}
			}
		}
		tariffs_average = {
			
			available = {
				
			}
			
			on_add = {
				set_country_flag = tariffs_average
				clr_country_flag = tariffs_none
				clr_country_flag = tariffs_low
				clr_country_flag = tariffs_extreme
				clr_country_flag = tariffs_high
			}
			
			default = yes
			cost = 150
			removal_cost = -1
			
			modifier = {
				consumer_goods_factor = -0.01
				
				production_speed_dockyard_factor = -0.025
				production_speed_arms_factory_factor = -0.025
				production_speed_industrial_complex_factor = -0.025
				
				industrial_capacity_factory = -0.025
				industrial_capacity_dockyard = -0.025
				production_factory_max_efficiency_factor = 0.025
				production_factory_efficiency_gain_factor = 0.025
				line_change_production_efficiency_factor = 0.025
				
				research_speed_factor = 0.025
				
				
				political_power_factor = 0.025
				trade_opinion_factor = 0.05
				
			}
			
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 10

			}
		}
		tariffs_high = {
			
			available = {
				NOT = { has_country_flag = free_trade }
				OR = {
					AND = {
						OR = {
					has_government = democratic
					}
						has_war = yes
						any_enemy_country = {
							ic_ratio = { 
								tag = ROOT 
								ratio > 0.7
							}
						}
					}
					AND = {
						NOT = { 
						OR = {
					has_government = democratic
					} 
					}
						OR = {
							has_country_flag = partial_economic_mobilisation
							has_country_flag = war_economy
							has_country_flag = tot_economic_mobilisation
						}
					}
				}
			}
			
			cost = 150
			removal_cost = -1
			
			modifier = {
				consumer_goods_factor = 0.02
				production_speed_industrial_complex_factor = 0.05
				production_speed_arms_factory_factor = 0.05
				production_speed_dockyard_factor = 0.05
				
				industrial_capacity_factory = 0.05
				industrial_capacity_dockyard = 0.05
				
				production_factory_max_efficiency_factor = -0.05
				production_factory_efficiency_gain_factor = -0.05
				line_change_production_efficiency_factor = -0.05
				
				fascism_drift = 0.01
				communism_drift = 0.01
				
				research_speed_factor = -0.05
				political_power_factor = 0.05
				trade_opinion_factor = -0.05
			}
			
			on_add = {
				set_country_flag = tariffs_high
				clr_country_flag = tariffs_none
				clr_country_flag = tariffs_low
				clr_country_flag = tariffs_average
				clr_country_flag = tariffs_extreme
			}
			
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 10
				
				modifier = {
					factor = 10
					OR = { 
						has_government = fascism
						has_government = communism
					}
				}
   				modifier = {
					factor = 0
					is_major = no
					is_in_faction = yes
					has_war = yes
				}
   			}
		}
		tariffs_extreme = {
			
			available = {
				OR = { 
					has_government = fascism
					has_government = communism
					has_government = neutrality
				}
				NOT = {
					has_country_flag = free_trade
					has_country_flag = export_focus
				}
			}
			
			cost = 150
			removal_cost = -1
			
			modifier = {
				consumer_goods_factor = 0.025
				production_speed_industrial_complex_factor = 0.1
				production_speed_arms_factory_factor = 0.1
				production_speed_dockyard_factor = 0.1
				
				industrial_capacity_factory = 0.1
				industrial_capacity_dockyard = 0.1
				
				production_factory_max_efficiency_factor = -0.1
				production_factory_efficiency_gain_factor = -0.1
				line_change_production_efficiency_factor = -0.1
				
				fascism_drift = 0.02
				communism_drift = 0.02
				
				research_speed_factor = -0.1
				political_power_factor = 0.1
				trade_opinion_factor = -0.15
			}
			
			on_add = {
				set_country_flag = tariffs_extreme
				clr_country_flag = tariffs_none
				clr_country_flag = tariffs_low
				clr_country_flag = tariffs_average
				clr_country_flag = tariffs_high
			}
			
			cancel_if_invalid = no

			ai_will_do = {
   				factor = 1

   				modifier = {
					factor = 0
					is_major = no
					is_in_faction = yes
					has_war = yes
				}
   			}
		}
	}
}