Sorry, I think I misremembered. Copy to Clipboard works fine on my live site (HTTPS) but fails on my local XAMPP installs, which run over plain HTTP. That matches what @luceos said about clipboard copying needing a secure context. Thanks for the help, everyone!