/* Translated pages (/zh/, /ko/, /ar/, /he/). Loaded after style.css and explorer.css on every non-English page. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&family=Noto+Sans+Hebrew:wght@400;500;600;700&display=swap');

/* Scripts DM Sans doesn't cover get a matching system face, before the browser's generic fallback. */
:root:lang(zh){--sans:'DM Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans SC',sans-serif;--serif:'Instrument Serif','Songti SC','Noto Serif SC',serif}
:root:lang(ko){--sans:'DM Sans','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;--serif:'Instrument Serif','AppleMyungjo','Noto Serif KR',serif}
:root:lang(ar){--sans:'DM Sans','Noto Sans Arabic','Geeza Pro',Tahoma,sans-serif;--serif:'Noto Sans Arabic','Geeza Pro',serif}
:root:lang(he){--sans:'DM Sans','Noto Sans Hebrew','Arial Hebrew',Arial,sans-serif;--serif:'Noto Sans Hebrew','Arial Hebrew',serif}
body{font-family:var(--sans)}

/* Tracking is for Latin capitals: it breaks Arabic joining and loosens CJK and Hebrew. No faux italics either. */
:lang(zh) *,:lang(ko) *,:lang(ar) *,:lang(he) *{letter-spacing:0!important}
:lang(zh) em,:lang(ko) em,:lang(ar) em,:lang(he) em{font-style:normal}
:lang(ko) body{word-break:keep-all}
:lang(zh) body{line-break:strict}
/* Arabic and Hebrew glyphs read small at the Latin sizes; the tiny caps lines get a lift. */
:lang(ar) .topline,:lang(he) .topline,:lang(ar) .eyebrow,:lang(he) .eyebrow{font-size:max(11px,1em)}
:lang(ar) body,:lang(he) body{line-height:1.8}

/* Right to left. Logical layout comes from dir="rtl"; these flip what style.css pins to a physical side. */
[dir=rtl] table,[dir=rtl] caption,[dir=rtl] .case-table caption,[dir=rtl] .signum-table tbody th,[dir=rtl] .signum-table thead th:first-child,[dir=rtl] .metric-open{text-align:right}
[dir=rtl] .signum-table td,[dir=rtl] .signum-table th,[dir=rtl] .spread-cell,[dir=rtl] .static-cell{text-align:left}
[dir=rtl] .signum-table tbody th,[dir=rtl] .signum-table thead th:first-child{text-align:right}
[dir=rtl] .signum-table thead th:first-child{padding-left:0;padding-right:16px}
[dir=rtl] .disclosure{border-left:0;border-right:2px solid #8cadd9}
[dir=rtl] .stats-strip>div{border-right:0;border-left:1px solid var(--line)}
[dir=rtl] .stats-strip>div:first-child{padding-left:22px;padding-right:0}
[dir=rtl] .prose ul,[dir=rtl] .prose .toc ol,[dir=rtl] .signum-notes{padding-left:0;padding-right:22px}
[dir=rtl] .signum-notes{padding-right:18px}
[dir=rtl] .prose li{padding-left:0;padding-right:5px}
[dir=rtl] .prose .video-transcript h3 a{margin-right:0;margin-left:8px}
[dir=rtl] .header-cta span{margin-left:0;margin-right:22px}
[dir=rtl] .section-heading>a{text-align:left}
[dir=rtl] .run-tabs button span{margin-left:0;margin-right:4px}
[dir=rtl] .help-tip{margin-left:0;margin-right:4px}
[dir=rtl] .note-ref{margin-left:0;margin-right:2px}
[dir=rtl] .help-tip:hover::after,[dir=rtl] .help-tip:focus-visible::after,[dir=rtl] .note-ref:hover::after,[dir=rtl] .note-ref:focus-visible::after{text-align:right}
[dir=rtl] .note-ref:hover::after,[dir=rtl] .note-ref:focus-visible::after{right:auto;left:-8px}
[dir=rtl] .case-table th:nth-last-child(-n+2) .help-tip::after{right:auto;left:-8px}
[dir=rtl] .case-table th:nth-child(2) .help-tip::after{left:auto;right:-8px}
[dir=rtl] mark.err:hover::after,[dir=rtl] mark.err:focus::after{left:auto;right:0}
[dir=rtl] td.is-best .cell-mean:before{margin-right:0;margin-left:6px}
[dir=rtl] .best-badge{margin-left:0}
/* The face-off and every chart stay left to right: scribe A is the left pick and its rope pulls left, axes run low to high. */
[dir=rtl] .faceoff-picks,[dir=rtl] .rope-line,[dir=rtl] #spread-chart{direction:ltr}
[dir=rtl] .rope-val{direction:rtl;unicode-bidi:isolate}
/* Numbers, times and ranges inside right-to-left text keep their own order. */
[dir=rtl] .cell-mean,[dir=rtl] .cell-range,[dir=rtl] .stats-strip strong,[dir=rtl] .rope-val b,[dir=rtl] .rope-val small{unicode-bidi:isolate}
