Nations
When an event removes a colony and then checks stability, is the lost stability already gone?
Yes. Losing a colony also loses its stability at the same moment, so later checks in that event use the lower value. Boosting military or stability before the event is revealed avoids the loss.