/**
 * Suit Icon Highlight
 *
 * Adds background and colors to suit symbols
 */

/* Hide suit symbols in the right sidebar TOC (for any that slip through) */
.md-sidebar--secondary .suit-icon,
.md-nav--secondary .suit-icon {
  display: none;
}

.suit-icon {
  display: inline-block;
  background: #00a8cc;
  padding: 0.15em 0.25em;
  border-radius: 3px;
  line-height: 1;
  margin-left: 0.1em;
  margin-right: 0.1em;
  font-size: 1.2em;
  font-weight: bold;
  font-variant-emoji: text;
  font-family: 'Space Mono', monospace;
}

/* Black suits */
.suit-clubs,
.suit-spades {
  color: #000000;
}

/* Red suits */
.suit-diamonds,
.suit-hearts {
  color: #b22222;
}

/* Suit symbols in H2 and H3 headings - no background, with outlines */
h2 span.suit-icon,
h3 span.suit-icon {
  background: none !important;
  padding: 0 !important;
  margin-left: 0.3em !important;
  font-variant-emoji: text !important;
}

h2 span.suit-icon.suit-clubs,
h2 span.suit-icon.suit-spades,
h3 span.suit-icon.suit-clubs,
h3 span.suit-icon.suit-spades {
  color: #000000 !important;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff !important;
}

h2 span.suit-icon.suit-diamonds,
h2 span.suit-icon.suit-hearts,
h3 span.suit-icon.suit-diamonds,
h3 span.suit-icon.suit-hearts {
  color: #ff4444 !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000 !important;
}
