/* Approved 2026-09-24. All variants use the SAME original alpha silhouette.
   The display window removes transparent padding without editing the source.
   Source: 1774 x 887; display window: x=210 y=244 w=1336 h=372. */
.jawaher-logo {
    --logo-ink: #14532d;
    --logo-accent: #687580;
    position: relative;
    display: inline-block;
    width: var(--logo-width, 210px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1336 / 372;
    overflow: hidden;
    flex: none;
    vertical-align: middle;
    line-height: 0;
    direction: ltr;
}
.jawaher-logo--navy { --logo-ink: #d5f3e5; --logo-accent: #d5dbe2; }
.jawaher-logo--green { --logo-ink: #fff; --logo-accent: #d5dbe2; }
.jawaher-logo--mono { --logo-ink: #111; --logo-accent: #111; }
.jawaher-logo > .jawaher-logo__source {
    position: absolute;
    display: block;
    width: 132.784431%;
    max-width: none;
    height: auto;
    min-height: 0;
    top: -65.591398%;
    left: -15.718563%;
    object-fit: contain;
}
/* Readable fallback for browsers without CSS masking. */
.jawaher-logo--navy > img, .jawaher-logo--green > img { filter: brightness(0) invert(1); }
.jawaher-logo--mono > img { filter: brightness(0); }
@supports ((mask-image: url('jawaher-approved.png')) or (-webkit-mask-image: url('jawaher-approved.png'))) {
    .jawaher-logo > .jawaher-logo__source { opacity: 0; }
    .jawaher-logo::before, .jawaher-logo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--logo-ink);
        -webkit-mask-image: url('jawaher-approved.png');
        mask-image: url('jawaher-approved.png');
        -webkit-mask-size: 132.784431% 238.440860%;
        mask-size: 132.784431% 238.440860%;
        -webkit-mask-position: 47.945205% 47.378641%;
        mask-position: 47.945205% 47.378641%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
    /* ERP and the detached emblem dot, without touching the Arabic ج dot. */
    .jawaher-logo::after {
        background:
            linear-gradient(var(--logo-accent), var(--logo-accent)) left top / 15% 80% no-repeat,
            linear-gradient(var(--logo-accent), var(--logo-accent)) 95.652174% bottom / 8% 27% no-repeat;
    }
}
/* Scoped placements avoid the legacy gem-icon sizing rules. */
.nav-brand.jawaher-nav-brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.jawaher-nav-brand .jawaher-logo { --logo-width: 140px; }
.hero-copy .jawaher-hero-logo { --logo-width: 210px; }
.jawaher-nav-brand > small { color: #69788d; font-size: 10px; font-weight: 500; line-height: 1.5; }
.footer-brand .jawaher-logo { --logo-width: 235px; display: inline-block; }
.login-logo-inner .jawaher-logo { --logo-width: 220px; }
.registration-logo { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 20px 0; }
.registration-logo .jawaher-logo { --logo-width: 220px; }
.story-brand .jawaher-logo { --logo-width: 210px; }
.verify-visual .jawaher-logo, .mobile-brand .jawaher-logo { --logo-width: 210px; }
@media (max-width: 600px) {
    .jawaher-nav-brand .jawaher-logo { --logo-width: 130px; }
    .jawaher-nav-brand > small { display: none; }
    .login-logo-inner .jawaher-logo, .registration-logo .jawaher-logo { --logo-width: 200px; }
}
@media print {
    .jawaher-logo { --logo-ink: #111; --logo-accent: #111; }
}
