In sedimentary phosphorites, P 2 O 5 can occur in several forms, such as fossilised bones, nodules, or other biochemogenic phosphates (Godet and Föllmi 2021). The precipitation of biochemogenic phosphates in marine sediments is restricted to the transition zone between oxic and suboxic environments close to the sediment-water interface. The most common phosphate encountered belongs to the apatite mineral group, with cryptocrystalline carbonate fluorapatite (CAF-apatite), also referred to as 'francolite', dominating in the occurrence of cryptocrystalline grains (Lécuyer et al. 1998;Ptáček 2016). Francolites are non-stoichiometric minerals with the generalised formula (Ca 10-a-b Na a Mg b (PO 4 ) 6-x(CO 3 ) x-y-z (CO 3 ,F) y (SO 4 ) z F 2 ) and numerous structural and chemical variations. Chemical substitutions can occur in all its lattice sites (the two Ca 2+ sites, PO 4 3− and F − ) (McLennan 2001;Veiderma et al. 2005). Bioapatites, another sedimentary apatite source, originate from phosphate biomineralisation of the hard skeleton of vertebrates and some invertebrates. For the precipitation of vertebrate bones and teeth, the nucleation by proteins and macromolecular matrices provides casts that control crystal growth. Such processes presumably also control the segregation of the skeleton of invertebrates (Trappe 1998). In inarticulate brachiopods, direct biomineralisation occurs as precipitation of phosphate to stabilise the exoskeletons. Their shells are initially composed of hard tissues, amorphous hydrogels, phosphate precipitates, and organic matter (Lowenstam and Weiner 1989). Post-mortem, during the diagenesis, the biogenic phosphatic matter chemically evolves toward CAF-apatite composition through various substitutions, together with an increase in crystallite size and formation of authigenic apatite phases (Trappe 1998). However, such alteration pathways are still only fragmentally understood (Ferretti et al. 2021).The shelly phosphorites found in northern Estonia were deposited during the Cambrian-Ordovician transition in the coastal zone of a shallow, epicontinental sea (Heinsalu and Viira 1997;Nielsen and Schovsbo 2011). They belong to the Kallavere Formation, which spreads over most of northern Estonia and parts of the Leningrad region in northwestern Russia (Fig. 1; Kaljo et al. 1988). The Kallavere Formation in the study area has low thermal maturity. It exhibits no evidence of hydrothermal influence due to overall tectonic stability and shallow burial of the region (Kirsimäe