/* Keep the existing site's navigation style while translating the entire DOM. */
#ato-translate-widget{display:flex;align-items:center;min-height:43px;position:relative;z-index:10}
#ato-translate-widget select{appearance:auto!important;min-width:135px;max-width:190px;min-height:43px;cursor:pointer;border-radius:11px;border:1px solid #e3e6f1;background:#fff;color:#1a2757;padding:8px 11px;font:700 14px/1.3 Manrope,Arial,sans-serif}
#ato-translate-widget select:focus-visible{outline:3px solid #e82a4c;outline-offset:2px}
#ato-translate-widget .gt_switcher{max-width:195px}
html.ato-translator-ready #langToggle,html.ato-translator-ready #langMenu{display:none!important}
html:not(.ato-translator-ready) #ato-translate-widget{display:none}
.ato-translate-archive{margin-left:auto;flex-shrink:0}
.ato-translate-archive select{font-size:15px!important;min-width:165px!important}
.ato-translator-fallback{color:#f3d2d9;font-size:12px}
body>.skiptranslate iframe{display:none!important}
body{top:0!important}
@media(max-width:700px){
  #ato-translate-widget select{min-width:108px;max-width:135px;font-size:12px}
  .ato-translate-archive{width:100%;justify-content:flex-start}
  .ato-translate-archive select{min-width:140px!important}
}
/* Responsive, accessible flag-based language control. The translator select
   remains in the DOM so GTranslate continues to translate all page sections. */
#ato-translate-widget select.gt_selector{
  position:absolute!important;width:1px!important;height:1px!important;
  min-width:0!important;max-width:1px!important;min-height:0!important;
  overflow:hidden!important;opacity:0!important;pointer-events:none!important;
  clip-path:inset(50%);border:0!important;padding:0!important;
}
#ato-translate-widget .ato-flag-picker{position:relative;z-index:150;flex-shrink:0}
#ato-translate-widget .ato-flag-toggle{
  width:max-content;min-width:142px;min-height:45px;
  display:flex;align-items:center;gap:10px;padding:7px 12px;
  border:1px solid #dce0ed;border-radius:11px;background:#fff;
  color:#18234e;box-shadow:0 4px 15px rgba(20,31,77,.06);
  font:800 14px/1.25 Manrope,Arial,sans-serif;white-space:nowrap;
  transition:background .2s,border-color .2s,box-shadow .2s;
}
#ato-translate-widget .ato-flag-toggle:hover{border-color:#cdd2e8;background:#fafbff;box-shadow:0 6px 22px rgba(20,31,77,.1)}
#ato-translate-widget .ato-flag-toggle:focus-visible,
#ato-translate-widget .ato-flag-option:focus-visible{outline:3px solid #d62640;outline-offset:2px}
#ato-translate-widget .ato-flag-image{
  width:26px;height:18px;flex:none;object-fit:cover;border-radius:3px;
  border:1px solid rgba(20,31,77,.10);box-shadow:0 1px 4px rgba(10,20,45,.12)
}
#ato-translate-widget .ato-flag-label{max-width:142px;overflow:hidden;text-overflow:ellipsis}
#ato-translate-widget .ato-flag-chevron{
  width:8px;height:8px;margin-left:auto;flex:none;border-right:2px solid #586181;
  border-bottom:2px solid #586181;transform:translateY(-2px) rotate(45deg)
}
#ato-translate-widget .ato-flag-list{
  position:absolute;top:calc(100% + 9px);right:0;width:336px;
  max-width:calc(100vw - 24px);max-height:min(60vh,440px);
  overflow-y:auto;overscroll-behavior:contain;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
  padding:12px;background:#fff;border:1px solid #e1e4ef;border-radius:16px;
  box-shadow:0 18px 46px rgba(12,23,60,.20);
}
#ato-translate-widget .ato-flag-list[hidden]{display:none!important}
#ato-translate-widget .ato-flag-option{
  min-width:0;min-height:42px;display:flex;align-items:center;gap:9px;
  padding:9px 7px;text-align:left;border:1px solid transparent;
  border-radius:9px;background:transparent;color:#18234e;
  font:700 12px/1.25 Manrope,Arial,sans-serif;
}
#ato-translate-widget .ato-flag-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ato-translate-widget .ato-flag-option:hover,
#ato-translate-widget .ato-flag-option.active{background:#f1f3fd;border-color:#e3e6f6}
#ato-translate-widget .ato-flag-option.active{color:#be1e39}
.ato-translate-archive{position:relative}
.ato-translate-archive .ato-flag-list{right:0}
@media(max-width:1040px){
  #ato-translate-widget .ato-flag-toggle{min-width:130px}
}
@media(max-width:720px){
  #ato-translate-widget .ato-flag-toggle{min-width:112px;min-height:42px;gap:7px;padding:6px 9px;font-size:12px}
  #ato-translate-widget .ato-flag-image{width:24px;height:17px}
  #ato-translate-widget .ato-flag-label{max-width:84px}
  #ato-translate-widget .ato-flag-list{width:300px;max-height:min(65vh,420px);padding:8px;gap:3px}
  #ato-translate-widget .ato-flag-option{font-size:12px;min-height:41px}
  .ato-translate-archive{width:auto;justify-content:flex-start}
}
@media(max-width:390px){
  #ato-translate-widget .ato-flag-toggle{min-width:86px}
  #ato-translate-widget .ato-flag-label{max-width:59px}
  #ato-translate-widget .ato-flag-list{width:calc(100vw - 22px)}
}

/* Keep language flags and the entire hamburger control inside small screens. */
@media (max-width:720px) {
  header .nav.container {
    width:calc(100% - 24px);
    max-width:none;
    min-width:0;
    gap:6px;
  }
  header .brand {
    min-width:0;
    flex:1 1 auto;
    gap:5px;
    overflow:hidden;
  }
  header .brand img {
    flex:none;
    width:clamp(48px, 14vw, 63px);
    height:43px;
  }
  header .brand > span {
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    font-size:clamp(9px, 2.55vw, 11px);
    letter-spacing:.035em;
    line-height:1.3;
  }
  header .brand small {
    font-size:clamp(7px, 1.8vw, 8px);
    letter-spacing:.08em;
  }
  header .navtools {
    gap:6px;
    flex:0 0 auto;
    min-width:0;
  }
  header #ato-translate-widget { min-width:0; }
  header #ato-translate-widget .ato-flag-toggle {
    min-width:0;
    max-width:118px;
    min-height:42px;
    padding:5px 7px;
  }
  header #ato-translate-widget .ato-flag-label { max-width:64px; }
  header .menutoggle {
    display:flex;
    flex:0 0 42px;
    width:42px;
    min-width:42px;
    height:42px;
    padding:0;
    margin:0;
    align-items:center;
    justify-content:center;
    border:1px solid #e2e6f1;
  }
  header .menutoggle svg { width:24px; height:24px; flex:none; }
}
@media (max-width:390px) {
  header .nav.container { width:calc(100% - 18px); gap:4px; }
  header .brand img { width:44px; }
  header .brand > span { font-size:9px; }
  header .brand small { font-size:7px; }
  header .navtools { gap:4px; }
  header #ato-translate-widget .ato-flag-toggle { max-width:95px; }
  header #ato-translate-widget .ato-flag-label { max-width:47px; }
  header .menutoggle { flex-basis:40px; width:40px; min-width:40px; }
}
