Find a character style with a multiple color overrides and make it uniform
I'm not sure if this is possible with a script, it seems from what I've read that any scripted color search has to have pre-defined colors to look for. But here goes. I have a document with a lot of color overrides. There are dozens of different colors. In some instances, the color overrides were not uniformly applied. The last few characters of the string got a different color than the rest. For example:

Now, the good news is, the colored text does have a character style applied, "Colored Text". The problem is, there is one Colored Text character style, but lots of different colors. I.e., the set character color of the style is red, but in lots of cases it is then overridden, as in the image above.
Is there a way in scripting to find any string of text with "Colored Text" applied, ask "what is the color of the first character in the string?" And then apply that color to the rest of the characters in the found string? In other words, using the above image as an example, the script would find "sunto etusandiosam" and see that the "s" is pink, and apply that pink to the rest of the phrase.
(Because I know it's tempting to provide "best practice" advice, I'll just leave a note that I did not set this up, I'm just trying to fix it in the most efficient way :). )
