/* Counterra Wide Text (ctrwt). All pages. Parent theme untouched. Phones (<782px) unchanged.
   Builds on counterra-fullwidth (Astra full-width layout). Supersedes counterra-home-wide (same home rules included).
   Undo = deactivate plugin. */
@media (min-width:782px){
  /* 1) Remove the 80ch prose cap from counterra-fullwidth and the narrow caps on intro text in Counterra plugins */
  :root{--fw-prose:none}
  html body .site-content .entry-content :is(p,ul,ol,blockquote):where(:not(form *)){max-width:none!important}
  html body .site-content .entry-content[data-ast-blocks-layout] > p,
  html body .site-content .entry-content .ctr-kgi-index > p{margin-right:0!important}
  /* 2) Text wrappers that were boxed narrow (material guides, resources, cabinetry notes) */
  html body .site-content :is(.ctr-mat,.ctr-wrap,.cc-note){max-width:none!important}
  /* 3) Home: align the Kitchen Project Gallery with the intro text (was counterra-home-wide) */
  html body.home .site-content .entry-content .ctr-kgi-index{padding-left:0!important;padding-right:0!important}
}
/* Home: keep the fluid home type growing past 1920 (was counterra-home-wide) */
@media (min-width:1921px){
  html body.home{--ctrhome-base:clamp(19.2px, calc(7.8px + 0.594vw), 26px)}
  html body.home .site-content .entry-content :is(p,li){line-height:1.7}
}
/* Large monitors: body text keeps growing past 1920px (about +3px at 2560, never above 26px).
   Zero-specificity rule, so any paragraph or list that already has its own size keeps it. */
@media (min-width:1921px){
  :where(.entry-content,.elementor,.site-main) :where(p,li):where(:not(form *,nav *,table *,li li,li p,.menu *)){
    font-size:max(1em,min(26px,calc(1em + (100vw - 1920px) * 0.005)))}
}
