.topline > .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topline > .wrap > span { margin-right: auto; }
.hm-languages {
  position: relative;
  z-index: 60;
  flex: none;
  font: 500 12px/1.35 system-ui, sans-serif;
  letter-spacing: normal;
}
.hm-languages summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 6px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.hm-languages summary::-webkit-details-marker { display: none; }
.hm-languages summary svg { width: 16px; height: 16px; }
.hm-languages[open] .hm-lang-arrow { transform: rotate(180deg); }
.hm-lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: min(310px, calc(100vw - 30px));
  padding: 12px;
  border: 1px solid #cbdad0;
  border-radius: 12px;
  background: #fff;
  color: #173b2d;
  box-shadow: 0 12px 32px #0e342d36;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
}
.hm-lang-panel p { margin: 0 0 8px; font-weight: 700; }
.hm-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.topline .hm-lang-grid a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #143c2c;
  font: 500 13px/1.35 system-ui, sans-serif;
  white-space: normal;
}
.hm-lang-grid a:hover, .hm-lang-grid a[aria-current] { background: #e9f3e9; }
.hm-lang-panel small { display: block; margin: 9px 0 0; color: #526b5e; font-size: 10px; }
.hm-languages :focus-visible { outline: 2px solid #b58524; outline-offset: 1px; }
@media (max-width: 600px) {
  .topline { height: 38px; }
  .topline > .wrap > span { display: none; }
  .topline > .wrap > a { margin-right: auto; font-size: 11px; }
  .hm-languages summary { min-height: 36px; }
  .topline .hm-lang-grid a { min-height: 40px; }
}
@media print { .hm-languages { display: none; } }
