My information is that in AmE the period and comma always go inside the quotes, while in BrE they always go outside.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AvangiThe consensus seemed to be to use your principle of logical grouping in all cases except those of the period and comma.