/* English and Korean pages: type settings for Latin and Hangul, and the parts only these pages use. */

/* Korean: Noto Sans KR, and words never break in the middle (keep-all) */
html[lang="ko"] { --sans: "Noto Sans KR", "Noto Sans JP", sans-serif; --kp-font: "Noto Sans KR", "Noto Sans JP", sans-serif; }
html[lang="ko"] body, html[lang="ko"] body * { word-break: keep-all !important; }
/* English: long words may hyphenate in narrow places */
html[lang="en"] :is(.lw-sv-items span, .lw-fd-t, .lw-rules li, .lw-doc li, .lw-doc p, .lw-reach p, .lw-mb p, .lw-ex li, .lw-ways li, .op-lead) { hyphens: auto; }

/* the wide letter-spacing of the Japanese headings is too loose for Latin and Hangul */
html:not([lang="ja"]) :is(.sh-ja, .lw-hd-ja, .sl-catch, .sl-ttl, .sl-name, .lw-pl-n, .lw-sv-h, .lw-fd-n, .lw-win-n, .kp-band__ttl, .kp-ct__ttl, .lw-h3, .lw-cls-w) { letter-spacing: .01em; }
html:not([lang="ja"]) :is(body, .sh-lead, .sh-catch, .lw-hd-lead, .op-lead, .lw-sv-c, .pt-nav a, .pt-cta, .rs-tab, .kp-btn__t, .nw-t, .nw-s, .sl-sub, .sl-note) { letter-spacing: .01em; }
/* MV: the catch wraps (the Japanese one is sized to stay on two lines) */
html:not([lang="ja"]) .sl-catch > span { white-space: normal; }
html:not([lang="ja"]) .sl-catch { text-wrap: balance; }
html[lang="en"] .sl-catch { font-size: min(42px, calc((100cqi - 104px) / 12)); line-height: 1.3; }
html:not([lang="ja"]) .sl-ttl--s > span.ph { display: inline-block; }
@media (max-width: 899px) {
  html[lang="en"] .sl-catch { font-size: min(27px, calc((100cqi - 40px) / 11)); }
}
/* Latin and Hangul read left-aligned; justifying them opens wide gaps between words */
html:not([lang="ja"]) :is(.sl-sub, .op-lead, .lo-lead, .lw-fd-t, .lw-sv-items span, .lw-rules li, .lw-coach p, .lw-art-body > p, .lw-doc li) { text-align: left; }
html:not([lang="ja"]) .sl--brand .sl-sub { text-align: inherit; }
html:not([lang="ja"]) .lw-submit { letter-spacing: .02em; padding: 0 20px; }
html[lang="en"] :is(.sh-ja, .lw-hd-ja) { line-height: 1.3; }
html[lang="en"] .lw-pl-n { line-height: 1.15; }

/* Korean "tied" in front of a finish: small, and the finish stays on one line */
:is(.rs-rk, .sl-rows b, .lw-lt-nums dd, .c-rk):has(.rk-t) { white-space: nowrap; }
.rk-t { font-size: .55em; font-weight: 600; margin-right: 3px; vertical-align: .12em; letter-spacing: 0; }
.rk-mc { font-size: .6em; margin-right: 0; vertical-align: 0; }
html[lang="ko"] .lw-win-rows li > span { white-space: nowrap; }
html:not([lang="ja"]) .lw-wk-sel { max-width: 100%; }
html:not([lang="ja"]) .lw-wk-sel select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }

/* victories of a player: the years with a win (the tournaments are on the Japanese page) */
.lw-yc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 880px; margin: 0 auto; }
.lw-yc li { display: inline-flex; align-items: baseline; gap: 4px; padding: 10px 16px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lw-yc b { font: 600 20px/1 var(--en); letter-spacing: .04em; color: var(--green-d); }
.lw-yc small { font: 600 13px/1 var(--en); color: var(--gold-d); }
.sec--iv .lw-pl-ln.lw-yc-go { justify-content: center; margin-top: 28px; }
