﻿:root {
    color-scheme: light dark;
    --compare-bg: #fff7e6; 
    --compare-head: #ffedd5; 
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.45;
    margin: 2rem;
}

h1 {
    margin-bottom: .25rem;
}

p.lede {
    color: #555;
    max-width: 100ch;
}

.stat {
    display: grid;
    gap: .25rem;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: .75rem;
    margin: 1rem 0 1.5rem;
    max-width: 860px;
}

    .stat .big {
        font-size: 1.35rem;
        font-weight: 700;
    }

    .stat .muted {
        color: #555;
    }

table {
    border-collapse: collapse;
    margin-top: 1rem;
    width: 100%;
    max-width: 860px;
}

thead th {
    text-align: left;
    font-size: .95rem;
    color: #444;
}

th, td {
    padding: .6rem .7rem;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover td {
    background: rgba(0,0,0,.03);
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

tfoot td {
    font-weight: 700;
}

.small {
    font-size: .92rem;
    color: #444;
    max-width: 100ch;
}

.notes {
    font-size: .92rem;
    color: #444;
    max-width: 100ch;
    margin-top: 1rem;
}

.src a {
    text-decoration: none;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    background: rgba(0,0,0,.06);
    padding: .1rem .3rem;
    border-radius: .3rem;
}

.needs-info {
    color: #b00020;
    font-weight: 600;
}

/* ===== Comparator styling ===== */
/* Shade comparator columns via colgroup */
colgroup.compare col {
    background: var(--compare-bg);
}

/* Ensure comparator header cells are shaded too */
thead th.compare {
    background: var(--compare-head) !important;
}

/* Visual divider before comparator group */
.divider-left {
    border-left: 3px dashed var(--group-rule) !important;
}

/* Optional: slightly italicise comparator values to emphasise "context only" */
td.compare, th.compare {
    font-style: italic;
}

/* Group header row styling */
.grouphead th {
    background: #f0f0f0;
    font-weight: 700;
    text-align: center;
}

