/* Korean layout corrections only. Text, type sizes, palettes and permissions stay unchanged. */
html:lang(ko) .app {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ko) .app :where(h1, h2, h3, .sect-t) {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
html:lang(ko) .app :where(p, .hint, .msnote, .mchk span, .cat .sub) {
  text-wrap: pretty;
}
html:lang(ko) .app :where(button, .btn) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ko) .app .btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
}
html:lang(ko) .app .row > div { min-width: 0; }
html:lang(ko) .app .sec h3::before,
html:lang(ko) .app .sect-t::before { flex-shrink: 0; }
html:lang(ko) .app .mchk > span { min-width: 0; }

/* Lazy-loaded old gwiin styles have greater specificity than the app defaults. */
html:lang(ko) body #screen-gwiin .gw-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
html:lang(ko) body #screen-gwiin .gw-step { min-width: 0; }
html:lang(ko) body #screen-gwiin .gw-step span,
html:lang(ko) body #screen-gwiin h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
html:lang(ko) body #screen-gwiin .gw-consent > span,
html:lang(ko) body #screen-gwiin .gw-hongyeon > div {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ko) body #screen-gwiin .gw-consent > span { text-wrap: pretty; }
html:lang(ko) body #screen-gwiin .gw-head > h2 { min-width: 0; }
html:lang(ko) body #screen-gwiin .gw-head > button { flex-shrink: 0; }
@media (max-width: 560px) {
  html:lang(ko) body #screen-gwiin .gw-head { flex-wrap: wrap; }
}
