/* Site wording in two languages. prefs.js sets html[data-ui] to "en" or "ko" before the page
   paints; a template writes <span class="ui-en">Library</span><span class="ui-ko">서재</span>
   and only the other language is hidden, so each span keeps its own display. */
html[data-ui="ko"] .ui-en,
html:not([data-ui="ko"]) .ui-ko { display: none !important; }

/* Hangul in the site's own labels. */
html[data-ui="ko"] body { word-break: keep-all; }
html[data-ui="ko"] .eyebrow,
html[data-ui="ko"] .block-title,
html[data-ui="ko"] .crown-hint { letter-spacing: .04em; }

/* Korean book names stand upright down the spine, as on a Korean book. */
.book .label .t.ui-ko {
  text-orientation: upright;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: calc(var(--fs) * .95);
}

/* Hangul has no true italic; keep Korean labels upright. */
html[data-ui="ko"] .byline,
html[data-ui="ko"] .byline .ui-ko { font-style: normal; }
html[data-ui="ko"] :is(.crown-hint, .crown-sub, .brand-sub, .lede, .hint, .ask, .eyebrow, .continue-meta) { font-style: normal; }
