/* TranslatePlus language switcher. Inherits the theme's font; colours adapt via currentColor. */
.tp-switcher{--tp-sw-bg:#fff;--tp-sw-fg:#0f172a;--tp-sw-muted:#64748b;--tp-sw-line:rgba(15,23,42,.12);--tp-sw-hover:rgba(79,70,229,.08);--tp-sw-accent:#4f46e5;position:relative;display:inline-block;font-size:14px;line-height:1.3}
.tp-switcher ul{list-style:none;margin:0;padding:0}
.tp-switcher a{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit}
.tp-switcher__code{display:inline-grid;place-items:center;min-width:26px;height:18px;padding:0 4px;border-radius:4px;background:var(--tp-sw-hover);color:var(--tp-sw-accent);font-size:10px;font-weight:700;letter-spacing:.04em}
.tp-switcher details{position:relative}
.tp-switcher summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:6px 10px;border-radius:8px;user-select:none}
.tp-switcher summary::-webkit-details-marker{display:none}
.tp-switcher summary:hover{background:var(--tp-sw-hover)}
.tp-switcher summary:focus-visible,.tp-switcher a:focus-visible{outline:2px solid var(--tp-sw-accent);outline-offset:2px}
.tp-switcher__caret{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.6;transition:transform .15s}
.tp-switcher details[open] .tp-switcher__caret{transform:rotate(-135deg) translateY(-1px)}
.tp-switcher details>ul{position:absolute;z-index:99999;top:calc(100% + 6px);left:0;min-width:180px;max-height:60vh;overflow:auto;padding:6px;background:var(--tp-sw-bg);color:var(--tp-sw-fg);border:1px solid var(--tp-sw-line);border-radius:10px;box-shadow:0 12px 32px -8px rgba(15,23,42,.25)}
.tp-switcher details>ul a{padding:8px 10px;border-radius:6px}
.tp-switcher details>ul a:hover,.tp-switcher details>ul a.is-current{background:var(--tp-sw-hover)}
.tp-switcher details>ul a.is-current{font-weight:600}
.tp-switcher--list ul{display:flex;flex-wrap:wrap;gap:4px}
.tp-switcher--list a{padding:4px 8px;border-radius:6px}
.tp-switcher--list a:hover{background:var(--tp-sw-hover)}
.tp-switcher--list a.is-current{font-weight:600;background:var(--tp-sw-hover)}
.tp-floating{position:fixed;z-index:99998}
.tp-floating .tp-switcher summary{background:var(--tp-sw-bg);color:var(--tp-sw-fg);border:1px solid var(--tp-sw-line);border-radius:999px;padding:8px 14px;box-shadow:0 6px 20px -6px rgba(15,23,42,.25)}
.tp-floating--bottom-right{right:20px;bottom:20px}.tp-floating--bottom-left{left:20px;bottom:20px}.tp-floating--top-right{right:20px;top:calc(20px + var(--wp-admin--admin-bar--height,0px))}.tp-floating--top-left{left:20px;top:calc(20px + var(--wp-admin--admin-bar--height,0px))}
.tp-floating--bottom-right details>ul,.tp-floating--bottom-left details>ul{top:auto;bottom:calc(100% + 8px)}
.tp-floating--bottom-right details>ul,.tp-floating--top-right details>ul{left:auto;right:0}
[dir=rtl] .tp-switcher details>ul{left:auto;right:0}
@media (prefers-color-scheme:dark){.tp-floating .tp-switcher,.tp-switcher details>ul{--tp-sw-bg:#1e1e24;--tp-sw-fg:#f1f5f9;--tp-sw-line:rgba(255,255,255,.12);--tp-sw-hover:rgba(129,140,248,.16);--tp-sw-accent:#a5b4fc}}
@media (max-width:600px){.tp-floating--bottom-right{right:12px;bottom:12px}.tp-floating--bottom-left{left:12px;bottom:12px}}
