/*
 * Nailspace Blog Editorial Compact
 * Wszystkie selektory są poprzedzone nsbe, aby nie wpływać na inne części strony.
 */
:root{
	--nsbe-ink:#211f1f;
	--nsbe-soft:#4e4946;
	--nsbe-muted:#756f6b;
	--nsbe-paper:#fbf8f4;
	--nsbe-paper-2:#f3ede8;
	--nsbe-paper-3:#ebe2dc;
	--nsbe-white:#fff;
	--nsbe-line:rgba(33,31,31,.13);
	--nsbe-accent:#d8aca2;
	--nsbe-dark:#2a2523;
	--nsbe-radius:22px;
	--nsbe-max:1240px;
	--nsbe-serif:Georgia,"Times New Roman",serif;
	--nsbe-sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.nsbe-active{background:var(--nsbe-paper);color:var(--nsbe-ink)}
.nsbe-page,.nsbe-page *{box-sizing:border-box}
.nsbe-page{font-family:var(--nsbe-sans);color:var(--nsbe-ink);background:var(--nsbe-paper);-webkit-font-smoothing:antialiased}
.nsbe-page a{color:inherit;text-decoration:none}
.nsbe-page img{display:block;max-width:100%}
.nsbe-wrap{width:min(var(--nsbe-max),calc(100% - 44px));margin-inline:auto}
.nsbe-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.nsbe-eyebrow:before{content:"";width:28px;height:1px;background:var(--nsbe-accent)}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* BLOG INTRO — BEZ ZDJĘCIA */
.nsbe-blog-intro{
	padding:46px 0 34px;
	background:var(--nsbe-paper);
}
.nsbe-blog-intro-grid{
	display:grid;
	grid-template-columns:minmax(0,780px) minmax(260px,1fr);
	gap:54px;
	align-items:end;
	margin-top:16px;
	padding-bottom:34px;
	border-bottom:1px solid var(--nsbe-line);
}
.nsbe-blog-intro h1{
	margin:0;
	font-family:var(--nsbe-serif);
	font-size:clamp(44px,5.4vw,70px);
	font-weight:400;
	line-height:1.01;
	letter-spacing:-.045em;
}
.nsbe-blog-intro p{
	max-width:440px;
	margin:0 0 5px auto;
	color:var(--nsbe-muted);
	font-size:16px;
	line-height:1.7;
}

/* SEARCH & FILTER */
.nsbe-search-section{
	position:relative;
	z-index:2;
	padding:0 0 72px;
	background:var(--nsbe-paper);
}
.nsbe-search-section>.nsbe-wrap{
	padding:28px;
	border:1px solid var(--nsbe-line);
	border-radius:20px;
	background:#fff;
	box-shadow:0 16px 44px rgba(61,45,37,.08);
}
.nsbe-search-heading{
	margin-bottom:20px;
}
.nsbe-search-heading h2{
	margin:9px 0 0;
	font-family:var(--nsbe-serif);
	font-size:clamp(30px,3.5vw,44px);
	font-weight:400;
	line-height:1.08;
}
.nsbe-search-form{display:grid;grid-template-columns:1fr auto;gap:10px}
.nsbe-search-form input{width:100%;min-height:48px;padding:0 17px;border:1px solid var(--nsbe-line);border-radius:999px;background:var(--nsbe-paper);color:var(--nsbe-ink);font:inherit}
.nsbe-search-form button{min-height:48px;padding:0 22px;border:0;border-radius:999px;background:var(--nsbe-dark);color:#fff;font:700 13px var(--nsbe-sans);cursor:pointer}
.nsbe-category-filter{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.nsbe-category-filter a{padding:9px 13px;border:1px solid var(--nsbe-line);border-radius:999px;color:var(--nsbe-muted);font-size:12px;font-weight:700}
.nsbe-category-filter a:hover,.nsbe-category-filter a.is-active{border-color:var(--nsbe-accent);background:#f0dcd5;color:var(--nsbe-ink)}

/* SHARED SECTIONS */
.nsbe-featured-section,.nsbe-posts-section{padding:72px 0}
.nsbe-posts-section{padding-top:72px}
.nsbe-section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:34px}
.nsbe-section-heading h2{margin:11px 0 0;font-family:var(--nsbe-serif);font-size:clamp(34px,4.5vw,54px);font-weight:400;line-height:1.05;letter-spacing:-.03em}
.nsbe-section-heading>a,.nsbe-clear-filter{color:var(--nsbe-muted);font-size:13px;font-weight:800}

/* FEATURED POSTS */
.nsbe-featured-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:18px}
.nsbe-featured-main,.nsbe-featured-small{position:relative;display:block;overflow:hidden;border-radius:var(--nsbe-radius);color:#fff;background:var(--nsbe-dark)}
.nsbe-featured-main{min-height:540px}
.nsbe-featured-side{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.nsbe-featured-small{min-height:261px}
.nsbe-featured-main img,.nsbe-featured-small img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.nsbe-featured-main:hover img,.nsbe-featured-small:hover img{transform:scale(1.035)}
.nsbe-card-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(24,18,16,.92),rgba(24,18,16,.06) 72%)}
.nsbe-featured-content{position:absolute;inset:auto 0 0;padding:30px}
.nsbe-featured-content>span{display:block;margin-bottom:12px;color:#ebcfc6;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.nsbe-featured-content h3{max-width:720px;margin:0 0 10px;font-family:var(--nsbe-serif);font-size:clamp(28px,3.5vw,45px);font-weight:400;line-height:1.08}
.nsbe-featured-small .nsbe-featured-content{padding:22px}
.nsbe-featured-small .nsbe-featured-content h3{font-size:24px}
.nsbe-featured-content p{max-width:570px;margin:0 0 18px;color:rgba(255,255,255,.7);font-size:14px;line-height:1.55}
.nsbe-featured-content small{color:rgba(255,255,255,.65);font-size:11px}

/* POST GRID */
.nsbe-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.nsbe-post-card{overflow:hidden;border:1px solid var(--nsbe-line);border-radius:20px;background:#fff;transition:transform .25s,box-shadow .25s}
.nsbe-post-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(53,39,33,.11)}
.nsbe-post-image{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--nsbe-paper-3)}
.nsbe-post-image img{width:100%;height:100%;object-fit:cover;transition:transform .65s}
.nsbe-post-card:hover .nsbe-post-image img{transform:scale(1.04)}
.nsbe-post-body{padding:23px}
.nsbe-post-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--nsbe-muted);font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.nsbe-post-body h3{margin:0 0 12px;font-family:var(--nsbe-serif);font-size:26px;font-weight:400;line-height:1.14}
.nsbe-post-body p{margin:0 0 20px;color:var(--nsbe-muted);font-size:14px;line-height:1.65}
.nsbe-read-more{display:inline-flex;gap:10px;align-items:center;font-size:12px;font-weight:800}
.nsbe-read-more span{transition:transform .2s}
.nsbe-read-more:hover span{transform:translateX(3px)}
.nsbe-empty{padding:58px 25px;border:1px solid var(--nsbe-line);border-radius:20px;background:#fff;text-align:center}
.nsbe-empty h3{margin:0 0 10px;font-family:var(--nsbe-serif);font-size:30px;font-weight:400}
.nsbe-empty p{color:var(--nsbe-muted)}
.nsbe-empty a{display:inline-flex;margin-top:12px;padding:12px 18px;border-radius:999px;background:var(--nsbe-dark);color:#fff;font-size:12px;font-weight:800}

/* PAGINATION */
.nsbe-pagination{margin-top:44px}
.nsbe-pagination ul{display:flex;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}
.nsbe-pagination a,.nsbe-pagination span{min-width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--nsbe-line);border-radius:50%;background:#fff;font-size:12px;font-weight:800}
.nsbe-pagination .current{border-color:var(--nsbe-dark);background:var(--nsbe-dark);color:#fff}

/* SINGLE HERO */
.nsbe-reading-progress{position:fixed;top:0;left:0;z-index:99999;width:0;height:3px;background:var(--nsbe-accent)}
.nsbe-single-hero{
	min-height:440px;
	padding:118px 0 48px;
	display:flex;
	align-items:flex-end;
	color:#fff;
	background:
		linear-gradient(90deg,rgba(30,23,20,.86),rgba(30,23,20,.62) 52%,rgba(30,23,20,.12)),
		var(--nsbe-hero-image) center/cover no-repeat;
}
.nsbe-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;color:rgba(255,255,255,.68);font-size:11px}
.nsbe-single-hero-grid{display:grid;grid-template-columns:minmax(0,790px) 1fr;gap:50px;align-items:end}
.nsbe-single-hero h1{max-width:830px;margin:14px 0 19px;font-family:var(--nsbe-serif);font-size:clamp(42px,5.2vw,66px);font-weight:400;line-height:1;letter-spacing:-.04em}
.nsbe-single-hero p{max-width:680px;margin:0;color:rgba(255,255,255,.8);font-size:17px;line-height:1.6}
.nsbe-single-meta{display:flex;flex-wrap:wrap;gap:9px 20px;margin-top:22px;color:rgba(255,255,255,.67);font-size:11px}
.nsbe-expert-note{justify-self:end;width:min(100%,235px);padding:20px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:rgba(255,255,255,.09);backdrop-filter:blur(12px)}
.nsbe-expert-note strong{display:block;margin-bottom:7px;font-family:var(--nsbe-serif);font-size:22px;font-weight:400}
.nsbe-expert-note span{color:rgba(255,255,255,.7);font-size:12px;line-height:1.5}

/* QUICKBAR */
.nsbe-quickbar{position:relative;z-index:6;margin-top:-22px}
.nsbe-quickbar-inner{min-height:78px;padding:16px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:center;gap:20px;border:1px solid var(--nsbe-line);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 16px 42px rgba(62,45,37,.1)}
.nsbe-quickbar span{display:block;margin-bottom:3px;color:var(--nsbe-muted);font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.nsbe-quickbar strong{display:block;font-family:var(--nsbe-serif);font-size:16px;font-weight:400}
.nsbe-quickbar a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;background:var(--nsbe-dark);color:#fff;font-size:12px;font-weight:800;white-space:nowrap}

/* ARTICLE */
.nsbe-article-layout{padding:54px 0 100px;display:grid;grid-template-columns:235px minmax(0,760px);gap:54px;align-items:start;justify-content:center}
.nsbe-toc{position:sticky;top:105px}
.nsbe-toc>span,.nsbe-share>span{display:block;margin-bottom:13px;color:#9d6e5c;font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.nsbe-toc nav{display:grid;border-left:1px solid var(--nsbe-line)}
.nsbe-toc nav a{padding:8px 0 8px 16px;margin-left:-1px;border-left:2px solid transparent;color:var(--nsbe-muted);font-size:13px;line-height:1.45}
.nsbe-toc nav a:hover,.nsbe-toc nav a.is-active{border-left-color:var(--nsbe-accent);color:var(--nsbe-ink)}
.nsbe-share{margin-top:28px;padding-top:22px;border-top:1px solid var(--nsbe-line)}
.nsbe-share>div{display:flex;gap:8px}
.nsbe-share a{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--nsbe-line);border-radius:50%;background:#fff;font-weight:800}
.nsbe-article-content{min-width:0;font-size:17px;line-height:1.83}
.nsbe-article-content>p:first-of-type{font-size:20px;line-height:1.72;color:#433a36}
.nsbe-article-content p{margin:0 0 27px}
.nsbe-article-content h2{scroll-margin-top:110px;margin:72px 0 23px;font-family:var(--nsbe-serif);font-size:clamp(31px,4vw,44px);font-weight:400;line-height:1.12;letter-spacing:-.025em}
.nsbe-article-content h3{margin:38px 0 14px;font-family:var(--nsbe-serif);font-size:25px;font-weight:400;line-height:1.2}
.nsbe-article-content ul,.nsbe-article-content ol{margin:0 0 31px;padding-left:24px}
.nsbe-article-content li{margin-bottom:10px}
.nsbe-article-content figure,.nsbe-article-content .wp-block-image{margin:42px 0}
.nsbe-article-content figure img,.nsbe-article-content .wp-block-image img{width:100%;border-radius:18px}
.nsbe-article-content figcaption{margin-top:9px;color:var(--nsbe-muted);font-size:12px;text-align:center}
.nsbe-article-content blockquote{margin:42px 0;padding:25px 29px;border-left:3px solid var(--nsbe-accent);background:var(--nsbe-paper-2);font-family:var(--nsbe-serif);font-size:23px;line-height:1.45}
.nsbe-article-content table{width:100%;margin:35px 0;border-collapse:collapse;font-size:14px}
.nsbe-article-content th,.nsbe-article-content td{padding:12px;border:1px solid var(--nsbe-line);text-align:left}
.nsbe-summary-box{margin:0 0 48px;padding:27px 29px;border:1px solid #e1d4cc;border-radius:17px;background:#fffaf6}
.nsbe-summary-box>span{display:block;margin-bottom:10px;color:#9d6e5c;font-size:10px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}
.nsbe-summary-box p{margin:0!important;font-size:16px!important;line-height:1.65!important}
.nsbe-inline-cta{margin:56px 0;padding:34px;border-radius:21px;background:#29211e;color:#fff}
.nsbe-inline-cta>span{display:block;margin-bottom:10px;color:#d8b8aa;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.nsbe-inline-cta h2{margin:0 0 12px;color:#fff;font-size:31px}
.nsbe-inline-cta p{max-width:590px;margin:0 0 22px;color:rgba(255,255,255,.7);font-size:15px}
.nsbe-inline-cta a{display:inline-flex;gap:11px;align-items:center;min-height:48px;padding:0 20px;border-radius:999px;background:#ecd3c8;color:#281f1b;font-size:13px;font-weight:800}
.nsbe-author-box{margin-top:62px;padding:27px;display:grid;grid-template-columns:64px 1fr;gap:19px;align-items:center;border:1px solid var(--nsbe-line);border-radius:18px;background:#fff}
.nsbe-author-avatar{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#ead7ce;font-family:var(--nsbe-serif);font-size:22px;text-transform:uppercase}
.nsbe-author-box span{display:block;color:var(--nsbe-muted);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.nsbe-author-box strong{display:block;margin-top:5px;font-family:var(--nsbe-serif);font-size:21px;font-weight:400}
.nsbe-author-box p{margin:5px 0 0;color:var(--nsbe-muted);font-size:13px;line-height:1.55}

/* RELATED */
.nsbe-related{padding:84px 0 100px;background:#f1eae4}
.nsbe-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.nsbe-related-card{position:relative;min-height:310px;padding:24px;display:flex;flex-direction:column;overflow:hidden;border-radius:21px;color:#fff;background:linear-gradient(to top,rgba(29,22,19,.9),rgba(29,22,19,.08)),var(--nsbe-card-image) center/cover no-repeat}
.nsbe-related-card>span{align-self:flex-start;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.nsbe-related-card>div{margin-top:auto}
.nsbe-related-card h3{margin:0 0 9px;font-family:var(--nsbe-serif);font-size:26px;font-weight:400;line-height:1.12}
.nsbe-related-card small{color:rgba(255,255,255,.67)}

/* FINAL CTA */
.nsbe-final-cta{padding:88px 0;background:#251e1b;color:#fff;text-align:center}
.nsbe-final-cta h2{max-width:780px;margin:14px auto 17px;font-family:var(--nsbe-serif);font-size:clamp(38px,5vw,61px);font-weight:400;line-height:1.04}
.nsbe-final-cta p{max-width:610px;margin:0 auto 27px;color:rgba(255,255,255,.67);font-size:15px}
.nsbe-final-cta>a,.nsbe-final-cta .nsbe-wrap>a{display:inline-flex;gap:11px;align-items:center;min-height:52px;padding:0 24px;border-radius:999px;background:#edd4c9;color:#241d1a;font-size:13px;font-weight:800}

@media(max-width:1050px){
	.nsbe-hero-grid,.nsbe-single-hero-grid{grid-template-columns:1fr}
	.nsbe-hero-aside,.nsbe-expert-note{display:none}
	.nsbe-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.nsbe-article-layout{grid-template-columns:205px minmax(0,1fr);gap:38px}
}
@media(max-width:780px){
	.nsbe-wrap{width:calc(100% - 30px)}
	.nsbe-blog-intro{padding:32px 0 24px}
	.nsbe-blog-intro-grid{grid-template-columns:1fr;gap:18px;margin-top:13px;padding-bottom:25px}
	.nsbe-blog-intro h1{font-size:clamp(38px,11vw,54px)}
	.nsbe-blog-intro p{max-width:none;margin:0;font-size:15px}
	.nsbe-search-section{padding-bottom:58px}
	.nsbe-search-section>.nsbe-wrap{padding:18px;border-radius:16px}
	.nsbe-search-form{grid-template-columns:1fr}
	.nsbe-search-form button{width:100%}
	.nsbe-category-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}
	.nsbe-category-filter a{white-space:nowrap}
	.nsbe-featured-section,.nsbe-posts-section{padding:62px 0}
	.nsbe-section-heading{display:block}
	.nsbe-section-heading>a,.nsbe-clear-filter{display:inline-block;margin-top:14px}
	.nsbe-featured-layout{grid-template-columns:1fr}
	.nsbe-featured-main{min-height:410px}
	.nsbe-featured-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}
	.nsbe-featured-small{min-height:260px}
	.nsbe-featured-small .nsbe-featured-content h3{font-size:21px}
	.nsbe-post-grid{grid-template-columns:1fr}
	.nsbe-single-hero{min-height:420px;padding:104px 0 36px;background:linear-gradient(180deg,rgba(25,20,18,.42),rgba(25,20,18,.88)),var(--nsbe-hero-image) center/cover no-repeat}
	.nsbe-single-hero h1{font-size:clamp(38px,11vw,52px)}
	.nsbe-single-hero p{font-size:15px;line-height:1.55}
	.nsbe-quickbar{margin-top:-14px}
	.nsbe-quickbar-inner{padding:15px 17px;grid-template-columns:1fr 1fr;gap:13px 17px;border-radius:15px}
	.nsbe-quickbar-inner>div:nth-child(3){display:none}
	.nsbe-quickbar a{min-height:40px;padding:0 12px}
	.nsbe-article-layout{padding:38px 0 78px;display:block}
	.nsbe-toc{position:static;margin-bottom:42px;padding:19px;border:1px solid var(--nsbe-line);border-radius:15px;background:#fff}
	.nsbe-toc nav{grid-template-columns:1fr 1fr;gap:3px 14px;border-left:0}
	.nsbe-toc nav a{padding:7px 0;margin:0;border-left:0;border-bottom:1px solid var(--nsbe-line)}
	.nsbe-share{display:none}
	.nsbe-article-content{font-size:16px}
	.nsbe-article-content>p:first-of-type{font-size:18px}
	.nsbe-article-content h2{margin-top:56px}
	.nsbe-inline-cta{padding:27px 23px}
	.nsbe-related{padding:68px 0 78px}
	.nsbe-related-grid{grid-template-columns:1fr}
	.nsbe-related-card{min-height:270px}
}
@media(max-width:520px){
	.nsbe-featured-side{grid-template-columns:1fr}
	.nsbe-featured-main{min-height:390px}
	.nsbe-featured-small{min-height:250px}
	.nsbe-featured-content{padding:23px}
	.nsbe-featured-content h3{font-size:30px}
	.nsbe-toc nav{grid-template-columns:1fr}
	.nsbe-quickbar-inner{grid-template-columns:1fr}
	.nsbe-quickbar-inner>div:nth-child(2){display:none}
	.nsbe-article-content blockquote{padding:22px;font-size:20px}
	.nsbe-author-box{grid-template-columns:52px 1fr;padding:21px}
	.nsbe-author-avatar{width:52px;height:52px}
}

.nsbe-featured-first{padding-top:34px}
.nsbe-search-after-featured{padding-top:0}


/* =========================================================
   SEO / UX 2.0
   ========================================================= */

.nsbe-blog-intro--compact {
	padding-bottom: 20px;
}

.nsbe-blog-intro--compact .nsbe-blog-intro-grid {
	padding-bottom: 26px;
}

.nsbe-post-meta a {
	color: inherit;
	text-decoration: none;
}

.nsbe-post-meta a:hover {
	color: var(--nsbe-ink);
}

.nsbe-read-more .nsbe-arrow {
	display: inline-block;
	transition: transform .2s ease;
}

.nsbe-read-more:hover .nsbe-arrow {
	transform: translateX(3px);
}

.nsbe-pagination .page-numbers {
	text-decoration: none;
}

.nsbe-pagination .screen-reader-text,
.nsbe-read-more .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 780px) {
	.nsbe-blog-intro--compact {
		padding-top: 28px;
		padding-bottom: 12px;
	}
}


/* =========================================================
   2.0.1 — MNIEJSZY ODSTĘP POD GLOBALNYM MENU
   ========================================================= */
body.nsbe-active .nsbe-blog-archive .nsbe-blog-intro {
    padding-top: 46px !important;
}

body.nsbe-active .nsbe-blog-archive .nsbe-blog-intro--compact {
    padding-top: 34px !important;
}

@media (max-width: 780px) {
    body.nsbe-active .nsbe-blog-archive .nsbe-blog-intro {
        padding-top: 32px !important;
    }

    body.nsbe-active .nsbe-blog-archive .nsbe-blog-intro--compact {
        padding-top: 28px !important;
    }
}


/* =========================================================
   2.0.2 — POJEDYNCZY ARTYKUŁ:
   HERO / ZDJĘCIE STYKA SIĘ Z GLOBALNYM MENU
   ========================================================= */

/*
 * Astra i inne motywy potrafią dodawać własny odstęp na początku
 * #content / .site-content. Na pojedynczych wpisach Nailspace
 * zerujemy wyłącznie odstęp pionowy — nie dotykamy innych stron.
 */
body.nsbe-active.single-post #content,
body.nsbe-active.single-post #content.site-content,
body.nsbe-active.single-post .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Jeżeli motyw opakowuje szablon w .ast-container,
   usuwamy tylko pionową przerwę nad naszym hero. */
body.nsbe-active.single-post #content > .ast-container,
body.nsbe-active.single-post .site-content > .ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Sam szablon wpisu nie może dodawać kolejnej przerwy. */
body.nsbe-active.single-post .nsbe-single,
body.nsbe-active.single-post .nsbe-single-hero {
    margin-top: 0 !important;
}

/*
 * Globalne menu Nailspace jest fixed i posiada własny offset body.
 * Nie dokładamy drugiego offsetu w szablonie artykułu.
 */
body.nsbe-active.single-post.nsgm-enabled.nsgm-solid-page .nsbe-single {
    padding-top: 0 !important;
}

/* Bezpiecznik dla wrapperów spotykanych w Astrze/Elementorze. */
body.nsbe-active.single-post .site-main,
body.nsbe-active.single-post #primary,
body.nsbe-active.single-post .content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile — również bez dodatkowej szczeliny pod menu. */
@media (max-width: 900px) {
    body.nsbe-active.single-post #content,
    body.nsbe-active.single-post #content.site-content,
    body.nsbe-active.single-post .site-content,
    body.nsbe-active.single-post .nsbe-single,
    body.nsbe-active.single-post .nsbe-single-hero {
        margin-top: 0 !important;
        padding-top: 0;
    }

    /*
     * Przywracamy padding WEWNĄTRZ hero potrzebny dla treści.
     * To nie tworzy przerwy nad zdjęciem — tło hero zaczyna się
     * od samej górnej krawędzi sekcji.
     */
    body.nsbe-active.single-post .nsbe-single-hero {
        padding-top: 72px !important;
        padding-bottom: 36px !important;
    }
}


/* =========================================================
   2.0.3 — WYSZUKIWARKA BLOGA ZGODNA Z PROJEKTEM
   Mocne selektory blokują style motywu WordPress.
   ========================================================= */

body.nsbe-active .nsbe-blog-archive .nsbe-search-section > .nsbe-wrap {
    padding: 27px !important;
    border: 1px solid var(--nsbe-line) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 44px rgba(61,45,37,.07) !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"] {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border: 1px solid var(--nsbe-line) !important;
    border-radius: 999px !important;

    outline: none !important;

    background: var(--nsbe-paper) !important;
    background-color: var(--nsbe-paper) !important;

    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;

    font-family: var(--nsbe-sans) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]::placeholder {
    color: #817a76 !important;
    -webkit-text-fill-color: #817a76 !important;
    opacity: 1 !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]:hover {
    border-color: rgba(33,31,31,.22) !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]:focus {
    border-color: var(--nsbe-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(216,172,162,.16) !important;
}

/* Usuń systemowy przycisk X, żeby wygląd był identyczny w Safari/Chrome. */
body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]::-webkit-search-decoration,
body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]::-webkit-search-cancel-button,
body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]::-webkit-search-results-button,
body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form button[type="submit"] {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: auto !important;
    min-width: 94px !important;
    height: 50px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 23px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: var(--nsbe-dark) !important;
    background-color: var(--nsbe-dark) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-family: var(--nsbe-sans) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    box-shadow: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;

    transition:
        transform .18s ease,
        background-color .18s ease !important;
}

body.nsbe-active .nsbe-blog-archive form.nsbe-search-form button[type="submit"]:hover,
body.nsbe-active .nsbe-blog-archive form.nsbe-search-form button[type="submit"]:focus {
    background: #151211 !important;
    background-color: #151211 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 780px) {
    body.nsbe-active .nsbe-blog-archive .nsbe-search-section > .nsbe-wrap {
        padding: 18px !important;
        border-radius: 17px !important;
    }

    body.nsbe-active .nsbe-blog-archive form.nsbe-search-form {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    body.nsbe-active .nsbe-blog-archive form.nsbe-search-form input[type="search"],
    body.nsbe-active .nsbe-blog-archive form.nsbe-search-form button[type="submit"] {
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
    }
}


/* =========================================================
   2.0.4 — CZYTELNOŚĆ TEKSTU NA ZDJĘCIACH
   ========================================================= */

/*
 * Motyw może nadpisywać kolor h1/h3/a/span nawet wewnątrz
 * ciemnej warstwy. Wymuszamy biały tekst wyłącznie tam,
 * gdzie treść leży bezpośrednio na fotografii.
 */
body.nsbe-active .nsbe-featured-main .nsbe-featured-content,
body.nsbe-active .nsbe-featured-main .nsbe-featured-content *,
body.nsbe-active .nsbe-featured-small .nsbe-featured-content,
body.nsbe-active .nsbe-featured-small .nsbe-featured-content * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.nsbe-active .nsbe-featured-main .nsbe-featured-content > span,
body.nsbe-active .nsbe-featured-small .nsbe-featured-content > span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: .92 !important;
}

body.nsbe-active .nsbe-featured-main .nsbe-featured-content p,
body.nsbe-active .nsbe-featured-small .nsbe-featured-content p,
body.nsbe-active .nsbe-featured-main .nsbe-featured-content small,
body.nsbe-active .nsbe-featured-small .nsbe-featured-content small {
    color: rgba(255,255,255,.82) !important;
    -webkit-text-fill-color: rgba(255,255,255,.82) !important;
}

/* Nieco mocniejszy gradient zwiększa kontrast na jasnych zdjęciach. */
body.nsbe-active .nsbe-featured-main .nsbe-card-overlay,
body.nsbe-active .nsbe-featured-small .nsbe-card-overlay {
    background:
        linear-gradient(
            to top,
            rgba(22,16,14,.94) 0%,
            rgba(22,16,14,.76) 34%,
            rgba(22,16,14,.24) 72%,
            rgba(22,16,14,.08) 100%
        ) !important;
}

/* =========================================================
   2.0.4 — POJEDYNCZY WPIS / HERO
   Wszystkie elementy leżące na zdjęciu mają jasny tekst.
   ========================================================= */

body.nsbe-active.single-post .nsbe-single-hero,
body.nsbe-active.single-post .nsbe-single-hero h1,
body.nsbe-active.single-post .nsbe-single-hero h2,
body.nsbe-active.single-post .nsbe-single-hero h3,
body.nsbe-active.single-post .nsbe-single-hero p,
body.nsbe-active.single-post .nsbe-single-hero a,
body.nsbe-active.single-post .nsbe-single-hero span,
body.nsbe-active.single-post .nsbe-single-hero strong,
body.nsbe-active.single-post .nsbe-single-hero small {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.nsbe-active.single-post .nsbe-single-hero .nsbe-breadcrumbs,
body.nsbe-active.single-post .nsbe-single-hero .nsbe-single-meta {
    color: rgba(255,255,255,.78) !important;
    -webkit-text-fill-color: rgba(255,255,255,.78) !important;
}

body.nsbe-active.single-post .nsbe-single-hero .nsbe-breadcrumbs *,
body.nsbe-active.single-post .nsbe-single-hero .nsbe-single-meta * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

body.nsbe-active.single-post .nsbe-single-hero {
    background:
        linear-gradient(
            90deg,
            rgba(26,19,17,.90) 0%,
            rgba(26,19,17,.72) 48%,
            rgba(26,19,17,.30) 78%,
            rgba(26,19,17,.18) 100%
        ),
        var(--nsbe-hero-image) center/cover no-repeat !important;
}

/* =========================================================
   2.0.4 — STARSZE ARTYKUŁY
   Normalizacja typografii h4 / starych bloków WordPress.
   ========================================================= */

body.nsbe-active.single-post .nsbe-article-content {
    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;
}

body.nsbe-active.single-post .nsbe-article-content p,
body.nsbe-active.single-post .nsbe-article-content li,
body.nsbe-active.single-post .nsbe-article-content td,
body.nsbe-active.single-post .nsbe-article-content th {
    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;
}

body.nsbe-active.single-post .nsbe-article-content h2,
body.nsbe-active.single-post .nsbe-article-content h3,
body.nsbe-active.single-post .nsbe-article-content h4,
body.nsbe-active.single-post .nsbe-article-content h5 {
    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;
    font-family: var(--nsbe-serif) !important;
    text-transform: none !important;
    letter-spacing: -.02em !important;
}

body.nsbe-active.single-post .nsbe-article-content h4 {
    margin: 42px 0 15px !important;
    font-size: clamp(24px, 3vw, 31px) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

body.nsbe-active.single-post .nsbe-article-content h5 {
    margin: 32px 0 12px !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Starsze wpisy potrafią mieć style inline / klasy motywu. */
body.nsbe-active.single-post .nsbe-article-content [style*="color"] {
    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;
}

/* Linki w treści pozostają czytelne i rozpoznawalne. */
body.nsbe-active.single-post .nsbe-article-content a {
    color: #7a5147 !important;
    -webkit-text-fill-color: #7a5147 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.nsbe-active.single-post .nsbe-article-content a:hover {
    color: #3c2c27 !important;
    -webkit-text-fill-color: #3c2c27 !important;
}

/* Nie zmieniamy kolorów elementów specjalnych, które mają własne tło. */
body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta,
body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta *,
body.nsbe-active.single-post .nsbe-article-content .nsbe-author-box,
body.nsbe-active.single-post .nsbe-article-content .nsbe-author-box * {
    -webkit-text-fill-color: initial;
}


/* =========================================================
   2.0.5 — POPRAWNY UKŁAD TREŚCI STARYCH ARTYKUŁÓW
   ========================================================= */

/*
 * Jeśli artykuł nie ma żadnych nagłówków H2-H4 i tym samym
 * nie ma spisu treści, nie rezerwujemy pustej kolumny 235 px.
 */
body.nsbe-active.single-post .nsbe-article-layout.nsbe-article-layout--no-toc {
    grid-template-columns: minmax(0, 820px) !important;
    justify-content: center !important;
}

body.nsbe-active.single-post .nsbe-article-layout.nsbe-article-layout--no-toc .nsbe-article-content {
    width: 100% !important;
    max-width: 820px !important;
    grid-column: 1 !important;
}

/*
 * Starsze wpisy często korzystają z H3/H4 zamiast H2.
 * Te nagłówki są teraz również elementami spisu treści.
 */
body.nsbe-active.single-post .nsbe-toc a.nsbe-toc-level-3 {
    padding-left: 24px !important;
    font-size: 12.5px !important;
}

body.nsbe-active.single-post .nsbe-toc a.nsbe-toc-level-4 {
    padding-left: 32px !important;
    font-size: 12px !important;
    color: #817975 !important;
}

/* Nagłówki w treści muszą mieć offset pod sticky menu. */
body.nsbe-active.single-post .nsbe-article-content h2,
body.nsbe-active.single-post .nsbe-article-content h3,
body.nsbe-active.single-post .nsbe-article-content h4 {
    scroll-margin-top: 115px !important;
}

/* =========================================================
   2.0.5 — CTA WEWNĄTRZ ARTYKUŁU
   Cofamy kolory narzucone przez normalizację starszych wpisów.
   ========================================================= */

body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta > span {
    color: #d8b8aa !important;
    -webkit-text-fill-color: #d8b8aa !important;
}

body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta p {
    color: rgba(255,255,255,.74) !important;
    -webkit-text-fill-color: rgba(255,255,255,.74) !important;
}

body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta a,
body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta a:visited,
body.nsbe-active.single-post .nsbe-article-content .nsbe-inline-cta a:hover {
    color: #281f1b !important;
    -webkit-text-fill-color: #281f1b !important;
    text-decoration: none !important;
}

/* Author box również ma własną hierarchię kolorów. */
body.nsbe-active.single-post .nsbe-article-content .nsbe-author-box {
    color: var(--nsbe-ink) !important;
    -webkit-text-fill-color: var(--nsbe-ink) !important;
}

body.nsbe-active.single-post .nsbe-article-content .nsbe-author-box p {
    color: var(--nsbe-muted) !important;
    -webkit-text-fill-color: var(--nsbe-muted) !important;
}

/* Obrazy ze starszych wpisów: pełna szerokość kolumny, bez floatów. */
body.nsbe-active.single-post .nsbe-article-content img {
    max-width: 100% !important;
    height: auto !important;
}

body.nsbe-active.single-post .nsbe-article-content .alignleft,
body.nsbe-active.single-post .nsbe-article-content .alignright,
body.nsbe-active.single-post .nsbe-article-content .aligncenter {
    float: none !important;
    display: block !important;
    margin: 40px auto !important;
}

/* Mobile: spis treści nie potrzebuje wcięć hierarchicznych. */
@media (max-width: 780px) {
    body.nsbe-active.single-post .nsbe-toc a.nsbe-toc-level-3,
    body.nsbe-active.single-post .nsbe-toc a.nsbe-toc-level-4 {
        padding-left: 0 !important;
    }

    body.nsbe-active.single-post .nsbe-article-layout.nsbe-article-layout--no-toc,
    body.nsbe-active.single-post .nsbe-article-layout.nsbe-article-layout--no-toc .nsbe-article-content {
        max-width: 100% !important;
    }
}
