/* R11: informational hint is obsolete on both mobile and desktop. */
#railPubR17 .rc-r11-hide-instruction,
#railPubR17 .rc-r6-hide-instruction { display: none !important; }

/* Respect user's open/closed choice in Trains, not the side effects of
   selecting/closing the floating train detail. Never affect Weather. */
body[data-railpub-r17="trains"][data-rrail-r11-intent="open"] #railPubR17:not([hidden]) {
  display: var(--rrail-r11-display, block) !important;
  visibility: visible !important;
}
body[data-railpub-r17="trains"][data-rrail-r11-intent="closed"] #railPubR17 {
  display: none !important;
}
/* R5 preview previously hid the entire mobile railway panel as soon as the
   train detail appeared. R11 keeps the original native sheet visible only
   while it is in its native open state. Do not resurrect a peek/closed sheet. */
@media (max-width: 830px) {
  body.rrail-r5-mobile-mapfirst[data-railpub-r17="trains"][data-rrail-r11-intent="open"]
  #railPubR17:not([hidden]) {
    display: var(--rrail-r11-display, block) !important;
    visibility: visible !important;
  }
}
