/**
 * @file
 * Content type tag: tinted pill with an icon and an uppercase label.
 */

.rn-content-tag {
  --rn-tag-color: #ce4d0f;
  --rn-tag-bg: #faede7;
  --rn-tag-icon: url(../../assets/images/tag-article.svg);

  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  background: var(--rn-tag-bg);
  text-decoration: none;
  white-space: nowrap;
}

.rn-content-tag--tweet {
  --rn-tag-color: #2562be;
  --rn-tag-bg: #e9eff8;
  --rn-tag-icon: url(../../assets/images/tag-x.svg);
}

.rn-content-tag__icon {
  width: 18px;
  height: 18px;
  background: var(--rn-tag-icon) center / 18px 18px no-repeat;
}

.rn-content-tag .rn-content-tag__label {
  font-family: Poppins, sans-serif;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rn-tag-color);
}

a.rn-content-tag:hover .rn-content-tag__label,
a.rn-content-tag:focus-visible .rn-content-tag__label {
  text-decoration: underline;
}
