/* RTP page only — table containment + mobile overflow fix */
.page-rtp main,
.page-rtp .section,
.page-rtp .container,
.page-rtp .page-layout,
.page-rtp .prose-main,
.page-rtp .prose-main section,
.page-rtp .toc-box,
.page-rtp .rtp-calc,
.page-rtp .content-card,
.page-rtp .faq-list,
.page-rtp .eeat-box,
.page-rtp .stats-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-rtp .table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  contain: inline-size;
  isolation: isolate;
  margin: 1.25rem 0;
}

.page-rtp .table-scroll table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin: 0;
}

body.page-rtp.has-sticky {
  padding-bottom: 120px;
}

.page-rtp .sticky-cta {
  height: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  .page-rtp .container.page-layout.has-toc,
  .page-rtp .prose-main {
    overflow-x: clip;
  }

  .page-rtp .table-scroll th,
  .page-rtp .table-scroll td {
    min-width: 120px;
    padding: 12px 10px;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .page-rtp .table-scroll table {
    min-width: 640px;
    table-layout: auto;
  }

  .page-rtp .rtp-calc label,
  .page-rtp .rtp-calc input,
  .page-rtp .rtp-calc select,
  .page-rtp .rtp-calc .btn {
    width: 100%;
    max-width: 100%;
    display: block;
  }
}
