 Complete the following phrase:  Ṣafad had been captured by the Ayyubids in December 1188. It was returned to Christian and Templar control in the summer of 1240 in accordance with a truce between the 