Do junction boxes have to be 12 inches above a dock's deck if the datum plane is below it?
Can't junctions be under the deck?


No, they can't.  

You have to satisfy both conditions:  


2' above highest high tide


and


12" above deck