/* RateScene brand wordmark and responsive logo sizing. */

.ratescene-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    font-family: Inter, Poppins, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.ratescene-brand:hover,
.ratescene-brand:focus {
    color: #ffffff !important;
}

.ratescene-logo {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    overflow: hidden;
}

.ratescene-logo picture {
    width: 100%;
    height: 100%;
    display: block;
}

.ratescene-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ratescene-word {
    display: inline-flex;
    align-items: baseline;
    color: #ffffff;
}

.ratescene-word strong {
    color: #f25a00;
    font-weight: 800;
}

@media (min-width: 768px) {
    .ratescene-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (max-width: 991.98px) {
    .ratescene-brand {
        position: absolute;
        top: var(--app-mobile-header-center);
        left: 50%;
        z-index: 1;
        /* Use the same screen-width scaling and limits as MobileTopBar. */
        gap: clamp(7px, 2.2vw, 11px);
        font-size: clamp(16px, 4.8vw, 21px);
        font-weight: 900;
        line-height: calc(1em + 4px);
        transform: translate(-50%, -50%);
    }

    .ratescene-logo {
        width: clamp(24px, 7.1vw, 32px);
        height: clamp(24px, 7.1vw, 32px);
        flex-basis: clamp(24px, 7.1vw, 32px);
    }

    .ratescene-word strong {
        color: #ff7a2a;
        font-weight: 900;
    }
}
