/* RH v7.8: internal pages only, mobile 2026. Controls the ENTIRE width chain, not inner cards only. */
@media (max-width: 782px) {
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) {
    --rh78-gutter: 14px;
    overflow-x: clip;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) :is(#page,#content,#primary,#main,.site-content,.site-main,.content-area) {
    display:block!important;
    width:100%!important; max-width:none!important; min-width:0!important;
    margin-left:auto!important; margin-right:auto!important;
    padding-left:0!important; padding-right:0!important;
    float:none!important; box-sizing:border-box!important;
  }
  /* Re-establish one and ONLY one horizontal gutter at the article level. */
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) :is(.entry-header-wrapper,.entry-header,.inside-article,article,.entry-content,article .entry-content) {
    float:none!important; display:block!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    margin-left:0!important; margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-header-wrapper {
    padding:20px var(--rh78-gutter) 3px!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-header {padding:0!important;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .inside-article {padding:0!important;background:transparent!important;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) article .entry-content {
    padding:8px var(--rh78-gutter) 28px!important;
  }
  /* Strip Gutenberg's 2nd/3rd layers of constraints (main culprit). */
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhpd-page,.wp-block-group,.wp-block-group__inner-container,.is-layout-constrained,.wp-block-columns,.wp-block-column) {
    width:100%!important; max-width:100%!important; min-width:0!important;
    margin-left:0!important; margin-right:0!important;
    padding-left:0!important; padding-right:0!important; box-sizing:border-box!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) article .entry-content > :is(p,h2,h3,h4,ul,ol,blockquote,div,section) {
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  }
  /* Correct typographic rhythm and long Russian words. */
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-title {
    font-size:clamp(27px,7vw,34px)!important;line-height:1.16!important;letter-spacing:-.02em!important;
    overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(p,li) {
    font-size:16px!important; line-height:1.55!important; overflow-wrap:normal!important;
    word-break:normal!important;hyphens:none!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content p {margin:0 0 14px!important;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content h2 {
    font-size:23px!important;line-height:1.22!important;margin:22px 0 10px!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content h3 {
    font-size:19px!important;line-height:1.26!important;margin:18px 0 8px!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(ul,ol) {padding-left:23px!important;margin:8px 0 15px!important;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content li {padding-left:0!important;margin-bottom:7px!important;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(img,video,iframe,table) {max-width:100%!important;height:auto;}
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.wp-block-spacer) {height:0!important;min-height:0!important;margin:0!important;}
  /* All centers and contacts: full width readable compact cards. */
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-centers,.rhs-all-centers) {
    width:100%!important;max-width:100%!important;min-width:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
    margin:10px 0 12px!important;padding:0!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-center,.rhs-all-center) {
    display:block!important; width:100%!important; max-width:100%!important;min-width:0!important;
    height:auto!important; min-height:0!important; padding:16px 17px!important;
    margin:0!important;box-sizing:border-box!important;border-radius:14px!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-center,.rhs-all-center) :is(h3,p,a) {
    width:100%!important;max-width:none!important;min-width:0!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-center,.rhs-all-center) h3 {
    font-size:18px!important;line-height:1.27!important;margin:6px 0 8px!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-center,.rhs-all-center) p {
    font-size:15px!important;line-height:1.47!important;margin-bottom:9px!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content .rhpd-help-note {
    width:100%!important;max-width:100%!important;padding:16px!important;
    margin:12px 0 20px!important;border-radius:15px!important;
  }
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content .rhpd-help-note :is(p,h2,h3) {
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
  }
  /* Avoid a huge blank strip before footer. */
  body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .site-footer {margin-top:0!important;}
}
@media(min-width:783px) and (max-width:1100px) {
 body.rhs-v7-approved:not(.home):not(.rhs-v74-news-page) .entry-content :is(.rhs-help-centers,.rhs-all-centers) {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
