/* Keep wide research data tables inside the article column on small screens. */
.table-wrap,
.research-prose .table-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.research-article {
  grid-template-columns: minmax(0, 1fr) 296px;
}

.research-main,
.research-prose {
  min-width: 0;
  max-width: 100%;
}

.research-prose > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Guide prose tables are unwrapped in source markup; preserve their full data
   while allowing deliberate horizontal scrolling on narrow screens. */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 860px) {
  .research-article {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-prose {
    overflow-x: clip;
  }
}
