/* MediCare Bootstrap — theme icons (inc/icons.php).
   Single-colour SVG icons behave like Bootstrap Icons: 1em in size and
   drawn in the text colour, so `color` and `font-size` style them.

   Parts inside each SVG (for your own icons too):
     .mc-i-b   main shape — filled in the "duotone" and "solid" looks
     .mc-i-d   lines inside the main shape — turn white in "solid"
     .mc-i-dp  small filled marks inside the main shape — white in "solid"
     .mc-i-g   secondary area (e.g. gums) — always softly filled
   Anything without a class is just a line in the text colour.

   Per-site tweaks (child theme style.css), e.g.:
     .mc-service .mc-svg { --mc-icon-tint: .3; }      stronger two-tone fill
     .mc-svg { --mc-icon-cut: var(--mc-surface); }    "solid" inner lines colour */

.mc-svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
	overflow: visible;
	flex-shrink: 0;
}
.mc-svg .mc-i-dp { fill: currentColor; }
.mc-svg .mc-i-g { fill: currentColor; fill-opacity: var(--mc-icon-tint-2, .15); }

/* Two-tone */
.mc-svg--duotone .mc-i-b { fill: currentColor; fill-opacity: var(--mc-icon-tint, .18); }
.mc-svg--duotone .mc-i-g { fill-opacity: var(--mc-icon-tint-2, .3); }

/* Solid */
.mc-svg--solid .mc-i-b { fill: currentColor; }
.mc-svg--solid .mc-i-d { stroke: var(--mc-icon-cut, #fff); }
.mc-svg--solid .mc-i-dp { fill: var(--mc-icon-cut, #fff); stroke: var(--mc-icon-cut, #fff); }
.mc-svg--solid .mc-i-g { fill-opacity: var(--mc-icon-tint-2, .35); }

/* Colour / realistic images (PNG, WebP, JPG, multi-colour SVG, Media Library). */
.mc-icon-img {
	display: inline-block;
	width: var(--mc-icon-img-size, 1em);
	height: var(--mc-icon-img-size, 1em);
	object-fit: contain;
	vertical-align: -.125em;
	flex-shrink: 0;
}
/* In badges and the Icon block a picture gets more room than a line icon. */
.mc-icon-badge .mc-icon-img,
.mc-icon--badge .mc-icon-img { --mc-icon-img-size: 1.6em; }

/* Service sidebar list. */
.mc-aside-services a .mc-svg,
.mc-aside-services a .mc-icon-img { color: var(--mc-primary); width: 1.25rem; height: 1.25rem; }

/* [mc_icon] shortcode wrapper (carries size/colour). */
.mc-icon-inline { display: inline-block; line-height: 1; }
