Transgender 16- and 17-year-olds in Scotland are soon likely to be able to apply to change the sex on their birth certificate for the first time as MSPs debated long into the night the Scottish government’s controversial plans to change gender recognition laws. The marathon session – believed to be the longest ever sitting of the parliament – ended just after midnight and after only half of tabled amendments had been discussed. It took place amid chaotic scenes at Holyrood, including disruption from the public gallery, uncertainty over whether certain amendments opened the bill to legal challenge, and attempts to delay proceedings into the new year.