The continental shelf of a coastal nation extends out to the outer edge of the continental margin but at least 200 nautical miles from the baselines of the territorial sea if the continental margin does not stretch that far.