/* Overlay Multilingual — language switcher. Inherits font and colour from the theme. */
.ovml-switcher { position: relative; display: inline-block; font: inherit; color: inherit; line-height: 1.4; }
.ovml-switcher ul { list-style: none; margin: 0; padding: 0; }
.ovml-switcher a { color: inherit; text-decoration: none; }

.ovml-switcher--inline ul { display: flex; gap: .75em; }
.ovml-switcher--inline .is-current a { font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }

.ovml-switcher--dropdown summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35em; }
.ovml-switcher--dropdown summary::-webkit-details-marker { display: none; }
.ovml-switcher--dropdown summary::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.15em) rotate(45deg); transition: transform .15s ease; }
.ovml-switcher--dropdown[open] summary::after { transform: translateY(.1em) rotate(-135deg); }
.ovml-switcher--dropdown ul { position: absolute; z-index: 1000; top: calc(100% + .4em); right: 0; min-width: 9em; padding: .35em; background: #fff; color: #1d2327; border-radius: .5em; box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); }
.ovml-switcher--dropdown li a { display: block; padding: .45em .7em; border-radius: .35em; white-space: nowrap; }
.ovml-switcher--dropdown li a:hover, .ovml-switcher--dropdown li a:focus-visible { background: rgba(0, 0, 0, .05); }
.ovml-switcher--dropdown .is-current a { font-weight: 600; }

.ovml-preview-badge { position: fixed; z-index: 99999; left: 16px; bottom: 16px; display: flex; gap: .5em; align-items: center; padding: .5em .9em; border-radius: 99px; background: #1d2327; color: #fff; font: 500 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.ovml-preview-badge strong { font-weight: 600; }
.ovml-preview-badge a { color: #fff; text-decoration: underline; text-underline-offset: .2em; margin-left: .25em; }

/* Long language lists scroll instead of running off the screen. */
.ovml-switcher--dropdown ul,
.ovml-switcher-elessi .nasa-list-languages { max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
