/* BlogPro Suite – front end */
.bps-ad{margin:1.6em auto;text-align:center;clear:both;overflow:hidden;max-width:100%}
.bps-ad__label{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af;margin-bottom:4px}
.bps-ad--header{margin:10px auto}
.bps-ad--in_feed{margin:1.2em 0}
.bps-sticky-widget{position:sticky;top:20px}

/* Sticky anchor ad */
.bps-sticky-ad{position:fixed;left:0;right:0;bottom:0;z-index:9990;background:rgba(255,255,255,.97);box-shadow:0 -2px 10px rgba(0,0,0,.12);padding:4px 0 2px;text-align:center}
.bps-sticky-ad .bps-ad{margin:0 auto;min-height:0!important;max-height:110px}
.bps-sticky-ad .bps-ad__label{display:none}
.bps-sticky-ad__close{position:absolute;right:6px;top:-26px;width:26px;height:26px;border:0;border-radius:50% 50% 0 0;background:#fff;box-shadow:0 -2px 6px rgba(0,0,0,.15);font-size:18px;line-height:26px;cursor:pointer;padding:0;color:#111}
.bps-sticky-ad.is-closed{display:none!important}

/* Breadcrumbs */
.bps-breadcrumbs ol{list-style:none;margin:0 0 1em;padding:0;display:flex;flex-wrap:wrap;gap:4px;font-size:.85em;color:#6b7280}
.bps-breadcrumbs li:not(:last-child)::after{content:"›";margin-left:6px}
.bps-breadcrumbs a{color:inherit;text-decoration:none}
.bps-breadcrumbs a:hover{text-decoration:underline}

/* Meta line */
.bps-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.85em;color:#6b7280;margin:0 0 1.2em}
.bps-meta__sep{opacity:.6}

/* TOC */
.bps-toc{border:1px solid rgba(0,0,0,.1);border-left:4px solid var(--bps-primary,#2563eb);border-radius:8px;background:rgba(0,0,0,.025);padding:.8em 1.1em;margin:1.5em 0;font-size:.95em}
.bps-toc summary{font-weight:700;cursor:pointer;list-style:none}
.bps-toc summary::-webkit-details-marker{display:none}
.bps-toc summary::after{content:"▾";float:right;transition:transform .2s}
.bps-toc details:not([open]) summary::after{transform:rotate(-90deg)}
.bps-toc ol{margin:.6em 0 0 1.2em;padding:0}
.bps-toc ol ol{margin-top:.2em}
.bps-toc li{margin:.25em 0}
.bps-toc a{text-decoration:none}
.bps-toc a:hover{text-decoration:underline}
:target{scroll-margin-top:80px}

/* Share */
.bps-share{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:1.5em 0}
.bps-share__label{font-weight:600;font-size:.9em}
.bps-share__btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;border-radius:6px;color:#fff!important;font-size:14px;line-height:1.2;text-decoration:none!important;border:0;cursor:pointer;font-family:inherit}
.bps-share__btn:hover{opacity:.88}
.bps-share--whatsapp{background:#25d366}
.bps-share--facebook{background:#1877f2}
.bps-share--x{background:#111}
.bps-share--telegram{background:#229ed9}
.bps-share--linkedin{background:#0a66c2}
.bps-share--pinterest{background:#e60023}
.bps-share--email{background:#6b7280}
.bps-share--copy{background:#374151}
.bps-share-sticky{position:fixed;left:0;right:0;bottom:0;margin:0;z-index:9980;gap:0;flex-wrap:nowrap;box-shadow:0 -2px 8px rgba(0,0,0,.15)}
.bps-share-sticky .bps-share__label{display:none}
.bps-share-sticky .bps-share__btn{flex:1;border-radius:0;padding:12px 4px;font-size:13px}
.bps-share-float{position:fixed;left:10px;top:35%;flex-direction:column;z-index:9980;margin:0}
.bps-share-float .bps-share__label{display:none}
.bps-share-float .bps-share__btn{width:100px}

/* Author box */
.bps-author{display:flex;gap:16px;align-items:flex-start;padding:1.2em;margin:2em 0;border-radius:10px;background:rgba(0,0,0,.035)}
.bps-author__img{border-radius:50%;flex:0 0 auto}
.bps-author__by{display:block;font-size:.8em;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}
.bps-author__name{font-weight:700;font-size:1.1em;text-decoration:none}
.bps-author__bio{margin:.4em 0 0;font-size:.92em}

/* Related */
.bps-related{margin:2em 0}
.bps-related__title{margin:0 0 .8em}
.bps-related__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.bps-related__item{display:block;text-decoration:none!important;color:inherit;border-radius:8px;overflow:hidden;background:rgba(0,0,0,.03)}
.bps-related__img{width:100%;height:140px;object-fit:cover;display:block}
.bps-related__name{display:block;padding:10px 12px;font-weight:600;font-size:.95em;line-height:1.4}

/* FAQ */
.bps-faq{border:1px solid rgba(0,0,0,.1);border-radius:8px;padding:.7em 1em;margin:.6em 0}
.bps-faq summary{font-weight:600;cursor:pointer}
.bps-faq__a{margin-top:.5em}

/* Popular widget */
.bps-popular{list-style:none;margin:0;padding:0}
.bps-popular li{margin:0 0 10px}
.bps-popular a{display:flex;gap:10px;align-items:center;text-decoration:none}
.bps-popular img{width:60px;height:60px;object-fit:cover;border-radius:6px;flex:0 0 60px}

/* Progress / top / dark toggle */
.bps-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;pointer-events:none}
.bps-progress span{display:block;height:100%;width:0;background:var(--bps-primary,#2563eb);transition:width .1s linear}
body.admin-bar .bps-progress{top:32px}
@media (max-width:782px){body.admin-bar .bps-progress{top:46px}}
.bps-top,.bps-darktoggle{position:fixed;right:16px;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;z-index:9985;box-shadow:0 2px 8px rgba(0,0,0,.2);font-size:18px;line-height:42px;padding:0;display:flex;align-items:center;justify-content:center}
.bps-top{bottom:20px;background:var(--bps-primary,#2563eb);color:#fff;opacity:0;visibility:hidden;transition:opacity .2s}
.bps-top.is-visible{opacity:1;visibility:visible}
.bps-darktoggle{bottom:72px;background:#111827;color:#fbbf24}
.bps-darktoggle .bps-sun{display:none}
html[data-bps-theme=dark] .bps-darktoggle{background:#f3f4f6;color:#f59e0b}
html[data-bps-theme=dark] .bps-darktoggle .bps-sun{display:inline}
html[data-bps-theme=dark] .bps-darktoggle .bps-moon{display:none}
body.bps-sticky-on .bps-top{bottom:80px}
body.bps-sticky-on .bps-darktoggle{bottom:132px}


/* Cookie */
.bps-cookie{position:fixed;left:16px;right:16px;bottom:16px;max-width:520px;margin:0 auto;z-index:99998;background:#111827;color:#f9fafb;padding:14px 16px;border-radius:10px;display:flex;gap:12px;align-items:center;box-shadow:0 6px 24px rgba(0,0,0,.3);font-size:14px}
.bps-cookie[hidden]{display:none}
.bps-cookie p{margin:0;flex:1}
.bps-cookie a{color:#93c5fd}
.bps-cookie__ok{background:var(--bps-primary,#2563eb);color:#fff;border:0;border-radius:6px;padding:8px 16px;cursor:pointer}

/* Dark mode */
html[data-bps-theme=dark]{color-scheme:dark}
html[data-bps-theme=dark] body:not(.bpl-theme){background-color:#0f172a!important;color:#e5e7eb!important}
html[data-bps-theme=dark] body:not(.bpl-theme) :where(.site,#page,.site-content,.site-header,.site-footer,#masthead,#colophon,main,article,.entry,.post,.widget,.wp-site-blocks,header,footer,aside,.inside-article,.ast-container,.content-area,.sidebar){background-color:transparent!important;color:inherit!important}
html[data-bps-theme=dark] body:not(.bpl-theme) :where(h1,h2,h3,h4,h5,h6,.entry-title,.entry-title a,.site-title a){color:#f9fafb!important}
html[data-bps-theme=dark] body:not(.bpl-theme) a{color:#93c5fd}
html[data-bps-theme=dark] body:not(.bpl-theme) :where(pre,code,blockquote,table th){background-color:#1e293b!important;color:#e5e7eb!important}
html[data-bps-theme=dark] body:not(.bpl-theme) input,html[data-bps-theme=dark] body:not(.bpl-theme) textarea,html[data-bps-theme=dark] body:not(.bpl-theme) select{background:#1e293b;color:#e5e7eb;border-color:#334155}
html[data-bps-theme=dark] .bps-toc,html[data-bps-theme=dark] .bps-author,html[data-bps-theme=dark] .bps-related__item{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}
html[data-bps-theme=dark] .bps-sticky-ad{background:rgba(15,23,42,.97)}
html[data-bps-theme=dark] .bps-sticky-ad__close{background:#1e293b;color:#fff}

@media (max-width:600px){
	.bps-author{flex-direction:column;align-items:center;text-align:center}
	.bps-related__grid{grid-template-columns:1fr 1fr;gap:10px}
	.bps-related__img{height:100px}
	.bps-share__btn{padding:8px 12px}
}
@media print{.bps-ad,.bps-share,.bps-sticky-ad,.bps-top,.bps-darktoggle,.bps-progress,.bps-cookie,.bps-related{display:none!important}}
