.ledger { width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; padding: 96px 0 160px; display: grid; gap: var(--s-7); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
.stat .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-display); }
.stat .v { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .s { font-size: var(--t-xs); color: var(--ink-soft); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.row-head h2 { font-size: var(--t-xl); }
.row-head b { color: var(--accent); font-variant-numeric: tabular-nums; }
code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search] { min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; width: min(100%, 320px); }
.filters label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: var(--ink-soft); font-size: var(--t-sm); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-display); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; user-select: none; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in oklab, var(--ink) 4%, transparent); }
td.pair b { color: var(--ink); } td.pair .t { color: var(--accent); font-weight: 700; }
td.empty { color: var(--ink-soft); text-align: center; padding: 28px; }
.venue { font-size: 11px; color: var(--ink-soft); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .ledger { padding-top: 72px; } }

/* grid children must be allowed to shrink, or the tables widen the page on phones */
.ledger { grid-template-columns: minmax(0, 1fr); }
.ledger > * { min-width: 0; }
.stats > * { min-width: 0; }
.tablewrap { max-width: 100%; }
@media (max-width: 560px) { .stat .v { font-size: 1.5rem; } }

.ledger .docs-head { margin-bottom: 0; }
@media (max-width: 560px) { .ledger { gap: var(--s-6); } }
