/* Plansza V — Orzeczenia, które się cytuje (komety / joyplot) */

.canvas .scroll {
  position: absolute; inset: 0 0 96px 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.canvas .scroll > svg { display: block; width: 100%; }

/* pasek osi lat przyklejony do góry */
.yearbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(var(--ground) 82%, rgba(11, 15, 23, 0)); padding-bottom: 10px;
}
.yearbar { padding: 8px 24px 0; }
.yearbar .legend { font-size: 11px; margin-bottom: 4px; min-height: 16px; }
.yearbar svg { display: block; width: calc(100% + 48px); margin-left: -24px; height: 30px; overflow: visible; }
.yearbar text { fill: var(--ink-muted); font-family: var(--serif); font-size: 13px; }
.yearbar .nodata text { fill: var(--ink-faint); font-family: var(--sans); font-size: 11px; }

/* wiersze */
.row { cursor: pointer; outline: none; }
.row .label { font-family: var(--serif); font-size: 12.5px; fill: var(--paper); }
.row .yr { fill: var(--ink-faint); font-family: var(--sans); font-size: 10.5px; }
.canvas .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(11, 15, 23,0), var(--ground) 42%); }
.row .n { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-muted); font-variant-numeric: tabular-nums; }
.row .base { stroke: rgba(160, 169, 184, 0.28); }
.row .ridge { stroke: none; }
.row .ridge-line { stroke: rgba(244, 241, 234, 0.8); stroke-width: 1; }
.row .head { fill: var(--paper); stroke: var(--ground); stroke-width: 1.2; }
.row .head.ghost { fill: none; stroke: var(--ink-muted); stroke-dasharray: 2 2; stroke-width: 1; }
.row:hover .ridge-line, .row:focus-visible .ridge-line { stroke: var(--paper); stroke-width: 1.5; }
.row:focus-visible .label { fill: var(--brass); }
.row.selected .ridge { fill: var(--brass) !important; fill-opacity: 0.22 !important; }
.row.selected .ridge-line { stroke: var(--brass); stroke-width: 1.6; }
.row.selected .head { fill: var(--brass); }
.row.selected .label { fill: var(--brass); }
.row.selected .base { stroke: var(--brass); opacity: 0.6; }
.section-title { font-family: var(--serif); font-size: 15px; fill: var(--paper); }
.section-sub { font-family: var(--sans); font-size: 11px; fill: var(--ink-muted); }
.gridline line { stroke: rgba(36, 45, 61, 0.5); }
.nodata-band { fill: url(#hatch); }

/* elementy sterujące */
.controls { bottom: 12px; gap: 8px; }
.controls select { max-width: 190px; }
.controls .legend { width: 100%; padding-top: 2px; }

/* panel */
.panel .syg { font-size: var(--t-2xl); line-height: 1.05; color: var(--paper); margin: 0 0 6px; }
.panel .meta { color: var(--ink-muted); font-size: var(--t-sm); margin: 0 0 14px; line-height: 1.5; }
.panel .meta .chip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.panel .hero-n { font-family: var(--serif); font-size: var(--t-3xl); line-height: 1; color: var(--brass); margin: 10px 0 0; }
.panel .hero-n small { font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-muted); display: block; margin-top: 4px; }
.panel .one { font-family: var(--serif); font-size: var(--t-md); line-height: 1.45; margin: 18px 0 6px; }
.panel .absent { color: var(--ink-muted); font-size: var(--t-sm); border-left: 2px solid var(--rule); padding-left: 10px; margin: 16px 0; }
.panel .mini svg { display: block; width: 100%; height: 120px; overflow: visible; }
.panel .mini .cap { color: var(--ink-faint); font-size: var(--t-xs); margin-top: 4px; }
.panel .mini text { font-family: var(--sans); font-size: 10px; fill: var(--ink-faint); }
.panel .cta { margin-top: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel .cta .btn { text-decoration: none; display: inline-block; }
.panel .cta .back { background: transparent; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; }
.facts li { padding: 10px 0; border-top: 1px solid rgba(36, 45, 61, 0.6); font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.45; }
.facts li b { font-family: var(--serif); color: var(--paper); font-weight: 500; font-size: var(--t-md); display: block; margin-bottom: 2px; }
.facts li .go { color: var(--brass); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(232, 184, 102,.4); text-underline-offset: 3px; }
.facts li .go:hover { text-decoration-color: var(--brass); }

@media (max-width: 900px) {
  .canvas .scroll { inset: 0 0 140px 0; }
  .canvas .fade { height: 190px; }
}
