/* BR-02 / BACKEND: presentation only. Keep token icons, API and locale keys. */
.ubt-brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  text-transform: none;
}
.ubt-wordmark {
  display: inline-grid;
  justify-items: start;
  gap: 3px;
  color: inherit;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}
.ubt-wordmark > .ubt-wordmark__prefix {
  font-size: .46em;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1;
}
.ubt-wordmark > .ubt-wordmark__name {
  font-size: 1em;
  line-height: 1;
  letter-spacing: inherit;
}
.ubt-brand-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
}
.footer-brand.ubt-brand-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-brand .ubt-wordmark {
  font-size: 36px;
}
.footer-brand > .ubt-brand-caption {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}
.sidebar-brand.ubt-brand-link .ubt-wordmark {
  font-size: 27px;
}
.auth-page > .ubt-brand-link .ubt-wordmark {
  font-size: 36px;
}
@media (max-width: 600px) {
  .ubt-wordmark { font-size: 24px; }
  .header-actions { gap: 12px; }
  .footer-brand .ubt-wordmark,
  .auth-page > .ubt-brand-link .ubt-wordmark { font-size: 32px; }
}
/* Preserve space for account actions when text is enlarged. */
.header-inner > .ubt-brand-link { min-width: 0; }

/* FE-04 / BACKEND: image branding only. Keep route, authentication and menu hooks. */
.ubt-logo-picture { display: block; line-height: 0; max-width: 100%; }
.ubt-brand-link img.ubt-logo, .legal-brand img.ubt-logo {
  display: block;
  width: 176px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.footer-brand.ubt-brand-link img.ubt-logo { width: 224px; }
.auth-page > .ubt-brand-link img.ubt-logo { width: 216px; }
.sidebar-brand.ubt-brand-link img.ubt-logo { width: 176px; }
.mobile-menu-dialog .ubt-brand-link img.ubt-logo { width: 160px; }
.legal-brand img.ubt-logo { width: 192px; }
@media (max-width: 600px) {
  .ubt-brand-link img.ubt-logo { width: 144px; }
  .auth-page > .ubt-brand-link img.ubt-logo { width: 216px; }
  .footer-brand.ubt-brand-link img.ubt-logo { width: 192px; }
  .legal-brand img.ubt-logo { width: 176px; }
}
@media print {
  .ubt-logo-picture, .ubt-logo { print-color-adjust: exact; }
}
