/* OSP Postęp budowy — styl zgodny ze stroną główną (kit Elementora #6). */
.osp-pb {
	--pb-olive: var(--e-global-color-primary, #374001);
	--pb-lime: var(--e-global-color-secondary, #A0A604);
	--pb-brown: var(--e-global-color-accent, #A5814D);
	--pb-beige: var(--e-global-color-d150754, #EFE8DF);
	--pb-ink: var(--e-global-color-text, #232904);
	--pb-card: #F8F4EE;
	--pb-line: rgba(55, 64, 1, .14);
	--pb-serif: ivymode, "Times New Roman", serif;
	--pb-sans: Montserrat, sans-serif;
	--pb-r: 10px 10px 30px 10px;
	--pb-r-btn: 5px 5px 25px 5px;
	display: block;
	background: var(--pb-beige);
	color: var(--pb-ink);
	font-family: var(--pb-sans);
	font-size: 13px;
	line-height: 26px;
	letter-spacing: .2px;
	overflow-x: clip;
}
.osp-pb *, .osp-pb *::before, .osp-pb *::after { box-sizing: border-box; }
.osp-pb a { color: inherit; text-decoration: none; }
.osp-pb p { margin: 0; }
.osp-pb img, .osp-pb video { max-width: 100%; height: auto; display: block; }
.osp-pb ol, .osp-pb ul { margin: 0; padding: 0; list-style: none; }
/* Reset przycisków motywu Hello (różowe ramki/hover). */
.osp-pb button,
.osp-pb button:hover,
.osp-pb button:focus {
	background: none;
	border: 0;
	border-radius: 0;
	color: inherit;
	padding: 0;
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.osp-pb :focus-visible { outline: 2px solid var(--pb-lime); outline-offset: 2px; }

.pb-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Pasek „strona ukryta” (tylko administratorzy) */
.pb-hiddenbar {
	background: var(--pb-brown);
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	padding: 8px 20px;
	text-align: center;
}
.pb-hiddenbar a { text-decoration: underline !important; color: #fff !important; }

/* Typografia jak na stronie głównej */
.pb-eyebrow {
	font-family: var(--pb-sans);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--pb-brown);
	margin: 0 0 14px !important;
}
.pb-eyebrow--light { color: var(--pb-beige); }
.osp-pb .pb-h1,
.osp-pb .pb-h2 {
	font-family: var(--pb-serif);
	font-weight: 400;
	letter-spacing: 1px;
	margin: 0 0 18px;
}
.osp-pb .pb-h1 { font-size: 36px; line-height: 40px; color: var(--pb-olive); }
.osp-pb .pb-h2 { font-size: 32px; line-height: 38px; }
.pb-h2--lime { color: var(--pb-lime); }
.pb-h2--brown { color: var(--pb-brown); }
@media (min-width: 1025px) {
	.osp-pb .pb-h1 { font-size: 52px; line-height: 58px; }
	.osp-pb .pb-h2 { font-size: 40px; line-height: 46px; }
}

/* Okruszki */
.pb-crumbs { font-size: 11px; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 26px; }
.pb-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.pb-crumbs li { display: inline-flex; align-items: center; color: rgba(35, 41, 4, .6); }
.pb-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.pb-crumbs a { color: var(--pb-olive); }
.pb-crumbs a:hover { color: var(--pb-brown); }
.pb-crumbs span[aria-current] { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero */
.pb-hero { padding: 34px 0 40px; }
.pb-hero--slim { padding: 26px 0 0; }
.pb-hero--slim .pb-crumbs { margin: 0; }
.pb-lead { max-width: 640px; font-size: 14px; line-height: 26px; margin: 0 0 28px !important; }
.pb-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--pb-line);
}
.pb-facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 12px 14px 0;
	border-bottom: 1px solid var(--pb-line);
}
.pb-facts span { font-size: 11px; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: var(--pb-brown); }
.pb-facts strong { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--pb-olive); }
@media (min-width: 768px) {
	.pb-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pb-facts li { padding-right: 20px; }
}
@media (min-width: 1025px) {
	.pb-hero { padding: 50px 0 60px; }
}

/* Sekcja ciemna: harmonogram */
.pb-dark {
	background: var(--pb-olive);
	color: var(--pb-beige);
	padding: 50px 0;
}
.pb-note { font-size: 11px; line-height: 1.6; opacity: .7; margin-top: 26px !important; }

.pb-stages { position: relative; display: grid; gap: 0; }
.pb-stage {
	position: relative;
	display: grid;
	grid-template-columns: 26px 1fr;
	column-gap: 14px;
	padding: 0 0 26px;
}
.pb-stage > :not(.pb-stage__dot) { grid-column: 2; }
.pb-stage::before { /* linia pionowa */
	content: "";
	position: absolute;
	left: 12px;
	top: 18px;
	bottom: -4px;
	width: 2px;
	background: rgba(239, 232, 223, .22);
}
.pb-stage:last-child::before { display: none; }
.pb-stage--done::before { background: var(--pb-lime); }
.pb-stage__dot {
	grid-row: 1 / span 4;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid rgba(239, 232, 223, .45);
	background: var(--pb-olive);
	position: relative;
	z-index: 1;
}
.pb-stage--done .pb-stage__dot { background: var(--pb-lime); border-color: var(--pb-lime); }
.pb-stage--done .pb-stage__dot::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 4px;
	width: 6px;
	height: 11px;
	border: solid var(--pb-olive);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.pb-stage--now .pb-stage__dot { border-color: var(--pb-lime); box-shadow: 0 0 0 5px rgba(160, 166, 4, .25); }
.pb-stage--now .pb-stage__dot::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: var(--pb-lime);
}
.pb-stage__n { font-size: 11px; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; opacity: .75; padding-top: 3px; }
.pb-stage--now .pb-stage__n { color: var(--pb-lime); opacity: 1; }
.pb-stage__t { font-family: var(--pb-serif); font-size: 22px; line-height: 1.25; margin: 4px 0 4px; }
.pb-stage--now .pb-stage__t { color: var(--pb-lime); }
.pb-stage__d { font-size: 12px; line-height: 20px; opacity: .85; }
.pb-stage__end { font-size: 11px; line-height: 1.6; letter-spacing: .5px; margin-top: 6px; opacity: .75; }

@media (min-width: 1025px) {
	.pb-stages:not(.pb-stages--compact) { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 22px; }
	.pb-stages:not(.pb-stages--compact) .pb-stage { grid-template-columns: 1fr; padding: 0; }
	.pb-stages:not(.pb-stages--compact) .pb-stage > * { grid-column: 1; }
	.pb-stages:not(.pb-stages--compact) .pb-stage__dot { grid-row: auto; margin-bottom: 16px; }
	.pb-stages:not(.pb-stages--compact) .pb-stage::before { left: 26px; right: -22px; top: 12px; bottom: auto; width: auto; height: 2px; }
}

/* Wersja kompaktowa (boczna kolumna wpisu) */
.pb-side-stages {
	background: var(--pb-olive);
	color: var(--pb-beige);
	border-radius: var(--pb-r);
	padding: 24px 22px 6px;
	margin-bottom: 20px;
}
.pb-side-stages .pb-eyebrow { color: var(--pb-beige); }
.pb-stages--compact .pb-stage { padding-bottom: 18px; }
.pb-stages--compact .pb-stage__t { font-size: 17px; margin: 2px 0 0; }
.pb-stages--compact .pb-stage__end { margin-top: 2px; }

/* Siatka: feed + kolumna boczna */
.pb-feed-sec { padding: 46px 0 70px; }
.osp-pb--single .pb-feed-sec { padding-top: 20px; }
.pb-grid { display: grid; gap: 34px; }
.pb-feed { min-width: 0; }
.pb-feed > .pb-h2 { margin-bottom: 26px; }
@media (min-width: 1025px) {
	.pb-grid { grid-template-columns: minmax(0, 620px) 340px; justify-content: space-between; gap: 60px; }
	.pb-sticky { position: sticky; top: 30px; }
	.admin-bar .pb-sticky { top: 62px; }
}

/* Karta wpisu (styl social media) */
.pb-card {
	background: var(--pb-card);
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-r);
	overflow: hidden;
	margin: 0 0 28px;
}
.pb-card__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	padding: 14px 16px;
}
.pb-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pb-beige);
	border: 1px solid var(--pb-line);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.pb-avatar img { width: 30px; height: 30px; object-fit: contain; }
.pb-card__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.pb-card__name { font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--pb-olive); }
.pb-card__date { font-size: 12px; line-height: 1.4; color: rgba(35, 41, 4, .65); }
.pb-chip {
	display: inline-block;
	font-size: 10.5px;
	line-height: 1.3;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 6px 10px;
	border: 1px solid var(--pb-brown);
	color: var(--pb-brown);
	border-radius: 4px 4px 12px 4px;
}
.pb-chip--stage { background: var(--pb-lime); border-color: var(--pb-lime); color: var(--pb-ink); }

/* Media */
.pb-media {
	position: relative;
	background: #1d2201;
	user-select: none;
}
.pb-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	width: min(100%, calc(80vh * var(--r, .8)));
	max-width: 100%;
	margin: 0 auto;
	aspect-ratio: var(--r, .8);
}
.pb-track::-webkit-scrollbar { display: none; }
.pb-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	position: relative;
	height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.pb-slide .pb-img { width: 100%; height: 100%; object-fit: cover; }
.pb-video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Nawigacja karuzeli */
.pb-nav {
	position: absolute !important;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	background: rgba(239, 232, 223, .9) !important;
	color: var(--pb-olive) !important;
	display: none !important;
	place-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
	z-index: 2;
}
.pb-nav--prev { left: 10px; }
.pb-nav--next { right: 10px; }
.pb-nav[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
	.pb-nav:not([hidden]) { display: grid !important; }
}
.pb-count {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 1px;
	color: #fff;
	background: rgba(29, 34, 1, .65);
	padding: 6px 9px;
	border-radius: 12px;
	z-index: 2;
	pointer-events: none;
}
.pb-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 5px;
	pointer-events: none;
	z-index: 2;
}
.pb-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s; }
.pb-dots span.is-on { background: #fff; transform: scale(1.15); }
.pb-media--multi .pb-video--v ~ * { pointer-events: auto; }

/* YouTube (2 kliknięcia) */
.pb-yt {
	position: relative !important;
	width: 100%;
	height: 100%;
	display: block !important;
	background: #1d2201 !important;
	color: var(--pb-beige) !important;
}
.pb-yt .pb-img { position: absolute; inset: 0; opacity: .75; }
.pb-yt__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--pb-lime);
	color: var(--pb-ink);
	display: grid;
	place-items: center;
}
.pb-yt__play .pb-ico { width: 30px; height: 30px; margin-left: 4px; }
.pb-yt__note {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
	color: var(--pb-beige);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.pb-yt-frame { width: 100%; height: 100%; border: 0; display: block; }

/* Treść karty */
.pb-card__body { padding: 16px 18px 14px; }
.osp-pb .pb-card__title {
	font-family: var(--pb-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	letter-spacing: .5px;
	color: var(--pb-olive);
	margin: 0 0 10px;
}
.osp-pb .pb-card--single .pb-card__title { font-size: 32px; line-height: 38px; }
.pb-card__title a:hover { color: var(--pb-brown); }
.pb-caption { font-size: 13px; line-height: 24px; color: var(--pb-ink); overflow-wrap: anywhere; }
.pb-caption p + p { margin-top: 10px; }
.pb-caption a { color: var(--pb-brown); text-decoration: underline; }
.pb-caption ul, .pb-caption ol { margin: 8px 0 8px 18px; list-style: disc; }
.pb-caption--clamp:not(.is-open) {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pb-caption--clamp:not(.is-open) p + p { margin-top: 0; }
.pb-caption--clamp:not(.is-open) p { display: inline; }
.pb-caption--clamp:not(.is-open) p + p::before { content: " "; }
.osp-pb .pb-more { color: rgba(35, 41, 4, .6); font-size: 13px; margin-top: 2px; }
.osp-pb .pb-more:hover { color: var(--pb-olive); }
.pb-tags { margin-top: 12px !important; }
.pb-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--pb-line);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.pb-card--single .pb-card__foot { justify-content: flex-end; }
.pb-link, .osp-pb .pb-share { display: inline-flex; align-items: center; gap: 6px; color: var(--pb-olive); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.pb-link:hover, .osp-pb .pb-share:hover { color: var(--pb-brown); }
.pb-ico { flex: 0 0 auto; }
.pb-link .pb-ico, .pb-share .pb-ico { width: 16px; height: 16px; }

/* Przyciski jak na stronie głównej */
.pb-btn {
	display: inline-block;
	background: var(--pb-lime);
	color: var(--pb-ink) !important;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 14px 25px 14px 20px;
	border-radius: var(--pb-r-btn);
	transition: background .2s, color .2s;
}
.pb-btn:hover { background: var(--pb-beige); }
.pb-btn--ghost { background: var(--pb-beige); }
.pb-btn--ghost:hover { background: var(--pb-lime); }
.pb-btn--outline { background: transparent; border: 1px solid var(--pb-olive); color: var(--pb-olive) !important; }
.pb-btn--outline:hover { background: var(--pb-olive); color: var(--pb-beige) !important; }

/* CTA */
.pb-cta {
	background: var(--pb-olive);
	color: var(--pb-beige);
	border-radius: var(--pb-r);
	padding: 28px 24px;
}
.pb-cta .pb-eyebrow { color: var(--pb-beige); letter-spacing: 3px; }
.pb-cta__title { font-family: var(--pb-serif); font-size: 28px; line-height: 34px; color: var(--pb-lime); margin: 0 0 12px !important; }
.pb-cta__text { font-size: 13px; line-height: 24px; margin: 0 0 20px !important; }
.pb-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pager */
.pb-pager { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; }
.pb-pager a {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	color: var(--pb-olive);
	font-size: 13px;
	line-height: 1.4;
	border-bottom: 1px solid var(--pb-brown);
	padding-bottom: 4px;
}
.pb-pager small { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--pb-brown); }
.pb-pager__next { margin-left: auto; text-align: right; }
.pb-pager__next a { align-items: flex-end; }
.pb-pager--post { margin: 6px 0 26px; }
.pb-all { text-align: center; }

.pb-empty {
	background: var(--pb-card);
	border: 1px dashed var(--pb-brown);
	border-radius: var(--pb-r);
	padding: 40px 24px;
	text-align: center;
	font-size: 14px;
}

/* Udostępnianie — komunikat */
.pb-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	background: var(--pb-olive);
	color: var(--pb-beige);
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	padding: 10px 16px;
	border-radius: 6px 6px 18px 6px;
	z-index: 9999;
}

@media (prefers-reduced-motion: reduce) {
	.pb-track { scroll-behavior: auto; }
}
