Wales is the first UK nation to introduce national guidance to protect its dark skies.