/* pw-miniatury-fix */

/* 1. Kafel nie rozciaga sie do wysokosci sasiedniej kolumny z tekstem. */
html body .a20-story-image{
	align-self:start;
	aspect-ratio:16/9;
	height:auto;
	line-height:0;          /* zero swiatla pod obrazkiem inline */
	background:var(--a20-surface);
}
/* 2. Kazda miniatura ma te sama proporcje i wypelnia kafel bez zniekształceń. */
html body .a20-story-image img{
	display:block;
	width:100%!important;
	height:100%!important;
	max-width:none!important;
	aspect-ratio:16/9!important;
	object-fit:cover;
	object-position:center;
	margin:0!important;
	border-radius:0!important;
}
/* 3. Gdy wpis nie ma grafiki, nie zostawiamy pustego prostokata tla. */
html body .a20-story-image:not(:has(img)){display:none;}

/* 4. Na waskich ekranach 100 px miniatury bylo za malo, zeby cokolwiek rozpoznac.
      Dajemy wiecej szerokosci i mniejszy odstep, zamiast powiekszac wysokosc kafla. */
@media (max-width:650px){
	html body .a20-news-stream .a20-story{
		grid-template-columns:112px minmax(0,1fr);
		gap:14px;
		align-items:start;
	}
}
@media (max-width:380px){
	html body .a20-news-stream .a20-story{
		grid-template-columns:96px minmax(0,1fr);
		gap:12px;
	}
}

/* pw-polish */

/* ===== 1. MOBILE: nigdy poziomego przewijania ===== */
html{overflow-x:hidden}
img,svg,video,iframe,table,pre,figure,.pw-nx,.pw-vs,.pw-rx,.pw-rg,.pw-map,.pw-naj,.pw-rad,.pw-rap,.pw-ti,.pw-tool{max-width:100%}
img,svg,video,iframe{height:auto}
@media(max-width:600px){
  .pw-top2-grid{grid-template-columns:1fr!important}
  .pw-nx-grid{grid-template-columns:1fr!important}
  .pw-vs-top{grid-template-columns:1fr!important}
  .pw-hero-photo .pw-now{left:0!important;right:0!important}
  /* Hero featured image - zawsze margines boczny na mobile */
  .px-single-hero{padding-left:16px!important;padding-right:16px!important}
  /* Infinite scroll next article */
  .pw-next-article{padding-left:16px!important;padding-right:16px!important}
  /* Artykuł with-sidebar: padding kolumny treści */
  .px-single--with-sidebar .px-single-cols{padding-left:16px!important;padding-right:16px!important}
}
/* ===== 2b. ODSTĘP header → treść: ciasny na wszystkich stronach (mniej pustki) ===== */
.px-main{padding-top:10px}
.px-single{padding-top:8px}
@media(max-width:768px){.px-main{padding-top:4px}.px-single{padding-top:4px}}

/* ===== 2. JASNY MOTYW - adaptacja ciemnych sekcji ===== */
html[data-theme-mode="light"] .pw-nx,body.px-mode-light .pw-nx{
  background:color-mix(in srgb,var(--text) 4%,var(--bg))!important;color:var(--text)!important;
  border-bottom-color:var(--border)!important}
html[data-theme-mode="light"] .pw-nx-head,body.px-mode-light .pw-nx-head,
html[data-theme-mode="light"] .pw-nx-row,body.px-mode-light .pw-nx-row{border-bottom-color:var(--border)!important}
html[data-theme-mode="light"] .pw-nx-sub,body.px-mode-light .pw-nx-sub,
html[data-theme-mode="light"] .pw-nx-dek,body.px-mode-light .pw-nx-dek,
html[data-theme-mode="light"] .pw-nx-meta,body.px-mode-light .pw-nx-meta,
html[data-theme-mode="light"] .pw-nx-rd,body.px-mode-light .pw-nx-rd{color:var(--muted)!important}
html[data-theme-mode="light"] .pw-nx-lead h3,body.px-mode-light .pw-nx-lead h3,
html[data-theme-mode="light"] .pw-nx-row h4,body.px-mode-light .pw-nx-row h4{color:var(--text)!important}
html[data-theme-mode="light"] .pw-nx-all,body.px-mode-light .pw-nx-all{color:var(--text)!important;border-color:var(--border)!important}
html[data-theme-mode="light"] .pw-nx-cover,body.px-mode-light .pw-nx-cover,
html[data-theme-mode="light"] .pw-nx-thumb,body.px-mode-light .pw-nx-thumb{background:color-mix(in srgb,var(--text) 8%,var(--bg))!important;border-color:var(--border)!important}
html[data-theme-mode="light"] .pw-nx-row:hover,body.px-mode-light .pw-nx-row:hover{background:color-mix(in srgb,var(--text) 5%,transparent)!important}
/* terminal-okno awatara + miniatury wyróżnionych */
html[data-theme-mode="light"] .pw-term,body.px-mode-light .pw-term,
html[data-theme-mode="light"] .pw-term-bar,body.px-mode-light .pw-term-bar,
html[data-theme-mode="light"] .pw-top2-thumb,body.px-mode-light .pw-top2-thumb,
html[data-theme-mode="light"] .pw-pop-card .thumb,body.px-mode-light .pw-pop-card .thumb{background:color-mix(in srgb,var(--text) 6%,var(--bg))!important}
html[data-theme-mode="light"] .pw-pop-num,body.px-mode-light .pw-pop-num{color:var(--bg)!important}
/* okładki/tła kart na moich stronach */
html[data-theme-mode="light"] .pw-map-cov,body.px-mode-light .pw-map-cov,
html[data-theme-mode="light"] .pw-naj-cov,body.px-mode-light .pw-naj-cov,
html[data-theme-mode="light"] .pw-rad-thumb,body.px-mode-light .pw-rad-thumb,
html[data-theme-mode="light"] .pw-rx-cover,body.px-mode-light .pw-rx-cover,
html[data-theme-mode="light"] .pw-rg-cover,body.px-mode-light .pw-rg-cover,
html[data-theme-mode="light"] .pw-vs-cover,body.px-mode-light .pw-vs-cover{background:color-mix(in srgb,var(--text) 8%,var(--bg))!important}

/* pw-tab-wyr */
article table td strong,article table td b,.entry-content table td strong,.entry-content table td b{display:inline-block;font-weight:800;padding:1px 9px;border-radius:6px;background:rgba(139,92,246,.22);color:#c4b5fd;box-shadow:inset 0 0 0 1px rgba(167,139,250,.45)}html.light article table td strong,html.light article table td b,body.light article table td strong,[data-theme="light"] article table td strong{color:#5b21b6;background:rgba(139,92,246,.14)}article table td:first-child strong,.entry-content table td:first-child strong{background:none;box-shadow:none;padding:0;color:inherit}
/* pw-tt84-logo */
#pw-tt-84 .marka img{height:42px;max-width:min(100%,520px)}@media(max-width:600px){#pw-tt-84 .marka img{height:30px}}
/* pw-wideo-mobile */
.px-main article video,.px-main .entry-content video,.px-main p>video{display:block;margin-left:auto!important;margin-right:auto!important;max-width:100%}@media(max-width:768px){.px-main article video,.px-main .entry-content video,.px-main p>video{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-radius:0!important}}
/* pw-zr-css */
.pw-zr-g{margin:1.1em 0 .35em!important;font-size:.78em!important;font-weight:700!important;letter-spacing:.06em;text-transform:uppercase;opacity:.75}ul.pw-zr{list-style:none!important;margin:0 0 .6em!important;padding:0!important}ul.pw-zr li{position:relative;margin:0!important;padding:.42em 0 .42em 1.1em!important;border-bottom:1px solid rgba(128,128,128,.18);line-height:1.45;font-size:.93em}ul.pw-zr li:last-child{border-bottom:0}ul.pw-zr li::before{content:"";position:absolute;left:0;top:.95em;width:6px;height:6px;border-radius:2px;background:currentColor;opacity:.45}.pw-zr-spr{margin:1em 0 0!important;font-size:.82em!important;opacity:.65}
/* zz-media1711 */

html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body video{aspect-ratio:var(--zzm-ar,auto)!important;height:auto!important;max-width:100%!important;object-fit:contain;background:transparent!important;display:block}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-land{width:100%!important;max-width:100%!important;height:auto!important;margin-left:auto!important;margin-right:auto!important}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body img.zzm-port{width:100%!important;max-width:560px!important;height:auto!important;margin-left:auto!important;margin-right:auto!important;display:block}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body video.zzm-port{width:100%!important;max-width:420px!important;margin-left:auto!important;margin-right:auto!important}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body figure.zzm-fig-port{max-width:none!important;width:100%!important;display:block!important;float:none!important;margin-left:auto!important;margin-right:auto!important;text-align:center}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body figure.zzm-fig-port figcaption{text-align:center;max-width:560px;margin-left:auto;margin-right:auto}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body figure.zzm-fig-vport figcaption{max-width:420px}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin:1.5em 0}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-grid>figure{margin:0!important;max-width:none!important}
html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-grid video.zzm-port,html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-grid img.zzm-port{max-width:100%!important}
@media (max-width:640px){html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body .zzm-grid{grid-template-columns:1fr}html:not(#zz1#zz2#zz3#zz4#zz5#zz6#zz7) body .zzm-body.zzm-body video.zzm-port{max-width:340px!important}}

/* zz-tabele-0311 */
html:not(#zz1):not(#zz2):not(#zz3) body table.pwt :is(td,th){padding:10px 14px!important;line-height:1.45!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:manual!important}@media(max-width:700px){html:not(#zz1):not(#zz2):not(#zz3) body table.pwt :is(td,th):first-child{min-width:6.5em}}@supports (initial-letter:3) or (-webkit-initial-letter:3){html:not(#zz1):not(#zz2):not(#zz3) body .pw-esej-pierwszy::first-letter,html:not(#zz1):not(#zz2):not(#zz3) body .px-single-body > p:first-of-type:not(:has(.pw-reads))::first-letter,html:not(#zz1):not(#zz2):not(#zz3) body .px-single-body > p:has(.pw-reads) + p::first-letter{float:none!important;font-size:inherit!important;line-height:inherit!important;margin:0 .12em 0 0!important;padding:0!important;-webkit-initial-letter:3;initial-letter:3}}@media(max-width:700px){html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-siatka{gap:10px!important}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-karta{flex-direction:row!important;align-items:stretch}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-obraz{flex:0 0 118px;aspect-ratio:auto!important;border-bottom:0!important;border-right:1px solid rgba(255,255,255,.1)}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-obraz img{width:100%;height:100%!important;object-fit:cover}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-zaj,html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-dalej{display:none!important}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-tresc{padding:10px 12px!important;justify-content:center}html:not(#zz1):not(#zz2):not(#zz3) body .pwhk-tytul{font-size:15px!important;line-height:1.3!important}}
/* zz-xramka */
iframe[id^="twitter-widget"],.twitter-tweet iframe{color-scheme:light!important;background:transparent!important}
/* noxora-design-vars */
body.pw-design-terminal{--font-display:"Space Grotesk","Inter",sans-serif;--font-body:"Inter",system-ui,sans-serif;--font-mono:"JetBrains Mono",monospace;--font-head:"Space Grotesk","Inter",sans-serif;--pw-bg:#111726;--pw-accent:#7C6CFF;--pw-warm:#FFB224;--pw-rose:#F472B6;--text:#EEF2F8;--muted:#A7B2C2;--border:#2A3345;--accent:var(--pw-accent);--bg:var(--pw-bg);background:var(--pw-bg)!important;}
