/*
 Custom Admonition Types
 =======================
 Copied from Ceedling's own site (ThrowTheSwitch/Ceedling, docs/mkdocs/assets/stylesheets/admonitions.css).
 */

/* ── Sponsorship ────────────────────────────────────────────────────────────
   Usage:  !!! sponsorship "ThingamaByte is a Great Sponsor"
               Body text here.
   ────────────────────────────────────────────────────────────────────────── */

/* Icon: Material Design Icons 'currency-usd'

   CSS mask-image requires an SVG data URL, and the :material-currency-usd: shortcode works only
   in Markdown, so the SVG path recreates the icon here.

   Colors: money green, its title tinted as Material tints its own admonitions' titles, so it
   reads in the light and dark schemes alike.
  */
:root {
  --md-admonition-icon--sponsorship: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11.8,10.9c-2.27-0.59-3-1.2-3-2.15c0-1.09,1.01-1.85,2.7-1.85c1.78,0,2.44,0.85,2.5,2.1h2.21c-0.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94,0.42-3.5,1.68-3.5,3.61c0,2.31,1.91,3.46,4.7,4.13c2.5,0.6,3,1.48,3,2.41c0,0.69-0.49,1.79-2.7,1.79c-2.06,0-2.87-0.92-2.98-2.1h-2.2c0.12,2.19,1.76,3.42,3.68,3.83V21h3v-2.15c1.95-0.37,3.5-1.5,3.5-3.55C17.5,12.46,14.07,11.49,11.8,10.9z'/></svg>");
}

.md-typeset .admonition.sponsorship,
.md-typeset details.sponsorship {
  border-color: rgb(17, 140, 79);
}

.md-typeset .sponsorship > .admonition-title,
.md-typeset .sponsorship > summary {
  background-color: rgba(17, 140, 79, .1);
}

.md-typeset .sponsorship > .admonition-title::before,
.md-typeset .sponsorship > summary::before {
  background-color: rgb(17, 140, 79);
  -webkit-mask-image: var(--md-admonition-icon--sponsorship);
          mask-image: var(--md-admonition-icon--sponsorship);
}
