/* Arabic pages share the header's content edges. Keep card padding and table scrolling. */
html[lang|="ar"] {
  --ar-content-width:1240px;
  --ar-page-gutter:20px;
  --ar-content-size:min(var(--ar-content-width),calc(100% - var(--ar-page-gutter) - var(--ar-page-gutter)));
}
html[lang|="ar"] body :is(header,main,footer) :is(.container,.hx-wrap,.ab-container,.dp-container,.faq-container,.hm-container,.rd-container,.ts-container,.fl-container),
html[lang|="ar"] body main.rf-main .wrap,
html[lang|="ar"] body main > .wy-seo-breadcrumb,
html[lang|="ar"] body main > .ai-readable-guide {
  box-sizing:border-box!important;
  width:var(--ar-content-size)!important;
  max-width:var(--ar-content-width)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
  min-width:0;
}
/* Some detail templates use more specific inquiry-container overrides. */
html[lang|="ar"] body main.hx-product :is(#contact,#inquiry) > .container,
html[lang|="ar"] body main.pittsburgh-page :is(#contact,#inquiry) > .container {
  width:var(--ar-content-size)!important;
  max-width:var(--ar-content-width)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}
/* A wrapper already supplies the page gutter: do not add it a second time. */
html[lang|="ar"] body main :is(.container,.hx-wrap,.ab-container,.dp-container,.faq-container,.hm-container,.rd-container,.ts-container,.fl-container) :is(.container,.hx-wrap,.ai-readable-guide),
html[lang|="ar"] body main.hx-product .hx-wrap :is(#contact,#inquiry) > .container {
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
  padding-inline:0!important;
}
html[lang|="ar"] body main .ai-readable-guide {
  box-sizing:border-box;
  padding-inline:0!important;
}
html[lang|="ar"] body main .ai-readable-guide > :is(h2,p) {
  max-width:none!important;
  margin-inline:0!important;
}
/* Section introductions use the same content edges, rather than a narrow centered column. */
html[lang|="ar"] body main :is(.section-head,.section-heading,.pk-heading,.lf-head,.duct-heading,.fl-head) {
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
  text-align:right!important;
}
html[lang|="ar"] body main :is(.section-head,.section-heading,.pk-heading,.lf-head,.duct-heading,.fl-head) > p {
  max-width:none!important;
  margin-inline:0!important;
  text-align:justify!important;
}
html[lang|="ar"] body main :is(h1,h2,h3,p) {
  overflow-wrap:break-word;
}
@media(max-width:760px) {
  html[lang|="ar"] { --ar-page-gutter:16px; }
}

/* Arabic reading direction and readable prose; preserve number and control layout. */
html[lang|="ar"] body main :is(h1,h2,h3){text-align:start;letter-spacing:normal!important;line-height:1.5}
html[lang|="ar"] body main p{ text-align:justify;line-height:1.9;letter-spacing:normal!important;word-break:normal;hyphens:none }
html[lang|="ar"] .wy-seo-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;direction:rtl;text-align:start;padding-block:16px;font-size:14px;line-height:1.8}
html[lang|="ar"] .wy-seo-breadcrumb a{color:#12669a;text-decoration:none}
html[lang|="ar"] .wy-seo-breadcrumb a:hover{text-decoration:underline}
html[lang|="ar"] main :is(.wy-purchase-copy,.wy-related-copy){margin-block:12px;max-width:none}
html[lang|="ar"] main :is(td,dd)[dir="ltr"]{unicode-bidi:isolate}
