Appropriate policy, supported by a social compact by labour, business, communities and the government, can maximise the opportunities of the just transition