/* ============================================================
   <BrandMark /> — xmesh logo lockup.

   Owns the canonical brand glyph (three nodes routing to a single
   hub) and the wordmark. Three sizes:
     sm — 28px chip · sidebar header
     md — 40px chip · generic placement
     lg — 96px chip · brand showcase / about pages

   Pairs with components/brand-mark/index.jsx. The glyph is a single SVG
   that renders at any size — only the chip dimensions change.
   ============================================================ */

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2-5);
  min-width: 0;
  color: var(--md-sys-color-on-surface);
}

.brand-mark__chip {
  flex-shrink: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark__info {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}

.brand-mark__wordmark {
  font: 500 15px/1 var(--md-sys-typescale-display-large-font);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark__tagline {
  font: 400 13px/1.5 var(--md-sys-typescale-body-large-font);
  color: var(--xm-color-on-surface-soft);
  max-width: 360px;
}

/* ---------- Sizes ---------- */
.brand-mark--sm {
  gap: var(--s-1);
}
.brand-mark--sm .brand-mark__chip {
  width: 24px; height: 24px;
  border-radius: 6px;
}
.brand-mark--sm .brand-mark__chip svg { width: 20px; height: 20px; }

.brand-mark--md {
  gap: var(--s-3-5);
}
.brand-mark--md .brand-mark__chip {
  width: 40px; height: 40px;
  border-radius: 10px;
}
.brand-mark--md .brand-mark__chip svg { width: 24px; height: 24px; }
.brand-mark--md .brand-mark__wordmark { font-size: 20px; }

.brand-mark--lg {
  gap: var(--s-8);
}
.brand-mark--lg .brand-mark__chip {
  width: 96px; height: 96px;
  border-radius: 22px;
}
.brand-mark--lg .brand-mark__chip svg { width: 60px; height: 60px; }
.brand-mark--lg .brand-mark__wordmark {
  font: 600 34px/1 var(--md-sys-typescale-body-large-font);
  letter-spacing: -0.02em;
}

/* ---------- Wordmark-only (no glyph) ----------
   The serif-driven brand wordmark used in the chat sidebar header
   and editorial brand placements. Display family + medium weight.
   Sizes scale with the wrapper modifier (--sm | --md | --lg). */
.brand-mark--wordmark-only { gap: 0; }
.brand-mark--wordmark-only .brand-mark__wordmark {
  font:
    var(--xm-typescale-wordmark-weight)
    var(--xm-typescale-wordmark-size) /
    var(--xm-typescale-wordmark-line-height)
    var(--xm-typescale-wordmark-font);
  letter-spacing: var(--xm-typescale-wordmark-tracking);
  text-transform: none;
  color: var(--md-sys-color-inverse-on-surface);
}
.brand-mark--wordmark-only.brand-mark--sm .brand-mark__wordmark { font-size: 16px; }
.brand-mark--wordmark-only.brand-mark--md .brand-mark__wordmark { font-size: 18px; }
.brand-mark--wordmark-only.brand-mark--lg .brand-mark__wordmark {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
