/* REVIEW_NOTES_25: road travel-time study (road travel-time study (omitted in public build)

/* ---------- control card (sits in the notes23 chip stack) ---------- */
.q25-card .q25-body { max-height: min(54vh, 26rem); overflow-y: auto; font-size: 0.78rem; line-height: 1.32; }
.q25-label {
  display: inline-block;
  background: #efe3ea;
  color: #5e0c3b;
  border: 1px solid #d9b6c8;
  border-radius: 3px;
  padding: 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0.1rem 0 0.3rem;
}
.q25-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 0.35rem; }
.q25-tab {
  flex: 1;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: 700 0.78rem "Source Sans 3", sans-serif;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  color: var(--muted);
  min-height: 2rem;
}
.q25-tab.on { color: var(--ink); border-bottom-color: #9c1c63; }
.q25-sec[hidden] { display: none; }
.q25-chk { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0; font-weight: 600; }
.q25-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0; flex-wrap: wrap; }
.q25-fld { display: flex; flex-direction: column; font-size: 0.7rem; color: var(--muted); font-weight: 600; gap: 0.1rem; min-width: 0; flex: 1 1 8rem; }
.q25-fld select, .q25-jctl select, .q25-ctlrow select {
  font: 500 0.78rem "Source Sans 3", sans-serif;
  padding: 0.2rem 0.25rem;
  border: 1px solid #8798a8;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
  min-height: 1.9rem;
}
.q25-seg { display: inline-flex; border: 1px solid #1d4e89; border-radius: 3px; overflow: hidden; }
.q25-seg button { border: none; background: #f7f3ec; padding: 0.25rem 0.55rem; font: 600 0.78rem "Source Sans 3", sans-serif; cursor: pointer; min-height: 2rem; }
.q25-seg button + button { border-left: 1px solid #1d4e89; }
.q25-seg button.on { background: #1d4e89; color: #fff; }
.q25-play-row { flex-wrap: nowrap; }
.q25-slider { flex: 1; min-width: 0; }
.q25-slider input[type="range"] { width: 100%; margin: 0; accent-color: #9c1c63; height: 1.6rem; }
.q25-ticks { display: flex; justify-content: space-between; font-size: 0.64rem; color: var(--muted); margin-top: -0.2rem; font-variant-numeric: tabular-nums; }
.q25-ticks span { flex: 1; text-align: center; min-width: 0; white-space: nowrap; }
.q25-now { margin: 0.2rem 0; }
.q25-legend { margin: 0.3rem 0; }
.q25-leg-t { font-size: 0.7rem; font-weight: 700; color: var(--muted); margin: 0.25rem 0 0.15rem; }
.q25-leg-r { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; margin: 0.05rem 0; }
.q25-sw { width: 1.1rem; height: 0.55rem; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.18); flex: 0 0 auto; }
.q25-sw.ln-dash { height: 0; border: 0; border-top: 3px dashed #b45309; }
.q25-leg-w { display: flex; align-items: flex-end; gap: 0.9rem; margin: 0.15rem 0 0.25rem; font-size: 0.7rem; }
.q25-leg-w span { display: inline-flex; align-items: center; gap: 0.3rem; }
.q25-leg-w i { display: inline-block; width: 1.6rem; background: #44546a; border-radius: 3px; }
.q25-note { font-size: 0.7rem; color: var(--muted); margin: 0.2rem 0; line-height: 1.3; }
.q25-src { font-size: 0.68rem; color: var(--muted); margin: 0.35rem 0 0; line-height: 1.3; }
.q25-stories .qt-btn { white-space: normal; text-align: left; }
.q25-links { gap: 0.3rem; }
.q25-facts { margin: 0.35rem 0; }
.q25-facts summary { cursor: pointer; font-weight: 700; }
.q25-fact-list { margin: 0.25rem 0; padding-left: 1rem; }
.q25-fact-list li { margin-bottom: 0.35rem; }
.q25-fact-list em { color: var(--muted); font-style: normal; font-size: 0.7rem; }
.q25-fact-src { display: block; font-size: 0.64rem; color: var(--muted); }
.q25-caption { margin: 0.4rem 0 0; padding: 0.35rem 0.5rem; background: #f4efe5; border-left: 3px solid #9c1c63; font-size: 0.76rem; }

/* ---------- right-hand panel (route chart, selected link, airport, zone) ---------- */
.q25-panel {
  position: absolute;
  z-index: 6;
  top: 0.65rem;
  right: 3.4rem;
  bottom: calc(var(--qt-tm-h, 3rem) + 2.2rem);
  width: min(25rem, calc(100% - 5rem));
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  line-height: 1.35;
}
.q25-panel[hidden] { display: none; }
body.qt-station-open .q25-panel { display: none; }
.q25-head-bar { position: sticky; top: 0; background: #f7f3ec; padding: 0.55rem 2.4rem 0.45rem 0.8rem; border-bottom: 1px solid var(--line); z-index: 1; }
.q25-head-bar h3 { margin: 0; font: 700 1.05rem "Fraunces", Georgia, serif; }
.q25-ctlrow { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 0.3rem; }
.q25-ctlrow .q25-fld { flex: 1 1 9rem; }
.q25-head { margin: 0.35rem 0; font-size: 0.88rem; }
.q25-bad { color: #7a5a6d; font-size: 0.74rem; font-weight: 500; margin: 0.15rem 0; }
p.q25-bad { margin: 0.25rem 0; }
.q25-panel .qt-sec h4 { display: flex; align-items: center; gap: 0.2rem; }

/* band chart */
.q25-chart { width: 100%; height: auto; display: block; }
.q25-chart .g { stroke: #e3dccf; stroke-width: 0.6; }
.q25-chart .t { font: 600 8.5px "Source Sans 3", sans-serif; fill: var(--muted); }
.q25-chart .band { fill: #e88ab9; opacity: 0.26; }
.q25-chart .p95 { fill: none; stroke: #c987a9; stroke-width: 1; stroke-dasharray: 3 2; opacity: 0.85; }
.q25-chart .med { fill: none; stroke: #1a2332; stroke-width: 2.2; stroke-linejoin: round; }
.q25-chart .cab { stroke: #0b7564; stroke-width: 2; stroke-dasharray: 6 3; }
.q25-chart .cab-t { fill: #0b7564; font-weight: 700; }
.q25-chart .ovn { stroke: #7b8794; stroke-width: 1; stroke-dasharray: 1 3; }
.q25-chart .ovn-t { fill: #5c6b7a; }
.q25-chart .sel { stroke: #9c1c63; stroke-width: 1; opacity: 0.7; }
.q25-chart .selc { fill: #fff; stroke: #9c1c63; stroke-width: 2; }
.q25-chart .sel-t { fill: #1a2332; font-weight: 700; }
.q25-chart-key { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.7rem; color: var(--muted); margin: 0.2rem 0; }
.q25-chart-key i { display: inline-block; width: 1.3rem; height: 0; vertical-align: middle; margin-right: 0.25rem; }
.q25-chart-key .k-med { border-top: 2.5px solid #1a2332; }
.q25-chart-key .k-band { height: 0.6rem; background: #e88ab9; opacity: 0.35; border-top: 1px dashed #c987a9; }
.q25-chart-key .k-cab { border-top: 2.5px dashed #0b7564; }

/* heatmap + tables */
.q25-hm { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.q25-hm th { font-weight: 600; text-align: left; color: var(--muted); font-size: 0.68rem; white-space: nowrap; }
.q25-hm thead th { text-align: center; text-transform: capitalize; white-space: normal; line-height: 1.1; }
.q25-hm thead th.cur { color: var(--ink); border-bottom: 2px solid #9c1c63; }
.q25-hm td { text-align: center; padding: 0.18rem 0.1rem; border-radius: 2px; }
.q25-hm tr.cur th { color: var(--ink); }
.q25-hm tr.sep td { text-align: left; background: none; font-size: 0.66rem; color: var(--muted); font-weight: 700; padding-top: 0.35rem; }
.q25-cell { cursor: pointer; }
.q25-cell.sel { outline: 2px solid #111827; outline-offset: -1px; font-weight: 800; }
.q25-cell:focus-visible { outline: 3px solid #f2a541; }
.q25-lowcov {
  font-size: 0.62rem;
  color: #5c6b7a;
  background: repeating-linear-gradient(45deg, #e9e4da 0 4px, #f7f3ec 4px 8px);
  border: 1px solid #c8c0b4;
}
.q25-hm .na { color: var(--muted); }
.q25-hm-leg { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; flex-wrap: wrap; }
.q25-hm-leg i { display: inline-block; width: 5rem; height: 0.55rem; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.15); }
.q25-hatch-key { display: inline-block; width: 1rem; height: 0.7rem; border: 1px solid #c8c0b4; background: repeating-linear-gradient(45deg, #e9e4da 0 3px, #f7f3ec 3px 6px); }
.q25-air td.cur, .q25-air th.cur { font-weight: 800; color: var(--ink); }
.q25-air td { background: #f1ede4; }
.q25-air th { white-space: normal; }
.q25-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.3rem; }

/* O/D charts */
.q25-sankey { width: 100%; height: auto; display: block; }
.q25-sankey .lbl { font: 600 8.6px "Source Sans 3", sans-serif; fill: var(--ink); }
.q25-sankey .lbl .v { font-weight: 800; fill: #111827; }
.q25-tierkey { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; }
.q25-tierkey i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: 0.25rem; vertical-align: -1px; }
.q25-bars { list-style: none; margin: 0.2rem 0; padding: 0; }
.q25-bars li { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; align-items: center; gap: 0.4rem; margin: 0.15rem 0; font-size: 0.76rem; }
.q25-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q25-bt { background: #ece6da; height: 0.7rem; border-radius: 2px; overflow: hidden; }
.q25-bt i { display: block; height: 100%; }
.q25-bv { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* journey comparator (25-C) — REVIEW_NOTES_27 E-M2 */
.journey-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 0.25rem 0 0.4rem;
}
.journey-table.q25-journey {
  font-size: 0.72rem;
  min-width: 52rem;
  border-collapse: collapse;
  width: max-content;
}
.journey-table.q25-journey th,
.journey-table.q25-journey td {
  padding: 0.2rem 0.35rem;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.journey-cards { display: flex; flex-direction: column; gap: 0.55rem; margin: 0.35rem 0; }
.journey-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  background: #faf8f4;
}
.journey-card-title { margin: 0 0 0.35rem; font: 700 0.85rem "Source Sans 3", sans-serif; }
.journey-card-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.35rem;
  margin: 0.15rem 0;
  font-size: 0.78rem;
  align-items: baseline;
}
.journey-card-k { color: var(--muted); }
.journey-card-v { font-weight: 600; font-variant-numeric: tabular-nums; }

.journey-table .q25-jny-nyt {
  font-size: 0.82em;
  font-style: italic;
  color: #6b7280;
  white-space: nowrap;
}
.q25-jctl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin: 0.3rem 0; font-size: 0.74rem; }
.q25-journey .q25-carh { background: #efe3ea; color: #5e0c3b; }
.q25-journey td.q25-car { background: #f8eff4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q25-journey td.q25-car.none { color: var(--muted); }
.q25-journey td.q25-mod { color: #6b7684; }
.q25-journey .q25-m { font-style: normal; font-size: 0.6rem; font-weight: 600; color: var(--muted); display: block; }
.q25-fb { font-size: 0.6rem; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .q25-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 66%;
    border-radius: 12px 12px 0 0;
  }
  .q25-card .q25-body { max-height: 46vh; }
  .q25-bars li { grid-template-columns: 6.5rem 1fr 2.4rem; }
  body.q25-panel-open .qt-tools { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .q25-card * { transition: none !important; }
}

/* REVIEW_NOTES_28: node legend keys */
.q25-nd { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid #111827; box-sizing: border-box; flex: 0 0 auto; background: #fff; }
.q25-nd-node { background: #111827; }
.q25-edge-key { font-weight: 700; color: #4b5563; }
