/* === Brand / logo === */
.wl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.wl-brand-logo {
    display: block;
    flex-shrink: 0;
    width: auto;
    object-fit: contain;
    /* Optical center: arrow extends above the circle */
    transform: translateY(1px);
}

.wl-brand-wordmark {
    display: none;
    align-items: center;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    /* Cap-height sits with the circle, not the arrow tip */
    transform: translateY(0.5px);
}

.wl-brand-wordmark-work {
    color: var(--text-primary);
}

.wl-brand-wordmark-lens {
    color: #1FA89A;
}

.wl-brand-fallback {
    display: none;
    align-items: center;
    gap: var(--space-2);
}

.wl-brand.is-fallback .wl-brand-logo,
.wl-brand.is-fallback .wl-brand-wordmark {
    display: none !important;
}

.wl-brand.is-fallback .wl-brand-fallback {
    display: inline-flex;
}

.wl-brand-dot {
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.wl-brand-name {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    white-space: nowrap;
}

/* Sidebar — icon ≈ text cap-height */
.wl-brand--sidebar {
    height: 56px;
    padding: 0 var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    box-sizing: border-box;
    gap: 9px;
}

.wl-brand--sidebar .wl-brand-logo {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    border-radius: 7px;
}

.wl-brand--sidebar .wl-brand-wordmark {
    display: inline-flex;
    font-size: 1.125rem; /* ~18px — matches 30px icon weight */
}

.wl-brand--sidebar .wl-brand-dot {
    width: 8px;
    height: 8px;
}

.wl-brand--sidebar .wl-brand-name {
    font-size: var(--text-md);
}

/* Login card */
.wl-brand--login {
    margin-bottom: var(--space-8);
    gap: 11px;
}

.wl-brand--login .wl-brand-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 9px;
}

.wl-brand--login .wl-brand-wordmark {
    display: inline-flex;
    font-size: 1.5rem; /* ~24px — proportional to 40px icon */
}

.wl-brand--login .wl-brand-dot {
    width: 10px;
    height: 10px;
}

.wl-brand--login .wl-brand-name {
    font-size: var(--text-lg);
}

/* User portal */
.wl-brand--portal {
    justify-content: center;
    margin: 0 auto var(--space-6);
    gap: 10px;
}

.wl-brand--portal .wl-brand-logo {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 8px;
}

.wl-brand--portal .wl-brand-wordmark {
    display: inline-flex;
    font-size: 1.35rem;
}

.wl-brand--portal .wl-brand-dot {
    width: 10px;
    height: 10px;
}

.wl-brand--portal .wl-brand-name {
    font-size: var(--text-lg);
}

/* Light theme — navy Work + deeper teal Lens (matches brand lockup) */
[data-theme="light"] .wl-brand-wordmark-work {
    color: #0B1F33;
}

[data-theme="light"] .wl-brand-wordmark-lens {
    color: #149688;
}

[data-theme="dark"] .wl-brand-wordmark-lens {
    color: #3DC9B8;
}
