/* V34 — Arabic Match benefit heading alignment; keep the approved V33 style. */
html[data-ui-lang="ar"] .match-chapter-head{
  direction:rtl;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:16px;
  width:100%;
}
html[data-ui-lang="ar"] .match-chapter-head .match-chapter-n{
  direction:ltr;
  unicode-bidi:isolate;
  flex:none;
  white-space:nowrap;
  font:700 18px/1.2 Manrope,sans-serif;
}
/* The former pseudo-diamond was positioned to the left of the number even in RTL,
   causing the diamond to collide with the long Arabic step label. */
html[data-ui-lang="ar"] .match-chapter-head .match-chapter-n::before{
  display:none !important;
  content:none !important;
}
html[data-ui-lang="ar"] .match-chapter-head .match-chapter-class{
  min-width:0;
  white-space:normal;
  overflow-wrap:normal;
  font:700 15px/1.55 Tajawal,sans-serif !important;
  text-align:right;
  letter-spacing:0 !important;
}
html[data-ui-lang="ar"] .match-chapter-head .match-chapter-mark{
  margin:0 !important;
  justify-self:end;
  flex:none;
  font-size:17px;
}
/* Keep step text and its rail on the same side in Arabic. */
html[data-ui-lang="ar"] .match-story-list:before{
  left:auto;
  right:23px;
}
html[data-ui-lang="ar"] .match-chapter{
  padding-left:0;
  padding-right:59px;
}
@media(max-width:800px){
  html[data-ui-lang="ar"] .match-chapter{padding-left:0;padding-right:55px}
  html[data-ui-lang="ar"] .match-story-list:before{right:22px}
}
@media(max-width:520px){
  html[data-ui-lang="ar"] .match-chapter{padding-left:0;padding-right:38px}
  html[data-ui-lang="ar"] .match-story-list:before{right:13px}
  html[data-ui-lang="ar"] .match-chapter-head{column-gap:10px}
  html[data-ui-lang="ar"] .match-chapter-head .match-chapter-class{font-size:13px!important;line-height:1.5}
  html[data-ui-lang="ar"] .match-chapter-head .match-chapter-mark{font-size:15px}
  html[data-ui-lang="ar"] .match-chapter-head .match-chapter-n{font-size:17px}
}
