/* Tolk language switcher — deliberately minimal, inherits theme typography. */
.tolk-switcher { --tolk-gap: .5em; font-size: inherit; }
.tolk-switcher__list { list-style: none; margin: 0; padding: 0; }
.tolk-switcher__link { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; color: inherit; }
.tolk-switcher__item.is-current > .tolk-switcher__link { font-weight: 600; }
.tolk-flag { font-size: 1.1em; line-height: 1; border-radius: 2px; }
img.tolk-flag { display: inline-block; object-fit: cover; }

.tolk-switcher--inline .tolk-switcher__list { display: flex; flex-wrap: wrap; gap: var(--tolk-gap) calc(var(--tolk-gap) * 2); }
.tolk-switcher--list .tolk-switcher__item + .tolk-switcher__item { margin-top: .35em; }

.tolk-switcher__dropdown { position: relative; display: inline-block; }
.tolk-switcher__toggle { display: inline-flex; align-items: center; gap: .4em; cursor: pointer; list-style: none; padding: .35em .6em; border: 1px solid currentColor; border-radius: 999px; opacity: .9; }
.tolk-switcher__toggle::-webkit-details-marker { display: none; }
.tolk-switcher__toggle::after { content: ""; width: .4em; height: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-25%) rotate(45deg); margin-left: .2em; }
.tolk-switcher__dropdown[open] .tolk-switcher__toggle::after { transform: translateY(15%) rotate(-135deg); }
.tolk-switcher__dropdown .tolk-switcher__list { position: absolute; z-index: 100; top: calc(100% + .35em); inset-inline-start: 0; min-width: 100%; padding: .35em; background: #fff; color: #14161f; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 22, 31, .16); }
.tolk-switcher__dropdown .tolk-switcher__link { display: flex; padding: .45em .7em; border-radius: 6px; white-space: nowrap; }
.tolk-switcher__dropdown .tolk-switcher__link:hover, .tolk-switcher__dropdown .tolk-switcher__link:focus-visible { background: #f1efe9; }
