/* EN | SW segmented language switch (public site: home, features, contact).
   Both choices are always visible; a pill slides under the active one. */
.mk-lang {
  position: relative; isolation: isolate;
  display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  height: 36px; padding: 3px; border-radius: 999px;
  background: rgba(15, 23, 42, .05); border: 1px solid rgba(15, 23, 42, .09);
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.dark .mk-lang { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.mk-lang button {
  position: relative; z-index: 1;
  min-width: 38px; height: 28px; padding: 0 10px;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  color: #64748b; font: inherit; letter-spacing: inherit;
  transition: color .2s ease;
}
.mk-lang button:hover { color: #0f172a; }
.dark .mk-lang button { color: #94a3b8; }
.dark .mk-lang button:hover { color: #f1f5f9; }
.mk-lang button.is-on, .dark .mk-lang button.is-on { color: #fff; }
.mk-lang button:focus-visible { outline: 2px solid var(--mc-primary, var(--mk-primary, #2563eb)); outline-offset: 2px; }
.mk-lang .mk-lang-pill {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--mc-primary, var(--mk-primary, #2563eb));
  box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .45);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.mk-lang.is-sw .mk-lang-pill { transform: translateX(100%); }
/* Dark pages: a solid, saturated pill so the white label stays readable. */
.dark .mk-lang .mk-lang-pill { background: #2563eb; }
.dark .mk-lang:not(.mc-site) .mk-lang-pill { background: var(--mk-lang-dark, #3f3f46); }
@media (prefers-reduced-motion: reduce) { .mk-lang .mk-lang-pill { transition: none; } }
.mk-lang--wide { height: 40px; letter-spacing: .02em; font-size: 12.5px; }
.mk-lang--wide button { min-width: 92px; height: 32px; padding: 0 14px; }
