/* DVOJKA v4.3.19 — starší LG webOS: 2×2 spodné meteo karty.
   Iba legacy počasie. Novší LG / moderné prehliadače zostávajú bez zmeny. */

/* Starší webOS nevie spoľahlivo vykresliť CSS Grid na .metrics.
   Výsledkom bolo zvislé skladanie 4 kariet a odrezanie Zrážok/Tlaku.
   Flex fallback natvrdo drží dve karty vedľa seba. */
html.page-weather.tv-legacy .metrics{
  display:-webkit-box!important;
  display:-webkit-flex!important;
  display:flex!important;
  -webkit-flex-wrap:wrap!important;
  flex-wrap:wrap!important;
  -webkit-box-pack:justify!important;
  -webkit-justify-content:space-between!important;
  justify-content:space-between!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
}

html.page-weather.tv-legacy .metrics>.metric,
html.page-weather.tv-legacy .metrics>.fix4zw-stat{
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:49.15%!important;
  min-width:0!important;
  max-width:49.15%!important;
  -webkit-box-flex:0!important;
  -webkit-flex:0 0 49.15%!important;
  flex:0 0 49.15%!important;
  margin:0 0 .68vh 0!important;
  min-height:7.15vh!important;
}

/* Druhý riadok už nemá pridávať ďalšiu výšku pod panel. */
html.page-weather.tv-legacy .metrics>.metric:nth-child(3),
html.page-weather.tv-legacy .metrics>.metric:nth-child(4),
html.page-weather.tv-legacy .metrics>.fix4zw-stat:nth-child(3),
html.page-weather.tv-legacy .metrics>.fix4zw-stat:nth-child(4){
  margin-bottom:0!important;
}

/* Jemne kompaktnejšie vnútro len na starom LG, aby sa celý ľavý panel zmestil
   aj pri staršom WebKit výpočte vh/line-height. */
html.page-weather.tv-legacy .fix4zw-stat.v4311-metric-card{
  padding-top:.55vh!important;
  padding-bottom:.50vh!important;
}
html.page-weather.tv-legacy .fix4zw-stat.v4311-metric-card .fix4zw-stat-ico.v4311-metric-icon-host{
  height:2.75vh!important;
}
html.page-weather.tv-legacy .fix4zw-stat .fix4zw-stat-label,
html.page-weather.tv-legacy .metric span{
  line-height:1.05!important;
}
html.page-weather.tv-legacy .fix4zw-stat .fix4zw-stat-value,
html.page-weather.tv-legacy .metric strong{
  line-height:1.02!important;
}

html.page-weather.tv-legacy{--dvojka-v4319-weather-legacy-layout:1}
