SMS dit: The Chabauty-Kim method for relative completions