/* =========================================================
   Blog — lista wpisów (home.php) i elementy wspólne bloga.
   Ładowany tylko na stronach bloga. Korzysta ze zmiennych
   z main.css (--ap-gold, --ap-muted, --ap-ease, …).
   ========================================================= */

.ap-blog {
	--ap-blog-max: 1200px;
	--ap-blog-gutter: clamp(20px, 5vw, 64px);
	--ap-blog-radius: 14px;
	/* clip, nie hidden — hidden psuje position: sticky (spis treści) */
	overflow-x: clip;
}

.ap-blog__inner {
	max-width: calc(var(--ap-blog-max) + 2 * var(--ap-blog-gutter));
	margin: 0 auto;
	padding: 0 var(--ap-blog-gutter);
}

/* ---------- Nagłówek bloga ---------- */
.ap-blog-hero {
	position: relative;
	padding: calc(var(--ap-header-h) + clamp(56px, 10vh, 120px)) 0 clamp(48px, 8vh, 96px);
	text-align: center;
	isolation: isolate;
}

/* Kadr z dżungli jak na stronie głównej — mocno przygaszony, wtapia się w tło. */
.ap-blog-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center 40%;
	opacity: 0.32;
}

.ap-blog-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(12, 14, 12, 0.35) 0%, var(--ap-bg) 100%);
}

.ap-blog-hero .ap-overline {
	margin-bottom: clamp(14px, 2vh, 22px);
}

.ap-blog-hero__title {
	margin: 0;
	font-size: clamp(3.4rem, 12vw, 9rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.ap-blog-hero .ap-rule {
	margin: clamp(22px, 3.4vh, 34px) auto;
}

.ap-blog-hero__lead {
	max-width: 34em;
	margin: 0 auto;
	color: var(--ap-muted);
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	font-weight: 500;
	line-height: 1.6;
}

/* ---------- Wspólne: meta i „czytaj" ---------- */
.ap-post-meta {
	color: var(--ap-muted);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ap-post-more {
	color: var(--ap-gold);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* ---------- Najnowszy wpis (wyróżniony) ---------- */
.ap-blog-featured {
	margin-bottom: clamp(56px, 9vh, 104px);
}

.ap-post-featured {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
	color: inherit;
	text-decoration: none;
}

.ap-post-featured__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--ap-blog-radius);
	background: #1a1c16;
}

.ap-post-featured__media img,
.ap-post-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ap-ease);
}

/* złoty border na hover — pseudo-element nad zdjęciem */
.ap-post-featured__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 0 rgba(224, 165, 38, 0);
	transition: box-shadow 0.35s ease;
}

.ap-post-featured:hover .ap-post-featured__media img {
	transform: scale(1.05);
}

.ap-post-featured:hover .ap-post-featured__media::after {
	box-shadow: inset 0 0 0 2px var(--ap-gold);
}

.ap-post-featured__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ap-post-featured__label {
	color: var(--ap-gold);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.ap-post-featured__title {
	margin: 0;
	font-size: clamp(1.6rem, 2.7vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	transition: color 0.2s ease;
}

.ap-post-featured:hover .ap-post-featured__title {
	color: var(--ap-gold);
}

.ap-post-featured__excerpt {
	margin: 0;
	color: var(--ap-muted);
	font-size: clamp(0.98rem, 1.15vw, 1.08rem);
	line-height: 1.7;
}

.ap-post-featured .ap-post-more {
	margin-top: 6px;
}

/* ---------- Lista wpisów ---------- */
.ap-blog-list {
	margin-bottom: clamp(72px, 12vh, 140px);
}

.ap-blog-list__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 clamp(22px, 3.4vh, 34px);
	color: var(--ap-white);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-transform: uppercase;
}

.ap-blog-list__head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(224, 165, 38, 0.28);
}

.ap-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Karta jak w „W mediach": zdjęcie na całość, tekst na ciemnym gradiencie. */
.ap-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: clamp(320px, 30vw, 400px);
	overflow: hidden;
	border-radius: 12px;
	background: #1a1c16;
	color: inherit;
	text-decoration: none;
	box-shadow: inset 0 0 0 0 rgba(224, 165, 38, 0);
	transition: box-shadow 0.35s ease;
}

.ap-post-card__media {
	position: absolute;
	inset: 0;
}

.ap-post-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 20%, rgba(0, 0, 0, 0.4) 58%, rgba(0, 0, 0, 0.05));
}

.ap-post-card:hover {
	box-shadow: inset 0 0 0 2px var(--ap-gold), 0 18px 44px rgba(0, 0, 0, 0.55);
}

.ap-post-card:hover .ap-post-card__media img {
	transform: scale(1.08);
}

.ap-post-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: clamp(18px, 1.6vw, 24px);
}

.ap-post-card__date {
	color: var(--ap-gold);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ap-post-card__title {
	margin: 0;
	font-size: clamp(1.02rem, 1.25vw, 1.18rem);
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ap-post-card .ap-post-meta {
	font-size: 0.66rem;
}

.ap-post-card:hover .ap-post-more,
.ap-post-featured:hover .ap-post-more {
	animation: ap-nudge 1.2s var(--ap-ease) infinite;
}

.ap-post-card .ap-post-more {
	color: var(--ap-muted);
	font-size: 0.64rem;
	font-weight: 600;
}

.ap-post-card:hover .ap-post-more {
	color: var(--ap-gold);
}

.ap-post-card:focus-visible,
.ap-post-featured:focus-visible {
	outline: 2px solid var(--ap-gold);
	outline-offset: 4px;
}

/* ---------- Paginacja ---------- */
.ap-pagination {
	margin-top: clamp(36px, 6vh, 64px);
}

.ap-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.ap-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: var(--ap-white);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ap-pagination a.page-numbers:hover {
	border-color: var(--ap-gold);
	color: var(--ap-gold);
}

.ap-pagination .page-numbers.current {
	border-color: var(--ap-gold);
	background: var(--ap-gold);
	color: #0c0e0c;
}

.ap-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---------- Pusty blog ---------- */
.ap-blog-empty {
	max-width: 32em;
	margin: 0 auto clamp(72px, 12vh, 140px);
	padding: clamp(32px, 5vw, 56px);
	border: 1px solid rgba(224, 165, 38, 0.28);
	border-radius: var(--ap-blog-radius);
	text-align: center;
	color: var(--ap-muted);
	line-height: 1.7;
}

/* ---------- Kontakt na dole ---------- */
.ap-blog-cta {
	padding: clamp(72px, 12vh, 140px) 0;
	border-top: 1px solid rgba(224, 165, 38, 0.22);
	text-align: center;
	background: radial-gradient(70% 90% at 50% 100%, rgba(46, 74, 40, 0.28), rgba(12, 14, 12, 0) 70%);
}

.ap-blog-cta__title {
	margin: 0;
	/* 7.4vw — „WSPÓŁPRACOWAĆ?" mieści się w jednej linii także na 360 px */
	font-size: clamp(1.7rem, 7.4vw, 5.6rem);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.ap-blog-cta__title span {
	display: block;
}

/* ikony social nie mogą się ściskać w owale */
.ap-blog-cta .ap-social {
	flex: 0 0 auto;
}

/* =========================================================
   Pojedynczy wpis (single.php)
   ========================================================= */

/* Pasek postępu czytania (złoty, jak pasek postępu na stronie głównej). */
.ap-read-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 61;
	height: 3px;
	background: var(--ap-gold);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

.admin-bar .ap-read-progress {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .ap-read-progress {
		top: 46px;
	}
}

.ap-article__narrow {
	max-width: calc(740px + 2 * var(--ap-blog-gutter));
	margin: 0 auto;
	padding: 0 var(--ap-blog-gutter);
}

.ap-article-hero {
	padding: calc(var(--ap-header-h) + clamp(40px, 7vh, 88px)) 0 0;
}

.ap-article__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(24px, 4vh, 36px);
	color: var(--ap-gold);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ap-article__back:hover {
	color: var(--ap-white);
}

/* Autor po lewej, data i czas czytania po prawej (na telefonie pod autorem). */
.ap-article__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	margin-top: clamp(24px, 4vh, 36px);
}

.ap-article__byline .ap-post-meta {
	line-height: 1.6;
	text-align: right;
}

.ap-post-meta__updated {
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.42);
}

.ap-article__title {
	margin: 0;
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.ap-article__lead {
	margin: clamp(18px, 3vh, 28px) 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(1.08rem, 1.6vw, 1.3rem);
	font-weight: 500;
	line-height: 1.6;
}

.ap-article__author {
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
	text-decoration: none;
}

.ap-avatar {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border: 2px solid var(--ap-gold);
	border-radius: 50%;
	background: #1a1c16;
}

.ap-avatar--mono {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ap-gold);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	background: #12140f;
}

.ap-author-box .ap-avatar--mono {
	font-size: 1.7rem;
}

.ap-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap-article__author-name {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
}

.ap-article__author-role {
	display: block;
	margin-top: 2px;
	color: var(--ap-muted);
	font-size: 0.8rem;
}

.ap-article__cover {
	max-width: calc(1100px + 2 * var(--ap-blog-gutter));
	margin: clamp(36px, 6vh, 64px) auto;
	padding: 0 var(--ap-blog-gutter);
}

.ap-article__cover-img {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--ap-blog-radius);
	background: #1a1c16;
}

.ap-article__cover figcaption {
	margin-top: 12px;
	color: var(--ap-muted);
	font-size: 0.82rem;
	text-align: center;
}

.ap-article__cover-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Układ: treść + spis treści ---------- */
.ap-article__body {
	padding: 0 var(--ap-blog-gutter);
}

.ap-article__main {
	max-width: 740px;
	margin: 0 auto;
}

.ap-toc-side {
	display: none;
}

@media (min-width: 1280px) {
	.ap-article__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 740px) minmax(0, 1fr);
		column-gap: clamp(40px, 4vw, 72px);
	}

	.ap-article__main {
		grid-column: 2;
		width: 100%;
		margin: 0;
	}

	/* spis treści obok tekstu, przyklejony podczas czytania */
	.ap-toc-side {
		display: block;
		grid-column: 3;
		align-self: start;
		position: sticky;
		top: calc(var(--ap-header-h) + 28px);
		max-width: 270px;
	}

	.ap-toc-box {
		display: none;
	}
}

/* ---------- Przedruk z mediów: notka o źródle ---------- */
.ap-source-note {
	margin: 0 0 2.2em;
	padding: 16px 20px;
	border-left: 3px solid var(--ap-gold);
	border-radius: 0 12px 12px 0;
	background: rgba(255, 255, 255, 0.03);
	color: var(--ap-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

.ap-source-note a {
	color: var(--ap-gold);
	font-weight: 600;
	text-decoration: none;
}

.ap-source-note a:hover {
	color: var(--ap-white);
}

.ap-source-note__more {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Spis treści ---------- */
.ap-toc__title {
	margin: 0 0 14px;
	color: var(--ap-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.ap-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-toc li {
	margin: 0;
}

.ap-toc a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	color: var(--ap-muted);
	font-size: 0.84rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ap-toc a:hover {
	color: var(--ap-white);
}

.ap-toc a.is-active {
	border-left-color: var(--ap-gold);
	color: var(--ap-gold);
}

/* telefon / tablet: zwijana ramka nad treścią */
.ap-toc-box {
	margin: 0 0 2.2em;
	border: 1px solid rgba(224, 165, 38, 0.28);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
}

.ap-toc-box summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	color: var(--ap-gold);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.ap-toc-box summary::-webkit-details-marker {
	display: none;
}

.ap-toc-box summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid var(--ap-gold);
	border-bottom: 2px solid var(--ap-gold);
	transform: rotate(45deg);
	transition: transform 0.2s ease, margin 0.2s ease;
}

.ap-toc-box[open] summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.ap-toc-box .ap-toc {
	padding: 0 20px 18px;
}

/* ---------- Treść wpisu (bloki edytora) ---------- */
.ap-article__content {
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.02rem, 1.2vw, 1.12rem);
	line-height: 1.8;
	overflow-wrap: break-word;
}

.ap-article__content > * {
	margin-top: 0;
	margin-bottom: 1.4em;
}

.ap-article__content h2,
.ap-article__content h3,
.ap-article__content h4 {
	color: var(--ap-white);
	line-height: 1.25;
	letter-spacing: -0.005em;
}

.ap-article__content h2 {
	scroll-margin-top: calc(var(--ap-header-h) + 24px);
	margin: 2.2em 0 0.8em;
	font-size: clamp(1.45rem, 2.4vw, 1.95rem);
	font-weight: 800;
}

.ap-article__content h3 {
	margin: 1.9em 0 0.6em;
	font-size: clamp(1.18rem, 1.7vw, 1.35rem);
	font-weight: 700;
}

.ap-article__content strong {
	color: var(--ap-white);
	font-weight: 700;
}

.ap-article__content a {
	color: var(--ap-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.ap-article__content a:hover {
	color: var(--ap-white);
}

.ap-article__content ul,
.ap-article__content ol {
	padding-left: 1.3em;
}

.ap-article__content li {
	margin-bottom: 0.55em;
	padding-left: 0.3em;
}

.ap-article__content li::marker {
	color: var(--ap-gold);
	font-weight: 700;
}

/* Cytaty: bloki „Cytat" i „Cytat wyróżniony" (większy tekst); podpis ze zdjęciem
   składa ap_blog_quote_cite() w inc/blog.php. */
.ap-article__content blockquote,
.ap-article__content .wp-block-pullquote {
	margin: 2.6em 0;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid rgba(224, 165, 38, 0.32);
	border-radius: var(--ap-blog-radius);
	background: linear-gradient(135deg, rgba(224, 165, 38, 0.09), rgba(224, 165, 38, 0) 55%), rgba(255, 255, 255, 0.025);
	color: var(--ap-white);
	font-size: clamp(1.08rem, 1.45vw, 1.24rem);
	font-weight: 500;
	line-height: 1.6;
	text-align: left;
}

.ap-article__content blockquote::before,
.ap-article__content .wp-block-pullquote::before {
	content: "";
	display: block;
	width: 40px;
	height: 30px;
	margin-bottom: 18px;
	background: var(--ap-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 30V18C0 8 6 1.5 16 0l1.6 3.4C11.6 5.2 8.4 9 8.2 14H16v16H0zm22 0V18c0-10 6-16.5 16-18l1.6 3.4C33.6 5.2 30.4 9 30.2 14H38v16H22z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M0 30V18C0 8 6 1.5 16 0l1.6 3.4C11.6 5.2 8.4 9 8.2 14H16v16H0zm22 0V18c0-10 6-16.5 16-18l1.6 3.4C33.6 5.2 30.4 9 30.2 14H38v16H22z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* blockquote wewnątrz „Cytatu wyróżnionego" — bez drugiej ramki i znaku */
.ap-article__content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font: inherit;
}

.ap-article__content .wp-block-pullquote blockquote::before {
	content: none;
}

.ap-article__content blockquote p {
	margin: 0 0 0.7em;
}

.ap-article__content blockquote p:last-of-type {
	margin-bottom: 0;
}

.ap-article__content .wp-block-pullquote p {
	font-size: clamp(1.3rem, 2.3vw, 1.68rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.ap-article__content blockquote cite {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	color: var(--ap-white);
	font-size: 0.92rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
}

.ap-article__content blockquote cite .ap-avatar {
	width: 46px;
	height: 46px;
}

.ap-article__content blockquote cite .ap-avatar img {
	height: 100%;
	border-radius: 0;
}

.ap-quote-cite__who {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ap-quote-cite__role {
	color: var(--ap-muted);
	font-size: 0.8rem;
	font-weight: 500;
}

.ap-article__content figure {
	margin: 2.4em 0;
}

.ap-article__content img {
	display: block;
	height: auto;
	border-radius: 12px;
}

.ap-article__content figcaption {
	margin-top: 12px;
	color: var(--ap-muted);
	font-size: 0.82rem;
	line-height: 1.5;
	text-align: center;
}

.ap-article__content hr,
.ap-article__content .wp-block-separator {
	width: 120px;
	height: 1px;
	margin: 3em auto;
	border: 0;
	background: rgba(224, 165, 38, 0.4);
}

.ap-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.ap-article__content th,
.ap-article__content td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	text-align: left;
}

.ap-article__content th {
	color: var(--ap-white);
}

/* szerokie / pełne obrazki z edytora */
.ap-article__content .alignwide {
	width: min(1100px, calc(100vw - 2 * var(--ap-blog-gutter)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ap-article__content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ap-article__content .alignfull img {
	border-radius: 0;
}

/* ---------- W skrócie (styl bloku Grupa: „W skrócie") ---------- */
.ap-article__content .is-style-ap-summary {
	margin: 0 0 2.4em;
	padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
	border: 1px solid rgba(224, 165, 38, 0.32);
	border-radius: var(--ap-blog-radius);
	background: rgba(224, 165, 38, 0.06);
}

/* motyw klasyczny: WP owija treść grupy w .wp-block-group__inner-container */
.ap-article__content .is-style-ap-summary > :first-child:not(.wp-block-group__inner-container),
.ap-article__content .is-style-ap-summary > .wp-block-group__inner-container > :first-child {
	margin: 0 0 12px;
	color: var(--ap-gold);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.ap-article__content .is-style-ap-summary > :last-child:not(.wp-block-group__inner-container),
.ap-article__content .is-style-ap-summary > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.ap-article__content .is-style-ap-summary li {
	color: rgba(255, 255, 255, 0.92);
}

/* ---------- Filmy: miniatura + play, odtwarzacz dopiero po kliknięciu ---------- */
.ap-article__content .wp-block-embed {
	margin: 2.4em 0;
}

.ap-video {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	cursor: pointer;
}

.ap-article__content .ap-video img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.5s var(--ap-ease);
}

.ap-video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05) 60%);
	pointer-events: none;
}

.ap-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: var(--ap-gold);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	transition: transform 0.25s var(--ap-ease);
}

.ap-video__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -7px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #0c0e0c;
}

.ap-video:hover .ap-video__play {
	transform: scale(1.1);
}

.ap-video:hover img {
	transform: scale(1.04);
}

.ap-video iframe,
.ap-article__content .wp-block-embed iframe {
	display: block;
	width: 100%;
	border: 0;
}

.ap-video iframe {
	position: absolute;
	inset: 0;
	height: 100%;
}

.ap-article__content .wp-block-embed.is-type-video iframe {
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
}

/* YouTube Shorts — pionowo */
.ap-video--vertical {
	max-width: 360px;
	margin: 0 auto;
	aspect-ratio: 9 / 16;
}

/* osadzenia „rich" (TikTok, X) — wyśrodkowane */
.ap-article__content .wp-block-embed.is-type-rich .wp-block-embed__wrapper {
	display: flex;
	justify-content: center;
}

/* ---------- Udostępnianie ---------- */
.ap-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(40px, 6vh, 64px);
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-share__label {
	color: var(--ap-muted);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.ap-share__links {
	display: flex;
	gap: 10px;
}

.ap-share .ap-social {
	width: 42px;
	height: 42px;
	padding: 0;
	cursor: pointer;
	font: inherit;
}

.ap-share .ap-social svg {
	width: 17px;
	height: 17px;
}

.ap-share .ap-social.is-copied {
	border-color: var(--ap-gold);
	background: var(--ap-gold);
	color: #0c0e0c;
}

/* ---------- O autorze ---------- */
.ap-author-box {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: clamp(18px, 3vw, 28px);
	align-items: start;
	margin: clamp(40px, 6vh, 64px) 0 0;
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid rgba(224, 165, 38, 0.28);
	border-radius: var(--ap-blog-radius);
	background: rgba(255, 255, 255, 0.02);
}

.ap-author-box .ap-avatar {
	width: 96px;
	height: 96px;
}

.ap-author-box .ap-overline {
	margin-bottom: 6px;
	font-size: 0.7rem;
	letter-spacing: 0.32em;
}

.ap-author-box__name {
	margin: 0 0 10px;
	font-size: 1.3rem;
	font-weight: 800;
}

.ap-author-box__bio {
	margin: 0 0 14px;
	color: var(--ap-muted);
	line-height: 1.7;
}

.ap-author-box .ap-post-more {
	text-decoration: none;
}

.ap-author-box .ap-post-more:hover {
	color: var(--ap-white);
}

/* ---------- Czytaj dalej ---------- */
.ap-related {
	margin-top: clamp(72px, 12vh, 128px);
	margin-bottom: clamp(72px, 12vh, 140px);
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
	.ap-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-post-featured {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.ap-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ap-author-box {
		grid-template-columns: minmax(0, 1fr);
	}

	.ap-article__byline .ap-post-meta {
		text-align: left;
	}

	.ap-share {
		justify-content: flex-start;
	}

	.ap-post-card {
		min-height: 300px;
	}

	.ap-post-featured__media {
		border-radius: 12px;
	}
}

@media (max-width: 400px) {
	.ap-blog-cta .ap-socials {
		gap: 10px;
	}

	.ap-blog-cta .ap-social {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-post-featured__media img,
	.ap-post-card__media img {
		transition: none;
	}

	.ap-post-featured:hover .ap-post-featured__media img,
	.ap-post-card:hover .ap-post-card__media img {
		transform: none;
	}

	.ap-post-card:hover .ap-post-more,
	.ap-post-featured:hover .ap-post-more {
		animation: none;
	}
}
