/* GlobalHenel Multilingual — language switcher (self-contained, no dependencies) */
.ghml-host{display:inline-flex;align-items:center}
.ghml-host--inline{display:inline-flex}
.ghml-switcher{position:relative;display:inline-flex;align-items:center;font-size:14px;line-height:1.2;font-family:inherit}

/* ---------- Toggle button ---------- */
.ghml-switcher__toggle{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;
  border:1px solid rgba(17,24,39,.16);border-radius:999px;background:#fff;color:#111827;
  cursor:pointer;font:inherit;font-weight:600;letter-spacing:.2px;
  box-shadow:0 1px 2px rgba(17,24,39,.06);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease}
.ghml-switcher__toggle:hover{border-color:rgba(17,24,39,.34);box-shadow:0 4px 14px rgba(17,24,39,.12)}
.ghml-switcher__toggle:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.ghml-switcher.is-open .ghml-switcher__toggle{border-color:rgba(17,24,39,.34);box-shadow:0 6px 18px rgba(17,24,39,.16)}
.ghml-switcher__current{white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}
.ghml-ico{display:block;flex:0 0 auto}
.ghml-ico--globe{color:#2563eb}
.ghml-ico--caret{opacity:.65;transition:transform .2s ease}
.ghml-switcher.is-open .ghml-ico--caret{transform:rotate(180deg)}

/* ---------- Panel ---------- */
.ghml-switcher__panel{position:absolute;top:calc(100% + 10px);inset-inline-end:0;inset-inline-start:auto;
  width:320px;max-width:min(92vw,340px);max-height:440px;overflow:hidden;
  background:#fff;border:1px solid rgba(17,24,39,.10);border-radius:14px;
  box-shadow:0 18px 48px rgba(17,24,39,.20);
  display:none;flex-direction:column;z-index:100000}
.ghml-switcher.is-open .ghml-switcher__panel{display:flex}
.ghml-switcher__searchwrap{position:relative;display:flex;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(17,24,39,.08);background:#fbfbfd;border-radius:14px 14px 0 0}
.ghml-switcher__searchwrap .ghml-ico--search{color:#6b7280;margin-inline-end:8px}
.ghml-switcher__search{width:100%;border:0;background:transparent;font:inherit;font-size:14px;color:#111827;outline:none;padding:2px 0}
.ghml-switcher__list{list-style:none;margin:0;padding:6px;overflow-y:auto;max-height:380px;scrollbar-width:thin}
.ghml-switcher__list::-webkit-scrollbar{width:8px}
.ghml-switcher__list::-webkit-scrollbar-thumb{background:rgba(17,24,39,.18);border-radius:8px}

/* ---------- Items ---------- */
.ghml-switcher__item a,.ghml-switcher__soon{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 11px;border-radius:9px;text-decoration:none;color:#111827;transition:background .14s ease}
.ghml-switcher__item a:hover{background:#f1f5f9}
.ghml-switcher__item a:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.ghml-switcher__item.is-current a{background:#eff4ff;font-weight:700}
.ghml-switcher__item.is-current a:hover{background:#e5edff}
.ghml-switcher__item.is-soon .ghml-switcher__soon{opacity:.5;cursor:not-allowed}
.ghml-switcher__txt{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.ghml-switcher__native{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghml-switcher__eng{color:#6b7280;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ghml-switcher__tag{display:inline-flex;align-items:center;justify-content:center;color:#16a34a;flex:0 0 auto}
.ghml-switcher__item.is-soon .ghml-switcher__tag{color:#9ca3af;font-size:11px;font-weight:600;text-transform:lowercase;letter-spacing:.4px}

/* ---------- Header slot variants ---------- */
.ghml-menu-item{display:flex;align-items:center;height:100%;margin-inline-start:10px;list-style:none}
.navbar .ghml-switcher__toggle,.main-nav .ghml-switcher__toggle{height:38px}

/* ---------- Floating fallback (top-right; revealed only if relocation fails) ---------- */
.ghml-host--floating{position:fixed;top:96px;inset-inline-end:16px;inset-inline-start:auto;z-index:100000;visibility:hidden;opacity:0;transition:opacity .2s ease}
.ghml-host--floating.ghml-show{visibility:visible;opacity:1}
.ghml-host--floating .ghml-switcher__panel{top:calc(100% + 10px);bottom:auto;inset-inline-end:0;inset-inline-start:auto}
.ghml-host--floating.ghml-show .ghml-switcher__toggle{box-shadow:0 8px 24px rgba(17,24,39,.22)}
.ghml-host--header .ghml-switcher__toggle{height:38px}

/* ---------- RTL + mobile ---------- */
[dir="rtl"] .ghml-switcher__panel{inset-inline-start:0;inset-inline-end:auto}
[dir="rtl"] .ghml-switcher__caret,[dir="rtl"] .ghml-ico--caret{transform:scaleX(-1)}
@media (max-width:600px){
  .ghml-switcher__panel{width:min(94vw,340px)}
  .ghml-switcher__current{max-width:82px}
  .ghml-host--floating{top:66px;inset-inline-end:10px;inset-inline-start:auto}
}
