/*
 * Current-I mobile chrome correction.
 * Presentation only: removes the inherited language-switcher cylinder and
 * keeps the protected five-tab labels on one readable line.
 */

.screen-bar {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    column-gap: 8px;
}

.screen-bar > a {
    justify-self: start;
}

.screen-bar > strong {
    z-index: 1;
    min-width: 0;
}

.screen-bar .language-menu.language-switcher.compact {
    display: block;
    justify-self: end;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.screen-bar .language-menu.language-switcher.compact > summary {
    box-sizing: border-box;
    width: 64px;
    min-width: 64px;
    height: 44px;
    min-height: 44px;
    padding-inline: 8px;
}

.bottom-nav a span,
html[lang="tr"] .bottom-nav a span,
html[lang="en"] .bottom-nav a span,
html[lang="ar"] .bottom-nav a span,
html[lang="es"] .bottom-nav a span,
html[lang="ru"] .bottom-nav a span {
    display: block;
    max-width: 100%;
    min-height: 1.1em;
    overflow: hidden;
    color: inherit;
    font-size: clamp(10.5px, 2.75vw, 11.5px);
    line-height: 1.1;
    letter-spacing: -.018em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-box-orient: initial;
    -webkit-line-clamp: 1;
}

.bottom-nav a {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.bottom-nav a.active span {
    color: var(--refine-teal, #078779);
}

@media (max-width: 350px) {
    .screen-bar {
        grid-template-columns: 56px minmax(0, 1fr) 60px;
        column-gap: 5px;
        padding-inline: 8px;
    }

    .screen-bar .language-menu.language-switcher.compact > summary {
        width: 60px;
        min-width: 60px;
        padding-inline: 6px;
    }

    .bottom-nav {
        padding-inline: 4px;
    }

    .bottom-nav a {
        gap: 2px;
    }

    .bottom-nav a span,
    html[lang] .bottom-nav a span {
        font-size: 10px;
        letter-spacing: -.03em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screen-bar .language-menu.language-switcher.compact,
    .bottom-nav a {
        transition: none !important;
    }
}
