Panama’s massive copper mine is sitting closed while its pension system is running out of funds. The two issues are closely linked.