.brand-component {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  color: var(--brand-navy, #0f172a);
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.brand-component-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-component-image[hidden],
.brand-component-fallback[hidden] {
  display: none;
}

.brand-component-logo.brand-component-xs { width: 120px; }
.brand-component-logo.brand-component-sm { width: 148px; }
.brand-component-logo.brand-component-md { width: 184px; }
.brand-component-logo.brand-component-lg { width: 240px; }

.brand-component-mark.brand-component-xs { width: 20px; height: 20px; }
.brand-component-mark.brand-component-sm { width: 24px; height: 24px; }
.brand-component-mark.brand-component-md { width: 40px; height: 40px; }
.brand-component-mark.brand-component-lg { width: 56px; height: 56px; }

.brand-component-mark .brand-component-image {
  width: 100%;
  height: 100%;
}

.brand-component-fallback {
  overflow: hidden;
  color: inherit;
  font-size: 1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-component-white,
.brand-component-dark {
  color: var(--brand-on-dark, #ffffff);
}

.brand-component-mark[aria-hidden="true"] .brand-component-fallback {
  display: none;
}

.brand-empty-mark,
.brand-loading-mark {
  display: inline-grid;
  place-items: center;
}

.brand-empty-mark {
  width: 28px;
  height: 28px;
}

.brand-empty-mark .brand-component,
.brand-loading-mark .brand-component {
  width: 100%;
  height: 100%;
}

.brand-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-loading-mark {
  width: 20px;
  height: 20px;
  animation: brand-loading-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes brand-loading-pulse {
  from { opacity: .55; transform: translateX(0); }
  to { opacity: 1; transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loading-mark { animation: none; }
}

@media (forced-colors: active) {
  .brand-component { color: CanvasText; }
}
