/* T8E: real source-native Live AVL grid placement correction.
 * Accepted Core styles.css assumes an extra first grid row and pins
 * .distance-avl-head to row 2 and .distance-avl-body to row 3.
 * Training Centre does not have that extra row. This ONLY scopes the
 * fix inside its .t8c-live-board; all global OCC styles stay untouched.
 * Physical axis / stop positions / vehicle IDs never change.
 * QA source is SYNTHETIC_QA_ONLY, not archived or live AVL.
 */
.tc6-page .t8c-live-board .distance-avl.standard-route {
  display:grid!important;
  grid-template-rows:34px minmax(0,1fr)!important;
  grid-auto-rows:0!important;
}
.tc6-page .t8c-live-board .distance-avl.standard-route > .distance-avl-head {
  grid-row:1!important;
  grid-column:1!important;
  min-height:34px!important;
}
.tc6-page .t8c-live-board .distance-avl.standard-route > .distance-avl-body {
  grid-row:2!important;
  grid-column:1!important;
  height:100%!important;
  min-height:0!important;
  overflow:visible!important;
}
.tc6-page .t8c-live-board .distance-avl.standard-route .corridor-lane {
  overflow:visible!important;
}
.tc6-page .t8c-live-board .distance-avl.standard-route .corridor-track {
  overflow:visible!important;
}
.tc6-page .t8c-live-board .distance-avl.standard-route .corridor-axis {
  overflow:visible!important;
}
.tc6-page .t8c-live-board .corridor-stop-copy b{
  font-size:10px!important;
  max-height:26px!important;
}
.tc6-page .t8c-live-board .corridor-stop-copy small{
  font-size:8px!important;
}
.tc6-page .t8c-live-board .corridor-bus.t8c-training-bus b{
  font-size:11px!important;
}
/* Co-located outbound buses: Core's default 44px stack offset is clamped
 * into a ~50px lane and becomes a visually overlapping card. In the proper
 * 130px training lane, place individual cards above the OUT rail with the
 * inherited --avl-bus-offset-px. X/axis stays exactly unchanged.
 * The 3-vehicle frozen fixture has at most two co-located stand buses.
 * Higher fleet concentrations need a separately reviewed aggregation UAT. */
.tc6-page .t8c-live-board .corridor-lane.outbound .corridor-bus.t8c-training-bus {
  top:calc(var(--avl-bus-rail-pct,40%) - 54px - var(--avl-bus-offset-px,0px))!important;
  bottom:auto!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
}
