/* =========================================================================
   TCP VIP — Blog (single, lista, archiwum). Punkt 14 wytycznych.
   Paleta VIP: zloto #9b8354 · szarosc #75706a · zielen #486f42 · off-white #f9f9f7
   ========================================================================= */

:root {
	--tcp-gold: #9b8354;
	--tcp-gold-dark: #7d6a44;
	--tcp-gray: #75706a;
	--tcp-green: #486f42;
	--tcp-ink: #2b2a27;
	--tcp-cream: #f9f9f7;
	--tcp-line: #e7e3da;
}

/* ---------- HERO wpisu ---------- */
.page-single-post .post-hero {
	position: relative;
	background-color: #2b2a27;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 120px 0 54px;
}
.page-single-post .post-hero.has-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,19,17,.35) 0%, rgba(20,19,17,.78) 100%);
}
.page-single-post .post-hero .section {
	position: relative;
	z-index: 2;
}
.page-single-post .post-hero-inner {
	max-width: 860px;
}
.page-single-post .post-hero h1 {
	color: #fff;
	margin: 13px 0 0;
	line-height: 1.15;
}
.page-single-post .post-hero .breadcrumbs,
.page-single-post .post-hero .breadcrumbs li,
.page-single-post .post-hero .breadcrumbs a {
	color: rgba(255,255,255,.82);
}
.page-single-post .post-hero .breadcrumbs a:hover { color: #fff; }

.post-meta-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 13px;
	margin-top: 13px;
	font-family: Lato, sans-serif;
}
.post-meta-top .post-cat {
	display: inline-block;
	background: var(--tcp-gold);
	color: #fff;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 13px;
	border-radius: 2px;
	text-decoration: none;
}
.post-meta-top .post-cat:hover { background: var(--tcp-gold-dark); }
.post-meta-top time {
	font-size: 15px;
	color: rgba(255,255,255,.85);
}

/* ---------- KOLUMNA TRESCI ---------- */
.post-body { background: #fff; }
.post-body .section { padding-top: 55px; padding-bottom: 55px; }
.post-article {
	max-width: 780px;
	margin: 0 auto;
}

/* ---------- SPIS TRESCI ---------- */
.tcp-toc {
	background: var(--tcp-cream);
	border: 1px solid var(--tcp-line);
	border-left: 3px solid var(--tcp-gold);
	border-radius: 4px;
	padding: 21px 26px;
	margin: 0 0 34px;
}
.tcp-toc-title {
	font-family: Lato, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 14px;
	color: var(--tcp-gold-dark);
	margin-bottom: 10px;
}
.tcp-toc-list {
	margin: 0;
	padding-left: 21px;
	font-family: Lato, sans-serif;
}
.tcp-toc-list li { margin: 6px 0; }
.tcp-toc-list a {
	color: var(--tcp-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.tcp-toc-list a:hover {
	color: var(--tcp-gold-dark);
	border-bottom-color: var(--tcp-gold);
}

/* ---------- TYPOGRAFIA TRESCI ---------- */
.post-content {
	font-family: Lato, sans-serif;
	font-size: 17.5px;
	line-height: 1.75;
	color: #35332f;
}
.post-content > *:first-child { margin-top: 0; }
.post-content h2 {
	margin: 42px 0 15px;
	line-height: 1.25;
	scroll-margin-top: 110px;
}
.post-content h3 { margin: 30px 0 11px; line-height: 1.3; }
.post-content p { margin: 0 0 21px; }
.post-content a {
	color: var(--tcp-gold-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.post-content a:hover { color: var(--tcp-green); }
.post-content ul,
.post-content ol { margin: 0 0 21px; padding-left: 26px; }
.post-content li { margin: 7px 0; }
.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 13px 0;
}
.post-content figure { margin: 26px 0; }
.post-content figcaption {
	font-size: 14px;
	color: var(--tcp-gray);
	text-align: center;
	margin-top: 8px;
}
.post-content blockquote {
	margin: 26px 0;
	padding: 8px 24px;
	border-left: 3px solid var(--tcp-gold);
	background: var(--tcp-cream);
	font-style: italic;
	color: #454239;
}

/* ---------- RAMKA AUTORA ---------- */
.tcp-author-box {
	display: flex;
	gap: 21px;
	align-items: center;
	margin-top: 47px;
	padding: 26px;
	background: var(--tcp-cream);
	border: 1px solid var(--tcp-line);
	border-radius: 6px;
}
.tcp-author-avatar {
	flex: 0 0 auto;
	width: 89px;
	height: 89px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--tcp-gold);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tcp-author-avatar img { width: 100%; height: 100%; object-fit: contain; }
.tcp-author-info { font-family: Lato, sans-serif; }
.tcp-author-label {
	display: block;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tcp-gold-dark);
	margin-bottom: 3px;
}
.tcp-author-name {
	font-size: 19px;
	font-weight: 700;
	color: var(--tcp-ink);
	margin-bottom: 6px;
}
.tcp-author-name a { color: inherit; text-decoration: none; }
.tcp-author-name a:hover { color: var(--tcp-gold-dark); }
.tcp-author-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tcp-gray); }

/* ---------- FAQ WPISU (schema.org/FAQPage) ---------- */
.tcp-faq {
	max-width: 780px;
	margin: 47px auto 0;
}
.tcp-faq .section { padding: 0; max-width: none; }
.tcp-faq-title { margin: 0 0 21px; }
.tcp-faq .faq-item {
	border: 1px solid var(--tcp-line);
	border-radius: 6px;
	margin-bottom: 13px;
	background: #fff;
	overflow: hidden;
}
.tcp-faq .faq-item[open] { border-color: var(--tcp-gold); }
.tcp-faq .faq-item .question {
	list-style: none;
	cursor: pointer;
	padding: 18px 52px 18px 21px;
	position: relative;
	font-family: Lato, sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--tcp-ink);
	background: var(--tcp-cream);
}
.tcp-faq .faq-item .question::-webkit-details-marker { display: none; }
.tcp-faq .faq-item .question::after {
	content: "+";
	position: absolute;
	right: 21px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	line-height: 1;
	color: var(--tcp-gold-dark);
	transition: transform .2s ease;
}
.tcp-faq .faq-item[open] .question::after { content: "\2212"; }
.tcp-faq .faq-item .question:hover { color: var(--tcp-gold-dark); }
.tcp-faq .faq-item .answer {
	padding: 16px 21px 20px;
	font-family: Lato, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #454239;
}
.tcp-faq .faq-item .answer p { margin: 0 0 12px; }
.tcp-faq .faq-item .answer p:last-child { margin-bottom: 0; }
.tcp-faq .faq-item .answer a { color: var(--tcp-gold-dark); text-decoration: underline; }
.tcp-faq .faq-item .answer ul,
.tcp-faq .faq-item .answer ol { margin: 0 0 12px; padding-left: 24px; }

/* ---------- PODOBNE WPISY ---------- */
.tcp-related { background: var(--tcp-cream); padding: 55px 0; }
.tcp-related-title { text-align: center; margin: 0 0 34px; }

/* ---------- SIATKA / KAFELKI (lista + podobne) ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
}
.blog-list .post-grid { gap: 34px 34px; }
.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tcp-line);
	border-radius: 8px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 13px 34px rgba(43,42,39,.13);
}
.post-card-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tcp-cream);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #a7906180 0%, #75706a55 100%);
}
.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 21px 21px 24px;
	font-family: Lato, sans-serif;
}
.post-card-cat {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tcp-gold-dark);
	font-weight: 700;
	margin-bottom: 8px;
}
.post-card-title { font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
.post-card-title a { color: var(--tcp-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--tcp-gold-dark); }
.post-card-date { font-size: 13px; color: var(--tcp-gray); }
.post-card-excerpt { font-size: 15px; line-height: 1.6; color: #55524b; margin: 11px 0 18px; }
.post-card-more {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 700;
	color: var(--tcp-gold-dark);
	text-decoration: none;
	border-bottom: 2px solid var(--tcp-gold);
	padding-bottom: 2px;
}
.post-card-more:hover { color: var(--tcp-green); border-bottom-color: var(--tcp-green); }

/* ---------- INTRO / PUSTY / OPIS ---------- */
.blog-intro {
	max-width: 780px;
	margin: 0 auto 42px;
	font-family: Lato, sans-serif;
	font-size: 18px;
	line-height: 1.7;
	color: #454239;
	text-align: center;
}
.blog-empty {
	text-align: center;
	font-family: Lato, sans-serif;
	font-size: 18px;
	color: var(--tcp-gray);
	padding: 34px 0;
}
.archive-description { color: rgba(255,255,255,.9); margin-top: 8px; font-family: Lato, sans-serif; }

/* ---------- PAGINACJA ---------- */
.pagination { margin-top: 47px; text-align: center; font-family: Lato, sans-serif; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 13px;
	margin: 0 3px;
	border: 1px solid var(--tcp-line);
	border-radius: 4px;
	color: var(--tcp-ink);
	text-decoration: none;
	transition: all .15s ease;
}
.pagination .page-numbers:hover { border-color: var(--tcp-gold); color: var(--tcp-gold-dark); }
.pagination .page-numbers.current {
	background: var(--tcp-gold);
	border-color: var(--tcp-gold);
	color: #fff;
}

/* ---------- RESPONSYWNOSC ---------- */
@media (max-width: 960px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 680px) {
	.page-single-post .post-hero { padding: 96px 0 42px; }
	.post-body .section { padding-top: 40px; padding-bottom: 40px; }
	.post-content { font-size: 16.5px; }
	.post-grid { grid-template-columns: 1fr; }
	.tcp-author-box { flex-direction: column; text-align: center; }
	.tcp-author-avatar { margin: 0 auto; }
}

/* Wygodne, plynne przewijanie do kotwic spisu tresci */
html { scroll-behavior: smooth; }
