/* ==========================================================================
   trains.css — Amtrak and VIA Rail trains on /flights/ (js/trains.js). The cards and
   boxes are Flights' own (css/flights.css); this sets what's new, with no
   text under 16px and taps at least 44px, for older eyes and fingers.
   ========================================================================== */

/* Flight or Amtrak train, over the boxes. */
.tr__modes { justify-content: center; margin: 0 auto .8rem; }
.tr__modes .chip { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: 1rem; }
#fl-addflight[hidden], #tr-add[hidden] { display: none; }

/* Amtrak or VIA Rail, over the train boxes. */
.tr__rails { justify-content: center; margin: 0 auto .7rem; }
.tr__rails .chip { min-height: 2.75rem; padding: .45rem 1rem; font-size: 1rem; }

.tr__add input { min-height: 2.75rem; }
.tr__add .tr__stationin { flex: 1 1 11rem; padding: .6rem 1rem; font-size: 1rem; text-transform: none; }
.tr__add .fl__dayin, .tr__add .fl__namein { font-size: 1rem; }
.tr__add .fl__addbtn { min-height: 2.75rem; font-size: 1rem; }
.tr__preview { max-width: 30rem; margin: .6rem auto 0; padding: 0 1rem; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); text-align: center; }
.tr__preview[hidden] { display: none; }
.tr__findrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .7rem;
  max-width: 30rem; margin: .7rem auto 0;
}
.tr__findrow .btn { min-height: 2.75rem; font-size: 1rem; }
.tr__hint { font-size: 1rem; color: var(--ink-soft); }
.tr__picks p { font-size: 1rem; }
.tr__picks .fl__pick { min-height: 2.75rem; }
.tr__picks .fl__pick b { font-size: 1.05rem; }
.tr__picks .fl__pick span { font-size: 1rem; }
.tr__picks .fl__pick:disabled { opacity: .6; cursor: default; }
.tr__status { font-size: 1rem; }
.tr__status:empty { min-height: 0; margin: 0; }

/* ------------------------------------------------------------- Cards -- */
.tr__list[hidden] { display: none; }
.fl__list + .tr__list { margin-top: .8rem; }
.fl__list:empty + .tr__list { margin-top: 1.2rem; }
.tr__card .fl__sub,
.tr__card .fl__ap span,
.tr__card .fl__note,
.tr__card .fl__miss,
.tr__card .fl__events { font-size: 1rem; }
.tr__card .fl__pill { font-size: 1rem; padding: .25rem .7rem; }
.tr__card .fl__ap span { max-width: 11rem; }
.tr__card :is(.fl__bell, .fl__rename, .fl__remove) { width: 2.75rem; height: 2.75rem; margin: -.5rem -.45rem 0 0; }
.tr__card .fl__bell svg { width: 1.2rem; height: 1.2rem; }
.tr__card .fl__rename svg { width: 1.15rem; height: 1.15rem; }
.tr__card .fl__remove { font-size: 1.6rem; }
.tr__card .fl__stats { font-size: 1rem; gap: .5rem 1.4rem; }
.tr__card .fl__stats b { font-size: 1.1rem; }
.tr__card .fl__stats s { font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.tr__card .fl__stats .fl__until { font-size: 1rem; }
.tr__card .fl__stats .is-late b { color: var(--c-bad); }
.tr__card .fl__show { min-height: 2.75rem; padding: .45rem 1rem; font-size: 1rem; }
.tr__card .fl__show svg { width: 1.1rem; height: 1.1rem; }
.tr__card .fl__events summary { display: flex; align-items: center; min-height: 2.75rem; }
.tr__card .fl__events time { min-width: 5.6rem; }
.tr__card .fl__renamebox input { font-size: 1rem; min-height: 2.75rem; }
.tr__card .fl__renamebox .btn { min-height: 2.75rem; font-size: 1rem; }
/* where the train is along your part of the trip */
.tr__dot {
  position: absolute; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--fl-color, var(--ink));
  border: 3px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tr__stops ol { gap: .35rem; }
.tr__stops li { color: var(--ink); line-height: 1.4; }
.tr__stops li b { font-weight: 600; color: var(--ink-deep); }
.tr__stops li i { font-style: normal; color: var(--ink-soft); }
.tr__stops li.is-mine b { font-weight: 800; }
.tr__stops li.is-mine time { font-weight: 700; }
/* Where the train is (2026-11-30): stops passed dimmed, the one it's at marked in the card's color, the line it's on. */
.tr__stops li.is-past { opacity: .55; }
.tr__stops li.is-here b::before { content: ''; display: inline-block; width: .6rem; height: .6rem; margin-right: .4rem; border-radius: 50%; background: var(--fl-color, var(--ink)); vertical-align: .05rem; }
.tr__stops li.tr__now { color: var(--fl-color, var(--ink)); font-weight: 700; padding-left: .2rem; }
.tr__stops li.tr__now::before { content: '▸ '; }

/* --------------------------------------------------------------- Map -- */
/* A train on the map: a disc in its card's color. */
.tr__train {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--fl-color, var(--ink));
  border: 2.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  color: #fff;
  cursor: pointer;
}
.tr__train svg { width: 18px; height: 18px; }

/* ----------------------------------------------- /train/ (js/train-live.js) -- */
/* One shared train for anyone: Flights' card and map, and the ways on under them. */
.tl__list { margin-top: .4rem; }
.tl__mapwrap { margin-top: 1rem; }
.tl__more { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.2rem auto 0; }
.tl__more[hidden] { display: none; }
.tl__more .btn { min-height: 2.75rem; font-size: 1rem; }
/* Earlier trips (2026-11-30): finished trains under the finished flights, below the map. */
.fl__list--done + .tr__list--done, .fl__list--done[hidden] + .tr__list--done { margin-top: .6rem; }
