/* Cost of waiting calculator: page-only styles on top of the shared style.css. */
.cw-big { color: var(--rust); }
.cw-gold { color: var(--gold); }
.cw-sq-gap { background: var(--rust); opacity: 0.28; }
.legend-static span { display: inline-flex; align-items: center; gap: 7px; }

/* main chart */
.chart-box .cw-later { stroke-width: 1.7; }
.chart-box .cw-bracket { fill: none; stroke: var(--rust); stroke-width: 1.3; }
.chart-box .cw-start-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.chart-box .cw-end-later { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.chart-box .cw-hover-later { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.tip .cw-t-gap span { color: var(--rust) !important; font-weight: 600; }
.tip .cw-t-yr { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 4px; }

/* the ladder */
#ladder { padding-top: 56px; }
#ladder h2 { margin-bottom: 10px; }
.cw-bars { margin-top: 6px; }
.cw-bars .cw-bar.is-pick { cursor: pointer; }
.cw-bars .cw-bar:not(.is-sel) { opacity: 0.62; }
.cw-bars .cw-bar:first-child, .cw-bars .cw-bar.is-pick:hover { opacity: 1; }
.cw-bars .cw-sel-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; rx: 3; }
.cw-bars .cw-bar-v.is-strong { fill: var(--ink); font-weight: 700; }
.cw-bars .cw-x-sel { fill: var(--ink); font-weight: 700; }
.cw-bars .cw-now-level { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 4 4; }
.cw-table { margin-top: 18px; }
.cw-table tbody tr[tabindex] { cursor: pointer; }
.cw-table tbody tr[tabindex]:hover th, .cw-table tbody tr[tabindex]:hover td { background: var(--surface-2); }
.cw-table tr.is-sel th, .cw-table tr.is-sel td { background: var(--gold-soft); }
.cw-table tr.is-base b { color: var(--gold); }

/* while inputs are invalid, the old result stays but fades */
.cw-invalid .stage, .cw-invalid #ladder { opacity: 0.4; transition: opacity 0.2s; }
.preset-custom { width: 5.4rem; }
.stats.cw-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .stats.cw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#ladder-msg b { color: var(--rust); }
.cw-bars .cw-bar-v { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.chart-box .tag-v { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
@media (max-width: 600px) {
  .legend-static .cw-legend-long { display: none; }
}
@media (min-width: 601px) { .legend-static .cw-legend-short { display: none; } }
