/* Najem AI · visual identity v1. The artwork includes the clear space specified by the guide. */
.nj-brand-logo {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-inline-size: 100%;
    vertical-align: middle;
}
.nj-brand-logo[data-brand-logo="full"] { inline-size: clamp(9.5rem, 14vw, 12rem); }
.nj-brand-logo[data-brand-logo="mark"] { inline-size: 2.25rem; }
.nj-brand-logo.nj-brand-logo--compact { inline-size: 7.75rem; }
footer .nj-brand-logo[data-brand-logo="full"] { inline-size: min(13.5rem, 100%); }
/* The transparent margin is part of the asset. Share it with the header padding. */
header .nj-brand-logo[data-brand-logo="full"] [data-brand-art] { margin-block: -.45rem; }
@media (max-width: 40rem) {
    header .nj-brand-logo[data-brand-logo="full"]:not(.nj-brand-logo--compact) { inline-size: 11.25rem; }
    header .nj-brand-logo[data-brand-logo="full"]:not(.nj-brand-logo--compact) [data-brand-art] { margin-block: -.95rem; }
}
.nj-brand-logo [data-brand-art] {
    display: block;
    inline-size: 100%;
    block-size: auto;
    object-fit: contain;
    background: transparent;
}
/* The rail clips editable text labels; the image already has a bounded width. */
a.overflow-hidden:has(> .nj-brand-logo) { overflow: visible; }
.nj-brand-logo [data-brand-art] {
    filter: url("../images/brand/najem-matte.svg#matte");
}
html.dark .nj-brand-logo [data-brand-art],
:is(.over-ink, .on-ink) .nj-brand-logo [data-brand-art] {
    filter: url("../images/brand/najem-matte.svg#matte-dark");
}
.nj-brand-descriptor {
    margin-block-start: .5rem;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--content-muted);
}
html[data-site-standalone="error"] .logo.nj-brand-logo {
    display: flex;
    inline-size: 3rem;
    block-size: auto;
    margin-inline: auto;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .nj-brand-logo [data-brand-art] { transition: transform 180ms ease-out; }
    .nj-brand-logo:hover [data-brand-art],
    a:hover > .nj-brand-logo [data-brand-art] { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
    a:focus-visible .nj-brand-logo [data-brand-art] { transform: translateY(-2px); }
}

@media screen and (forced-colors: none) {
    html[data-site-glass] {
        --brand-navy: #0A2540;
        --brand-cyan: #00D2FF;
        --brand-tech: #0090B8;
        --brand-gold: #B8860B;
        --color-brand-50: #effbff;
        --color-brand-100: #d7f6ff;
        --color-brand-200: #a9eeff;
        --color-brand-300: #6de2ff;
        --color-brand-400: var(--brand-cyan);
        --color-brand-500: #00afda;
        --color-brand-600: var(--brand-tech);
        --color-brand-700: #006c89;
        --color-brand-800: #07546c;
        --color-brand-900: #0a3c54;
        --color-brand-950: var(--brand-navy);
        --canvas: #f6fafc;
        --canvas-raised: white;
        --canvas-sunken: #edf4f7;
        --content: var(--brand-navy);
        --content-muted: #385772;
        --accent: var(--brand-navy);
        --accent-hover: #103c58;
        --accent-contrast: white;
        --accent-soft: #dff4f9;
        --link: #005e7a;
        --link-hover: var(--brand-navy);
        --ring: #007293;
        --brand-sweep-from: var(--brand-navy);
        --brand-sweep-mid: #00627f;
        --brand-sweep-to: #076e87;
        --site-wash: radial-gradient(ellipse at top right, #1680a329, transparent 58rem);
    }
    html.dark[data-site-glass], html[data-site-glass] :is(.on-ink, .over-ink) {
        --canvas: var(--brand-navy);
        --canvas-raised: #12324e;
        --canvas-sunken: #081c30;
        --content: #f4faff;
        --content-muted: #c6d8e7;
        --content-subtle: #acbfce;
        --hairline: #476178;
        --hairline-strong: #8198ad;
        --accent: var(--brand-cyan);
        --accent-hover: #8eeaff;
        --accent-contrast: var(--brand-navy);
        --accent-soft: #124557;
        --link: #86e8ff;
        --link-hover: #ccf6ff;
        --ring: var(--brand-cyan);
        --brand-sweep-from: white;
        --brand-sweep-mid: #8de8ff;
        --brand-sweep-to: var(--brand-cyan);
        --shell-glass-panel: linear-gradient(138deg, #183e59, #102c45);
        --shell-glass-nav: linear-gradient(175deg, #122e49, #091f35 75%);
    }
    html.nj-workspace-glass.dark body.nj-workspace-shell {
        --home-card-surface: var(--shell-glass-panel);
        --home-canvas: var(--site-wash), var(--canvas);
        background-image: var(--site-wash);
    }
    html.dark[data-site-glass] [data-shell-content] > header,
    html.nj-workspace-glass.dark .nj-workspace-shell [data-shell-content] > header {
        background: var(--shell-glass-nav);
    }
    html.nj-workspace-glass.dark [data-rail] [aria-current="page"],
    html.nj-workspace-glass.dark .nj-compact-rail > [aria-current="page"] {
        background: var(--accent-soft);
        color: var(--content);
        box-shadow: inset 0 0 0 1px var(--brand-tech);
    }
    html.nj-workspace-glass:not(.dark) .nj-glass-home {
        --glass-bg: #f6fafc;
        --glass-surface: white;
        --glass-raised: #edf4f7;
        --glass-ink: var(--brand-navy);
        --glass-muted: #385772;
        --glass-accent: var(--brand-navy);
        --glass-accent-ink: white;
        --glass-focus: #007293;
        background: var(--site-wash), var(--glass-bg);
    }
    html.dark[data-site-glass] .nj-glass-home {
        --glass-bg: var(--brand-navy);
        --glass-surface: #12324e;
        --glass-raised: #193e59;
        --glass-ink: #f4faff;
        --glass-muted: #c6d8e7;
        --glass-accent: var(--brand-cyan);
        --glass-accent-ink: var(--brand-navy);
        --glass-focus: var(--brand-cyan);
        --glass-border: #476178;
    }
}
