/* NTC: blog (lista wpisów i pojedynczy wpis). Warstwa stylów nad Woodmart. */
body.woodmart-archive-blog, body.single-post { --by: #ffcc00; --bline: #e5e2d6; }

/* ===== Lista wpisów ===== */
body.ntcx-bh-pending .wd-blog-element::before { content: ""; display: block; height: 260px; animation: ntcx-bhp 0s 4s forwards; }
@keyframes ntcx-bhp { to { height: 0; } }
@media (max-width: 767px) { body.ntcx-bh-pending .wd-blog-element::before { height: 230px; } }
.ntcx-bh { position: relative; overflow: hidden; isolation: isolate; background: #1c1a14; color: #ece8d9; border-radius: 22px; padding: 38px 40px; margin: 10px 0 22px; }
.ntcx-bh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 300px at 100% 0, rgba(255, 204, 0, .2), transparent 65%); }
.ntcx-bh::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--by); }
.ntcx-bh small { display: block; color: var(--by); font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; margin-bottom: 8px; }
.ntcx-bh h1 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.1; text-transform: none; }
.ntcx-bh p { margin: 0; color: #c8c3ad; font-size: 16px; max-width: 560px; }
.ntcx-bc { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.ntcx-bc a { border: 1.5px solid var(--bline); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 14px; color: #3a3a3a; text-decoration: none; background: #fff; transition: background .2s, border-color .2s; }
.ntcx-bc a:hover { border-color: var(--by); }
.ntcx-bc a.on { background: var(--by); border-color: var(--by); color: #0d0d0d; }
body.woodmart-archive-blog .wd-page-title { display: none; }
body.woodmart-archive-blog .wd-blog-holder .wd-post { margin-bottom: 0; }
body.woodmart-archive-blog .wd-post-inner { background: #fff; border: 1px solid var(--bline); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
body.woodmart-archive-blog .wd-post-inner:hover { box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .4); transform: translateY(-3px); }
body.woodmart-archive-blog .wd-post-thumb { border-radius: 0; }
body.woodmart-archive-blog .wd-post-thumb .wd-post-img, body.woodmart-archive-blog .wd-post-thumb > a, body.woodmart-archive-blog .wd-post-thumb figure { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
body.woodmart-archive-blog .wd-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.woodmart-archive-blog .wd-blog-holder { min-height: 640px; }
body.woodmart-archive-blog .wd-post-content { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; background: #fff; }
body.woodmart-archive-blog .wd-post-title, body.woodmart-archive-blog .wd-post-title a { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #111; text-transform: none; }
body.woodmart-archive-blog .wd-post-excerpt { color: #555; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.woodmart-archive-blog .wd-post-meta .wd-post-author, body.woodmart-archive-blog .wd-post-meta .wd-post-reply, body.woodmart-archive-blog .wd-post-meta .wd-meta-author, body.woodmart-archive-blog .wd-post-meta .wd-post-share, body.woodmart-archive-blog .wd-post-meta .meta-author { display: none !important; }
body.woodmart-archive-blog .wd-post-meta { font-size: 12.5px; color: #8a8576; }
body.woodmart-archive-blog .wd-post-read-more a, body.woodmart-archive-blog .wd-post-read-more .btn { font-weight: 800; color: #111; text-decoration: underline; text-decoration-color: var(--by); text-decoration-thickness: 2px; text-underline-offset: 4px; background: transparent; border: 0; padding: 0; }
body.woodmart-archive-blog .wd-post-read-more { margin-top: auto; }

/* ===== Pojedynczy wpis ===== */
body.single-post .wd-page-title { display: none; }
body.single-post .wd-prefooter .wd-entry-content, body.single-post footer .wd-entry-content { max-width: none; font-size: inherit; line-height: inherit; }
body.single-post .wd-single-post-header { max-width: 780px; margin: 10px auto 22px; text-align: left; }
body.single-post .wd-single-post-header .wd-post-cat a { display: inline-block; background: var(--by); color: #0d0d0d; border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
body.single-post h1.wd-post-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; margin: 12px 0 10px; color: #111; text-transform: none; }
body.single-post .wd-single-post-header .wd-post-meta { color: #8a8576; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
body.single-post .wd-single-post-header .wd-post-author, body.single-post .wd-single-post-header .wd-meta-author, body.single-post .wd-single-post-header .wd-post-reply { display: none !important; }
body.single-post .wd-entry-content { max-width: 780px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; color: #2b2b2b; }
body.single-post .wd-entry-content p { margin: 0 0 18px; }
body.single-post .wd-entry-content h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 38px 0 12px; color: #111; scroll-margin-top: 110px; text-transform: none; }
body.single-post .wd-entry-content h3 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; color: #111; }
body.single-post .wd-entry-content ul, body.single-post .wd-entry-content ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
body.single-post .wd-entry-content ul li { position: relative; padding-left: 30px; }
body.single-post .wd-entry-content ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: var(--by) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
body.single-post .wd-entry-content ol { counter-reset: nxo; }
body.single-post .wd-entry-content ol li { position: relative; padding-left: 40px; counter-increment: nxo; }
body.single-post .wd-entry-content ol li::before { content: counter(nxo); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 9px; background: #111; color: var(--by); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
body.single-post .wd-entry-content a { color: #111; font-weight: 700; text-decoration: underline; text-decoration-color: var(--by); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.single-post .wd-entry-content a:hover { background: var(--by); text-decoration: none; }
.ntcx-toc { max-width: 780px; margin: 0 auto 26px; background: #faf9f5; border: 1px solid var(--bline); border-radius: 16px; padding: 16px 20px; }
.ntcx-toc b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8a8576; margin-bottom: 8px; }
.ntcx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: nxt; }
.ntcx-toc li { counter-increment: nxt; display: flex; gap: 10px; }
.ntcx-toc li::before { content: counter(nxt); flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--by); color: #0d0d0d; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ntcx-toc a { color: #111; font-weight: 600; text-decoration: none; font-size: 15.5px; }
.ntcx-toc a:hover { text-decoration: underline; text-decoration-color: var(--by); text-decoration-thickness: 2px; }
.ntcx-pcta { max-width: 780px; margin: 38px auto 10px; background: #1c1a14; color: #ece8d9; border-radius: 20px; padding: 26px 28px; position: relative; overflow: hidden; }
.ntcx-pcta::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--by); }
.ntcx-pcta b { display: block; color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ntcx-pcta p { margin: 0 0 16px; color: #c8c3ad; font-size: 16px; line-height: 1.55; }
.ntcx-pcta .row { display: flex; gap: 10px; flex-wrap: wrap; }
.ntcx-pcta a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: background .2s; }
.ntcx-pcta a.p { background: var(--by); color: #0d0d0d; }
.ntcx-pcta a.p:hover { background: #e6b800; }
.ntcx-pcta a.s { border: 1.5px solid rgba(255, 204, 0, .5); color: var(--by); }
body.single-post .wd-single-footer, body.single-post .wd-page-nav { max-width: 780px; margin-left: auto; margin-right: auto; }
body.single-post .comments-area { display: none; }

@media (max-width: 767px) {
	.ntcx-bh { padding: 26px 20px; border-radius: 18px; }
	body.single-post .wd-entry-content { font-size: 16.5px; }
	body.single-post .wd-entry-content h2 { font-size: 22px; margin-top: 30px; }
	.ntcx-pcta { padding: 20px; margin-left: 12px; margin-right: 12px; }
}
