/* EZG: czytelnosc prozy we wpisach, 2026-11-28. */
:is(
  body.single-post .elementor-widget-theme-post-content > p,
  body.single-post .elementor-widget-theme-post-content > .elementor-widget-container > p,
  body.single-post .elementor-widget-theme-post-content > :is(.ezg-article,.ezg-art,.ewg-article,article) > p,
  body.single-post .elementor-widget-theme-post-content > .wp-block-group > p,
  body.single-post .elementor-widget-theme-post-content > .wp-block-group > .wp-block-group__inner-container > p,
  body.single-post .elementor-widget-theme-post-content :is(.elementor-widget-html,.elementor-widget-text-editor) > article > p,
  body.single-post .elementor-widget-theme-post-content :is(.elementor-widget-html,.elementor-widget-text-editor) > article > section > p,
  body.single-post .elementor-widget-theme-post-content .ezg-simple :is(.ezg-simple__wrap,.ezg-simple__wide) > p,
  body.single-post .elementor-widget-theme-post-content .ezg-ms-article > .ezg-ms-section > p
):not([style*="max-width" i],[style*="max-inline-size" i],[class*="caption"],[class*="cta"],.has-text-align-center,.has-text-align-right):not(:has(img,button,input,iframe,video,svg,.elementor-button,.wp-block-button__link)),
body.single-post.postid-3662 .elementor-widget-theme-post-content > section > p,
body.single-post.postid-2544 .elementor-widget-theme-post-content > .body-copy > p,
body.single-post.postid-4718 .elementor-widget-theme-post-content > article > section > div > p,
body.single-post.postid-4718 .elementor-widget-theme-post-content > article > section > p {
  max-inline-size: min(100%, 65ch, 38rem);
  overflow-wrap: anywhere;
}

/* Niestandardowe uklady artykulow; obejmuje tylko tekst, nie komponenty. */
body.single-post.postid-2544 .elementor-widget-theme-post-content .article-wrap > .body-copy > p,
body.single-post.postid-4150 .elementor-widget-theme-post-content .ezg-ms-content > .ezg-ms-section > p,
body.single-post.postid-4316 .elementor-widget-theme-post-content #ezg-fv-poznan-2026 > p,
body.single-post.postid-4316 .elementor-widget-theme-post-content #ezg-fv-poznan-2026 > section > p,
body.single-post.postid-4718 .elementor-widget-theme-post-content > article > header > div > p {
  max-inline-size: min(100%, 65ch, 38rem);
  overflow-wrap: anywhere;
}

/* 4316: porownania przewijane wewnatrz tabeli, bez obcinania przez szablon. */
@media (max-width: 767px) {
  body.single-post.postid-4316 .elementor-widget-theme-post-content #ezg-fv-poznan-2026 > table {
    display: block;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-x: auto;
  }
  body.single-post.postid-4316 .elementor-widget-theme-post-content #ezg-fv-poznan-2026 > table :is(td, th) {
    min-inline-size: 11rem;
  }
}
