/* Language switcher: intentionally minimal so it inherits the theme's look. */
.mst-switcher { position: relative; display: inline-block; font-size: inherit; }
.mst-switcher__list { list-style: none; margin: 0; padding: 0; }
.mst-switcher a { text-decoration: none; }
.mst-switcher .is-current > a { font-weight: 600; }

.mst-switcher--inline .mst-switcher__list { display: flex; flex-wrap: wrap; gap: .75em; }

.mst-switcher__toggle { display: inline-flex; align-items: center; gap: .4em; padding: .35em .7em; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; cursor: pointer; }
.mst-switcher__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.mst-switcher--dropdown .mst-switcher__list { display: none; position: absolute; z-index: 9999; top: 100%; inset-inline-start: 0; min-width: 100%; margin-top: 4px; padding: .3em 0; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.mst-switcher--dropdown.is-open .mst-switcher__list,
.mst-switcher--dropdown:focus-within .mst-switcher__list { display: block; }
.mst-switcher--dropdown .mst-switcher__list a { display: block; padding: .35em .9em; color: #1d2327; white-space: nowrap; }
.mst-switcher--dropdown .mst-switcher__list a:hover,
.mst-switcher--dropdown .mst-switcher__list a:focus { background: rgba(0, 0, 0, .06); }

/* Menu trigger: a globe icon that inherits the menu's colour and size. */
.mst-menu-switcher > a { display: inline-flex; align-items: center; }
.mst-globe { display: block; }

/* Language popup. */
.mst-popup[hidden] { display: none; }
.mst-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; }
.mst-popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.mst-popup__panel { position: relative; box-sizing: border-box; width: 100%; max-width: 860px; max-height: 100%; overflow-y: auto; padding: 28px 32px 32px; color: #1d2327; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); outline: 0; }
.mst-popup__close { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; font-size: 26px; line-height: 1; color: inherit; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.mst-popup__close:hover, .mst-popup__close:focus-visible { background: rgba(0, 0, 0, .07); }
.mst-popup__title { margin: 0 0 20px; padding-inline-end: 40px; font-size: 22px; line-height: 1.3; color: inherit; }
.mst-popup__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mst-popup__item { margin: 0; padding: 0; }
.mst-popup__item::marker { content: none; }
.mst-popup__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; border: 1px solid transparent; border-radius: 12px; }
.mst-popup__link:hover, .mst-popup__link:focus-visible { background: rgba(0, 0, 0, .05); }
.mst-popup__item.is-current .mst-popup__link { border-color: currentColor; }
.mst-popup__flag { flex: none; width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.mst-popup__flag--globe { background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M2.75 12h18.5M12 2.75c2.6 2.55 4 5.75 4 9.25s-1.4 6.7-4 9.25c-2.6-2.55-4-5.75-4-9.25s1.4-6.7 4-9.25z'/%3E%3C/svg%3E"); box-shadow: none; }
.mst-popup__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mst-popup__native { font-size: 16px; }
.mst-popup__name { font-size: 13px; opacity: .65; }
html.mst-popup-open { overflow: hidden; }
@media (max-width: 480px) { .mst-popup__panel { padding: 22px 16px 20px; border-radius: 18px; } .mst-popup__list { grid-template-columns: 1fr 1fr; } .mst-popup__link { padding: 10px; gap: 8px; } }
