/* 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-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}}
/* 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;}
