/* Shared editorial table contract, loaded only on KB and legal consumers. */
:is(.wab-knowledge-refresh,.wab-legal-page) :is(.wp-block-table,.content-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border-radius:10px;margin:28px 0;scrollbar-gutter:stable}
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) table{width:100%;max-width:100%;border-collapse:collapse;border:0;font:400 16px/1.5 Effra,sans-serif;color:#101117;margin:24px 0;table-layout:auto}
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) :is(th,td){padding:16px 20px;border:0;border-bottom:1px solid #e6e6e2;text-align:left;vertical-align:top;overflow-wrap:anywhere}
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) th{background:#0056dc;color:#fff;font-weight:700}
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) tbody tr:nth-child(even){background:#f5f5f2}
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) tbody tr:nth-child(odd){background:#fff}
@media(max-width:767px){body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) :is(th,td){padding:12px;font-size:15px}body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) table{font-size:15px}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table{display:block;overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain}}

/* Preserve complete words and rowspans; scroll only the table viewport. */
body.wab-local-ui-contract :is(.wab-knowledge-refresh,.wab-legal-page) :is(th,td){overflow-wrap:normal;word-break:normal;hyphens:none}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll table{min-width:900px;table-layout:fixed}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(1){width:15%}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(2){width:29%}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(3){width:17%}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(4){width:19%}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(5){width:20%}
body.wab-local-ui-contract .content-table-scroll:focus-visible{outline:2px solid #0056dc;outline-offset:4px}

/* Legal copy remains narrow; its table alone uses the existing site content width. */
@media(min-width:901px){body.wab-local-ui-contract .wab-legal-page :is(.content-table-scroll,.wp-block-table:has(>.content-table-scroll)){--wab-table-wide:min(1200px,calc(100vw - 80px));width:var(--wab-table-wide);max-width:none;margin-left:calc((100% - var(--wab-table-wide))/2);margin-right:0}body.wab-local-ui-contract .wab-legal-page .content-table-scroll table{min-width:0;width:100%}body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(2){width:27%}body.wab-local-ui-contract .wab-legal-page .content-table-scroll th:nth-child(5){width:22%}}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll{margin-top:20px;margin-bottom:20px}
body.wab-local-ui-contract .wab-legal-page .wp-block-table:has(>.content-table-scroll){margin-block:20px}
body.wab-local-ui-contract .wab-legal-page .wp-block-table>.content-table-scroll{width:100%;max-width:100%;margin:0}
body.wab-local-ui-contract .wab-legal-page .content-table-scroll table{margin:0}
body.wab-local-ui-contract :is(.wab-legal-page,.wab-knowledge-refresh) table thead,body.wab-local-ui-contract :is(.wab-legal-page,.wab-knowledge-refresh) table thead th{border:0;box-shadow:none}

@media(max-width:767px){body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table{table-layout:auto}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table :is(thead,tbody){min-width:560px}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table tr{min-width:560px}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table :is(th,td){min-width:220px}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content table code{white-space:nowrap;word-break:normal;overflow-wrap:normal}}

@media(max-width:767px){body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content .content-table-scroll table{display:table;width:100%;min-width:560px;max-width:none;overflow:visible}body.wab-local-ui-contract .wab-knowledge-refresh .knowledge-single-content .content-table-scroll{width:100%;max-width:100%;overflow-x:auto}}
