/* KUM charts (static/charts.js draws them; viewer/charts.py gathers the numbers) */
.kc { position: relative; margin: 8px 0 28px; padding: 0; min-width: 0; max-width: 100%; }
.kc-title { font-size: 17px; color: var(--ink); margin: 0 0 2px; }
.kc-sub { font-size: 14px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.md .kc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 !important; margin: 0 0 6px !important;
  font-size: 14px; color: var(--text); }
.kc-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.kc-legend li::before { content: none !important; }
.kc-sw { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kc-plot { position: relative; width: 100%; touch-action: manipulation; }
.kc-plot { min-width: 0; }
/* drawn at the box's width; if the box shrinks before the redraw, scale down instead of pushing the page wider */
.kc-plot svg { display: block; max-width: 100%; height: auto; font-family: var(--font); }
.kc-axis text { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.kc-grid { stroke: #efede8; stroke-width: 1; }
.kc-base { stroke: var(--field); stroke-width: 1; }
.kc-tick { stroke: var(--field); stroke-width: 1; }
.kc-mark { stroke: var(--ink); stroke-width: 1; }
.kc-mark-label { font-size: 12px; fill: var(--ink); }
.kc-dot { stroke: var(--bg); stroke-width: 2; fill-opacity: .9; }
.kc-hot { fill-opacity: 1; pointer-events: none; }
.kc-bar { fill: #2a78d6; }
.kc-fa .kc-bar { fill: #9a9aa0; }
.kc-zone { fill: #f6f5f1; }
.kc-zone-hi { fill: #fdeee7; }
.kc-zone-label { font-size: 12px; fill: var(--muted); }
.kc-zone-label.kc-small { font-size: 11px; }
.kc-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.kc-note a { color: inherit; }
.kc-tip { position: absolute; z-index: 30; width: max-content; max-width: min(320px, 100%); padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.10);
  font-size: 14px; line-height: 1.4; color: var(--text); pointer-events: none; }
.kc-tip.pinned { pointer-events: auto; }
.kc-tip p { margin: 0 0 4px; }
.kc-tip p:last-child { margin: 0; }
.kc-tip-h { color: var(--ink); font-variant-numeric: tabular-nums; }
.kc-tip-s, .kc-tip-m { color: var(--muted); }
.kc-tip a { color: var(--ink); }
.kc noscript p { font-size: 14px; color: var(--muted); }

/* the threshold page */
.md .prag-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 4px 0 18px; padding: 0; list-style: none; }
.prag-stats li { margin: 0; }
.prag-stats li::before { content: none !important; }
.prag-stats b { display: block; font-size: 30px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.prag-stats span { font-size: 14px; color: var(--muted); }
.kc-pick-wrap { margin: 0 0 22px; }
.kc-pick-wrap label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.kc-pick { width: 100%; max-width: 640px; font: inherit; font-size: 17px; padding: 6px 0 8px; border: 0;
  border-bottom: 1px solid var(--field); background: transparent; color: var(--ink); border-radius: 0; }
.prag-flag { display: inline-block; font-size: 14px; color: var(--ink); background: #fdeee7; border-radius: 4px; padding: 1px 6px; }
.prag-rows td:last-child { white-space: nowrap; }
.prag-rows td.num { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }

@media print {
  .kc-tip { display: none !important; }
  .kc-pick-wrap { display: none; }
}
