/*
 * GitHub's [!IMPORTANT] alert is converted (by markdown-callouts) to a Material
 * admonition with the class `important`. Material for MkDocs does not ship a
 * built-in style for that class, so without this it falls back to the default
 * admonition look. Give it a distinct, GitHub-like purple style + icon.
 */
:root {
  --md-admonition-icon--important: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/></svg>');
}

.md-typeset .admonition.important,
.md-typeset details.important {
  border-color: #8250df;
  /* Themes that tint the admonition body per type default unknown types to
     note-blue; override so the box matches the violet border and title. */
  background-color: #8250df1a;
}

.md-typeset .important > .admonition-title::before,
.md-typeset .important > summary::before {
  background-color: #8250df;
  -webkit-mask-image: var(--md-admonition-icon--important);
          mask-image: var(--md-admonition-icon--important);
}
