/* Compact GTranslate dropdown aligned to the upper-right. */
/* v2.3.1: white-space:nowrap removed from both protected classes. Flex
   items default to min-width:auto, so an unbreakable phrase forces its
   flex item wider than its flex-basis to fit the phrase on one line --
   this was blowing out the "Start with the Panama Fit Assessment" 4-step
   tile row (the step containing "Send it to The Panama Explorer" was
   rendering ~2x wider than its siblings, with text pushed outside the
   tile border at narrower widths) even though every tile already has
   flex:1/flex-basis:0% for equal sizing. Letting the brand phrase wrap
   like normal text avoids fighting the theme's own layout rules; the
   notranslate attribute/class (not nowrap) is what actually protects the
   text from Google Translate. */
.tpe-brand-protected {
  display: inline !important;
  margin-right: .22em !important;
}
.tpe-contact-protected { }
/* The translation helper deliberately contains no diagram, process-tile,
   publication-card, or responsive-layout rules. Those remain theme-owned. */

/* Launch QA: primary white-paper action uses the established TPE gold. */
.tpe-pivot-btn,
#tpe-pension-pivot-banner .tpe-pivot-btn {
  background: #c5a059 !important;
  border-color: #c5a059 !important;
  color: #0b2530 !important;
}
.tpe-pivot-btn:hover,
.tpe-pivot-btn:focus-visible,
#tpe-pension-pivot-banner .tpe-pivot-btn:hover,
#tpe-pension-pivot-banner .tpe-pivot-btn:focus-visible {
  background: #d8bd78 !important;
  border-color: #d8bd78 !important;
  color: #0b2530 !important;
}

/* Never show social controls until a real destination has been configured. */
.tpe-fa-social a[href="#"],
.sociallinks a[href="#"] {
  display: none !important;
}
.tpe-fa-social:not(:has(a:not([href="#"]))),
.sociallinks:not(:has(a:not([href="#"]))) {
  display: none !important;
}
.gtranslate_wrapper {
  position: fixed !important;
  z-index: 2147483000 !important;
  top: 12px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: 118px !important;
  margin: 0 !important;
  pointer-events: auto !important;
}
.gtranslate_wrapper select,
.gtranslate_wrapper .gt_selector {
  width: 108px !important;
  min-width: 108px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 5px 28px 5px 10px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 999px !important;
  color: #f4f0e8 !important;
  background-color: rgba(25,33,30,.96) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.16) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .06em !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
/* If the floating widget remains selected, keep its closed state compact. */
.gt_float_switcher,
.gtranslate_wrapper .gt_float_switcher {
  position: static !important;
  width: 108px !important;
  max-width: 108px !important;
  min-height: 34px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 18px !important;
  background: rgba(25,33,30,.96) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.16) !important;
  overflow: hidden !important;
}
.gt_float_switcher .gt-selected .gt-current-lang {
  padding: 7px 9px !important;
  color: #f4f0e8 !important;
  background: transparent !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 11px !important;
}
.gt_float_switcher .gt_options a {
  padding: 8px 9px !important;
  color: #f4f0e8 !important;
  background: #1b2521 !important;
  font-size: 11px !important;
}
.gt_float_switcher .gt_options a:hover,
.gt_float_switcher .gt_options a:focus-visible {
  color: #fff !important;
  background: #563445 !important;
}
.admin-bar .gtranslate_wrapper { top: 44px !important; }
@media (max-width: 900px) {
  .gtranslate_wrapper {
    top: 9px !important;
    right: 8px !important;
    max-width: 88px !important;
    transform: scale(.88);
    transform-origin: top right;
  }
  .gtranslate_wrapper select,
  .gtranslate_wrapper .gt_selector,
  .gt_float_switcher,
  .gtranslate_wrapper .gt_float_switcher {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }
  .admin-bar .gtranslate_wrapper { top: 54px !important; }
}
