/* Original featurematrix.html checkbox selectors, moved out of inline style for CSP. */
.pg-page:has(#featurematrix_version_filter) table.matrix tr th, .pg-page:has(#featurematrix_version_filter) table.matrix tr td { display: none; }
.pg-page:has(#featurematrix_version_filter) table.matrix tr th:nth-child(1), .pg-page:has(#featurematrix_version_filter) table.matrix tr td:nth-child(1) { display: table-cell; }
body:has(input#toggle_20:checked) .pg-page table.matrix th:nth-child(2), body:has(input#toggle_20:checked) .pg-page table.matrix td:nth-child(2) { display: table-cell; }
body:has(input#toggle_19:checked) .pg-page table.matrix th:nth-child(3), body:has(input#toggle_19:checked) .pg-page table.matrix td:nth-child(3) { display: table-cell; }
body:has(input#toggle_18:checked) .pg-page table.matrix th:nth-child(4), body:has(input#toggle_18:checked) .pg-page table.matrix td:nth-child(4) { display: table-cell; }
body:has(input#toggle_17:checked) .pg-page table.matrix th:nth-child(5), body:has(input#toggle_17:checked) .pg-page table.matrix td:nth-child(5) { display: table-cell; }
body:has(input#toggle_16:checked) .pg-page table.matrix th:nth-child(6), body:has(input#toggle_16:checked) .pg-page table.matrix td:nth-child(6) { display: table-cell; }
body:has(input#toggle_15:checked) .pg-page table.matrix th:nth-child(7), body:has(input#toggle_15:checked) .pg-page table.matrix td:nth-child(7) { display: table-cell; }
body:has(input#toggle_14:checked) .pg-page table.matrix th:nth-child(8), body:has(input#toggle_14:checked) .pg-page table.matrix td:nth-child(8) { display: table-cell; }
body:has(input#toggle_13:checked) .pg-page table.matrix th:nth-child(9), body:has(input#toggle_13:checked) .pg-page table.matrix td:nth-child(9) { display: table-cell; }
body:has(input#toggle_12:checked) .pg-page table.matrix th:nth-child(10), body:has(input#toggle_12:checked) .pg-page table.matrix td:nth-child(10) { display: table-cell; }
body:has(input#toggle_11:checked) .pg-page table.matrix th:nth-child(11), body:has(input#toggle_11:checked) .pg-page table.matrix td:nth-child(11) { display: table-cell; }
body:has(input#toggle_10:checked) .pg-page table.matrix th:nth-child(12), body:has(input#toggle_10:checked) .pg-page table.matrix td:nth-child(12) { display: table-cell; }
body:has(input#toggle_96:checked) .pg-page table.matrix th:nth-child(13), body:has(input#toggle_96:checked) .pg-page table.matrix td:nth-child(13) { display: table-cell; }
body:has(input#toggle_95:checked) .pg-page table.matrix th:nth-child(14), body:has(input#toggle_95:checked) .pg-page table.matrix td:nth-child(14) { display: table-cell; }
body:has(input#toggle_94:checked) .pg-page table.matrix th:nth-child(15), body:has(input#toggle_94:checked) .pg-page table.matrix td:nth-child(15) { display: table-cell; }
body:has(input#toggle_93:checked) .pg-page table.matrix th:nth-child(16), body:has(input#toggle_93:checked) .pg-page table.matrix td:nth-child(16) { display: table-cell; }
body:has(input#toggle_92:checked) .pg-page table.matrix th:nth-child(17), body:has(input#toggle_92:checked) .pg-page table.matrix td:nth-child(17) { display: table-cell; }
body:has(input#toggle_91:checked) .pg-page table.matrix th:nth-child(18), body:has(input#toggle_91:checked) .pg-page table.matrix td:nth-child(18) { display: table-cell; }
body:has(input#toggle_90:checked) .pg-page table.matrix th:nth-child(19), body:has(input#toggle_90:checked) .pg-page table.matrix td:nth-child(19) { display: table-cell; }
body:has(input#toggle_84:checked) .pg-page table.matrix th:nth-child(20), body:has(input#toggle_84:checked) .pg-page table.matrix td:nth-child(20) { display: table-cell; }
body:has(input#toggle_83:checked) .pg-page table.matrix th:nth-child(21), body:has(input#toggle_83:checked) .pg-page table.matrix td:nth-child(21) { display: table-cell; }
body:has(input#toggle_82:checked) .pg-page table.matrix th:nth-child(22), body:has(input#toggle_82:checked) .pg-page table.matrix td:nth-child(22) { display: table-cell; }
body:has(input#toggle_81:checked) .pg-page table.matrix th:nth-child(23), body:has(input#toggle_81:checked) .pg-page table.matrix td:nth-child(23) { display: table-cell; }
body:has(input#toggle_80:checked) .pg-page table.matrix th:nth-child(24), body:has(input#toggle_80:checked) .pg-page table.matrix td:nth-child(24) { display: table-cell; }
body:has(input#toggle_74:checked) .pg-page table.matrix th:nth-child(25), body:has(input#toggle_74:checked) .pg-page table.matrix td:nth-child(25) { display: table-cell; }
/* The original palette is unchanged; generated status labels follow the explicit page locale. */
html[lang="zh-Hans"] .pg-page .table.matrix td.fm_yes::before { content: "支持"; }
html[lang="zh-Hans"] .pg-page .table.matrix td.fm_no::before { content: "不支持"; }
html[lang="zh-Hans"] .pg-page .table.matrix td.fm_obs::before { content: "已废弃"; }
.fm-cell-link { position: absolute; inset: 0; }
.pg-page .table.matrix td:has(.fm-cell-link) { position: relative; }
/* Keep accessible labels inside the original horizontally scrolling matrix. */
.ref-shell .table.matrix td { position: relative; }

/* Original page_layout_diagram.html sizing, moved out of inline style for CSP. */
.ref-shell .topic-layout svg { width: 100%; height: auto; min-width: 300px; }
/* Retained Chinese summaries contain unbroken PostgreSQL identifiers. */
.ref-shell .ref-entries p { overflow-wrap: anywhere; }

/* The Wiki sits on the same warm canvas as Docs, Extensions and Ecosystem; the
   inherited reference theme painted the whole page white. Cards and tables
   keep the white surface, so they read as raised on the canvas. */
.reference-site { background: var(--pg-canvas); }
.ref-shell .ref-sidebar { background: transparent; }
