The trail follows the literal divide from just outside Yellowstone to Chief Joseph/Lost Trail Pass, which doubles as the ID/MT border.