An adjective after an idafah always describes the mudaf ilayh because it is nearer.

Adjectives in an Idafah