/* ── ML Translator — Language Switcher ── */

.mlt-switcher-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    z-index: 999;
}

.mlt-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s ease;
}

.mlt-switcher-toggle:hover {
    opacity: .75;
}

.mlt-switcher-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform .2s ease;
}

.mlt-switcher-toggle[aria-expanded="true"] .mlt-switcher-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.mlt-switcher-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    padding: 4px 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    list-style: none;
    z-index: 1000;
}

.mlt-switcher-dropdown.mlt-open {
    display: block;
}

.mlt-switcher-dropdown li {
    margin: 0;
    padding: 0;
}

.mlt-switcher-dropdown a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background .1s ease;
}

.mlt-switcher-dropdown a:hover {
    background: #f5f5f5;
}

.mlt-switcher-dropdown .mlt-current a {
    font-weight: 600;
    color: #111;
}

/* ── Compact (mobile) switcher ── */

.mlt-switcher-compact .mlt-switcher-toggle {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.mlt-switcher-compact .mlt-switcher-dropdown {
    min-width: 70px;
}

.mlt-switcher-compact .mlt-switcher-dropdown a {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* When in the left column, open dropdown to the left (not right) */
.cs-col-left .mlt-switcher-compact .mlt-switcher-dropdown {
    left: 0;
    right: auto;
}

/* ── Floating fallback (when header injection unavailable) ── */

.mlt-switcher-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.mlt-switcher-floating .mlt-switcher-toggle {
    background: #fff;
    color: #333;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.mlt-switcher-floating .mlt-switcher-dropdown {
    bottom: 100%;
    top: auto;
    margin-top: 0;
    margin-bottom: 4px;
}

/* ── Menu: untranslated items ── */

.mlt-untranslated > a {
    opacity: .6;
}

/* ── Menu: footnote (rendered as a <li> inside the menu <ul>) ── */

.mlt-menu-footnote-item {
    list-style: none !important;
    pointer-events: none;
}

.mlt-menu-footnote-item .mlt-menu-footnote {
    display: block;
    font-size: 12px;
    opacity: .5;
    padding: 8px 20px 4px;
    margin: 0;
    font-style: italic;
}

/*
 * In fullscreen / offcanvas / overlay menus, ensure the footnote li
 * takes full width and sits below all regular items.
 */
.mlt-menu-footnote-item {
    width: 100%;
    flex-basis: 100%;
    text-align: inherit;
}
