/* A trip's stops and when the bus reaches each (trips/_card, on the home map). */
.trip-stops { list-style: none; margin: 0; padding: 0; }

/* Stop name | time over the struck scheduled time or "odjechał". */
.trip-stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name time" "name note";
  gap: 0 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.trip-stop { position: relative; }
/* The whole row is the link. */
.trip-stop-name a { color: inherit; text-decoration: none; }
.trip-stop-name a::after { content: ""; position: absolute; inset: 0; }
.trip-stop-name .stops-lines { justify-content: flex-start; max-width: none; margin-top: 0.25rem; }

.trip-stop-name { grid-area: name; font-size: 1.125rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.trip-stop-time {
  grid-area: time;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.trip-stop-note { grid-area: note; color: var(--color-muted); font-variant-numeric: tabular-nums; text-align: right; }

.trip-stop-passed {
  color: var(--color-muted);

  .trip-stop-name, .trip-stop-time { font-weight: 400; }
}

.trip-stop-here {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  border-left: 0.375rem solid var(--color-accent);
}
