/* Stage 167 — accessible high-contrast locale dropdown; Stage 166 header placement. The same rightmost header control on all five sites. */
.tg166-locale-dock{--tg166-bg:#fff;--tg166-fg:#233d50;--tg166-line:#cbd8e1;
  display:inline-flex;position:relative;align-items:center;justify-content:center;gap:6px;
  flex:0 0 auto;width:87px;min-width:87px;height:39px;min-height:39px;
  box-sizing:border-box;border:1px solid var(--tg166-line);border-radius:11px;
  background:var(--tg166-bg);color:var(--tg166-fg);font:600 12px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;
  letter-spacing:.02em;cursor:pointer;box-shadow:0 2px 9px rgba(12,32,51,.07);
  z-index:25;padding:0 7px;margin:0;white-space:nowrap;text-transform:none;
}
.tg166-locale-dock.tg166-dark{--tg166-bg:#182b3d;--tg166-fg:#f1f6fc;--tg166-line:#40556b;}
.tg166-locale-icon{font-size:20px;font-weight:400;line-height:1;}
.tg166-locale-code{font-variant-numeric:tabular-nums;letter-spacing:.045em;}
.tg166-locale-chevron{font-size:15px;opacity:.75;line-height:1;transform:translateY(-2px);}
/* The native select is kept for existing programmatic users of #tg44Locale,
 * but no longer controls the visible dropdown: its OS popup inherited transparent
 * text on light backgrounds in some browsers. */
.tg166-locale-dock #tg44Locale{
  position:absolute!important;width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;
  border:0!important;padding:0!important;margin:0!important;
  background:#fff!important;color:#193346!important;
}
.tg166-locale-dock #tg44Locale option{background:#fff!important;color:#193346!important;}
.tg167-locale-trigger{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;gap:6px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:inherit!important;
  background:transparent!important;color:inherit!important;
  font:inherit!important;line-height:1!important;letter-spacing:inherit!important;
  cursor:pointer!important;box-shadow:none!important;text-transform:none!important;
}
.tg167-locale-trigger:focus-visible{outline:3px solid #168d87!important;outline-offset:3px!important;}
.tg167-locale-menu{
  position:fixed!important;z-index:21000!important;
  display:flex;flex-direction:column;box-sizing:border-box;
  overflow-y:auto;overscroll-behavior:contain;
  padding:6px!important;border:1px solid #c8d8e0!important;border-radius:12px!important;
  background:#fff!important;color:#183247!important;
  box-shadow:0 15px 40px rgba(9,31,53,.28)!important;
  font:500 14px/1.35 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  color-scheme:light;
}
.tg167-locale-menu[hidden]{display:none!important;}
.tg167-locale-menu .tg167-locale-option{
  display:flex!important;align-items:center!important;gap:10px!important;
  width:100%!important;min-height:42px!important;box-sizing:border-box!important;
  padding:8px 11px!important;margin:0!important;
  text-align:left!important;border:0!important;border-radius:8px!important;
  background:#fff!important;color:#183247!important;
  font:500 14px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  text-transform:none!important;letter-spacing:normal!important;
  cursor:pointer!important;white-space:normal!important;box-shadow:none!important;
}
.tg167-locale-option:hover,.tg167-locale-option:focus-visible{
  background:#edf6f7!important;color:#12374a!important;outline:2px solid #328f8b!important;outline-offset:-2px!important;
}
.tg167-locale-option[aria-selected="true"]{
  background:#e2f3ef!important;color:#0c514a!important;font-weight:700!important;
}
.tg167-locale-short{width:37px;flex:0 0 37px;font-size:12px;font-weight:700;opacity:.78;}
.tg167-locale-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;}
.tg167-locale-check{flex:0 0 16px;text-align:right;color:#066e62;}
.tg166-locale-dock:focus-within{outline:3px solid #168d87;outline-offset:2px;}
.tg166-locale-dock:hover{border-color:#1a9e93;}
/* Preserve access to the language selector before login and during MFA flows. */
.tg166-locale-dock.tg166-locale-floating{
  position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));
  z-index:10100;box-shadow:0 8px 25px rgba(10,29,49,.2);
}
/* Always place the selector as the rightmost header item, without taking full width. */
.tg-header-right>.tg166-locale-dock,.header-inner>.tg166-locale-dock,
.header__inner>.tg166-locale-dock,.top-actions>.tg166-locale-dock,
.topbar>.tg166-locale-dock{margin-left:auto;align-self:center;}
.top-actions>.tg166-locale-dock{margin-left:3px;}
.site-header .header-inner>.tg166-locale-dock,.header .header__inner>.tg166-locale-dock{margin-left:0;}
/* Keep existing account/navigation controls visible on narrow screens. */
@media(max-width:760px){
  .tg166-locale-dock{width:73px;min-width:73px;height:38px;min-height:38px;gap:4px;padding:0 4px;font-size:11px;}
  .tg166-locale-icon{font-size:16px;}
  .site-header .header-inner{gap:9px;}
  .header .header__inner{gap:9px;}
  .tg-topbar .tg-header-right{gap:7px;}
  .topbar>.tg166-locale-dock{margin-left:auto;}
}
@media(max-width:460px){
  .site-header .header-links,.header .nav{display:none;}
  /* On very narrow screens the public CTA stays in the hero, not behind the locale switcher. */
  .site-header .header-inner>a.button.small{display:none;}
  .header .header__inner>.header__action{display:none;}
  .site-header .header-inner>.tg166-locale-dock,
  .header .header__inner>.tg166-locale-dock{margin-left:auto;}
  .tg-header-right .tg-connection{display:none;}
  .topbar .top-actions{gap:5px;}
  .topbar .top-actions .compact-label{flex:1 1 145px;min-width:125px;}
  .topbar .top-actions .compact-label select{min-width:0;width:100%;}
  #dashboardSection .topbar{flex-wrap:wrap;}
  #dashboardSection .topbar .top-actions{width:100%;max-width:100%;flex-wrap:wrap;justify-content:flex-end;}
}
@media print{.tg166-locale-dock{display:none!important;}}
