/* Prediction rail panel. Swatch colours: levels of denLib/LocDen.py. */
.pred-status,
.pred-valid {
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.4;
}
.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pred-table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 4px;
}
.pred-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.pred-table th,
.pred-table td {
  padding: 3px 4px;
  border-bottom: 1px solid var(--border);
}
.pred-table tbody tr {
  cursor: pointer;
}
.pred-table tbody tr:hover {
  background: rgba(31, 111, 191, 0.1);
}
.pred-table tbody tr.active {
  background: #1f6fbf;
  color: #fff;
}
.pred-table tbody tr.off {
  color: var(--muted);
  cursor: default;
}
.pred-table tbody tr.off:hover {
  background: none;
}
.pred-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
}
.pred-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pred-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.pred-l0 { background: #e3f2fd; }
.pred-l1 { background: #90caf9; }
.pred-l2 { background: #42a5f5; }
.pred-l3 { background: #fdd835; }
.pred-l4 { background: #fb8c00; }
.pred-l5 { background: #f4511e; }
.pred-l6 { background: #d32f2f; }
.pred-l7 { background: #b71c1c; }
.pred-l8 { background: #7f0000; }

/* The RF pulse page of the dashboard is not on this site. */
.strike-popup-foot {
  display: none;
}

/* Live only: no day to pick. */
.map-mode-zone {
  display: none;
}
#prevDay,
#nextDay {
  display: none;
}
#dateChip {
  pointer-events: none;
}

/* Forecast play bar: the old time bar is replaced, its element stays for map2d.js. */
#timeBar {
  display: none;
}
.map-bottom-dock > .fc-bar {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  padding: 8px 12px;
  height: auto;
  border-radius: 14px;
}
.fc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fc-now-label {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.fc-strip {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.fc-lane {
  flex: 1 1 0;
  min-width: 0;
}
.fc-lane-title {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
}
.fc-frames {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.fc-frame {
  min-width: 0;
  min-height: 34px;
  padding: 1px 0 2px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}
.fc-sub {
  display: block;
  min-height: 12px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
/* Actual: solid. Forecast: hatched, and fainter with lead time, as uncertainty grows. */
.fc-frames-actual .fc-frame {
  background: #5b6b7b;
  color: #fff;
}
.fc-frames-actual .fc-frame.empty {
  background: #c9d1d9;
  color: #33404d;
}
.fc-frames-forecast .fc-frame {
  background: repeating-linear-gradient(135deg, #cfe3f7 0 4px, #f2f8fe 4px 8px);
  border-color: #1f6fbf;
  border-bottom: 4px solid var(--peak, transparent);
  color: #0f3d6b;
}
.fc-frames-forecast .fc-frame:disabled {
  background: #e2e6eb;
  border-color: #c9d1d9;
  color: #6b7683;
  cursor: default;
}
.fc-lead-3,
.fc-lead-4 {
  border-style: dashed;
}
.fc-lead-5,
.fc-lead-6 {
  border-style: dotted;
}
.fc-frame.active {
  outline: 2px solid #111;
  outline-offset: 1px;
  font-weight: 700;
}
.fc-now-mark {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  padding: 0 4px 6px;
  border-left: 2px solid #1f6fbf;
  border-right: 2px solid #1f6fbf;
  font-size: 10px;
  font-weight: 700;
  color: #1f6fbf;
}
.fc-readout {
  padding: 3px 8px;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: #5b6b7b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.fc-readout.forecast {
  background: #1f6fbf;
}
@media (max-width: 640px) {
  .fc-top {
    flex-wrap: wrap;
  }
  .fc-lane-title {
    font-size: 10px;
  }
  .fc-frame {
    font-size: 9px;
    min-height: 30px;
  }
  /* Too narrow for a second line: the readout under the frames gives the time. */
  .fc-sub {
    display: none;
  }
}

.fc-grow {
  flex: 1 1 auto;
}

/* The full project name: small and on up to two lines beside the title. */
.header-by {
  flex: 0 1 620px;
  min-width: 0;
  white-space: normal;
  font-size: 11px;
  line-height: 1.25;
}
.header-title {
  align-items: center;
  min-width: 0;
}
.header-nav-link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Live status tool of the rail. Tone: bad red, warn amber, active blue, ok green. */
.lv-tone { --lv-tone: #6b7683; }
.lv-tone[data-tone="ok"] { --lv-tone: #1a7f4b; }
.lv-tone[data-tone="active"] { --lv-tone: #1f6fbf; }
.lv-tone[data-tone="warn"] { --lv-tone: #b26a00; }
.lv-tone[data-tone="bad"] { --lv-tone: #c0352b; }
.lv-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.lv-tone[data-tone="bad"] .lv-head { color: #c0352b; }
.lv-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lv-tone);
}
.lv-rail-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  box-shadow: 0 0 0 2px var(--surface);
}
/* All well needs no dot: the status line of the map already says no sources. */
.lv-tone[data-tone="ok"] .lv-rail-dot,
.lv-tone[data-tone="idle"] .lv-rail-dot {
  display: none;
}
.lv-tone[data-tone="active"] .lv-dot {
  animation: lv-pulse 2s infinite;
}
@keyframes lv-pulse {
  50% { opacity: 0.3; }
}
.lv-new {
  animation: lv-new 1.2s 2;
}
@keyframes lv-new {
  50% { box-shadow: 0 0 0 3px #1f6fbf; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-tone[data-tone="active"] .lv-dot,
  .lv-new {
    animation: none;
  }
}
.lv-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.lv-rows {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.35;
}
.lv-rows > div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 6px;
  padding: 2px 0;
}
.lv-rows dt {
  color: var(--muted);
}
.lv-rows dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lv-rows > div[data-tone="bad"] dd { color: #c0352b; }
.lv-rows > div[data-tone="warn"] dd { color: #8a5200; }
