For two unequal and indefinite lines of text, how to center in a div (do not use js calculation)

problem description

how to center two lines of text with unequal length and variable length in a div (without using js calculation)

as shown in the following figure, text-align:center cannot be used directly because the length of the upper and lower lines of text varies. How to center the above line of text and align the lower title (responsible person) with the above

May.12,2022
Menu