= 500 ? 'bold' : 'normal'; return (string) ($matches[1] ?? 'font-weight:') . $normalized . (string) ($matches[3] ?? ';'); }, $html ); } }