In the following MWE, I'd like the red-fading-tikz-rectangle-line to underline the three "subtiles". Before I start tinkering and guessworking around: How to accomplish this neatly?
\PassOptionsToPackage{svgnames}{xcolor}
\documentclass[a4paper]{article}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{colortbl}
\newlength{\mycustomlength}
\settowidth\mycustomlength{abcdefghiblablab}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabularx}{\textwidth}{@{}{1}{p{\mycustomlength}}{1}{X}@{}} % sub-headings modification
\multicolumn{2}{@{}l}{\sbox0{\textsc{\color{black}Some Subtitle}\phantom{M}}\usebox0 \tikz[baseline=-0.5ex] \shade[left color=red, right color=white] (0,0) rectangle ({\linewidth-\wd0},-0.02);}
\
bla bla bla bla! & blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla. blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.
\
\multicolumn{2}{@{}l}{\sbox0{\textsc{\color{black}Another Subtitle}\phantom{M}}\usebox0 \tikz[baseline=-0.5ex] \shade[left color=red, right color=white] (0,0) rectangle ({\linewidth-\wd0},-0.02);}
\
bla bla bla bla! & blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla. blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.
\
\multicolumn{2}{@{}l}{\sbox0{\underline{\textsc{\color{black}And A Third Subtitle}}\phantom{M}}\usebox0 \tikz[baseline=-0.5ex] \shade[left color=red, right color=white] (0,0) rectangle ({\linewidth-\wd0},-0.02);}
\
bla bla bla bla! & blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla. blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.blaaaaaaaaaaaaa blaaaaaaaaaaaaaaa. bla.
\
\end{tabularx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Desired outcome:
Edit
The answers so far have provided good attempts / solutions to replace the standard underlining with tikz.
Additionally, I would be happy to see an MWE where the length of the tikz-underline is decoupled from the text length, that is, where the length of the line is determined and fixed independently of the length of the text.







