/* All editions share one layout; writing direction and script metrics vary. */
.language-popover{width:min(370px,calc(100vw - 36px));max-height:calc(100dvh - 110px);overflow:auto;border-radius:2px}
.language-popover>strong{display:block;margin-bottom:10px;font-size:12px;color:#607794}
.language-popover a{padding-block:10px;border-top:1px solid #edf1f6;min-height:44px}
.language-popover a>span{direction:ltr;unicode-bidi:isolate}
.footer-languages{max-width:470px;row-gap:12px}
.gpi-home-jumps>a{white-space:normal}
.gpi-home-jumps>a>b,.gpi-switch a>b{margin-left:0;margin-inline-start:auto}
.gpi-index-entry,.gpi-method-flow article,.gpi-home-intro,.gpi-home-section-head>div,.annual-award-details{min-width:0}
:is(.gpi-entry-heading h3,.gpi-method-flow h3,.annual-award-details h2,.gpi-home-section-head h2){overflow-wrap:anywhere}
.brand{direction:ltr;unicode-bidi:isolate}
a[href^="mailto:"],input[type="email"],input[type="url"]{direction:ltr;unicode-bidi:isolate}
:lang(zh-Hans){--gpi-font:"PingFang SC","Microsoft YaHei",Arial,sans-serif}
html[lang=zh-Hans] :is(h1,h2,h3,h4,.gpi-kicker,.gpi-panel-kicker,.gpi-first,.overline){letter-spacing:0;line-height:1.5;word-break:normal;overflow-wrap:break-word}
html[lang=zh-Hans] :is(.gpi-home-intro h1,.gpi-masthead h1){line-height:1.3}
html[lang=ru] :is(.gpi-kicker,.gpi-panel-kicker,.gpi-first,.overline){letter-spacing:.04em}
html[dir=rtl]{--gpi-font:Tahoma,Arial,sans-serif;--serif:Tahoma,Arial,sans-serif}
html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif}
html[dir=rtl] :is(h1,h2,h3,h4,p,label,button,select,input,li,th,td,summary,figcaption,.gpi-kicker,.gpi-panel-kicker,.gpi-first,.overline,.gpi-breadcrumb){font-family:Tahoma,Arial,sans-serif;letter-spacing:0}
html[dir=rtl] :is(h1,h2,h3,h4){line-height:1.5}
html[dir=rtl] :is(.gpi-home-intro h1,.gpi-masthead h1){line-height:1.4;letter-spacing:0}
html[dir=rtl] :is(p,li,td,.prose){line-height:1.95}
html[dir=rtl] .language{border-left:0;border-right:1px solid var(--line);padding:8px 22px 8px 0}
html[dir=rtl] .language-popover{right:auto;left:40px}
html[dir=rtl] .footer-bottom>span:last-child{margin-left:0;margin-right:auto}
html[dir=rtl] .gpi-kicker>span{margin-right:0;margin-left:15px}
html[dir=rtl] .gpi-section-nav>.wrap>span{margin-right:0;margin-left:auto}
html[dir=rtl] :is(.gpi-index-stats>div,.gpi-home-statline>div){border-right:0;border-left:1px solid var(--gpi-line);padding-left:0;padding-right:27px}
html[dir=rtl] :is(.gpi-index-stats>div,.gpi-home-statline>div):first-child{padding-right:0}
html[dir=rtl] :is(.gpi-index-stats>div,.gpi-home-statline>div):last-child{border-left:0}
html[dir=rtl] .gpi-entry-no{border-right:0;border-left:1px solid #d9e2e8;padding-right:0;padding-left:20px}
html[dir=rtl] .gpi-entry-meta span+span{border-left:0;border-right:1px solid var(--gpi-line);padding-left:0;padding-right:16px}
html[dir=rtl] .gpi-method-equation>a{margin-left:0;margin-right:auto}
html[dir=rtl] :is(table,caption,.picker,.eu-link,.eu-table-scroll button,.eu-rank-info h3 button,.eu-country-grid button){text-align:start}
html[dir=rtl] .comparison-table th:first-child{left:auto;right:0;box-shadow:-1px 0 0 var(--line)}
html[dir=rtl] .research-index :is(.eu-rank-score,.ds-chart-points,.ed-chart-score){text-align:end}
html[dir=rtl] :is(.gpi-preview-row strong,.gpi-leader-body strong,.eu-score,.ed-score,.ds-chart-points>strong,.eu-rank-number,.ed-chart-rank,.ds-chart-rank){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] :is(.gpi-world,.gpi-geographic-map,.eu-bars,.ds-bars,.ed-bars,.gpi-preview-chart,.gpi-score-scale,.gpi-scale-labels,.ed-radar,.ds-radar,.ed-contribution-track){direction:ltr}
html[dir=rtl] :is(.eu-bars,.ds-bars,.ed-bars,.gpi-preview-chart) :is(button,.eu-bar-name,.ds-bar-label,.ed-bar>span,.gpi-preview-name){direction:rtl;text-align:start;unicode-bidi:plaintext}
html[dir=rtl] :is(.gpi-world,.gpi-geographic-map) text{unicode-bidi:plaintext;letter-spacing:0}
html[dir=rtl] :is(.ds-transparency,.eu-evidence-note){border-left:0;border-right:3px solid #5279ab}
html[dir=rtl] :is(.ds-profile-title,.ed-profile-title)>div:last-child{border-left:0;border-right:1px solid var(--eu-line);padding-left:0;padding-right:35px}
html[dir=rtl] :is(.ed-sources,.ds-sources,.eu-sources ul,.ed-radar-dimensions,.criteria-list,.checklist){padding-left:0;padding-right:22px}
html[dir=rtl] .ed-evidence-head{padding-right:0;padding-left:70px}
html[dir=rtl] .ed-evidence-head strong{right:auto;left:0;direction:ltr;unicode-bidi:isolate}
html[dir=rtl] :is(.eu-close,.ed-dialog .ed-close,.remove-button){float:left}
html[dir=rtl] .research-index :is(.eu-rank-winner,.ds-chart-winner,.ed-top-one){box-shadow:inset -3px 0 var(--gpi-gold)}
html[dir=rtl] .gpi-link-icon[data-directional=true]{transform:scaleX(-1)}
@media(max-width:800px){
 .footer-languages{max-width:none}
 html[dir=rtl] :is(.ds-profile-title,.ed-profile-title)>div:last-child{border-right:0;padding-right:0}
}
@media(max-width:560px){
 .language-popover{max-height:calc(100dvh - 88px)}
 html[dir=rtl] .language-popover{left:18px;right:auto}
 html[dir=rtl] .language{border:0;padding:8px 0}
 html[dir=rtl] :is(.gpi-index-stats>div,.gpi-home-statline>div){padding-inline:12px}
 html[dir=rtl] :is(.gpi-index-stats>div,.gpi-home-statline>div):nth-child(odd){padding-right:0}
 html[dir=rtl] .gpi-home-intro h1{font-size:34px}
 html[dir=rtl] .gpi-masthead h1{font-size:31px}
 html[lang=ru] .gpi-home-intro h1{font-size:34px}
 html[lang=zh-Hans] .gpi-home-intro h1{font-size:34px}
 html[dir=rtl] .research-index :is(.eu-rank-score,.ds-chart-points,.ed-chart-score){text-align:start}
}
