Mandating boardroom diversity can narrow the opportunity gap for women