/* Phone layout for both views (index.html, 3d.html). Under 760 px wide:
   slim title bar on top, side panel as a sheet behind "Layers & info", results above a scrolling tool bar. */
.only-phone{display:none}
#map{touch-action:none}
@media (max-width:760px){
  .only-phone{display:inline-block}
  .panel{top:8px;left:8px;right:8px;bottom:auto;width:auto;overflow:visible;gap:10px}
  .panel>.card:not(.hero){display:none}
  .hero{padding:10px 12px 10px 14px}
  .hero h1{font-size:18px}
  .hero .sub{font-size:12px;margin-top:0}
  .hero .pills{display:flex;gap:6px;align-items:center}
  .hero .pills{flex:none}
  .hero .pills a,.hero .pills button{padding:8px 12px;font-size:13px;white-space:nowrap}
  .hero .sub{white-space:nowrap}
  /* the sheet: the panel's cards over the whole screen */
  body.sheet .panel{top:0;left:0;right:0;bottom:0;padding:8px 8px 24px;overflow:auto;background:rgba(245,245,247,.96);
    -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:3000}
  body.sheet .panel>.card{display:block}
  body.sheet .panel>.hero{position:sticky;top:0;z-index:1;background:rgba(255,255,255,.92)}
  /* results sit above the tool bar */
  .banner{top:auto;left:8px;right:8px;bottom:92px}
  #banner{max-height:44vh;overflow:auto;padding:10px 14px;border-radius:16px;max-width:none;width:100%}
  .verdict{font-size:12px}
  .nums{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
  .nums b{font-size:17px}
  .nums span{font-size:11px}
  .via{font-size:12.5px;line-height:1.4}
  .xt{font-size:14px}
  .mini{width:30px;height:30px;font-size:16px}
  .dock{left:8px;right:8px;bottom:22px;gap:8px}
  #hint{font-size:12px;padding:7px 12px;line-height:1.35}
  .banner:has(#banner[style*="block"]) ~ .dock #hint{display:none}
  #tools{max-width:100%;overflow-x:auto;scrollbar-width:none;border-radius:18px;padding:5px;gap:2px;justify-content:flex-start}
  #tools::-webkit-scrollbar{display:none}
  #tools button{flex:none;min-width:64px;padding:6px 6px;font-size:11px;border-radius:13px;line-height:1.2}
  #tools button svg{width:20px;height:20px}
  .vsep{margin:6px 2px}
  .leaflet-control-zoom,#stats{display:none}
  .leaflet-control-attribution{font-size:9px}
  .bay-lbl{font-size:10px}
}
