/* NCAS 0.8.1-hf4: prevent an expanded layer panel from exceeding the map. */
.ncas-layer-control { max-height: min(80vh, 520px); display:flex; flex-direction:column; }
.ncas-layer-button { flex:0 0 auto; }
.ncas-layer-body { min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; }
.ncas-appearance-group { border-bottom:1px solid #d8e0e8; padding:8px 0 10px; }
.ncas-appearance-label { display:block; font:600 11px/1.4 system-ui,sans-serif; color:#172b46; }
.ncas-appearance-select { display:block; width:100%; margin-top:6px; padding:5px; border:1px solid #c2cfdb; border-radius:4px; background:white; color:#172b46; font:12px system-ui,sans-serif; }
.ncas-appearance-note { margin-top:5px; color:#56677b; font:10px/1.4 system-ui,sans-serif; }
/* Filter only the original OSM basemap tile container, NOT the Leaflet pane. */
.leaflet-layer.ncas-basemap-dark { filter: invert(.9) hue-rotate(165deg) brightness(.73) contrast(1.1) saturate(.65); }
