I’m sure we’ve had threads before on this but I don’t think this question was raised.
Whether to put the period before or after the closing bracket if a parenthesis ends the sentence is something I’m always dithering over, sometimes using the one method sometimes the other. I had thought this was one of those British/American differences but googling to refresh my memory I chanced on this blog in which the blogess (I meant that as a joke but stopping to check I found a half-million hits!), in which, as I say, the blogess intones knowledgeably,
A full stop appears inside the brackets, if the bracket contains a complete sentence. ..... The full stop appears outside of the brackets if the brackets don’t contain a complete sentence.
Has this any foundation at all in reality? I’ve never heard of it before but then my grammar is intuitive since my formal education ended lo these ...., well, a long time ago!