/*
 * wikilinks — styling for resolved and unresolved [[...]] links.
 *
 * Same rule preview-panel documents: never *declare* a public --wl-*
 * property here, only read one with var(--wl-x, var(--wl-x-default)).
 * Grav's Assets manager renders a theme's custom.css before a plugin's
 * stylesheet, so at equal specificity a plugin-declared default would
 * silently beat a theme's mapping. Only the private --wl-*-default
 * properties are set here; a theme integrates via e.g.
 *
 *   .wikilink--missing { --wl-missing-fg: darkred; }
 */

.wikilink--missing {
  --wl-missing-fg-default: #c0392b;
  --wl-missing-border-default: currentColor;

  color: var(--wl-missing-fg, var(--wl-missing-fg-default));
  border-bottom: 1px dashed var(--wl-missing-border, var(--wl-missing-border-default));
  text-decoration: none;
}

.wikilink--missing:hover {
  text-decoration: none;
  border-bottom-style: solid;
}
