/* ==========================================================================
   Nagłówek: menu nie zasłania treści po załadowaniu strony
   --------------------------------------------------------------------------
   Zabezpieczenie na wypadek powrotu starej regresji (Tripster < 1.0.13):
   wtedy wiersz menu dostawał przy przewinięciu 0 stan
   .sc_layouts_row_fixed_on_pre (position: fixed) bez rezerwacji miejsca przez
   placeholder i przykrywał tytuł wpisu. Na 1.0.13 problem nie występuje
   (placeholder od razu rezerwuje wysokość); reguła jest wtedy bezczynna.
   ========================================================================== */
.sc_layouts_row_fixed.sc_layouts_row_fixed_on_pre:not(.sc_layouts_row_fixed_on) {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}

/* ==========================================================================
   Komponent "Obserwuj mnie" (social.php): blok pod wpisem + widżet
   ========================================================================== */
.os-social {
	--os-navy: #122947;
	--os-text: #40526a;
	--os-cream: #fbf6f2;
	--os-shadow: 0 3px 5px rgba(70, 70, 70, .1);
	--os-fb: #1877f2;
	--os-ig: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	--os-ig-btn: #0095f6;
	--os-yt: #ff0000;
}
.os-social.os-social ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.os-social.os-social li {
	margin: 0;
	padding: 0;
	border: 0;
}
.os-social.os-social li::before,
.os-social.os-social li::after {
	content: none;
	display: none;
}
.os-social a,
.os-social a:hover,
.os-social a:focus {
	text-decoration: none;
}
.os-social a:focus-visible {
	outline: 2px solid var(--os-navy);
	outline-offset: 3px;
}

/* --- Karta jednej sieci ---------------------------------------------------- */
.os-social.os-social .os-social__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
	min-width: 0;
	padding: 18px 16px 16px;
	background: #fff;
	border-radius: 5px;
	box-shadow: var(--os-shadow);
}
.os-social.os-social .os-social__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--os-navy);
}
.os-social__badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #fff;
	border-radius: 50%;
}
.os-social__badge svg {
	display: block;
	width: 48%;
	height: 48%;
}
.os-social__card--facebook .os-social__badge { background: var(--os-fb); }
.os-social__card--instagram .os-social__badge { background: var(--os-ig); }
.os-social__card--youtube .os-social__badge { background: var(--os-yt); }
.os-social__card--youtube .os-social__badge svg { width: 56%; }
.os-social.os-social .os-social__desc {
	margin: auto 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--os-text);
}

/* Oficjalne przyciski (iframe FB / Google) i ich linki zapasowe */
.os-social__embed {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 70px;
}
.os-social__embed .fb-page,
.os-social__embed .fb-page > span,
.os-social__embed .fb-page iframe {
	max-width: 100% !important;
}
.os-social__embed .fb-page {
	width: 100%;
	/* Wtyczka "Facebook Page Like Widget" ukrywa globalnie każde .fb-page (opacity: 0) i odsłania tylko swoje. */
	opacity: 1;
}
/* Motyw daje każdemu iframe min-height: 100px – przyciski FB/YouTube mają własną wysokość. */
.os-social__embed iframe {
	min-height: 0;
}
.os-social.os-social .os-social__embed blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.os-social.os-social .os-social__embed blockquote::before,
.os-social.os-social .os-social__embed blockquote::after {
	content: none;
}
.os-social__fallback {
	display: inline-block;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	border-radius: 5px;
}
.os-social__embed--facebook .os-social__fallback { background: #1467d4; }
.os-social__embed--youtube .os-social__fallback { background: #c4302b; }
/* Gdy oficjalny przycisk się wyrenderuje, link zapasowy znika. */
.os-social__embed:has(iframe) .os-social__fallback {
	display: none;
}

/* Instagram: brak oficjalnego przycisku do osadzenia – karta w stylu przycisku YouTube, prowadzi do profilu */
.os-social__ig {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--os-navy);
}
.os-social__avatar {
	display: block;
	flex: none;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dc2743;
}
.os-social__ig-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	min-width: 0;
}
.os-social__ig-handle {
	max-width: 100%;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--os-navy);
}
.os-social__ig-btn {
	padding: 5px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--os-ig-btn);
	border-radius: 8px;
	transition: filter .2s ease;
}
.os-social__ig:hover .os-social__ig-btn {
	filter: brightness(.92);
}

/* --- Blok pod wpisem: szerokie wiersze (etykieta + opis | oficjalny przycisk) */
.os-social--post {
	margin: 2.5em 0 0;
	padding: 2em 1.5em 2.1em;
	background: var(--os-cream);
	border-radius: 5px;
}
.os-social--post .os-social__title {
	margin: 0 0 .3em;
	font-size: 1.75em;
	text-align: center;
}
.os-social--post .os-social__lead {
	margin: 0 0 1.4em;
	text-align: center;
	color: var(--os-text);
}
.os-social__list--wide {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
@media (min-width: 768px) {
	.os-social.os-social .os-social__list--wide .os-social__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-areas: "label embed" "desc embed";
		align-items: center;
		gap: 4px 24px;
		padding: 16px 20px;
	}
	.os-social__list--wide .os-social__label { grid-area: label; align-self: end; }
	.os-social__list--wide .os-social__desc  { grid-area: desc; align-self: start; }
	.os-social__list--wide .os-social__embed { grid-area: embed; }
}
@media (max-width: 767px) {
	.os-social--post {
		padding: 1.6em 1em;
	}
}

/* --- Widżet w pasku bocznym: karty jedna pod drugą ----------------------- */
.os-social__list--rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.os-social.os-social .os-social__list--rows .os-social__card {
	padding: 14px;
	background: var(--os-cream);
	box-shadow: none;
}
.os-social__subtitle {
	margin: 24px 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--os-navy);
}
.os-social.os-social .os-social__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}
.os-social__grid a {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 4px;
}
.os-social__grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.os-social__grid a:hover img {
	transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
	.os-social__ig-btn,
	.os-social__grid img {
		transition: none;
	}
	.os-social__grid a:hover img {
		transform: none;
	}
}

/* ==========================================================================
   Strona "Zaproś mnie na prelekcję" (/prelekcje/)
   ========================================================================== */
.os-prelekcje {
	--os-navy: #122947;
	--os-text: #40526a;
	--os-accent: #d85726;
	--os-cream: #fbf6f2;
	--os-shadow: 0 3px 5px rgba(70, 70, 70, .1);
	max-width: 1060px;
	margin: 0 auto;
	/* Biała „karta” treści na kremowym tle strony – treść się nie zlewa. */
	background: #fff;
	padding: 48px 56px;
	border-radius: 6px;
	box-shadow: var(--os-shadow);
}
.os-prelekcje h2 {
	margin: 0 0 .6em;
	color: var(--os-navy);
}
.os-prelekcje section {
	margin-bottom: 3em;
}

/* Intro + przyciski */
.os-prel__lead {
	font-size: 1.25em;
	line-height: 1.6;
	color: var(--os-text);
}
.os-prel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 1.4em;
}
.os-prel__btn {
	display: inline-block;
	padding: 13px 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--os-navy);
	background: #fff;
	border: 2px solid var(--os-navy);
	border-radius: 5px;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.os-prel__btn:hover {
	transform: translateY(-2px);
}
.os-prel__btn--primary {
	color: #fff;
	background: var(--os-accent);
	border-color: var(--os-accent);
}
.os-prel__btn--primary:hover {
	filter: brightness(1.07);
}

/* O mnie */
.os-prel__about p {
	font-size: 1.05em;
	line-height: 1.7;
	color: var(--os-text);
}

/* Tematy prelekcji — pionowe bloki z galerią pod opisem */
.os-prel__topic {
	padding: 24px 28px 28px;
	background: var(--os-cream);
	border: 1px solid #efe6dd;
	border-radius: 6px;
}
.os-prel__topic + .os-prel__topic {
	margin-top: 24px;
}
.os-prel__topic-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: .5em;
}
.os-prel__num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	background: var(--os-accent);
	border-radius: 50%;
}
.os-prel__topic-head h3 {
	margin: 0;
	font-size: 1.3em;
	line-height: 1.25;
	color: var(--os-navy);
}
.os-prel__topic-desc {
	font-size: 1em;
	line-height: 1.65;
	color: var(--os-text);
}
.os-prel__time {
	margin: .4em 0 0;
	font-weight: 700;
	color: var(--os-navy) !important;
	font-size: .95em;
}
/* Galeria zdjęć tematu */
.os-prelekcje .os-prel__gallery {
	list-style: none;
	margin: 1.4em 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.os-prelekcje .os-prel__gallery li {
	margin: 0;
	padding: 0;
}
.os-prelekcje .os-prel__gallery li::before {
	content: none;
}
.os-prel__shot {
	margin: 0;
}
.os-prel__shot a {
	display: block;
	overflow: hidden;
	border-radius: 5px;
	box-shadow: var(--os-shadow);
}
.os-prel__shot img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .3s ease;
}
.os-prel__shot a:hover img {
	transform: scale(1.05);
}
.os-prel__shot figcaption {
	margin-top: 6px;
	font-size: .82em;
	line-height: 1.3;
	color: var(--os-text);
	text-align: center;
}
@media (max-width: 700px) {
	.os-prelekcje .os-prel__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Gdzie występowałem */
.os-prelekcje .os-prel__events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
}
.os-prelekcje .os-prel__events li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0;
	padding: 12px 16px;
	background: var(--os-cream);
	border-left: 3px solid var(--os-accent);
	border-radius: 4px;
}
.os-prelekcje .os-prel__events li::before {
	content: none;
}
.os-prel__event-name {
	font-weight: 700;
	color: var(--os-navy);
}
.os-prel__event-meta {
	font-size: .9em;
	color: var(--os-text);
}

/* Kontakt */
.os-prel__contact {
	padding: 2em;
	background: var(--os-cream);
	border-radius: 5px;
}
.os-prel__contact-lead {
	color: var(--os-text);
}
.os-prel__contact-lines {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: .6em 0 1.6em;
}
.os-prel__contact-lines a {
	font-size: 1.15em;
	font-weight: 700;
	color: var(--os-navy);
}
.os-prel__contact-lines a:hover {
	color: var(--os-accent);
}

.os-prelekcje .os-prel__btn {
	color: var(--os-navy);
}
.os-prelekcje .os-prel__btn--primary,
.os-prelekcje .os-prel__btn--primary:hover {
	color: #fff;
}

@media (max-width: 900px) {
	.os-prelekcje {
		padding: 28px 20px;
	}
	.os-prelekcje .os-prel__events {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.os-prel__btn:hover,
	.os-prel__shot a:hover img {
		transform: none;
	}
}

/* ==========================================================================
   Prelekcje — hero (okładka + intro/O mnie), lista wystąpień, karty kontaktu
   ========================================================================== */
.os-prel__hero {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 36px;
	align-items: start;
	margin-bottom: 3em;
}
.os-prelekcje .os-prel__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: var(--os-shadow);
}
.os-prel__hero-text .os-prel__lead {
	margin-top: 0;
}
.os-prel__hero-text h2 {
	margin: .8em 0 .4em;
}
@media (max-width: 720px) {
	.os-prel__hero {
		grid-template-columns: 1fr;
		gap: 20px;
		text-align: center;
	}
	.os-prelekcje .os-prel__cover {
		max-width: 260px;
		margin: 0 auto;
	}
	.os-prel__actions {
		justify-content: center;
	}
}

/* Gdzie występowałem — rok jako wyróżnik */
.os-prel__exp-lead {
	margin: 0 0 1.3em;
	color: var(--os-text);
}
.os-prelekcje .os-prel__event {
	display: flex;
	align-items: center;
	gap: 14px;
}
.os-prel__event-year {
	flex: none;
	min-width: 52px;
	padding: 6px 0;
	font-size: .95em;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background: var(--os-accent);
	border-radius: 5px;
}
.os-prel__event-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.os-prel__event-name {
	font-weight: 700;
	line-height: 1.3;
	color: var(--os-navy);
}
.os-prel__event-place {
	font-size: .88em;
	color: var(--os-text);
}

/* Kontakt — karty e-mail / telefon */
.os-prel__contact-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1.2em 0 1.6em;
}
.os-prel__contact-card {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 260px;
	padding: 16px 20px;
	background: #fff;
	border-radius: 6px;
	box-shadow: var(--os-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.os-prel__contact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(18, 41, 71, .13);
}
.os-prel__contact-ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: #fff;
	background: var(--os-accent);
	border-radius: 50%;
}
.os-prel__contact-ico svg {
	width: 22px;
	height: 22px;
}
.os-prel__contact-txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.os-prel__contact-txt small {
	font-size: .78em;
	color: var(--os-text);
}
.os-prel__contact-txt b {
	font-size: 1.02em;
	color: var(--os-navy);
	word-break: break-word;
}
.os-prel__contact-social-lead {
	margin: .5em 0 1em;
	font-weight: 700;
	color: var(--os-navy);
}

/* ==========================================================================
   Komponent social — proste karty (shortcode [os_social layout="cards"])
   ========================================================================== */
.os-social--simple .os-social__list--simple {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.os-social--simple .os-social__list--simple li {
	margin: 0;
	padding: 0;
}
.os-social--simple .os-social__list--simple li::before {
	content: none;
}
.os-social__scard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 26px 18px 22px;
	text-align: center;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .1);
	transition: transform .2s ease, box-shadow .2s ease;
}
.os-social__scard:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(18, 41, 71, .13);
}
.os-social__scard .os-social__badge {
	width: 56px;
	height: 56px;
	margin-bottom: 4px;
	color: #fff;
	border-radius: 50%;
}
.os-social__scard .os-social__badge svg {
	width: 48%;
	height: 48%;
}
.os-social__scard--facebook .os-social__badge { background: #1877f2; }
.os-social__scard--instagram .os-social__badge { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.os-social__scard--youtube .os-social__badge { background: #ff0000; }
.os-social__scard--youtube .os-social__badge svg { width: 56%; }
.os-social__sname {
	font-size: 1.2em;
	font-weight: 700;
	color: #122947;
}
.os-social__sdesc {
	font-size: .9em;
	line-height: 1.4;
	color: #40526a;
}
.os-social__sbtn {
	margin-top: 10px;
	padding: 9px 22px;
	font-size: .9em;
	font-weight: 700;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	transition: filter .2s ease;
}
.os-social__sbtn:hover { filter: brightness(1.08); }
/* Przyciski w jednej linii, choć opisy mają różną liczbę wierszy: wolne miejsce karty ląduje pod opisem */
.os-social--simple .os-social__sdesc {
	margin-bottom: auto;
}
.os-social__scard--facebook .os-social__sbtn { background: #1467d4; }
.os-social__scard--instagram .os-social__sbtn { background: #c13584; }
.os-social__scard--youtube .os-social__sbtn { background: #c4302b; }
@media (max-width: 640px) {
	.os-social--simple .os-social__list--simple {
		grid-template-columns: 1fr;
	}
}

/* Gdzie występowałem — grupy lat (nadpisuje wcześniejszy układ 2-kolumnowy) */
.os-prel__timeline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 40px;
}
.os-prel__year-group {
	break-inside: avoid;
	margin-bottom: 1.2em;
}
.os-prel__year {
	margin-bottom: .4em;
	padding-bottom: .2em;
	font-size: 1.4em;
	font-weight: 700;
	color: var(--os-accent);
	border-bottom: 2px solid #efe6dd;
}
.os-prelekcje .os-prel__year-events {
	list-style: none;
	margin: 0;
	padding: 0;
}
.os-prelekcje .os-prel__year-events li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 16px;
}
.os-prelekcje .os-prel__year-events li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 6px;
	height: 6px;
	background: var(--os-accent);
	border-radius: 50%;
}
.os-prel__year-events .os-prel__event-name {
	font-weight: 700;
	color: var(--os-navy);
}
.os-prel__year-events .os-prel__event-place {
	color: var(--os-text);
	font-size: .92em;
}
.os-prel__year-events .os-prel__event-place::before {
	content: "·";
	margin: 0 7px;
	color: #c9beb2;
}
@media (max-width: 720px) {
	.os-prel__timeline {
		grid-template-columns: 1fr;
	}
}

/* Prelekcje — okładka na pełną wysokość tekstu obok + wyjustowane akapity */
.os-prel__hero {
	grid-template-columns: 300px 1fr;
	align-items: stretch;
}
.os-prelekcje .os-prel__cover {
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
}
.os-prelekcje .os-prel__lead,
.os-prelekcje .os-prel__hero-text p,
.os-prelekcje .os-prel__topic-desc {
	text-align: justify;
}
@media (max-width: 720px) {
	.os-prelekcje .os-prel__cover {
		height: auto;
		object-fit: contain;
	}
}

/* Karty social — większy odstęp góra/dół */
.os-social--simple .os-social__scard {
	padding-top: 36px;
	padding-bottom: 32px;
}

/* Okładka: cały plakat widoczny (bez przycinania), szersza kolumna dopasowuje wysokość */
.os-prel__hero {
	grid-template-columns: 340px 1fr;
	align-items: start;
}
.os-prelekcje .os-prel__cover {
	height: auto;
	object-fit: contain;
}
/* Telefon/tablet: jedna kolumna – okładka nad tekstem. Musi stać po regułach powyżej (te same selektory), inaczej
   kolumna 340 px zostawała też na telefonie i tekst wyjeżdżał poza ekran (poprawka 01.10). */
@media (max-width: 720px) {
	.os-prel__hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.os-prelekcje .os-prel__cover {
		max-width: 280px;
		margin: 0 auto;
	}
}

/* Karty social — wyraźny oddech nad ikoną i pod przyciskiem */
.os-social--simple .os-social__scard {
	padding: 42px 20px 38px;
}

/* Padding karty social z wyższą specyficznością niż reset li */
.os-social--simple .os-social__list--simple li.os-social__scard {
	padding: 42px 20px 38px;
}

/* Karty social w pasku bocznym (widżet) — jedna kolumna */
.os-social--widget.os-social--simple .os-social__list--simple {
	grid-template-columns: 1fr;
}
.widget .os-social--simple .os-social__list--simple {
	grid-template-columns: 1fr;
}

/* ==========================================================================
   Lista wpisów (archiwa/kategorie) — równa wysokość kart w rzędzie
   ========================================================================== */
.posts_container.columns_wrap > [class*="column-"] {
	display: flex;
}
.posts_container.columns_wrap > [class*="column-"] > .post_item {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}
/* treść karty rośnie, żeby stopki/meta wyrównały się na dole */
.posts_container.columns_wrap .post_item .post_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Równa wysokość kart we wszystkich listach wpisów (archiwa, „Zobacz również", bloki blogger) */
[class*="columns_wrap"] > [class*="column-"]:has(> .post_item, > .related_item, > .sc_blogger_item) {
	display: flex;
}
[class*="columns_wrap"] > [class*="column-"] > .post_item,
[class*="columns_wrap"] > [class*="column-"] > .related_item,
[class*="columns_wrap"] > [class*="column-"] > .sc_blogger_item {
	width: 100%;
	height: 100%;
}

/* Białe tło karty wpisu rozciąga się na całą wysokość (po wyrównaniu) */
[class*="columns_wrap"] > [class*="column-"] > .post_item [class*="content-wrap"] {
	flex: 1 1 auto;
}

/* Widżet „Obserwuj mnie" w pasku bocznym — kompaktowe karty */
.os-social--widget.os-social--simple .os-social__list--simple li.os-social__scard {
	padding: 16px 14px;
	gap: 4px;
}
.os-social--widget .os-social__scard .os-social__badge {
	width: 42px;
	height: 42px;
	margin-bottom: 2px;
}
.os-social--widget .os-social__sname {
	font-size: 1.05em;
}
.os-social--widget .os-social__sdesc {
	font-size: .82em;
}
.os-social--widget .os-social__sbtn {
	margin-top: 6px;
	padding: 7px 16px;
	font-size: .85em;
}

/* Tagi wpisu nad treścią */
.os-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1.5em;
}
.os-post-tag {
	display: inline-block;
	padding: 4px 14px;
	font-size: .85em;
	font-weight: 600;
	line-height: 1.5;
	color: #122947;
	background: #fbf6f2;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.os-post-tag:hover {
	color: #fff;
	background: #d85726;
}
/* Widżet „Tematy” w pasku bocznym (chmura tagów) — pigułki jak nad wpisem, jednakowa wielkość, liczba wpisów obok */
.widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.widget_tag_cloud .tagcloud .tag-cloud-link {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	font-size: 13px !important; /* WordPress daje każdemu tagowi inną wielkość */
	font-weight: 600;
	line-height: 1.5;
	color: #122947 !important;
	background: #ffe1cf;
	border: 0;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.widget_tag_cloud .tagcloud .tag-cloud-link:hover {
	color: #fff !important;
	background: #d85726;
}
.widget_tag_cloud .tag-link-count {
	margin-left: 2px;
	font-weight: 400;
	opacity: .7;
}
/* oryginalne tagi w stopce wpisu — ukryte (są teraz na górze) */
.post_footer .post_tags_single {
	display: none;
}

/* ==========================================================================
   Strona „Tematy" — kafelki tagów ([os_tematy])
   ========================================================================== */
.os-tematy {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.os-tematy__item { margin: 0; padding: 0; }
.os-tematy__item::before { content: none; }
.os-tematy__item > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 22px 16px;
	text-align: center;
	background: #fff;
	border: 1px solid #efe6dd;
	border-radius: 8px;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .08);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.os-tematy__item > a:hover {
	transform: translateY(-3px);
	border-color: #d85726;
	box-shadow: 0 10px 22px rgba(18, 41, 71, .12);
}
.os-tematy__name {
	font-size: 1.15em;
	font-weight: 700;
	color: #122947;
}
.os-tematy__count {
	font-size: .85em;
	color: #d85726;
	font-weight: 600;
}

/* Meta wpisu: data i „wyświetlenia" nie łamią się w środku (ikona + liczba razem) */
.post_meta .post_meta_item,
.post_meta_single .post_meta_item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

/* ==========================================================================
   os_tematy — kafelki tematów ze zdjęciem w tle (override wersji tekstowej)
   ========================================================================== */
.os-tematy { list-style: none !important; }
.os-tematy .os-tematy__item { list-style: none; }
.os-tematy .os-tematy__item::before,
.os-tematy .os-tematy__item::marker { content: none !important; display: none !important; }
.os-tematy .os-tematy__item > a.os-tematy__link {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 150px;
	aspect-ratio: 4 / 3;
	padding: 16px;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #122947 50% 40% / cover no-repeat;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .12);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.os-tematy .os-tematy__item > a.os-tematy__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(18, 41, 71, .22);
}
.os-tematy__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18, 41, 71, .88) 0%, rgba(18, 41, 71, .35) 55%, rgba(18, 41, 71, .15) 100%);
}
.os-tematy__link:not(.os-tematy__link--photo) .os-tematy__overlay {
	background: linear-gradient(135deg, #d85726, #122947);
}
.os-tematy__text {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.os-tematy .os-tematy__name {
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
}
.os-tematy .os-tematy__count {
	font-size: .85em;
	font-weight: 600;
	color: rgba(255, 255, 255, .9);
}

/* Meta wpisu — poprawka: cała data/wyświetlenia jako całość (bez łamania w środku) */
.post_meta .post_meta_item,
.post_meta_single .post_meta_item {
	display: inline;
	white-space: nowrap;
}

/* Tytuł strony / archiwum — wyraźniejsza ekspozycja (akcent pod tytułem) */
.sc_layouts_title_caption,
.sc_layouts_title .sc_layouts_title_caption {
	position: relative;
	padding-bottom: .45em;
}
.sc_layouts_title_caption::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: .5em auto 0;
	background: #d85726;
	border-radius: 2px;
}

/* Tagi nad wpisem — widoczne pigułki (nie zlewają się z tłem) */
.os-post-tags .os-post-tag {
	background: #ffe1cf;
	color: #122947 !important;
}
.os-post-tags .os-post-tag:hover {
	background: #d85726;
	color: #fff !important;
}

/* Kafelki tematów — mocniejsze przyciemnienie + cień tekstu dla czytelności na jasnych zdjęciach */
.os-tematy__link--photo .os-tematy__overlay {
	background: linear-gradient(to top, rgba(18, 41, 71, .94) 0%, rgba(18, 41, 71, .6) 45%, rgba(18, 41, 71, .4) 100%);
}
.os-tematy .os-tematy__name,
.os-tematy .os-tematy__count {
	text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}

/* Kafelki tematów — pełne przyciemnienie (jednolita warstwa + gradient) dla czytelności */
.os-tematy__link--photo .os-tematy__overlay {
	background:
		linear-gradient(to top, rgba(12, 26, 46, .92) 0%, rgba(12, 26, 46, .55) 60%, rgba(12, 26, 46, .5) 100%),
		rgba(12, 26, 46, .3);
}
.os-tematy .os-tematy__name {
	font-size: 1.35em;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .85);
}
.os-tematy .os-tematy__count {
	text-shadow: 0 1px 5px rgba(0, 0, 0, .9);
}

/* Kafelki tematów — wyraźny kontur tekstu (obrys + cień) */
.os-tematy .os-tematy__name {
	-webkit-text-stroke: .4px rgba(0, 0, 0, .55);
	text-shadow: 0 0 4px rgba(0, 0, 0, .95), 0 2px 8px rgba(0, 0, 0, .8);
}
.os-tematy .os-tematy__count {
	text-shadow: 0 0 4px rgba(0, 0, 0, .95), 0 1px 6px rgba(0, 0, 0, .85);
}

/* Kafelki tematów — tekst zawsze wyśrodkowany (poziomo i pionowo) */
.os-tematy .os-tematy__item > a.os-tematy__link {
	align-items: center;
	justify-content: center;
	text-align: center;
}
.os-tematy__text {
	align-items: center;
	text-align: center;
}

/* Kafelki tematów — zdjęcie widoczne, tekst eksponowany na dole (gradient tylko pod tekstem) */
.os-tematy .os-tematy__item > a.os-tematy__link {
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}
.os-tematy__link--photo .os-tematy__overlay {
	background: linear-gradient(to top, rgba(10, 22, 40, .88) 0%, rgba(10, 22, 40, .55) 28%, rgba(10, 22, 40, .12) 60%, rgba(10, 22, 40, 0) 100%);
}

/* Kafelki tematów — grubsze czarne kontury + większa czcionka */
.os-tematy .os-tematy__name {
	font-size: 1.65em;
	-webkit-text-stroke: 1px rgba(0, 0, 0, .9);
	paint-order: stroke fill;
	text-shadow: 0 0 6px rgba(0, 0, 0, 1), 0 2px 10px rgba(0, 0, 0, .95);
}
.os-tematy .os-tematy__count {
	font-size: .95em;
	-webkit-text-stroke: .5px rgba(0, 0, 0, .8);
	paint-order: stroke fill;
	text-shadow: 0 0 6px rgba(0, 0, 0, 1);
}

/* Tagi tylko nad wpisem — stopkowe (natywne) ukryte na stałe */
.single .post_tags_single,
.post_footer .post_tags_single {
	display: none !important;
}

/* Kategorie w meta mogą się zawijać (nowrap tylko dla daty/wyświetleń) — inaczej ucina w „Zobacz również" */
.post_meta .post_meta_item.post_categories,
.post_meta_single .post_meta_item.post_categories {
	white-space: normal;
}
.related_item .post_header,
.related_item .post_meta {
	overflow: visible;
}

/* ==========================================================================
   „Najbliższe prelekcje” (/prelekcje/, [os_najblizsze_prelekcje] – mu-plugin prelekcje.php)
   ========================================================================== */
.os-prelekcje .os-najbl {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.os-prelekcje .os-najbl li::before { content: none; }
.os-najbl__el {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 14px 18px;
	background: var(--os-cream, #fbf6f2);
	border: 1px solid #efe6dd;
	border-left: 4px solid var(--os-accent, #d85726);
	border-radius: 6px;
}
.os-najbl__data {
	flex: none;
	min-width: 150px;
	font-weight: 700;
	color: var(--os-accent, #d85726);
}
.os-najbl__opis { display: flex; flex-direction: column; gap: 2px; color: var(--os-text, #40526a); }
.os-najbl__opis b { color: var(--os-navy, #122947); }
@media (max-width: 600px) {
	.os-najbl__el { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ==========================================================================
   Baner „Zaproś mnie na prelekcję” na stronie głównej ([os_prelekcje_baner])
   ========================================================================== */
.os-baner {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	align-items: center;
	margin: 0 0 40px;
	padding: 28px 32px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .1);
	border-top: 4px solid #d85726;
}
.os-baner__foto img {
	display: block;
	width: 100%;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(18, 41, 71, .18);
}
.os-baner__znak {
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #d85726;
}
.os-baner h2 { margin: .15em 0 .4em; color: #122947; }
.os-baner p { margin: 0 0 .8em; color: #40526a; line-height: 1.6; }
.os-baner .os-baner__naj { margin: 1em 0 .3em; font-weight: 700; color: #122947; }
.os-baner .os-baner__lista { list-style: none; margin: 0 0 1em; padding: 0; }
.os-baner .os-baner__lista li { display: flex; gap: 12px; margin: 0 0 4px; padding: 0; color: #40526a; }
.os-baner .os-baner__lista li::before { content: none; }
.os-baner__data { flex: none; min-width: 130px; font-weight: 700; color: #d85726; }
.os-baner__gdzie { opacity: .8; }
.os-baner__btn {
	display: inline-block;
	padding: 12px 26px;
	font-weight: 700;
	color: #fff !important;
	background: #d85726;
	border-radius: 5px;
	text-decoration: none;
	transition: filter .2s ease;
}
.os-baner__btn:hover { filter: brightness(1.07); }
@media (max-width: 700px) {
	.os-baner { grid-template-columns: 1fr; padding: 22px 18px; }
	.os-baner__foto { max-width: 220px; }
	.os-baner .os-baner__lista li { flex-direction: column; gap: 0; }
}

/* ==========================================================================
   Formularz „Zaproszenie na prelekcję” (Contact Form 7, /prelekcje/ → Kontakt)
   ========================================================================== */
.os-prel__zapytanie { margin: 1.2em 0 2em; }
.os-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 18px;
}
.os-form p { margin: 0 0 10px; }
.os-form__cale { grid-column: 1 / -1; }
.os-form label { display: block; font-weight: 600; font-size: .92em; color: #122947; }
.os-form .wpcf7-form-control-wrap { display: block; margin-top: 4px; }
.os-form input[type="text"], .os-form input[type="email"], .os-form input[type="tel"], .os-form select, .os-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	color: #122947;
	background: #fff;
	border: 1px solid #d9cfc6;
	border-radius: 5px;
}
.os-form input:focus, .os-form select:focus, .os-form textarea:focus { outline: 2px solid rgba(216, 87, 38, .35); border-color: #d85726; }
.os-form__zgoda { font-size: .88em; color: #40526a; }
.os-form__zgoda label { display: inline; font-weight: 400; }
.os-form input[type="submit"] {
	padding: 13px 30px;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: #d85726;
	border: 0;
	border-radius: 5px;
	cursor: pointer;
}
.os-form input[type="submit"]:hover { filter: brightness(1.07); }
@media (max-width: 640px) {
	.os-form { grid-template-columns: 1fr; }
}

/* Formularz – wyrównanie: motyw daje „p + p” odstęp z góry (w 2 kolumnach przesuwał drugie pole pierwszego wiersza)
   i własne cienie/ramki polom (lista wyboru wyglądała inaczej niż pola tekstowe) – jeden wygląd dla wszystkich pól. */
.os-prelekcje .os-form > p {
	margin: 0 0 12px !important;
}
.os-prelekcje .os-form input[type="text"],
.os-prelekcje .os-form input[type="email"],
.os-prelekcje .os-form input[type="tel"],
.os-prelekcje .os-form select,
.os-prelekcje .os-form textarea {
	height: 48px;
	padding: 0 14px;
	line-height: normal;
	font-size: 15px;
	background-color: #fff;
	border: 1px solid #d9cfc6 !important;
	border-radius: 6px;
	box-shadow: none !important;
}
.os-prelekcje .os-form textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
	line-height: 1.5;
}
.os-prelekcje .os-form select { padding-right: 36px; }
.os-prelekcje .os-form .select_container { width: 100%; box-shadow: none !important; }
.os-prelekcje .os-form input:focus,
.os-prelekcje .os-form select:focus,
.os-prelekcje .os-form textarea:focus {
	border-color: #d85726 !important;
	outline: 2px solid rgba(216, 87, 38, .25);
	outline-offset: 0;
}
.os-prelekcje .os-form ::placeholder { color: #8a96a8; opacity: 1; }

/* Gdzie występowałem — data przed nazwą, krótki temat pod spodem ([os_gdzie_wystepowalem], mu-plugin prelekcje.php) */
.os-prelekcje .os-prel__year-events li.os-prel__ev {
	display: grid;
	grid-template-columns: 94px 1fr;
	column-gap: 10px;
	align-items: baseline;
	padding: 8px 0 8px 16px;
}
.os-prel__ev .os-prel__event-date {
	grid-row: span 2;
	font-size: .85em;
	font-weight: 700;
	color: var(--os-accent, #d85726);
	white-space: nowrap;
}
.os-prel__ev .os-prel__event-main { line-height: 1.4; }
.os-prel__ev .os-prel__event-topic {
	justify-self: start;
	margin-top: 4px;
	padding: 1px 10px;
	font-size: .78em;
	font-weight: 600;
	color: #122947;
	background: #ffe1cf;
	border-radius: 20px;
}
@media (max-width: 480px) {
	.os-prelekcje .os-prel__year-events li.os-prel__ev { grid-template-columns: 1fr; }
	.os-prel__ev .os-prel__event-date { grid-row: auto; }
}

/* Z moich prelekcji — podpis: wydarzenie + temat w drugiej linii */
.os-prel__shot figcaption .os-prel__shot-temat {
	display: block;
	margin-top: 1px;
	font-size: .92em;
	color: var(--os-accent, #d85726);
	font-weight: 600;
}

/* ==========================================================================
   Strona 404 (strona-404.php) — pod „404” motywu: wyszukiwarka, linki, tematy, najnowsze wpisy
   ========================================================================== */
.os-404 {
	max-width: 900px;
	margin: 10px auto 60px;
	padding: 0 20px;
	text-align: center;
}
.os-404 h3 { margin: 1.8em 0 .7em; color: #122947; }
.os-404__szukaj { max-width: 520px; margin: 0 auto 18px; }
.os-404__linki { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.os-404__link {
	padding: 9px 20px;
	font-weight: 700;
	color: #122947 !important;
	border: 2px solid #122947;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.os-404__link:first-child, .os-404__link:hover { color: #fff !important; background: #d85726; border-color: #d85726; }
.os-404 .os-post-tags { justify-content: center; }
.os-404 .os-post-tag { background: #ffe1cf; }
.os-404 .os-post-tag:hover { color: #fff; background: #d85726; }
.os-404__wpisy {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	text-align: left;
}
.os-404__wpisy li { margin: 0; padding: 0; }
.os-404__wpisy li::before { content: none; }
.os-404__wpisy a { display: block; height: 100%; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 3px 5px rgba(70, 70, 70, .1); text-decoration: none; }
.os-404__wpisy img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.os-404__tytul { display: block; padding: 10px 12px 2px; font-weight: 700; line-height: 1.35; color: #122947; }
.os-404__data { display: block; padding: 0 12px 12px; font-size: .85em; color: #40526a; }
@media (max-width: 700px) { .os-404__wpisy { grid-template-columns: 1fr; } }

/* 404 — poprawki: „404” i opis pod sobą na środku (motyw ustawia je w dwóch kolumnach), wyszukiwarka – pole i przycisk
   tej samej wysokości, przyciski jednakowe (żaden nie udaje „aktywnego”) */
.error404 .post_item_404 .post_content {
	display: block !important;
	text-align: center;
}
.error404 .post_item_404 .page_title,
.error404 .post_item_404 .page_info {
	float: none !important;
	width: auto !important;
	max-width: none;
	margin: 0 auto !important;
	padding: 0 !important;
	text-align: center !important;
}
.error404 .post_item_404 .page_title { line-height: 1; margin-bottom: .1em !important; }
.error404 .post_item_404 .page_subtitle { margin: .2em 0 .4em; }
.os-404__szukaj .search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.os-404__szukaj .search-form label { flex: 1; margin: 0; }
.os-404__szukaj .search-field,
.os-404__szukaj .search-submit {
	box-sizing: border-box;
	height: 48px !important;
	margin: 0;
	font-size: 15px;
	border-radius: 6px !important;
	box-shadow: none !important;
}
.os-404__szukaj .search-field {
	width: 100%;
	padding: 0 14px !important;
	background: #fff;
	border: 1px solid #d9cfc6 !important;
}
.os-404__szukaj .search-submit {
	padding: 0 24px !important;
	line-height: 48px !important;
	font-weight: 700;
	color: #fff;
	background: #d85726;
	border: 0;
	cursor: pointer;
}
.os-404__link:first-child { color: #122947 !important; background: transparent; border-color: #122947; }
.os-404__link:first-child:hover, .os-404__link:hover { color: #fff !important; background: #d85726; border-color: #d85726; }

/* Gdzie występowałem — kropka w linii daty (była przy krawędzi wiersza, nierówno), szersza kolumna na „12 października” */
.os-prelekcje .os-prel__year-events li.os-prel__ev {
	grid-template-columns: 135px 1fr; /* „12 października” – najdłuższa data */
	padding-left: 0;
}
.os-prelekcje .os-prel__year-events li.os-prel__ev::before { content: none; }
.os-prel__ev .os-prel__event-date::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 9px 0 0;
	vertical-align: middle;
	position: relative;
	top: -1px;
	background: var(--os-accent, #d85726);
	border-radius: 50%;
}
@media (max-width: 480px) {
	.os-prelekcje .os-prel__year-events li.os-prel__ev { grid-template-columns: 1fr; }
}

/* Gdzie występowałem — bez kropek: data w kolorze akcentu sama wyznacza początek pozycji */
.os-prel__ev .os-prel__event-date::before { content: none; }

/* adnotacja „skąd lista” – tylko dla zalogowanego administratora */
.os-prel__zrodlo { margin: 10px 0 0; padding: 6px 10px; font-size: .82em; color: #40526a; background: #f3efe9; border-radius: 5px; }
/* separator „ – ” tylko dla podpisu w powiększeniu (lightbox bierze tekst figcaption); na stronie temat jest w 2. linii */
.os-prel__shot figcaption .os-prel__shot-sep { display: none; }

/* Pionowe zdjęcia we wpisach (klasa os-pion – mu-plugin zdjecia.php): najwyżej ok. ¾ ekranu, wyśrodkowane.
   Tylko pojedyncze zdjęcia i galerie w jednej kolumnie – w galeriach wielokolumnowych zdjęcia i tak są małe. */
.post_content .gallery-columns-1 img.os-pion,
.post_content .elementor-widget-image img.os-pion,
.post_content .wp-caption img.os-pion,
.post_content .wp-block-image img.os-pion,
.post_content p img.os-pion {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: min(70vh, 600px); /* ok. 1,2× wysokości zdjęcia poziomego w kolumnie wpisu */
	margin-left: auto;
	margin-right: auto;
}

/* Polityka prywatności (/polityka-prywatnosci/, treść z local/polityka-prywatnosci.html) */
.os-polityka { max-width: 820px; margin: 0 auto; line-height: 1.7; color: #40526a; }
.os-polityka h2 { margin: 1.8em 0 .5em; color: #122947; font-size: 1.45em; }
.os-polityka h3 { margin: 1.3em 0 .4em; color: #122947; font-size: 1.12em; }
.os-polityka ul { margin: .4em 0 1em 1.2em; }
.os-polityka li { margin: .25em 0; }
.os-polityka__data { font-size: .9em; color: #8a96a8; }

/* ==========================================================================
   Z drugiego komputera (01.10, _zmiany-claude): wpisy klasyczne (bez Elementora) – spis treści,
   „Wróć do spisu treści”, separatory, białe tło treści, zdjęcia w treści, galeria na dole, legenda map
   ========================================================================== */
/* Spis treści + „Wróć do spisu treści” we wpisach klasycznych (styl jak w Salwadorze/Elementorze) */
.single .post_content_single .os-spis-tytul {
	text-align: center;
}
.single .post_content_single ol.os-spis {
	max-width: 560px;
	margin: .5em auto 1.8em;
}
.single .post_content_single ol.os-spis > li {
	margin: .45em 0;
	font-size: 1.1em;
}
.single .post_content_single ol.os-spis > li::marker {
	color: #e8821e;
	font-weight: 700;
}
.single .post_content_single ol.os-spis a {
	color: inherit;
	text-decoration: none;
}
.single .post_content_single ol.os-spis a:hover {
	color: #e8821e;
}
.single .post_content_single .os-wroc-wrap {
	text-align: center;
	margin: 1.8em 0;
}
.single .post_content_single a.os-wroc {
	display: inline-block;
	padding: 12px 24px;
	background: #E9960C;
	color: #fff;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.single .post_content_single a.os-wroc i {
	margin-right: 7px;
}
.single .post_content_single a.os-wroc:hover {
	filter: brightness(1.06);
	color: #fff;
}
.single .post_content_single ol.os-spis > li::marker {
	color: #E9960C;
}
/* Separator między sekcjami (jak dashed divider w Salwadorze) */
.single .post_content_single hr.os-sep {
	border: 0;
	border-top: 1px dashed #000;
	width: 100%;
	margin: .4em 0 2.2em;
}

/* Legenda pod mapami (strony „Mapa …”) — ramka z przerywaną linią jak na Mapie Europy */
.os-mapa-legenda {
	background: #fff;
	border: 1px dashed #9aa7b4;
	border-radius: 6px;
	padding: 18px 28px;
	margin: 1.6em 0;
}
.os-mapa-legenda h4 {
	margin: 0 0 .6em;
}
.os-mapa-legenda ul {
	margin: 0;
}


/* ==========================================================================
   Biała karta treści dla wpisów NIE budowanych Elementorem (nowe wpisy)
   — starsze wpisy mają białą sekcję z Elementora, więc je pomijamy (:has)
   ========================================================================== */
/* Białe tło treści dla WSZYSTKICH wpisów (także Elementorowych draftów bez białej sekcji) */
.single .post_content_single {
	background: #fff;
}
/* Ramka/padding karty tylko dla wpisów nie budowanych Elementorem */
.single .post_content_single:not(:has(.elementor)) {
	padding: 40px 44px;
	border-radius: 6px;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .1);
}
@media (max-width: 600px) {
	.single .post_content_single:not(:has(.elementor)) {
		padding: 26px 20px;
	}
}
/* Zdjęcia wplecione w treść (figure.gallery-item, bezpośrednie dzieci) — pełna szerokość kolumny */
.single .post_content_single:not(:has(.elementor)) > figure.gallery-item {
	display: block;
	width: 100%;
	margin: 1.6em auto;
	padding: 0;
}
.single .post_content_single:not(:has(.elementor)) > figure.gallery-item img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}
/* Galeria na dole wpisu — klikalne kafelki w siatce */
.single .post_content_single .os-galeria {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1em 0 1.6em;
}
.single .post_content_single .os-galeria figure.gallery-item {
	flex: 1 1 calc(50% - 5px);
	max-width: calc(50% - 5px);
	margin: 0;
	padding: 0;
}
.single .post_content_single .os-galeria figure.gallery-item a,
.single .post_content_single .os-galeria figure.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	cursor: pointer;
}
@media (max-width: 600px) {
	.single .post_content_single .os-galeria figure.gallery-item {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* Pionowe zdjęcia także w nowych wpisach klasycznych (figure.gallery-item na pełną szerokość – poza pionowymi) */
.single .post_content_single > figure.gallery-item img.os-pion { /* tylko zdjęcia w tekście – w galerii na dole kafelki zostają równe */
	width: auto !important;
	max-width: 100%;
	max-height: min(70vh, 600px);
	margin-left: auto;
	margin-right: auto;
}
/* Wpis nie kończy się separatorem (życzenie autora) – zabezpieczenie także dla treści wklejonych później */
.single .post_content_single hr.os-sep:last-child { display: none; }

/* Galeria na dole wpisów klasycznych – równe kafelki 4:3 (jak „Galeria podstawowa” Elementora i galerie na /prelekcje/);
   całe zdjęcie widać po kliknięciu (lightbox) */
.single .post_content_single .os-galeria figure.gallery-item a {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.single .post_content_single .os-galeria figure.gallery-item img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover;
	transition: transform .3s ease;
}
.single .post_content_single .os-galeria figure.gallery-item a:hover img { transform: scale(1.04); }

/* Karty wpisów (listy, „Zobacz również”, popularne wpisy) – zawsze ta sama proporcja obrazka (16:9, jak rozmiary motywu
   370×208 / 770×434 / 1170×658, trx_addons 270×152). Małe zdjęcia (np. z Facebooka, ok. 590 px) dawały węższy wycinek i wyższą kartę niż pozostałe. */
.post_featured.with_thumb img.size-tripster-thumb-med,
.post_featured.with_thumb img.size-tripster-thumb-big,
.post_featured.with_thumb img.size-tripster-thumb-huge,
.post_featured.with_thumb img.size-trx_addons-thumb-small {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
/* Motyw daje ramce obrazka display: inline-block (karty na stronie głównej, „Zobacz również”), więc ramka kurczyła się
   do szerokości małego zdjęcia (590 px) i width: 100% nic nie dawało. Zdjęcie ma zawsze wypełniać kartę – za małe
   wyjdzie trochę mniej ostre, do czasu podmiany na lepsze. */
.post_featured.with_thumb:has(img.size-tripster-thumb-med),
.post_featured.with_thumb:has(img.size-tripster-thumb-big),
.post_featured.with_thumb:has(img.size-tripster-thumb-huge),
.post_featured.with_thumb:has(img.size-trx_addons-thumb-small) {
	display: block;
}

/* Widżet „O stronie” na stronie głównej – tekst powitania wyjustowany, z dzieleniem wyrazów (wąska kolumna).
   Mocniejszy selektor: aboutme.css z trx_addons ładuje się w treści strony, już po os.css, i ma text-align: left. */
.widget.widget_aboutme .aboutme_description {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Galeria Shortcodes Ultimate ([su_custom_gallery], np. Preikestolen): kafelki mają na sztywno 350×300 px, więc na
   telefonie wychodziły poza ekran – tam pełna szerokość w tej samej proporcji */
@media (max-width: 600px) {
	.su-custom-gallery-slide {
		width: calc(100% - 1em) !important;
		height: auto !important;
		aspect-ratio: 7 / 6;
	}
}

/* Telefon: drobne napisy nie mniejsze niż ~12,5 px (tagi nad wpisem, napis nad banerem prelekcji, podpisy zdjęć) */
@media (max-width: 767px) {
	.os-post-tag { font-size: 12.5px; }
	.os-baner__znak { font-size: 12px; }
	.os-prelekcje figcaption { font-size: 12.5px; }
}

/* Telefon (01.10): treść wpisów i stron 16 px zamiast 14 px (motyw zmniejsza czcionkę na wąskich ekranach),
   wyjustowane akapity z dzieleniem wyrazów (bez dziur między słowami) i szersze kolumny tekstu na /prelekcje/ */
@media (max-width: 767px) {
	.post_item_single .post_content p,
	.post_item_single .post_content li {
		font-size: 16px;
		line-height: 1.65;
	}
	.post_item_single .post_content p {
		-webkit-hyphens: auto;
		hyphens: auto;
	}
	.os-prelekcje {
		padding: 24px 14px;
	}
	.os-prel__topic {
		padding: 18px 14px 20px;
	}
}

/* Treść wpisów: rozmiar i krój czcionki wklejone razem z tekstem (np. <span style="font-family: Nunito; font-size: 18px">
   albo pogrubienia 14 px w 21 starszych wpisach) – w akapicie i na liście wszystko jak reszta tekstu */
.post_item_single .post_content p [style*="font-size"],
.post_item_single .post_content li [style*="font-size"] {
	font-size: inherit !important;
}
.post_item_single .post_content p [style*="font-family"],
.post_item_single .post_content li [style*="font-family"] {
	font-family: inherit !important;
}

/* Menu główne na laptopach (1025–1439 px): mniejsze odstępy między punktami. Nagłówki strony głównej i „Tematów”
   mają węższą kolumnę menu niż reszta strony i przy 1280 px „Prelekcje” chowały się pod „⋮”. */
@media (min-width: 1025px) and (max-width: 1439px) {
	body .sc_layouts_row_type_compact .sc_layouts_menu_nav > li > a {
		padding-left: 14px;
		padding-right: 14px;
	}
}
@media (min-width: 1025px) and (max-width: 1279px) {
	body .sc_layouts_row_type_compact .sc_layouts_menu_nav > li > a {
		font-size: 18px;
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* ==========================================================================
   Ramki pod wpisem (ramki-wpisow.php): prelekcja na ten temat + seria „Przez Amerykę Łacińską 2023/24”
   ========================================================================== */
.os-ramka {
	margin: 2.4em 0;
	padding: 24px 28px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 5px rgba(70, 70, 70, .1);
}
.os-ramka p.os-ramka__znak {
	margin: 0 0 .5em;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #d85726;
}
/* prelekcja na ten temat */
.os-ramka--prelekcja { /* biała karta z pomarańczową obwódką – kremowe tło zlewało się z tłem strony */
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: linear-gradient(135deg, #fff 55%, #fff4ec 100%);
	border: 1px solid #f2cdb9;
	border-left: 5px solid #d85726;
	box-shadow: 0 8px 22px rgba(216, 87, 38, .12);
}
.os-ramka__ikona {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: #fff;
	background: #d85726;
	border-radius: 50%;
}
.os-ramka__ikona svg {
	width: 26px;
	height: 26px;
}
.os-ramka__tresc p {
	margin: 0 0 .7em;
	color: #40526a;
}
.os-ramka__tresc p.os-ramka__tytul {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.3;
	color: #122947;
}
.os-ramka__btn,
.os-ramka__btn:hover,
.os-ramka__btn:focus {
	display: inline-block;
	margin-top: .3em;
	padding: 11px 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	background: #d85726;
	border-radius: 5px;
	text-decoration: none;
	transition: filter .2s ease, transform .2s ease;
}
.os-ramka__btn:hover {
	filter: brightness(1.07);
	transform: translateY(-2px);
}
/* seria wpisów z wyprawy */
.os-seria__nawigacja {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: .6em;
}
.os-seria__link {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 10px;
	color: #122947;
	border: 1px solid #efe6dd;
	border-radius: 6px;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}
.os-seria__link:hover {
	color: #122947;
	box-shadow: 0 8px 18px rgba(18, 41, 71, .12);
	transform: translateY(-2px);
}
.os-seria__link--nast {
	grid-column: 2;
	flex-direction: row-reverse;
	text-align: right;
}
.os-seria__link img.os-seria__img {
	flex: none;
	width: 120px;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}
.os-seria__opis {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.os-seria__etykieta {
	font-size: 13px;
	font-weight: 700;
	color: #d85726;
}
.os-ramka .os-seria__link .os-seria__tytul { /* tytuł granatowy, etykieta pomarańczowa – motyw barwi linki w treści na pomarańczowo */
	font-weight: 700;
	line-height: 1.3;
	color: #122947;
	transition: color .2s ease;
}
.os-ramka .os-seria__link:hover .os-seria__tytul {
	color: #d85726;
}
.os-seria__lista {
	margin-top: 16px;
}
.os-seria__lista summary {
	cursor: pointer;
	font-weight: 700;
	color: #122947;
}
.os-seria__lista ol {
	margin: .8em 0 0 1.4em;
}
.os-seria__lista li {
	margin: .25em 0;
}
.os-seria__teraz span {
	font-weight: 400;
	color: #8a97a8;
}
@media (max-width: 600px) {
	.os-ramka {
		padding: 18px 16px;
	}
	.os-ramka--prelekcja {
		flex-direction: column;
		gap: 12px;
	}
	.os-seria__nawigacja {
		grid-template-columns: minmax(0, 1fr);
	}
	.os-seria__link--nast {
		grid-column: auto;
		flex-direction: row;
		text-align: left;
	}
	.os-seria__link img.os-seria__img {
		width: 96px;
	}
}

/* Tytuły: przy zawijaniu wiersze o podobnej długości zamiast jednego słowa w drugiej linii (np. „…i wyspa / Ometepe”) */
.sc_layouts_title_caption,
.post_item .post_title,
.post_content h2,
.post_content h3,
.elementor-widget-heading .elementor-heading-title,
.os-ramka p.os-ramka__tytul {
	text-wrap: balance;
}

/* Małe flagi w ramce serii i na własnych listach (flagi.php → os_flagi_html) */
.os-flagi {
	white-space: nowrap;
}
.os-flagi img.os-flaga {
	display: inline-block;
	width: 1em;
	height: .75em;
	margin: 0 .22em .06em 0;
	vertical-align: -.04em;
	border-radius: 1px;
	filter: drop-shadow(0 0 1px rgba(18, 41, 71, .45));
}
