/* rates board */
/* series colours, checked for colour-blind separation on each surface (dataviz validator, adjacent pairs) */
[data-board-page="rates"] { --c1: #c77700; --c2: #00a383; --c3: #257de0; }
html[data-theme="dark"] [data-board-page="rates"] { --c1: #d9880f; --c2: #00a888; --c3: #338ced; }

.rt-stats { margin-bottom: 16px; }
.rt-inv { color: var(--accent-ink); }

.rt-top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; margin-top: 0; }
.rt-top > .panel { display: flex; flex-direction: column; }
.rt-cv { position: relative; height: 340px; margin: 10px 8px 0; flex: 1; min-height: 300px; }
.rt-cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-tip { position: absolute; transform: translate(-50%, -100%); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5; display: grid; gap: 1px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); z-index: 2; }
.rt-tip b { font-weight: 650; }
.rt-tip span { color: var(--text-2); }
.rt-tip[hidden] { display: none; }
.rt-fail { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; font-size: 14px; background: var(--bg); }
html[data-theme="dark"] .rt-fail { background: var(--bg-soft); }
.chart-box .rt-fail { inset: 8px 10px 12px; }

.chart-legend i.rt-k1 { background: var(--c1); }
.chart-legend i.rt-k2 { background: transparent; border: 2px solid var(--c3); border-radius: 50%; box-sizing: border-box; }
.chart-legend i.rt-k3, .chart-legend i.rt-k6 { background: transparent; border-top: 2px dashed var(--text-2); border-radius: 0; height: 0; width: 14px; vertical-align: 3px; }
.chart-legend i.rt-k6 { border-top-color: var(--text-3); }
.chart-legend i.rt-k4 { background: var(--c3); }
.chart-legend i.rt-k5 { background: var(--c2); }

.rt-tbl th { position: static; }
.rt-tbl td, .rt-tbl th { padding: 9px 12px; }
.rt-tbl td.rt-d { color: var(--text-3); font-size: 12.5px; }
.rt-tblp .tbl-wrap { flex: 1; }

.rt-sstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rt-sstats .stat { padding: 12px 14px; }
.rt-sstats .sv { font-size: 20px; }
.rt-spr .panel-b { padding-bottom: 4px; }

@media (max-width: 1100px) {
  .rt-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rt-sstats { grid-template-columns: minmax(0, 1fr); }
  .rt-cv { height: 280px; min-height: 260px; }
  .rt-tbl th.rt-d, .rt-tbl td.rt-d { display: none; }
}
@media (max-width: 420px) {
  .rt-tbl th.rt-y1, .rt-tbl td.rt-y1 { display: none; }
}
