/* Shared Arabic/Persian add-on for this category only. Load after coal-main.css. */
.p-about-thtee:has(#coal-main-series-comparison),
.p-about-thtee:has(#coal-main-series-comparison) > p,
#coal-main-series-comparison,
#coal-main-series-comparison > h2,
#coal-main-series-comparison > p.cmc-note,
#coal-main-quality,
#coal-main-quality > h2,
#coal-main-quality > p,
#coal-main-certifications h2,
#coal-main-certifications .p-title-section {
  direction: rtl !important;
  text-align: right !important;
}

/* Keep the parameter column on the right; do not depend on the table's ID. */
#coal-main-series-comparison table {
  direction: rtl !important;
}

#coal-main-series-comparison table th,
#coal-main-series-comparison table td,
#coal-main-series-comparison table th *,
#coal-main-series-comparison table td * {
  direction: rtl !important;
  unicode-bidi: normal !important;
  text-align: right !important;
}

/* Preserve the established table font, including when an editor drops its ID. */
#coal-main-series-comparison table,
#coal-main-series-comparison table * {
  font-family: 'Roboto', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

#coal-main-series-comparison table thead th,
#coal-main-series-comparison table thead th * {
  font-weight: 500 !important;
}

/* Airflow, pressure and power: keep each COMPLETE numeric cell LTR.
   Row fallback supports the existing five-row table if value spans are removed. */
#coal-main-series-comparison table td:has(.cmc-value),
#coal-main-series-comparison table td:has(.cmc-value) *,
#coal-main-series-comparison table tbody > tr:nth-child(n + 2):nth-child(-n + 4) > td,
#coal-main-series-comparison table tbody > tr:nth-child(n + 2):nth-child(-n + 4) > td * {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
}

/* Keep model names and individual range endpoints intact. */
#coal-main-series-comparison table .cmc-value,
#coal-main-series-comparison table thead th a {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
}
