.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    container-type: inline-size;
    font-weight: 700;
    min-height: calc(var(--brand-logo-desktop-size, 56px) + 8px);
    padding: 4px 6px 4px 4px;
    color: var(--text);
    text-decoration: none;
    --brand-logo-focus-width: 3px;
    --brand-logo-focus-color: rgba(73, 126, 214, 0.28);
    --brand-logo-focus-shadow: rgba(73, 126, 214, 0.16);
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
    isolation: isolate;
    position: relative;
    transition:
            opacity var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease),
            transform var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease),
            box-shadow var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease);
}

.brand-interactive {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    will-change: transform, opacity;
}

@media (hover: hover) {
    .brand-interactive:hover {
        opacity: var(--brand-logo-hover-opacity, 0.92);
        transform: scale(var(--brand-logo-hover-scale, 1.02));
    }

.brand-interactive:hover .brand-logo-frame {
        border-color: transparent;
        box-shadow: none;
    }
}

.brand-interactive:active {
    transform: scale(var(--brand-logo-active-scale, 0.98));
}

.brand-interactive:focus-visible {
    outline: var(--brand-logo-focus-width, 3px) solid var(--brand-logo-focus-color, rgba(73, 126, 214, 0.28));
    outline-offset: var(--brand-logo-focus-offset, 4px);
    box-shadow: 0 0 0 4px var(--brand-logo-focus-shadow, rgba(73, 126, 214, 0.16));
}

.brand-interactive:focus-visible .brand-logo-frame,
.brand[aria-current="page"] .brand-logo-frame {
    border-color: transparent;
    box-shadow: none;
}

.brand[aria-disabled="true"],
.brand[data-disabled="true"] {
    pointer-events: none;
    opacity: 0.56;
}

.brand-logo-frame {
    width: var(--brand-logo-desktop-width, 160px);
    height: var(--brand-logo-desktop-size, 56px);
    min-width: var(--brand-logo-desktop-width, 160px);
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transition:
            background var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease),
            border-color var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease),
            box-shadow var(--brand-logo-duration, 180ms) var(--brand-logo-easing, ease);
}

.brand-logo-frame::after {
    content: none;
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.brand-logo-media {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    place-items: center;
    position: absolute;
    inset: 0;
    z-index: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.brand[data-brand-asset-state="failed"] .brand-logo-media {
    display: none;
}

.brand[data-brand-asset-state="failed"] .brand-logo-fallback {
    display: grid;
}

.brand-copy {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 1.32rem;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.15;
    font-weight: 650;
    white-space: nowrap;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (prefers-color-scheme: dark) {
    .brand[data-brand-color-scheme="auto"] .brand-logo-frame {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .brand[data-brand-color-scheme="auto"] .brand-logo {
        filter: none;
    }
}

@media (forced-colors: active) {
    .brand-logo-frame {
        border: 0;
        box-shadow: none;
    }

    .brand-logo-frame::after {
        box-shadow: none;
    }

    .brand-interactive:focus-visible {
        outline: 2px solid Highlight;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand,
    .brand-logo-frame {
        transition: none;
    }

    .brand-interactive:hover,
    .brand-interactive:active {
        transform: none;
    }
}

@media (pointer: coarse) {
    .brand-interactive {
        min-width: 44px;
        min-height: 44px;
    }
}

@container (max-width: 360px) {
    .brand-copy {
        display: none;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 420px) {
        .brand-copy {
            display: none;
        }
    }
}

@media (max-width: 640px) {
    .brand[data-brand-wordmark-mobile-visible="false"] .brand-copy {
        display: none;
    }

    .brand {
        gap: 10px;
        min-height: calc(var(--brand-logo-mobile-size, 40px) + 8px);
        padding: 4px;
    }

    .brand-logo-frame {
        width: var(--brand-logo-mobile-size, 40px);
        height: var(--brand-logo-mobile-size, 40px);
        min-width: var(--brand-logo-mobile-size, 40px);
        overflow: hidden;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .brand {
        min-height: calc(var(--brand-logo-tablet-size, 48px) + 8px);
    }

    .brand-logo-frame {
        width: min(var(--brand-logo-desktop-width, 160px), 148px);
        height: var(--brand-logo-tablet-size, 48px);
        min-width: min(var(--brand-logo-desktop-width, 160px), 148px);
    }
}
