It was always likely to come down to fish, and even the final hours were occupied by cod and mackerel.

After nine months of bartering, British Prime Minister Boris Johnson could declare that his trade deal with the European Union was done, while the bloc got to keep close ties with one of the world’s biggest economies.

Yet, while the outline was agreed around Wednesday lunchtime, it took a night to go through the legal text. Then, with the choreography already in place, last-minute haggling over fish stocks in the draft meant that an announcement didn’t come until the afternoon of Christmas Eve. The situation became more frantic because of disagreements over how the figures had been calculated.