/* Header language selector: visible on desktop and mobile. */
.hm-header-languages {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  white-space: nowrap;
}
.hm-header-languages a,
.hm-header-languages .hm-lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}
.hm-header-languages a {
  color: #fff;
}
.hm-header-languages a:hover,
.hm-header-languages a:focus-visible {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  outline-offset: 3px;
}
.hm-header-languages .hm-lang-current {
  background: #d4af37;
  color: #101820;
}
@media (max-width: 480px) {
  .header-actions { gap: .35rem; }
  .hm-header-languages { padding: 2px; }
  .hm-header-languages a,
  .hm-header-languages .hm-lang-current {
    min-width: 33px;
    min-height: 36px;
    padding-inline: 4px;
    font-size: 12px;
  }
}
/* Only the narrowest phones (under 360px) drop the search icon to keep EN | VI and the menu visible. */
@media (max-width: 359px) {
  .header-actions .header-search { display: none; }
  .custom-logo-link { max-width: min(46vw, 158px); }
}
