/* NTA i18n extra: script fallbacks for new languages (2026-11-27). Loaded only on new-language pages. */
html:lang(ja), html:lang(ja) body { font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html:lang(ar), html:lang(ar) body { font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, Montserrat, sans-serif; }
html:lang(ar) body { direction: rtl; }
html:lang(ar) .elementor-widget-text-editor, html:lang(ar) .elementor-heading-title { text-align: start; }
html:lang(ar) .nta-lang-menu { left: auto; right: 0; }
html:lang(ru) body, html:lang(bg) body, html:lang(fi) body, html:lang(pl) body, html:lang(fr) body, html:lang(es) body, html:lang(pt) body { hyphens: manual; }

/* slider captions: keep text layers inside the viewport on small screens (all new languages) */
:is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-layer { max-width: calc(100vw - 40px) !important; }
:is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-layer, :is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-item-content, :is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-layer-content, :is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-text p { width: auto !important; max-width: calc(100vw - 40px) !important; box-sizing: border-box; }

/* ja: contact page headings are wider in Japanese; keep them inside 430px phones */
html:lang(ja) .nta-ct .nta-ct-title, html:lang(ja) .nta-ct .nta-ct-hero .nta-ct-title { font-size: clamp(24px, 6.4vw, 44px) !important; line-height: 1.3 !important; letter-spacing: 0 !important; }
html:lang(ja) .nta-ct .nta-ct-offices .nta-ct-h2 { font-size: clamp(20px, 5vw, 30px) !important; line-height: 1.4 !important; letter-spacing: 0 !important; overflow-wrap: anywhere; }
html:lang(ja) .nta-ct .nta-ct-wrap, html:lang(ja) .nta-ct .nta-ct-hero .nta-ct-wrap { max-width: 100% !important; box-sizing: border-box !important; padding-left: 16px !important; padding-right: 16px !important; margin-left: 0 !important; margin-right: 0 !important; }
html:lang(ja) .nta-ct .nta-ct-hero .nta-ct-title, html:lang(ja) .nta-ct .nta-ct-hero .nta-ct-sub { text-align: center !important; }
html:lang(ja) .nta-ct .nta-ct-sub, html:lang(ja) .nta-ct-hero .nta-ct-sub { max-width: 100% !important; }
/* ar: hidden skip link sits at left:-9999px and inflates RTL scroll width (horizontal overflow). Keep it visually hidden but in place. */
html:lang(ar) .hfe-skip-link:not(:focus) { left: 0 !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 575px) {
  html:lang(ja) body .nta-ct .nta-ct-hero h1.nta-ct-title { font-size: 26px !important; line-height: 1.3 !important; }
  html:lang(ja) body .nta-ct .nta-ct-offices h2.nta-ct-h2 { font-size: 21px !important; line-height: 1.4 !important; }
}
@media (max-width: 575px) {
  html:lang(ja) body .nta-ct .nta-ct-hero p.nta-ct-sub { max-width: calc(100vw - 48px) !important; margin-left: auto !important; margin-right: auto !important; padding: 0 !important; }
}
html:lang(pt) div#n2-ss-2 .n2-ss-layer, html:lang(pt) div#n2-ss-2 .n2-ss-item-content, html:lang(pt) div#n2-ss-2 .n2-ss-layer-content, html:lang(pt) div#n2-ss-2 .n2-ss-text p { width: auto !important; max-width: calc(100vw - 40px) !important; box-sizing: border-box; }
@media (max-width: 600px) { html:lang(pt) #n2-ss-2 .n2-ss-item-content, html:lang(pt) #n2-ss-2 .n2-ss-layer[data-sstype="layer"] { width: 340px !important; max-width: 340px !important; } }
/* pl: headings keep sentence case (site kit forces capitalize) */
html:lang(pl) h1, html:lang(pl) h2, html:lang(pl) h3, html:lang(pl) h4, html:lang(pl) .elementor-heading-title, html:lang(pl) .elementor-button-text { text-transform: none !important; }
html:lang(pl) .elementor-widget-text-editor, html:lang(pl) .elementor-widget-text-editor p { overflow-wrap: break-word; }
@media (max-width: 767px) {
  html:lang(pl) .elementor-popup-modal .dialog-widget-content { width: calc(100vw - 32px) !important; max-width: calc(100vw - 32px) !important; box-sizing: border-box; }
  html:lang(pl) .elementor-popup-modal .elementor-heading-title { font-size: 24px !important; line-height: 1.3 !important; }
  html:lang(pl) .elementor-popup-modal h2, html:lang(pl) .elementor-popup-modal .elementor-heading-title { font-size: 22px !important; line-height: 1.25 !important; overflow-wrap: anywhere !important; white-space: normal !important; }
  html:lang(pl) .elementor-popup-modal .elementor-widget-text-editor { overflow-wrap: anywhere; }
}

/* Mobile hero slider (home, #n2-ss-2): the slide is a fixed 500px design; scale the whole slider to the 430px phone width so subtitle lines stay inside the screen (all new languages). */
@media (max-width: 767px) {
  :is(html:lang(es),html:lang(fr),html:lang(fi),html:lang(ja),html:lang(ar),html:lang(ru),html:lang(bg),html:lang(pl),html:lang(pt)) div#n2-ss-2 .n2-ss-slider-wrapper-inside { zoom: 0.86 !important; }
}

/* Distributor page, mobile: the process title is nowrap in the base kit; long translated titles must wrap (new languages). */
@media (max-width: 767px) {
  :is(html:lang(bg),html:lang(es),html:lang(fi),html:lang(fr),html:lang(ru),html:lang(ja),html:lang(ar),html:lang(pl),html:lang(pt)) .nta-dist-process-title { white-space: normal !important; font-size: min(26px, 6.2vw) !important; line-height: 1.2 !important; }
}
