/* RadarČeska — Desktop v2.2.2 FINAL MICRO POLISH
   Additive over Variant B v2.2.0 + Icon Polish v2.2.1.
   Desktop header refinement, legend clearance, rail-tool mode gate.
   Mobile layout remains untouched. */

@media (min-width:821px){

  /* =========================================================
     HEADER — final desktop micro polish
     ========================================================= */

  /* Slightly clearer main navigation without making pills wider. */
  .brand-row .layer-chips{
    gap:6px;
  }

  .brand-row .layer-chip{
    gap:7px;
    height:38px;
    min-height:38px;
    padding-left:10px;
    padding-right:11px;
    font-size:13.5px;
    font-weight:780;
    letter-spacing:-.015em;
  }

  .brand-row .layer-chip .chip-icon{
    width:17px;
    height:17px;
    flex-basis:17px;
  }

  .brand-row .layer-chip .chip-icon svg{
    width:17px;
    height:17px;
  }

  /* More visual separation between product navigation and weather views. */
  #weatherViewNav.rc-desktop-weather-nav-v220{
    margin-top:10px;
    gap:7px;
    background:transparent;
    border:0;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  /* Roughly 10% less horizontal padding than v2.2.1, but a slightly stronger label. */
  #weatherViewNav.rc-desktop-weather-nav-v220 .weather-view-tab{
    gap:5px;
    min-height:35px;
    height:35px;
    padding-left:8px;
    padding-right:9px;
    border-radius:10px;
  }

  #weatherViewNav.rc-desktop-weather-nav-v220 .weather-tab-symbol{
    width:15px;
    height:15px;
    flex-basis:15px;
  }

  #weatherViewNav.rc-desktop-weather-nav-v220 .weather-tab-symbol svg{
    width:15px;
    height:15px;
  }

  #weatherViewNav.rc-desktop-weather-nav-v220 .weather-tab-copy b{
    font-size:12px;
    font-weight:790;
    letter-spacing:-.014em;
  }

  /* =========================================================
     RADAR / MODEL LEGEND — clear the bottom timeline
     ========================================================= */

  .model-legend{
    right:22px;
    bottom:112px;
  }

  /* =========================================================
     RAIL INFRASTRUCTURE — only in Vlaky mode
     The infrastructure script owns its own readiness/hidden state in trains.
     Outside trains we only remove the affordance visually.
     ========================================================= */

  .app-shell:not([data-mode="trains"]) #railInfraLabChip,
  .app-shell:not([data-mode="trains"]) #railInfraLabUi{
    display:none;
  }
}

/* Short desktop/laptop viewport: add extra clearance above the timeline. */
@media (min-width:821px) and (max-height:800px){
  .model-legend{
    bottom:122px;
  }
}

@media (min-width:821px) and (max-height:680px){
  .model-legend{
    bottom:128px;
  }
}
