/* Scoped journey UI; keeps long stop names and controls inside small screens. */
body.pub-app .sl-inner{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 24px)}
.sl-body{overscroll-behavior:contain;overflow-x:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
button.sl-trip-head{width:100%;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}
.transit-step{padding:16px 0;border-bottom:1px solid var(--border);min-width:0}
.transit-step-head{display:flex;align-items:center;gap:10px}
.transit-step-head>div{flex:1;min-width:0;overflow-wrap:anywhere}
.transit-step-head strong{font-size:15px}
.transit-step-head small{display:block;margin-top:3px}
.transit-step-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:11px;font-size:18px}
.transit-step-time{font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.transit-step-route{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0 12px 44px}
.transit-step-route span{color:var(--gold)}
.transit-step-actions,.transit-trip-actions{display:flex;flex-wrap:wrap;gap:8px}
.transit-step-actions button,.transit-step-actions a,.transit-trip-actions button,.transit-nav-details{min-height:40px;border:1px solid var(--border);border-radius:12px;padding:9px 12px;background:rgba(255,200,80,.08);color:inherit;font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.transit-step-actions button:focus-visible,.transit-step-actions a:focus-visible,.transit-trip-actions button:focus-visible,.transit-stops summary:focus-visible,.sl-trip-head:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.transit-note{display:block;font-size:12px;line-height:1.6;opacity:.78;margin:10px 0 0;flex-basis:100%}
.transit-platform{font-size:13px;color:var(--gold);margin:8px 0}
.transit-trip-actions{padding-top:8px}
.transit-stops{font-size:13px;margin-top:12px}
.transit-stops summary{cursor:pointer;padding:8px 0}
.transit-stops ol{list-style:none;margin:0;padding:0 0 0 12px;border-left:2px solid var(--border)}
.transit-stops li{display:flex;justify-content:space-between;gap:12px;padding:8px 0}
.transit-stops li span{min-width:0;overflow-wrap:anywhere}
.transit-stops time{flex-shrink:0}
.transit-nav-details{margin-top:8px;padding:6px 10px;min-height:36px}
#navCard{flex-direction:column;gap:8px}
.transit-live-panel{pointer-events:auto;border:1px solid var(--border);border-radius:16px;background:var(--cream);color:var(--ink);padding:14px;box-shadow:0 8px 30px #0004;max-width:100%;font-size:12px}
.transit-live-panel>button[aria-label]{float:right;background:none;color:inherit;border:0;width:32px;height:32px;cursor:pointer}
.transit-live-panel p{line-height:1.5;margin:7px 0}
.transit-live-panel small{display:block;line-height:1.6}

body.pub-app .sl-trip-chip.warn{color:var(--ink);background:rgba(255,200,87,.12)}

.transit-walking-status{display:block;font-size:11px;line-height:1.5;margin-top:7px;color:var(--muted2)}
.transit-walk-warning{color:var(--gold);opacity:1}
.transit-walk-instructions small{white-space:nowrap;flex-shrink:0}
.transit-trip-actions a{color:inherit;text-decoration:underline}
/* Vehicle heading rotates inside the marker; the map owns its outer position. */
.transit-vehicle{position:relative;display:block;width:64px;height:64px;color:var(--vehicle-color,#005cab)}
.transit-vehicle-body{position:absolute;inset:12px 3px;display:flex;align-items:center;justify-content:center;gap:4px;border:2px solid #fff;border-radius:13px;background:var(--vehicle-color,#005cab);color:#fff;box-shadow:0 3px 12px #0006;font:700 16px system-ui}
.transit-vehicle-body b{max-width:35px;overflow:hidden;font-size:15px}
.transit-vehicle-body>span{font-size:19px}
.transit-vehicle-heading{position:absolute;inset:-13px;text-align:center;font:900 22px/18px system-ui;transform:rotate(calc(var(--vehicle-bearing) - var(--map-bearing,0deg)));text-shadow:0 0 2px #fff,0 0 4px #fff}
#transitLiveStatus{white-space:pre-line;margin-bottom:6px}
.transit-live-panel{box-sizing:border-box;max-width:480px;max-height:32dvh;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}

.transit-live-focus{font:inherit;min-height:36px;margin:2px 0 7px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:transparent;color:inherit;cursor:pointer}
.transit-estimate{position:absolute;right:0;top:5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#fff6de;color:#4d3915;border:1px solid #9c8249;font:800 14px system-ui;box-shadow:0 1px 4px #0003}
.transit-vehicle.is-estimated .transit-vehicle-body{border-style:dashed}
