/* Route it (#656): the panel's own parts (it shares the What if panel's frame, whatif.css), the list of towns
   and gauges with the wave's peak, and the legend's ramp. The wave itself is painted by src/route-map.js. */

.route { width: 340px; }
.rt-kind { border: 0; margin: 0; padding: 0; display: grid; gap: .3rem; }
.rt-kind label { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--ink-2); }
.rt-kind select, .rt-kind input[type="number"] {
  font: inherit; font-size: .76rem; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface-solid); color: var(--ink);
}
.rt-kind input[type="number"] { width: 6.2rem; }
.rt-head { margin: 0 0 .4rem; font-size: .78rem; line-height: 1.4; color: var(--ink); }
.rt-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.rt-places li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) 4.4rem 3.6rem 2.8rem; align-items: center; gap: .3rem;
  font-size: .74rem; padding: 2px 0; font-variant-numeric: tabular-nums;
}
.rt-places .rt-hdr { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.rt-places .rt-none { display: block; color: var(--muted); }
.rt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-when, .rt-q, .rt-flat { text-align: right; }
.rt-flat { color: var(--muted); }
.rt-t, .rt-g { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rt-t { background: #fff; box-shadow: inset 0 0 0 2px #3f007d; }
.rt-g { background: #3f007d; }
.rt-ramp { display: inline-flex; width: 30px; height: 8px; border-radius: 2px; overflow: hidden; vertical-align: middle; }
.rt-ramp i { flex: 1; }
.rk-row .rt-ramp { width: 70px; margin-right: .3rem; }

@media (max-width: 640px) {
  .route.done .rt-form, .route.done .wi-sub { display: none; }
  /* after a run the sheet moves to the top and keeps to the answer, so the wave and the time bar below show */
  .route.done { top: 64px; bottom: auto; max-height: 38vh; }
  .route.done .wi-model, .route.done .wi-status, .route.done .wi-kicker { display: none; }
  .route { width: auto; }
  .rt-places li { grid-template-columns: 10px minmax(0, 1fr) 4rem 3.4rem 2.6rem; }
}
