/* The comparison belongs below the actual home header, never behind it. */
html[data-direction=evoluzione] #routeCompareLegend{
 top:var(--ev-compare-top,calc(var(--dd-top) + var(--hajlo-safe-top) + 8px))!important;
 left:calc(8px + var(--hajlo-safe-left))!important;right:calc(8px + var(--hajlo-safe-right))!important;
 z-index:1500!important;box-sizing:border-box;max-height:var(--ev-compare-max-height,240px);overflow-y:auto;
 overscroll-behavior:contain;pointer-events:auto;background:var(--dd-bg)!important;color:var(--dd-ink)!important;
 padding:10px!important;border:1px solid var(--dd-line)!important;gap:8px!important;
}
html[data-direction=evoluzione] #routeCompareLegend>div{flex-shrink:0;color:var(--dd-ink)!important;line-height:1.4;font-size:12px!important}
html[data-direction=evoluzione] #routeCompareLegend>div>span{flex:none}
html[data-direction=evoluzione] #closeRouteCompareLegend{flex-shrink:0;position:sticky;bottom:-10px;min-height:36px;background:var(--dd-bg)!important;color:var(--dd-ink)!important;border:1px solid var(--dd-line)!important}
html[data-direction=evoluzione].ev-comparing #dd-shell #dd-map{top:var(--ev-compare-bottom)!important}
/* Comparison focuses on alternatives; the temporary instrument rows no longer
   consume the map's limited height on smaller phones. They return on close. */
html[data-direction=evoluzione].ev-comparing{--dd-top:50px}
html[data-direction=evoluzione].ev-comparing #dd-shell :is(#dd-quick,#dd-data){display:none!important}
html[data-direction=evoluzione].ev-comparing #dd-shell #dd-map :is(#compassItem,#serviziBtn,#destWeatherBtn){display:none!important}
