/* MMOPRO_POST_LINKS_V1: readable text links inside forum post content. */
html body .postbody div[id^="post_message_"] .postcontent
a[href]:not([href^="javascript:" i], [role="button"], .button, .textcontrol, .newcontent_textcontrol,
pre a, code a, .bbcode_code a, .bbcode_html a, .bbcode_php a,
:has(> img:only-child), :has(> svg:only-child)) {
    color: #7dd3fc !important;
    text-decoration-line: underline !important;
    text-decoration-color: currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.18em;
    text-decoration-skip-ink: auto;
    overflow-wrap: anywhere;
}

html body .postbody div[id^="post_message_"] .postcontent
a[href]:not([href^="javascript:" i], [role="button"], .button, .textcontrol, .newcontent_textcontrol,
pre a, code a, .bbcode_code a, .bbcode_html a, .bbcode_php a,
:has(> img:only-child), :has(> svg:only-child)):visited {
    color: #c4b5fd !important;
}

html body .postbody div[id^="post_message_"] .postcontent
a[href]:not([href^="javascript:" i], [role="button"], .button, .textcontrol, .newcontent_textcontrol,
pre a, code a, .bbcode_code a, .bbcode_html a, .bbcode_php a,
:has(> img:only-child), :has(> svg:only-child)):is(:hover, :focus-visible) {
    color: #bae6fd !important;
    text-decoration-thickness: 2px !important;
}

html body .postbody div[id^="post_message_"] .postcontent
a[href]:not([href^="javascript:" i], [role="button"], .button, .textcontrol, .newcontent_textcontrol,
pre a, code a, .bbcode_code a, .bbcode_html a, .bbcode_php a,
:has(> img:only-child), :has(> svg:only-child)):focus-visible {
    outline: 2px solid #8ef35e !important;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Keep saved BBCode text colours from masking the surrounding link colour. */
html body .postbody div[id^="post_message_"] .postcontent
a[href]:not([href^="javascript:" i], [role="button"], .button, .textcontrol, .newcontent_textcontrol,
pre a, code a, .bbcode_code a, .bbcode_html a, .bbcode_php a,
:has(> img:only-child), :has(> svg:only-child)) :is(span, font, strong, b, em, i, u, s, small) {
    color: inherit !important;
}
