/* Column chart (js/columns.js). Mark color #D9560A passed the palette validator against the
   light glass surface (contrast >= 3:1); every chart also ships a table view. */
.col-chart { position: relative; padding: 8px 4px 0 40px; }
.col-plot { position: relative; height: 180px; }
.col-grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink-4); }
.col-grid span {
    position: absolute; right: calc(100% + 6px); top: -0.6em;
    font-size: .7rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.col-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.col-bar { width: 100%; max-width: 24px; background: #D9560A; border-radius: 4px 4px 0 0; transition: filter .12s; }
.col-slot.is-hot .col-bar, .col-slot:focus-visible .col-bar { filter: brightness(1.15); }
.col-slot:focus-visible { box-shadow: inset 0 0 0 2px var(--ink-3); border-radius: 4px; }
.col-axis { display: flex; gap: 2px; margin-top: 6px; }
.col-axis span { flex: 1 1 0; font-size: .7rem; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: visible; }
.col-tip {
    position: absolute; top: 0; transform: translate(-50%, -100%);
    background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 10px;
    font-size: .8rem; display: grid; gap: 1px; pointer-events: none; white-space: nowrap; z-index: 2;
}
.col-tip strong { font-variant-numeric: tabular-nums; }
.col-tip span { opacity: .75; }

.chart-table summary { cursor: pointer; color: var(--ink-3); font-size: .85rem; margin-top: 10px; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.chart-table td, .chart-table th { padding: 4px 6px; border-bottom: 1px solid var(--ink-4); text-align: right; color: var(--ink-2); }
.chart-table td:first-child, .chart-table th:first-child { text-align: left; }
