ideas = {

    gt_judiciary = {
        law = yes
        use_list_view = yes

        Independent = {

            available = {
                NOT = {
                    has_idea = rentier_state
                }
                OR = {
                    has_idea = prime_minister
                    has_idea = president 
                    has_idea = communal_council
                    has_idea = workers_council
                    has_idea = federal_council
                }
            }

            cost = 100
            removal_cost = -1

            modifier = {
                political_power_factor = 0.15
                stability_factor = 0.05
                drift_defence_factor = -0.05
            }

            ai_will_do = {

                base = 1

                modifier = {

                    OR = {
                    has_idea = prime_minister
                    has_idea = president 
                    has_idea = communal_council
                    has_idea = workers_council
                    has_idea = federal_council
                    has_government = democratic
                    }
                    add = 100
                }

                modifier = {
                    factor = 4
                }
            }

            cancel_if_invalid = yes
        }

        subordinate_to_the_executive = {

            available = {
                
                OR = {
                    has_idea = prime_minister
                    has_idea = president 
                    has_idea = communal_council
                    has_idea = workers_council
                    has_idea = workers_council
                    has_idea = federal_council
                    has_idea = monarch
                    has_idea = military_head
                    has_idea = chairman
                    has_government = neutrality
                }
            }
 
            cost = 100
            removal_cost = -1

            modifier = {
                political_power_factor = 0.05
                #stability_factor #= #0.05
                drift_defence_factor = 0.10
                resistance_activity = -0.10
            }

            ai_will_do = {

                  base = 10
                   
                   modifier = {

                    OR = {
                        has_government = neutrality
                        has_idea = monarch
                    }
                    add = 80
                   }

                   modifier = {

                    OR = {
                    has_idea = chairman
                    has_idea = military_head
                    }
                    add = 20
                   }

                   modifier = {
                    factor = 4
                   }
            }
            cancel_if_invalid = yes
        }

        politicized = {
           
           available = {
              
              OR = {
                has_government = fascism
                has_government = communism
              }
           }
           
           cost = 100
           removal_cost = -1

           modifier = {
            political_power_factor = -0.05
            drift_defence_factor = 0.20
            resistance_activity = -0.05
            resistance_damage_to_garrison = -0.05
           }

           ai_will_do = {

            base = 20

            modifier = {
                has_idea = chairman
                has_idea = military_head
                add = 60
            }

            modifier = {
                has_government = fascism
                add = 80
            }

            modifier = {
                factor = 4
            }

           }

           cancel_if_invalid = yes
        }

        corrupt = {

            available = {

                OR = {
                    has_idea = rentier_state
                    has_idea = laisezz_faire
                    has_idea = state_capitalism
                    has_idea = mixed_market
                }
            }

            cost = 100
            removal_cost = 1

            modifier = {
                political_power_factor = 0.15
                stability_factor = -0.15
                resistance_growth = 0.25
                compliance_growth = -0.25
                consumer_goods_factor = -0.10
            }

            ai_will_do = {

                base = 0

                modifier = {
                    has_idea = rentier_state
                    add = 80
                }

                modifier = {
                    has_idea = laisezz_faire
                    add = 1
                }

                modifier = {
                    has_idea = state_capitalism
                    add = 1
                }

                modifier = {
                    factor = 3
                }
            }
            
            cancel_if_invalid = yes
        }
    }
}