What is the value search limit for custom search attributes in temporal cloud?

The doc says

The maximum total Search Attribute size is 40 KB.

Can someone let me know

  1. Is this limit per workflow running in a namespace?
  2. or it is the total value size of all custom search attributes attached to all the workflows running in a namespace?

This has been answered in What is the value search limit for custom search attributes in temporal cloud? - Stack Overflow