Text this: Spectral synthesis techniques for supernovae and kilonovae