/* FIX2861: Resource topic pages only; mobile-only reader width and CLI wrapping. */
@media screen and (max-width:700px) {
  body.resource-topic-page .resource-topic-reader > .wrap.resource-topic-layout {
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin-inline:12px!important;
    padding-inline:0!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.resource-topic-page .resource-topic-reader .resource-topic-main {
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  body.resource-topic-page .resource-topic-reader .resource-topic-body.reader-content,
  body.resource-topic-page .resource-topic-reader .resource-public-description {
    width:100%!important;max-width:100%!important;min-width:0!important;
    box-sizing:border-box!important;padding-inline:0!important;
  }
  body.resource-topic-page .resource-topic-reader .resource-topic-body.reader-content :is(pre,pre code,pre span,.nga2857-cli,.nga2857-cli pre,.nga2857-cli code) {
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
    white-space:pre-wrap!important;overflow-wrap:anywhere!important;
    word-break:break-word!important;overflow-x:hidden!important;
    tab-size:4;
  }
  body.resource-topic-page .resource-topic-reader .resource-topic-body.reader-content pre {
    width:100%!important;overflow-x:hidden!important;
  }
}
