/* ==========================================================================
   wPrawo: base.css
   Fonty, tokeny (jasny/ciemny), reset, typografia, układ, nagłówek, dialogi,
   stopka, tabbar, karty, bloki, newsletter, zgodność z wtyczkami.
   Spis: 1 Fonty | 2 Tokeny | 3 Reset | 4 Układ i narzędzia | 5 Masthead |
         6 Dialogi i podpowiedzi | 7 Karty i siatki | 8 Sekcje | 9 Trzy bloki |
         10 Newsletter i reklamy | 11 Stopka | 12 Tabbar | 13 Zgodność
   ========================================================================== */

/* 1. Fonty (self-hosted, subset latin + latin-ext z polskimi znakami) ---- */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokeny ------------------------------------------------------------- */
:root {
	--font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--bg: #ffffff;
	--bg-soft: #f6f4ef;
	--fg: #121212;
	--fg-muted: #5b5b5b;
	--rule: #dcdad5;
	--rule-strong: #121212;

	--accent: #e2131d;
	--accent-text: #e2131d;
	--on-accent: #ffffff;

	--container: 80rem;
	--narrow: 50rem;
	--wide: 66rem;
	--gutter: clamp(1rem, 3.2vw, 2rem);
	--tabbar-h: 3.75rem;
	--radius: 2px;
	--mast-h: 3.5rem;

	/* Delikatne przyciski: lekko odcięte od tła, zawsze zbliżone do aktualnego motywu. */
	--btn-bg: color-mix(in srgb, var(--fg) 4%, var(--bg));
	--btn-bd: color-mix(in srgb, var(--fg) 10%, var(--bg));
	--btn-bg-hover: color-mix(in srgb, var(--fg) 8%, var(--bg));
	--btn-bd-hover: color-mix(in srgb, var(--fg) 24%, var(--bg));

	/* Przyciski pełne: czerwone na jasnym motywie, białe na ciemnym. */
	--btn-solid-bg: var(--accent);
	--btn-solid-fg: var(--on-accent);
	--btn-solid-bg-hover: color-mix(in srgb, var(--btn-solid-bg) 84%, #000);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0e0e10;
	--bg-soft: #17171a;
	--fg: #ededed;
	--fg-muted: #a3a3a8;
	--rule: #2b2b30;
	--rule-strong: #ededed;
	--btn-solid-bg: #ffffff;
	--btn-solid-fg: #0e0e10;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] {
		--bg: #0e0e10;
		--bg-soft: #17171a;
		--fg: #ededed;
		--fg-muted: #a3a3a8;
		--rule: #2b2b30;
		--rule-strong: #ededed;
		--btn-solid-bg: #ffffff;
		--btn-solid-fg: #0e0e10;
		color-scheme: dark;
	}
}

/* 3. Reset i podstawy --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 0.5rem; left: 0.5rem; z-index: 200;
	width: auto; height: auto; margin: 0; padding: 0.75rem 1rem;
	clip: auto; clip-path: none;
	background: var(--fg); color: var(--bg);
}

.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }

/* 4. Układ i narzędzia --------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.icon {
	width: 1.25rem; height: 1.25rem;
	flex: none;
	fill: none; stroke: currentColor;
	stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	padding: 0; border: 0; background: transparent; color: inherit;
	border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.7rem 1.2rem;
	background: var(--fg); color: var(--bg);
	border: 1px solid var(--fg); border-radius: var(--radius);
	font: 600 0.875rem/1.2 var(--font-sans);
	text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--light { background: #fff; color: #111; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.kicker {
	display: inline-block;
	margin-bottom: 0.5rem;
	font: 700 0.6875rem/1.1 var(--font-sans);
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--rubric, var(--accent-text));
	text-decoration: none;
}
.kicker:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.kicker--sponsored {
	padding: 0.2rem 0.45rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	color: var(--fg-muted, var(--accent-text));
	letter-spacing: 0.12em;
	font-size: 0.625rem;
	/* Ramka nie powieksza wiersza: etykieta zajmuje tyle samo miejsca co zwykla rubryka. */
	margin-block: calc(-0.165625rem - 1px) calc(0.5rem - 0.165625rem - 1px);
}

.byline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 0.4rem; }
.byline__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; margin-right: 0.25rem; }
.byline__author { font-weight: 600; color: var(--fg); text-decoration: none; }
.byline__author:hover { text-decoration: underline; }
.byline__sep { color: var(--fg-muted); }

/* 5. Masthead ------------------------------------------------------------ */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }

.masthead__top {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: var(--mast-h);
	padding-block: 0.25rem;
}
.masthead__side { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.masthead__side--end { justify-content: flex-end; }
.masthead__date { display: none; font-size: 0.8125rem; color: var(--fg-muted); text-transform: capitalize; white-space: nowrap; }

.masthead__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand { display: inline-block; text-decoration: none; color: var(--fg); line-height: 1; }
.brand__name { font: 700 clamp(1.5rem, 5vw, 1.9rem)/1 var(--font-serif); letter-spacing: -0.03em; }
.brand__logo { display: block; width: auto; height: var(--logo-h-m, 2rem); }
.brand__tagline { display: none; margin-top: 0.4rem; font: 600 0.625rem/1 var(--font-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }

.masthead__search { display: none; position: relative; align-items: center; }
.masthead__search-input {
	width: 17rem; max-width: 100%;
	padding: 0.5rem 2rem 0.5rem 0.1rem;
	background: transparent; color: var(--fg);
	border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
	font: 400 0.875rem var(--font-sans);
	transition: width 0.2s;
}
.masthead__search-input::placeholder { color: var(--fg-muted); }
.masthead__search-input:focus { outline: none; width: 22rem; border-bottom-color: var(--accent-text); }
.masthead__search-btn { position: absolute; right: 0; display: inline-flex; padding: 0.35rem; border: 0; background: none; cursor: pointer; }

.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .theme-toggle__moon { display: none; }
	:root[data-theme="auto"] .theme-toggle__sun { display: block; }
}

.masthead__nav { display: none; border-top: 1px solid var(--rule); }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.75rem; margin: 0; padding: 0; list-style: none; }
.nav-list a {
	display: block; padding: 0.8rem 0;
	font: 600 0.75rem/1 var(--font-sans);
	letter-spacing: 0.1em; text-transform: uppercase;
	text-decoration: none; color: var(--fg);
	border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a, .nav-list a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (min-width: 900px) {
	.masthead { position: static; border-bottom: 0; }
	.masthead__top { padding-block: 1.1rem; }
	.masthead__menu, .masthead__search-open { display: none; }
	.masthead__date { display: block; }
	.masthead__search { display: flex; }
	.brand__name { font-size: clamp(2rem, 3.6vw, 3rem); }
	.brand__logo { height: var(--logo-h, 3rem); }
	.brand__tagline { display: block; }
	.masthead__nav { display: block; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
}

/* 6. Dialogi i podpowiedzi ---------------------------------------------- */
.dialog {
	padding: 0; border: 0;
	max-width: none; max-height: none;
	background: var(--bg); color: var(--fg);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.dialog[open] { animation: wprawo-fade 0.18s ease-out; }
@keyframes wprawo-fade { from { opacity: 0; } to { opacity: 1; } }

.dialog--search { width: 100%; margin: 0; inset: 0 0 auto 0; max-height: 100dvh; overflow: auto; border-bottom: 1px solid var(--rule-strong); }
.dialog__inner { padding-block: 1.25rem 2rem; }
.dialog__form { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--rule-strong); padding-bottom: 0.5rem; }
.dialog__form input[type="search"] {
	flex: 1; min-width: 0; padding: 0.5rem 0;
	background: transparent; color: var(--fg);
	border: 0; font: 500 clamp(1.4rem, 5vw, 2.25rem)/1.2 var(--font-serif);
}
.dialog__form input[type="search"]:focus { outline: none; }
.dialog__form .btn { display: none; }
.dialog__results { margin-top: 1rem; }

/* Menu mobilne: panel wysuwany z prawej (tak jak przycisk "Menu" na tabbarze); z lewej, gdy otwarto je z hamburgera w nagłówku. */
.dialog--menu {
	width: min(23rem, 88vw); height: 100dvh; margin: 0 0 0 auto;
	border-left: 1px solid var(--rule-strong);
	box-shadow: -14px 0 36px rgba(0, 0, 0, 0.22);
	overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.dialog--menu[data-side="left"] { margin: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--rule-strong); box-shadow: 14px 0 36px rgba(0, 0, 0, 0.22); }
.dialog--menu::backdrop { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog--menu[open] { animation: wprawo-slide-in-r 0.36s cubic-bezier(0.22, 0.8, 0.26, 1) both; }
.dialog--menu[open]::backdrop { animation: wprawo-fade 0.3s ease-out both; }
.dialog--menu[data-side="left"][open] { animation-name: wprawo-slide-in-l; }
.dialog--menu.is-closing { animation: wprawo-slide-out-r 0.24s cubic-bezier(0.4, 0, 1, 1) both; }
.dialog--menu[data-side="left"].is-closing { animation-name: wprawo-slide-out-l; }
.dialog--menu.is-closing::backdrop { animation: wprawo-fade-out 0.24s ease-in both; }
@keyframes wprawo-slide-in-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes wprawo-slide-in-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes wprawo-slide-out-r { from { transform: none; } to { transform: translateX(100%); } }
@keyframes wprawo-slide-out-l { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes wprawo-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes wprawo-menu-item { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.dialog__panel { display: flex; flex-direction: column; gap: 1.25rem; min-height: 100%; padding: 1rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.dialog__head .icon-btn { width: 2.75rem; height: 2.75rem; }
.dialog__head .brand__logo { height: var(--logo-h-m, 2rem); max-width: 100%; }
.dialog-nav { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.dialog-nav > li { border-bottom: 1px solid var(--rule); }
.dialog-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: 3.5rem; padding: 0.75rem 0.25rem;
	font: 600 1.3rem/1.2 var(--font-serif); text-decoration: none; color: var(--fg);
	transition: background 0.2s, color 0.2s, padding 0.2s;
}
.dialog-nav a::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-top: 2px solid var(--fg-muted); border-right: 2px solid var(--fg-muted); transform: rotate(45deg); transition: transform 0.2s, border-color 0.2s; }
.dialog-nav a:hover, .dialog-nav a:focus-visible { background: var(--bg-soft); padding-inline: 0.6rem 0.5rem; color: var(--fg); }
.dialog-nav a:hover::after { border-color: var(--accent-text); transform: translateX(2px) rotate(45deg); }
.dialog-nav .current-menu-item > a, .dialog-nav .current-menu-ancestor > a, .dialog-nav .current_page_item > a { color: var(--accent-text); }
.dialog-nav--small > li { border: 0; }
.dialog-nav--small a { min-height: 2.75rem; padding: 0.4rem 0.25rem; font: 500 0.9375rem/1.2 var(--font-sans); color: var(--fg-muted); }
.dialog-nav--small a::after { display: none; }
.dialog-nav--small a:hover { color: var(--fg); }
.dialog__search { position: relative; display: flex; align-items: center; }
.dialog__search input[type="search"] {
	width: 100%; min-height: 3rem; padding: 0.6rem 3rem 0.6rem 0.1rem;
	background: transparent; color: var(--fg);
	border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
	font: 400 1rem var(--font-sans); -webkit-appearance: none; appearance: none;
}
.dialog__search input[type="search"]::placeholder { color: var(--fg-muted); }
.dialog__search input[type="search"]:focus { outline: none; border-bottom-color: var(--accent-text); }
.dialog__search input[type="search"]::-webkit-search-cancel-button { display: none; }
.dialog__search button { position: absolute; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; }
.dialog__search button:hover { color: var(--accent-text); }.dialog__secondary { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.dialog--menu[open] .dialog-nav:not(.dialog-nav--small) > li { animation: wprawo-menu-item 0.4s cubic-bezier(0.22, 0.8, 0.26, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 140ms); }
.dialog--menu[data-side="left"][open] .dialog-nav:not(.dialog-nav--small) > li { animation-name: wprawo-menu-item-l; }
@keyframes wprawo-menu-item-l { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.dialog-nav > li:nth-child(1) { --i: 0; } .dialog-nav > li:nth-child(2) { --i: 1; } .dialog-nav > li:nth-child(3) { --i: 2; } .dialog-nav > li:nth-child(4) { --i: 3; }
.dialog-nav > li:nth-child(5) { --i: 4; } .dialog-nav > li:nth-child(6) { --i: 5; } .dialog-nav > li:nth-child(7) { --i: 6; } .dialog-nav > li:nth-child(n+8) { --i: 7; }
.dialog--menu .theme-switch button { min-height: 2.5rem; padding-inline: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
	.dialog--menu[open], .dialog--menu.is-closing, .dialog--menu[open]::backdrop, .dialog--menu.is-closing::backdrop, .dialog--menu[open] .dialog-nav > li { animation: none !important; }
}

.suggest {
	position: absolute; top: calc(100% + 0.25rem); right: 0; z-index: 50;
	width: 26rem; max-width: 90vw;
	background: var(--bg); border: 1px solid var(--rule-strong);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}
.live-list { margin: 0; padding: 0; list-style: none; }
.live-item { display: block; padding: 0.7rem 1rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.live-item:last-child { border-bottom: 0; }
.live-item:hover, .live-item.is-active { background: var(--bg-soft); }
.live-item__kicker { display: block; font: 700 0.625rem/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.3rem; }
.live-item__title { display: block; font: 600 1.05rem/1.25 var(--font-serif); }
.live-item__meta { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--fg-muted); }
.live-empty, .live-all { display: block; padding: 0.8rem 1rem; font-size: 0.875rem; color: var(--fg-muted); }
.live-all { font-weight: 600; color: var(--fg); text-decoration: none; background: var(--bg-soft); }

/* 7. Karty i siatki ------------------------------------------------------ */
.grid { display: grid; gap: 2.25rem var(--gutter); }
.grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
		/* Kolumny maja rowna szerokosc (kafelki tego samego rozmiaru): dzielnik to pseudo-element w szczelinie, nie padding. */
	.grid--3, .grid--4 { column-gap: calc(var(--gutter) * 2); }
	.grid--3 > :not(:nth-child(3n + 1)), .grid--4 > :not(:nth-child(4n + 1)) { position: relative; }
	.grid--3 > :not(:nth-child(3n + 1))::before, .grid--4 > :not(:nth-child(4n + 1))::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -1); border-left: 1px solid var(--rule); }
}

.card__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.025); }
.card__placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 10px, var(--rule) 10px, var(--rule) 11px); opacity: 0.8; }
.card__body { padding-top: 0.9rem; }
.card__title { margin: 0 0 0.5rem; font: 600 1.4rem/1.2 var(--font-serif); letter-spacing: -0.012em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card__dek {
	margin: 0 0 0.7rem;
	font: 400 1.0625rem/1.45 var(--font-serif); color: var(--fg-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Kafelki standardowe: tytul i zapowiedz maja stala wysokosc (2 wiersze), zeby wszystkie karty w rzedzie byly takie same. */
.card--standard .card__title, .card--mini .card__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
	min-height: 2.4em;
}
.card--standard .card__dek { -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(1.0625rem * 1.45 * 2); }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; font: 500 0.75rem/1.4 var(--font-sans); color: var(--fg-muted); }

.card--hero .card__media { aspect-ratio: 3 / 2; }
.card--hero .card__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.07; letter-spacing: -0.022em; }
.card--hero .card__dek { font-size: clamp(1.1rem, 1.7vw, 1.3rem); -webkit-line-clamp: 4; }
/* Glowny felieton: tresc lezy na zdjeciu, ktore sciemnia sie gradientem od dolu. Tekst zawsze jasny (niezaleznie od motywu). */
.card--hero { display: grid; position: relative; overflow: hidden; color: #ffffff; background: var(--bg-soft); }
.card--hero .card__media, .card--hero .card__body { grid-area: 1 / 1; }
.card--hero .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.72) 28%, rgba(8, 8, 10, 0.32) 55%, rgba(8, 8, 10, 0) 80%);
}
.card--hero .card__body { position: relative; z-index: 1; align-self: end; padding: 5rem clamp(1rem, 3vw, 2rem) clamp(1rem, 2.6vw, 1.75rem); pointer-events: none; }
.card--hero .card__body a { pointer-events: auto; }
.card--hero .card__title, .card--hero .card__title a { color: #ffffff; }
.card--hero .card__dek { color: rgba(255, 255, 255, 0.88); }
.card--hero .card__meta, .card--hero .card__meta a, .card--hero .card__meta .byline { color: rgba(255, 255, 255, 0.85); }
.card--hero .kicker--sponsored { color: #ffffff; }
@media (max-width: 599px) {
	.card--hero .card__body { padding-top: 3rem; }
	.card--hero .card__dek { -webkit-line-clamp: 2; line-clamp: 2; }
}

.card--side { display: grid; grid-template-columns: 1fr 7.5rem; gap: 1rem; align-items: start; }
.card--side .card__body { padding-top: 0; }
.card--side .card__title { font-size: 1.2rem; }
.card--side .card__media { aspect-ratio: 1 / 1; order: 2; }

.card--mini .card__title { font-size: 1.1rem; }
.card--mini .card__media { aspect-ratio: 4 / 3; }

.card--result { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.card--result .card__body { padding-top: 0; }
.card--result .card__media { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .card--result { grid-template-columns: 1fr 12rem; } }

/* 8. Nagłówki sekcji ----------------------------------------------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-top: 0.75rem; border-top: 2px solid var(--fg); }
.section-head__title { margin: 0; font: 700 0.8125rem/1.2 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.section-head__link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; background: var(--btn-solid-bg); border: 1px solid var(--btn-solid-bg); border-radius: 999px; font: 600 0.8125rem/1.2 var(--font-sans); text-decoration: none; color: var(--btn-solid-fg); white-space: nowrap; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.section-head__link .icon { width: 1rem; height: 1rem; }
.section-head__link:hover { background: var(--btn-solid-bg-hover); border-color: var(--btn-solid-bg-hover); color: var(--btn-solid-fg); }
.section-head__link:hover .icon { transform: translateX(2px); }
.section-head__link .icon { transition: transform 0.2s; }
.section-head--rubric { border-top-color: var(--rubric, var(--fg)); }

.related { padding-block: 3rem; border-top: 1px solid var(--rule); background: var(--bg-soft); }

/* 9. Trzy bloki: strony redakcji ---------------------------------------- */
.blocks { padding-block: 3.5rem; }
.blocks__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .blocks__grid { grid-template-columns: repeat(var(--cols, 3), 1fr); } }

.block {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column; justify-content: flex-start; gap: 0.5rem;
	min-height: 16rem; height: 100%;
	padding: 1.6rem;
	background: var(--block-bg, #14171c); color: var(--block-fg, #fff);
	text-decoration: none; overflow: hidden;
}
/* Zdjęcie zamiast koloru tła: równe przyciemnienie + ciemna winieta (najciemniej przy brzegach, gdzie stoją teksty). */
.block--image { background-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%), linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--block-image); background-size: cover; background-position: center; }
.block--image .block__kicker, .block--image .block__title, .block--image .block__text, .block--image .block__cta { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }
.block__kicker { min-height: 0.7rem; font: 700 0.7rem/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.block__title { font: 600 clamp(1.6rem, 2.6vw, 2.3rem)/1.08 var(--font-serif); letter-spacing: -0.02em; }
/* Opis: zawsze zarezerwowane dwie linie (dluzszy tekst jest skracany), zeby bloki mialy rowny uklad. */
.block__text {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
	max-width: 32ch; min-height: calc(1.0625rem * 1.4 * 2);
	font: 400 1.0625rem/1.4 var(--font-serif);
}
.block__cta { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; margin-top: auto; padding-top: 0.8rem; padding-bottom: 0.2rem; font: 600 0.875rem/1 var(--font-sans); border-bottom: 1px solid currentColor; }
.block__cta .icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.block:hover .block__cta .icon { transform: translate(2px, -2px); }

.blocks--compact { padding-block: 2rem; border-top: 1px solid var(--rule); }
.blocks--compact .block { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 0; padding: 1rem 1.25rem; }
.blocks--compact .block__title { font-size: 1.25rem; }
.blocks--compact .block__kicker { flex-basis: 100%; }
.blocks--compact .block__cta { margin: 0; padding-top: 0; }
.blocks--compact .block__kicker:empty { display: none; }

/* 10. Powiadomienia push i reklamy ---------------------------------------------- */
.push-cta { padding-block: 4rem; background: var(--accent); color: var(--on-accent); text-align: center; }
.push-cta[hidden] { display: none; }
.push-cta__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; border: 2px solid currentColor; border-radius: 50%; }
.push-cta__icon svg { width: 1.6rem; height: 1.6rem; }
.push-cta__title { margin: 0 0 0.75rem; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; color: inherit; }
.push-cta__copy { margin: 0 auto 2rem; max-width: 34rem; font: 400 1.1875rem/1.5 var(--font-serif); color: inherit; opacity: 0.92; }
.push-cta__btn { min-height: 3.25rem; padding-inline: 2rem; background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); font-size: 0.9375rem; }
.push-cta__btn:hover, .push-cta__btn:focus-visible { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
.push-cta__btn:disabled { opacity: 0.6; cursor: wait; }
.push-cta[data-state="on"] .push-cta__btn { background: transparent; color: var(--on-accent); }
.push-cta[data-state="on"] .push-cta__btn:hover { background: color-mix(in srgb, var(--on-accent) 16%, transparent); }
.push-cta :focus-visible { outline-color: var(--on-accent); }
.push-cta__note { max-width: 32rem; margin: 1.1rem auto 0; font-size: 0.9375rem; color: inherit; }

/* Powiadomienia push jako stały widget sidebaru. */
.push-cta--side { padding: 1.6rem 1.4rem 1.7rem; text-align: left; }
.push-cta--side .push-cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.push-cta--side .push-cta__icon { width: 2.6rem; height: 2.6rem; margin-bottom: 0.6rem; }
.push-cta--side .push-cta__icon svg { width: 1.2rem; height: 1.2rem; }
.push-cta--side .push-cta__title { margin: 0 0 0.5rem; font-size: 1.5rem; }
.push-cta--side .push-cta__copy { margin: 0 0 1.1rem; font-size: 1rem; }
.push-cta--side .push-cta__btn { min-height: 2.75rem; padding-inline: 1.4rem; }
.push-cta--side .push-cta__note { margin: 0.9rem 0 0; font-size: 0.875rem; }

/* Linia wsparcia: rotujące hasło i odnośnik do strony „Wsparcie” (pod podcastem, trzema boxami, powiadomieniami). */
.support-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; margin: 1.5rem 0 0; font: 400 0.9375rem/1.45 var(--font-sans); color: var(--fg-muted); }
.support-line__text { transition: opacity 0.35s; }
.support-line__text.is-fading { opacity: 0; }
.support-line__link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; white-space: nowrap; }
.support-line__link:hover { text-decoration-thickness: 2px; }
.support-line__link .icon { width: 1rem; height: 1rem; }
.support-line--center { justify-content: center; text-align: center; margin-top: 1.75rem; }
.support-line--on-dark { color: rgba(255, 255, 255, 0.72); }
.support-line--on-dark .support-line__link { color: #ffffff; }
.support-line--on-accent { justify-content: center; text-align: center; margin-top: 1.75rem; color: var(--on-accent); opacity: 0.95; }
.support-line--on-accent .support-line__link { color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .support-line__text { transition: none; } }

.ad-slot { display: block; margin-block: 2rem; }
.ad-slot:empty, .ad-slot:has(> .wprawo-promo[data-state="empty"]) { display: none; }
.ad-slot--home-hero { margin-block: 1.75rem 0; }

/* 11. Stopka ------------------------------------------------------------- */
.site-footer { margin-top: 3rem; padding-block: 3rem 2rem; background: var(--bg-soft); border-top: 1px solid var(--rule-strong); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand--footer .brand__name { font-size: 2rem; }
.brand--footer .brand__logo { height: 2.5rem; }
.site-footer__about { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__about .theme-switch { margin-top: 1.25rem; }
.site-footer__about .site-footer__text + .theme-switch { margin-top: 0; }
.site-footer__text { max-width: 32rem; margin: 1rem 0 1.5rem; font: 400 1.0625rem/1.5 var(--font-serif); color: var(--fg-muted); }
.site-footer__title { margin: 0 0 0.9rem; font: 700 0.75rem/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { text-decoration: none; font-size: 0.9375rem; color: var(--fg-muted); }
.footer-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--fg-muted); }
.site-footer__bottom p { margin: 0; }

.theme-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
.theme-switch button { padding: 0.45rem 0.9rem; border: 0; background: transparent; font: 600 0.75rem/1 var(--font-sans); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.dialog__panel .theme-switch { align-self: flex-start; }

/* 12. Tabbar (mobile) ---------------------------------------------------- */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	background: var(--bg); border-top: 1px solid var(--rule-strong);
	padding-bottom: env(safe-area-inset-bottom);
	translate: 0 0; transition: translate 0.25s ease;
}
.tabbar.is-hidden { translate: 0 110%; }
.tabbar__list { display: grid; grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tabbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
	width: 100%; height: var(--tabbar-h);
	padding: 0.25rem; border: 0; background: transparent;
	color: var(--fg-muted); text-decoration: none; cursor: pointer;
	font: 600 0.6875rem/1 var(--font-sans);
}
.tabbar__item .icon { width: 1.4rem; height: 1.4rem; }
.tabbar__item.is-current { color: var(--accent-text); }
.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
	.tabbar { display: none; }
	.has-tabbar { padding-bottom: 0; }
	.tabbar-desktop .tabbar { display: block; left: 50%; right: auto; bottom: 1rem; width: min(34rem, 92vw); translate: -50% 0; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
	.tabbar-desktop .tabbar.is-hidden { translate: -50% 150%; }
	.tabbar-desktop.has-tabbar { padding-bottom: 5rem; }
}

/* 13. Zgodność z wtyczkami ---------------------------------------------- */
.wp-dark-mode-switcher { display: none !important; }

.has-tabbar .onesignal-bell-launcher,
.has-tabbar #onesignal-bell-container .onesignal-bell-launcher { bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom)) !important; }

@media (max-width: 899px) {
	.has-tabbar #cookie-law-info-bar,
	.has-tabbar .cky-consent-container,
	.has-tabbar .cli-bar-container,
	.has-tabbar #cookie-law-info-again { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)) !important; }
}

@media print {
	.masthead, .tabbar, .site-footer, .blocks, .push-cta, .dialog, .share, .ad-slot { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Box wsparcia ----------------------------------------------------------- */
.support { position: relative; background: var(--sup-bg); color: var(--sup-fg); }
.support--ink { --sup-bg: #14171c; --sup-fg: #ffffff; }
.support--accent { --sup-bg: var(--accent); --sup-fg: var(--on-accent); }
.support--paper { --sup-bg: var(--bg-soft); --sup-fg: var(--fg); border-bottom: 1px solid var(--rule); }

.support__bar { display: none; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; font: 600 0.8125rem/1.3 var(--font-sans); }
.support__bar-label { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tekst po lewej, który się nie mieści, przewija się (marquee); skrypt dodaje .is-marquee i kopię tekstu. */
.support__bar-text { display: inline-block; white-space: nowrap; }
.support__bar-str { display: inline-block; }
.support__bar-label.is-marquee { text-overflow: clip; }
.support__bar-label.is-marquee .support__bar-str { padding-right: 3rem; }
.support__bar-label.is-marquee .support__bar-text { animation: support-marquee var(--mq-dur, 12s) linear infinite; }
.support__bar-label.is-marquee:hover .support__bar-text { animation-play-state: paused; }
@keyframes support-marquee { to { transform: translateX(calc(-1 * var(--mq-dist, 0px))); } }
.support__bar-actions { display: inline-flex; align-items: center; gap: 1rem; flex: none; white-space: nowrap; }
.support__bar-link { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.support__expand { padding: 0.3rem 0.7rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; font: 600 0.75rem var(--font-sans); cursor: pointer; }

.support-collapsed .support__body { display: none; }
.support-collapsed .support__bar { display: flex; }

.support__body { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem 2.25rem; }
.support__eyebrow { margin: 0 0 0.6rem; font: 700 0.75rem/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.support__title { margin: 0 0 0.75rem; font: 600 clamp(1.9rem, 4.4vw, 3.2rem)/1.04 var(--font-serif); letter-spacing: -0.024em; text-wrap: balance; }
.support__copy { max-width: 38rem; margin: 0 0 1.4rem; font: 400 clamp(1.05rem, 1.8vw, 1.25rem)/1.45 var(--font-serif); }
.btn--on-support { background: var(--sup-fg); color: var(--sup-bg); border-color: var(--sup-fg); }
.btn--on-support:hover { background: transparent; color: var(--sup-fg); border-color: var(--sup-fg); }
.support__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.support__collapse { position: absolute; top: 0.5rem; right: var(--gutter); color: inherit; }
.support__collapse:hover { background: rgba(127, 127, 127, 0.25); }

@media (min-width: 800px) {
	.support__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; padding-block: 3rem; }
	.support__body:not(:has(.support__media)) { grid-template-columns: minmax(0, 1fr); }
}

/* Telefon i tablet: box jest zawsze cienkim paskiem, bez rozwijania. */
@media (max-width: 799px) {
	.support__body { display: none; }
	.support__bar { display: flex; }
	.support__expand { display: none; }
}

.support-rotator { display: block; }
.support.is-entering { animation: support-in 0.45s ease both; }
@keyframes support-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .support.is-entering { animation: none; } .support__bar-label.is-marquee .support__bar-text { animation: none; } }

/* Siatka "Najnowsze felietony": liczba kolumn z ustawien (--ld komputer, --lt tablet, --lm telefon); dzielniki w odstepie miedzy kolumnami. */
.grid--latest { grid-template-columns: repeat(var(--lm, 1), minmax(0, 1fr)); column-gap: calc(var(--gutter) * 2); }
.grid--latest > * { position: relative; }
.grid--latest > *::before { content: ""; display: none; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -1); border-left: 1px solid var(--rule); }
@media (max-width: 599px) { .lm-2 > :nth-child(2n)::before { display: block; } }
@media (min-width: 600px) {
	.grid--latest { grid-template-columns: repeat(var(--lt, 2), minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 959px) {
	.lt-2 > :nth-child(2n)::before, .lt-3 > :nth-child(3n + 2)::before, .lt-3 > :nth-child(3n)::before { display: block; }
}
@media (min-width: 960px) {
	.grid--latest { grid-template-columns: repeat(var(--ld, 3), minmax(0, 1fr)); }
	.ld-2 > :not(:nth-child(2n + 1))::before, .ld-3 > :not(:nth-child(3n + 1))::before, .ld-4 > :not(:nth-child(4n + 1))::before { display: block; }
}