/* The journey bar (js/journeybar.js): the whole trip at a glance. A sentence, a rounded track (walks neutral, rides
   faintly in the route's colour), you as a glowing dot, the next thing to do; tap for every stop. Reduced motion:
   no glow pulse, no easing. */
.jb { margin: 10px 0 12px; color: var(--text); }
.jb-sum { list-style: none; cursor: pointer; border-radius: 14px; }
.jb-sum::-webkit-details-marker { display: none; }
.jb-head { margin: 0 0 8px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: -.005em; }
.jb-bar { position: relative; padding-top: 3px; }
.jb-track { display: flex; align-items: flex-start; }
.jb-seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.jb-line { position: relative; display: block; width: calc(100% - 3px); height: 8px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--text) 10%, transparent); }
.jb-seg.ride .jb-line { background: color-mix(in srgb, var(--c, var(--accent)) 28%, transparent); }
.jb-line i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--text) 45%, transparent); border-radius: inherit; transition: width .6s var(--ease); }
.jb-seg.ride .jb-line i { background: var(--c, var(--accent)); }
.jb-seg.walk .jb-line { background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 22%, transparent) 1.4px, transparent 1.6px); background-size: 7px 8px; background-color: transparent; }
.jb-seg:first-child .jb-line { margin-left: 0; } 
.jb-ico { display: grid; place-items: center; height: 20px; color: var(--muted); }
.jb-ico .i { width: 17px; height: 17px; }
.jb-badge { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 28px; padding: 0 6px; border-radius: 6px; font-size: var(--fs-cap); font-weight: 800; background: var(--c, var(--accent)); color: var(--t, var(--on-accent)); font-variant-numeric: tabular-nums; }
.jb-seg:not(.now) .jb-badge { opacity: .75; }
.jb-you { position: absolute; top: 7px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px var(--bg), 0 0 12px 2px color-mix(in srgb, var(--accent) 60%, transparent); transition: left .6s var(--ease); }
.jb-you::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: jb-glow 2s ease-out infinite; }
@keyframes jb-glow { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.jb-next { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: var(--fs-sub); font-weight: 600; color: var(--muted); }
.jb-more { margin-left: auto; display: grid; transition: transform .2s; }
.jb[open] .jb-more { transform: rotate(90deg); }
.jb-list { list-style: none; margin: 10px 0 0; padding: 0; }
.jb-row { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: var(--fs-sub); color: var(--muted); }
.jb-row.node { color: var(--text); } .jb-row.done { opacity: .6; } .jb-row.now { color: var(--text); font-weight: 700; }
.jb-ri { width: 52px; flex: none; display: grid; place-items: center; }
.jb-rt { font-variant-numeric: tabular-nums; font-size: var(--fs-foot); }
.jb-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 38px; padding: 2px 6px 3px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: var(--fs-body); line-height: 1; }
.jb-chip small { font-size: 7px; font-weight: 800; letter-spacing: .12em; margin-bottom: 1px; }
.jb-chip.word { font-size: 11px; font-weight: 800; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* in a moment: the sentence and the track only, quieter, so the giant stays the one big thing */
.mo-jb { width: 100%; max-width: 346px; margin-top: 18px; }
.mo-jb:empty { display: none; }
.jb.compact { margin: 0; color: var(--mo-fg, var(--text)); }
.jb.compact .jb-head { font-size: var(--fs-sub); color: var(--mo-dim, var(--muted)); text-align: center; }
.jb.compact .jb-line { height: 6px; }
.jb.compact .jb-line, .jb.compact .jb-seg.walk .jb-line { --text: var(--mo-fg, var(--text)); }
.jb.compact .jb-ico { color: var(--mo-dim, var(--muted)); }
.jb.compact .jb-you { top: 6px; box-shadow: 0 0 0 3px var(--mo-bgsolid, var(--bg)), 0 0 12px 2px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (prefers-reduced-motion: reduce) { .jb-you::after { animation: none; display: none; } .jb-you, .jb-line i, .jb-more { transition: none; } }
