/* The trains section. Colours come from the visitor's theme (site.css), so
 * every theme and the seasonal dressing apply; nothing moves or flashes. */
.trains { max-width: 62rem; margin: 0 auto; }
.trains-lede { font-size: 1.1rem; }
.trains-toc { margin: 0.6rem 0 1rem; line-height: 1.9; }
.trains .card { margin: 1rem 0; }
.trains-tool label { display: block; margin-bottom: 0.25rem; }
.picker-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.picker-row input { flex: 1 1 14rem; min-width: 0; padding: 0.45rem 0.6rem; font: inherit; }
.picker-row select { padding: 0.45rem; font: inherit; }
.picker-results { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.trains-options { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin: 0.7rem 0; }
.trains-options label { display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 400; }
.journey-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.trains-out:empty { display: none; }
.trains-out { margin-top: 0.8rem; }
.table-scroll { overflow-x: auto; }
table.dep-board { width: 100%; }
table.dep-board td, table.dep-board th { text-align: left; vertical-align: top; }
.dep-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.dep-late .dep-status { color: var(--accent); font-weight: 600; }
.dep-cancelled, .dep-cancelled .dep-status { color: var(--danger, #ff5e63); }
.dep-cancelled .dep-time { text-decoration: line-through; }
.journey-card { border-left: 4px solid var(--accent-3); }
.journey-card h3 { margin-bottom: 0.2rem; }
.legs { padding-left: 1.3rem; }
.legs li { margin: 0.25rem 0; }
.leg-times { font-variant-numeric: tabular-nums; font-weight: 700; }
.journey-notes { padding-left: 1.3rem; }
.journey-notes li { margin: 0.2rem 0; }
.trains-error { color: var(--danger, #ff5e63); font-weight: 600; }
.trains-source { max-width: 62rem; margin: 0 auto; }
table.trains-words th[scope="row"] { text-align: left; }
@media (max-width: 640px) {
	.trains-lede { font-size: 1rem; }
	table.dep-board td:last-child, table.dep-board th:last-child { display: none; }
}
