/* Alternatywny kafel pogody (?pogoda=alt) i niski pasek weekendu na telefonie.
   Podgląd, bez wpływu na obecną wersję bez parametru (pogoda) / na komputerze (weekend). */

/* --- przełącznik wersji pogody: bez CLS (klasa na <html> z inline skryptu w <head>) --- */
.wx-alt{display:none}
html.pogoda-alt .wx-cur{display:none!important}
html.pogoda-alt .wx-alt{display:flex!important;flex-direction:column;min-height:0;flex:1 1 auto;height:100%;gap:0}

html.pogoda-alt.pulpit body.hy #pogoda,
html.pogoda-alt.pulpit body.hy .bento>#pogoda,
html.pogoda-alt.pulpit body.hy .bento.bfix:not(.filtered)>#pogoda,
html.pogoda-alt.pulpit body.hy .bento.bfix:not(.filtered):not(#____):not(#_):not(#__)>#pogoda{
  display:flex!important;
  flex-direction:column!important;
  grid-template-rows:none!important;
  min-height:0!important;
  max-height:none!important;
  align-content:stretch!important;
  overflow:hidden!important;
}
@media(min-width:641px){
  html.pogoda-alt.pulpit body.hy .bento.bfix:not(.filtered)>#pogoda{
    height:100%!important;
    align-self:stretch!important;
  }
}
@media(max-width:640px){
  html.pogoda-alt.pulpit body.hy #pogoda,
  html.pogoda-alt.pulpit body.hy .bento>#pogoda{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* --- treść kafla alt --- */
html.pogoda-alt .wx-alt>.card-head{margin:0 0 8px!important}
html.pogoda-alt .wx-alt-now{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;margin:0}
html.pogoda-alt .wx-alt-temp{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
html.pogoda-alt .wx-alt-temp strong{
  font-size:48px;font-weight:800;letter-spacing:-1.5px;line-height:1;color:var(--text,#142033);
}
html.pogoda-alt .wx-alt-feel{
  font-size:14px;font-weight:650;line-height:1.3;color:var(--muted,#3d5a80);
}
html.pogoda-alt .wx-alt-temp em{
  font-style:normal;font-size:15px;font-weight:700;line-height:1.3;color:var(--text,#142033);
}
html.pogoda-alt .wx-alt-ico{display:grid;place-items:center;color:#b45309;flex:none}
html.pogoda-alt .wx-alt-ico .icon{width:56px;height:56px}
html.pogoda-alt .wx-alt-next{
  margin:8px 0 0;font-size:14px;font-weight:650;line-height:1.35;color:var(--text,#142033);
}
html.pogoda-alt .wx-alt-note{
  margin:4px 0 0;font-size:13.5px;font-weight:650;line-height:1.3;color:#9a3412;
}
html.pogoda-alt .wx-alt-strip{
  margin:10px 0 0;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x pan-y;
  scrollbar-width:thin;
}
html.pogoda-alt .wx-alt-strip ol{
  list-style:none;margin:0;padding:0 0 4px;display:flex;gap:6px;min-width:min-content;
}
html.pogoda-alt .wx-alt-h{
  flex:0 0 44px;width:44px;min-width:44px;min-height:44px;box-sizing:border-box;
  scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:1px;padding:4px 0 2px;text-align:center;
}
html.pogoda-alt .wx-alt-hh{font-size:11px;font-weight:700;line-height:1.2;color:var(--muted,#3d5a80)}
html.pogoda-alt .wx-alt-h .icon{width:18px;height:18px;color:#b45309}
html.pogoda-alt .wx-alt-col{display:block;width:8px;height:28px;border-radius:4px;background:#e8eef6;position:relative;overflow:hidden}
html.pogoda-alt .wx-alt-col i{position:absolute;left:0;right:0;bottom:0;height:max(18%,var(--t,40%));background:#c2410c;border-radius:4px}
html.pogoda-alt .wx-alt-h b{font-size:13px;font-weight:800;line-height:1.2;color:var(--text,#142033)}
html.pogoda-alt .wx-alt-h.is-wet .wx-alt-col i{background:#1d4ed8}
html.pogoda-alt .wx-alt-sun,
html.pogoda-alt .wx-alt-src{margin:8px 0 0;font-size:12px;line-height:1.3;color:var(--muted,#3d5a80)}
html.pogoda-alt .wx-alt-src a{color:inherit;text-decoration:underline}
html.pogoda-alt .wx-alt-more{
  display:inline-flex;align-items:center;margin-top:8px;min-height:44px;padding:8px 0;
  font-size:14px;font-weight:750;line-height:1.2;color:var(--text,#142033);text-decoration:underline;
}
html.pogoda-alt .wx-alt-empty{margin:8px 0;font-size:14px;color:var(--muted,#3d5a80)}

@media(min-width:641px){
  html.pogoda-alt .wx-alt-temp strong{font-size:44px}
  html.pogoda-alt .wx-alt-ico .icon{width:52px;height:52px}
  html.pogoda-alt .wx-alt{justify-content:space-between}
  html.pogoda-alt .wx-alt-strip{margin-top:auto;padding-top:8px}
}
@media(max-width:640px){
  html.pogoda-alt .wx-alt>.card-head{margin:0 0 6px!important}
  html.pogoda-alt .wx-alt-temp strong{font-size:40px}
  html.pogoda-alt .wx-alt-ico .icon{width:44px;height:44px}
  html.pogoda-alt .wx-alt-col{height:22px}
  html.pogoda-alt .wx-alt-h{padding:2px 0}
  html.pogoda-alt .wx-alt-more{margin-top:2px;min-height:44px}
}

/* kontrast AA / wysoki kontrast / jasny motyw */
html.pulpit.light.pogoda-alt .wx-alt-temp strong,
html.pulpit.light.pogoda-alt .wx-alt-temp em,
html.pulpit.light.pogoda-alt .wx-alt-h b,
html.pulpit.light.pogoda-alt .wx-alt-next{color:#142033}
html.pulpit.light.pogoda-alt .wx-alt-feel,
html.pulpit.light.pogoda-alt .wx-alt-hh,
html.pulpit.light.pogoda-alt .wx-alt-sun,
html.pulpit.light.pogoda-alt .wx-alt-src{color:#3d4f6a}
body.contrast html.pogoda-alt .wx-alt,
html.contrast.pogoda-alt .wx-alt,
body.contrast .wx-alt,html.contrast .wx-alt{background:#000;color:#fff}
body.contrast.pogoda-alt .wx-alt-temp strong,
body.contrast .wx-alt-temp strong,
body.contrast .wx-alt-temp em,
body.contrast .wx-alt-h b,
body.contrast .wx-alt-next,
body.contrast .wx-alt-more,
html.contrast .wx-alt-temp strong{color:#fff!important}
body.contrast .wx-alt-feel,
body.contrast .wx-alt-hh,
body.contrast .wx-alt-sun,
body.contrast .wx-alt-src{color:#ffe600!important}
body.contrast .wx-alt-ico,
body.contrast .wx-alt-h .icon{color:#ffe600!important}
body.contrast .wx-alt-col{background:#333}
body.contrast .wx-alt-col i{background:#ffe600}
body.contrast .wx-alt-note{color:#ffe600!important}

/* ---------- weekend: niski pasek tylko na telefonie (komputer bez zmian) ---------- */
.wkd-short{display:none}
@media(max-width:640px){
  html.pulpit body.hy.pulpit :not(#_):not(#__):not(#___):not(#____) a.newart.wkd,
  html.pulpit body.hy.pulpit :not(#_):not(#__):not(#___):not(#____) a.newart.wkd.wkd-1,
  html.pulpit body.hy :not(#_):not(#__) a.newart.wkd,
  html.pulpit body.hy a.newart.wkd{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:flex-start!important;
    gap:0!important;
    min-height:44px!important;height:44px!important;max-height:44px!important;
    box-sizing:border-box!important;
    padding:0 16px!important;margin:0 0 8px!important;
    border:0!important;border-radius:999px!important;
    background:#4c1d95!important;
    background-image:linear-gradient(105deg,#4c1d95 0%,#9d174d 100%)!important;
    color:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  html.pulpit body.hy.pulpit :not(#_):not(#__):not(#___):not(#____) a.newart.wkd > :not(.wkd-short),
  html.pulpit body.hy a.newart.wkd > :not(.wkd-short){
    display:none!important;visibility:hidden!important;
    width:0!important;height:0!important;margin:0!important;padding:0!important;
    overflow:hidden!important;position:absolute!important;
  }
  html.pulpit body.hy.pulpit :not(#_):not(#__):not(#___):not(#____) a.newart.wkd .wkd-short,
  html.pulpit body.hy a.newart.wkd .wkd-short{
    display:flex!important;align-items:center;visibility:visible!important;
    position:relative!important;z-index:1;left:auto!important;
    width:auto!important;height:auto!important;max-width:100%;
    font-size:15px;font-weight:800;line-height:1.2;letter-spacing:.01em;
    color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    min-width:0;flex:1 1 auto;margin:0!important;padding:0!important;
  }

  html.pulpit body.hy a.newart.wkd .wkd-ico{
    display:inline-block!important;flex:none;width:15px;height:14px;margin:0 8px 0 0;
    border:1.6px solid #fff;border-radius:3px;position:relative;box-sizing:border-box;
    background:transparent!important;
  }
  html.pulpit body.hy a.newart.wkd .wkd-ico::before{
    content:"";position:absolute;left:2px;right:2px;top:-3px;height:3px;
    border-left:1.6px solid #fff;border-right:1.6px solid #fff;
  }
  html.pulpit body.hy a.newart.wkd .wkd-ico::after{
    content:"";position:absolute;left:2px;right:2px;top:3px;height:1.4px;background:#fff;opacity:.9;
  }
  html.pulpit.light body.hy a.newart.wkd{
    background:#4c1d95!important;
    background-image:linear-gradient(105deg,#4c1d95 0%,#9d174d 100%)!important;
    color:#fff!important;
  }
  html.pulpit.light body.hy a.newart.wkd .wkd-short{color:#fff!important;background:transparent!important}
  body.contrast a.newart.wkd,
  html.contrast body.hy a.newart.wkd{
    background:#000!important;color:#ffe600!important;border:2px solid #ffe600!important;
  }
  body.contrast a.newart.wkd .wkd-short,
  html.contrast a.newart.wkd .wkd-short{color:#ffe600!important}
}

/* większa ikona pogody na komputerze – wypełnia kafel obok temperatury */
@media(min-width:641px){
  html.pogoda-alt .wx-alt-ico .icon{width:72px!important;height:72px!important}
  html.pogoda-alt .wx-alt-temp strong{font-size:52px}
}
/* na telefonie linia „po południu / wieczorem / jutro” w jednym wierszu */
@media(max-width:640px){
  html.pogoda-alt .wx-alt-next{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.pogoda-alt .wx-alt-more{margin-top:0;padding:6px 0}
}

/* Na telefonie kafel #pogoda jest normalnie schowany (układ rzędów).
   Podgląd ?pogoda=alt pokazuje nowy kafel, żeby dało się go porównać. */
@media(max-width:640px){
  html.pogoda-alt.pulpit body.hy .bento>#pogoda.panel,
  html.pogoda-alt.pulpit body.hy:not(.contrast) :not(#_):not(#__):not(#___):not(#____)>.bento>#pogoda.panel{
    display:flex!important;flex-direction:column!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    order:5!important;margin:0 0 10px!important;padding:12px 14px!important;
  }
}
