* { box-sizing: border-box; }
body.nv { overflow: hidden; --nv-r: 6px; --nv-accent: #e9b83a; background: #fff; color: #202124; }
#map { height: calc(100dvh - var(--nv-bar-h)); width: 100%; }
.bike-search { position: fixed; top: calc(var(--nv-bar-h) + 12px); left: 12px; z-index: 1010; width: min(380px, calc(100vw - 80px)); }
.bike-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d8dadd; border-radius: var(--nv-r); background: #fff; font: inherit; }
#bike-onemap-search-results { max-height: 35dvh; overflow: auto; margin-top: 4px; border-radius: var(--nv-r); }
#bike-onemap-search-results:not(:empty) { padding: 4px; background: #fff; border: 1px solid #121316; box-shadow: 0 24px 48px -24px rgba(28, 36, 56, .4); }
.top-search-result { display: block; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: #121316; text-align: left; font: inherit; cursor: pointer; }
.top-search-result strong, .top-search-result span { display: block; }
.top-search-result strong { font-size: .9375rem; font-weight: 600; }
.top-search-result span { font-size: .8125rem; color: #64686e; }
.top-search-result:hover, .top-search-result:focus-visible { background: var(--nv-accent); outline: none; }
.top-search-result:hover span, .top-search-result:focus-visible span { color: #121316; }
.bike-panel { position: fixed; z-index: 1000; left: 12px; top: calc(var(--nv-bar-h) + 68px); bottom: 12px; width: 380px; max-width: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid #d8dadd; border-radius: var(--nv-r); overflow: hidden; }
.bike-panel-head { flex-shrink: 0; padding: 12px 12px 0; }
.bike-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.bike-panel h1 { font-size: 18px; line-height: 1.2; font-weight: 700; margin: 0; min-width: 0; }
.nv .bike-plan { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--nv-r); background: none; color: var(--nv-ink); font: inherit; cursor: pointer; }
.bike-plan-face { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--nv-r); background: var(--nv-accent); color: var(--nv-accent-ink); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.bike-plan-face svg { width: 18px; height: 18px; flex: none; }
.bike-plan:hover .bike-plan-face { filter: brightness(1.05); }
.nv .map-link, .nv .rack-more, .nv #sheet-toggle { min-height: 44px; margin: 0; border: 1px solid #d8dadd; border-radius: var(--nv-r); background: #fff; padding: 8px 10px; color: #202124; font: inherit; cursor: pointer; }
/* Layer chips: one scrolling row. The pill is 32px tall (::before); the button around it is 44px so it stays easy to hit. */
.bike-chips { display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; margin: 0 -12px; padding: 0 8px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.bike-chips::-webkit-scrollbar { display: none; }
.nv .bike-chips button { position: relative; z-index: 0; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 14px; border: 0; background: none; color: var(--nv-ink); font: inherit; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer; }
.nv .bike-chips button::before { content: ""; position: absolute; z-index: -1; inset: 6px 4px; border: 1px solid var(--nv-line); border-radius: var(--nv-r); background: #fff; }
.bike-chips svg { width: 16px; height: 16px; flex-shrink: 0; }
.nv .bike-chips button:hover::before { background: var(--nv-surface); }
.nv .bike-chips button[aria-pressed="true"] { font-weight: 600; }
.nv .bike-chips button[aria-pressed="true"]::before { background: var(--nv-accent); border-color: var(--nv-accent); }
.nv .bike-chips button[data-active="true"]::before { background: #fff2cf; border-color: var(--nv-accent); }
.nv .bike-chips button[aria-expanded="true"]::before { border-color: var(--nv-ink); }
.bike-chips button:focus-visible { outline-offset: -4px; }
.bike-meta { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--nv-muted); }
.bike-caveat { margin: 0; padding-bottom: 8px; font-size: 11px; line-height: 1.4; color: var(--nv-muted); }
.bike-meta[hidden], .bike-caveat[hidden], #map-status[hidden], #updated[hidden] { display: none; }
#updated[data-stale="true"], #map-status[data-state="error"] { color: var(--nv-ink); font-weight: 600; }
#bike-sheet-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#rack-list, #closures-list { overflow: visible; }
#rack-list[hidden], #closures-list[hidden], #map-status[hidden], .bike-segments[hidden] { display: none; }
.bike-segments { display: flex; gap: 0; margin: 0 -12px; padding: 0 12px; border-bottom: 1px solid var(--nv-line); }
.nv .bike-segments button { min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; color: var(--nv-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nv .bike-segments button[aria-pressed="true"] { color: var(--nv-ink); box-shadow: inset 0 -3px 0 var(--nv-accent); }
.bike-segments button:focus-visible { outline-offset: -3px; }
.closure-note { margin: 0; padding: 0 12px; border-top: 1px solid #e8e9eb; font-size: 12px; line-height: 1.5; color: #64686e; }
.closure-note summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.closure-note p { margin: 0 0 12px; }
.closure-age { margin: 0; padding: 0 12px 8px; font-size: 11px; color: #64686e; }
.nv .closure-select { display: block; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #202124; text-align: left; font: inherit; }
.closure-row strong { display: block; font-size: 15px; line-height: 1.4; }
.closure-dates, .closure-dept { margin: 4px 0; font-size: 12px; line-height: 1.5; color: #64686e; }
.closure-location { display: inline-block; padding: 2px 6px; margin-top: 4px; border: 1px solid #d8dadd; border-radius: var(--nv-r); font-size: 11px; color: #64686e; }
.closure-row { padding: 12px; border-top: 1px solid #e8e9eb; overflow-wrap: anywhere; }
/* A rack row: name and one meta line (the whole left side selects it) beside three icon actions. 68px tall, one hairline between rows. */
.rack-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 68px; padding: 0 4px 0 12px; color: var(--nv-ink); overflow-wrap: anywhere; }
.rack-row + .rack-row, .rack-row + .rack-more { border-top: 1px solid var(--nv-line); }
.rack-row > .skeleton { grid-column: 1 / -1; }
p.rack-row, .rack-row.bike-location-prompt { display: block; margin: 0; padding: 12px; font-size: 13px; line-height: 1.5; }
.nv .rack-select { display: flex; flex-direction: column; justify-content: center; gap: 2px; align-self: stretch; min-width: 0; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--nv-ink); font: inherit; text-align: left; cursor: pointer; }
.rack-name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rack-row { min-height: 68px; }
.rack-meta { font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--nv-muted); overflow-wrap: anywhere; }
.rack-actions { display: flex; align-items: center; }
.nv .rack-act { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 4px; border: 0; border-radius: 10px; background: transparent; background-clip: content-box; color: var(--nv-ink); text-decoration: none; cursor: pointer; }
.nv .rack-act:hover { background-color: var(--nv-surface); }
.nv .rack-act.is-primary { background-color: transparent; color: var(--nv-ink); }
.rack-act svg { width: 20px; height: 20px; flex: none; }
.nv .map-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-height: 44px; background: #fff; border-color: var(--nv-ink); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1; color: #202124 !important; }
.map-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nv .rack-more { display: block; width: calc(100% - 24px); margin: 12px; font-size: 13px; }
#racks-loading { position: fixed; top: calc(var(--nv-bar-h) + 64px); right: 12px; padding: 6px 10px; margin: 0; border: 1px solid #d8dadd; border-radius: var(--nv-r); background: #fff; color: #64686e; font-size: 12px; pointer-events: none; }
#racks-loading[hidden] { display: none; }
svg { vertical-align: middle; }
.bike-pin { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #202124; border-radius: var(--nv-r); background: #fff; color: #202124; }
.bike-pin.sheltered { background: var(--nv-accent); }
/* Donut: the ring is a pie of sheltered (yellow, like the sheltered pin) against not sheltered or unknown (grey), from 12 o'clock; --sh is the sheltered share. Solid zoomed in, see-through far out. Diameter grows with log10(count) (--d) and never drops below a single pin (36px). */
.nv span.bike-cluster { --c-s: #e9b83a; --c-u: #b9bdc3; position: relative; isolation: isolate; display: grid; place-items: center; width: var(--d, 40px); height: var(--d, 40px); border: 0; border-radius: 50%; background: conic-gradient(var(--c-s) 0 var(--sh, 0%), var(--c-u) var(--sh, 0%) 100%); color: #202124; font-size: var(--fs, 13px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(32, 33, 36, .35); }
.bike-cluster::before { content: ""; position: absolute; inset: var(--ring, 7px); z-index: -1; border-radius: 50%; background: #fff; }
.bike-far span.bike-cluster { --c-s: rgba(233, 184, 58, .55); --c-u: rgba(150, 156, 163, .5); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.bike-far .bike-cluster::before { background: rgba(255, 255, 255, .9); }
.closure-pin { background: #fff; border: 2px solid #202124; border-radius: var(--nv-r); padding: 4px; }
.map-pop-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bike-closure-popup .map-pop-facts li { white-space: normal; }
.bike-closure-text { overflow-wrap: anywhere; }
.bike-closure-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.bike-closure-more[hidden] { display: none; }
.leaflet-tooltip.bike-map-label { max-width: min(260px, calc(100vw - 48px)); padding: 8px 12px; border: 1px solid var(--nv-line); border-radius: var(--nv-r); background: var(--nv-surface); color: var(--nv-ink); box-shadow: none; font: 600 .8125rem/1.35 var(--nv-font); white-space: normal; overflow-wrap: anywhere; }
.leaflet-tooltip.bike-map-label::before { display: none; }
.nv .location-button { position: fixed; top: auto; right: 12px; bottom: min(calc(var(--bike-sheet-height, 8px) + 12px), calc(100dvh - var(--nv-bar-h) - 60px)); z-index: 1100; width: 48px; height: 48px; background: #fff; color: #202124; border: 1px solid #d8dadd; border-radius: var(--nv-r); }
.nv .location-button[data-active="true"] { color: #2563a6; }
.nv .location-button, .nv .location-button:focus { outline: none; -webkit-tap-highlight-color: transparent; }
.nv .location-button:focus-visible { outline: 2px solid var(--nv-ink); outline-offset: 2px; }
.nv .location-button[data-following="true"] { background: #2563a6; border-color: #2563a6; color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.nv .location-button:disabled { cursor: wait; opacity: .65; }
.bike-pin.saved { border-radius: 50%; background: #fff; outline: 3px solid var(--nv-accent); outline-offset: 2px; }
.bike-pin.saved svg { fill: var(--nv-accent); stroke: #202124; stroke-width: 6px; }
.bike-place-pin { display: block; width: 20px; height: 20px; border-radius: var(--nv-r); background: var(--nv-accent); border: 2px solid var(--nv-ink); }
.bike-filters { display: flex; gap: 8px; padding: 0 0 8px; }
.bike-filters label { flex: 1; min-width: 0; color: var(--nv-muted); font-size: 12px; }
.bike-filters select { display: block; width: 100%; min-height: 44px; margin-top: 2px; border: 1px solid #d8dadd; border-radius: var(--nv-r); padding: 6px; background: #fff; color: #202124; font: inherit; font-size: 13px; }
.bike-filters select:disabled { color: #64686e; background: #f0f1f2; cursor: not-allowed; }
#location-status, #bike-action-status { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--nv-muted); overflow-wrap: anywhere; }
#location-status { color: #202124; }
#bike-action-status:empty { display: none; }
.nv #retry-location { min-height: 44px; border: 1px solid #d8dadd; border-radius: var(--nv-r); padding: 8px 10px; background: #fff; color: #202124; font: inherit; font-size: 13px; cursor: pointer; }
.bike-location-prompt p { margin-top: 0; font-size: 14px; line-height: 1.5; }
.bike-filters[hidden], #location-status[hidden], .nv .bike-chips button[hidden], .nv .bike-segments button[hidden] { display: none; }
.leaflet-control-zoom { display: none; }
.skeleton { height: 14px; background: #e8e9eb; border-radius: var(--nv-r); margin: 10px 0; width: 85%; }
.skeleton.short { width: 55%; }
#sheet-toggle { display: none; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, .leaflet-container a:focus-visible, .leaflet-marker-icon:focus-visible { outline: 2px solid #202124; outline-offset: 2px; }
.leaflet-container button, .leaflet-container a, .leaflet-container .leaflet-marker-icon { -webkit-tap-highlight-color: transparent; }
.leaflet-container .leaflet-marker-icon:focus:not(:focus-visible) { outline: none; }
.bike-compact { display: none; margin: 0; }
@media (max-width: 767px) {
 .bike-panel { left: 0; top: auto; bottom: 0; width: 100%; height: var(--ns-half); max-height: calc(100dvh - var(--nv-bar-h) - 76px); border-radius: var(--nv-r) var(--nv-r) 0 0; }
 .bike-panel[data-expanded="true"] { height: var(--ns-full); }
 .bike-panel[data-collapsed="true"] :is(.bike-chips, .bike-filters, .bike-meta, .bike-caveat, .bike-segments, .bike-note) { display: none; }
 .bike-panel[data-collapsed="true"] { height: auto; max-height: 45dvh; }
 .bike-panel[data-collapsed="true"] #bike-sheet-scroll { display: none; }
 .bike-panel[data-collapsed="true"] .bike-compact:not(:empty) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 6px; }
 .bike-compact strong { font-size: .9375rem; }
 .bike-compact span { color: var(--nv-muted); font-size: .8125rem; }
 .bike-panel-head { padding: 0 12px; }
 .nv #sheet-toggle { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; border: 0; touch-action: none; padding: 0; }
 .sheet-grip { width: 32px; height: 4px; border-radius: var(--nv-r); background: #64686e; }
 .bike-search { width: min(380px, calc(100vw - 84px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.nv-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.about-note h2 { margin: 0 0 6px; font-size: 14px; color: #202124; }
.about-note h3 { margin: 12px 0 2px; font-size: 13px; color: #202124; }
.about-note[open] { padding-bottom: 12px; }
.bike-route { display: grid; gap: 6px; margin-top: 6px; }
.bike-route:empty { display: none; }
.bike-route .map-pop-btn.bike-cycle { flex: 1 1 0; }
.bike-place, .bike-note { margin: 8px 0 0; padding: 8px 10px; border: 1px solid #d8dadd; border-radius: var(--nv-r); font-size: 12px; line-height: 1.4; color: #202124; overflow-wrap: anywhere; }
.bike-note { border: 0; padding: 0; color: #64686e; }
.bike-place[hidden], .bike-note[hidden] { display: none; }
.bike-place-name { margin: 0; font-size: 14px; font-weight: 700; }
.bike-place .map-link { margin-top: 6px; }
/* One row on every screen: three wrapped rows of chips pushed the list off the sheet. */

/* One yellow primary per screen: Cycle Where to? is it, and steps aside while a rack popup (whose Cycle there is yellow) is open. */
.bike-popup-open .bike-plan-face { background: #fff; box-shadow: inset 0 0 0 1px var(--nv-ink); }
.bike-popup-open .map-pop-btn.is-primary { background: #fff; color: var(--nv-ink); box-shadow: inset 0 0 0 1px var(--nv-ink); }
.bike-popup-open .bike-route .map-pop-btn.bike-cycle { background: var(--nv-accent); color: var(--nv-accent-ink); }
.top-search-note { margin: 0; padding: 12px; font-size: 13px; color: #64686e; }
.top-search-result:focus-visible { outline: 2px solid #121316; outline-offset: -2px; }
.top-search-result strong, .top-search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Scroll affordance for the one-line chip row on phones. */
@media (max-width: 767px) {
 .bike-chips[data-more="true"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
 .bike-chips[data-more="true"][data-less="true"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 32px), transparent); }
 .bike-chips[data-more="false"][data-less="true"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 24px); mask-image: linear-gradient(to right, transparent, #000 24px); }
}

/* Location notice: the sentence stays whole and Retry sits on its own line. */
#location-status:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* Shared bikes: LTA's "allows shared-bicycle parking" flag. A quiet icon plus words, never a bare dot. */
.rack-shared, .map-pop-shared { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--nv-ink); animation: shared-in .32s cubic-bezier(.16, 1, .3, 1) both; }
.rack-shared { margin-top: 1px; }
.rack-shared svg, .map-pop-shared svg { flex: none; width: 14px; height: 14px; padding: 0; color: #2f6f4f; }
.map-pop-shared { margin: 2px 0 6px; }
.map-pop-note { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--nv-muted); }
@keyframes shared-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.nv .bike-chips button { transition: transform .18s cubic-bezier(.16, 1, .3, 1); }
.nv .bike-chips button::before { transition: background-color .2s cubic-bezier(.16, 1, .3, 1), border-color .2s cubic-bezier(.16, 1, .3, 1); }
.nv .bike-chips button:active { transform: scale(.94); }
.nv .bike-chips button[aria-pressed="true"] svg.shared-ico { color: var(--nv-ink); }
@media (prefers-reduced-motion: reduce) { .rack-shared, .map-pop-shared { animation: none; } .nv .bike-chips button:active { transform: none; } }
/* Reserve the lines JS fills in after load so the list does not jump (CLS). */
.bike-meta:not([hidden]) { min-height: 17px; }
.bike-caveat:not([hidden]) { min-height: 38px; }

/* Quiet motion on the inner element only (Leaflet owns the marker root's transform): a new pin eases in, press shrinks it a touch. */
.bike-cluster, .bike-pin { animation: bike-in .18s cubic-bezier(.16, 1, .3, 1) both; transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.leaflet-marker-icon:hover .bike-cluster, .leaflet-marker-icon:hover .bike-pin { transform: scale(1.06); }
.leaflet-marker-icon:active .bike-cluster, .leaflet-marker-icon:active .bike-pin { transform: scale(.96); }
@keyframes bike-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bike-cluster, .bike-pin { animation: none; transition: none; } }
/* List: flat hover, tabular distances, a plain empty state with its one action. */
.rack-meta, #map-status, #updated, .map-pop-facts { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .rack-row:not(.bike-location-prompt):not(.rack-empty):not(:has(.skeleton)):hover { background: var(--nv-surface); } }
.rack-empty { color: var(--nv-muted); }
.rack-empty .map-link { display: flex; margin-top: 8px; }
.bike-location-prompt { border-bottom: 1px solid var(--nv-line); }
