/* ZPI-Day — tokeny i style bazowe */
:root {
	--ink: #0b1020;
	--ink-2: #262c3a;
	--text-2: #3a4152;
	--muted: #4a5163;
	--muted-2: #6a7183;
	--line: #e3e5ea;
	--line-2: #c9cdd6;
	--line-dashed: #d6d9e0;
	--paper: #f5f6f8;
	--white: #ffffff;
	--blue: #2b44ff;
	--blue-hover: #1a2cc4;
	--blue-soft: #eef0ff;
	--orange: #ff8a4c;
	--orange-ink: #b4501a;
	--dark-2: #141b30;
	--dark-3: #222a40;
	--dark-line: #262e45;
	--dark-muted: #a9b0c2;
	--dark-text: #c9ceda;
	--green: #7cf2a4;

	/* Semantic colours: use these instead of fixed values so both themes stay readable. */
	--inverse: #0b1020;        /* dark panel (journal, highlights, skip link, avatar) */
	--on-inverse: #ffffff;     /* text on --inverse */
	--on-accent: #ffffff;      /* text on --blue */
	--on-orange: #0b1020;      /* text on --orange */
	--chip: #e9ebef;           /* neutral chip / status */
	--warm-soft: #fff7ed;      /* callout / warning background */
	--warm-line: #fed7aa;
	--warm-ink: #7c2d12;
	--ok-soft: #ddf7e7;
	--ok-ink: #11663a;

	--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

	--radius: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--blue);
}
a:hover {
	color: var(--blue-hover);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	margin: 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--inverse);
	color: var(--on-inverse);
	font-weight: 600;
}
.skip-link:focus {
	top: 12px;
	color: var(--white);
}

/* Układ */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 24px;
}

.section {
	padding-block: 80px;
}
.section--paper {
	background: var(--paper);
	border-block: 1px solid var(--line);
	padding-block: 72px;
}
.section--dark {
	background: var(--ink);
	color: var(--white);
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.section-head__title {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 680px;
}

.kicker {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--blue);
}
.section--dark .kicker {
	color: var(--orange);
}

.label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.h2 {
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.1;
}

.lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--muted);
}

.mono {
	font-family: var(--font-mono);
}

.grid-auto {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
	gap: 16px;
}

.with-aside {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	padding-block: 48px 80px;
}
.with-aside > .content {
	flex: 999 1 560px;
	min-width: 0;
}
.with-aside > .aside {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Przyciski i linki */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: 600 15px/1.2 var(--font-sans);
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.15s,
		border-color 0.15s,
		color 0.15s;
}
.btn--lg {
	padding: 14px 22px;
	font-size: 16px;
}
.btn--primary {
	background: var(--blue);
	color: var(--white);
}
.btn--primary:hover {
	background: var(--blue-hover);
	color: var(--white);
}
.btn--dark {
	background: var(--ink);
	color: var(--white);
}
.btn--dark:hover {
	background: #1f2740;
	color: var(--white);
}
.btn--ghost {
	background: transparent;
	border-color: var(--line-2);
	color: var(--ink);
}
.btn--ghost:hover {
	border-color: var(--ink);
	color: var(--ink);
}
.btn--light {
	background: var(--white);
	color: var(--ink);
}
.btn--light:hover {
	background: var(--blue-soft);
	color: var(--ink);
}
.btn--ghost-dark {
	background: transparent;
	border-color: #3a4360;
	color: var(--white);
}
.btn--ghost-dark:hover {
	border-color: var(--white);
	color: var(--white);
}

.link-arrow {
	font-weight: 600;
	font-size: 15px;
	padding-block: 12px;
	text-decoration: none;
}
.link-arrow:hover {
	text-decoration: underline;
}

/* Karty, etykiety */
.card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s;
}
a.card:hover {
	border-color: var(--blue);
	color: var(--ink);
}
.card__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.25;
}
.card__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted);
}

.chip {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--blue-soft);
	color: var(--blue);
	white-space: nowrap;
}
.chip--scena {
	background: var(--orange);
	color: var(--on-orange);
}
.chip--plakat {
	background: var(--blue-soft);
	color: var(--blue);
}
.chip--neutral {
	background: var(--chip);
	color: var(--muted);
}

.placeholder {
	border-radius: 12px;
	border: 1px solid var(--line-dashed);
	background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--line) 12px 24px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	padding: 12px;
}

/* Nagłówek podstrony */
.page-hero {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.page-hero__inner {
	padding-block: 56px 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.page-hero h1 {
	font-weight: 700;
	font-size: clamp(36px, 5vw, 64px);
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 980px;
}
.page-hero p {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--text-2);
	max-width: 760px;
}

.breadcrumb {
	font-size: 14px;
	color: var(--muted);
}
.breadcrumb a {
	text-decoration: none;
}

/* Spis treści */
.toc {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px;
}
.toc .label {
	padding-bottom: 10px;
}
.toc a {
	display: block;
	padding: 8px 12px;
	border-left: 2px solid var(--line);
	color: var(--text-2);
	text-decoration: none;
}
.toc a:hover {
	border-color: var(--blue);
	color: var(--blue);
}

/* Fakty (siatka etykieta/wartość) */
.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	margin: 0;
}
.facts > div {
	background: var(--white);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.facts dt {
	font-size: 12px;
	color: var(--muted-2);
}
.facts dd {
	margin: 0;
	font-weight: 600;
}

/* Treść z Markdowna */
.prose {
	font-size: 18px;
	line-height: 1.75;
	color: var(--ink-2);
	max-width: 760px;
}
.prose > * {
	margin: 0 0 22px;
}
.prose h2 {
	margin-top: 40px;
	font-size: 30px;
	line-height: 1.2;
	color: var(--ink);
	scroll-margin-top: 24px;
}
.prose h3 {
	margin-top: 28px;
	font-size: 22px;
	color: var(--ink);
}
.prose ul,
.prose ol {
	padding-left: 22px;
}
.prose li + li {
	margin-top: 8px;
}
.prose strong {
	color: var(--ink);
}
.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--blue);
	color: var(--text-2);
}
.prose code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--paper);
	padding: 2px 6px;
	border-radius: 6px;
}
.prose img {
	border-radius: 14px;
}
.prose .callout {
	display: block;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--warm-soft);
	border: 1px solid var(--warm-line);
	font-size: 16px;
	line-height: 1.6;
	color: var(--warm-ink);
}
.prose .callout--info {
	background: var(--blue-soft);
	border-color: #d3d8ff;
	color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
}

/* ===== Nagłówek ===== */

	.header {
		border-bottom: 1px solid var(--line);
		background: var(--white);
	}
	.header__inner {
		padding-block: 10px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.logo {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		text-decoration: none;
		color: var(--ink);
	}
	.logo:hover {
		color: var(--ink);
	}
	.logo__img {
		display: block;
		height: 76px;
		width: auto;
		flex: none;
	}
	@media (max-width: 720px) {
		.logo__img {
			height: 60px;
		}
	}
	.nav {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		align-items: center;
	}
	.nav__link {
		padding: 12px 14px;
		border-radius: 8px;
		font-size: 15px;
		font-weight: 500;
		text-decoration: none;
		color: var(--ink);
	}
	.nav__link:hover {
		background: var(--paper);
		color: var(--ink);
	}
	.nav__link--active,
	.nav__link--active:hover {
		color: var(--blue);
		background: var(--blue-soft);
		font-weight: 600;
	}

/* ===== Stopka ===== */

	.footer {
		background: var(--ink);
		color: var(--dark-text);
	}
	.footer__grid {
		padding-block: 56px 40px;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 32px;
	}
	.footer__about {
		display: flex;
		flex-direction: column;
		gap: 12px;
		font-size: 14px;
		line-height: 1.55;
	}
	.footer__col {
		display: flex;
		flex-direction: column;
		gap: 4px;
		font-size: 14px;
	}
	.footer__head {
		font-family: var(--font-mono);
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: #8c93a6;
		padding-bottom: 6px;
	}
	.footer__col a {
		color: var(--white);
		text-decoration: none;
		padding: 6px 0;
	}
	.footer__col a:hover {
		text-decoration: underline;
	}
	.footer__bottom {
		padding-block: 20px 32px;
		border-top: 1px solid var(--dark-line);
		font-size: 13px;
		color: #8c93a6;
	}

/* ===== Odliczanie ===== */

	.countdown {
		background: var(--ink);
		color: var(--white);
		border-radius: 20px;
		padding: 32px;
		display: flex;
		flex-direction: column;
		gap: 28px;
	}
	.countdown__top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		flex-wrap: wrap;
	}
	.countdown__label {
		color: var(--dark-muted);
		font-weight: 400;
		letter-spacing: 0.08em;
	}
	.countdown__live {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-family: var(--font-mono);
		font-size: 12px;
		color: var(--green);
	}
	.dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--green);
		animation: pulse 2s infinite;
	}
	@keyframes pulse {
		50% {
			opacity: 0.35;
		}
	}
	.countdown__digits {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}
	.countdown__digits > div {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	.num {
		font-family: var(--font-mono);
		font-weight: 500;
		font-size: clamp(32px, 5vw, 64px);
		line-height: 1;
		letter-spacing: -0.02em;
		font-variant-numeric: tabular-nums;
	}
	.num--accent {
		color: var(--orange);
	}
	.unit {
		font-size: 13px;
		color: var(--dark-muted);
	}
	.countdown__rule {
		height: 1px;
		background: var(--dark-line);
	}
	.countdown__next {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.countdown__next-row {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 16px;
		flex-wrap: wrap;
	}
	.countdown__next-text {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}
	.countdown__next-title {
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 24px;
	}
	.countdown__next-date {
		font-size: 14px;
		color: var(--dark-text);
	}
	.countdown__badge {
		padding: 8px 12px;
		border-radius: 999px;
		background: var(--orange);
		color: var(--on-orange);
		font-weight: 600;
		font-size: 14px;
	}
	.countdown__progress {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.bar {
		height: 8px;
		border-radius: 999px;
		background: var(--dark-line);
		overflow: hidden;
	}
	.bar__fill {
		height: 100%;
		border-radius: 999px;
		background: var(--orange);
	}
	.countdown__scale {
		display: flex;
		justify-content: space-between;
		gap: 8px;
		font-size: 12px;
		color: var(--dark-muted);
	}
	@media (max-width: 480px) {
		.countdown {
			padding: 24px;
		}
		.countdown__scale span:first-child,
		.countdown__scale span:last-child {
			display: none;
		}
	}
	@media (prefers-reduced-motion: reduce) {
		.dot {
			animation: none;
		}
	}

/* ===== Harmonogram ===== */

	.timeline {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 16px;
	}
	.step {
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: 14px;
		padding: 20px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.step__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}
	.step__dot {
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: var(--white);
		border: 2px solid #9aa1b2;
	}
	.step__badge {
		font-family: var(--font-mono);
		font-size: 11px;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		padding: 4px 8px;
		border-radius: 999px;
		background: var(--blue-soft);
		color: var(--blue);
	}
	.step__date {
		font-family: var(--font-mono);
		font-size: 15px;
		font-weight: 500;
	}
	.step__label {
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 19px;
		line-height: 1.25;
	}
	.step__desc {
		font-size: 14px;
		line-height: 1.5;
		color: var(--muted);
	}

	.step--done .step__dot {
		background: var(--ink);
		border-color: var(--ink);
	}
	.step--done .step__badge {
		background: var(--chip);
		color: var(--muted);
	}
	.step--next {
		border-color: var(--orange);
	}
	.step--next .step__dot {
		background: var(--orange);
		border-color: var(--orange);
	}
	.step--next .step__badge {
		background: var(--orange);
		color: var(--on-orange);
	}

/* ===== Karta projektu ===== */

	.pcard {
		text-decoration: none;
		color: var(--ink);
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: 16px;
		padding: 22px;
		display: flex;
		flex-direction: column;
		gap: 12px;
		transition: border-color 0.15s;
	}
	.pcard:hover {
		border-color: var(--blue);
		color: var(--ink);
	}
	.pcard__top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
		flex-wrap: wrap;
	}
	.pcard__code {
		font-size: 13px;
		color: var(--muted-2);
	}
	.pcard__title {
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 19px;
		line-height: 1.25;
	}
	.pcard__summary {
		font-size: 14px;
		line-height: 1.55;
		color: var(--muted);
	}
	.pcard__foot {
		margin-top: auto;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding-top: 12px;
		border-top: 1px dashed var(--line-dashed);
	}
	.pcard__area {
		font-size: 12px;
		font-weight: 600;
		color: var(--blue);
	}
	.pcard__meta {
		display: flex;
		justify-content: space-between;
		gap: 8px;
		font-size: 13px;
		color: var(--muted);
	}
	.pcard__more {
		color: var(--blue);
		font-weight: 600;
		white-space: nowrap;
	}

	.pcard--dark {
		background: var(--dark-2);
		border-color: var(--dark-line);
		color: var(--white);
		padding: 24px;
		gap: 14px;
	}
	.pcard--dark:hover {
		border-color: var(--orange);
		color: var(--white);
	}
	.pcard--dark .pcard__code {
		color: var(--dark-muted);
	}
	.pcard--dark .pcard__title {
		font-size: 21px;
	}
	.pcard--dark .pcard__summary {
		font-size: 15px;
		color: var(--dark-text);
	}
	.pcard--dark .pcard__foot {
		border-top: 1px solid var(--dark-line);
		padding-top: 14px;
	}
	.pcard--dark .pcard__meta {
		color: var(--dark-muted);
	}
	.pcard--dark .pcard__more {
		color: var(--orange);
	}
	.pcard__area-chip {
		font-size: 12px;
		padding: 4px 10px;
		border-radius: 999px;
		background: var(--dark-3);
		color: var(--dark-text);
	}

/* ===== Wiersz wpisu ===== */

	.row {
		text-decoration: none;
		color: var(--ink);
		display: grid;
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 20px;
		padding: 22px 0;
		border-top: 1px solid var(--line);
	}
	.row:hover {
		color: var(--ink);
	}
	.row:hover .row__title {
		color: var(--blue);
	}
	.row__date {
		font-size: 13px;
		color: var(--muted-2);
		padding-top: 4px;
	}
	.row__body {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}
	.row__cat {
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--blue);
	}
	.row__title {
		font-family: var(--font-display);
		font-weight: 700;
		font-size: 20px;
		transition: color 0.15s;
	}
	.row__lead {
		font-size: 15px;
		line-height: 1.5;
		color: var(--muted);
	}
	@media (max-width: 520px) {
		.row {
			grid-template-columns: 1fr;
			gap: 8px;
		}
	}

/* ===== Wpis na blogu (wpis-*.dc.html) ===== */
.badges{display:flex;flex-wrap:wrap;gap:8px;}
.badge{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:6px 10px;border-radius:999px;background:var(--white);border:1px solid var(--line-2);color:var(--text-2);}
.badge--main{background:var(--blue);border-color:var(--blue);color:var(--on-accent);}
.page-hero .hero-lead{font-size:20px;max-width:780px;}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;font-size:14px;color:var(--muted);padding-top:4px;}
.author{display:flex;align-items:center;gap:10px;}
.author strong{color:var(--ink);}
.author__avatar{width:32px;height:32px;border-radius:50%;background:var(--inverse);color:var(--on-inverse);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:11px;}
.article{max-width:760px;display:flex;flex-direction:column;gap:32px;}
.highlights{background:var(--inverse);color:var(--on-inverse);border-radius:16px;padding:24px 28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;}
.highlights > div{display:flex;flex-direction:column;gap:4px;}
.highlights .label{color:var(--dark-muted);}
.highlights__value{font-size:17px;font-weight:600;}
.highlights__value--accent{font-family:var(--font-mono);font-size:22px;font-weight:500;color:var(--orange);}
.article .prose > *:last-child{margin-bottom:0;}
.steps-list{list-style:none;padding:0!important;display:flex;flex-direction:column;gap:14px;}
.steps-list li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;align-items:start;margin:0!important;}
.steps-list__num{width:44px;height:44px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-weight:500;font-size:15px;}
.article__foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:24px;border-top:1px solid var(--line);}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;}
.post-tags .chip{font-weight:400;font-size:13px;padding:8px 12px;}
.share{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted);}
.share__btn{width:44px;height:44px;border-radius:10px;border:1px solid var(--line-2);background:var(--white);display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--ink);font:700 15px var(--font-sans);cursor:pointer;}
.share__btn:hover{border-color:var(--ink);color:var(--ink);}
.share__btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.dates{border:1px solid var(--line);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:14px;}
.dates dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:10px 14px;font-size:14px;}
.dates dt{font-family:var(--font-mono);}
.dates dd{margin:0;color:var(--text-2);}
.dates .is-event{color:var(--orange-ink);font-weight:600;}
.related{background:var(--paper);border-top:1px solid var(--line);}
.related__inner{padding-block:56px 64px;display:flex;flex-direction:column;gap:8px;}
.related__cat{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--blue);}
.related__title{font-family:var(--font-display);font-weight:700;font-size:19px;line-height:1.3;}
.related__date{font-family:var(--font-mono);font-size:13px;color:var(--muted-2);margin-top:auto;}

/* Local archival news cover images */
.row__body{position:relative}
.row--with-cover .row__body{padding-right:158px;min-height:112px}
.row__cover{position:absolute;top:0;right:0;width:144px;height:96px;object-fit:contain;background:var(--paper);border:1px solid var(--line);border-radius:11px}
@media(max-width:560px){.row--with-cover .row__body{padding-right:104px;min-height:90px}.row__cover{width:94px;height:82px}}


/* ===== Jasny / ciemny motyw =====
   data-zpi-theme is controlled by the shared header; auto follows the OS.
   Explicit overrides preserve the contrast of already dark hero/footer blocks. */
:root[data-zpi-theme="dark"] {
  color-scheme: dark;
  --ink: #eff3ff;
  --ink-2: #d7dfef;
  --text-2: #cbd4e6;
  --muted: #b2bfd4;
  --muted-2: #9aaac3;
  --line: #334159;
  --line-2: #54627c;
  --line-dashed: #47556d;
  --paper: #192438;
  --white: #111a2a;
  --blue: #9db8ff;
  --blue-hover: #ccdbff;
  --blue-soft: #253351;
  --orange: #ffab79;
  --orange-ink: #ffc39b;
  --dark-2: #18233a;
  --dark-3: #24314c;
  --dark-line: #3a4762;
  --dark-muted: #becae0;
  --dark-text: #d9e1ef;
  --header-bg: rgba(17,26,42,0.94);
  --inverse: #1c2a45;
  --on-inverse: #f4f7ff;
  --on-accent: #0f1830;
  --on-orange: #1b1206;
  --chip: #2a3750;
  --warm-soft: #3a2a1d;
  --warm-line: #8a5a3a;
  --warm-ink: #ffe0c2;
  --ok-soft: #173826;
  --ok-ink: #9fe8bf;
}
:root[data-zpi-theme="light"] { color-scheme: light; }

html[data-zpi-theme="dark"] .zpi-header { background: var(--header-bg); }
html[data-zpi-theme="dark"] .section--dark,
html[data-zpi-theme="dark"] .footer { background: #0a1121; color: #f0f4ff; }
html[data-zpi-theme="dark"] .section--dark .pcard--dark { color: #f0f4ff; background: #17243b; }
html[data-zpi-theme="dark"] .section--dark .pcard--dark:hover { color: #fff; }
html[data-zpi-theme="dark"] .footer__col a { color: #f0f4ff; }
html[data-zpi-theme="dark"] .countdown { background: #15233d; color: #f0f4ff; }
html[data-zpi-theme="dark"] .countdown__label { color: #bdc9df; }
html[data-zpi-theme="dark"] .btn--primary { color: #101827; }
html[data-zpi-theme="dark"] .btn--primary:hover { color: #101827; }
html[data-zpi-theme="dark"] .btn--dark { background: #e3eaff; color: #111827; }
html[data-zpi-theme="dark"] .btn--dark:hover { background: #c9d7ff; color: #111827; }
html[data-zpi-theme="dark"] .btn--ghost-dark { color: #f0f4ff; border-color: #7b88a3; }
html[data-zpi-theme="dark"] .btn--ghost-dark:hover { color: #fff; border-color: #fff; }
html[data-zpi-theme="dark"] .zpi-seg { background: var(--paper); border-color: var(--line-2); }
html[data-zpi-theme="dark"] .zpi-seg button.is-on { color: #101827; background: #edf2ff; }
html[data-zpi-theme="dark"] .zpi-seg button:not(.is-on) { color: #cbd5e6; }
html[data-zpi-theme="dark"] .zpi-seg button:hover:not(.is-on) { color: #fff; background: #33435e; }
html[data-zpi-theme="dark"] .zpi-drawer { background: #101a2e; color: #f4f7ff; }
html[data-zpi-theme="dark"] .zpi-drawer .zpi-seg { background: transparent; }
html[data-zpi-theme="dark"] .zpi-drawer .zpi-seg button.is-on { background: #edf2ff; color: #101827; }
html[data-zpi-theme="dark"] .zpi-drawer .btn--light { background: #edf2ff; color: #101827; }
html[data-zpi-theme="dark"] .zpi-drawer nav a { color: #f0f4ff; }
html[data-zpi-theme="dark"] .zpi-drawer nav a.is-active { color: #ffb482; }
html[data-zpi-theme="dark"] .zpi-header .logo { background: #eff3ff; border-radius: 10px; padding: 3px 7px; }
html[data-zpi-theme="dark"] .pill,
html[data-zpi-theme="dark"] .search,
html[data-zpi-theme="dark"] .roles__chip,
html[data-zpi-theme="dark"] .mt-note__btn { background: var(--white); color: var(--ink); border-color: var(--line-2); }
html[data-zpi-theme="dark"] .pill--on,
html[data-zpi-theme="dark"] .pill--on:hover { background: #dbe5ff; border-color: #dbe5ff; color: #121b2b; }
html[data-zpi-theme="dark"] .roles__chip:hover { color: var(--blue); }
html[data-zpi-theme="dark"] .step--next .step__badge,
html[data-zpi-theme="dark"] .step--next .step__dot { color: #142031; }
html[data-zpi-theme="dark"] .code { background: #dbe5ff; color: #131c2e; }
html[data-zpi-theme="dark"] .mt-note { border-color: #3a527e; }
html[data-zpi-theme="dark"] .premise-logo--empty { background: transparent; }
html[data-zpi-theme="dark"] .premise-logo:not(.premise-logo--empty) { background: #fff; }
html[data-zpi-theme="dark"] .callout--info { background: #253351; border-color: #49629d; color: #e6ecff; }
html[data-zpi-theme="dark"] .callout--warning { background: #3d2d20; border-color: #8a5a3a; color: #ffe3cc; }
html[data-zpi-theme="dark"] .step--done .step__badge { background: #29364e; color: #bac8dd; }
html[data-zpi-theme="dark"] .chip--muted { background: #29364e; color: #b8c5da; }
/* Brand-coloured share icons need lighter tints on the dark background. */
/* News covers and archive pictures are often transparent logos drawn for a light page. */
html[data-zpi-theme="dark"] .row__cover,
html[data-zpi-theme="dark"] .archive-image img { background: #f3f5f9; }
/* The striped placeholder (e.g. poster box) stays subtle on the dark page. */
html[data-zpi-theme="dark"] .placeholder { background: repeating-linear-gradient(135deg, var(--paper) 0 12px, #1f2b42 12px 24px); }
html[data-zpi-theme="dark"] .zpi-share__btn--fb { color: #6aa6ff; }
html[data-zpi-theme="dark"] .zpi-share__btn--li { color: #6cb0f5; }
html[data-zpi-theme="dark"] .zpi-share__btn--wa { color: #3ddc84; }
@media print {
  :root[data-zpi-theme="dark"] {
    color-scheme: light;
    --ink: #0b1020; --ink-2: #262c3a; --text-2: #3a4152;
    --muted: #4a5163; --muted-2: #6a7183; --line: #e3e5ea;
    --line-2: #c9cdd6; --paper: #f5f6f8; --white: #fff; --blue: #2b44ff;
    --blue-soft: #eef0ff;
  }
  html[data-zpi-theme="dark"] .zpi-header,
  html[data-zpi-theme="dark"] .footer { background: #fff; color: #0b1020; }
}

/* Shared, tracker-free Facebook/LinkedIn/WhatsApp/Web Share panel. */
.zpi-share{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:14px 0;color:var(--ink);font-family:var(--font-sans);}
.zpi-share__label{font-size:14px;font-weight:600;color:var(--muted);margin-right:5px;}
.zpi-share__btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--line-2);border-radius:10px;text-decoration:none;font:700 15px var(--font-sans);color:var(--ink);background:var(--white);cursor:pointer;transition:background .15s,border-color .15s;}
.zpi-share__btn:hover{background:var(--paper);border-color:var(--blue);color:var(--ink);}
.zpi-share__btn--fb{color:#1877f2;}
.zpi-share__btn--li{color:#0a66c2;}
.zpi-share__btn--wa{color:#0e7a43;}
.zpi-share__btn--more{font-size:13px;font-weight:600;}
.zpi-share__status{font-size:13px;color:var(--muted);min-width:0;}
.zpi-share__status:empty{display:none;}
@media(max-width:460px){.zpi-share{gap:7px}.zpi-share__label{flex-basis:100%}.zpi-share__btn{padding-inline:10px}}

/* Home-page social CTA: no Facebook/LinkedIn embeds or third-party tracking. */
.zpi-follow{padding-block:46px 56px;}
.zpi-follow__inner{display:flex;align-items:center;justify-content:space-between;gap:30px 44px;flex-wrap:wrap;}
.zpi-follow__copy{flex:1 1 390px;min-width:0;max-width:640px;}
.zpi-follow__copy .kicker{display:block;margin-bottom:10px;}
.zpi-follow__copy .h2{font-size:clamp(25px,3.5vw,34px);}
.zpi-follow__copy .lead{margin-top:12px;font-size:16px;}
.zpi-follow__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.zpi-follow__btn{border-radius:12px;min-height:50px;font-weight:700;white-space:normal;text-align:center;}
.zpi-follow__btn--linkedin{background:#0a66c2;color:#fff;border-color:#0a66c2;}
.zpi-follow__btn--linkedin:hover{background:#074c91;color:#fff;border-color:#074c91;}
.zpi-follow__btn--facebook{background:#1464cc;color:#fff;border-color:#1464cc;}
.zpi-follow__btn--facebook:hover{background:#1158b3;color:#fff;border-color:#1158b3;}
.zpi-follow__brand{font-family:Arial,sans-serif;font-weight:800;font-size:22px;line-height:1;letter-spacing:-.05em;}
@media(max-width:600px){.zpi-follow__actions,.zpi-follow__btn{width:100%;}.zpi-follow__btn{justify-content:center;}}

/* Analytics consent: local UI, shown before any third-party analytics request. */
.zpi-analytics-consent{position:fixed;z-index:9999;bottom:16px;left:16px;right:16px;box-sizing:border-box;width:min(720px,calc(100% - 32px));margin-inline:auto;padding:20px 24px;border:1px solid var(--line-2);border-radius:14px;background:var(--white);color:var(--ink);box-shadow:0 16px 50px rgba(0,0,0,.24);font-family:var(--font-sans);line-height:1.55;}
.zpi-analytics-consent[hidden]{display:none;}
.zpi-analytics-consent__title{display:block;font-size:18px;line-height:1.3;}
.zpi-analytics-consent p{margin:9px 0 18px;font-size:14px;color:var(--ink-2);}
.zpi-analytics-consent p a{color:var(--blue);text-decoration:underline;}
.zpi-analytics-consent__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;}
.zpi-analytics-consent__actions button{min-height:44px;padding:10px 16px;background:var(--paper);border:1px solid var(--line-2);border-radius:9px;color:var(--ink);font:700 14px var(--font-sans);cursor:pointer;}
.zpi-analytics-consent__actions .zpi-analytics-consent__accept{background:#2b44ff;border-color:#2b44ff;color:#fff;}
.zpi-analytics-consent__actions button:hover{filter:brightness(.95);}
.zpi-analytics-consent__actions button:focus-visible,.zpi-analytics-settings:focus-visible{outline:3px solid #fd9145;outline-offset:2px;}
.zpi-analytics-settings{margin-left:12px;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;}
@media(max-width:520px){.zpi-analytics-consent{bottom:8px;left:8px;right:8px;width:calc(100% - 16px);padding:16px;}.zpi-analytics-consent__actions button{flex:1 1 100%;}.zpi-analytics-settings{display:block;margin:8px 0 0;}}
@media print{.zpi-analytics-consent,.zpi-analytics-settings{display:none!important;}}
