/*
 * TriageAI canonical brand identity V1.
 *
 * One mark. One wordmark. This namespace intentionally does not reuse
 * historical .triage-logo classes or their image/blend-mode overrides.
 */

.triage-brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("/brand/triageai-mark.svg") center / contain no-repeat;
  mask: url("/brand/triageai-mark.svg") center / contain no-repeat;
}

.triage-brand-wordmark {
  font-family: "IBM Plex Sans", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Landing */
.landing-v2 .triage-brand-mark--landing {
  width: 32px;
  height: 32px;
  color: var(--lv2-ink);
}

.landing-v2 .triage-brand-wordmark--landing {
  font-size: 17px;
  color: var(--lv2-ink);
}

/* Operator shell / Demo */
.sidebar-brand-block {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.sidebar-brand-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.triage-brand-mark--sidebar {
  width: 18px;
  height: 18px;
  color: rgba(24, 42, 33, 0.96);
}

.triage-brand-wordmark--sidebar {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-strong);
}

body[data-theme="night"] .triage-brand-mark--sidebar {
  color: rgba(242, 247, 243, 0.95);
}

body[data-theme="daylight"] .triage-brand-mark--sidebar {
  color: rgba(24, 42, 33, 0.96);
}

/* Canonical raster logo assets.
 *
 * The image assets predate the SVG mask mark and are the intended full-color
 * brand artwork. Keep the wordmark as live text; only the mark switches
 * between day/night raster variants.
 */
.triage-brand-image {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.triage-brand-image--landing {
  width: 32px;
  height: 32px;
}

.triage-brand-image-stack {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.triage-brand-image--sidebar {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
}

.triage-brand-image--day {
  display: none;
}

.triage-brand-image--night {
  display: block;
}

body[data-theme="daylight"] .triage-brand-image--day {
  display: block;
}

body[data-theme="daylight"] .triage-brand-image--night {
  display: none;
}

body[data-theme="night"] .triage-brand-image--day {
  display: none;
}

body[data-theme="night"] .triage-brand-image--night {
  display: block;
}
