@font-face{font-family:"Tajawal";src:url("/assets/fonts/tajawal-400.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Tajawal";src:url("/assets/fonts/tajawal-500.woff") format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Tajawal";src:url("/assets/fonts/tajawal-700.woff") format("woff");font-weight:700;font-display:swap}
@font-face{font-family:"Tajawal";src:url("/assets/fonts/tajawal-800.woff") format("woff");font-weight:800;font-display:swap}
html[lang="ar"]{--msa-arabic-ui:"Tajawal","Segoe UI",Tahoma,sans-serif;--msa-arabic-prose:var(--msa-arabic-ui);font-family:var(--msa-arabic-ui)}
html[lang="ar"] body,html[lang="ar"] :is(button,input,select,textarea){font-family:var(--msa-arabic-ui)}
html[lang="ar"] body{font-size:1rem;line-height:1.6}
html[lang="ar"] :is(h1,h2,h3){font-weight:800;letter-spacing:normal}
html[lang="ar"] :is(.ed-reading-head h1,.ed-opinion-head h1,.msa-reading-headline){font-size:clamp(1.7rem,2.8vw,2.65rem);line-height:1.5;text-wrap:pretty}
html[lang="ar"] :is(.ed-prose,.story-detail-copy>p,.msa-reading-page .article){font-family:var(--msa-arabic-prose);font-size:clamp(1.12rem,1.5vw,1.3rem);line-height:1.9}
html[lang="ar"] :is(.ed-prose,.msa-reading-page .article) p{font:inherit}
html[lang="ar"] :is(.ed-card-copy h2,.msa-ed-story h2,.news-mini strong){line-height:1.55}

/* Authored two-part title: keep each thought together on mobile. */
@media(max-width:600px){
 html[lang="ar"] #content .ed-reading-head h1.ed-headline-balanced{
  font-size:clamp(1.55rem,7.2vw,1.95rem);line-height:1.5;font-weight:700;
  letter-spacing:normal;word-spacing:normal;margin-block:.5rem 1rem;
  text-align:start;max-width:100%;
 }
 html[lang="ar"] #content .ed-headline-balanced .ed-title-line{display:block;text-wrap:balance}
}

/* Prevent mobile content columns from collapsing into one word per line. */
#content{width:100%;min-width:0}
#content :is(.ed-reading,.ed-prose,.story-detail-copy,.msa-reading-page,.msa-agent-chat,.msa-agent-log,.msa-agent-answer,.sp-panel,.sp-match-detail,.coach-scorecard,.msa-ci,.match-report){box-sizing:border-box;min-width:0;max-width:100%}
#content :is(.ed-prose p,.story-detail-copy>p,.msa-reading-page .article,.msa-agent-answer p,.match-report p,.match-report-card dd){word-break:normal;overflow-wrap:break-word;white-space:normal}
#content .msa-match-tabs{position:sticky;top:76px;z-index:8;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
#content .msa-match-tabs a{flex:0 0 auto;white-space:nowrap}
@media(max-width:700px){#content :is(.ed-reading-head,.ed-prose,.ed-reading-footer,.story-detail-copy,.msa-reading-page,.msa-agent-chat,.msa-agent-log,.sp-panel,.sp-match-detail,.coach-scorecard,.msa-ci){width:100%;max-width:100%;min-width:0}#content :is(.ed-prose,.story-detail-copy,.msa-reading-page){padding-inline:clamp(14px,4vw,22px)}}

html[data-theme="dark"] #content :is(.sp-panel,.msa-report-paper,.match-report-card,.match-report-empty,.coach-scorecard,.ed-reading,.ed-article-card,.msa-ed-story,.msa-agent-answer){background:#f8fbfd!important;color:#173249!important}
html[data-theme="dark"] #content :is(.sp-panel,.msa-report-paper,.match-report-card,.match-report-empty,.coach-scorecard,.ed-reading,.ed-article-card,.msa-ed-story,.msa-agent-answer) :is(p,small,dt,dd,h1,h2,h3,a,strong){color:#173249!important}
