/* Allow translated headings to fit their own cards and grid tracks. */
html[lang="en"] :is(h1,h2,h3,h4){white-space:normal!important;overflow-wrap:break-word;word-break:normal;max-width:100%;min-width:0;box-sizing:border-box}
html,body{max-width:100%;overflow-x:clip}
:is(main,header,footer,section,article,nav,aside,div){min-width:0}
:is(h1,h2,h3,h4,p,li,summary,a,button,span){overflow-wrap:anywhere;word-break:normal}
img,video,svg,canvas{max-width:100%}
.footer-payments,.footer-socials,.instagram-float{display:none!important}
body.home-site :is(.home-new-products,.home-story,.home-parchment>.home-ketubot){display:none!important}
body.home-site .home-bottom-ketubot .desktop-parchment-image img{box-sizing:border-box;padding:8px;border:1px solid #d8d0c2;background:#fff;box-shadow:0 3px 12px #392b1710}
html[lang="en"] :is(.home-detail-copy,.tree-copy,.product-info,.desktop-carry-card,.carry-recommendation,.mantle-cluster-heading){min-width:0;box-sizing:border-box}
html[lang="en"] .mantle-benefits,html[lang="en"] .mantle-benefits li{text-align:left!important}
html[lang="en"] .mantle-cluster-heading .mantle-cluster-title{font-size:clamp(22px,5.5vw,38px)!important}
#languageToggle{white-space:nowrap;direction:ltr}

/* Keep every page heading inside its own block without shifting by locale. */
main :is(h1,h2,h3,h4){max-width:100%;min-width:0;box-sizing:border-box;white-space:normal;overflow-wrap:break-word;word-break:normal}
.desktop-mantle-hero-copy{min-width:0;box-sizing:border-box;text-align:center}
.desktop-mantle-hero-copy :is(h1,h2,p){width:100%;max-width:100%;margin-inline:auto;text-align:center!important}
#mantleHeroTitle{white-space:normal!important;overflow-wrap:break-word;word-break:normal;text-wrap:balance}
html[lang="en"] .desktop-mantle-hero-copy{direction:ltr;text-align:center!important}

/* Give English descriptions an explicit LTR paragraph context so final
   punctuation stays at the visual end of the sentence. */
html[lang="en"] :is(p,figcaption,[class*="description"],[class*="-copy"]>p){
 direction:ltr!important;
 unicode-bidi:plaintext;
}

/* English homepage headings stay optically centered in every feature block. */
html[lang="en"] body.home-site :is(
 .desktop-hero-copy,
 .showcase-top-heading,
 .showcase-copy,
 .home-hero-copy,
 .desktop-home-feature-copy,
 .bespoke-copy,
 .desktop-manuscript-copy,
 .desktop-static-arks-copy,
 .desktop-parchment-art,
 .home-detail-copy,
 .mantle-cluster-heading,
 .home-section-heading,
 .home-new-products,
 .home-story
) :is(h1,h2){
 text-align:center!important;
 margin-inline:auto!important;
}

/* Mobile translations can be considerably longer than their Hebrew source.
   Keep every content block shrinkable and allow copy to wrap inside it. */
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:clip}
 main,main *{box-sizing:border-box;min-width:0}
 main :is(h1,h2,h3,h4,p,li,summary,a,button,span){
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
 }
 html[lang="en"] main :is(h1,h2,h3,h4,.mantle-cluster-title,#photoTitle,#photoTitle span,.product-block .photo-heading h2 span,.carry-fit-intro h2){
  white-space:normal!important;
 }
 html[lang="en"] main :is(p,li,.article-card-copy,.kg-card-copy,.home-detail-copy,.tree-copy,.product-info,.carry-product-description,.carry-recommendation,.desktop-carry-card){
  width:auto;
  max-width:100%;
 }
}
