/* Language switcher (flag dropdown driven by the Google Translate element). Shared by every layout. */
.lang-switch { position: relative; display: inline-block; z-index: 70; font-family: inherit; }
.lang-btn { display: inline-flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.7rem 0 0.55rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color 0.25s ease; white-space: nowrap; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lang-btn:focus-visible { outline: 2px solid #59cdff; outline-offset: 2px; }
.lang-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); flex: 0 0 auto; }
.lang-caret { width: 12px; height: 12px; opacity: 0.8; transition: transform 0.2s ease; flex: 0 0 auto; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); margin: 0; padding: 0; list-style: none; display: none; flex-direction: column; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: #061636; color: #fff; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75); display: none; text-align: left; }
.lang-switch.is-open .lang-menu { display: flex; }
.lang-list { list-style: none; margin: 0; padding: 0.4rem; max-height: min(60vh, 400px); overflow-y: auto; overscroll-behavior: contain; }
.lang-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 9px; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; color: inherit; }
.lang-list li[hidden] { display: none; }
.lang-item-code { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; opacity: 0.55; }
.lang-search { padding: 0.6rem 0.6rem 0.3rem; }
.lang-search-input { width: 100%; box-sizing: border-box; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: inherit; padding: 0 0.75rem; font: inherit; font-size: 14px; outline: none; }
.lang-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.lang-search-input:focus { border-color: #59cdff; box-shadow: 0 0 0 3px rgba(89, 205, 255, 0.2); }
.lang-search-input::-webkit-search-cancel-button { filter: invert(1); }
.lang-switch--light .lang-search-input { background: #f3f6fc; border-color: rgba(0, 0, 0, 0.12); color: #1b2a4e; }
.lang-switch--light .lang-search-input::placeholder { color: rgba(27, 42, 78, 0.5); }
.lang-switch--light .lang-search-input::-webkit-search-cancel-button { filter: none; }
.lang-empty { padding: 0.8rem 0.9rem 1rem; font-size: 13px; opacity: 0.7; }
.lang-list li:hover, .lang-list li:focus-visible { background: rgba(51, 133, 255, 0.22); outline: none; }
.lang-list li[aria-selected="true"] { background: rgba(51, 133, 255, 0.3); }
.lang-list li[aria-selected="true"]::after { content: "\2713"; margin-left: auto; font-size: 12px; opacity: 0.85; }
.lang-switch--light .lang-btn { background: #fff; color: #1b2a4e; border-color: rgba(0, 0, 0, 0.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.lang-switch--light .lang-btn:hover { background: #eef3ff; }
.lang-switch--light .lang-menu { background: #fff; color: #1b2a4e; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35); }
.lang-switch--light .lang-list li:hover { background: rgba(51, 133, 255, 0.12); }
.lang-switch--light .lang-list li[aria-selected="true"] { background: rgba(51, 133, 255, 0.18); }
.lang-switch--left .lang-menu { right: auto; left: 0; }
.lang-switch--up .lang-menu { top: auto; bottom: calc(100% + 8px); }
.lang-switch--compact .lang-code { display: none; }

/* Hide Google Translate's own chrome (top banner, tooltips, highlight) while keeping the engine working. */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-aZ2wEe-OiiCO { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font font { background: none !important; }
