/* Plansza XII — Cennik krzywdy. Cennik, który nikt nie napisał: rozkłady kwot zasądzanych za krzywdę (skórka atlas.css). */

.canvas [hidden] { display: none !important; }
.small { font-size: var(--t-xs); }

.viewbar {
  position: absolute; left: 24px; right: 24px; top: 12px; z-index: 6;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.view { position: absolute; inset: 0; }
.controls { bottom: 18px; }
.ctrl-hint { font-size: var(--t-xs); color: var(--ink-faint); max-width: 48ch; line-height: 1.35; }

/* wspólne napisy na płótnie */
.canvas .caption { fill: var(--ink-faint); font-family: var(--sans); font-size: 11px; }
.canvas .chart-title { fill: var(--paper); font-family: var(--serif); font-size: 15px; }
.canvas .group-head { fill: var(--paper); font-family: var(--serif); font-size: 16px; }
.canvas .n-head { fill: var(--ink-faint); font-family: var(--sans); font-size: 11px; }

/* ---------- cennik ---------- */
#cennik .row { cursor: pointer; outline: none; }
#cennik .row .bg { fill: transparent; }
#cennik .row:hover .bg, #cennik .row:focus-visible .bg { fill: rgba(20, 26, 38, 0.7); }
#cennik .row.sel .bg { fill: var(--brass-soft); }
#cennik .row .whisk { stroke-width: 1.5; stroke-opacity: 0.7; }
#cennik .row .box { fill-opacity: 0.8; }
#cennik .row .med { stroke: var(--paper); stroke-width: 2; }
#cennik .row.sel .med { stroke: var(--brass); stroke-width: 3; }
#cennik .row.dim { opacity: 0.45; }
#cennik .row .lbl { fill: var(--paper); font-family: var(--serif); font-size: 14px; }
#cennik .row.sel .lbl { fill: var(--brass); }
#cennik .row .val { fill: var(--paper); font-family: var(--sans); font-size: 13px; font-variant-numeric: tabular-nums; }
#cennik .row .n { fill: var(--ink-faint); font-family: var(--sans); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* ---------- w czasie ---------- */
#czas .band { fill-opacity: 0.18; }
#czas .main { fill: none; stroke-width: 2.5; }
#czas .other { fill: none; stroke-width: 1.2; stroke-opacity: 0.35; cursor: pointer; }
#czas .other:hover { stroke-opacity: 1; stroke-width: 2; }
#czas circle { stroke: var(--ground); stroke-width: 1; cursor: default; }
#czas .end-lbl { font-family: var(--serif); font-size: 12px; fill-opacity: 0.7; cursor: pointer; }
#czas .end-lbl.main { font-size: 14px; fill-opacity: 1; }
#czas .end-lbl:hover { fill-opacity: 1; }
#czas .coverage rect { fill: var(--ink-faint); fill-opacity: 0.7; }
#czas .coverage text { fill: var(--ink-faint); font-family: var(--sans); font-size: 11px; }

/* ---------- pojedyncze sprawy ---------- */
#sprawy canvas { position: absolute; inset: 0; }
#sprawy svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sprawy svg g, #sprawy svg text { pointer-events: auto; }
#dotsAxes .lbl { fill: var(--paper); font-family: var(--serif); font-size: 14px; }
#dotsAxes .sel .lbl { fill: var(--brass); }
#dotsAxes .n { fill: var(--ink-faint); font-family: var(--sans); font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* ---------- rekordy ---------- */
.rekordy { left: 24px; right: 24px; overflow-y: auto; padding-right: 8px; }
.rekordy h2 { font-size: var(--t-xl); margin: 0 0 4px; }
.rekordy .lede { color: var(--ink-muted); font-size: var(--t-sm); max-width: 78ch; margin-bottom: 18px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 28px; padding-bottom: 20px; }
.rec-card h3 { font-size: var(--t-lg); margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.rec-card h3 .pick { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rec-card h3 .pick:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.rec-card h3 small { font-family: var(--sans); font-size: var(--t-xs); color: var(--ink-faint); font-weight: 400; }
.rec-card.on h3 .pick { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.rec-card ol { list-style: none; margin: 0; padding: 0; }
.rec-card li { padding: 8px 0; border-top: 1px solid rgba(36, 45, 61, 0.6); }
.amt { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.1; }
.meta { font-size: var(--t-xs); color: var(--ink-faint); margin: 2px 0 4px; }
.rec-card li p, .tops li p { margin: 0; font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.4; hyphens: auto; }

/* ---------- panel ---------- */
.panel .intro { margin-top: 6px; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 9px 0; border-top: 1px solid rgba(36, 45, 61, 0.6); }
.facts li b { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); line-height: 1.05; color: var(--paper); white-space: nowrap; }
.facts li span { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.4; }
.panel .how { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.45; }
.glyph { display: block; width: 100%; max-width: 300px; height: auto; margin: 4px 0 8px; overflow: visible; }
.glyph text { fill: var(--ink-faint); font-family: var(--sans); font-size: 9px; }

.panel .back {
  background: none; border: 0; padding: 0; margin: 0 0 14px;
  color: var(--ink-muted); font-size: var(--t-sm);
  text-decoration: underline; text-decoration-color: var(--ink-faint); text-underline-offset: 3px;
}
.panel .back:hover { color: var(--brass); text-decoration-color: var(--brass); }
.panel h2 { line-height: 1.1; }
.panel .sub { color: var(--ink-muted); font-size: var(--t-sm); margin: 4px 0 14px; }
.stats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 32px; gap: 14px; margin: 14px 0 6px; }
.stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { display: block; font-size: var(--t-xs); color: var(--ink-muted); margin-top: 3px; line-height: 1.3; }
.panel .kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: var(--t-sm); margin: 10px 0 0; }
.panel .kv dt { color: var(--ink-muted); margin: 0; }
.panel .kv dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.spark { display: block; width: 100%; max-width: 300px; height: auto; overflow: visible; }
.spark text { fill: var(--ink-faint); font-family: var(--sans); font-size: 10px; }
.panel .trend { font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.45; margin-top: 8px; }
.panel .trend b { color: var(--paper); font-weight: 500; }
.panel .open { margin-top: 10px; }
.panel .open button { margin: 0 8px 6px 0; }
.tops { list-style: none; margin: 0; padding: 0; }
.tops li { padding: 8px 0; border-top: 1px solid rgba(36, 45, 61, 0.6); }

.panel .pin { border-left: 2px solid var(--brass); padding: 2px 0 6px 14px; margin-bottom: 22px; }
.panel .pin h3 { margin: 0 0 6px; font-size: var(--t-md); color: var(--brass); }
.panel .pin .story { font-family: var(--serif); font-size: var(--t-md); line-height: 1.5; margin: 6px 0 10px; hyphens: auto; }

@media (max-width: 900px) {
  .viewbar { left: 16px; right: 16px; }
  .controls { left: 16px; right: 16px; }
  .rekordy { left: 16px; right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
