/**
 * Brand styles
 * @countermeasure/web-components/components/brand
 */

.cmm-diamond {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.cmm-diamond--16 {
  width: 16px;
  height: 16px;
}

.cmm-diamond--20 {
  width: 20px;
  height: 20px;
}

.cmm-diamond--24 {
  width: 24px;
  height: 24px;
}

.cmm-diamond--32 {
  width: 32px;
  height: 32px;
}

.cmm-diamond--48 {
  width: 48px;
  height: 48px;
}

.cmm-diamond--64 {
  width: 64px;
  height: 64px;
}

.cmm-diamond__foreground {
  fill: #fafafa;
}

.cmm-diamond__slate {
  fill: #64748b;
}

.cmm-diamond__orange {
  fill: var(--color-orange-500, #f97316);
}

.cmm-wordmark {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-text, hsl(var(--foreground)));
}

.cmm-wordmark--dark {
  color: #fafafa;
}

.cmm-wordmark--light {
  color: #0f172a;
}

.cmm-wordmark__svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.cmm-wordmark__foreground,
.cmm-wordmark__text {
  fill: currentColor;
}

.cmm-wordmark__slate {
  fill: #64748b;
}

.cmm-wordmark__orange {
  fill: var(--color-orange-500, #f97316);
}

.cmm-wordmark__subtitle {
  margin-top: 0.125rem;
  color: var(--color-text-dim, hsl(var(--muted-foreground)));
  font: var(--type-caption, 500 0.6875rem/1.3 var(--font-sans, sans-serif));
  letter-spacing: var(--letter-label, 0.1em);
  text-transform: uppercase;
}

.cmm-connector-logo {
  --cmm-connector-logo-bg: #475569;

  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-display, var(--font-sans, Outfit, sans-serif));
  font-weight: 700;
  line-height: 1;
  background: var(--cmm-connector-logo-bg);
  border-radius: 4px;
  vertical-align: middle;
}

.cmm-connector-logo--16 {
  width: 16px;
  height: 16px;
  font-size: 0.5625rem;
}

.cmm-connector-logo--20 {
  width: 20px;
  height: 20px;
  font-size: 0.625rem;
}

.cmm-connector-logo--24 {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.cmm-connector-logo--32 {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.cmm-connector-logo--40 {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.cmm-connector-logo--48 {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
}

.cmm-connector-logo__asset {
  display: block;
  width: 100%;
  height: 100%;
}

.cmm-connector-logo__asset img,
.cmm-connector-logo__asset svg,
img.cmm-connector-logo__asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmm-connector-logo--vendor-splunk {
  --cmm-connector-logo-bg: #ff6b35;
}

.cmm-connector-logo--vendor-sentinel {
  --cmm-connector-logo-bg: #0078d4;
}

.cmm-connector-logo--vendor-elastic {
  --cmm-connector-logo-bg: #00bfb3;
}

.cmm-connector-logo--vendor-crowdstrike {
  --cmm-connector-logo-bg: #fa0f00;
}

.cmm-connector-logo--vendor-defender {
  --cmm-connector-logo-bg: #0078d4;
}

.cmm-connector-logo--vendor-sentinelone {
  --cmm-connector-logo-bg: #6300e5;
}

.cmm-connector-logo--vendor-misp {
  --cmm-connector-logo-bg: #00897b;
}

.cmm-connector-logo--vendor-opencti {
  --cmm-connector-logo-bg: #5c6bc0;
}

.cmm-connector-logo--vendor-mitre-attack {
  --cmm-connector-logo-bg: #c8102e;
}

.cmm-connector-logo--vendor-palo-alto {
  --cmm-connector-logo-bg: #fa582d;
}

.cmm-connector-logo--vendor-carbon-black {
  --cmm-connector-logo-bg: #000000;
}

.cmm-connector-logo--vendor-default {
  --cmm-connector-logo-bg: #475569;
}
