html[lang="ko"] body {
  font-family: Inter, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
  word-break: keep-all;
}

:is(html[lang="es"], html[lang="ko"]) body > header .brand .rx-brand-english {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
}
:is(html[lang="es"], html[lang="ko"]) body > header .brand .rx-brand-english img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
:is(html[lang="es"], html[lang="ko"]) body > header .brand .original-logo { display: none; }

#main-navigation .rx-language-menu {
  position: relative;
  color: inherit;
}

#main-navigation .rx-language-menu summary {
  display: flex;
  align-items: center;
  gap: 0.65em;
  width: max-content;
  min-height: 44px;
  padding: 0 10px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

#main-navigation .rx-language-menu summary::-webkit-details-marker { display: none; }

#main-navigation .rx-language-menu summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
}

#main-navigation .rx-language-menu[open] summary::after {
  transform: translateY(0.1em) rotate(225deg);
}

#main-navigation .rx-language-options {
  position: absolute;
  z-index: 15;
  inset: 100% 0 auto auto;
  width: min(280px, 80vw);
  padding: 10px;
  border: 1px solid #ccd6ca;
  border-radius: 6px;
  background: #fbfaf6;
  color: #20362b;
  box-shadow: 0 10px 24px #0710101a;
}

#main-navigation .rx-language-options ul { list-style: none; padding: 0; margin: 0; }

body > header #main-navigation .rx-language-options a,
#main-navigation .rx-language-options li > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  color: #20362b;
  font-size: 16px !important;
  line-height: 1.35;
  white-space: normal;
}

#main-navigation .rx-language-options li > span {
  font-weight: 650;
  background: #e6ece3;
}

body > header #main-navigation .rx-language-options a:hover,
body > header #main-navigation .rx-language-options a:focus-visible {
  background: #edf1e8;
  text-decoration: underline;
}

body > header #main-navigation .rx-language-options a.rx-language-contact {
  border-top: 1px solid #d3dcd0;
  margin-top: 6px;
}

@media (max-width: 900px) {
  #main-navigation .rx-language-menu summary { padding-inline: 0; }
  #main-navigation .rx-language-options {
    position: static;
    width: min(100%, 360px);
    box-shadow: none;
  }
  .rx-chapter-rail .rx-page-identity { min-width: 0; white-space: normal; }
  .rx-chapter-rail .rx-page-identity > strong { overflow-wrap: anywhere; }
  .rx-chapter-rail .rx-chapter-menu { flex: none; }
}
