/* Masterskills V3.7 — scoped adaptation of the supplied legacy gtranslate.css.
   Do not import legacy global body and universal transition rules into the new site. */
#site-header.ms-legacy-header .legacy-language .language-switch-block {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#site-header.ms-legacy-header .legacy-language .gtranslate {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
#site-header.ms-legacy-header .legacy-language .gtranslate > select {
  display: inline-block;
  color: #000;
  margin: 0;
}
/* The original integration uses a custom visible select, not Chosen. */
#google_translate_element2 { display: none !important; }
#ms-translate-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Masterskills V3.8 - Google Translate banner and layout offset control.
   Keep the native language selector and translation widget logic unchanged. */
iframe.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
body > .skiptranslate:has(> iframe.goog-te-banner-frame),
body > .skiptranslate:has(> iframe.VIpgJd-ZVi9od-ORHb-OEVmcd) {
  display: none !important;
}

/* Reset only the translation-induced offset, not the body's normal layout. */
html.translated-ltr body,
html.translated-rtl body,
body:has(> .skiptranslate > iframe.goog-te-banner-frame),
body:has(> .skiptranslate > iframe.VIpgJd-ZVi9od-ORHb-OEVmcd) {
  top: 0 !important;
}
