/* Study language (Settings › Reading › Study language). prefs.js sets html[data-lang] to
   "en", "ko" or "both". The importer wraps text that has a Korean version in .lang-en and
   .lang-ko; text with only one language is not wrapped and always shows. */

.lang-ko { display: none; }
html[data-lang="ko"] .lang-en { display: none; }
html[data-lang="ko"] .lang-ko,
html[data-lang="both"] .lang-ko { display: block; }
html[data-lang="ko"] h1 .lang-ko { display: inline; }
/* Inline Korean bits (e.g. the 새찬송가 number on a hymn chip) show in ko and both. */
html[data-lang="ko"] .chip .lang-ko,
html[data-lang="both"] .chip .lang-ko { display: inline; }

/* Both: the Korean follows the English, set off by a quiet rule. */
html[data-lang="both"] .prose .lang-ko {
  margin-top: 0.9em;
  padding-left: 0.9em;
  border-left: 2px solid color-mix(in srgb, currentColor 22%, transparent);
}
html[data-lang="both"] .prose.message .lang-ko {
  margin-top: 2.5em;
  padding-top: 1.5em;
  padding-left: 0;
  border-left: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
html[data-lang="both"] h1 .lang-ko { font-size: 0.62em; margin-top: 0.25em; opacity: 0.8; }

/* Hangul reads better with a little more line spacing and no word breaking. */
:lang(ko) { word-break: keep-all; line-height: calc(var(--leading, 1.7) + 0.1); }

.hymn-ko { margin-top: -0.4em; opacity: 0.85; }
