/* Scoped to article content. Native tables remain available without JavaScript. */
#article-body figure.wp-block-table:not(.is-style-rentilot-diagnostic) { max-width: 100%; overflow: visible; }
#article-body table:where(:not([role="presentation"]):not([role="none"]):not(.rle-table-native)) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
#article-body table :is(th, td) { overflow-wrap: break-word; word-break: normal; hyphens: none; }
#article-body table:where(:not(.rle-table-native):not([role="presentation"]):not([role="none"])) :is(th, td) { min-width: 8rem; }
#article-body .rle-table { min-width: 0; max-width: 100%; margin-block: 1.5rem; color: #08272b; }
#article-body .rle-table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 8px; }
#article-body .rle-table-tools[hidden] { display: none; }
#article-body .rle-table-hint { color: #526657; font-size: 13px; line-height: 1.4; }
#article-body .rle-table-controls { display: flex; gap: 4px; flex-shrink: 0; }
#article-body .rle-table-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c4d2c3;
    border-radius: 50%;
    background: #fff;
    color: #164d43;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}
#article-body .rle-table-control[aria-disabled="true"] { opacity: .4; cursor: default; }
#article-body .rle-table-control:focus-visible,
#article-body .rle-table-viewport:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
#article-body .rle-table-viewport {
    max-width: 100%;
    overflow: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #819d91 #eef2e9;
    border-block: 1px solid #dce3da;
}
#article-body table.rle-table-native {
    display: table;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    overflow: visible;
    font-size: inherit;
    line-height: 1.55;
}
#article-body table.rle-table-native :is(th, td) { min-width: var(--rle-cell-min, 0px); padding: 14px 16px; vertical-align: top; border: 0; border-block-end: 1px solid #dce3da; }
#article-body table.rle-table-native tr:last-child > :is(th, td) { border-block-end: 0; }
#article-body table.rle-table-native thead { background: #eef2e9; }
#article-body table.rle-table-native thead th { font-weight: 600; }
#article-body table.rle-table-native .rle-table-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
#article-body .has-sticky-labels table.rle-table-native tr > :first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: #f7f8f2; }
#article-body .has-sticky-labels table.rle-table-native thead tr > :first-child { background: #eef2e9; z-index: 2; }
#article-body .has-sticky-labels.is-scrolled table.rle-table-native tr > :first-child { box-shadow: 3px 0 5px -3px #819d91; }
#article-body .is-overflowing.has-more .rle-table-viewport { border-inline-end: 2px solid #819d91; }
/* Existing diagnostic blocks own their narrow-container layout. */
#article-body .is-style-rentilot-diagnostic table { display: table; overflow: visible; }
#article-body .is-style-rentilot-diagnostic :is(th, td) { min-width: 0; }
#article-body table table { display: table; max-width: none; overflow: visible; }
@container rentilot-diagnostic (max-width: 520px) {
    #article-body .is-style-rentilot-diagnostic table { display: block; }
}
@media print {
    #article-body .rle-table-tools { display: none; }
    #article-body .rle-table-viewport { overflow: visible; border: 0; }
    #article-body table { display: table; width: 100%; max-width: none; overflow: visible; table-layout: fixed; font-size: 10pt; }
    #article-body table :is(th, td) { min-width: 0; }
    #article-body table.rle-table-native :is(th, td) { min-width: 0; padding: 6pt; overflow-wrap: anywhere; }
    #article-body table.rle-table-native .rle-table-number { white-space: normal; }
    #article-body .has-sticky-labels table.rle-table-native tr > :first-child { position: static; box-shadow: none; }
}
