/* IM_HELP_BODY_SCROLL_ONLY_V2_START
   Corrige bloqueo de scroll en ayuda sin tocar sidebar, grid ni cards.
*/

html:has(body.im-scams-page),
html:has(body.im-security-page),
html:has(body.im-help-buy-sell),
html:has(body.im-help-article),
body.im-scams-page,
body.im-security-page,
body.im-help-buy-sell,
body.im-help-article {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  touch-action: pan-y !important;
}

/* Si algún script dejó el body bloqueado sin modal real abierto */
body.im-scams-page:not(.modal-open):not(.drawer-open):not(.im-modal-open),
body.im-security-page:not(.modal-open):not(.drawer-open):not(.im-modal-open),
body.im-help-buy-sell:not(.modal-open):not(.drawer-open):not(.im-modal-open),
body.im-help-article:not(.modal-open):not(.drawer-open):not(.im-modal-open) {
  overflow-y: auto !important;
}

/* Compensación inferior para que el footer fijo no tape el final.
   No toca estructura central ni sidebar. */
body.im-scams-page main,
body.im-security-page main,
body.im-help-buy-sell main,
body.im-help-article main {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
}

/* IM_HELP_BODY_SCROLL_ONLY_V2_END */
