/* Shared local flag + language control for desktop and mobile. */
.rc-header .rc-language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  background: #f4f7fc;
  box-shadow: 0 2px 8px rgb(17 56 146 / 4%);
  color: #34445a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  white-space: nowrap;
}

.rc-header .rc-language-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}

.rc-header .rc-language-switch a:hover {
  background: #e4ebf8;
}

.rc-header .rc-language-switch a[aria-current="true"] {
  background: #113892;
  color: #fff;
  box-shadow: 0 2px 5px rgb(17 56 146 / 18%);
}

.rc-header .rc-language-switch a:focus-visible {
  outline: 2px solid #113892;
  outline-offset: 2px;
}

.rc-header .rc-language-flag-frame {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
}

.rc-header .rc-language-flag {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgb(15 30 60 / 15%));
}

.rc-header .rc-header-language {
  margin-inline: 2px;
}

.rc-header .rc-mobile-language {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e7edf5;
  color: #34445a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.rc-header .rc-mobile-language-label {
  flex: 0 1 auto;
}

.rc-header .rc-mobile-language .rc-language-switch a {
  min-height: 40px;
}

@media (min-width: 1101px) and (max-width: 1240px) {
  .rc-header .rc-header-language .rc-language-code {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .rc-header .rc-header-language a { gap: 0; padding-inline: 6px; }
}

@media (max-width: 1100px) {
  .rc-header .rc-header-language { display: none; }
  .rc-header .rc-mobile-language { display: flex; }
}

@media (max-width: 340px) {
  .rc-header .header-inner { gap: 8px; }
  .rc-header .brand img {
    width: calc(100vw - 150px);
    max-width: calc(100vw - 150px);
  }
  .rc-header .rc-header-actions { gap: 5px; }
  .rc-header .rc-icon-button,
  .rc-header .rc-mobile-toggle { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-header .rc-language-switch a { transition: none; }
}
