/* Langkit — the language menu and the «view this page in…» notice. Shared by every plugin (tools/sync_shared.py
   copies shared/i18n/ into each of them): do not edit the copies. Colours follow the page: set --lm-bg, --lm-line,
   --lm-text or --lm-accent on .lang-menu / .lang-nudge to change them. */
.lang-menu { position: relative; display: inline-block; font: 500 .8rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--lm-text, inherit); }
.lang-menu > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--lm-line, rgba(255,255,255,.22)); border-radius: 999px; background: var(--lm-bg, rgba(2,8,18,.35)); cursor: pointer; list-style: none; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 2px 0 1px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .7; transition: transform .15s; }
.lang-menu[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.lang-menu > summary:focus-visible { outline: 2px solid var(--lm-accent, #2dd4bf); outline-offset: 2px; }
.lang-menu > ul { position: absolute; z-index: 1000; top: calc(100% + 6px); right: 0; min-width: 100%; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--lm-line, rgba(255,255,255,.22)); border-radius: 14px; background: var(--lm-menu-bg, #06121f); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.lang-menu > ul a, .lang-menu > ul button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; text-transform: none; letter-spacing: 0; }
.lang-menu > ul a:hover, .lang-menu > ul button:hover, .lang-menu > ul a:focus-visible, .lang-menu > ul button:focus-visible { background: rgba(255,255,255,.1); outline: none; }
.lang-menu > ul [aria-current="true"] { color: var(--lm-accent, #2dd4bf); font-weight: 700; }
.lang-menu--up > ul { top: auto; bottom: calc(100% + 6px); }
.lang-menu--left > ul { right: auto; left: 0; }
.lang-menu--light { --lm-line: rgba(8,24,40,.2); --lm-bg: #fff; --lm-menu-bg: #fff; --lm-accent: #0b7a70; }
.lang-menu--light > ul { box-shadow: 0 14px 40px rgba(8,24,40,.18); }
.lang-menu--light > ul a:hover, .lang-menu--light > ul button:hover { background: rgba(8,24,40,.07); }

.lang-nudge { position: fixed; z-index: 2000; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 24px); padding: 4px 4px 4px 6px; border: 1px solid var(--lm-line, rgba(255,255,255,.22)); border-radius: 999px; background: var(--lm-menu-bg, #06121f); color: var(--lm-text, #e8f1f8); font: 500 .85rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: lang-nudge-in .35s ease-out both; }
.lang-nudge a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 999px; color: inherit; text-decoration: none; }
.lang-nudge a:hover span, .lang-nudge a:focus-visible span { text-decoration: underline; }
.lang-nudge a svg { color: var(--lm-accent, #2dd4bf); flex: none; }
.lang-nudge button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: .7; }
.lang-nudge button:hover, .lang-nudge button:focus-visible { opacity: 1; background: rgba(255,255,255,.1); outline: none; }
@keyframes lang-nudge-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) { .lang-nudge { animation: none; } }
