/* Scoped to tables formatted by CAG; no admin/theme-wide table rules. */
pre.cag-code-block {
 background:#2b323c !important; color:#f4f6f8 !important;
 border:0 !important; border-radius:12px !important;
 padding:24px !important; margin:24px 0 !important;
 box-sizing:border-box; max-width:100%; overflow-x:auto;
 font-family:Consolas,Monaco,"Courier New",monospace !important;
 font-size:inherit !important; line-height:1.65 !important;
 white-space:pre !important; text-align:start; tab-size:4;
}
pre.cag-code-block code {
 background:transparent !important; color:inherit !important;
 border:0 !important; padding:0 !important; margin:0 !important;
 font:inherit !important; white-space:inherit !important;
}
@media(max-width:600px) { pre.cag-code-block { padding:16px !important; } }
ol.cag-numbered-list { padding-inline-start:2.5em !important; margin:1em 0 !important; list-style-position:outside !important; }
ol.cag-numbered-list > li { display:list-item !important; padding-inline-start:.25em; margin:.5em 0; }
ol.cag-numbered-list:not([type]) { list-style-type:decimal !important; }
table.cag-article-table { display:block; width:max-content; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:1.25em 0; }
table.cag-article-table th, table.cag-article-table td { padding:12px 16px; text-align:start; vertical-align:top; border-bottom:1px solid #e4e9ef; }
table.cag-article-table tbody tr:nth-child(even) td { background:#f1f5f9; }
/* Override theme/AI cell colors only inside CAG tables. Works for any language. */
table.cag-article-table th,
table.cag-article-table > thead > tr > td,
table.cag-article-table.cag-first-row-heading > tbody:first-of-type > tr:first-child > td,
table.cag-article-table.cag-first-row-heading > tr:first-of-type > td {
 background:var(--cag-table-accent, #444) !important; color:var(--cag-table-contrast, #fff) !important; font-weight:700 !important;
}
