I am surprised that the support arms do not fold clear, they do on my low cost effort so check sizes of parts on drawing n,r,&q .
I have fitted ordinary 3'' hinges o to m (under to provide 90 deg. movement) and a small block of wood to hold p in the correct position on m then fitted pivots...