/* AI Energy Tracker */
.aic-table th[scope="row"] { text-align: left; font-weight: 600; }
.aic-table td { white-space: nowrap; }
.aic-muted { color: var(--text-muted); font-weight: 400; font-size: var(--fs-sm); }
.aic-facts { margin: 0.5rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.aic-facts li { margin-bottom: 0.4rem; }
.dc-facts { margin: 0.5rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.dc-facts li { margin-bottom: 0.4rem; }
/* Part heading for the merged data-centre sections */
.aic-part { margin-top: var(--space-6, 2rem); }
.aic-part-title { margin: 0 0 var(--space-2, 0.5rem); font-size: var(--fs-xl, 1.5rem); }
.aic-table td.aic-wrap { white-space: normal; min-width: 12rem; line-height: 1.4; }
.aic-query-table td.aic-wrap:last-child { min-width: 16rem; max-width: 28rem; }
.aic-table .nx-chip { margin-top: 0.25rem; }
.aic-part-badge { margin: 0.25rem 0 0; font-size: var(--fs-sm, 0.875rem); }
/* The shared green chip is 4.49:1 on the light card; a darker step of the same hue passes. */
[data-theme="light"] .aic-table .nx-chip.is-green { color: #166534; }
/* Wide fact tables become stacked cards on phones (the first column is the heading). */
@media (max-width: 640px) {
    .aic-cards-on-phone, .aic-cards-on-phone tbody, .aic-cards-on-phone tr, .aic-cards-on-phone th, .aic-cards-on-phone td { display: block; width: auto; }
    .aic-cards-on-phone thead { display: none; }
    .aic-cards-on-phone tr { padding: var(--space-2, 0.5rem) 0; border-bottom: 1px solid var(--border-subtle); }
    .aic-cards-on-phone th[scope="row"] { padding: 0 0 0.25rem; border: 0; }
    .aic-cards-on-phone td { white-space: normal; min-width: 0; max-width: none; padding: 0.15rem 0; border: 0; line-height: 1.45; }
    .aic-cards-on-phone td::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: var(--fs-xs, 0.75rem); text-transform: uppercase; letter-spacing: 0.04em; }
}
