Text this: Variational analysis of flat-top solitons in Bose–Einstein condensates