html[dir=rtl] body{text-align:start;}
html[dir=rtl] input[type=email],html[dir=rtl] input[type=number],html[dir=rtl] input[type=date],html[dir=rtl] input[type=time]{direction:ltr;}
html[dir=rtl] .chip,html[dir=rtl] .videoSignChip{unicode-bidi:isolate;}
html[dir=rtl] .videoRow,html[dir=rtl] .planetDesc,html[dir=rtl] .faqA{text-align:start;}
html[dir=rtl] .items,html[dir=rtl] [data-drag-scroll]{direction:ltr;}
html[dir=rtl] .items>*,html[dir=rtl] [data-drag-scroll]>*{direction:rtl;}

/* Mirror the existing full-bleed carousel positioning without changing its scroll math. */
html[dir=rtl] .testimonialWrap{
  margin-left:0;
  margin-right:50%;
  transform:translateX(50%);
}
html[dir=rtl] .testimonialHeader{text-align:start;}
/* Keep the anti-spam field hidden without creating a 10,000px RTL scroll area. */
html[dir=rtl] .honeypotField{
  left:auto !important;
  right:0 !important;
  top:0 !important;
  clip:rect(0,0,0,0) !important;
  clip-path:inset(50%) !important;
}

/* THM-FOOTER-LANGUAGE-v1: only the language control, never the page's cards or navigation. */
.site-language-footer {
  box-sizing: border-box;
  display: block;
  clear: both;
  width: 100%;
  margin: 12px 0 0;
  padding: 6px 16px max(18px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: #665e75;
}
.site-language-footer .site-language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font: 400 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  vertical-align: middle;
}
.site-language-footer .site-language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.site-language-footer .site-language-globe {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: inherit;
  pointer-events: none;
}
.site-language-footer .site-language-switcher select {
  box-sizing: border-box;
  width: auto;
  max-width: min(15rem, calc(100vw - 64px));
  min-height: 32px;
  margin: 0;
  padding: 5px 2px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1.4;
  letter-spacing: normal;
  cursor: pointer;
}
.site-language-footer .site-language-switcher select:focus-visible {
  outline: 2px solid #7661af;
  outline-offset: 3px;
}
.site-language-footer .site-language-switcher select:hover { color: #4e39a5; }
.site-language-footer .site-language-switcher option { color: #222; background: #fff; }
@media (pointer: coarse) {
  .site-language-footer .site-language-switcher select { min-height: 44px; }
}
/* This page intentionally has a viewport-height video feed. Reserve a bottom
   strip for the control rather than overlaying it on the video or hiding it
   below body overflow:hidden. The original header and scroll logic remain. */
html[data-thm-language-video] {
  --feed-height: calc(100dvh - var(--nav-height) - var(--site-language-footer-height, 44px));
}
.site-language-footer.site-language-footer--video {
  margin: 0;
  padding: 2px 16px calc(2px + env(safe-area-inset-bottom, 0px));
  color: #d2cbdc;
  background: #0d0b13;
}
.site-language-footer--video .site-language-switcher select:hover { color: #fff; }
