.top .nav-frame:has(.ct-language) { column-gap: clamp(8px, 1.2vw, 20px); }
.top .nav-frame:has(.ct-language) #primary { margin-inline-start: auto; }
.ct-language { position: relative; flex: none; color: white; font: 600 13px/1.2 var(--head, sans-serif); }
.ct-language[hidden] { display: none; }
.ct-language-control {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding-inline: 8px; border-radius: 5px; white-space: nowrap; color: inherit;
}
.ct-language-control:hover { color: #ffc4a2; background: rgb(255 255 255 / 9%); }
.ct-language-control:has(select:focus-visible) :is(.ct-language-name, .ct-language-code) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ct-language-control select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  font: 400 16px/1.4 system-ui, sans-serif; opacity: 0; cursor: pointer;
}
.ct-language-control option { color: #152b3e; background: white; }
.ct-language-globe { width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.ct-language-globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.ct-language-globe::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid currentColor; }
.ct-language-chevron { width: 6px; height: 6px; margin: -3px 1px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ct-language-code { display: none; }
.ct-language-status:not(:empty) {
  position: absolute; inset: 100% 0 auto auto; width: max-content; max-width: min(210px, 85vw); z-index: 2;
  padding: 9px 12px; border: 1px solid #d5dce2; border-radius: 4px; color: #172b3e; background: white;
  box-shadow: 0 4px 16px #13283e24; font-size: 13px; line-height: 1.4;
}
@media (min-width: 961px) and (max-width: 1199px) {
  .top:has(.ct-language) .nav-frame { min-height: 65px; }
  .top:has(.ct-language) .brand-vi-logo { width: 155px; height: 50px; }
  .top:has(.ct-language) .menutoggle {
    display: flex; width: 44px; height: 44px; padding: 10px; border: 0; color: white;
    background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  }
  .top:has(.ct-language) .menutoggle span { width: 23px; height: 2px; background: currentColor; }
  .top:has(.ct-language) #primary { display: none; }
  .top:has(.ct-language) #primary.is-open {
    display: block; position: absolute; inset: 100% 0 auto; overflow-y: auto;
    max-height: calc(100dvh - 65px); padding: 6px 22px 18px; background: #1a3253;
  }
  .top:has(.ct-language) .nav-row { border-top: 1px solid #ffffff24; }
  .top:has(.ct-language) .nav-parent { flex: 1; padding: 13px 0; }
  .top:has(.ct-language) .nav-parent::after { display: none; }
  .top:has(.ct-language) .nav-trigger { width: 100%; justify-content: space-between; min-height: 48px; }
  .top:has(.ct-language) .nav-pop {
    position: static; min-width: 0; max-height: none; overflow: visible; padding: 4px 8px;
    margin-bottom: 7px; border: 0; box-shadow: none; backdrop-filter: none; background: #112946;
  }
  .top:has(.ct-language) .nav-pop a { padding: 10px; }
}
@media (max-width: 1199px) {
  .ct-language-name { display: none; }
  .ct-language-code { display: inline; }
  .top .nav-frame:has(.ct-language) { gap: 4px; }
  .top .nav-frame > .ct-language { margin-inline-start: auto; }
}
