/* Keep external links in their existing color; the marker inherits currentColor. */
:where(.prose, .site-inline-links, .md-typeset, .docblock)
  a:is([href^='https://'], [href^='http://'], [href^='//']):not(
    [data-card],
    [data-link-surface],
    :has(img, svg)
  )::after {
  content: '↗' / '';
  display: inline-block;
  margin-inline-start: 0.2em;
  color: inherit;
  font-family: system-ui, sans-serif;
  font-size: 0.85em;
  font-weight: normal;
  line-height: 1;
  text-decoration: none;
}

/* Internal origins come from the site URL configuration. */
:where(.prose, .site-inline-links, .md-typeset, .docblock)
  :is(a[href="http://localhost:3000"],
a[href^="http://localhost:3000/"],
a[href^="http://localhost:3000?"],
a[href^="http://localhost:3000#"],
a[href="//localhost:3000"],
a[href^="//localhost:3000/"],
a[href^="//localhost:3000?"],
a[href^="//localhost:3000#"],
a[href="http://localhost:3001"],
a[href^="http://localhost:3001/"],
a[href^="http://localhost:3001?"],
a[href^="http://localhost:3001#"],
a[href="//localhost:3001"],
a[href^="//localhost:3001/"],
a[href^="//localhost:3001?"],
a[href^="//localhost:3001#"],
a[href="https://vectorbt.pro"],
a[href^="https://vectorbt.pro/"],
a[href^="https://vectorbt.pro?"],
a[href^="https://vectorbt.pro#"],
a[href="//vectorbt.pro"],
a[href^="//vectorbt.pro/"],
a[href^="//vectorbt.pro?"],
a[href^="//vectorbt.pro#"],
a[href="https://members.vectorbt.pro"],
a[href^="https://members.vectorbt.pro/"],
a[href^="https://members.vectorbt.pro?"],
a[href^="https://members.vectorbt.pro#"],
a[href="//members.vectorbt.pro"],
a[href^="//members.vectorbt.pro/"],
a[href^="//members.vectorbt.pro?"],
a[href^="//members.vectorbt.pro#"]):not([data-card], [data-link-surface])::after {
  content: none;
}
