/* Existing B assets: sizes apply only to the four opted-in brand positions. */
.premsa-brand { display:inline-flex; align-items:center; flex-shrink:0; }
.premsa-brand--header { --premsa-brand-height:30px; min-height:44px; }
.premsa-brand--public-footer { --premsa-brand-height:20px; }
.premsa-brand--account-footer { --premsa-brand-height:16px; }
.premsa-brand__image { display:block; width:calc(var(--premsa-brand-height) * 768.5933 / 186); height:var(--premsa-brand-height); max-width:none; aspect-ratio:768.5933 / 186; object-fit:contain; }
@media(max-width:767px) {
 .premsa-brand--header { --premsa-brand-height:24px; }
}

/* Reuse the approved mark as an alpha mask only in system contrast palettes.
   The original image retains its accessible name and exact layout dimensions. */
@media(forced-colors:active) {
 .premsa-brand { position:relative; }
 .premsa-brand__image { opacity:0; }
 .premsa-brand::before { content:""; position:absolute; inset:0; pointer-events:none; background:CanvasText; forced-color-adjust:none; mask:url("/assets/brand/PREMSA_B_dark.svg") center / contain no-repeat; }
}
