.nv { --nv-accent:#e9b83a; --nv-r:6px; overflow-x:hidden; }
.bus-sheet { position:fixed; left:16px; top:122px; bottom:24px; width:380px; max-width:calc(100vw - 32px); z-index:1001; background:#fff; border:1px solid var(--nv-line); border-radius:var(--nv-r); overflow:auto; overflow-anchor:none; padding:14px; color:var(--nv-ink); box-sizing:border-box; }
.bus-sheet *, .bus-arrivals-popup * { box-sizing:border-box; }
.bus-sheet h2,.bus-arrivals-popup h2 { font-size:1rem; line-height:1.3; margin:0 0 4px; overflow-wrap:anywhere; }
.bus-sheet h3 { font-size:.9rem; margin:12px 0 4px; }
.bus-sheet button,.bus-arrivals-popup button { min-height:44px; color:inherit; font:inherit; cursor:pointer; background:#fff; border:1px solid var(--nv-line); border-radius:var(--nv-r); }
.bus-sheet svg,.bus-ph { width:18px; height:18px; vertical-align:middle; flex-shrink:0; }
.bus-stop-row { display:flex; align-items:center; gap:6px; border-bottom:1px solid var(--nv-line); }
.bus-stop-row a { flex:1; min-width:0; min-height:44px; display:flex; flex-direction:column; justify-content:center; text-decoration:none; color:inherit; padding:5px 0; overflow-wrap:anywhere; }
.bus-star { width:44px; flex:none; }
/* A saved star is the shared gold favourite star (favourite.css), never a dark tile. */
.bus-sheet small,.bus-arrivals-popup small,.bus-age { color:var(--nv-muted); font-size:.75rem; line-height:1.4; }
.bus-sheet-head { display:flex; flex-direction:column; gap:6px; align-items:stretch; }
.bus-sheet-head>div { min-width:0; overflow-wrap:anywhere; }
/* Name on its own line, then code and freshness beneath it, so a long name never squeezes them into columns. */
.bus-sheet .bus-stop-title { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin:0; }
.bus-sheet .bus-stop-title h2 { flex:1 0 100%; margin:0; }
.bus-sheet .bus-stop-title small, .bus-sheet .bus-stop-title .bus-age { flex:none; margin:0; }
.bus-stop-toolbar { order:-1; display:flex; align-items:center; gap:4px; }
.bus-sheet-head button { width:44px; padding:0; flex:none; }
.bus-stop-toolbar { justify-content:flex-end; }
.bus-sheet-head:not(.bus-popup-head) .bus-stop-toolbar > :first-child { margin-right:auto; }
/* The stop's actions live here as icons (directions, Telegram, Where to?), smaller than a full-width row so the buses lead. */
.bus-stop-toolbar { gap:8px; flex-wrap:wrap; }
.bus-stop-toolbar button, .bus-stop-toolbar .bus-tool { width:40px; height:40px; min-height:40px; padding:0; flex:none; }
.bus-stop-toolbar .bus-tool { display:inline-grid; place-items:center; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised,#fff); color:var(--nv-ink); text-decoration:none; }
.bus-stop-toolbar .bus-tool:focus-visible { outline:2px solid var(--nv-ink); outline-offset:2px; }
.bus-stop-toolbar svg { width:18px; height:18px; }
/* Colour by state, not by job: every toolbar button is a neutral white tile, Where to? is solid ink, and only a saved star turns gold (favourite.css fill, pale gold tile, ink ring). */
.bus-stop-toolbar .bus-star[aria-pressed=true] { background:#fbe6a0; border-color:var(--nv-ink); }
.bus-stop-toolbar .bus-connect-open { border-color:var(--nv-ink); background:var(--nv-ink); color:#fff; }
/* More: a labelled button with a menu of 44px text rows (routes, Telegram alert, walking directions). */
.bus-more-wrap { position:relative; flex:none; }
.bus-stop-toolbar .bus-more { width:40px; padding:0; display:inline-grid; place-items:center; }
.bus-stop-toolbar .bus-more[aria-expanded=true] { background:var(--nv-accent); color:var(--nv-accent-ink); border-color:var(--nv-ink); }
.bus-more-menu { position:absolute; z-index:30; top:calc(100% + 6px); right:0; min-width:230px; padding:4px; display:grid; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised,#fff); box-shadow:var(--nv-shadow); }
.bus-more-menu[hidden] { display:none; }
.bus-stop-toolbar .bus-more-item { width:100%; height:auto; min-height:44px; display:flex; align-items:center; justify-content:flex-start; gap:10px; padding:0 10px; border:0; border-radius:var(--nv-r); background:none; color:var(--nv-ink); font:600 .875rem/1.2 var(--nv-font); text-align:left; text-decoration:none; }
.bus-stop-toolbar .bus-more-item:hover, .bus-stop-toolbar .bus-more-item:focus-visible { background:var(--nv-surface); outline:none; box-shadow:inset 0 0 0 2px var(--nv-ink); }
.bus-stop-toolbar .bus-more-item[aria-pressed=true] { background:#fbe6a0; }
.bus-stop-toolbar .bus-more-item svg { width:18px; height:18px; flex:none; }
.bus-stop-toolbar .bus-more::after, .bus-stop-toolbar .bus-more-item::after { content:none !important; }
.bus-stop-toolbar .bus-connect-open:hover { background:#000; }
/* Header buttons are icon-only: show their accessible name as a tooltip on hover/keyboard focus. */
.bus-sheet .bus-sheet-head button, .bus-stop-toolbar .bus-tool { position:relative; }
@media (hover:hover) {
  .bus-sheet .bus-sheet-head button:hover::after,.bus-sheet .bus-sheet-head button:focus-visible::after,.bus-stop-toolbar .bus-tool:hover::after,.bus-stop-toolbar .bus-tool:focus-visible::after { content:attr(aria-label); position:absolute; top:calc(100% + 6px); left:0; z-index:20; padding:5px 8px; border-radius:var(--nv-r); background:var(--nv-ink); color:#fff; font:600 .75rem/1.3 var(--nv-font); white-space:nowrap; pointer-events:none; box-shadow:0 4px 12px -4px rgba(28,36,56,.45); }
  /* Middle buttons centre their tooltip under themselves. */
  .bus-sheet-head:not(.bus-popup-head) .bus-stop-toolbar > :not(:first-child):not([data-share]):hover::after,.bus-sheet-head:not(.bus-popup-head) .bus-stop-toolbar > :not(:first-child):not([data-share]):focus-visible::after { left:50%; transform:translateX(-50%); }
  /* Open from the button's left edge so the first buttons stay inside the sheet; the share button, at the far right, opens leftwards. */
  .bus-sheet .bus-sheet-head [data-share]:hover::after,.bus-sheet .bus-sheet-head [data-share]:focus-visible::after,.bus-sheet .bus-sheet-head [data-conn-share]:hover::after,.bus-sheet .bus-sheet-head [data-conn-share]:focus-visible::after { left:auto; right:0; }
}
.bus-age { margin:4px 0 0; }
.bus-age[data-stale=true] { color:var(--nv-ink); }
.bus-sheet-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:8px 0; }
.bus-sheet-actions a,.bus-sheet-actions .bus-connect-open { min-width:0; min-height:44px; display:flex; justify-content:center; align-items:center; gap:4px; padding:4px; text-decoration:none; color:var(--nv-ink)!important; border:1px solid var(--nv-line); border-radius:var(--nv-r); font:600 .75rem/1.2 var(--nv-font); background:#fff; text-align:center; }
.bus-sheet-actions .bus-connect-open { font-weight:600; }
.bus-sheet-actions svg { width:16px; height:16px; }
.bus-arrivals-popup .bus-sheet-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.bus-list-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.bus-list-head h2 { margin:0; }
.bus-saved-services { display:flex; flex-wrap:wrap; gap:6px; }
.bus-saved-chip { min-width:48px; min-height:36px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:0 12px; border-radius:var(--nv-r); background:var(--nv-accent); color:var(--nv-ink); font-weight:700; font-size:.875rem; text-decoration:none; }
.bus-later-meta { display:flex; align-items:center; gap:3px; color:var(--nv-muted); font-size:9px; min-height:14px; }
.bus-later-meta .bus-crowd { font-size:0; gap:0; }
.bus-later-meta .bus-crowd-bars { gap:1px; }
.bus-later-meta .bus-crowd-bars i { width:3px; height:6px; }
.bus-later-meta .bus-crowd-bars i:nth-child(2) { height:9px; }
.bus-later-meta .bus-crowd-bars i:nth-child(3) { height:12px; }
.bus-crowd { display:inline-flex; align-items:center; gap:6px; font-size:.75rem; line-height:1.4; white-space:normal; }
.bus-crowd-bars { display:inline-flex; align-items:flex-end; gap:2px; flex:none; }
.bus-crowd-bars i { width:4px; height:9px; background:var(--nv-line); }
.bus-crowd-bars i:nth-child(2) { height:12px; }.bus-crowd-bars i:nth-child(3) { height:15px; }
.bus-crowd-bars i.on { background:var(--nv-ink); }
.bus-scheduled { display:inline-block; padding:2px 4px; border:1px solid var(--nv-line); border-radius:var(--nv-r); white-space:nowrap; }
.bus-service-summary { display:flex; align-items:center; gap:4px; min-height:64px; border-bottom:1px solid var(--nv-line); }
.bus-sheet .bus-summary-arrival,.bus-arrivals-popup .bus-summary-arrival { display:grid; grid-template-columns:56px minmax(0,1.4fr) repeat(2,minmax(0,1fr)); flex:1; min-width:0; min-height:64px; align-items:center; gap:4px; border:0; background:#fff; padding:4px 0; text-align:left; }
.bus-summary-service { display:grid; place-items:center; min-height:36px; padding:4px 2px; background:var(--nv-ink); color:#fff; border-radius:var(--nv-r); font-size:.875rem; white-space:nowrap; letter-spacing:-.01em; }
.bus-summary-service[data-len="5"] { font-size:.75rem; letter-spacing:-.03em; }
.bus-summary-service[data-len="6"] { font-size:.6875rem; letter-spacing:-.04em; }

.route-num { background:none; border:0; pointer-events:none; }
.route-num span { position:absolute; left:0; top:0; width:max-content; transform:translate(-50%,-50%); padding:2px 6px; border-radius:999px; background:var(--c); color:#fff; border:2px solid #fff; font:700 11px/1.2 var(--nv-font); white-space:nowrap; box-shadow:0 1px 3px rgba(28,36,56,.35); }
.bus-hours { margin:0; }
.bus-service .bus-schedule-toggle .bus-ph { flex:none; width:16px; height:16px; transition:transform .15s var(--nv-ease); }
.bus-service .bus-schedule-toggle[aria-expanded=true] .bus-ph { transform:rotate(180deg); }
.bus-hours-empty { margin:10px 0 0; color:var(--nv-muted); font-size:.875rem; }
.bus-hours-dir { padding-top:12px; }
.bus-hours-dir + .bus-hours-dir { margin-top:6px; border-top:1px solid var(--nv-line); }
.bus-sheet .bus-hours-title { margin:14px 0 4px; font-size:.6875rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--nv-muted); }
.bus-hours-dest { margin:0 0 4px; font-size:.8125rem; font-weight:700; }
.bus-hours-status { margin:0 0 10px; font-size:.8125rem; font-weight:600; line-height:1.35; }
.bus-days { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.bus-day { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"name time" "track track"; align-items:baseline; gap:6px 10px; min-width:0; font-size:.8125rem; color:var(--nv-muted); }
.bus-day > .bus-day-name { grid-area:name; min-width:0; overflow-wrap:anywhere; }
.bus-day > .bus-span { grid-area:track; min-width:0; }
.bus-day time { grid-area:time; min-width:0; text-align:end; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bus-day sup { margin-left:2px; font-size:.625rem; }
.bus-span { position:relative; display:block; height:6px; border-radius:3px; background:var(--nv-line); }
.bus-span i { position:absolute; top:0; bottom:0; border-radius:3px; background:var(--nv-muted); opacity:.5; }
.bus-span b { position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; border-radius:1px; background:var(--nv-ink); }
.bus-day.is-today { color:var(--nv-ink); font-weight:700; }
.bus-day.is-today .bus-span i { background:var(--nv-accent); opacity:1; }
.bus-hours-dir.is-sparse .bus-span i, .bus-hours-dir.is-sparse .bus-day.is-today .bus-span i { background:repeating-linear-gradient(90deg,var(--nv-muted) 0 3px,transparent 3px 6px); opacity:.55; }
.bus-hours-sparse { margin:14px 0 0; font-size:.8125rem; line-height:1.4; color:var(--nv-muted); }
.bus-hours-sparse strong { color:var(--nv-ink); }
.bus-hours.is-trips > .bus-hours-status { margin:14px 0 0; color:var(--nv-muted); font-weight:600; }
.bus-hours-now { margin:0 0 2px; }
.bus-hours-state { display:inline-block; margin:0 0 6px; padding:3px 9px; border-radius:8px; background:var(--nv-line); color:var(--nv-ink); font-size:.75rem; font-weight:700; }
.bus-hours-now.is-running .bus-hours-state { background:var(--nv-accent); }
.bus-hours-main { margin:0; font-size:1.375rem; font-weight:750; line-height:1.2; font-variant-numeric:tabular-nums; }
.bus-hours-sub { margin:4px 0 0; color:var(--nv-muted); font-size:.875rem; font-variant-numeric:tabular-nums; }
.bus-hours-now + .bus-trip-days { margin-top:14px; }
.bus-service .bus-hours-more-head { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--nv-line); color:var(--nv-muted); font-size:.75rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.bus-hours-more { padding-top:6px; }
.bus-trip-days { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.bus-trip-day { display:grid; gap:6px; color:var(--nv-muted); font-size:.8125rem; }
.bus-trip-day.is-today { color:var(--nv-ink); font-weight:700; }
.bus-trip-times { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.bus-trip-times li { min-width:3.75rem; padding:7px 10px; border:1px solid var(--nv-line); border-radius:8px; color:var(--nv-ink); font-size:.875rem; font-weight:600; font-variant-numeric:tabular-nums; text-align:center; }
.bus-trip-times li.is-past { color:var(--nv-muted); opacity:.55; }
.bus-trip-times li.is-next { border-color:var(--nv-ink); background:var(--nv-accent); font-weight:750; }
.bus-trip-times li.is-est time { text-decoration:underline dotted; text-underline-offset:4px; }
.bus-trip-times sup { margin-left:1px; font-size:.625rem; }
.bus-trip-none, .bus-trip-how, .bus-trip-source { margin:10px 0 0; color:var(--nv-muted); font-size:.75rem; line-height:1.4; }
.bus-trip-source { padding-top:10px; border-top:1px solid var(--nv-line); }
.bus-trip-source a { color:var(--nv-ink); text-underline-offset:3px; }
.bus-axis { display:block; margin-top:6px; font-size:.625rem; color:var(--nv-muted); font-variant-numeric:tabular-nums; }
.bus-axis > span:not(.bus-axis-ticks) { display:none; }
.bus-axis-ticks { display:flex; justify-content:space-between; }
.bus-freq { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; margin:0; }
.bus-freq div { display:flex; flex-direction:column; gap:2px; }
.bus-freq dt { display:flex; flex-direction:column; font-size:.75rem; font-weight:600; }
.bus-freq dt small { font-weight:400; color:var(--nv-muted); }
.bus-freq dd { margin:0; font-size:.875rem; font-weight:700; font-variant-numeric:tabular-nums; }
.bus-summary-column { display:flex; flex-direction:column; justify-content:center; min-width:0; gap:5px; }
.bus-summary-time { display:flex; align-items:baseline; gap:2px; white-space:nowrap; font-variant-numeric:tabular-nums; line-height:1.1; }
.bus-summary-next .bus-summary-time { font-size:24px; font-weight:750; color:var(--nv-ink); }
.bus-summary-later .bus-summary-time { font-size:15px; font-weight:500; color:var(--nv-muted); }
.bus-summary-time small { font-size:10px; font-weight:400; }
.bus-compact-markers { display:flex; align-items:center; gap:3px; height:14px; color:var(--nv-muted); }
.bus-compact-markers>span { display:inline-flex; align-items:center; flex:none; }
.bus-compact-markers .bus-ph { width:12px; height:12px; }
.bus-compact-markers .bus-crowd-bars { gap:1px; }
.bus-compact-markers .bus-crowd-bars i { width:3px; height:6px; }
.bus-compact-markers .bus-crowd-bars i:nth-child(2) { height:9px; }
.bus-compact-markers .bus-crowd-bars i:nth-child(3) { height:12px; }
.bus-skeleton { height:60px; margin:8px 0; border-radius:var(--nv-r); background:#eee; }
.bus-info-popup.bus-arrivals-popup { width:100%; padding:8px; background:#fff; max-height:55dvh; overflow-y:auto; }
.bus-arrivals-popup .bus-popup-head { padding-right:40px; }
.leaflet-container:has(.bus-arrivals-popup) a.leaflet-popup-close-button { width:44px!important; height:44px!important; top:4px!important; right:4px!important; padding:0!important; }
.bus-arrivals-popup .bus-popup-service { border-top:1px solid var(--nv-line); padding:10px 0; }
.bus-arrivals-popup .bus-popup-later { display:none; }
.bus-arrivals-popup .bus-popup-service.open .bus-popup-later { display:block; }
.bus-arrivals-popup .bus-popup-more { display:block; width:100%; min-height:44px; margin-top:4px; font-size:.75rem; }
.bus-arrivals-popup .bus-timeline { margin:0 0 8px; }
.bus-arrivals-popup .bus-arrival { margin:0; }
.top-search-container { max-width:min(420px,calc(100vw - 144px))!important; }
.bus-map-controls { position:fixed; right:12px; bottom:calc(24px + env(safe-area-inset-bottom)); z-index:1300; display:flex; flex-direction:column; align-items:stretch; gap:10px; width:44px; }
body.nv .bus-map-controls :is(.refresh-button,#weather-circle) { display:flex!important; align-items:center; justify-content:center; flex:0 0 44px; box-sizing:border-box!important; visibility:visible!important; position:static!important; inset:auto!important; width:44px!important; min-width:44px!important; max-width:44px!important; height:44px!important; min-height:44px!important; max-height:44px!important; margin:0!important; padding:0!important; opacity:1!important; pointer-events:auto!important; background:#fff!important; color:var(--nv-ink)!important; border:1px solid var(--nv-line)!important; border-radius:var(--nv-r)!important; cursor:pointer; transform:none!important; }
.bus-map-controls svg { display:block; width:22px!important; height:22px!important; }
.bus-map-controls #weather-emoji { display:flex; align-items:center; justify-content:center; line-height:1; font-size:22px; }
.bus-map-controls #weather-circle::after { display:none; }
.nv-more { display:none!important; }
@media(max-width:767px) {
 .bus-sheet { top:auto; bottom:0; left:0; width:100%; max-width:100%; max-height:48dvh; padding:12px 16px calc(16px + env(safe-area-inset-bottom)); border-radius:var(--nv-r) var(--nv-r) 0 0; }
 .bus-map-controls { bottom:calc(var(--bus-sheet-height,48dvh) + 12px); }
  .telegram-bot-button { display:none; }
 .bus-drawer-collapsed .bus-sheet { overflow:hidden; }
 /* Tall level: the usual max height is raised so the sheet fills most of the screen but always leaves map. */
 body.bus-drawer-full .bus-sheet { height:var(--bus-full,80dvh); max-height:var(--bus-full,80dvh); }
 .bus-sheet.bus-sheet-dragging { overflow:hidden; }
 .bus-drawer-collapsed .bus-sheet > :not(:first-child) { display:none; }
 /* The strip a view provides for the collapsed drawer: next buses, the best trip, or the trip being followed. */
 body.bus-drawer-collapsed .bus-sheet > .bus-compact:not(:empty) { display:flex; align-items:center; gap:8px; margin:0; padding:2px 0 6px; overflow-x:auto; scrollbar-width:none; cursor:pointer; }
 .top-search-container { width:calc(100% - 32px)!important; max-width:calc(100% - 32px)!important; left:16px!important; right:16px!important; transform:none!important; box-sizing:border-box; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
.bus-info-popup.bus-arrivals-popup .timeline-bus-number { background:var(--nv-accent)!important; color:var(--nv-ink)!important; }
.bus-nearby-arrivals { display:flex; flex-wrap:wrap; gap:4px 6px; font-size:.6875rem; margin-top:6px; color:var(--nv-muted); max-height:56px; overflow:hidden; }
.bus-eta-pill { display:inline-flex; align-items:center; gap:5px; padding:3px 5px 3px 0; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-surface); white-space:nowrap; }
.bus-eta-pill b { color:var(--nv-ink); background:var(--nv-accent); padding:3px 5px; border-radius:var(--nv-r); }
.bus-eta-pill strong { color:var(--nv-ink); font-weight:700; }
.bus-eta-pill[data-urgency=soon] { border-color:var(--nv-ok); }
.bus-eta-pill[data-urgency=soon] strong { color:var(--nv-ok); }
.bus-eta-pill[data-urgency=near] { background:color-mix(in srgb,var(--nv-accent) 18%,white); border-color:var(--nv-accent); }
.bus-eta-pill[data-urgency=unknown] strong { color:var(--nv-muted); font-weight:400; }
.bus-map-hint { position:fixed; left:50%; transform:translateX(-50%); z-index:1201; width:max-content; max-width:calc(100vw - 32px); display:flex; align-items:center; gap:8px; background:#fff; color:var(--nv-ink); border:1px solid var(--nv-line); border-radius:var(--nv-r); padding:10px 12px; box-sizing:border-box; font-size:.75rem; pointer-events:none; }
.bus-map-hint[hidden] { display:none; }
body.bus-drawer-full .bus-map-hint, body.bus-drawer-full .bus-location-note { display:none; } /* tall sheet: the map is a strip, so tap hints about it do not apply */
@keyframes bus-locate-pulse { 50% { opacity:.45; } }
.bus-map-controls .refresh-button[aria-busy=true] svg { animation:bus-locate-pulse .8s ease-in-out infinite; }
@media(prefers-reduced-motion:reduce) { .bus-map-controls .refresh-button[aria-busy=true] svg { animation:none; opacity:.6; } }

/* My-location marker and its tooltip, in the site theme */
.bus-user-icon { background: none; border: 0; }
.bus-user-dot { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--nv-accent); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--nv-ink), 0 2px 8px rgba(28,36,56,.35); }
.bus-user-dot::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid var(--nv-accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .bus-user-dot::after { animation: bus-user-ping 2.4s ease-out infinite; } }
@keyframes bus-user-ping { from { transform: scale(.55); opacity: .7; } to { transform: scale(1.1); opacity: 0; } }
.leaflet-popup.bus-user-popup-wrap .leaflet-popup-content-wrapper, .leaflet-popup.bus-user-popup-wrap .leaflet-popup-content { width: auto !important; min-width: 0; }
.leaflet-popup.bus-user-popup-wrap .leaflet-popup-content-wrapper { background: var(--nv-ink); color: #fff; border-color: var(--nv-ink); box-shadow: 0 6px 16px -8px rgba(28,36,56,.5); }
.leaflet-popup.bus-user-popup-wrap .leaflet-popup-content { margin: 8px 12px; }
.bus-user-popup { font-size: .8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; color: #fff; }
.bus-compact-markers .bus-deck-code { font-size:11px; font-weight:700; letter-spacing:.02em; color:var(--nv-ink); }
.bus-later-meta>span { display:inline-flex; align-items:center; }
.bus-later-meta .bus-ph { width:12px; height:12px; }

/* Single-service arrival cards: big time left, crowd on top, deck/accessibility/status chips below */

/* Compact rows: everything on one line */

/* Nearby list: calm neutral pills, one accent only on service numbers */
.bus-eta-list { display:flex; flex-wrap:wrap; gap:4px 6px; }
.bus-eta-pill { padding:0; border:0; background:none; gap:4px; font-size:.78rem; }
.bus-eta-pill b { background:none; padding:0; color:var(--nv-ink); font-weight:800; }
.bus-eta-pill strong { color:var(--nv-muted); font-weight:600; }
.bus-eta-pill+.bus-eta-pill::before { content:""; align-self:center; width:1px; height:10px; margin-right:2px; background:var(--nv-line); }
.bus-eta-count { display:block; margin-top:3px; font-size:.68rem; color:var(--nv-muted); }
.bus-nearby-arrivals { display:block; max-height:none; }

/* Favourites sit on a tinted panel; nearby stops stay on the page background */
.bus-fav-block { margin:0 -10px 14px; padding:4px 10px 6px; border-radius:var(--nv-r); background:color-mix(in srgb,var(--nv-accent) 12%,var(--nv-raised)); }
.bus-fav-block h3 { margin-top:8px; }

/* Crowd colour coding, text always stays alongside */
.bus-crowd-bars[data-level="1"] i.on, [data-level="1"]>.bus-crowd-bars i.on { background:var(--nv-ok); }
.bus-crowd-bars[data-level="2"] i.on, [data-level="2"]>.bus-crowd-bars i.on { background:var(--nv-warn); }
.bus-crowd-bars[data-level="3"] i.on, [data-level="3"]>.bus-crowd-bars i.on { background:var(--nv-bad); }
.bus-arrival-info .bus-crowd[data-level="1"]>span:not(.bus-crowd-bars) { color:var(--nv-ok); }
.bus-arrival-info .bus-crowd[data-level="2"]>span:not(.bus-crowd-bars) { color:var(--nv-warn); }
.bus-arrival-info .bus-crowd[data-level="3"]>span:not(.bus-crowd-bars) { color:var(--nv-bad); }

/* Single-service row: deck, wheelchair and Est./Live right-aligned */
.bus-eta-star { display:inline-flex; width:10px; height:10px; margin-left:-1px; color:var(--nv-accent-ink,#8a6a12); }
.bus-eta-star svg { width:10px; height:10px; fill:currentColor; }

/* Tap a live row to see the bus on the map */
.bus-arrival-wrap { border-bottom:1px solid var(--nv-line); }
.bus-arrival-wrap .bus-arrival { border-bottom:0; }
button.bus-arrival.is-trackable { width:100%; border:0; background:none; font:inherit; color:inherit; cursor:pointer; min-height:56px; }
button.bus-arrival.is-trackable:active { background:var(--nv-surface); }
.bus-arrival-wrap.is-tracked { background:color-mix(in srgb,var(--nv-accent) 12%,var(--nv-raised)); margin:0 -8px; padding:0 8px; border-radius:var(--nv-r); }
.bus-track-note { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin:0; padding:0 0 10px; font-size:.78rem; font-weight:650; color:var(--nv-ink); }
.bus-track-note .bus-ph { width:16px; height:16px; }
.bus-track-note>span:first-of-type { display:inline-flex; }
.bus-track-age { margin-left:auto; font-weight:500; color:var(--nv-muted); }
.bus-track-age[data-fresh="false"] { color:var(--nv-warn); }
.bus-track-icon { background:none; border:0; }
.bus-track-pin { position:relative; width:44px; height:44px; display:grid; place-items:center; align-content:center; border-radius:50%; background:var(--bc,var(--nv-ok)); color:#fff; border:3px solid #fff; box-shadow:0 0 0 2px var(--bc,var(--nv-ok)), 0 4px 12px rgba(28,36,56,.4); }
.bus-track-pin::after { content:""; position:absolute; inset:-3px; border-radius:50%; border:2px solid var(--bc,var(--nv-ok)); opacity:0; animation:bus-live-pulse 2s ease-out infinite; pointer-events:none; }
@keyframes bus-live-pulse { 0% { transform:scale(1); opacity:.7; } 100% { transform:scale(1.9); opacity:0; } }
@media (prefers-reduced-motion: reduce) { .bus-track-pin::after { animation:none; } }
.bus-track-pin .bus-ph { width:18px; height:18px; }
.bus-track-pin b { font-size:.62rem; line-height:1; font-weight:800; }

/* The stop card lives in the side sheet; the map popup would only duplicate it (and clip on desktop). */
.leaflet-popup:has(.bus-info-popup) { display:none; }
/* You are here: blue, distinct from yellow stops and coloured buses. */
.bus-user-dot { background:#2f6fed; box-shadow:0 0 0 1.5px #1c4fb8, 0 2px 8px rgba(28,36,56,.35); }
.bus-user-dot::after { border-color:#2f6fed; }
/* Next three buses of the open service: small live pins with a time, crowd and deck tag; tap one to track it. */
.bus-live-icon { background:none; border:0; }
.bus-live-pin { position:relative; width:26px; height:26px; margin:2px; display:grid; place-items:center; border-radius:50%; background:var(--nv-ok); color:#fff; border:2px solid #fff; box-shadow:0 0 0 1px var(--nv-ok), 0 2px 5px rgba(28,36,56,.3); box-sizing:border-box; }
.bus-live-pin .bus-ph { width:13px; height:13px; }
.bus-live-pin b { position:absolute; right:-6px; top:-6px; min-width:14px; height:14px; padding:0 3px; box-sizing:border-box; display:grid; place-items:center; border-radius:7px; background:#fff; color:var(--nv-ok); border:1.5px solid var(--nv-ok); font-size:.6rem; font-weight:800; line-height:1; }
.bus-live-pin::after { content:""; position:absolute; inset:-2px; border-radius:50%; border:1.5px solid var(--nv-ok); opacity:0; animation:bus-live-pulse 2.6s ease-out infinite; pointer-events:none; }
.bus-live-tag { position:absolute; left:34px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:5px; padding:2px 6px; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised, #fff); color:var(--nv-ink); font-size:.6875rem; font-weight:700; line-height:16px; white-space:nowrap; box-shadow:0 1px 3px rgba(28,36,56,.2); pointer-events:none; font-variant-numeric:tabular-nums; }
.bus-live-tag .bus-crowd-bars { height:10px; gap:1px; }
.bus-live-tag .bus-crowd-bars i { width:3px; height:5px; }
.bus-live-tag .bus-crowd-bars i:nth-child(2) { height:7px; }
.bus-live-tag .bus-crowd-bars i:nth-child(3) { height:10px; }
.bus-live-tag em { font-style:normal; font-weight:600; color:var(--nv-muted); }
@media (prefers-reduced-motion: reduce) { .bus-live-pin::after { animation:none; } }
.bus-pill-meta { display:inline-flex; align-items:center; gap:3px; margin-left:1px; }
.bus-pill-meta .bus-crowd-bars { gap:1px; height:9px; }
.bus-pill-meta .bus-crowd-bars i { width:3px; height:4px; }
.bus-pill-meta .bus-crowd-bars i:nth-child(2) { height:6px; }
.bus-pill-meta .bus-crowd-bars i:nth-child(3) { height:9px; }
.bus-eta-list { gap:4px 12px; align-items:center; }
.bus-eta-pill+.bus-eta-pill::before { display:none; }
.bus-eta-list .bus-eta-count { display:inline; margin:0; }
.bus-eta-list [hidden] { display:none; }
/* The side sheet covers the left edge of the map on desktop; keep zoom in/out clear of it. */
@media (min-width:768px) { .bus-sheet ~ * .leaflet-top.leaflet-left, body.nv .leaflet-top.leaflet-left { left:408px; } }
/* Desktop: sheet, zoom and search share one top row. Search sits right of the zoom stack instead of centred, so the sheet can start at the top. */
@media (min-width:768px) {
  .bus-sheet { top:calc(var(--nv-bar-h) + 11px); }
  .top-search-container { left:468px!important; transform:none!important; width:min(420px,calc(100vw - 468px - 76px))!important; max-width:none!important; }
}

/* Home rows use only the real device fix; cached arrivals always retain their age. */
.bus-stop-distance:empty,.bus-row-age:empty { display:none; }
.bus-row-age { display:block; color:var(--nv-muted); font-size:.6875rem; line-height:1.4; }
.bus-no-service { display:block; font-size:.625rem!important; line-height:1.3; overflow-wrap:anywhere; }
.bus-age[data-stale=true] { padding:6px 8px; border-inline-start:3px solid var(--nv-accent); background:var(--nv-bg,#f7f8fa); }

.bus-compact { display:none; }
.bus-compact::-webkit-scrollbar { display:none; }
.bus-compact-item { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 10px; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:#fff; color:var(--nv-ink); font-size:.875rem; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bus-compact-item b { padding:2px 6px; border-radius:var(--nv-r); background:var(--nv-ink); color:#fff; font-size:.8125rem; }
.bus-compact-item.is-lead { border-color:var(--nv-accent); background:var(--nv-accent); }
.bus-compact-item.is-alert { border-color:var(--nv-ink); }
.bus-compact-step { max-width:62%; overflow:hidden; text-overflow:ellipsis; }
.bus-compact-place { flex:none; max-width:42%; overflow:hidden; text-overflow:ellipsis; color:var(--nv-muted); font-size:.8125rem; font-weight:600; white-space:nowrap; }

.bus-compact-est { color:var(--nv-muted); font-size:.6875rem; font-weight:600; }
.bus-compact-item.is-lead .bus-compact-est { color:var(--nv-ink); }

/* Stop list: the nearest stop is one bigger card, every other row is compact (one line of services); stars are bare until saved. */
.bus-stop-row.is-feature { margin:0 -8px; padding-inline:8px; border-bottom:0; border-radius:var(--nv-r); background:var(--nv-accent-soft,#fdf3d3); }
.bus-stop-row a { padding:8px 0; }
.bus-stop-row strong { font-size:1rem; }
.bus-stop-row .bus-nearby-arrivals { margin-top:5px; }
.bus-stop-row .bus-star { border-color:transparent; background:none; box-shadow:none; color:var(--nv-muted); }

/* A service with nothing due is one calm line (why, and when) instead of three dashes; its star is bare like the stop list's. */
.bus-service-summary.is-quiet, .bus-service-summary.is-quiet .bus-summary-arrival { min-height:56px; }
.bus-sheet .bus-service-summary.is-quiet .bus-summary-arrival { grid-template-columns:56px minmax(0,1fr); gap:12px; }
.bus-quiet-text { color:var(--nv-muted); font-size:.8125rem; line-height:1.35; }
.bus-quiet-text b { color:var(--nv-ink); font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bus-service-summary.is-quiet .bus-summary-service { background:#fff; color:var(--nv-ink); box-shadow:inset 0 0 0 1.5px var(--nv-ink); }
.bus-service-summary .bus-star { border-color:transparent; background:none; box-shadow:none; }
/* Nearby row: quiet list under the next buses; hidden with the other sheet children when the phone drawer is collapsed. */
.bus-nearby { margin:12px 0 2px; padding:12px 0 0; border-top:1px solid var(--nv-line); }
.bus-nearby h3 { margin:0 0 6px; font-size:.75rem; font-weight:700; color:var(--nv-muted); text-transform:none; }
.bus-nearby ul { list-style:none; margin:0; padding:0; }
.bus-nearby li { margin:0; padding:0; }
.bus-sheet .bus-place-row { display:flex; align-items:center; gap:10px; width:100%; min-height:64px; padding:10px 0; border:0; border-bottom:1px solid var(--nv-line); border-radius:0; background:transparent; text-align:left; line-height:1.35; }
.bus-sheet .bus-place-row:hover { background:var(--nv-raised,#f7f7f5); text-decoration:none; }
.bus-place-row:focus-visible { outline:2px solid var(--nv-ink); outline-offset:2px; }
.bus-place-kind { flex:none; width:54px; padding:5px 4px; border-radius:4px; background:#fbf3db; color:var(--nv-ink); text-align:center; font-size:.625rem; font-weight:700; }
.bus-place-detail { display:flex; flex:1; min-width:0; flex-wrap:wrap; align-items:center; gap:3px 6px; }
.bus-place-detail strong { font-size:.8125rem; font-weight:650; overflow-wrap:anywhere; }
.bus-place-detail small { flex-basis:100%; font-size:.6875rem; }
.bus-place-detail .mrt-codes { display:inline-flex; gap:3px; margin:0; }
.bus-place-detail .mrt-codes b { padding:2px 4px; border-radius:3px; background:var(--nv-ink); color:#fff; font-size:.625rem; }
.bus-nearby-source { display:block; margin-top:8px; font-size:.625rem!important; }
.bus-place-pin span { display:block; width:24px; height:24px; border:4px solid var(--nv-ink,#1c2438); border-radius:50%; background:var(--nv-accent,#e9b83a); box-shadow:0 0 0 3px #fff; }
.nv .leaflet-popup-content .bus-walk-popup .bus-walk-result { margin:0; font-size:.875rem; line-height:1.4; }
.bus-walk-result small { display:block; margin-top:4px; }
.bus-stop-code { display:inline-block; margin-right:5px; padding:3px 6px; border-radius:3px; background:var(--nv-ink); color:var(--nv-accent); font-size:.6875rem; letter-spacing:.04em; font-variant-numeric:tabular-nums; }
.bus-walk-popup > small { color:var(--nv-muted); font-size:.625rem; line-height:1.4; }
.nv .leaflet-popup-content .bus-walk-popup .mrt-codes { margin:0; }




.bus-nearby { margin:8px 0 0; padding:0; border-top:0; }
.bus-nearby-toggle { position:relative; display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:0; border:0; background:none; color:var(--nv-muted); font:inherit; font-size:.75rem; font-weight:600; cursor:pointer; }
.bus-nearby-toggle::after { content:""; position:absolute; inset:-8px -8px; }
.bus-nearby-toggle b { font-weight:600; color:var(--nv-ink); }
.bus-nearby-toggle i { width:6px; height:6px; margin-top:-3px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.bus-nearby-toggle[aria-expanded="true"] i { margin-top:3px; transform:rotate(-135deg); }
.bus-nearby-toggle:focus-visible { outline:2px solid var(--nv-ink); outline-offset:2px; }
.bus-nearby-body { margin-top:4px; }
.bus-sheet .bus-nearby-toggle { min-height:28px; width:auto; padding:0; border:0; border-radius:0; background:none; box-shadow:none; color:var(--nv-muted); font-size:.75rem; font-weight:600; line-height:1.2; }
.bus-sheet .bus-nearby-toggle b { font-size:inherit; }

/* Calm pass 2: quiet schedule row, unboxed toolbar, tighter arrival rows, one-line MRT row */
.bus-stop-toolbar { gap:4px; }
.bus-sheet-head { gap:4px; }
.bus-sheet .mrt-nearby.bus-place-row { min-height:44px; padding:6px 0; }
.bus-sheet .mrt-nearby .bus-place-kind { display:none; }
.bus-sheet .mrt-nearby .bus-place-detail { flex-wrap:wrap; gap:0 8px; }
.bus-sheet .mrt-nearby .bus-place-detail small { flex-basis:auto; }

/* Usually busy and Around this stop (stop sheet) */
.bus-profile-bars { display:grid; grid-template-columns:repeat(24,1fr); align-items:end; gap:2px; height:56px; }
.bus-profile-bars i { display:block; height:var(--h,3%); min-height:2px; border-radius:2px 2px 0 0; background:#c9c9c9; transform-origin:bottom; }
.bus-profile-bars.is-new i { animation:bus-bar-grow .5s cubic-bezier(.16,1,.3,1) both; animation-delay:calc(var(--i,0) * 14ms); }
.bus-profile-bars.is-loading { height:56px; }
.bus-profile-bars.is-loading i { height:35%; background:#ececec; }
.bus-profile-bars.is-loading i:nth-child(3n) { height:60%; }
.bus-profile-axis { display:grid; grid-template-columns:repeat(4,1fr); margin-top:4px; font-size:.625rem; color:var(--nv-muted); text-align:left; }
.bus-around-note { margin:0; font-size:.8125rem; color:var(--nv-muted); }
.bus-around-retry { min-height:44px; padding:0 12px; font-size:.75rem; font-weight:600; }
.bus-around-list { list-style:none; margin:4px 0 0; padding:0; }
.bus-around-list li { padding:0; font-size:.875rem; }
.bus-around-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; color:var(--nv-ink); text-decoration:none; }
.bus-around-row span { white-space:nowrap; color:var(--nv-muted); }
.bus-around-row strong { font-weight:500; text-align:right; }
a.bus-around-row:active { opacity:.6; }
.bus-around-list li.bus-around-muted { padding:12px 0; color:var(--nv-muted); }
.bus-around-list li.bus-around-flood { display:flex; flex-direction:column; gap:2px; margin-bottom:6px; padding:10px 12px; border:1px solid var(--nv-ink); border-radius:var(--nv-r); background:var(--nv-accent); color:var(--nv-ink); }
.bus-around-list.is-loading li { min-height:36px; margin-bottom:6px; border-radius:var(--nv-r); background:#f1f1f1; }
.bus-around-links { margin-top:2px; }
.bus-around-more { border-top:1px solid var(--nv-line); }
.bus-around-more > summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; list-style:none; font-size:.875rem; }
.bus-around-more > summary::-webkit-details-marker { display:none; }
.bus-around-more > summary span { color:var(--nv-muted); }
.bus-around-more > summary em { font-style:normal; padding-right:18px; background:no-repeat right center/10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23555a62' stroke-width='1.5'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E"); }
.bus-around-more[open] > summary em { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23555a62' stroke-width='1.5'%3E%3Cpath d='M2 6.5l3-3 3 3'/%3E%3C/svg%3E"); }
.bus-around-more ul { margin:0 0 6px; padding:0; list-style:none; }
.bus-around-more li { padding:0; font-size:.75rem; color:var(--nv-muted); }
.bus-around-more li a { display:inline-flex; align-items:center; min-height:44px; margin-right:4px; color:var(--nv-ink); font-size:.875rem; font-weight:500; text-underline-offset:3px; }
.bus-around-all { display:flex; align-items:center; min-height:44px; border-top:1px solid var(--nv-line); color:var(--nv-muted); font-size:.8125rem; text-underline-offset:3px; }
.bus-route-update { margin:8px 0; padding:8px 10px; border:1px solid var(--nv-line); border-radius:var(--nv-r); font-size:.8125rem; }
.bus-route-update p { margin:0; }
@keyframes bus-bar-grow { from { transform:scaleY(.05); opacity:0; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion: reduce) { .bus-profile-bars.is-new i { animation:none; } .bus-around-list a:active { transform:none; } }
.bus-stop-toolbar .bus-more-item { border-color:transparent; background:none; }
.bus-stop-toolbar .bus-more-item[aria-pressed=true] { background:#fbe6a0; }

.bus-sheet-head:not(.bus-popup-head) .bus-stop-toolbar { margin-bottom:12px; }
.bus-stop-toolbar .bus-more-wrap { width:40px; }

/* ===== Stop sheet: single source of truth for the sheet's layout =====
   Scale: 20px between sections (--sec-gap), 12px inside one, 8px between siblings.
   Controls: 36px visual with a 44px hit area; list rows 44px (arrival rows 56px).
   Type: 22 arrival time, 16 stop and service names, 15 section headings, 14 row text, 12 notes.
   Lines: one hairline per section boundary and between list rows, never two together. */
.bus-sheet { --sec-gap:20px; }

/* Toolbar: icons are borderless, "Where to?" is the one filled button, a saved star is the one gold one. */
.bus-sheet-head .bus-stop-toolbar button:not(.bus-connect-open):not(.bus-more-item), .bus-sheet-head .bus-stop-toolbar .bus-tool:not(.bus-connect-open) { border-color:transparent; background:transparent; box-shadow:none; color:var(--nv-ink); }
@media (hover:hover) { .bus-sheet-head .bus-stop-toolbar button:not(.bus-connect-open):not(.bus-more-item):hover, .bus-sheet-head .bus-stop-toolbar .bus-tool:not(.bus-connect-open):hover { background:var(--nv-surface); } }
.bus-sheet .bus-sheet-head .bus-stop-toolbar .bus-star[aria-pressed=true] { background:#fbe6a0; border-color:var(--nv-ink); }
.bus-sheet .bus-sheet-head .bus-stop-toolbar .bus-more[aria-expanded=true] { background:var(--nv-accent); border-color:var(--nv-ink); color:var(--nv-accent-ink); }

/* Service switcher: All services and the chips are the same 36px control. */
.bus-service-switcher { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; gap:8px; margin:0; padding:12px 0 0; background:#fff; }
.bus-sheet .bus-all-services, .bus-sheet .bus-service-chips button { position:relative; flex:none; display:flex; align-items:center; gap:6px; height:36px; min-height:36px; padding:0 12px; font-size:.875rem; font-weight:500; line-height:1; white-space:nowrap; }
.bus-sheet .bus-all-services::after, .bus-sheet .bus-service-chips button::after { content:""; position:absolute; inset:-4px 0; }
.bus-sheet .bus-all-services[aria-pressed=true], .bus-sheet .bus-service-chips button[aria-pressed=true] { background:var(--nv-accent); border-color:var(--nv-accent); }
.bus-service-chips { position:relative; min-width:0; display:flex; flex:1; gap:8px; overflow-x:auto; overscroll-behavior-inline:contain; padding:0; scrollbar-width:none; --fade-start:0px; --fade-end:0px; -webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent 100%); mask-image:linear-gradient(to right,transparent 0,#000 var(--fade-start),#000 calc(100% - var(--fade-end)),transparent 100%); }
.bus-service-chips::-webkit-scrollbar { display:none; }
/* A chip cut off by the edge fades out: the fade is the cue that the strip scrolls sideways. */
.bus-service-chips[data-start=true] { --fade-start:28px; }
.bus-service-chips[data-end=true] { --fade-end:36px; }
.bus-service-chips svg { width:14px; height:14px; }

/* Service card: title, arrivals, then two 44px rows (Schedule, Remind me). */
.bus-service { margin:var(--sec-gap) 0 0; }
.bus-service-title { display:flex; gap:6px; align-items:center; }
.bus-service-title button:first-child { display:flex; flex:1; min-width:0; gap:8px; align-items:baseline; min-height:36px; padding:0; border:0; background:none; box-shadow:none; text-align:left; }
.bus-service-title strong { flex:none; font-size:1rem; color:var(--nv-ink); }
.bus-service-title button>span { color:var(--nv-muted); font-size:.8125rem; line-height:1.4; overflow-wrap:anywhere; }
.bus-service-title .bus-star-service { display:inline-flex; align-items:center; justify-content:center; width:36px; min-width:36px; height:36px; min-height:36px; padding:0; border:0; background:none; box-shadow:none; }
.bus-service-title .bus-star-service svg:first-child { display:none; }
.bus-service-title .bus-star-service svg:last-child { width:20px; height:20px; }

.bus-arrival { display:grid; grid-template-columns:minmax(78px,max-content) minmax(0,1fr); align-items:center; gap:14px; min-height:56px; padding:6px 0; border-bottom:0; text-align:left; }
.bus-arrival-time { font-size:1.375rem; font-weight:800; letter-spacing:-.01em; line-height:1.2; white-space:nowrap; color:var(--nv-ink); font-variant-numeric:tabular-nums; }
.bus-arrival-info { min-width:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:6px 8px; }
.bus-arrival-info .bus-detail-main, .bus-arrival-info .bus-arrival-meta { display:contents; }
.bus-arrival-info .bus-crowd { flex:0 1 auto; gap:6px; min-height:0; font-size:.8125rem; font-weight:650; line-height:1; color:var(--nv-ink); }
.bus-arrival-info .bus-crowd-bars, .bus-arrival-info .bus-crowd>span:not(.bus-crowd-bars) { display:inline-flex; align-items:center; height:16px; line-height:1; white-space:nowrap; }
.bus-arrival-info .bus-crowd-bars { align-self:center; }
.bus-arrival-info .bus-crowd-bars i { width:4px; height:8px; }
.bus-arrival-info .bus-crowd-bars i:nth-child(2) { height:12px; }
.bus-arrival-info .bus-crowd-bars i:nth-child(3) { height:16px; }
.bus-arrival-info .bus-deck, .bus-arrival-info .bus-scheduled { min-height:0; padding:0; border:0; background:none; font-size:.75rem; font-weight:500; color:var(--nv-muted); white-space:nowrap; }
.bus-arrival-info .bus-deck { flex:none; margin-left:auto; }
.bus-arrival-info .bus-scheduled { text-transform:uppercase; letter-spacing:.02em; }
.bus-arrival-info .bus-arrival-meta>span[aria-label="Wheelchair accessible"] { display:inline-flex; align-items:center; flex:none; color:var(--nv-muted); }
.bus-arrival-info .bus-arrival-meta .bus-ph { width:16px; height:16px; }
/* Live GPS is a quiet green pin (tap the row to see the bus); estimates say "Est.". No "LIVE" label. */
.bus-arrival-info .bus-live { display:inline-flex; align-items:center; flex:none; min-height:0; padding:0; border:0; color:var(--nv-ok); }
@media (max-width:420px) { .bus-arrival { grid-template-columns:minmax(70px,max-content) minmax(0,1fr); gap:10px; } .bus-arrival-time { font-size:1.3rem; } }

.bus-card-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin:8px 0 0; padding:0; border-top:1px solid var(--nv-line); }
.bus-service .bus-schedule-toggle { flex:1; display:inline-flex; align-items:center; justify-content:flex-start; gap:6px; min-height:44px; padding:0; border:0; background:none; color:var(--nv-ink); font-size:.9375rem; font-weight:600; text-align:left; box-shadow:none; }
.bus-route-link { flex:none; padding:0; border:0; color:var(--nv-muted); font-size:.875rem; font-weight:500; line-height:44px; text-underline-offset:3px; }
.bus-arrival-wrap:has(+ .bus-card-foot), .bus-arrival-wrap:last-child, .bus-service-summary:last-of-type { border-bottom:0; }
.bus-service .notify-entry { min-height:44px; margin:0; padding:0; border-top:1px solid var(--nv-line); border-bottom:0; font-size:.9375rem; font-weight:600; }
.bus-service .notify-entry > svg { display:none; }

/* Usually busy and Around this stop. */
.bus-around { margin:var(--sec-gap) 0 0; padding-top:var(--sec-gap); border-top:1px solid var(--nv-line); }
.bus-service ~ .bus-around { margin-top:8px; }
.bus-around h3 { margin:0; font-size:.9375rem; font-weight:600; letter-spacing:-.01em; color:var(--nv-ink); text-transform:none; }
.bus-around-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.bus-around-days { display:inline-flex; gap:4px; }
.bus-around-days .nv-seg-item { position:relative; min-height:36px; padding-inline:12px; font-size:.875rem; line-height:1; }
.bus-around-days .nv-seg-item::after { inset:-4px 0; }
.bus-around .bus-around-title { margin-top:var(--sec-gap); padding-top:var(--sec-gap); border-top:1px solid var(--nv-line); }
.bus-around-title + .bus-around-rows .bus-around-list { margin-top:8px; }
.bus-around-more:first-child { border-top:0; }
/* Peak hour is ink, the current hour is the one yellow bar. */
.bus-profile-bars i.is-peak { background:var(--nv-ink); }
.bus-profile-bars i[data-now="true"] { background:var(--nv-accent); box-shadow:inset 0 0 0 1px var(--nv-ink); }
.bus-profile-line { margin:12px 0 0; font-size:.875rem; }
.bus-around-source { display:block; margin:4px 0 0; font-size:.75rem; line-height:1.45; color:var(--nv-muted); }
