/* XMAN_SHARED_BRAND_DISPLAY_RULE: every Website and Android WebView uses this
   single Logo + Logo Name artwork treatment. The logo is always 56 × 56px;
   the name artwork begins at the same top edge and has the same 42px height.
   Surface-specific pages may add a subtitle or balance only beneath it. */
:root {
  --xman-brand-mark-size: 56px;
  --xman-brand-name-width: clamp(160px, 48vw, 238px);
  --xman-brand-name-height: 42px;
  --xman-brand-gap: 12px;
}

.xman-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--xman-brand-gap);
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.xman-brand__mark {
  display: grid;
  width: var(--xman-brand-mark-size);
  height: var(--xman-brand-mark-size);
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.xman-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  object-fit: cover;
  object-position: center;
}

.xman-brand__copy {
  display: grid;
  min-width: 0;
  height: var(--xman-brand-mark-size);
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  justify-items: start;
}

.xman-brand__name {
  display: block;
  width: var(--xman-brand-name-width);
  max-width: 100%;
  height: var(--xman-brand-name-height);
  align-self: start;
  line-height: 0;
}

.xman-brand__name img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 380px) {
  .xman-brand { gap: 9px; }
  .xman-brand__name { width: min(150px, calc(100vw - 172px)); }
}
