/* HK adaptive contrast: scoped to tables and analytical panels. */
:root{--hk-table-bg:#ffffff;--hk-table-alt:#f1f5f9;--hk-table-text:#172033;--hk-table-head:#e2e8f0;--hk-table-border:#cbd5e1}
@media(prefers-color-scheme:dark){:root{--hk-table-bg:#172033;--hk-table-alt:#202d41;--hk-table-text:#f8fafc;--hk-table-head:#28374c;--hk-table-border:#475569}}
html[data-theme="dark"],body[data-theme="dark"],html.dark,body.dark{--hk-table-bg:#172033;--hk-table-alt:#202d41;--hk-table-text:#f8fafc;--hk-table-head:#28374c;--hk-table-border:#475569}
html[data-theme="light"],body[data-theme="light"],html.light,body.light{--hk-table-bg:#fff;--hk-table-alt:#f1f5f9;--hk-table-text:#172033;--hk-table-head:#e2e8f0;--hk-table-border:#cbd5e1}
.tablewrap table,.cmp table,.analysis table,.features table{color:var(--hk-table-text)!important;background:var(--hk-table-bg)}
.tablewrap table td,.tablewrap table th,.cmp table td,.cmp table th,.analysis table td,.analysis table th,.features table td,.features table th{color:var(--hk-table-text);border-color:var(--hk-table-border);background:var(--hk-table-bg)}
.tablewrap table tbody tr:nth-child(even) td,.cmp table tbody tr:nth-child(even) td,.analysis table tbody tr:nth-child(even) td{background:var(--hk-table-alt)}
.tablewrap table thead th,.cmp table thead th,.analysis table thead th{background:var(--hk-table-head);color:var(--hk-table-text)}
.paitodigit{color:#111827!important} .paitodigit[style*="background"]{text-shadow:none}
/* Preserve existing custom painted paito backgrounds and prize highlights. */
