:root {
  --brand-logo-size: 64px;
  --brand-logo-size-mobile: 48px;
  --brand-gap: 18px;
  --brand-text: #111111;
  --brand-muted: #5f6775;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--brand-gap);
  min-width: 0;
}

.brand-logo-shell {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  min-width: var(--brand-logo-size);
  min-height: var(--brand-logo-size);
  max-width: var(--brand-logo-size);
  max-height: var(--brand-logo-size);
  display: block;
  flex: 0 0 var(--brand-logo-size);
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.brand-logo {
  width: 66%;
  height: 66%;
  min-width: 0;
  min-height: 0;
  max-width: 66%;
  max-height: 66%;
  display: block;
  margin: 17%;
  object-fit: contain;
  transform: none;
  transform-origin: center center;
  filter: none;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-context {
  color: var(--brand-text);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-tagline {
  max-width: 250px;
  color: var(--brand-muted);
  font-size: 0.94rem;
  line-height: 1.25;
}

.brand--site .brand-tagline {
  max-width: 255px;
}

.brand--site {
  --brand-logo-size: 76px;
  --brand-gap: 18px;
}

.brand--site .brand-logo-shell {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand--site .brand-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.brand--site .brand-copy {
  display: grid;
  align-items: center;
  gap: 6px;
}

.brand--site .brand-tagline {
  max-width: none;
  padding-left: 0;
  border-left: 0;
  white-space: nowrap;
  color: #6b7280;
  font-size: 0.94rem;
  line-height: 1;
}

.site-header .brand--site {
  flex: 0 0 auto;
}

.site-header .brand--site .brand-context {
  font-size: 2.125rem;
  font-weight: 800;
}

.site-header .brand--site .brand-tagline {
  max-width: none;
  white-space: nowrap;
}

.brand--crm .brand-tagline {
  max-width: 220px;
}

.brand--icon-only .brand-copy {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --brand-logo-size: var(--brand-logo-size-mobile);
  }

  .brand-logo-shell {
    border-radius: 12px;
  }

  .brand-context {
    font-size: 1.35rem;
  }

  .brand--site {
    --brand-logo-size: var(--brand-logo-size-mobile);
    --brand-gap: 14px;
  }

  .brand--site .brand-copy {
    display: grid;
    gap: 2px;
  }

  .brand--site .brand-tagline {
    display: none;
  }
}
